]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
210 #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
211 #define SWIGTYPE_p_wxSizer swig_types[2]
212 #define SWIGTYPE_p_wxCheckBox swig_types[3]
213 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
214 #define SWIGTYPE_p_wxEvent swig_types[5]
215 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
216 #define SWIGTYPE_p_bool swig_types[7]
217 #define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
218 #define SWIGTYPE_p_wxItemContainer swig_types[9]
219 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10]
220 #define SWIGTYPE_p_wxPyListCtrl swig_types[11]
221 #define SWIGTYPE_p_wxStaticLine swig_types[12]
222 #define SWIGTYPE_p_wxControl swig_types[13]
223 #define SWIGTYPE_p_wxPyControl swig_types[14]
224 #define SWIGTYPE_p_wxGauge swig_types[15]
225 #define SWIGTYPE_p_wxToolBarBase swig_types[16]
226 #define SWIGTYPE_p_wxFont swig_types[17]
227 #define SWIGTYPE_p_wxToggleButton swig_types[18]
228 #define SWIGTYPE_p_wxRadioButton swig_types[19]
229 #define SWIGTYPE_p_wxChoice swig_types[20]
230 #define SWIGTYPE_p_wxMemoryDC swig_types[21]
231 #define SWIGTYPE_p_wxListItemAttr swig_types[22]
232 #define SWIGTYPE_p_void swig_types[23]
233 #define SWIGTYPE_p_int swig_types[24]
234 #define SWIGTYPE_p_wxSize swig_types[25]
235 #define SWIGTYPE_p_wxDC swig_types[26]
236 #define SWIGTYPE_p_wxListView swig_types[27]
237 #define SWIGTYPE_p_wxIcon swig_types[28]
238 #define SWIGTYPE_p_wxTextCtrl swig_types[29]
239 #define SWIGTYPE_p_wxNotebook swig_types[30]
240 #define SWIGTYPE_p_wxNotifyEvent swig_types[31]
241 #define SWIGTYPE_p_wxArrayString swig_types[32]
242 #define SWIGTYPE_p_wxListbook swig_types[33]
243 #define SWIGTYPE_p_wxStaticBitmap swig_types[34]
244 #define SWIGTYPE_p_wxSlider swig_types[35]
245 #define SWIGTYPE_p_wxStaticBox swig_types[36]
246 #define SWIGTYPE_p_wxArrayInt swig_types[37]
247 #define SWIGTYPE_p_wxContextHelp swig_types[38]
248 #define SWIGTYPE_p_long swig_types[39]
249 #define SWIGTYPE_p_wxEvtHandler swig_types[40]
250 #define SWIGTYPE_p_wxListEvent swig_types[41]
251 #define SWIGTYPE_p_wxListBox swig_types[42]
252 #define SWIGTYPE_p_wxCheckListBox swig_types[43]
253 #define SWIGTYPE_p_wxBookCtrl swig_types[44]
254 #define SWIGTYPE_p_wxSpinButton swig_types[45]
255 #define SWIGTYPE_p_wxButton swig_types[46]
256 #define SWIGTYPE_p_wxBitmapButton swig_types[47]
257 #define SWIGTYPE_p_wxRect swig_types[48]
258 #define SWIGTYPE_p_wxContextHelpButton swig_types[49]
259 #define SWIGTYPE_p_wxRadioBox swig_types[50]
260 #define SWIGTYPE_p_wxScrollBar swig_types[51]
261 #define SWIGTYPE_p_char swig_types[52]
262 #define SWIGTYPE_p_wxTreeItemId swig_types[53]
263 #define SWIGTYPE_p_wxComboBox swig_types[54]
264 #define SWIGTYPE_p_wxHelpEvent swig_types[55]
265 #define SWIGTYPE_p_wxListItem swig_types[56]
266 #define SWIGTYPE_p_wxNotebookSizer swig_types[57]
267 #define SWIGTYPE_p_wxSpinEvent swig_types[58]
268 #define SWIGTYPE_p_wxGenericDragImage swig_types[59]
269 #define SWIGTYPE_p_wxSpinCtrl swig_types[60]
270 #define SWIGTYPE_p_wxImageList swig_types[61]
271 #define SWIGTYPE_p_wxHelpProvider swig_types[62]
272 #define SWIGTYPE_p_wxTextAttr swig_types[63]
273 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64]
274 #define SWIGTYPE_p_wxPoint swig_types[65]
275 #define SWIGTYPE_p_wxListbookEvent swig_types[66]
276 #define SWIGTYPE_p_wxNotebookEvent swig_types[67]
277 #define SWIGTYPE_p_wxObject swig_types[68]
278 #define SWIGTYPE_p_wxCursor swig_types[69]
279 #define SWIGTYPE_p_wxKeyEvent swig_types[70]
280 #define SWIGTYPE_p_wxWindow swig_types[71]
281 #define SWIGTYPE_p_wxString swig_types[72]
282 #define SWIGTYPE_p_wxBitmap swig_types[73]
283 #define SWIGTYPE_p_wxTreeEvent swig_types[74]
284 #define SWIGTYPE_p_wxMouseEvent swig_types[75]
285 #define SWIGTYPE_p_wxCommandEvent swig_types[76]
286 #define SWIGTYPE_p_wxStaticText swig_types[77]
287 #define SWIGTYPE_p_wxControlWithItems swig_types[78]
288 #define SWIGTYPE_p_wxToolBarToolBase swig_types[79]
289 #define SWIGTYPE_p_wxColour swig_types[80]
290 #define SWIGTYPE_p_wxToolBar swig_types[81]
291 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82]
292 #define SWIGTYPE_p_wxValidator swig_types[83]
293 static swig_type_info *swig_types[85];
294
295 /* -------- TYPES TABLE (END) -------- */
296
297
298 /*-----------------------------------------------
299 @(target):= _controls.so
300 ------------------------------------------------*/
301 #define SWIG_init init_controls
302
303 #define SWIG_name "_controls"
304
305 /* Auxiliar swig macros */
306
307 #ifdef __cplusplus
308 #define SWIGSTATICINLINE(a) static inline a
309 #define SWIGSTATIC(a) static a
310 #define swig_new_array(type, size) (new type[(size)])
311 #define swig_delete_array(cptr) delete[] cptr
312 #define swig_const_cast(type,a) const_cast<type>(a)
313 #define swig_static_cast(type,a) static_cast<type>(a)
314 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
315
316 #ifdef HAVE_NUMERIC_CAST
317 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
318 #else
319 #define swig_numeric_cast(type,a) static_cast<type>(a)
320 #endif
321
322 #else /* C case */
323
324 #define SWIGSTATICINLINE(a) static a
325 #define SWIGSTATIC(a) static a
326 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
327 #define swig_delete_array(cptr) free((char*)cptr)
328 #define swig_const_cast(type,a) (type)(a)
329 #define swig_static_cast(type,a) (type)(a)
330 #define swig_reinterpret_cast(type,a) (type)(a)
331 #define swig_numeric_cast(type,a) (type)(a)
332
333 #endif /* __cplusplus */
334
335
336 #define SWIG_FromSignedChar PyInt_FromLong
337 #define SWIG_FromUnsignedChar PyInt_FromLong
338 #define SWIG_FromShort PyInt_FromLong
339 #define SWIG_FromUnsignedShort PyInt_FromLong
340 #define SWIG_FromInt PyInt_FromLong
341 #define SWIG_FromLong PyInt_FromLong
342 #define SWIG_FromFloat PyFloat_FromDouble
343 #define SWIG_FromDouble PyFloat_FromDouble
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346
347
348 #include "wx/wxPython/wxPython.h"
349 #include "wx/wxPython/pyclasses.h"
350
351 static const wxString wxPyPanelNameStr(wxPanelNameStr);
352 static const wxString wxPyEmptyString(wxEmptyString);
353 static const wxString wxPyControlNameStr(wxControlNameStr);
354
355 const wxArrayString wxPyEmptyStringArray;
356
357 static const wxString wxPyButtonNameStr(wxButtonNameStr);
358
359 #include <limits.h>
360
361
362 SWIGSTATICINLINE(long)
363 SWIG_CheckLongInRange(long value, const char* type,
364 long min_value, long max_value)
365 {
366 if (!PyErr_Occurred()) {
367 if (value < min_value) {
368 PyObject *err =
369 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
370 value, type, min_value);
371
372 PyErr_SetObject(PyExc_OverflowError, err);
373 Py_DECREF(err);
374 } else if (value > max_value) {
375 PyObject *err =
376 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
377 value, type, max_value);
378 PyErr_SetObject(PyExc_OverflowError, err);
379 Py_DECREF(err);
380 }
381 }
382 return value;
383 }
384
385
386 SWIGSTATICINLINE(long)
387 SWIG_AsLong(PyObject * obj)
388 {
389 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
390 }
391
392
393 #if INT_MAX != LONG_MAX
394 SWIGSTATICINLINE(int)
395 SWIG_AsInt(PyObject *obj)
396 {
397 return swig_numeric_cast(int,
398 SWIG_CheckLongInRange(SWIG_AsLong(obj),
399 "int", INT_MIN, INT_MAX));
400 }
401 #else
402 #define SWIG_AsInt SWIG_AsLong
403 #endif
404
405
406 SWIGSTATICINLINE(int)
407 SWIG_CheckInt(PyObject* obj)
408 {
409 SWIG_AsInt(obj);
410 if (PyErr_Occurred()) {
411 PyErr_Clear();
412 return 0;
413 } else {
414 return 1;
415 }
416 }
417
418
419 SWIGSTATICINLINE(int)
420 SWIG_CheckLong(PyObject* obj)
421 {
422 SWIG_AsLong(obj);
423 if (PyErr_Occurred()) {
424 PyErr_Clear();
425 return 0;
426 } else {
427 return 1;
428 }
429 }
430
431 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
432
433 SWIGSTATICINLINE(bool)
434 SWIG_AsBool(PyObject *obj)
435 {
436 return PyObject_IsTrue(obj) ? true : false;
437 }
438
439
440 SWIGSTATICINLINE(int)
441 SWIG_CheckBool(PyObject* obj)
442 {
443 SWIG_AsBool(obj);
444 if (PyErr_Occurred()) {
445 PyErr_Clear();
446 return 0;
447 } else {
448 return 1;
449 }
450 }
451
452 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
453 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
454 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
455 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
456 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
457 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
458
459 #include <wx/checklst.h>
460
461
462 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
463 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
464 if (clientData) {
465 wxPyClientData* data = new wxPyClientData(clientData);
466 self->Insert(item, pos, data);
467 } else
468 self->Insert(item, pos);
469 }
470 PyObject *wxListBox_GetSelections(wxListBox *self){
471 wxArrayInt lst;
472 self->GetSelections(lst);
473 PyObject *tup = PyTuple_New(lst.GetCount());
474 for(size_t i=0; i<lst.GetCount(); i++) {
475 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
476 }
477 return tup;
478 }
479 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
480 #ifdef __WXMSW__
481 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
482 self->GetItem(item)->SetTextColour(c);
483 #endif
484 }
485 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
486 #ifdef __WXMSW__
487 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
488 self->GetItem(item)->SetBackgroundColour(c);
489 #endif
490 }
491 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
492 #ifdef __WXMSW__
493 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
494 self->GetItem(item)->SetFont(f);
495 #endif
496 }
497 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
498
499 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
500 PyObject* o2;
501 PyObject* o3;
502
503 if (!target) {
504 target = o;
505 } else if (target == Py_None) {
506 Py_DECREF(Py_None);
507 target = o;
508 } else {
509 if (!PyTuple_Check(target)) {
510 o2 = target;
511 target = PyTuple_New(1);
512 PyTuple_SetItem(target, 0, o2);
513 }
514 o3 = PyTuple_New(1);
515 PyTuple_SetItem(o3, 0, o);
516
517 o2 = target;
518 target = PySequence_Concat(o2, o3);
519 Py_DECREF(o2);
520 Py_DECREF(o3);
521 }
522 return target;
523 }
524
525
526 SWIGSTATICINLINE(unsigned long)
527 SWIG_AsUnsignedLong(PyObject * obj)
528 {
529 if (PyLong_Check(obj)) {
530 return PyLong_AsUnsignedLong(obj);
531 } else {
532 long i = PyInt_AsLong(obj);
533 if ( !PyErr_Occurred() && (i < 0)) {
534 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
535 }
536 return i;
537 }
538 }
539
540
541 SWIGSTATICINLINE(int)
542 SWIG_CheckUnsignedLong(PyObject* obj)
543 {
544 SWIG_AsUnsignedLong(obj);
545 if (PyErr_Occurred()) {
546 PyErr_Clear();
547 return 0;
548 } else {
549 return 1;
550 }
551 }
552
553 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
554 self->AppendText(text);
555 }
556 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
557 return self->GetValue().Mid(from, to - from);
558 }
559 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
560 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
561 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
562 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
563 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
564 int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; }
565 int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; }
566 int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; }
567
568 #include <wx/slider.h>
569
570
571 static const wxString wxPySliderNameStr(wxSliderNameStr);
572 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
573
574 #if !wxUSE_TOGGLEBTN
575 // implement dummy items for platforms that don't have this class
576
577 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
578
579 class wxToggleButton : public wxControl
580 {
581 public:
582 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
583 const wxPoint&, const wxSize&, long,
584 const wxValidator&, const wxString&)
585 { wxPyRaiseNotImplemented(); }
586
587 wxToggleButton()
588 { wxPyRaiseNotImplemented(); }
589 };
590 #endif
591
592 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
593
594 SWIGSTATICINLINE(PyObject* )
595 SWIG_FromUnsignedLong(unsigned long value)
596 {
597 return (value > LONG_MAX) ?
598 PyLong_FromUnsignedLong(value)
599 : PyInt_FromLong(swig_numeric_cast(long,value));
600 }
601
602 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
603 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
604 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
605 if (udata) {
606 Py_INCREF(udata->m_obj);
607 return udata->m_obj;
608 } else {
609 Py_INCREF(Py_None);
610 return Py_None;
611 }
612 }
613 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
614 self->SetClientData(new wxPyUserData(clientData));
615 }
616 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){
617 wxPyUserData* udata = NULL;
618 if (clientData && clientData != Py_None)
619 udata = new wxPyUserData(clientData);
620 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
621 shortHelp, longHelp, udata);
622 }
623 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){
624 wxPyUserData* udata = NULL;
625 if (clientData && clientData != Py_None)
626 udata = new wxPyUserData(clientData);
627 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
628 shortHelp, longHelp, udata);
629 }
630 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
631 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
632 if (udata) {
633 Py_INCREF(udata->m_obj);
634 return udata->m_obj;
635 } else {
636 Py_INCREF(Py_None);
637 return Py_None;
638 }
639 }
640 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
641 self->SetToolClientData(id, new wxPyUserData(clientData));
642 }
643
644 #include <wx/listctrl.h>
645
646
647 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
648 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
649 // Python aware sorting function for wxPyListCtrl
650 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
651 int retval = 0;
652 PyObject* func = (PyObject*)funcPtr;
653 wxPyBeginBlockThreads();
654
655 PyObject* args = Py_BuildValue("(ii)", item1, item2);
656 PyObject* result = PyEval_CallObject(func, args);
657 Py_DECREF(args);
658 if (result) {
659 retval = PyInt_AsLong(result);
660 Py_DECREF(result);
661 }
662
663 wxPyEndBlockThreads();
664 return retval;
665 }
666
667 // C++ Version of a Python aware class
668 class wxPyListCtrl : public wxListCtrl {
669 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
670 public:
671 wxPyListCtrl() : wxListCtrl() {}
672 wxPyListCtrl(wxWindow* parent, wxWindowID id,
673 const wxPoint& pos,
674 const wxSize& size,
675 long style,
676 const wxValidator& validator,
677 const wxString& name) :
678 wxListCtrl(parent, id, pos, size, style, validator, name) {}
679
680 bool Create(wxWindow* parent, wxWindowID id,
681 const wxPoint& pos,
682 const wxSize& size,
683 long style,
684 const wxValidator& validator,
685 const wxString& name) {
686 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
687 }
688
689 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
690 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
691 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
692
693 PYPRIVATE;
694 };
695
696 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
697
698 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
699 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
700 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
701
702 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
703 wxListItem item;
704 item.SetMask( wxLIST_MASK_STATE |
705 wxLIST_MASK_TEXT |
706 wxLIST_MASK_IMAGE |
707 wxLIST_MASK_DATA |
708 wxLIST_SET_ITEM |
709 wxLIST_MASK_WIDTH |
710 wxLIST_MASK_FORMAT
711 );
712 if (self->GetColumn(col, item))
713 return new wxListItem(item);
714 else
715 return NULL;
716 }
717 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
718 wxListItem* info = new wxListItem;
719 info->m_itemId = itemId;
720 info->m_col = col;
721 info->m_mask = 0xFFFF;
722 self->GetItem(*info);
723 return info;
724 }
725 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
726 wxPoint pos;
727 self->GetItemPosition(item, pos);
728 return pos;
729 }
730 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
731 wxRect rect;
732 self->GetItemRect(item, rect, code);
733 return rect;
734 }
735 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
736 if (!PyCallable_Check(func))
737 return False;
738 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
739 }
740 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
741
742
743
744 return (wxWindow*)self->m_mainWin;
745
746 }
747
748 #include <wx/treectrl.h>
749 #include "wx/wxPython/pytree.h"
750
751 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
752 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
753 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
754 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
755 // C++ version of Python aware wxTreeCtrl
756 class wxPyTreeCtrl : public wxTreeCtrl {
757 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
758 public:
759 wxPyTreeCtrl() : wxTreeCtrl() {}
760 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
761 const wxPoint& pos,
762 const wxSize& size,
763 long style,
764 const wxValidator& validator,
765 const wxString& name) :
766 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
767
768 bool Create(wxWindow *parent, wxWindowID id,
769 const wxPoint& pos,
770 const wxSize& size,
771 long style,
772 const wxValidator& validator,
773 const wxString& name) {
774 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
775 }
776
777
778 int OnCompareItems(const wxTreeItemId& item1,
779 const wxTreeItemId& item2) {
780 int rval = 0;
781 bool found;
782 wxPyBeginBlockThreads();
783 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
784 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
785 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
786 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
787 Py_DECREF(o1);
788 Py_DECREF(o2);
789 }
790 wxPyEndBlockThreads();
791 if (! found)
792 rval = wxTreeCtrl::OnCompareItems(item1, item2);
793 return rval;
794 }
795 PYPRIVATE;
796 };
797
798 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
799
800
801
802 #if UINT_MAX < LONG_MAX
803 #define SWIG_FromUnsignedInt SWIG_FromLong
804 #else
805 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
806 #endif
807
808
809 SWIGSTATICINLINE(unsigned long)
810 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
811 unsigned long max_value)
812 {
813 if (!PyErr_Occurred()) {
814 if (value > max_value) {
815 PyObject *err =
816 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
817 value, type, max_value);
818 PyErr_SetObject(PyExc_OverflowError, err);
819 Py_DECREF(err);
820 }
821 }
822 return value;
823 }
824
825
826 #if UINT_MAX != ULONG_MAX
827 SWIGSTATICINLINE(unsigned int)
828 SWIG_AsUnsignedInt(PyObject *obj)
829 {
830 return swig_numeric_cast(unsigned int,
831 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
832 "unsigned int", UINT_MAX));
833 }
834 #else
835 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
836 #endif
837
838
839 SWIGSTATICINLINE(int)
840 SWIG_CheckUnsignedInt(PyObject* obj)
841 {
842 SWIG_AsUnsignedInt(obj);
843 if (PyErr_Occurred()) {
844 PyErr_Clear();
845 return 0;
846 } else {
847 return 1;
848 }
849 }
850
851 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
852 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
853 if (data == NULL) {
854 data = new wxPyTreeItemData();
855 data->SetId(item); // set the id
856 self->SetItemData(item, data);
857 }
858 return data;
859 }
860 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
861 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
862 if (data == NULL) {
863 data = new wxPyTreeItemData();
864 data->SetId(item); // set the id
865 self->SetItemData(item, data);
866 }
867 return data->GetData();
868 }
869 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
870 data->SetId(item); // set the id
871 self->SetItemData(item, data);
872 }
873 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
874 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
875 if (data == NULL) {
876 data = new wxPyTreeItemData(obj);
877 data->SetId(item); // set the id
878 self->SetItemData(item, data);
879 } else
880 data->SetData(obj);
881 }
882 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
883 wxPyBeginBlockThreads();
884 PyObject* rval = PyList_New(0);
885 wxArrayTreeItemIds array;
886 size_t num, x;
887 num = self->GetSelections(array);
888 for (x=0; x < num; x++) {
889 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
890 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
891 PyList_Append(rval, item);
892 }
893 wxPyEndBlockThreads();
894 return rval;
895 }
896 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
897 void* cookie = 0;
898 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
899 wxPyBeginBlockThreads();
900 PyObject* tup = PyTuple_New(2);
901 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
902 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
903 wxPyEndBlockThreads();
904 return tup;
905 }
906 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
907 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
908 wxPyBeginBlockThreads();
909 PyObject* tup = PyTuple_New(2);
910 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
911 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
912 wxPyEndBlockThreads();
913 return tup;
914 }
915 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
916 wxRect rect;
917 if (self->GetBoundingRect(item, rect, textOnly)) {
918 wxPyBeginBlockThreads();
919 wxRect* r = new wxRect(rect);
920 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
921 wxPyEndBlockThreads();
922 return val;
923 }
924 else
925 RETURN_NONE();
926 }
927 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
928 // C++ version of Python aware wxControl
929 class wxPyControl : public wxControl
930 {
931 DECLARE_DYNAMIC_CLASS(wxPyControl)
932 public:
933 wxPyControl() : wxControl() {}
934 wxPyControl(wxWindow* parent, const wxWindowID id,
935 const wxPoint& pos = wxDefaultPosition,
936 const wxSize& size = wxDefaultSize,
937 long style = 0,
938 const wxValidator& validator=wxDefaultValidator,
939 const wxString& name = wxPyControlNameStr)
940 : wxControl(parent, id, pos, size, style, validator, name) {}
941
942
943 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
944 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
945 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
946 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
947
948 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
949 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
950 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
951
952 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
953 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
954
955 DEC_PYCALLBACK__(InitDialog);
956 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
957 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
958 DEC_PYCALLBACK_BOOL_(Validate);
959
960 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
961 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
962 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
963
964 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
965 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
966
967 PYPRIVATE;
968 };
969
970 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
971
972 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
973 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
974 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
975 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
976
977 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
978 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
979 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
980
981 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
982 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
983
984 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
985 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
986 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
987 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
988
989 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
990 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
991 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
992
993 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
994 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
995
996
997
998
999 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1000
1001 #include <wx/generic/dragimgg.h>
1002
1003 #ifdef __cplusplus
1004 extern "C" {
1005 #endif
1006 static int _wrap_ButtonNameStr_set(PyObject *_val) {
1007 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1008 return 1;
1009 }
1010
1011
1012 static PyObject *_wrap_ButtonNameStr_get() {
1013 PyObject *pyobj;
1014
1015 {
1016 #if wxUSE_UNICODE
1017 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1018 #else
1019 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1020 #endif
1021 }
1022 return pyobj;
1023 }
1024
1025
1026 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
1027 PyObject *resultobj;
1028 wxWindow *arg1 = (wxWindow *) 0 ;
1029 int arg2 ;
1030 wxString *arg3 = 0 ;
1031 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1032 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1033 wxSize const &arg5_defvalue = wxDefaultSize ;
1034 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1035 long arg6 = (long) 0 ;
1036 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1037 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1038 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1039 wxString *arg8 = (wxString *) &arg8_defvalue ;
1040 wxButton *result;
1041 bool temp3 = False ;
1042 wxPoint temp4 ;
1043 wxSize temp5 ;
1044 bool temp8 = False ;
1045 PyObject * obj0 = 0 ;
1046 PyObject * obj1 = 0 ;
1047 PyObject * obj2 = 0 ;
1048 PyObject * obj3 = 0 ;
1049 PyObject * obj4 = 0 ;
1050 PyObject * obj5 = 0 ;
1051 PyObject * obj6 = 0 ;
1052 PyObject * obj7 = 0 ;
1053 char *kwnames[] = {
1054 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1055 };
1056
1057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1060 arg2 = (int) SWIG_AsInt(obj1);
1061 if (PyErr_Occurred()) SWIG_fail;
1062 {
1063 arg3 = wxString_in_helper(obj2);
1064 if (arg3 == NULL) SWIG_fail;
1065 temp3 = True;
1066 }
1067 if (obj3) {
1068 {
1069 arg4 = &temp4;
1070 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1071 }
1072 }
1073 if (obj4) {
1074 {
1075 arg5 = &temp5;
1076 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1077 }
1078 }
1079 if (obj5) {
1080 arg6 = (long) SWIG_AsLong(obj5);
1081 if (PyErr_Occurred()) SWIG_fail;
1082 }
1083 if (obj6) {
1084 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1085 SWIG_POINTER_EXCEPTION | 0)) == -1)
1086 SWIG_fail;
1087 if (arg7 == NULL) {
1088 PyErr_SetString(PyExc_TypeError,"null reference");
1089 SWIG_fail;
1090 }
1091 }
1092 if (obj7) {
1093 {
1094 arg8 = wxString_in_helper(obj7);
1095 if (arg8 == NULL) SWIG_fail;
1096 temp8 = True;
1097 }
1098 }
1099 {
1100 PyThreadState* __tstate = wxPyBeginAllowThreads();
1101 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1102
1103 wxPyEndAllowThreads(__tstate);
1104 if (PyErr_Occurred()) SWIG_fail;
1105 }
1106 {
1107 resultobj = wxPyMake_wxObject(result);
1108 }
1109 {
1110 if (temp3)
1111 delete arg3;
1112 }
1113 {
1114 if (temp8)
1115 delete arg8;
1116 }
1117 return resultobj;
1118 fail:
1119 {
1120 if (temp3)
1121 delete arg3;
1122 }
1123 {
1124 if (temp8)
1125 delete arg8;
1126 }
1127 return NULL;
1128 }
1129
1130
1131 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1132 PyObject *resultobj;
1133 wxButton *result;
1134 char *kwnames[] = {
1135 NULL
1136 };
1137
1138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1139 {
1140 PyThreadState* __tstate = wxPyBeginAllowThreads();
1141 result = (wxButton *)new wxButton();
1142
1143 wxPyEndAllowThreads(__tstate);
1144 if (PyErr_Occurred()) SWIG_fail;
1145 }
1146 {
1147 resultobj = wxPyMake_wxObject(result);
1148 }
1149 return resultobj;
1150 fail:
1151 return NULL;
1152 }
1153
1154
1155 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1156 PyObject *resultobj;
1157 wxButton *arg1 = (wxButton *) 0 ;
1158 wxWindow *arg2 = (wxWindow *) 0 ;
1159 int arg3 ;
1160 wxString *arg4 = 0 ;
1161 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1162 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1163 wxSize const &arg6_defvalue = wxDefaultSize ;
1164 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1165 long arg7 = (long) 0 ;
1166 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1167 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1168 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1169 wxString *arg9 = (wxString *) &arg9_defvalue ;
1170 bool result;
1171 bool temp4 = False ;
1172 wxPoint temp5 ;
1173 wxSize temp6 ;
1174 bool temp9 = False ;
1175 PyObject * obj0 = 0 ;
1176 PyObject * obj1 = 0 ;
1177 PyObject * obj2 = 0 ;
1178 PyObject * obj3 = 0 ;
1179 PyObject * obj4 = 0 ;
1180 PyObject * obj5 = 0 ;
1181 PyObject * obj6 = 0 ;
1182 PyObject * obj7 = 0 ;
1183 PyObject * obj8 = 0 ;
1184 char *kwnames[] = {
1185 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1186 };
1187
1188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1193 arg3 = (int) SWIG_AsInt(obj2);
1194 if (PyErr_Occurred()) SWIG_fail;
1195 {
1196 arg4 = wxString_in_helper(obj3);
1197 if (arg4 == NULL) SWIG_fail;
1198 temp4 = True;
1199 }
1200 if (obj4) {
1201 {
1202 arg5 = &temp5;
1203 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1204 }
1205 }
1206 if (obj5) {
1207 {
1208 arg6 = &temp6;
1209 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1210 }
1211 }
1212 if (obj6) {
1213 arg7 = (long) SWIG_AsLong(obj6);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 }
1216 if (obj7) {
1217 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1218 SWIG_POINTER_EXCEPTION | 0)) == -1)
1219 SWIG_fail;
1220 if (arg8 == NULL) {
1221 PyErr_SetString(PyExc_TypeError,"null reference");
1222 SWIG_fail;
1223 }
1224 }
1225 if (obj8) {
1226 {
1227 arg9 = wxString_in_helper(obj8);
1228 if (arg9 == NULL) SWIG_fail;
1229 temp9 = True;
1230 }
1231 }
1232 {
1233 PyThreadState* __tstate = wxPyBeginAllowThreads();
1234 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1235
1236 wxPyEndAllowThreads(__tstate);
1237 if (PyErr_Occurred()) SWIG_fail;
1238 }
1239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1240 {
1241 if (temp4)
1242 delete arg4;
1243 }
1244 {
1245 if (temp9)
1246 delete arg9;
1247 }
1248 return resultobj;
1249 fail:
1250 {
1251 if (temp4)
1252 delete arg4;
1253 }
1254 {
1255 if (temp9)
1256 delete arg9;
1257 }
1258 return NULL;
1259 }
1260
1261
1262 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1263 PyObject *resultobj;
1264 wxButton *arg1 = (wxButton *) 0 ;
1265 PyObject * obj0 = 0 ;
1266 char *kwnames[] = {
1267 (char *) "self", NULL
1268 };
1269
1270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1273 {
1274 PyThreadState* __tstate = wxPyBeginAllowThreads();
1275 (arg1)->SetDefault();
1276
1277 wxPyEndAllowThreads(__tstate);
1278 if (PyErr_Occurred()) SWIG_fail;
1279 }
1280 Py_INCREF(Py_None); resultobj = Py_None;
1281 return resultobj;
1282 fail:
1283 return NULL;
1284 }
1285
1286
1287 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1288 PyObject *resultobj;
1289 wxSize result;
1290 char *kwnames[] = {
1291 NULL
1292 };
1293
1294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1295 {
1296 PyThreadState* __tstate = wxPyBeginAllowThreads();
1297 result = wxButton::GetDefaultSize();
1298
1299 wxPyEndAllowThreads(__tstate);
1300 if (PyErr_Occurred()) SWIG_fail;
1301 }
1302 {
1303 wxSize * resultptr;
1304 resultptr = new wxSize((wxSize &) result);
1305 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1306 }
1307 return resultobj;
1308 fail:
1309 return NULL;
1310 }
1311
1312
1313 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1314 PyObject *obj;
1315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1316 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1317 Py_INCREF(obj);
1318 return Py_BuildValue((char *)"");
1319 }
1320 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1321 PyObject *resultobj;
1322 wxWindow *arg1 = (wxWindow *) 0 ;
1323 int arg2 ;
1324 wxBitmap *arg3 = 0 ;
1325 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1326 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1327 wxSize const &arg5_defvalue = wxDefaultSize ;
1328 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1329 long arg6 = (long) wxBU_AUTODRAW ;
1330 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1331 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1332 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1333 wxString *arg8 = (wxString *) &arg8_defvalue ;
1334 wxBitmapButton *result;
1335 wxPoint temp4 ;
1336 wxSize temp5 ;
1337 bool temp8 = False ;
1338 PyObject * obj0 = 0 ;
1339 PyObject * obj1 = 0 ;
1340 PyObject * obj2 = 0 ;
1341 PyObject * obj3 = 0 ;
1342 PyObject * obj4 = 0 ;
1343 PyObject * obj5 = 0 ;
1344 PyObject * obj6 = 0 ;
1345 PyObject * obj7 = 0 ;
1346 char *kwnames[] = {
1347 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1348 };
1349
1350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1353 arg2 = (int) SWIG_AsInt(obj1);
1354 if (PyErr_Occurred()) SWIG_fail;
1355 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1356 SWIG_POINTER_EXCEPTION | 0)) == -1)
1357 SWIG_fail;
1358 if (arg3 == NULL) {
1359 PyErr_SetString(PyExc_TypeError,"null reference");
1360 SWIG_fail;
1361 }
1362 if (obj3) {
1363 {
1364 arg4 = &temp4;
1365 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1366 }
1367 }
1368 if (obj4) {
1369 {
1370 arg5 = &temp5;
1371 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1372 }
1373 }
1374 if (obj5) {
1375 arg6 = (long) SWIG_AsLong(obj5);
1376 if (PyErr_Occurred()) SWIG_fail;
1377 }
1378 if (obj6) {
1379 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1380 SWIG_POINTER_EXCEPTION | 0)) == -1)
1381 SWIG_fail;
1382 if (arg7 == NULL) {
1383 PyErr_SetString(PyExc_TypeError,"null reference");
1384 SWIG_fail;
1385 }
1386 }
1387 if (obj7) {
1388 {
1389 arg8 = wxString_in_helper(obj7);
1390 if (arg8 == NULL) SWIG_fail;
1391 temp8 = True;
1392 }
1393 }
1394 {
1395 PyThreadState* __tstate = wxPyBeginAllowThreads();
1396 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1397
1398 wxPyEndAllowThreads(__tstate);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 {
1402 resultobj = wxPyMake_wxObject(result);
1403 }
1404 {
1405 if (temp8)
1406 delete arg8;
1407 }
1408 return resultobj;
1409 fail:
1410 {
1411 if (temp8)
1412 delete arg8;
1413 }
1414 return NULL;
1415 }
1416
1417
1418 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1419 PyObject *resultobj;
1420 wxBitmapButton *result;
1421 char *kwnames[] = {
1422 NULL
1423 };
1424
1425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1426 {
1427 PyThreadState* __tstate = wxPyBeginAllowThreads();
1428 result = (wxBitmapButton *)new wxBitmapButton();
1429
1430 wxPyEndAllowThreads(__tstate);
1431 if (PyErr_Occurred()) SWIG_fail;
1432 }
1433 {
1434 resultobj = wxPyMake_wxObject(result);
1435 }
1436 return resultobj;
1437 fail:
1438 return NULL;
1439 }
1440
1441
1442 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1445 wxWindow *arg2 = (wxWindow *) 0 ;
1446 int arg3 ;
1447 wxBitmap *arg4 = 0 ;
1448 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1449 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1450 wxSize const &arg6_defvalue = wxDefaultSize ;
1451 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1452 long arg7 = (long) wxBU_AUTODRAW ;
1453 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1454 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1455 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1456 wxString *arg9 = (wxString *) &arg9_defvalue ;
1457 bool result;
1458 wxPoint temp5 ;
1459 wxSize temp6 ;
1460 bool temp9 = False ;
1461 PyObject * obj0 = 0 ;
1462 PyObject * obj1 = 0 ;
1463 PyObject * obj2 = 0 ;
1464 PyObject * obj3 = 0 ;
1465 PyObject * obj4 = 0 ;
1466 PyObject * obj5 = 0 ;
1467 PyObject * obj6 = 0 ;
1468 PyObject * obj7 = 0 ;
1469 PyObject * obj8 = 0 ;
1470 char *kwnames[] = {
1471 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1472 };
1473
1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1477 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1479 arg3 = (int) SWIG_AsInt(obj2);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1482 SWIG_POINTER_EXCEPTION | 0)) == -1)
1483 SWIG_fail;
1484 if (arg4 == NULL) {
1485 PyErr_SetString(PyExc_TypeError,"null reference");
1486 SWIG_fail;
1487 }
1488 if (obj4) {
1489 {
1490 arg5 = &temp5;
1491 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1492 }
1493 }
1494 if (obj5) {
1495 {
1496 arg6 = &temp6;
1497 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1498 }
1499 }
1500 if (obj6) {
1501 arg7 = (long) SWIG_AsLong(obj6);
1502 if (PyErr_Occurred()) SWIG_fail;
1503 }
1504 if (obj7) {
1505 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1506 SWIG_POINTER_EXCEPTION | 0)) == -1)
1507 SWIG_fail;
1508 if (arg8 == NULL) {
1509 PyErr_SetString(PyExc_TypeError,"null reference");
1510 SWIG_fail;
1511 }
1512 }
1513 if (obj8) {
1514 {
1515 arg9 = wxString_in_helper(obj8);
1516 if (arg9 == NULL) SWIG_fail;
1517 temp9 = True;
1518 }
1519 }
1520 {
1521 PyThreadState* __tstate = wxPyBeginAllowThreads();
1522 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1523
1524 wxPyEndAllowThreads(__tstate);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 }
1527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1528 {
1529 if (temp9)
1530 delete arg9;
1531 }
1532 return resultobj;
1533 fail:
1534 {
1535 if (temp9)
1536 delete arg9;
1537 }
1538 return NULL;
1539 }
1540
1541
1542 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1543 PyObject *resultobj;
1544 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1545 wxBitmap result;
1546 PyObject * obj0 = 0 ;
1547 char *kwnames[] = {
1548 (char *) "self", NULL
1549 };
1550
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 result = (arg1)->GetBitmapLabel();
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 {
1562 wxBitmap * resultptr;
1563 resultptr = new wxBitmap((wxBitmap &) result);
1564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1565 }
1566 return resultobj;
1567 fail:
1568 return NULL;
1569 }
1570
1571
1572 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject *resultobj;
1574 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1575 wxBitmap result;
1576 PyObject * obj0 = 0 ;
1577 char *kwnames[] = {
1578 (char *) "self", NULL
1579 };
1580
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1584 {
1585 PyThreadState* __tstate = wxPyBeginAllowThreads();
1586 result = (arg1)->GetBitmapDisabled();
1587
1588 wxPyEndAllowThreads(__tstate);
1589 if (PyErr_Occurred()) SWIG_fail;
1590 }
1591 {
1592 wxBitmap * resultptr;
1593 resultptr = new wxBitmap((wxBitmap &) result);
1594 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1595 }
1596 return resultobj;
1597 fail:
1598 return NULL;
1599 }
1600
1601
1602 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1603 PyObject *resultobj;
1604 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1605 wxBitmap result;
1606 PyObject * obj0 = 0 ;
1607 char *kwnames[] = {
1608 (char *) "self", NULL
1609 };
1610
1611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1614 {
1615 PyThreadState* __tstate = wxPyBeginAllowThreads();
1616 result = (arg1)->GetBitmapFocus();
1617
1618 wxPyEndAllowThreads(__tstate);
1619 if (PyErr_Occurred()) SWIG_fail;
1620 }
1621 {
1622 wxBitmap * resultptr;
1623 resultptr = new wxBitmap((wxBitmap &) result);
1624 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1625 }
1626 return resultobj;
1627 fail:
1628 return NULL;
1629 }
1630
1631
1632 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1633 PyObject *resultobj;
1634 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1635 wxBitmap result;
1636 PyObject * obj0 = 0 ;
1637 char *kwnames[] = {
1638 (char *) "self", NULL
1639 };
1640
1641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1644 {
1645 PyThreadState* __tstate = wxPyBeginAllowThreads();
1646 result = (arg1)->GetBitmapSelected();
1647
1648 wxPyEndAllowThreads(__tstate);
1649 if (PyErr_Occurred()) SWIG_fail;
1650 }
1651 {
1652 wxBitmap * resultptr;
1653 resultptr = new wxBitmap((wxBitmap &) result);
1654 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1655 }
1656 return resultobj;
1657 fail:
1658 return NULL;
1659 }
1660
1661
1662 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1663 PyObject *resultobj;
1664 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1665 wxBitmap *arg2 = 0 ;
1666 PyObject * obj0 = 0 ;
1667 PyObject * obj1 = 0 ;
1668 char *kwnames[] = {
1669 (char *) "self",(char *) "bitmap", NULL
1670 };
1671
1672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1675 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1676 SWIG_POINTER_EXCEPTION | 0)) == -1)
1677 SWIG_fail;
1678 if (arg2 == NULL) {
1679 PyErr_SetString(PyExc_TypeError,"null reference");
1680 SWIG_fail;
1681 }
1682 {
1683 PyThreadState* __tstate = wxPyBeginAllowThreads();
1684 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1685
1686 wxPyEndAllowThreads(__tstate);
1687 if (PyErr_Occurred()) SWIG_fail;
1688 }
1689 Py_INCREF(Py_None); resultobj = Py_None;
1690 return resultobj;
1691 fail:
1692 return NULL;
1693 }
1694
1695
1696 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1697 PyObject *resultobj;
1698 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1699 wxBitmap *arg2 = 0 ;
1700 PyObject * obj0 = 0 ;
1701 PyObject * obj1 = 0 ;
1702 char *kwnames[] = {
1703 (char *) "self",(char *) "bitmap", NULL
1704 };
1705
1706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1709 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1710 SWIG_POINTER_EXCEPTION | 0)) == -1)
1711 SWIG_fail;
1712 if (arg2 == NULL) {
1713 PyErr_SetString(PyExc_TypeError,"null reference");
1714 SWIG_fail;
1715 }
1716 {
1717 PyThreadState* __tstate = wxPyBeginAllowThreads();
1718 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1719
1720 wxPyEndAllowThreads(__tstate);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 }
1723 Py_INCREF(Py_None); resultobj = Py_None;
1724 return resultobj;
1725 fail:
1726 return NULL;
1727 }
1728
1729
1730 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1731 PyObject *resultobj;
1732 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1733 wxBitmap *arg2 = 0 ;
1734 PyObject * obj0 = 0 ;
1735 PyObject * obj1 = 0 ;
1736 char *kwnames[] = {
1737 (char *) "self",(char *) "bitmap", NULL
1738 };
1739
1740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1743 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1744 SWIG_POINTER_EXCEPTION | 0)) == -1)
1745 SWIG_fail;
1746 if (arg2 == NULL) {
1747 PyErr_SetString(PyExc_TypeError,"null reference");
1748 SWIG_fail;
1749 }
1750 {
1751 PyThreadState* __tstate = wxPyBeginAllowThreads();
1752 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1753
1754 wxPyEndAllowThreads(__tstate);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 Py_INCREF(Py_None); resultobj = Py_None;
1758 return resultobj;
1759 fail:
1760 return NULL;
1761 }
1762
1763
1764 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1765 PyObject *resultobj;
1766 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1767 wxBitmap *arg2 = 0 ;
1768 PyObject * obj0 = 0 ;
1769 PyObject * obj1 = 0 ;
1770 char *kwnames[] = {
1771 (char *) "self",(char *) "bitmap", NULL
1772 };
1773
1774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1777 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1778 SWIG_POINTER_EXCEPTION | 0)) == -1)
1779 SWIG_fail;
1780 if (arg2 == NULL) {
1781 PyErr_SetString(PyExc_TypeError,"null reference");
1782 SWIG_fail;
1783 }
1784 {
1785 PyThreadState* __tstate = wxPyBeginAllowThreads();
1786 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1787
1788 wxPyEndAllowThreads(__tstate);
1789 if (PyErr_Occurred()) SWIG_fail;
1790 }
1791 Py_INCREF(Py_None); resultobj = Py_None;
1792 return resultobj;
1793 fail:
1794 return NULL;
1795 }
1796
1797
1798 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1799 PyObject *resultobj;
1800 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1801 int arg2 ;
1802 int arg3 ;
1803 PyObject * obj0 = 0 ;
1804 PyObject * obj1 = 0 ;
1805 PyObject * obj2 = 0 ;
1806 char *kwnames[] = {
1807 (char *) "self",(char *) "x",(char *) "y", NULL
1808 };
1809
1810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1813 arg2 = (int) SWIG_AsInt(obj1);
1814 if (PyErr_Occurred()) SWIG_fail;
1815 arg3 = (int) SWIG_AsInt(obj2);
1816 if (PyErr_Occurred()) SWIG_fail;
1817 {
1818 PyThreadState* __tstate = wxPyBeginAllowThreads();
1819 (arg1)->SetMargins(arg2,arg3);
1820
1821 wxPyEndAllowThreads(__tstate);
1822 if (PyErr_Occurred()) SWIG_fail;
1823 }
1824 Py_INCREF(Py_None); resultobj = Py_None;
1825 return resultobj;
1826 fail:
1827 return NULL;
1828 }
1829
1830
1831 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1832 PyObject *resultobj;
1833 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1834 int result;
1835 PyObject * obj0 = 0 ;
1836 char *kwnames[] = {
1837 (char *) "self", NULL
1838 };
1839
1840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1843 {
1844 PyThreadState* __tstate = wxPyBeginAllowThreads();
1845 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1846
1847 wxPyEndAllowThreads(__tstate);
1848 if (PyErr_Occurred()) SWIG_fail;
1849 }
1850 resultobj = SWIG_FromInt((int)result);
1851 return resultobj;
1852 fail:
1853 return NULL;
1854 }
1855
1856
1857 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1858 PyObject *resultobj;
1859 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1860 int result;
1861 PyObject * obj0 = 0 ;
1862 char *kwnames[] = {
1863 (char *) "self", NULL
1864 };
1865
1866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1869 {
1870 PyThreadState* __tstate = wxPyBeginAllowThreads();
1871 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1872
1873 wxPyEndAllowThreads(__tstate);
1874 if (PyErr_Occurred()) SWIG_fail;
1875 }
1876 resultobj = SWIG_FromInt((int)result);
1877 return resultobj;
1878 fail:
1879 return NULL;
1880 }
1881
1882
1883 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1884 PyObject *obj;
1885 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1886 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1887 Py_INCREF(obj);
1888 return Py_BuildValue((char *)"");
1889 }
1890 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1891 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1892 return 1;
1893 }
1894
1895
1896 static PyObject *_wrap_CheckBoxNameStr_get() {
1897 PyObject *pyobj;
1898
1899 {
1900 #if wxUSE_UNICODE
1901 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1902 #else
1903 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1904 #endif
1905 }
1906 return pyobj;
1907 }
1908
1909
1910 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1911 PyObject *resultobj;
1912 wxWindow *arg1 = (wxWindow *) 0 ;
1913 int arg2 ;
1914 wxString *arg3 = 0 ;
1915 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1916 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1917 wxSize const &arg5_defvalue = wxDefaultSize ;
1918 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1919 long arg6 = (long) 0 ;
1920 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1921 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1922 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1923 wxString *arg8 = (wxString *) &arg8_defvalue ;
1924 wxCheckBox *result;
1925 bool temp3 = False ;
1926 wxPoint temp4 ;
1927 wxSize temp5 ;
1928 bool temp8 = False ;
1929 PyObject * obj0 = 0 ;
1930 PyObject * obj1 = 0 ;
1931 PyObject * obj2 = 0 ;
1932 PyObject * obj3 = 0 ;
1933 PyObject * obj4 = 0 ;
1934 PyObject * obj5 = 0 ;
1935 PyObject * obj6 = 0 ;
1936 PyObject * obj7 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1939 };
1940
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1944 arg2 = (int) SWIG_AsInt(obj1);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 {
1947 arg3 = wxString_in_helper(obj2);
1948 if (arg3 == NULL) SWIG_fail;
1949 temp3 = True;
1950 }
1951 if (obj3) {
1952 {
1953 arg4 = &temp4;
1954 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1955 }
1956 }
1957 if (obj4) {
1958 {
1959 arg5 = &temp5;
1960 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1961 }
1962 }
1963 if (obj5) {
1964 arg6 = (long) SWIG_AsLong(obj5);
1965 if (PyErr_Occurred()) SWIG_fail;
1966 }
1967 if (obj6) {
1968 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1969 SWIG_POINTER_EXCEPTION | 0)) == -1)
1970 SWIG_fail;
1971 if (arg7 == NULL) {
1972 PyErr_SetString(PyExc_TypeError,"null reference");
1973 SWIG_fail;
1974 }
1975 }
1976 if (obj7) {
1977 {
1978 arg8 = wxString_in_helper(obj7);
1979 if (arg8 == NULL) SWIG_fail;
1980 temp8 = True;
1981 }
1982 }
1983 {
1984 PyThreadState* __tstate = wxPyBeginAllowThreads();
1985 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1986
1987 wxPyEndAllowThreads(__tstate);
1988 if (PyErr_Occurred()) SWIG_fail;
1989 }
1990 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
1991 {
1992 if (temp3)
1993 delete arg3;
1994 }
1995 {
1996 if (temp8)
1997 delete arg8;
1998 }
1999 return resultobj;
2000 fail:
2001 {
2002 if (temp3)
2003 delete arg3;
2004 }
2005 {
2006 if (temp8)
2007 delete arg8;
2008 }
2009 return NULL;
2010 }
2011
2012
2013 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject *resultobj;
2015 wxCheckBox *result;
2016 char *kwnames[] = {
2017 NULL
2018 };
2019
2020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2021 {
2022 PyThreadState* __tstate = wxPyBeginAllowThreads();
2023 result = (wxCheckBox *)new wxCheckBox();
2024
2025 wxPyEndAllowThreads(__tstate);
2026 if (PyErr_Occurred()) SWIG_fail;
2027 }
2028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2029 return resultobj;
2030 fail:
2031 return NULL;
2032 }
2033
2034
2035 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2036 PyObject *resultobj;
2037 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2038 wxWindow *arg2 = (wxWindow *) 0 ;
2039 int arg3 ;
2040 wxString *arg4 = 0 ;
2041 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2042 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2043 wxSize const &arg6_defvalue = wxDefaultSize ;
2044 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2045 long arg7 = (long) 0 ;
2046 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2047 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2048 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2049 wxString *arg9 = (wxString *) &arg9_defvalue ;
2050 bool result;
2051 bool temp4 = False ;
2052 wxPoint temp5 ;
2053 wxSize temp6 ;
2054 bool temp9 = False ;
2055 PyObject * obj0 = 0 ;
2056 PyObject * obj1 = 0 ;
2057 PyObject * obj2 = 0 ;
2058 PyObject * obj3 = 0 ;
2059 PyObject * obj4 = 0 ;
2060 PyObject * obj5 = 0 ;
2061 PyObject * obj6 = 0 ;
2062 PyObject * obj7 = 0 ;
2063 PyObject * obj8 = 0 ;
2064 char *kwnames[] = {
2065 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2073 arg3 = (int) SWIG_AsInt(obj2);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 {
2076 arg4 = wxString_in_helper(obj3);
2077 if (arg4 == NULL) SWIG_fail;
2078 temp4 = True;
2079 }
2080 if (obj4) {
2081 {
2082 arg5 = &temp5;
2083 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2084 }
2085 }
2086 if (obj5) {
2087 {
2088 arg6 = &temp6;
2089 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2090 }
2091 }
2092 if (obj6) {
2093 arg7 = (long) SWIG_AsLong(obj6);
2094 if (PyErr_Occurred()) SWIG_fail;
2095 }
2096 if (obj7) {
2097 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2098 SWIG_POINTER_EXCEPTION | 0)) == -1)
2099 SWIG_fail;
2100 if (arg8 == NULL) {
2101 PyErr_SetString(PyExc_TypeError,"null reference");
2102 SWIG_fail;
2103 }
2104 }
2105 if (obj8) {
2106 {
2107 arg9 = wxString_in_helper(obj8);
2108 if (arg9 == NULL) SWIG_fail;
2109 temp9 = True;
2110 }
2111 }
2112 {
2113 PyThreadState* __tstate = wxPyBeginAllowThreads();
2114 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2115
2116 wxPyEndAllowThreads(__tstate);
2117 if (PyErr_Occurred()) SWIG_fail;
2118 }
2119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2120 {
2121 if (temp4)
2122 delete arg4;
2123 }
2124 {
2125 if (temp9)
2126 delete arg9;
2127 }
2128 return resultobj;
2129 fail:
2130 {
2131 if (temp4)
2132 delete arg4;
2133 }
2134 {
2135 if (temp9)
2136 delete arg9;
2137 }
2138 return NULL;
2139 }
2140
2141
2142 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2143 PyObject *resultobj;
2144 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2145 bool result;
2146 PyObject * obj0 = 0 ;
2147 char *kwnames[] = {
2148 (char *) "self", NULL
2149 };
2150
2151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2154 {
2155 PyThreadState* __tstate = wxPyBeginAllowThreads();
2156 result = (bool)(arg1)->GetValue();
2157
2158 wxPyEndAllowThreads(__tstate);
2159 if (PyErr_Occurred()) SWIG_fail;
2160 }
2161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2162 return resultobj;
2163 fail:
2164 return NULL;
2165 }
2166
2167
2168 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2169 PyObject *resultobj;
2170 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2171 bool result;
2172 PyObject * obj0 = 0 ;
2173 char *kwnames[] = {
2174 (char *) "self", NULL
2175 };
2176
2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2180 {
2181 PyThreadState* __tstate = wxPyBeginAllowThreads();
2182 result = (bool)(arg1)->IsChecked();
2183
2184 wxPyEndAllowThreads(__tstate);
2185 if (PyErr_Occurred()) SWIG_fail;
2186 }
2187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2188 return resultobj;
2189 fail:
2190 return NULL;
2191 }
2192
2193
2194 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2195 PyObject *resultobj;
2196 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2197 bool arg2 ;
2198 PyObject * obj0 = 0 ;
2199 PyObject * obj1 = 0 ;
2200 char *kwnames[] = {
2201 (char *) "self",(char *) "state", NULL
2202 };
2203
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2207 arg2 = (bool const) SWIG_AsBool(obj1);
2208 if (PyErr_Occurred()) SWIG_fail;
2209 {
2210 PyThreadState* __tstate = wxPyBeginAllowThreads();
2211 (arg1)->SetValue(arg2);
2212
2213 wxPyEndAllowThreads(__tstate);
2214 if (PyErr_Occurred()) SWIG_fail;
2215 }
2216 Py_INCREF(Py_None); resultobj = Py_None;
2217 return resultobj;
2218 fail:
2219 return NULL;
2220 }
2221
2222
2223 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2224 PyObject *resultobj;
2225 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2226 int result;
2227 PyObject * obj0 = 0 ;
2228 char *kwnames[] = {
2229 (char *) "self", NULL
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2235 {
2236 PyThreadState* __tstate = wxPyBeginAllowThreads();
2237 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2238
2239 wxPyEndAllowThreads(__tstate);
2240 if (PyErr_Occurred()) SWIG_fail;
2241 }
2242 resultobj = SWIG_FromInt((int)result);
2243 return resultobj;
2244 fail:
2245 return NULL;
2246 }
2247
2248
2249 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2250 PyObject *resultobj;
2251 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2252 int arg2 ;
2253 PyObject * obj0 = 0 ;
2254 PyObject * obj1 = 0 ;
2255 char *kwnames[] = {
2256 (char *) "self",(char *) "state", NULL
2257 };
2258
2259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2262 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2263 if (PyErr_Occurred()) SWIG_fail;
2264 {
2265 PyThreadState* __tstate = wxPyBeginAllowThreads();
2266 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2267
2268 wxPyEndAllowThreads(__tstate);
2269 if (PyErr_Occurred()) SWIG_fail;
2270 }
2271 Py_INCREF(Py_None); resultobj = Py_None;
2272 return resultobj;
2273 fail:
2274 return NULL;
2275 }
2276
2277
2278 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2279 PyObject *resultobj;
2280 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2281 bool result;
2282 PyObject * obj0 = 0 ;
2283 char *kwnames[] = {
2284 (char *) "self", NULL
2285 };
2286
2287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2290 {
2291 PyThreadState* __tstate = wxPyBeginAllowThreads();
2292 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2293
2294 wxPyEndAllowThreads(__tstate);
2295 if (PyErr_Occurred()) SWIG_fail;
2296 }
2297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2298 return resultobj;
2299 fail:
2300 return NULL;
2301 }
2302
2303
2304 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2305 PyObject *resultobj;
2306 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2307 bool result;
2308 PyObject * obj0 = 0 ;
2309 char *kwnames[] = {
2310 (char *) "self", NULL
2311 };
2312
2313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2316 {
2317 PyThreadState* __tstate = wxPyBeginAllowThreads();
2318 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2319
2320 wxPyEndAllowThreads(__tstate);
2321 if (PyErr_Occurred()) SWIG_fail;
2322 }
2323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2324 return resultobj;
2325 fail:
2326 return NULL;
2327 }
2328
2329
2330 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2331 PyObject *obj;
2332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2333 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2334 Py_INCREF(obj);
2335 return Py_BuildValue((char *)"");
2336 }
2337 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2338 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2339 return 1;
2340 }
2341
2342
2343 static PyObject *_wrap_ChoiceNameStr_get() {
2344 PyObject *pyobj;
2345
2346 {
2347 #if wxUSE_UNICODE
2348 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2349 #else
2350 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2351 #endif
2352 }
2353 return pyobj;
2354 }
2355
2356
2357 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2358 PyObject *resultobj;
2359 wxWindow *arg1 = (wxWindow *) 0 ;
2360 int arg2 ;
2361 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2362 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2363 wxSize const &arg4_defvalue = wxDefaultSize ;
2364 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2365 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2366 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2367 long arg6 = (long) 0 ;
2368 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2369 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2370 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2371 wxString *arg8 = (wxString *) &arg8_defvalue ;
2372 wxChoice *result;
2373 wxPoint temp3 ;
2374 wxSize temp4 ;
2375 bool temp5 = False ;
2376 bool temp8 = False ;
2377 PyObject * obj0 = 0 ;
2378 PyObject * obj1 = 0 ;
2379 PyObject * obj2 = 0 ;
2380 PyObject * obj3 = 0 ;
2381 PyObject * obj4 = 0 ;
2382 PyObject * obj5 = 0 ;
2383 PyObject * obj6 = 0 ;
2384 PyObject * obj7 = 0 ;
2385 char *kwnames[] = {
2386 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2387 };
2388
2389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2392 arg2 = (int) SWIG_AsInt(obj1);
2393 if (PyErr_Occurred()) SWIG_fail;
2394 if (obj2) {
2395 {
2396 arg3 = &temp3;
2397 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2398 }
2399 }
2400 if (obj3) {
2401 {
2402 arg4 = &temp4;
2403 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2404 }
2405 }
2406 if (obj4) {
2407 {
2408 if (! PySequence_Check(obj4)) {
2409 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2410 SWIG_fail;
2411 }
2412 arg5 = new wxArrayString;
2413 temp5 = True;
2414 int i, len=PySequence_Length(obj4);
2415 for (i=0; i<len; i++) {
2416 PyObject* item = PySequence_GetItem(obj4, i);
2417 #if wxUSE_UNICODE
2418 PyObject* str = PyObject_Unicode(item);
2419 #else
2420 PyObject* str = PyObject_Str(item);
2421 #endif
2422 arg5->Add(Py2wxString(str));
2423 Py_DECREF(item);
2424 Py_DECREF(str);
2425 }
2426 }
2427 }
2428 if (obj5) {
2429 arg6 = (long) SWIG_AsLong(obj5);
2430 if (PyErr_Occurred()) SWIG_fail;
2431 }
2432 if (obj6) {
2433 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2434 SWIG_POINTER_EXCEPTION | 0)) == -1)
2435 SWIG_fail;
2436 if (arg7 == NULL) {
2437 PyErr_SetString(PyExc_TypeError,"null reference");
2438 SWIG_fail;
2439 }
2440 }
2441 if (obj7) {
2442 {
2443 arg8 = wxString_in_helper(obj7);
2444 if (arg8 == NULL) SWIG_fail;
2445 temp8 = True;
2446 }
2447 }
2448 {
2449 PyThreadState* __tstate = wxPyBeginAllowThreads();
2450 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2451
2452 wxPyEndAllowThreads(__tstate);
2453 if (PyErr_Occurred()) SWIG_fail;
2454 }
2455 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2456 {
2457 if (temp5) delete arg5;
2458 }
2459 {
2460 if (temp8)
2461 delete arg8;
2462 }
2463 return resultobj;
2464 fail:
2465 {
2466 if (temp5) delete arg5;
2467 }
2468 {
2469 if (temp8)
2470 delete arg8;
2471 }
2472 return NULL;
2473 }
2474
2475
2476 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2477 PyObject *resultobj;
2478 wxChoice *result;
2479 char *kwnames[] = {
2480 NULL
2481 };
2482
2483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2484 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 result = (wxChoice *)new wxChoice();
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2492 return resultobj;
2493 fail:
2494 return NULL;
2495 }
2496
2497
2498 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2499 PyObject *resultobj;
2500 wxChoice *arg1 = (wxChoice *) 0 ;
2501 wxWindow *arg2 = (wxWindow *) 0 ;
2502 int arg3 ;
2503 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2504 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2505 wxSize const &arg5_defvalue = wxDefaultSize ;
2506 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2507 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2508 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2509 long arg7 = (long) 0 ;
2510 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2511 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2512 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2513 wxString *arg9 = (wxString *) &arg9_defvalue ;
2514 bool result;
2515 wxPoint temp4 ;
2516 wxSize temp5 ;
2517 bool temp6 = False ;
2518 bool temp9 = False ;
2519 PyObject * obj0 = 0 ;
2520 PyObject * obj1 = 0 ;
2521 PyObject * obj2 = 0 ;
2522 PyObject * obj3 = 0 ;
2523 PyObject * obj4 = 0 ;
2524 PyObject * obj5 = 0 ;
2525 PyObject * obj6 = 0 ;
2526 PyObject * obj7 = 0 ;
2527 PyObject * obj8 = 0 ;
2528 char *kwnames[] = {
2529 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2530 };
2531
2532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2537 arg3 = (int) SWIG_AsInt(obj2);
2538 if (PyErr_Occurred()) SWIG_fail;
2539 if (obj3) {
2540 {
2541 arg4 = &temp4;
2542 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2543 }
2544 }
2545 if (obj4) {
2546 {
2547 arg5 = &temp5;
2548 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2549 }
2550 }
2551 if (obj5) {
2552 {
2553 if (! PySequence_Check(obj5)) {
2554 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2555 SWIG_fail;
2556 }
2557 arg6 = new wxArrayString;
2558 temp6 = True;
2559 int i, len=PySequence_Length(obj5);
2560 for (i=0; i<len; i++) {
2561 PyObject* item = PySequence_GetItem(obj5, i);
2562 #if wxUSE_UNICODE
2563 PyObject* str = PyObject_Unicode(item);
2564 #else
2565 PyObject* str = PyObject_Str(item);
2566 #endif
2567 arg6->Add(Py2wxString(str));
2568 Py_DECREF(item);
2569 Py_DECREF(str);
2570 }
2571 }
2572 }
2573 if (obj6) {
2574 arg7 = (long) SWIG_AsLong(obj6);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 if (obj7) {
2578 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2579 SWIG_POINTER_EXCEPTION | 0)) == -1)
2580 SWIG_fail;
2581 if (arg8 == NULL) {
2582 PyErr_SetString(PyExc_TypeError,"null reference");
2583 SWIG_fail;
2584 }
2585 }
2586 if (obj8) {
2587 {
2588 arg9 = wxString_in_helper(obj8);
2589 if (arg9 == NULL) SWIG_fail;
2590 temp9 = True;
2591 }
2592 }
2593 {
2594 PyThreadState* __tstate = wxPyBeginAllowThreads();
2595 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2596
2597 wxPyEndAllowThreads(__tstate);
2598 if (PyErr_Occurred()) SWIG_fail;
2599 }
2600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2601 {
2602 if (temp6) delete arg6;
2603 }
2604 {
2605 if (temp9)
2606 delete arg9;
2607 }
2608 return resultobj;
2609 fail:
2610 {
2611 if (temp6) delete arg6;
2612 }
2613 {
2614 if (temp9)
2615 delete arg9;
2616 }
2617 return NULL;
2618 }
2619
2620
2621 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2622 PyObject *resultobj;
2623 wxChoice *arg1 = (wxChoice *) 0 ;
2624 int arg2 ;
2625 PyObject * obj0 = 0 ;
2626 PyObject * obj1 = 0 ;
2627 char *kwnames[] = {
2628 (char *) "self",(char *) "n", NULL
2629 };
2630
2631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2634 arg2 = (int const) SWIG_AsInt(obj1);
2635 if (PyErr_Occurred()) SWIG_fail;
2636 {
2637 PyThreadState* __tstate = wxPyBeginAllowThreads();
2638 (arg1)->SetSelection(arg2);
2639
2640 wxPyEndAllowThreads(__tstate);
2641 if (PyErr_Occurred()) SWIG_fail;
2642 }
2643 Py_INCREF(Py_None); resultobj = Py_None;
2644 return resultobj;
2645 fail:
2646 return NULL;
2647 }
2648
2649
2650 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2651 PyObject *resultobj;
2652 wxChoice *arg1 = (wxChoice *) 0 ;
2653 wxString *arg2 = 0 ;
2654 bool temp2 = False ;
2655 PyObject * obj0 = 0 ;
2656 PyObject * obj1 = 0 ;
2657 char *kwnames[] = {
2658 (char *) "self",(char *) "string", NULL
2659 };
2660
2661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2664 {
2665 arg2 = wxString_in_helper(obj1);
2666 if (arg2 == NULL) SWIG_fail;
2667 temp2 = True;
2668 }
2669 {
2670 PyThreadState* __tstate = wxPyBeginAllowThreads();
2671 (arg1)->SetStringSelection((wxString const &)*arg2);
2672
2673 wxPyEndAllowThreads(__tstate);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 }
2676 Py_INCREF(Py_None); resultobj = Py_None;
2677 {
2678 if (temp2)
2679 delete arg2;
2680 }
2681 return resultobj;
2682 fail:
2683 {
2684 if (temp2)
2685 delete arg2;
2686 }
2687 return NULL;
2688 }
2689
2690
2691 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2692 PyObject *resultobj;
2693 wxChoice *arg1 = (wxChoice *) 0 ;
2694 int arg2 ;
2695 wxString *arg3 = 0 ;
2696 bool temp3 = False ;
2697 PyObject * obj0 = 0 ;
2698 PyObject * obj1 = 0 ;
2699 PyObject * obj2 = 0 ;
2700 char *kwnames[] = {
2701 (char *) "self",(char *) "n",(char *) "string", NULL
2702 };
2703
2704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2707 arg2 = (int) SWIG_AsInt(obj1);
2708 if (PyErr_Occurred()) SWIG_fail;
2709 {
2710 arg3 = wxString_in_helper(obj2);
2711 if (arg3 == NULL) SWIG_fail;
2712 temp3 = True;
2713 }
2714 {
2715 PyThreadState* __tstate = wxPyBeginAllowThreads();
2716 (arg1)->SetString(arg2,(wxString const &)*arg3);
2717
2718 wxPyEndAllowThreads(__tstate);
2719 if (PyErr_Occurred()) SWIG_fail;
2720 }
2721 Py_INCREF(Py_None); resultobj = Py_None;
2722 {
2723 if (temp3)
2724 delete arg3;
2725 }
2726 return resultobj;
2727 fail:
2728 {
2729 if (temp3)
2730 delete arg3;
2731 }
2732 return NULL;
2733 }
2734
2735
2736 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2737 PyObject *obj;
2738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2739 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2740 Py_INCREF(obj);
2741 return Py_BuildValue((char *)"");
2742 }
2743 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2744 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2745 return 1;
2746 }
2747
2748
2749 static PyObject *_wrap_ComboBoxNameStr_get() {
2750 PyObject *pyobj;
2751
2752 {
2753 #if wxUSE_UNICODE
2754 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2755 #else
2756 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2757 #endif
2758 }
2759 return pyobj;
2760 }
2761
2762
2763 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2764 PyObject *resultobj;
2765 wxWindow *arg1 = (wxWindow *) 0 ;
2766 int arg2 ;
2767 wxString const &arg3_defvalue = wxPyEmptyString ;
2768 wxString *arg3 = (wxString *) &arg3_defvalue ;
2769 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2770 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2771 wxSize const &arg5_defvalue = wxDefaultSize ;
2772 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2773 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2774 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2775 long arg7 = (long) 0 ;
2776 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2777 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2778 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2779 wxString *arg9 = (wxString *) &arg9_defvalue ;
2780 wxComboBox *result;
2781 bool temp3 = False ;
2782 wxPoint temp4 ;
2783 wxSize temp5 ;
2784 bool temp6 = False ;
2785 bool temp9 = False ;
2786 PyObject * obj0 = 0 ;
2787 PyObject * obj1 = 0 ;
2788 PyObject * obj2 = 0 ;
2789 PyObject * obj3 = 0 ;
2790 PyObject * obj4 = 0 ;
2791 PyObject * obj5 = 0 ;
2792 PyObject * obj6 = 0 ;
2793 PyObject * obj7 = 0 ;
2794 PyObject * obj8 = 0 ;
2795 char *kwnames[] = {
2796 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2797 };
2798
2799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2802 arg2 = (int) SWIG_AsInt(obj1);
2803 if (PyErr_Occurred()) SWIG_fail;
2804 if (obj2) {
2805 {
2806 arg3 = wxString_in_helper(obj2);
2807 if (arg3 == NULL) SWIG_fail;
2808 temp3 = True;
2809 }
2810 }
2811 if (obj3) {
2812 {
2813 arg4 = &temp4;
2814 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2815 }
2816 }
2817 if (obj4) {
2818 {
2819 arg5 = &temp5;
2820 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2821 }
2822 }
2823 if (obj5) {
2824 {
2825 if (! PySequence_Check(obj5)) {
2826 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2827 SWIG_fail;
2828 }
2829 arg6 = new wxArrayString;
2830 temp6 = True;
2831 int i, len=PySequence_Length(obj5);
2832 for (i=0; i<len; i++) {
2833 PyObject* item = PySequence_GetItem(obj5, i);
2834 #if wxUSE_UNICODE
2835 PyObject* str = PyObject_Unicode(item);
2836 #else
2837 PyObject* str = PyObject_Str(item);
2838 #endif
2839 arg6->Add(Py2wxString(str));
2840 Py_DECREF(item);
2841 Py_DECREF(str);
2842 }
2843 }
2844 }
2845 if (obj6) {
2846 arg7 = (long) SWIG_AsLong(obj6);
2847 if (PyErr_Occurred()) SWIG_fail;
2848 }
2849 if (obj7) {
2850 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2851 SWIG_POINTER_EXCEPTION | 0)) == -1)
2852 SWIG_fail;
2853 if (arg8 == NULL) {
2854 PyErr_SetString(PyExc_TypeError,"null reference");
2855 SWIG_fail;
2856 }
2857 }
2858 if (obj8) {
2859 {
2860 arg9 = wxString_in_helper(obj8);
2861 if (arg9 == NULL) SWIG_fail;
2862 temp9 = True;
2863 }
2864 }
2865 {
2866 PyThreadState* __tstate = wxPyBeginAllowThreads();
2867 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2868
2869 wxPyEndAllowThreads(__tstate);
2870 if (PyErr_Occurred()) SWIG_fail;
2871 }
2872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
2873 {
2874 if (temp3)
2875 delete arg3;
2876 }
2877 {
2878 if (temp6) delete arg6;
2879 }
2880 {
2881 if (temp9)
2882 delete arg9;
2883 }
2884 return resultobj;
2885 fail:
2886 {
2887 if (temp3)
2888 delete arg3;
2889 }
2890 {
2891 if (temp6) delete arg6;
2892 }
2893 {
2894 if (temp9)
2895 delete arg9;
2896 }
2897 return NULL;
2898 }
2899
2900
2901 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2902 PyObject *resultobj;
2903 wxComboBox *result;
2904 char *kwnames[] = {
2905 NULL
2906 };
2907
2908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
2909 {
2910 PyThreadState* __tstate = wxPyBeginAllowThreads();
2911 result = (wxComboBox *)new wxComboBox();
2912
2913 wxPyEndAllowThreads(__tstate);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 }
2916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
2917 return resultobj;
2918 fail:
2919 return NULL;
2920 }
2921
2922
2923 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2924 PyObject *resultobj;
2925 wxComboBox *arg1 = (wxComboBox *) 0 ;
2926 wxWindow *arg2 = (wxWindow *) 0 ;
2927 int arg3 ;
2928 wxString const &arg4_defvalue = wxPyEmptyString ;
2929 wxString *arg4 = (wxString *) &arg4_defvalue ;
2930 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2931 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2932 wxSize const &arg6_defvalue = wxDefaultSize ;
2933 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2934 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
2935 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
2936 long arg8 = (long) 0 ;
2937 wxValidator const &arg9_defvalue = wxDefaultValidator ;
2938 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
2939 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
2940 wxString *arg10 = (wxString *) &arg10_defvalue ;
2941 bool result;
2942 bool temp4 = False ;
2943 wxPoint temp5 ;
2944 wxSize temp6 ;
2945 bool temp7 = False ;
2946 bool temp10 = False ;
2947 PyObject * obj0 = 0 ;
2948 PyObject * obj1 = 0 ;
2949 PyObject * obj2 = 0 ;
2950 PyObject * obj3 = 0 ;
2951 PyObject * obj4 = 0 ;
2952 PyObject * obj5 = 0 ;
2953 PyObject * obj6 = 0 ;
2954 PyObject * obj7 = 0 ;
2955 PyObject * obj8 = 0 ;
2956 PyObject * obj9 = 0 ;
2957 char *kwnames[] = {
2958 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2959 };
2960
2961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
2963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2966 arg3 = (int) SWIG_AsInt(obj2);
2967 if (PyErr_Occurred()) SWIG_fail;
2968 if (obj3) {
2969 {
2970 arg4 = wxString_in_helper(obj3);
2971 if (arg4 == NULL) SWIG_fail;
2972 temp4 = True;
2973 }
2974 }
2975 if (obj4) {
2976 {
2977 arg5 = &temp5;
2978 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2979 }
2980 }
2981 if (obj5) {
2982 {
2983 arg6 = &temp6;
2984 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2985 }
2986 }
2987 if (obj6) {
2988 {
2989 if (! PySequence_Check(obj6)) {
2990 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2991 SWIG_fail;
2992 }
2993 arg7 = new wxArrayString;
2994 temp7 = True;
2995 int i, len=PySequence_Length(obj6);
2996 for (i=0; i<len; i++) {
2997 PyObject* item = PySequence_GetItem(obj6, i);
2998 #if wxUSE_UNICODE
2999 PyObject* str = PyObject_Unicode(item);
3000 #else
3001 PyObject* str = PyObject_Str(item);
3002 #endif
3003 arg7->Add(Py2wxString(str));
3004 Py_DECREF(item);
3005 Py_DECREF(str);
3006 }
3007 }
3008 }
3009 if (obj7) {
3010 arg8 = (long) SWIG_AsLong(obj7);
3011 if (PyErr_Occurred()) SWIG_fail;
3012 }
3013 if (obj8) {
3014 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3015 SWIG_POINTER_EXCEPTION | 0)) == -1)
3016 SWIG_fail;
3017 if (arg9 == NULL) {
3018 PyErr_SetString(PyExc_TypeError,"null reference");
3019 SWIG_fail;
3020 }
3021 }
3022 if (obj9) {
3023 {
3024 arg10 = wxString_in_helper(obj9);
3025 if (arg10 == NULL) SWIG_fail;
3026 temp10 = True;
3027 }
3028 }
3029 {
3030 PyThreadState* __tstate = wxPyBeginAllowThreads();
3031 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
3032
3033 wxPyEndAllowThreads(__tstate);
3034 if (PyErr_Occurred()) SWIG_fail;
3035 }
3036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3037 {
3038 if (temp4)
3039 delete arg4;
3040 }
3041 {
3042 if (temp7) delete arg7;
3043 }
3044 {
3045 if (temp10)
3046 delete arg10;
3047 }
3048 return resultobj;
3049 fail:
3050 {
3051 if (temp4)
3052 delete arg4;
3053 }
3054 {
3055 if (temp7) delete arg7;
3056 }
3057 {
3058 if (temp10)
3059 delete arg10;
3060 }
3061 return NULL;
3062 }
3063
3064
3065 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3066 PyObject *resultobj;
3067 wxComboBox *arg1 = (wxComboBox *) 0 ;
3068 wxString result;
3069 PyObject * obj0 = 0 ;
3070 char *kwnames[] = {
3071 (char *) "self", NULL
3072 };
3073
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3077 {
3078 PyThreadState* __tstate = wxPyBeginAllowThreads();
3079 result = ((wxComboBox const *)arg1)->GetValue();
3080
3081 wxPyEndAllowThreads(__tstate);
3082 if (PyErr_Occurred()) SWIG_fail;
3083 }
3084 {
3085 #if wxUSE_UNICODE
3086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3087 #else
3088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3089 #endif
3090 }
3091 return resultobj;
3092 fail:
3093 return NULL;
3094 }
3095
3096
3097 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3098 PyObject *resultobj;
3099 wxComboBox *arg1 = (wxComboBox *) 0 ;
3100 wxString *arg2 = 0 ;
3101 bool temp2 = False ;
3102 PyObject * obj0 = 0 ;
3103 PyObject * obj1 = 0 ;
3104 char *kwnames[] = {
3105 (char *) "self",(char *) "value", NULL
3106 };
3107
3108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3111 {
3112 arg2 = wxString_in_helper(obj1);
3113 if (arg2 == NULL) SWIG_fail;
3114 temp2 = True;
3115 }
3116 {
3117 PyThreadState* __tstate = wxPyBeginAllowThreads();
3118 (arg1)->SetValue((wxString const &)*arg2);
3119
3120 wxPyEndAllowThreads(__tstate);
3121 if (PyErr_Occurred()) SWIG_fail;
3122 }
3123 Py_INCREF(Py_None); resultobj = Py_None;
3124 {
3125 if (temp2)
3126 delete arg2;
3127 }
3128 return resultobj;
3129 fail:
3130 {
3131 if (temp2)
3132 delete arg2;
3133 }
3134 return NULL;
3135 }
3136
3137
3138 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3139 PyObject *resultobj;
3140 wxComboBox *arg1 = (wxComboBox *) 0 ;
3141 PyObject * obj0 = 0 ;
3142 char *kwnames[] = {
3143 (char *) "self", NULL
3144 };
3145
3146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3149 {
3150 PyThreadState* __tstate = wxPyBeginAllowThreads();
3151 (arg1)->Copy();
3152
3153 wxPyEndAllowThreads(__tstate);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 Py_INCREF(Py_None); resultobj = Py_None;
3157 return resultobj;
3158 fail:
3159 return NULL;
3160 }
3161
3162
3163 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3164 PyObject *resultobj;
3165 wxComboBox *arg1 = (wxComboBox *) 0 ;
3166 PyObject * obj0 = 0 ;
3167 char *kwnames[] = {
3168 (char *) "self", NULL
3169 };
3170
3171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3174 {
3175 PyThreadState* __tstate = wxPyBeginAllowThreads();
3176 (arg1)->Cut();
3177
3178 wxPyEndAllowThreads(__tstate);
3179 if (PyErr_Occurred()) SWIG_fail;
3180 }
3181 Py_INCREF(Py_None); resultobj = Py_None;
3182 return resultobj;
3183 fail:
3184 return NULL;
3185 }
3186
3187
3188 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3189 PyObject *resultobj;
3190 wxComboBox *arg1 = (wxComboBox *) 0 ;
3191 PyObject * obj0 = 0 ;
3192 char *kwnames[] = {
3193 (char *) "self", NULL
3194 };
3195
3196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3199 {
3200 PyThreadState* __tstate = wxPyBeginAllowThreads();
3201 (arg1)->Paste();
3202
3203 wxPyEndAllowThreads(__tstate);
3204 if (PyErr_Occurred()) SWIG_fail;
3205 }
3206 Py_INCREF(Py_None); resultobj = Py_None;
3207 return resultobj;
3208 fail:
3209 return NULL;
3210 }
3211
3212
3213 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3214 PyObject *resultobj;
3215 wxComboBox *arg1 = (wxComboBox *) 0 ;
3216 long arg2 ;
3217 PyObject * obj0 = 0 ;
3218 PyObject * obj1 = 0 ;
3219 char *kwnames[] = {
3220 (char *) "self",(char *) "pos", NULL
3221 };
3222
3223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3226 arg2 = (long) SWIG_AsLong(obj1);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 (arg1)->SetInsertionPoint(arg2);
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
3235 Py_INCREF(Py_None); resultobj = Py_None;
3236 return resultobj;
3237 fail:
3238 return NULL;
3239 }
3240
3241
3242 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3243 PyObject *resultobj;
3244 wxComboBox *arg1 = (wxComboBox *) 0 ;
3245 long result;
3246 PyObject * obj0 = 0 ;
3247 char *kwnames[] = {
3248 (char *) "self", NULL
3249 };
3250
3251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3254 {
3255 PyThreadState* __tstate = wxPyBeginAllowThreads();
3256 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3257
3258 wxPyEndAllowThreads(__tstate);
3259 if (PyErr_Occurred()) SWIG_fail;
3260 }
3261 resultobj = SWIG_FromLong((long)result);
3262 return resultobj;
3263 fail:
3264 return NULL;
3265 }
3266
3267
3268 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3269 PyObject *resultobj;
3270 wxComboBox *arg1 = (wxComboBox *) 0 ;
3271 long result;
3272 PyObject * obj0 = 0 ;
3273 char *kwnames[] = {
3274 (char *) "self", NULL
3275 };
3276
3277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 resultobj = SWIG_FromLong((long)result);
3288 return resultobj;
3289 fail:
3290 return NULL;
3291 }
3292
3293
3294 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3295 PyObject *resultobj;
3296 wxComboBox *arg1 = (wxComboBox *) 0 ;
3297 long arg2 ;
3298 long arg3 ;
3299 wxString *arg4 = 0 ;
3300 bool temp4 = False ;
3301 PyObject * obj0 = 0 ;
3302 PyObject * obj1 = 0 ;
3303 PyObject * obj2 = 0 ;
3304 PyObject * obj3 = 0 ;
3305 char *kwnames[] = {
3306 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3307 };
3308
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3312 arg2 = (long) SWIG_AsLong(obj1);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 arg3 = (long) SWIG_AsLong(obj2);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 {
3317 arg4 = wxString_in_helper(obj3);
3318 if (arg4 == NULL) SWIG_fail;
3319 temp4 = True;
3320 }
3321 {
3322 PyThreadState* __tstate = wxPyBeginAllowThreads();
3323 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3324
3325 wxPyEndAllowThreads(__tstate);
3326 if (PyErr_Occurred()) SWIG_fail;
3327 }
3328 Py_INCREF(Py_None); resultobj = Py_None;
3329 {
3330 if (temp4)
3331 delete arg4;
3332 }
3333 return resultobj;
3334 fail:
3335 {
3336 if (temp4)
3337 delete arg4;
3338 }
3339 return NULL;
3340 }
3341
3342
3343 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3344 PyObject *resultobj;
3345 wxComboBox *arg1 = (wxComboBox *) 0 ;
3346 int arg2 ;
3347 PyObject * obj0 = 0 ;
3348 PyObject * obj1 = 0 ;
3349 char *kwnames[] = {
3350 (char *) "self",(char *) "n", NULL
3351 };
3352
3353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3356 arg2 = (int) SWIG_AsInt(obj1);
3357 if (PyErr_Occurred()) SWIG_fail;
3358 {
3359 PyThreadState* __tstate = wxPyBeginAllowThreads();
3360 (arg1)->SetSelection(arg2);
3361
3362 wxPyEndAllowThreads(__tstate);
3363 if (PyErr_Occurred()) SWIG_fail;
3364 }
3365 Py_INCREF(Py_None); resultobj = Py_None;
3366 return resultobj;
3367 fail:
3368 return NULL;
3369 }
3370
3371
3372 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3373 PyObject *resultobj;
3374 wxComboBox *arg1 = (wxComboBox *) 0 ;
3375 long arg2 ;
3376 long arg3 ;
3377 PyObject * obj0 = 0 ;
3378 PyObject * obj1 = 0 ;
3379 PyObject * obj2 = 0 ;
3380 char *kwnames[] = {
3381 (char *) "self",(char *) "from",(char *) "to", NULL
3382 };
3383
3384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3387 arg2 = (long) SWIG_AsLong(obj1);
3388 if (PyErr_Occurred()) SWIG_fail;
3389 arg3 = (long) SWIG_AsLong(obj2);
3390 if (PyErr_Occurred()) SWIG_fail;
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
3393 (arg1)->SetSelection(arg2,arg3);
3394
3395 wxPyEndAllowThreads(__tstate);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 }
3398 Py_INCREF(Py_None); resultobj = Py_None;
3399 return resultobj;
3400 fail:
3401 return NULL;
3402 }
3403
3404
3405 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3406 PyObject *resultobj;
3407 wxComboBox *arg1 = (wxComboBox *) 0 ;
3408 bool arg2 ;
3409 PyObject * obj0 = 0 ;
3410 PyObject * obj1 = 0 ;
3411 char *kwnames[] = {
3412 (char *) "self",(char *) "editable", NULL
3413 };
3414
3415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3418 arg2 = (bool) SWIG_AsBool(obj1);
3419 if (PyErr_Occurred()) SWIG_fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 (arg1)->SetEditable(arg2);
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 Py_INCREF(Py_None); resultobj = Py_None;
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxComboBox *arg1 = (wxComboBox *) 0 ;
3437 PyObject * obj0 = 0 ;
3438 char *kwnames[] = {
3439 (char *) "self", NULL
3440 };
3441
3442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 (arg1)->SetInsertionPointEnd();
3448
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 Py_INCREF(Py_None); resultobj = Py_None;
3453 return resultobj;
3454 fail:
3455 return NULL;
3456 }
3457
3458
3459 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3460 PyObject *resultobj;
3461 wxComboBox *arg1 = (wxComboBox *) 0 ;
3462 long arg2 ;
3463 long arg3 ;
3464 PyObject * obj0 = 0 ;
3465 PyObject * obj1 = 0 ;
3466 PyObject * obj2 = 0 ;
3467 char *kwnames[] = {
3468 (char *) "self",(char *) "from",(char *) "to", NULL
3469 };
3470
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3474 arg2 = (long) SWIG_AsLong(obj1);
3475 if (PyErr_Occurred()) SWIG_fail;
3476 arg3 = (long) SWIG_AsLong(obj2);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 {
3479 PyThreadState* __tstate = wxPyBeginAllowThreads();
3480 (arg1)->Remove(arg2,arg3);
3481
3482 wxPyEndAllowThreads(__tstate);
3483 if (PyErr_Occurred()) SWIG_fail;
3484 }
3485 Py_INCREF(Py_None); resultobj = Py_None;
3486 return resultobj;
3487 fail:
3488 return NULL;
3489 }
3490
3491
3492 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3493 PyObject *obj;
3494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3495 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3496 Py_INCREF(obj);
3497 return Py_BuildValue((char *)"");
3498 }
3499 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3500 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3501 return 1;
3502 }
3503
3504
3505 static PyObject *_wrap_GaugeNameStr_get() {
3506 PyObject *pyobj;
3507
3508 {
3509 #if wxUSE_UNICODE
3510 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3511 #else
3512 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3513 #endif
3514 }
3515 return pyobj;
3516 }
3517
3518
3519 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3520 PyObject *resultobj;
3521 wxWindow *arg1 = (wxWindow *) 0 ;
3522 int arg2 ;
3523 int arg3 ;
3524 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3525 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3526 wxSize const &arg5_defvalue = wxDefaultSize ;
3527 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3528 long arg6 = (long) wxGA_HORIZONTAL ;
3529 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3530 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3531 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3532 wxString *arg8 = (wxString *) &arg8_defvalue ;
3533 wxGauge *result;
3534 wxPoint temp4 ;
3535 wxSize temp5 ;
3536 bool temp8 = False ;
3537 PyObject * obj0 = 0 ;
3538 PyObject * obj1 = 0 ;
3539 PyObject * obj2 = 0 ;
3540 PyObject * obj3 = 0 ;
3541 PyObject * obj4 = 0 ;
3542 PyObject * obj5 = 0 ;
3543 PyObject * obj6 = 0 ;
3544 PyObject * obj7 = 0 ;
3545 char *kwnames[] = {
3546 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3547 };
3548
3549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3552 arg2 = (int) SWIG_AsInt(obj1);
3553 if (PyErr_Occurred()) SWIG_fail;
3554 arg3 = (int) SWIG_AsInt(obj2);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 if (obj3) {
3557 {
3558 arg4 = &temp4;
3559 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3560 }
3561 }
3562 if (obj4) {
3563 {
3564 arg5 = &temp5;
3565 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3566 }
3567 }
3568 if (obj5) {
3569 arg6 = (long) SWIG_AsLong(obj5);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 if (obj6) {
3573 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3574 SWIG_POINTER_EXCEPTION | 0)) == -1)
3575 SWIG_fail;
3576 if (arg7 == NULL) {
3577 PyErr_SetString(PyExc_TypeError,"null reference");
3578 SWIG_fail;
3579 }
3580 }
3581 if (obj7) {
3582 {
3583 arg8 = wxString_in_helper(obj7);
3584 if (arg8 == NULL) SWIG_fail;
3585 temp8 = True;
3586 }
3587 }
3588 {
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3591
3592 wxPyEndAllowThreads(__tstate);
3593 if (PyErr_Occurred()) SWIG_fail;
3594 }
3595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3596 {
3597 if (temp8)
3598 delete arg8;
3599 }
3600 return resultobj;
3601 fail:
3602 {
3603 if (temp8)
3604 delete arg8;
3605 }
3606 return NULL;
3607 }
3608
3609
3610 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3611 PyObject *resultobj;
3612 wxGauge *result;
3613 char *kwnames[] = {
3614 NULL
3615 };
3616
3617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3618 {
3619 PyThreadState* __tstate = wxPyBeginAllowThreads();
3620 result = (wxGauge *)new wxGauge();
3621
3622 wxPyEndAllowThreads(__tstate);
3623 if (PyErr_Occurred()) SWIG_fail;
3624 }
3625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3626 return resultobj;
3627 fail:
3628 return NULL;
3629 }
3630
3631
3632 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3633 PyObject *resultobj;
3634 wxGauge *arg1 = (wxGauge *) 0 ;
3635 wxWindow *arg2 = (wxWindow *) 0 ;
3636 int arg3 ;
3637 int arg4 ;
3638 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3639 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3640 wxSize const &arg6_defvalue = wxDefaultSize ;
3641 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3642 long arg7 = (long) wxGA_HORIZONTAL ;
3643 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3644 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3645 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3646 wxString *arg9 = (wxString *) &arg9_defvalue ;
3647 bool result;
3648 wxPoint temp5 ;
3649 wxSize temp6 ;
3650 bool temp9 = False ;
3651 PyObject * obj0 = 0 ;
3652 PyObject * obj1 = 0 ;
3653 PyObject * obj2 = 0 ;
3654 PyObject * obj3 = 0 ;
3655 PyObject * obj4 = 0 ;
3656 PyObject * obj5 = 0 ;
3657 PyObject * obj6 = 0 ;
3658 PyObject * obj7 = 0 ;
3659 PyObject * obj8 = 0 ;
3660 char *kwnames[] = {
3661 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3662 };
3663
3664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3669 arg3 = (int) SWIG_AsInt(obj2);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 arg4 = (int) SWIG_AsInt(obj3);
3672 if (PyErr_Occurred()) SWIG_fail;
3673 if (obj4) {
3674 {
3675 arg5 = &temp5;
3676 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3677 }
3678 }
3679 if (obj5) {
3680 {
3681 arg6 = &temp6;
3682 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3683 }
3684 }
3685 if (obj6) {
3686 arg7 = (long) SWIG_AsLong(obj6);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 }
3689 if (obj7) {
3690 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3691 SWIG_POINTER_EXCEPTION | 0)) == -1)
3692 SWIG_fail;
3693 if (arg8 == NULL) {
3694 PyErr_SetString(PyExc_TypeError,"null reference");
3695 SWIG_fail;
3696 }
3697 }
3698 if (obj8) {
3699 {
3700 arg9 = wxString_in_helper(obj8);
3701 if (arg9 == NULL) SWIG_fail;
3702 temp9 = True;
3703 }
3704 }
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 }
3712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3713 {
3714 if (temp9)
3715 delete arg9;
3716 }
3717 return resultobj;
3718 fail:
3719 {
3720 if (temp9)
3721 delete arg9;
3722 }
3723 return NULL;
3724 }
3725
3726
3727 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj;
3729 wxGauge *arg1 = (wxGauge *) 0 ;
3730 int arg2 ;
3731 PyObject * obj0 = 0 ;
3732 PyObject * obj1 = 0 ;
3733 char *kwnames[] = {
3734 (char *) "self",(char *) "range", NULL
3735 };
3736
3737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
3738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3740 arg2 = (int) SWIG_AsInt(obj1);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 {
3743 PyThreadState* __tstate = wxPyBeginAllowThreads();
3744 (arg1)->SetRange(arg2);
3745
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 Py_INCREF(Py_None); resultobj = Py_None;
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3757 PyObject *resultobj;
3758 wxGauge *arg1 = (wxGauge *) 0 ;
3759 int result;
3760 PyObject * obj0 = 0 ;
3761 char *kwnames[] = {
3762 (char *) "self", NULL
3763 };
3764
3765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
3766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3768 {
3769 PyThreadState* __tstate = wxPyBeginAllowThreads();
3770 result = (int)((wxGauge const *)arg1)->GetRange();
3771
3772 wxPyEndAllowThreads(__tstate);
3773 if (PyErr_Occurred()) SWIG_fail;
3774 }
3775 resultobj = SWIG_FromInt((int)result);
3776 return resultobj;
3777 fail:
3778 return NULL;
3779 }
3780
3781
3782 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3783 PyObject *resultobj;
3784 wxGauge *arg1 = (wxGauge *) 0 ;
3785 int arg2 ;
3786 PyObject * obj0 = 0 ;
3787 PyObject * obj1 = 0 ;
3788 char *kwnames[] = {
3789 (char *) "self",(char *) "pos", NULL
3790 };
3791
3792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
3793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3795 arg2 = (int) SWIG_AsInt(obj1);
3796 if (PyErr_Occurred()) SWIG_fail;
3797 {
3798 PyThreadState* __tstate = wxPyBeginAllowThreads();
3799 (arg1)->SetValue(arg2);
3800
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
3804 Py_INCREF(Py_None); resultobj = Py_None;
3805 return resultobj;
3806 fail:
3807 return NULL;
3808 }
3809
3810
3811 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3812 PyObject *resultobj;
3813 wxGauge *arg1 = (wxGauge *) 0 ;
3814 int result;
3815 PyObject * obj0 = 0 ;
3816 char *kwnames[] = {
3817 (char *) "self", NULL
3818 };
3819
3820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
3821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 result = (int)((wxGauge const *)arg1)->GetValue();
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 resultobj = SWIG_FromInt((int)result);
3831 return resultobj;
3832 fail:
3833 return NULL;
3834 }
3835
3836
3837 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject *resultobj;
3839 wxGauge *arg1 = (wxGauge *) 0 ;
3840 bool result;
3841 PyObject * obj0 = 0 ;
3842 char *kwnames[] = {
3843 (char *) "self", NULL
3844 };
3845
3846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
3847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3849 {
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = (bool)((wxGauge const *)arg1)->IsVertical();
3852
3853 wxPyEndAllowThreads(__tstate);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3857 return resultobj;
3858 fail:
3859 return NULL;
3860 }
3861
3862
3863 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3864 PyObject *resultobj;
3865 wxGauge *arg1 = (wxGauge *) 0 ;
3866 int arg2 ;
3867 PyObject * obj0 = 0 ;
3868 PyObject * obj1 = 0 ;
3869 char *kwnames[] = {
3870 (char *) "self",(char *) "w", NULL
3871 };
3872
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
3874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3876 arg2 = (int) SWIG_AsInt(obj1);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 {
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 (arg1)->SetShadowWidth(arg2);
3881
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 Py_INCREF(Py_None); resultobj = Py_None;
3886 return resultobj;
3887 fail:
3888 return NULL;
3889 }
3890
3891
3892 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3893 PyObject *resultobj;
3894 wxGauge *arg1 = (wxGauge *) 0 ;
3895 int result;
3896 PyObject * obj0 = 0 ;
3897 char *kwnames[] = {
3898 (char *) "self", NULL
3899 };
3900
3901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
3902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3904 {
3905 PyThreadState* __tstate = wxPyBeginAllowThreads();
3906 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
3907
3908 wxPyEndAllowThreads(__tstate);
3909 if (PyErr_Occurred()) SWIG_fail;
3910 }
3911 resultobj = SWIG_FromInt((int)result);
3912 return resultobj;
3913 fail:
3914 return NULL;
3915 }
3916
3917
3918 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3919 PyObject *resultobj;
3920 wxGauge *arg1 = (wxGauge *) 0 ;
3921 int arg2 ;
3922 PyObject * obj0 = 0 ;
3923 PyObject * obj1 = 0 ;
3924 char *kwnames[] = {
3925 (char *) "self",(char *) "w", NULL
3926 };
3927
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
3929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3931 arg2 = (int) SWIG_AsInt(obj1);
3932 if (PyErr_Occurred()) SWIG_fail;
3933 {
3934 PyThreadState* __tstate = wxPyBeginAllowThreads();
3935 (arg1)->SetBezelFace(arg2);
3936
3937 wxPyEndAllowThreads(__tstate);
3938 if (PyErr_Occurred()) SWIG_fail;
3939 }
3940 Py_INCREF(Py_None); resultobj = Py_None;
3941 return resultobj;
3942 fail:
3943 return NULL;
3944 }
3945
3946
3947 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3948 PyObject *resultobj;
3949 wxGauge *arg1 = (wxGauge *) 0 ;
3950 int result;
3951 PyObject * obj0 = 0 ;
3952 char *kwnames[] = {
3953 (char *) "self", NULL
3954 };
3955
3956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
3957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 result = (int)((wxGauge const *)arg1)->GetBezelFace();
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 resultobj = SWIG_FromInt((int)result);
3967 return resultobj;
3968 fail:
3969 return NULL;
3970 }
3971
3972
3973 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
3974 PyObject *obj;
3975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3976 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
3977 Py_INCREF(obj);
3978 return Py_BuildValue((char *)"");
3979 }
3980 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
3981 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
3982 return 1;
3983 }
3984
3985
3986 static PyObject *_wrap_StaticBitmapNameStr_get() {
3987 PyObject *pyobj;
3988
3989 {
3990 #if wxUSE_UNICODE
3991 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
3992 #else
3993 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
3994 #endif
3995 }
3996 return pyobj;
3997 }
3998
3999
4000 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4001 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4002 return 1;
4003 }
4004
4005
4006 static PyObject *_wrap_StaticBoxNameStr_get() {
4007 PyObject *pyobj;
4008
4009 {
4010 #if wxUSE_UNICODE
4011 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4012 #else
4013 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4014 #endif
4015 }
4016 return pyobj;
4017 }
4018
4019
4020 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4021 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4022 return 1;
4023 }
4024
4025
4026 static PyObject *_wrap_StaticTextNameStr_get() {
4027 PyObject *pyobj;
4028
4029 {
4030 #if wxUSE_UNICODE
4031 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4032 #else
4033 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4034 #endif
4035 }
4036 return pyobj;
4037 }
4038
4039
4040 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4041 PyObject *resultobj;
4042 wxWindow *arg1 = (wxWindow *) 0 ;
4043 int arg2 ;
4044 wxString *arg3 = 0 ;
4045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4047 wxSize const &arg5_defvalue = wxDefaultSize ;
4048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4049 long arg6 = (long) 0 ;
4050 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4051 wxString *arg7 = (wxString *) &arg7_defvalue ;
4052 wxStaticBox *result;
4053 bool temp3 = False ;
4054 wxPoint temp4 ;
4055 wxSize temp5 ;
4056 bool temp7 = False ;
4057 PyObject * obj0 = 0 ;
4058 PyObject * obj1 = 0 ;
4059 PyObject * obj2 = 0 ;
4060 PyObject * obj3 = 0 ;
4061 PyObject * obj4 = 0 ;
4062 PyObject * obj5 = 0 ;
4063 PyObject * obj6 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4071 arg2 = (int) SWIG_AsInt(obj1);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 {
4074 arg3 = wxString_in_helper(obj2);
4075 if (arg3 == NULL) SWIG_fail;
4076 temp3 = True;
4077 }
4078 if (obj3) {
4079 {
4080 arg4 = &temp4;
4081 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4082 }
4083 }
4084 if (obj4) {
4085 {
4086 arg5 = &temp5;
4087 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4088 }
4089 }
4090 if (obj5) {
4091 arg6 = (long) SWIG_AsLong(obj5);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
4094 if (obj6) {
4095 {
4096 arg7 = wxString_in_helper(obj6);
4097 if (arg7 == NULL) SWIG_fail;
4098 temp7 = True;
4099 }
4100 }
4101 {
4102 PyThreadState* __tstate = wxPyBeginAllowThreads();
4103 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4104
4105 wxPyEndAllowThreads(__tstate);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 }
4108 {
4109 resultobj = wxPyMake_wxObject(result);
4110 }
4111 {
4112 if (temp3)
4113 delete arg3;
4114 }
4115 {
4116 if (temp7)
4117 delete arg7;
4118 }
4119 return resultobj;
4120 fail:
4121 {
4122 if (temp3)
4123 delete arg3;
4124 }
4125 {
4126 if (temp7)
4127 delete arg7;
4128 }
4129 return NULL;
4130 }
4131
4132
4133 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj;
4135 wxStaticBox *result;
4136 char *kwnames[] = {
4137 NULL
4138 };
4139
4140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 result = (wxStaticBox *)new wxStaticBox();
4144
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 {
4149 resultobj = wxPyMake_wxObject(result);
4150 }
4151 return resultobj;
4152 fail:
4153 return NULL;
4154 }
4155
4156
4157 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4158 PyObject *resultobj;
4159 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4160 wxWindow *arg2 = (wxWindow *) 0 ;
4161 int arg3 ;
4162 wxString *arg4 = 0 ;
4163 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4164 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4165 wxSize const &arg6_defvalue = wxDefaultSize ;
4166 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4167 long arg7 = (long) 0 ;
4168 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4169 wxString *arg8 = (wxString *) &arg8_defvalue ;
4170 bool result;
4171 bool temp4 = False ;
4172 wxPoint temp5 ;
4173 wxSize temp6 ;
4174 bool temp8 = False ;
4175 PyObject * obj0 = 0 ;
4176 PyObject * obj1 = 0 ;
4177 PyObject * obj2 = 0 ;
4178 PyObject * obj3 = 0 ;
4179 PyObject * obj4 = 0 ;
4180 PyObject * obj5 = 0 ;
4181 PyObject * obj6 = 0 ;
4182 PyObject * obj7 = 0 ;
4183 char *kwnames[] = {
4184 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4190 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4192 arg3 = (int) SWIG_AsInt(obj2);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 {
4195 arg4 = wxString_in_helper(obj3);
4196 if (arg4 == NULL) SWIG_fail;
4197 temp4 = True;
4198 }
4199 if (obj4) {
4200 {
4201 arg5 = &temp5;
4202 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4203 }
4204 }
4205 if (obj5) {
4206 {
4207 arg6 = &temp6;
4208 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4209 }
4210 }
4211 if (obj6) {
4212 arg7 = (long) SWIG_AsLong(obj6);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 if (obj7) {
4216 {
4217 arg8 = wxString_in_helper(obj7);
4218 if (arg8 == NULL) SWIG_fail;
4219 temp8 = True;
4220 }
4221 }
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4225
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4230 {
4231 if (temp4)
4232 delete arg4;
4233 }
4234 {
4235 if (temp8)
4236 delete arg8;
4237 }
4238 return resultobj;
4239 fail:
4240 {
4241 if (temp4)
4242 delete arg4;
4243 }
4244 {
4245 if (temp8)
4246 delete arg8;
4247 }
4248 return NULL;
4249 }
4250
4251
4252 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4253 PyObject *obj;
4254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4255 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4256 Py_INCREF(obj);
4257 return Py_BuildValue((char *)"");
4258 }
4259 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj;
4261 wxWindow *arg1 = (wxWindow *) 0 ;
4262 int arg2 ;
4263 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4264 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4265 wxSize const &arg4_defvalue = wxDefaultSize ;
4266 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4267 long arg5 = (long) wxLI_HORIZONTAL ;
4268 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4269 wxString *arg6 = (wxString *) &arg6_defvalue ;
4270 wxStaticLine *result;
4271 wxPoint temp3 ;
4272 wxSize temp4 ;
4273 bool temp6 = False ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 PyObject * obj2 = 0 ;
4277 PyObject * obj3 = 0 ;
4278 PyObject * obj4 = 0 ;
4279 PyObject * obj5 = 0 ;
4280 char *kwnames[] = {
4281 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4282 };
4283
4284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4287 arg2 = (int) SWIG_AsInt(obj1);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 if (obj2) {
4290 {
4291 arg3 = &temp3;
4292 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4293 }
4294 }
4295 if (obj3) {
4296 {
4297 arg4 = &temp4;
4298 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4299 }
4300 }
4301 if (obj4) {
4302 arg5 = (long) SWIG_AsLong(obj4);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 if (obj5) {
4306 {
4307 arg6 = wxString_in_helper(obj5);
4308 if (arg6 == NULL) SWIG_fail;
4309 temp6 = True;
4310 }
4311 }
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4315
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4320 {
4321 if (temp6)
4322 delete arg6;
4323 }
4324 return resultobj;
4325 fail:
4326 {
4327 if (temp6)
4328 delete arg6;
4329 }
4330 return NULL;
4331 }
4332
4333
4334 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4335 PyObject *resultobj;
4336 wxStaticLine *result;
4337 char *kwnames[] = {
4338 NULL
4339 };
4340
4341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 result = (wxStaticLine *)new wxStaticLine();
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4350 return resultobj;
4351 fail:
4352 return NULL;
4353 }
4354
4355
4356 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj;
4358 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4359 wxWindow *arg2 = (wxWindow *) 0 ;
4360 int arg3 ;
4361 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4362 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4363 wxSize const &arg5_defvalue = wxDefaultSize ;
4364 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4365 long arg6 = (long) wxLI_HORIZONTAL ;
4366 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4367 wxString *arg7 = (wxString *) &arg7_defvalue ;
4368 bool result;
4369 wxPoint temp4 ;
4370 wxSize temp5 ;
4371 bool temp7 = False ;
4372 PyObject * obj0 = 0 ;
4373 PyObject * obj1 = 0 ;
4374 PyObject * obj2 = 0 ;
4375 PyObject * obj3 = 0 ;
4376 PyObject * obj4 = 0 ;
4377 PyObject * obj5 = 0 ;
4378 PyObject * obj6 = 0 ;
4379 char *kwnames[] = {
4380 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4381 };
4382
4383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4386 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4388 arg3 = (int) SWIG_AsInt(obj2);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 if (obj3) {
4391 {
4392 arg4 = &temp4;
4393 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4394 }
4395 }
4396 if (obj4) {
4397 {
4398 arg5 = &temp5;
4399 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4400 }
4401 }
4402 if (obj5) {
4403 arg6 = (long) SWIG_AsLong(obj5);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 if (obj6) {
4407 {
4408 arg7 = wxString_in_helper(obj6);
4409 if (arg7 == NULL) SWIG_fail;
4410 temp7 = True;
4411 }
4412 }
4413 {
4414 PyThreadState* __tstate = wxPyBeginAllowThreads();
4415 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4416
4417 wxPyEndAllowThreads(__tstate);
4418 if (PyErr_Occurred()) SWIG_fail;
4419 }
4420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4421 {
4422 if (temp7)
4423 delete arg7;
4424 }
4425 return resultobj;
4426 fail:
4427 {
4428 if (temp7)
4429 delete arg7;
4430 }
4431 return NULL;
4432 }
4433
4434
4435 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj;
4437 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4438 bool result;
4439 PyObject * obj0 = 0 ;
4440 char *kwnames[] = {
4441 (char *) "self", NULL
4442 };
4443
4444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4447 {
4448 PyThreadState* __tstate = wxPyBeginAllowThreads();
4449 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4450
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4462 PyObject *resultobj;
4463 int result;
4464 char *kwnames[] = {
4465 NULL
4466 };
4467
4468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 result = (int)wxStaticLine::GetDefaultSize();
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_FromInt((int)result);
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4484 PyObject *obj;
4485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4486 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4487 Py_INCREF(obj);
4488 return Py_BuildValue((char *)"");
4489 }
4490 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4491 PyObject *resultobj;
4492 wxWindow *arg1 = (wxWindow *) 0 ;
4493 int arg2 ;
4494 wxString *arg3 = 0 ;
4495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4497 wxSize const &arg5_defvalue = wxDefaultSize ;
4498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4499 long arg6 = (long) 0 ;
4500 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4501 wxString *arg7 = (wxString *) &arg7_defvalue ;
4502 wxStaticText *result;
4503 bool temp3 = False ;
4504 wxPoint temp4 ;
4505 wxSize temp5 ;
4506 bool temp7 = False ;
4507 PyObject * obj0 = 0 ;
4508 PyObject * obj1 = 0 ;
4509 PyObject * obj2 = 0 ;
4510 PyObject * obj3 = 0 ;
4511 PyObject * obj4 = 0 ;
4512 PyObject * obj5 = 0 ;
4513 PyObject * obj6 = 0 ;
4514 char *kwnames[] = {
4515 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4516 };
4517
4518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4521 arg2 = (int) SWIG_AsInt(obj1);
4522 if (PyErr_Occurred()) SWIG_fail;
4523 {
4524 arg3 = wxString_in_helper(obj2);
4525 if (arg3 == NULL) SWIG_fail;
4526 temp3 = True;
4527 }
4528 if (obj3) {
4529 {
4530 arg4 = &temp4;
4531 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4532 }
4533 }
4534 if (obj4) {
4535 {
4536 arg5 = &temp5;
4537 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4538 }
4539 }
4540 if (obj5) {
4541 arg6 = (long) SWIG_AsLong(obj5);
4542 if (PyErr_Occurred()) SWIG_fail;
4543 }
4544 if (obj6) {
4545 {
4546 arg7 = wxString_in_helper(obj6);
4547 if (arg7 == NULL) SWIG_fail;
4548 temp7 = True;
4549 }
4550 }
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4559 {
4560 if (temp3)
4561 delete arg3;
4562 }
4563 {
4564 if (temp7)
4565 delete arg7;
4566 }
4567 return resultobj;
4568 fail:
4569 {
4570 if (temp3)
4571 delete arg3;
4572 }
4573 {
4574 if (temp7)
4575 delete arg7;
4576 }
4577 return NULL;
4578 }
4579
4580
4581 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4582 PyObject *resultobj;
4583 wxStaticText *result;
4584 char *kwnames[] = {
4585 NULL
4586 };
4587
4588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4589 {
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (wxStaticText *)new wxStaticText();
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4597 return resultobj;
4598 fail:
4599 return NULL;
4600 }
4601
4602
4603 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject *resultobj;
4605 wxStaticText *arg1 = (wxStaticText *) 0 ;
4606 wxWindow *arg2 = (wxWindow *) 0 ;
4607 int arg3 ;
4608 wxString *arg4 = 0 ;
4609 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4610 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4611 wxSize const &arg6_defvalue = wxDefaultSize ;
4612 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4613 long arg7 = (long) 0 ;
4614 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4615 wxString *arg8 = (wxString *) &arg8_defvalue ;
4616 bool result;
4617 bool temp4 = False ;
4618 wxPoint temp5 ;
4619 wxSize temp6 ;
4620 bool temp8 = False ;
4621 PyObject * obj0 = 0 ;
4622 PyObject * obj1 = 0 ;
4623 PyObject * obj2 = 0 ;
4624 PyObject * obj3 = 0 ;
4625 PyObject * obj4 = 0 ;
4626 PyObject * obj5 = 0 ;
4627 PyObject * obj6 = 0 ;
4628 PyObject * obj7 = 0 ;
4629 char *kwnames[] = {
4630 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4631 };
4632
4633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
4635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4636 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4638 arg3 = (int) SWIG_AsInt(obj2);
4639 if (PyErr_Occurred()) SWIG_fail;
4640 {
4641 arg4 = wxString_in_helper(obj3);
4642 if (arg4 == NULL) SWIG_fail;
4643 temp4 = True;
4644 }
4645 if (obj4) {
4646 {
4647 arg5 = &temp5;
4648 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4649 }
4650 }
4651 if (obj5) {
4652 {
4653 arg6 = &temp6;
4654 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4655 }
4656 }
4657 if (obj6) {
4658 arg7 = (long) SWIG_AsLong(obj6);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 if (obj7) {
4662 {
4663 arg8 = wxString_in_helper(obj7);
4664 if (arg8 == NULL) SWIG_fail;
4665 temp8 = True;
4666 }
4667 }
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4671
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4676 {
4677 if (temp4)
4678 delete arg4;
4679 }
4680 {
4681 if (temp8)
4682 delete arg8;
4683 }
4684 return resultobj;
4685 fail:
4686 {
4687 if (temp4)
4688 delete arg4;
4689 }
4690 {
4691 if (temp8)
4692 delete arg8;
4693 }
4694 return NULL;
4695 }
4696
4697
4698 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
4699 PyObject *obj;
4700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4701 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
4702 Py_INCREF(obj);
4703 return Py_BuildValue((char *)"");
4704 }
4705 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4706 PyObject *resultobj;
4707 wxWindow *arg1 = (wxWindow *) 0 ;
4708 int arg2 ;
4709 wxBitmap *arg3 = 0 ;
4710 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4711 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4712 wxSize const &arg5_defvalue = wxDefaultSize ;
4713 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4714 long arg6 = (long) 0 ;
4715 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
4716 wxString *arg7 = (wxString *) &arg7_defvalue ;
4717 wxStaticBitmap *result;
4718 wxPoint temp4 ;
4719 wxSize temp5 ;
4720 bool temp7 = False ;
4721 PyObject * obj0 = 0 ;
4722 PyObject * obj1 = 0 ;
4723 PyObject * obj2 = 0 ;
4724 PyObject * obj3 = 0 ;
4725 PyObject * obj4 = 0 ;
4726 PyObject * obj5 = 0 ;
4727 PyObject * obj6 = 0 ;
4728 char *kwnames[] = {
4729 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4730 };
4731
4732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4735 arg2 = (int) SWIG_AsInt(obj1);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
4738 SWIG_POINTER_EXCEPTION | 0)) == -1)
4739 SWIG_fail;
4740 if (arg3 == NULL) {
4741 PyErr_SetString(PyExc_TypeError,"null reference");
4742 SWIG_fail;
4743 }
4744 if (obj3) {
4745 {
4746 arg4 = &temp4;
4747 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4748 }
4749 }
4750 if (obj4) {
4751 {
4752 arg5 = &temp5;
4753 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4754 }
4755 }
4756 if (obj5) {
4757 arg6 = (long) SWIG_AsLong(obj5);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 if (obj6) {
4761 {
4762 arg7 = wxString_in_helper(obj6);
4763 if (arg7 == NULL) SWIG_fail;
4764 temp7 = True;
4765 }
4766 }
4767 {
4768 PyThreadState* __tstate = wxPyBeginAllowThreads();
4769 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4770
4771 wxPyEndAllowThreads(__tstate);
4772 if (PyErr_Occurred()) SWIG_fail;
4773 }
4774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
4775 {
4776 if (temp7)
4777 delete arg7;
4778 }
4779 return resultobj;
4780 fail:
4781 {
4782 if (temp7)
4783 delete arg7;
4784 }
4785 return NULL;
4786 }
4787
4788
4789 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4790 PyObject *resultobj;
4791 wxStaticBitmap *result;
4792 char *kwnames[] = {
4793 NULL
4794 };
4795
4796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
4797 {
4798 PyThreadState* __tstate = wxPyBeginAllowThreads();
4799 result = (wxStaticBitmap *)new wxStaticBitmap();
4800
4801 wxPyEndAllowThreads(__tstate);
4802 if (PyErr_Occurred()) SWIG_fail;
4803 }
4804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
4805 return resultobj;
4806 fail:
4807 return NULL;
4808 }
4809
4810
4811 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4812 PyObject *resultobj;
4813 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4814 wxWindow *arg2 = (wxWindow *) 0 ;
4815 int arg3 ;
4816 wxBitmap *arg4 = 0 ;
4817 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4818 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4819 wxSize const &arg6_defvalue = wxDefaultSize ;
4820 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4821 long arg7 = (long) 0 ;
4822 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
4823 wxString *arg8 = (wxString *) &arg8_defvalue ;
4824 bool result;
4825 wxPoint temp5 ;
4826 wxSize temp6 ;
4827 bool temp8 = False ;
4828 PyObject * obj0 = 0 ;
4829 PyObject * obj1 = 0 ;
4830 PyObject * obj2 = 0 ;
4831 PyObject * obj3 = 0 ;
4832 PyObject * obj4 = 0 ;
4833 PyObject * obj5 = 0 ;
4834 PyObject * obj6 = 0 ;
4835 PyObject * obj7 = 0 ;
4836 char *kwnames[] = {
4837 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4838 };
4839
4840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4845 arg3 = (int) SWIG_AsInt(obj2);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
4848 SWIG_POINTER_EXCEPTION | 0)) == -1)
4849 SWIG_fail;
4850 if (arg4 == NULL) {
4851 PyErr_SetString(PyExc_TypeError,"null reference");
4852 SWIG_fail;
4853 }
4854 if (obj4) {
4855 {
4856 arg5 = &temp5;
4857 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4858 }
4859 }
4860 if (obj5) {
4861 {
4862 arg6 = &temp6;
4863 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4864 }
4865 }
4866 if (obj6) {
4867 arg7 = (long) SWIG_AsLong(obj6);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 if (obj7) {
4871 {
4872 arg8 = wxString_in_helper(obj7);
4873 if (arg8 == NULL) SWIG_fail;
4874 temp8 = True;
4875 }
4876 }
4877 {
4878 PyThreadState* __tstate = wxPyBeginAllowThreads();
4879 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4880
4881 wxPyEndAllowThreads(__tstate);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4885 {
4886 if (temp8)
4887 delete arg8;
4888 }
4889 return resultobj;
4890 fail:
4891 {
4892 if (temp8)
4893 delete arg8;
4894 }
4895 return NULL;
4896 }
4897
4898
4899 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4900 PyObject *resultobj;
4901 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4902 wxBitmap result;
4903 PyObject * obj0 = 0 ;
4904 char *kwnames[] = {
4905 (char *) "self", NULL
4906 };
4907
4908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
4909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4911 {
4912 PyThreadState* __tstate = wxPyBeginAllowThreads();
4913 result = (arg1)->GetBitmap();
4914
4915 wxPyEndAllowThreads(__tstate);
4916 if (PyErr_Occurred()) SWIG_fail;
4917 }
4918 {
4919 wxBitmap * resultptr;
4920 resultptr = new wxBitmap((wxBitmap &) result);
4921 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4922 }
4923 return resultobj;
4924 fail:
4925 return NULL;
4926 }
4927
4928
4929 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4930 PyObject *resultobj;
4931 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4932 wxBitmap *arg2 = 0 ;
4933 PyObject * obj0 = 0 ;
4934 PyObject * obj1 = 0 ;
4935 char *kwnames[] = {
4936 (char *) "self",(char *) "bitmap", NULL
4937 };
4938
4939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
4940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4942 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4943 SWIG_POINTER_EXCEPTION | 0)) == -1)
4944 SWIG_fail;
4945 if (arg2 == NULL) {
4946 PyErr_SetString(PyExc_TypeError,"null reference");
4947 SWIG_fail;
4948 }
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 (arg1)->SetBitmap((wxBitmap const &)*arg2);
4952
4953 wxPyEndAllowThreads(__tstate);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 }
4956 Py_INCREF(Py_None); resultobj = Py_None;
4957 return resultobj;
4958 fail:
4959 return NULL;
4960 }
4961
4962
4963 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4964 PyObject *resultobj;
4965 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4966 wxIcon *arg2 = 0 ;
4967 PyObject * obj0 = 0 ;
4968 PyObject * obj1 = 0 ;
4969 char *kwnames[] = {
4970 (char *) "self",(char *) "icon", NULL
4971 };
4972
4973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
4974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
4975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4976 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4977 SWIG_POINTER_EXCEPTION | 0)) == -1)
4978 SWIG_fail;
4979 if (arg2 == NULL) {
4980 PyErr_SetString(PyExc_TypeError,"null reference");
4981 SWIG_fail;
4982 }
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 (arg1)->SetIcon((wxIcon const &)*arg2);
4986
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 Py_INCREF(Py_None); resultobj = Py_None;
4991 return resultobj;
4992 fail:
4993 return NULL;
4994 }
4995
4996
4997 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
4998 PyObject *obj;
4999 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5000 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5001 Py_INCREF(obj);
5002 return Py_BuildValue((char *)"");
5003 }
5004 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5005 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5006 return 1;
5007 }
5008
5009
5010 static PyObject *_wrap_ListBoxNameStr_get() {
5011 PyObject *pyobj;
5012
5013 {
5014 #if wxUSE_UNICODE
5015 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5016 #else
5017 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5018 #endif
5019 }
5020 return pyobj;
5021 }
5022
5023
5024 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5025 PyObject *resultobj;
5026 wxWindow *arg1 = (wxWindow *) 0 ;
5027 int arg2 ;
5028 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5029 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5030 wxSize const &arg4_defvalue = wxDefaultSize ;
5031 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5032 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5033 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5034 long arg6 = (long) 0 ;
5035 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5036 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5037 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5038 wxString *arg8 = (wxString *) &arg8_defvalue ;
5039 wxListBox *result;
5040 wxPoint temp3 ;
5041 wxSize temp4 ;
5042 bool temp5 = False ;
5043 bool temp8 = False ;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 PyObject * obj2 = 0 ;
5047 PyObject * obj3 = 0 ;
5048 PyObject * obj4 = 0 ;
5049 PyObject * obj5 = 0 ;
5050 PyObject * obj6 = 0 ;
5051 PyObject * obj7 = 0 ;
5052 char *kwnames[] = {
5053 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5054 };
5055
5056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5059 arg2 = (int) SWIG_AsInt(obj1);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 if (obj2) {
5062 {
5063 arg3 = &temp3;
5064 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5065 }
5066 }
5067 if (obj3) {
5068 {
5069 arg4 = &temp4;
5070 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5071 }
5072 }
5073 if (obj4) {
5074 {
5075 if (! PySequence_Check(obj4)) {
5076 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5077 SWIG_fail;
5078 }
5079 arg5 = new wxArrayString;
5080 temp5 = True;
5081 int i, len=PySequence_Length(obj4);
5082 for (i=0; i<len; i++) {
5083 PyObject* item = PySequence_GetItem(obj4, i);
5084 #if wxUSE_UNICODE
5085 PyObject* str = PyObject_Unicode(item);
5086 #else
5087 PyObject* str = PyObject_Str(item);
5088 #endif
5089 arg5->Add(Py2wxString(str));
5090 Py_DECREF(item);
5091 Py_DECREF(str);
5092 }
5093 }
5094 }
5095 if (obj5) {
5096 arg6 = (long) SWIG_AsLong(obj5);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 }
5099 if (obj6) {
5100 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5101 SWIG_POINTER_EXCEPTION | 0)) == -1)
5102 SWIG_fail;
5103 if (arg7 == NULL) {
5104 PyErr_SetString(PyExc_TypeError,"null reference");
5105 SWIG_fail;
5106 }
5107 }
5108 if (obj7) {
5109 {
5110 arg8 = wxString_in_helper(obj7);
5111 if (arg8 == NULL) SWIG_fail;
5112 temp8 = True;
5113 }
5114 }
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5118
5119 wxPyEndAllowThreads(__tstate);
5120 if (PyErr_Occurred()) SWIG_fail;
5121 }
5122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5123 {
5124 if (temp5) delete arg5;
5125 }
5126 {
5127 if (temp8)
5128 delete arg8;
5129 }
5130 return resultobj;
5131 fail:
5132 {
5133 if (temp5) delete arg5;
5134 }
5135 {
5136 if (temp8)
5137 delete arg8;
5138 }
5139 return NULL;
5140 }
5141
5142
5143 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj;
5145 wxListBox *result;
5146 char *kwnames[] = {
5147 NULL
5148 };
5149
5150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 result = (wxListBox *)new wxListBox();
5154
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5166 PyObject *resultobj;
5167 wxListBox *arg1 = (wxListBox *) 0 ;
5168 wxWindow *arg2 = (wxWindow *) 0 ;
5169 int arg3 ;
5170 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5171 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5172 wxSize const &arg5_defvalue = wxDefaultSize ;
5173 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5174 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5175 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5176 long arg7 = (long) 0 ;
5177 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5178 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5179 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5180 wxString *arg9 = (wxString *) &arg9_defvalue ;
5181 bool result;
5182 wxPoint temp4 ;
5183 wxSize temp5 ;
5184 bool temp6 = False ;
5185 bool temp9 = False ;
5186 PyObject * obj0 = 0 ;
5187 PyObject * obj1 = 0 ;
5188 PyObject * obj2 = 0 ;
5189 PyObject * obj3 = 0 ;
5190 PyObject * obj4 = 0 ;
5191 PyObject * obj5 = 0 ;
5192 PyObject * obj6 = 0 ;
5193 PyObject * obj7 = 0 ;
5194 PyObject * obj8 = 0 ;
5195 char *kwnames[] = {
5196 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5197 };
5198
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5204 arg3 = (int) SWIG_AsInt(obj2);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 if (obj3) {
5207 {
5208 arg4 = &temp4;
5209 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5210 }
5211 }
5212 if (obj4) {
5213 {
5214 arg5 = &temp5;
5215 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5216 }
5217 }
5218 if (obj5) {
5219 {
5220 if (! PySequence_Check(obj5)) {
5221 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5222 SWIG_fail;
5223 }
5224 arg6 = new wxArrayString;
5225 temp6 = True;
5226 int i, len=PySequence_Length(obj5);
5227 for (i=0; i<len; i++) {
5228 PyObject* item = PySequence_GetItem(obj5, i);
5229 #if wxUSE_UNICODE
5230 PyObject* str = PyObject_Unicode(item);
5231 #else
5232 PyObject* str = PyObject_Str(item);
5233 #endif
5234 arg6->Add(Py2wxString(str));
5235 Py_DECREF(item);
5236 Py_DECREF(str);
5237 }
5238 }
5239 }
5240 if (obj6) {
5241 arg7 = (long) SWIG_AsLong(obj6);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 if (obj7) {
5245 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5246 SWIG_POINTER_EXCEPTION | 0)) == -1)
5247 SWIG_fail;
5248 if (arg8 == NULL) {
5249 PyErr_SetString(PyExc_TypeError,"null reference");
5250 SWIG_fail;
5251 }
5252 }
5253 if (obj8) {
5254 {
5255 arg9 = wxString_in_helper(obj8);
5256 if (arg9 == NULL) SWIG_fail;
5257 temp9 = True;
5258 }
5259 }
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5263
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5268 {
5269 if (temp6) delete arg6;
5270 }
5271 {
5272 if (temp9)
5273 delete arg9;
5274 }
5275 return resultobj;
5276 fail:
5277 {
5278 if (temp6) delete arg6;
5279 }
5280 {
5281 if (temp9)
5282 delete arg9;
5283 }
5284 return NULL;
5285 }
5286
5287
5288 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5289 PyObject *resultobj;
5290 wxListBox *arg1 = (wxListBox *) 0 ;
5291 wxString *arg2 = 0 ;
5292 int arg3 ;
5293 PyObject *arg4 = (PyObject *) NULL ;
5294 bool temp2 = False ;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 PyObject * obj2 = 0 ;
5298 PyObject * obj3 = 0 ;
5299 char *kwnames[] = {
5300 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5301 };
5302
5303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5306 {
5307 arg2 = wxString_in_helper(obj1);
5308 if (arg2 == NULL) SWIG_fail;
5309 temp2 = True;
5310 }
5311 arg3 = (int) SWIG_AsInt(obj2);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 if (obj3) {
5314 arg4 = obj3;
5315 }
5316 {
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5319
5320 wxPyEndAllowThreads(__tstate);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 }
5323 Py_INCREF(Py_None); resultobj = Py_None;
5324 {
5325 if (temp2)
5326 delete arg2;
5327 }
5328 return resultobj;
5329 fail:
5330 {
5331 if (temp2)
5332 delete arg2;
5333 }
5334 return NULL;
5335 }
5336
5337
5338 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 wxListBox *arg1 = (wxListBox *) 0 ;
5341 wxArrayString *arg2 = 0 ;
5342 int arg3 ;
5343 bool temp2 = False ;
5344 PyObject * obj0 = 0 ;
5345 PyObject * obj1 = 0 ;
5346 PyObject * obj2 = 0 ;
5347 char *kwnames[] = {
5348 (char *) "self",(char *) "items",(char *) "pos", NULL
5349 };
5350
5351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5354 {
5355 if (! PySequence_Check(obj1)) {
5356 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5357 SWIG_fail;
5358 }
5359 arg2 = new wxArrayString;
5360 temp2 = True;
5361 int i, len=PySequence_Length(obj1);
5362 for (i=0; i<len; i++) {
5363 PyObject* item = PySequence_GetItem(obj1, i);
5364 #if wxUSE_UNICODE
5365 PyObject* str = PyObject_Unicode(item);
5366 #else
5367 PyObject* str = PyObject_Str(item);
5368 #endif
5369 arg2->Add(Py2wxString(str));
5370 Py_DECREF(item);
5371 Py_DECREF(str);
5372 }
5373 }
5374 arg3 = (int) SWIG_AsInt(obj2);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 {
5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
5378 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5379
5380 wxPyEndAllowThreads(__tstate);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 Py_INCREF(Py_None); resultobj = Py_None;
5384 {
5385 if (temp2) delete arg2;
5386 }
5387 return resultobj;
5388 fail:
5389 {
5390 if (temp2) delete arg2;
5391 }
5392 return NULL;
5393 }
5394
5395
5396 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5397 PyObject *resultobj;
5398 wxListBox *arg1 = (wxListBox *) 0 ;
5399 wxArrayString *arg2 = 0 ;
5400 bool temp2 = False ;
5401 PyObject * obj0 = 0 ;
5402 PyObject * obj1 = 0 ;
5403 char *kwnames[] = {
5404 (char *) "self",(char *) "items", NULL
5405 };
5406
5407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5410 {
5411 if (! PySequence_Check(obj1)) {
5412 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5413 SWIG_fail;
5414 }
5415 arg2 = new wxArrayString;
5416 temp2 = True;
5417 int i, len=PySequence_Length(obj1);
5418 for (i=0; i<len; i++) {
5419 PyObject* item = PySequence_GetItem(obj1, i);
5420 #if wxUSE_UNICODE
5421 PyObject* str = PyObject_Unicode(item);
5422 #else
5423 PyObject* str = PyObject_Str(item);
5424 #endif
5425 arg2->Add(Py2wxString(str));
5426 Py_DECREF(item);
5427 Py_DECREF(str);
5428 }
5429 }
5430 {
5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
5432 (arg1)->Set((wxArrayString const &)*arg2);
5433
5434 wxPyEndAllowThreads(__tstate);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 }
5437 Py_INCREF(Py_None); resultobj = Py_None;
5438 {
5439 if (temp2) delete arg2;
5440 }
5441 return resultobj;
5442 fail:
5443 {
5444 if (temp2) delete arg2;
5445 }
5446 return NULL;
5447 }
5448
5449
5450 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj;
5452 wxListBox *arg1 = (wxListBox *) 0 ;
5453 int arg2 ;
5454 bool result;
5455 PyObject * obj0 = 0 ;
5456 PyObject * obj1 = 0 ;
5457 char *kwnames[] = {
5458 (char *) "self",(char *) "n", NULL
5459 };
5460
5461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5464 arg2 = (int) SWIG_AsInt(obj1);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 {
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5469
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5474 return resultobj;
5475 fail:
5476 return NULL;
5477 }
5478
5479
5480 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5481 PyObject *resultobj;
5482 wxListBox *arg1 = (wxListBox *) 0 ;
5483 int arg2 ;
5484 bool arg3 = (bool) True ;
5485 PyObject * obj0 = 0 ;
5486 PyObject * obj1 = 0 ;
5487 PyObject * obj2 = 0 ;
5488 char *kwnames[] = {
5489 (char *) "self",(char *) "n",(char *) "select", NULL
5490 };
5491
5492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5495 arg2 = (int) SWIG_AsInt(obj1);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 if (obj2) {
5498 arg3 = (bool) SWIG_AsBool(obj2);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 }
5501 {
5502 PyThreadState* __tstate = wxPyBeginAllowThreads();
5503 (arg1)->SetSelection(arg2,arg3);
5504
5505 wxPyEndAllowThreads(__tstate);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 }
5508 Py_INCREF(Py_None); resultobj = Py_None;
5509 return resultobj;
5510 fail:
5511 return NULL;
5512 }
5513
5514
5515 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5516 PyObject *resultobj;
5517 wxListBox *arg1 = (wxListBox *) 0 ;
5518 int arg2 ;
5519 PyObject * obj0 = 0 ;
5520 PyObject * obj1 = 0 ;
5521 char *kwnames[] = {
5522 (char *) "self",(char *) "n", NULL
5523 };
5524
5525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5528 arg2 = (int) SWIG_AsInt(obj1);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 (arg1)->Select(arg2);
5533
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 Py_INCREF(Py_None); resultobj = Py_None;
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj;
5546 wxListBox *arg1 = (wxListBox *) 0 ;
5547 int arg2 ;
5548 PyObject * obj0 = 0 ;
5549 PyObject * obj1 = 0 ;
5550 char *kwnames[] = {
5551 (char *) "self",(char *) "n", NULL
5552 };
5553
5554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
5555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5557 arg2 = (int) SWIG_AsInt(obj1);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 {
5560 PyThreadState* __tstate = wxPyBeginAllowThreads();
5561 (arg1)->Deselect(arg2);
5562
5563 wxPyEndAllowThreads(__tstate);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 }
5566 Py_INCREF(Py_None); resultobj = Py_None;
5567 return resultobj;
5568 fail:
5569 return NULL;
5570 }
5571
5572
5573 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
5574 PyObject *resultobj;
5575 wxListBox *arg1 = (wxListBox *) 0 ;
5576 int arg2 = (int) -1 ;
5577 PyObject * obj0 = 0 ;
5578 PyObject * obj1 = 0 ;
5579 char *kwnames[] = {
5580 (char *) "self",(char *) "itemToLeaveSelected", NULL
5581 };
5582
5583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
5584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5586 if (obj1) {
5587 arg2 = (int) SWIG_AsInt(obj1);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 (arg1)->DeselectAll(arg2);
5593
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 Py_INCREF(Py_None); resultobj = Py_None;
5598 return resultobj;
5599 fail:
5600 return NULL;
5601 }
5602
5603
5604 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj;
5606 wxListBox *arg1 = (wxListBox *) 0 ;
5607 wxString *arg2 = 0 ;
5608 bool arg3 = (bool) True ;
5609 bool result;
5610 bool temp2 = False ;
5611 PyObject * obj0 = 0 ;
5612 PyObject * obj1 = 0 ;
5613 PyObject * obj2 = 0 ;
5614 char *kwnames[] = {
5615 (char *) "self",(char *) "s",(char *) "select", NULL
5616 };
5617
5618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5621 {
5622 arg2 = wxString_in_helper(obj1);
5623 if (arg2 == NULL) SWIG_fail;
5624 temp2 = True;
5625 }
5626 if (obj2) {
5627 arg3 = (bool) SWIG_AsBool(obj2);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 {
5631 PyThreadState* __tstate = wxPyBeginAllowThreads();
5632 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
5633
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5638 {
5639 if (temp2)
5640 delete arg2;
5641 }
5642 return resultobj;
5643 fail:
5644 {
5645 if (temp2)
5646 delete arg2;
5647 }
5648 return NULL;
5649 }
5650
5651
5652 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj;
5654 wxListBox *arg1 = (wxListBox *) 0 ;
5655 PyObject *result;
5656 PyObject * obj0 = 0 ;
5657 char *kwnames[] = {
5658 (char *) "self", NULL
5659 };
5660
5661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
5662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 result = (PyObject *)wxListBox_GetSelections(arg1);
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = result;
5672 return resultobj;
5673 fail:
5674 return NULL;
5675 }
5676
5677
5678 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxListBox *arg1 = (wxListBox *) 0 ;
5681 int arg2 ;
5682 PyObject * obj0 = 0 ;
5683 PyObject * obj1 = 0 ;
5684 char *kwnames[] = {
5685 (char *) "self",(char *) "n", NULL
5686 };
5687
5688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
5689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5691 arg2 = (int) SWIG_AsInt(obj1);
5692 if (PyErr_Occurred()) SWIG_fail;
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 (arg1)->SetFirstItem(arg2);
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 Py_INCREF(Py_None); resultobj = Py_None;
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
5708 PyObject *resultobj;
5709 wxListBox *arg1 = (wxListBox *) 0 ;
5710 wxString *arg2 = 0 ;
5711 bool temp2 = False ;
5712 PyObject * obj0 = 0 ;
5713 PyObject * obj1 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self",(char *) "s", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 {
5722 arg2 = wxString_in_helper(obj1);
5723 if (arg2 == NULL) SWIG_fail;
5724 temp2 = True;
5725 }
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 (arg1)->SetFirstItem((wxString const &)*arg2);
5729
5730 wxPyEndAllowThreads(__tstate);
5731 if (PyErr_Occurred()) SWIG_fail;
5732 }
5733 Py_INCREF(Py_None); resultobj = Py_None;
5734 {
5735 if (temp2)
5736 delete arg2;
5737 }
5738 return resultobj;
5739 fail:
5740 {
5741 if (temp2)
5742 delete arg2;
5743 }
5744 return NULL;
5745 }
5746
5747
5748 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5749 PyObject *resultobj;
5750 wxListBox *arg1 = (wxListBox *) 0 ;
5751 int arg2 ;
5752 PyObject * obj0 = 0 ;
5753 PyObject * obj1 = 0 ;
5754 char *kwnames[] = {
5755 (char *) "self",(char *) "n", NULL
5756 };
5757
5758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5761 arg2 = (int) SWIG_AsInt(obj1);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 {
5764 PyThreadState* __tstate = wxPyBeginAllowThreads();
5765 (arg1)->EnsureVisible(arg2);
5766
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 Py_INCREF(Py_None); resultobj = Py_None;
5771 return resultobj;
5772 fail:
5773 return NULL;
5774 }
5775
5776
5777 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj;
5779 wxListBox *arg1 = (wxListBox *) 0 ;
5780 wxString *arg2 = 0 ;
5781 bool temp2 = False ;
5782 PyObject * obj0 = 0 ;
5783 PyObject * obj1 = 0 ;
5784 char *kwnames[] = {
5785 (char *) "self",(char *) "s", NULL
5786 };
5787
5788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5791 {
5792 arg2 = wxString_in_helper(obj1);
5793 if (arg2 == NULL) SWIG_fail;
5794 temp2 = True;
5795 }
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 Py_INCREF(Py_None); resultobj = Py_None;
5804 {
5805 if (temp2)
5806 delete arg2;
5807 }
5808 return resultobj;
5809 fail:
5810 {
5811 if (temp2)
5812 delete arg2;
5813 }
5814 return NULL;
5815 }
5816
5817
5818 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
5819 PyObject *resultobj;
5820 wxListBox *arg1 = (wxListBox *) 0 ;
5821 bool result;
5822 PyObject * obj0 = 0 ;
5823 char *kwnames[] = {
5824 (char *) "self", NULL
5825 };
5826
5827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
5828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5830 {
5831 PyThreadState* __tstate = wxPyBeginAllowThreads();
5832 result = (bool)((wxListBox const *)arg1)->IsSorted();
5833
5834 wxPyEndAllowThreads(__tstate);
5835 if (PyErr_Occurred()) SWIG_fail;
5836 }
5837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5838 return resultobj;
5839 fail:
5840 return NULL;
5841 }
5842
5843
5844 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5845 PyObject *resultobj;
5846 wxListBox *arg1 = (wxListBox *) 0 ;
5847 int arg2 ;
5848 wxColour *arg3 = 0 ;
5849 wxColour temp3 ;
5850 PyObject * obj0 = 0 ;
5851 PyObject * obj1 = 0 ;
5852 PyObject * obj2 = 0 ;
5853 char *kwnames[] = {
5854 (char *) "self",(char *) "item",(char *) "c", NULL
5855 };
5856
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5860 arg2 = (int) SWIG_AsInt(obj1);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 {
5863 arg3 = &temp3;
5864 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5865 }
5866 {
5867 PyThreadState* __tstate = wxPyBeginAllowThreads();
5868 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
5869
5870 wxPyEndAllowThreads(__tstate);
5871 if (PyErr_Occurred()) SWIG_fail;
5872 }
5873 Py_INCREF(Py_None); resultobj = Py_None;
5874 return resultobj;
5875 fail:
5876 return NULL;
5877 }
5878
5879
5880 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5881 PyObject *resultobj;
5882 wxListBox *arg1 = (wxListBox *) 0 ;
5883 int arg2 ;
5884 wxColour *arg3 = 0 ;
5885 wxColour temp3 ;
5886 PyObject * obj0 = 0 ;
5887 PyObject * obj1 = 0 ;
5888 PyObject * obj2 = 0 ;
5889 char *kwnames[] = {
5890 (char *) "self",(char *) "item",(char *) "c", NULL
5891 };
5892
5893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5896 arg2 = (int) SWIG_AsInt(obj1);
5897 if (PyErr_Occurred()) SWIG_fail;
5898 {
5899 arg3 = &temp3;
5900 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5901 }
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
5905
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 Py_INCREF(Py_None); resultobj = Py_None;
5910 return resultobj;
5911 fail:
5912 return NULL;
5913 }
5914
5915
5916 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5917 PyObject *resultobj;
5918 wxListBox *arg1 = (wxListBox *) 0 ;
5919 int arg2 ;
5920 wxFont *arg3 = 0 ;
5921 PyObject * obj0 = 0 ;
5922 PyObject * obj1 = 0 ;
5923 PyObject * obj2 = 0 ;
5924 char *kwnames[] = {
5925 (char *) "self",(char *) "item",(char *) "f", NULL
5926 };
5927
5928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
5929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5931 arg2 = (int) SWIG_AsInt(obj1);
5932 if (PyErr_Occurred()) SWIG_fail;
5933 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
5934 SWIG_POINTER_EXCEPTION | 0)) == -1)
5935 SWIG_fail;
5936 if (arg3 == NULL) {
5937 PyErr_SetString(PyExc_TypeError,"null reference");
5938 SWIG_fail;
5939 }
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
5943
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 Py_INCREF(Py_None); resultobj = Py_None;
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
5955 PyObject *obj;
5956 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5957 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
5958 Py_INCREF(obj);
5959 return Py_BuildValue((char *)"");
5960 }
5961 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxWindow *arg1 = (wxWindow *) 0 ;
5964 int arg2 ;
5965 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5966 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5967 wxSize const &arg4_defvalue = wxDefaultSize ;
5968 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5969 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5970 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5971 long arg6 = (long) 0 ;
5972 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5973 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5974 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5975 wxString *arg8 = (wxString *) &arg8_defvalue ;
5976 wxCheckListBox *result;
5977 wxPoint temp3 ;
5978 wxSize temp4 ;
5979 bool temp5 = False ;
5980 bool temp8 = False ;
5981 PyObject * obj0 = 0 ;
5982 PyObject * obj1 = 0 ;
5983 PyObject * obj2 = 0 ;
5984 PyObject * obj3 = 0 ;
5985 PyObject * obj4 = 0 ;
5986 PyObject * obj5 = 0 ;
5987 PyObject * obj6 = 0 ;
5988 PyObject * obj7 = 0 ;
5989 char *kwnames[] = {
5990 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5991 };
5992
5993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5996 arg2 = (int) SWIG_AsInt(obj1);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 if (obj2) {
5999 {
6000 arg3 = &temp3;
6001 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6002 }
6003 }
6004 if (obj3) {
6005 {
6006 arg4 = &temp4;
6007 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6008 }
6009 }
6010 if (obj4) {
6011 {
6012 if (! PySequence_Check(obj4)) {
6013 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6014 SWIG_fail;
6015 }
6016 arg5 = new wxArrayString;
6017 temp5 = True;
6018 int i, len=PySequence_Length(obj4);
6019 for (i=0; i<len; i++) {
6020 PyObject* item = PySequence_GetItem(obj4, i);
6021 #if wxUSE_UNICODE
6022 PyObject* str = PyObject_Unicode(item);
6023 #else
6024 PyObject* str = PyObject_Str(item);
6025 #endif
6026 arg5->Add(Py2wxString(str));
6027 Py_DECREF(item);
6028 Py_DECREF(str);
6029 }
6030 }
6031 }
6032 if (obj5) {
6033 arg6 = (long) SWIG_AsLong(obj5);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 if (obj6) {
6037 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6038 SWIG_POINTER_EXCEPTION | 0)) == -1)
6039 SWIG_fail;
6040 if (arg7 == NULL) {
6041 PyErr_SetString(PyExc_TypeError,"null reference");
6042 SWIG_fail;
6043 }
6044 }
6045 if (obj7) {
6046 {
6047 arg8 = wxString_in_helper(obj7);
6048 if (arg8 == NULL) SWIG_fail;
6049 temp8 = True;
6050 }
6051 }
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6060 {
6061 if (temp5) delete arg5;
6062 }
6063 {
6064 if (temp8)
6065 delete arg8;
6066 }
6067 return resultobj;
6068 fail:
6069 {
6070 if (temp5) delete arg5;
6071 }
6072 {
6073 if (temp8)
6074 delete arg8;
6075 }
6076 return NULL;
6077 }
6078
6079
6080 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6081 PyObject *resultobj;
6082 wxCheckListBox *result;
6083 char *kwnames[] = {
6084 NULL
6085 };
6086
6087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = (wxCheckListBox *)new wxCheckListBox();
6091
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj;
6104 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6105 wxWindow *arg2 = (wxWindow *) 0 ;
6106 int arg3 ;
6107 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6108 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6109 wxSize const &arg5_defvalue = wxDefaultSize ;
6110 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6111 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6112 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6113 long arg7 = (long) 0 ;
6114 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6115 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6116 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6117 wxString *arg9 = (wxString *) &arg9_defvalue ;
6118 bool result;
6119 wxPoint temp4 ;
6120 wxSize temp5 ;
6121 bool temp6 = False ;
6122 bool temp9 = False ;
6123 PyObject * obj0 = 0 ;
6124 PyObject * obj1 = 0 ;
6125 PyObject * obj2 = 0 ;
6126 PyObject * obj3 = 0 ;
6127 PyObject * obj4 = 0 ;
6128 PyObject * obj5 = 0 ;
6129 PyObject * obj6 = 0 ;
6130 PyObject * obj7 = 0 ;
6131 PyObject * obj8 = 0 ;
6132 char *kwnames[] = {
6133 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6134 };
6135
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6139 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6141 arg3 = (int) SWIG_AsInt(obj2);
6142 if (PyErr_Occurred()) SWIG_fail;
6143 if (obj3) {
6144 {
6145 arg4 = &temp4;
6146 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6147 }
6148 }
6149 if (obj4) {
6150 {
6151 arg5 = &temp5;
6152 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6153 }
6154 }
6155 if (obj5) {
6156 {
6157 if (! PySequence_Check(obj5)) {
6158 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6159 SWIG_fail;
6160 }
6161 arg6 = new wxArrayString;
6162 temp6 = True;
6163 int i, len=PySequence_Length(obj5);
6164 for (i=0; i<len; i++) {
6165 PyObject* item = PySequence_GetItem(obj5, i);
6166 #if wxUSE_UNICODE
6167 PyObject* str = PyObject_Unicode(item);
6168 #else
6169 PyObject* str = PyObject_Str(item);
6170 #endif
6171 arg6->Add(Py2wxString(str));
6172 Py_DECREF(item);
6173 Py_DECREF(str);
6174 }
6175 }
6176 }
6177 if (obj6) {
6178 arg7 = (long) SWIG_AsLong(obj6);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 if (obj7) {
6182 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6183 SWIG_POINTER_EXCEPTION | 0)) == -1)
6184 SWIG_fail;
6185 if (arg8 == NULL) {
6186 PyErr_SetString(PyExc_TypeError,"null reference");
6187 SWIG_fail;
6188 }
6189 }
6190 if (obj8) {
6191 {
6192 arg9 = wxString_in_helper(obj8);
6193 if (arg9 == NULL) SWIG_fail;
6194 temp9 = True;
6195 }
6196 }
6197 {
6198 PyThreadState* __tstate = wxPyBeginAllowThreads();
6199 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6200
6201 wxPyEndAllowThreads(__tstate);
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6205 {
6206 if (temp6) delete arg6;
6207 }
6208 {
6209 if (temp9)
6210 delete arg9;
6211 }
6212 return resultobj;
6213 fail:
6214 {
6215 if (temp6) delete arg6;
6216 }
6217 {
6218 if (temp9)
6219 delete arg9;
6220 }
6221 return NULL;
6222 }
6223
6224
6225 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6228 int arg2 ;
6229 bool result;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self",(char *) "index", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6239 arg2 = (int) SWIG_AsInt(obj1);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 {
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 result = (bool)(arg1)->IsChecked(arg2);
6244
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6249 return resultobj;
6250 fail:
6251 return NULL;
6252 }
6253
6254
6255 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6256 PyObject *resultobj;
6257 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6258 int arg2 ;
6259 int arg3 = (int) True ;
6260 PyObject * obj0 = 0 ;
6261 PyObject * obj1 = 0 ;
6262 PyObject * obj2 = 0 ;
6263 char *kwnames[] = {
6264 (char *) "self",(char *) "index",(char *) "check", NULL
6265 };
6266
6267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6270 arg2 = (int) SWIG_AsInt(obj1);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 if (obj2) {
6273 arg3 = (int) SWIG_AsInt(obj2);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 {
6277 PyThreadState* __tstate = wxPyBeginAllowThreads();
6278 (arg1)->Check(arg2,arg3);
6279
6280 wxPyEndAllowThreads(__tstate);
6281 if (PyErr_Occurred()) SWIG_fail;
6282 }
6283 Py_INCREF(Py_None); resultobj = Py_None;
6284 return resultobj;
6285 fail:
6286 return NULL;
6287 }
6288
6289
6290 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6291 PyObject *resultobj;
6292 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6293 int result;
6294 PyObject * obj0 = 0 ;
6295 char *kwnames[] = {
6296 (char *) "self", NULL
6297 };
6298
6299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
6300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6302 {
6303 PyThreadState* __tstate = wxPyBeginAllowThreads();
6304 result = (int)(arg1)->GetItemHeight();
6305
6306 wxPyEndAllowThreads(__tstate);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 resultobj = SWIG_FromInt((int)result);
6310 return resultobj;
6311 fail:
6312 return NULL;
6313 }
6314
6315
6316 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj;
6318 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6319 wxPoint *arg2 = 0 ;
6320 int result;
6321 wxPoint temp2 ;
6322 PyObject * obj0 = 0 ;
6323 PyObject * obj1 = 0 ;
6324 char *kwnames[] = {
6325 (char *) "self",(char *) "pt", NULL
6326 };
6327
6328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6331 {
6332 arg2 = &temp2;
6333 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6334 }
6335 {
6336 PyThreadState* __tstate = wxPyBeginAllowThreads();
6337 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6338
6339 wxPyEndAllowThreads(__tstate);
6340 if (PyErr_Occurred()) SWIG_fail;
6341 }
6342 resultobj = SWIG_FromInt((int)result);
6343 return resultobj;
6344 fail:
6345 return NULL;
6346 }
6347
6348
6349 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6350 PyObject *resultobj;
6351 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6352 int arg2 ;
6353 int arg3 ;
6354 int result;
6355 PyObject * obj0 = 0 ;
6356 PyObject * obj1 = 0 ;
6357 PyObject * obj2 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self",(char *) "x",(char *) "y", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6365 arg2 = (int) SWIG_AsInt(obj1);
6366 if (PyErr_Occurred()) SWIG_fail;
6367 arg3 = (int) SWIG_AsInt(obj2);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 {
6370 PyThreadState* __tstate = wxPyBeginAllowThreads();
6371 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6372
6373 wxPyEndAllowThreads(__tstate);
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 resultobj = SWIG_FromInt((int)result);
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6384 PyObject *obj;
6385 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6386 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6387 Py_INCREF(obj);
6388 return Py_BuildValue((char *)"");
6389 }
6390 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6391 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6392 return 1;
6393 }
6394
6395
6396 static PyObject *_wrap_TextCtrlNameStr_get() {
6397 PyObject *pyobj;
6398
6399 {
6400 #if wxUSE_UNICODE
6401 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6402 #else
6403 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6404 #endif
6405 }
6406 return pyobj;
6407 }
6408
6409
6410 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6411 PyObject *resultobj;
6412 wxTextAttr *result;
6413
6414 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = (wxTextAttr *)new wxTextAttr();
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6423 return resultobj;
6424 fail:
6425 return NULL;
6426 }
6427
6428
6429 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6430 PyObject *resultobj;
6431 wxColour *arg1 = 0 ;
6432 wxColour const &arg2_defvalue = wxNullColour ;
6433 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6434 wxFont const &arg3_defvalue = wxNullFont ;
6435 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6436 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6437 wxTextAttr *result;
6438 wxColour temp1 ;
6439 wxColour temp2 ;
6440 PyObject * obj0 = 0 ;
6441 PyObject * obj1 = 0 ;
6442 PyObject * obj2 = 0 ;
6443 PyObject * obj3 = 0 ;
6444
6445 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6446 {
6447 arg1 = &temp1;
6448 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6449 }
6450 if (obj1) {
6451 {
6452 arg2 = &temp2;
6453 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6454 }
6455 }
6456 if (obj2) {
6457 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6458 SWIG_POINTER_EXCEPTION | 0)) == -1)
6459 SWIG_fail;
6460 if (arg3 == NULL) {
6461 PyErr_SetString(PyExc_TypeError,"null reference");
6462 SWIG_fail;
6463 }
6464 }
6465 if (obj3) {
6466 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6472
6473 wxPyEndAllowThreads(__tstate);
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6477 return resultobj;
6478 fail:
6479 return NULL;
6480 }
6481
6482
6483 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6484 int argc;
6485 PyObject *argv[5];
6486 int ii;
6487
6488 argc = PyObject_Length(args);
6489 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6490 argv[ii] = PyTuple_GetItem(args,ii);
6491 }
6492 if (argc == 0) {
6493 return _wrap_new_TextAttr__SWIG_0(self,args);
6494 }
6495 if ((argc >= 1) && (argc <= 4)) {
6496 int _v;
6497 {
6498 _v = wxColour_typecheck(argv[0]);
6499 }
6500 if (_v) {
6501 if (argc <= 1) {
6502 return _wrap_new_TextAttr__SWIG_1(self,args);
6503 }
6504 {
6505 _v = wxColour_typecheck(argv[1]);
6506 }
6507 if (_v) {
6508 if (argc <= 2) {
6509 return _wrap_new_TextAttr__SWIG_1(self,args);
6510 }
6511 {
6512 void *ptr;
6513 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6514 _v = 0;
6515 PyErr_Clear();
6516 } else {
6517 _v = 1;
6518 }
6519 }
6520 if (_v) {
6521 if (argc <= 3) {
6522 return _wrap_new_TextAttr__SWIG_1(self,args);
6523 }
6524 _v = SWIG_CheckInt(argv[3]);
6525 if (_v) {
6526 return _wrap_new_TextAttr__SWIG_1(self,args);
6527 }
6528 }
6529 }
6530 }
6531 }
6532
6533 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6534 return NULL;
6535 }
6536
6537
6538 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6539 PyObject *resultobj;
6540 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6541 PyObject * obj0 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "self", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
6547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 delete arg1;
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 Py_INCREF(Py_None); resultobj = Py_None;
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj;
6565 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6566 PyObject * obj0 = 0 ;
6567 char *kwnames[] = {
6568 (char *) "self", NULL
6569 };
6570
6571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
6572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6574 {
6575 PyThreadState* __tstate = wxPyBeginAllowThreads();
6576 (arg1)->Init();
6577
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 Py_INCREF(Py_None); resultobj = Py_None;
6582 return resultobj;
6583 fail:
6584 return NULL;
6585 }
6586
6587
6588 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6589 PyObject *resultobj;
6590 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6591 wxColour *arg2 = 0 ;
6592 wxColour temp2 ;
6593 PyObject * obj0 = 0 ;
6594 PyObject * obj1 = 0 ;
6595 char *kwnames[] = {
6596 (char *) "self",(char *) "colText", NULL
6597 };
6598
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
6600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6602 {
6603 arg2 = &temp2;
6604 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6605 }
6606 {
6607 PyThreadState* __tstate = wxPyBeginAllowThreads();
6608 (arg1)->SetTextColour((wxColour const &)*arg2);
6609
6610 wxPyEndAllowThreads(__tstate);
6611 if (PyErr_Occurred()) SWIG_fail;
6612 }
6613 Py_INCREF(Py_None); resultobj = Py_None;
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj;
6622 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6623 wxColour *arg2 = 0 ;
6624 wxColour temp2 ;
6625 PyObject * obj0 = 0 ;
6626 PyObject * obj1 = 0 ;
6627 char *kwnames[] = {
6628 (char *) "self",(char *) "colBack", NULL
6629 };
6630
6631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
6632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6634 {
6635 arg2 = &temp2;
6636 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6637 }
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 Py_INCREF(Py_None); resultobj = Py_None;
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj;
6654 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6655 wxFont *arg2 = 0 ;
6656 long arg3 = (long) wxTEXT_ATTR_FONT ;
6657 PyObject * obj0 = 0 ;
6658 PyObject * obj1 = 0 ;
6659 PyObject * obj2 = 0 ;
6660 char *kwnames[] = {
6661 (char *) "self",(char *) "font",(char *) "flags", NULL
6662 };
6663
6664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6668 SWIG_POINTER_EXCEPTION | 0)) == -1)
6669 SWIG_fail;
6670 if (arg2 == NULL) {
6671 PyErr_SetString(PyExc_TypeError,"null reference");
6672 SWIG_fail;
6673 }
6674 if (obj2) {
6675 arg3 = (long) SWIG_AsLong(obj2);
6676 if (PyErr_Occurred()) SWIG_fail;
6677 }
6678 {
6679 PyThreadState* __tstate = wxPyBeginAllowThreads();
6680 (arg1)->SetFont((wxFont const &)*arg2,arg3);
6681
6682 wxPyEndAllowThreads(__tstate);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 Py_INCREF(Py_None); resultobj = Py_None;
6686 return resultobj;
6687 fail:
6688 return NULL;
6689 }
6690
6691
6692 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj;
6694 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6695 int arg2 ;
6696 PyObject * obj0 = 0 ;
6697 PyObject * obj1 = 0 ;
6698 char *kwnames[] = {
6699 (char *) "self",(char *) "alignment", NULL
6700 };
6701
6702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
6703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6705 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
6706 if (PyErr_Occurred()) SWIG_fail;
6707 {
6708 PyThreadState* __tstate = wxPyBeginAllowThreads();
6709 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
6710
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 Py_INCREF(Py_None); resultobj = Py_None;
6715 return resultobj;
6716 fail:
6717 return NULL;
6718 }
6719
6720
6721 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6724 wxArrayInt *arg2 = 0 ;
6725 bool temp2 = False ;
6726 PyObject * obj0 = 0 ;
6727 PyObject * obj1 = 0 ;
6728 char *kwnames[] = {
6729 (char *) "self",(char *) "tabs", NULL
6730 };
6731
6732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
6733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6735 {
6736 if (! PySequence_Check(obj1)) {
6737 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
6738 SWIG_fail;
6739 }
6740 arg2 = new wxArrayInt;
6741 temp2 = True;
6742 int i, len=PySequence_Length(obj1);
6743 for (i=0; i<len; i++) {
6744 PyObject* item = PySequence_GetItem(obj1, i);
6745 PyObject* number = PyNumber_Int(item);
6746 arg2->Add(PyInt_AS_LONG(number));
6747 Py_DECREF(item);
6748 Py_DECREF(number);
6749 }
6750 }
6751 {
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 (arg1)->SetTabs((wxArrayInt const &)*arg2);
6754
6755 wxPyEndAllowThreads(__tstate);
6756 if (PyErr_Occurred()) SWIG_fail;
6757 }
6758 Py_INCREF(Py_None); resultobj = Py_None;
6759 {
6760 if (temp2) delete arg2;
6761 }
6762 return resultobj;
6763 fail:
6764 {
6765 if (temp2) delete arg2;
6766 }
6767 return NULL;
6768 }
6769
6770
6771 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj;
6773 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6774 int arg2 ;
6775 PyObject * obj0 = 0 ;
6776 PyObject * obj1 = 0 ;
6777 char *kwnames[] = {
6778 (char *) "self",(char *) "indent", NULL
6779 };
6780
6781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
6782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6784 arg2 = (int) SWIG_AsInt(obj1);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 {
6787 PyThreadState* __tstate = wxPyBeginAllowThreads();
6788 (arg1)->SetLeftIndent(arg2);
6789
6790 wxPyEndAllowThreads(__tstate);
6791 if (PyErr_Occurred()) SWIG_fail;
6792 }
6793 Py_INCREF(Py_None); resultobj = Py_None;
6794 return resultobj;
6795 fail:
6796 return NULL;
6797 }
6798
6799
6800 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6803 int arg2 ;
6804 PyObject * obj0 = 0 ;
6805 PyObject * obj1 = 0 ;
6806 char *kwnames[] = {
6807 (char *) "self",(char *) "indent", NULL
6808 };
6809
6810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
6811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6813 arg2 = (int) SWIG_AsInt(obj1);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 {
6816 PyThreadState* __tstate = wxPyBeginAllowThreads();
6817 (arg1)->SetRightIndent(arg2);
6818
6819 wxPyEndAllowThreads(__tstate);
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 Py_INCREF(Py_None); resultobj = Py_None;
6823 return resultobj;
6824 fail:
6825 return NULL;
6826 }
6827
6828
6829 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
6830 PyObject *resultobj;
6831 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6832 long arg2 ;
6833 PyObject * obj0 = 0 ;
6834 PyObject * obj1 = 0 ;
6835 char *kwnames[] = {
6836 (char *) "self",(char *) "flags", NULL
6837 };
6838
6839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
6840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6842 arg2 = (long) SWIG_AsLong(obj1);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 {
6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
6846 (arg1)->SetFlags(arg2);
6847
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 Py_INCREF(Py_None); resultobj = Py_None;
6852 return resultobj;
6853 fail:
6854 return NULL;
6855 }
6856
6857
6858 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6859 PyObject *resultobj;
6860 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6861 bool result;
6862 PyObject * obj0 = 0 ;
6863 char *kwnames[] = {
6864 (char *) "self", NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
6868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6870 {
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6878 return resultobj;
6879 fail:
6880 return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj;
6886 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6887 bool result;
6888 PyObject * obj0 = 0 ;
6889 char *kwnames[] = {
6890 (char *) "self", NULL
6891 };
6892
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
6894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6904 return resultobj;
6905 fail:
6906 return NULL;
6907 }
6908
6909
6910 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj;
6912 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6913 bool result;
6914 PyObject * obj0 = 0 ;
6915 char *kwnames[] = {
6916 (char *) "self", NULL
6917 };
6918
6919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
6920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6922 {
6923 PyThreadState* __tstate = wxPyBeginAllowThreads();
6924 result = (bool)((wxTextAttr const *)arg1)->HasFont();
6925
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj;
6938 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6939 bool result;
6940 PyObject * obj0 = 0 ;
6941 char *kwnames[] = {
6942 (char *) "self", NULL
6943 };
6944
6945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
6946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6948 {
6949 PyThreadState* __tstate = wxPyBeginAllowThreads();
6950 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
6951
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj;
6964 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6965 bool result;
6966 PyObject * obj0 = 0 ;
6967 char *kwnames[] = {
6968 (char *) "self", NULL
6969 };
6970
6971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
6972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6974 {
6975 PyThreadState* __tstate = wxPyBeginAllowThreads();
6976 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
6977
6978 wxPyEndAllowThreads(__tstate);
6979 if (PyErr_Occurred()) SWIG_fail;
6980 }
6981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6982 return resultobj;
6983 fail:
6984 return NULL;
6985 }
6986
6987
6988 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6989 PyObject *resultobj;
6990 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6991 bool result;
6992 PyObject * obj0 = 0 ;
6993 char *kwnames[] = {
6994 (char *) "self", NULL
6995 };
6996
6997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
6998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
6999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7003
7004 wxPyEndAllowThreads(__tstate);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 }
7007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7008 return resultobj;
7009 fail:
7010 return NULL;
7011 }
7012
7013
7014 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj;
7016 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7017 bool result;
7018 PyObject * obj0 = 0 ;
7019 char *kwnames[] = {
7020 (char *) "self", NULL
7021 };
7022
7023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7026 {
7027 PyThreadState* __tstate = wxPyBeginAllowThreads();
7028 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7029
7030 wxPyEndAllowThreads(__tstate);
7031 if (PyErr_Occurred()) SWIG_fail;
7032 }
7033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7034 return resultobj;
7035 fail:
7036 return NULL;
7037 }
7038
7039
7040 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7041 PyObject *resultobj;
7042 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7043 long arg2 ;
7044 bool result;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char *kwnames[] = {
7048 (char *) "self",(char *) "flag", NULL
7049 };
7050
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7054 arg2 = (long) SWIG_AsLong(obj1);
7055 if (PyErr_Occurred()) SWIG_fail;
7056 {
7057 PyThreadState* __tstate = wxPyBeginAllowThreads();
7058 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7059
7060 wxPyEndAllowThreads(__tstate);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7064 return resultobj;
7065 fail:
7066 return NULL;
7067 }
7068
7069
7070 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7071 PyObject *resultobj;
7072 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7073 wxColour *result;
7074 PyObject * obj0 = 0 ;
7075 char *kwnames[] = {
7076 (char *) "self", NULL
7077 };
7078
7079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 {
7085 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7086 result = (wxColour *) &_result_ref;
7087 }
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7093 return resultobj;
7094 fail:
7095 return NULL;
7096 }
7097
7098
7099 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj;
7101 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7102 wxColour *result;
7103 PyObject * obj0 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "self", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7111 {
7112 PyThreadState* __tstate = wxPyBeginAllowThreads();
7113 {
7114 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7115 result = (wxColour *) &_result_ref;
7116 }
7117
7118 wxPyEndAllowThreads(__tstate);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
7121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7122 return resultobj;
7123 fail:
7124 return NULL;
7125 }
7126
7127
7128 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7129 PyObject *resultobj;
7130 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7131 wxFont *result;
7132 PyObject * obj0 = 0 ;
7133 char *kwnames[] = {
7134 (char *) "self", NULL
7135 };
7136
7137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 {
7143 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7144 result = (wxFont *) &_result_ref;
7145 }
7146
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
7151 return resultobj;
7152 fail:
7153 return NULL;
7154 }
7155
7156
7157 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7158 PyObject *resultobj;
7159 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7160 int result;
7161 PyObject * obj0 = 0 ;
7162 char *kwnames[] = {
7163 (char *) "self", NULL
7164 };
7165
7166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7169 {
7170 PyThreadState* __tstate = wxPyBeginAllowThreads();
7171 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7172
7173 wxPyEndAllowThreads(__tstate);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 resultobj = SWIG_FromInt((int)result);
7177 return resultobj;
7178 fail:
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7186 wxArrayInt *result;
7187 PyObject * obj0 = 0 ;
7188 char *kwnames[] = {
7189 (char *) "self", NULL
7190 };
7191
7192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7195 {
7196 PyThreadState* __tstate = wxPyBeginAllowThreads();
7197 {
7198 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7199 result = (wxArrayInt *) &_result_ref;
7200 }
7201
7202 wxPyEndAllowThreads(__tstate);
7203 if (PyErr_Occurred()) SWIG_fail;
7204 }
7205 {
7206 resultobj = PyList_New(0);
7207 size_t idx;
7208 for (idx = 0; idx < result->GetCount(); idx += 1) {
7209 PyObject* val = PyInt_FromLong( result->Item(idx) );
7210 PyList_Append(resultobj, val);
7211 Py_DECREF(val);
7212 }
7213 }
7214 return resultobj;
7215 fail:
7216 return NULL;
7217 }
7218
7219
7220 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7221 PyObject *resultobj;
7222 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7223 long result;
7224 PyObject * obj0 = 0 ;
7225 char *kwnames[] = {
7226 (char *) "self", NULL
7227 };
7228
7229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7235
7236 wxPyEndAllowThreads(__tstate);
7237 if (PyErr_Occurred()) SWIG_fail;
7238 }
7239 resultobj = SWIG_FromLong((long)result);
7240 return resultobj;
7241 fail:
7242 return NULL;
7243 }
7244
7245
7246 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7247 PyObject *resultobj;
7248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7249 long result;
7250 PyObject * obj0 = 0 ;
7251 char *kwnames[] = {
7252 (char *) "self", NULL
7253 };
7254
7255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7258 {
7259 PyThreadState* __tstate = wxPyBeginAllowThreads();
7260 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7261
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_FromLong((long)result);
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj;
7274 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7275 long result;
7276 PyObject * obj0 = 0 ;
7277 char *kwnames[] = {
7278 (char *) "self", NULL
7279 };
7280
7281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7284 {
7285 PyThreadState* __tstate = wxPyBeginAllowThreads();
7286 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7287
7288 wxPyEndAllowThreads(__tstate);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 resultobj = SWIG_FromLong((long)result);
7292 return resultobj;
7293 fail:
7294 return NULL;
7295 }
7296
7297
7298 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7299 PyObject *resultobj;
7300 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7301 bool result;
7302 PyObject * obj0 = 0 ;
7303 char *kwnames[] = {
7304 (char *) "self", NULL
7305 };
7306
7307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7310 {
7311 PyThreadState* __tstate = wxPyBeginAllowThreads();
7312 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7313
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7325 PyObject *resultobj;
7326 wxTextAttr *arg1 = 0 ;
7327 wxTextAttr *arg2 = 0 ;
7328 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7329 wxTextAttr result;
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 PyObject * obj2 = 0 ;
7333 char *kwnames[] = {
7334 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7335 };
7336
7337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7339 SWIG_POINTER_EXCEPTION | 0)) == -1)
7340 SWIG_fail;
7341 if (arg1 == NULL) {
7342 PyErr_SetString(PyExc_TypeError,"null reference");
7343 SWIG_fail;
7344 }
7345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7346 SWIG_POINTER_EXCEPTION | 0)) == -1)
7347 SWIG_fail;
7348 if (arg2 == NULL) {
7349 PyErr_SetString(PyExc_TypeError,"null reference");
7350 SWIG_fail;
7351 }
7352 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7354 {
7355 PyThreadState* __tstate = wxPyBeginAllowThreads();
7356 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7357
7358 wxPyEndAllowThreads(__tstate);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 {
7362 wxTextAttr * resultptr;
7363 resultptr = new wxTextAttr((wxTextAttr &) result);
7364 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7365 }
7366 return resultobj;
7367 fail:
7368 return NULL;
7369 }
7370
7371
7372 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7373 PyObject *obj;
7374 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7375 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7376 Py_INCREF(obj);
7377 return Py_BuildValue((char *)"");
7378 }
7379 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7380 PyObject *resultobj;
7381 wxWindow *arg1 = (wxWindow *) 0 ;
7382 int arg2 ;
7383 wxString const &arg3_defvalue = wxPyEmptyString ;
7384 wxString *arg3 = (wxString *) &arg3_defvalue ;
7385 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7386 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7387 wxSize const &arg5_defvalue = wxDefaultSize ;
7388 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7389 long arg6 = (long) 0 ;
7390 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7391 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7392 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7393 wxString *arg8 = (wxString *) &arg8_defvalue ;
7394 wxTextCtrl *result;
7395 bool temp3 = False ;
7396 wxPoint temp4 ;
7397 wxSize temp5 ;
7398 bool temp8 = False ;
7399 PyObject * obj0 = 0 ;
7400 PyObject * obj1 = 0 ;
7401 PyObject * obj2 = 0 ;
7402 PyObject * obj3 = 0 ;
7403 PyObject * obj4 = 0 ;
7404 PyObject * obj5 = 0 ;
7405 PyObject * obj6 = 0 ;
7406 PyObject * obj7 = 0 ;
7407 char *kwnames[] = {
7408 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7409 };
7410
7411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7414 arg2 = (int) SWIG_AsInt(obj1);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 if (obj2) {
7417 {
7418 arg3 = wxString_in_helper(obj2);
7419 if (arg3 == NULL) SWIG_fail;
7420 temp3 = True;
7421 }
7422 }
7423 if (obj3) {
7424 {
7425 arg4 = &temp4;
7426 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7427 }
7428 }
7429 if (obj4) {
7430 {
7431 arg5 = &temp5;
7432 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7433 }
7434 }
7435 if (obj5) {
7436 arg6 = (long) SWIG_AsLong(obj5);
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 if (obj6) {
7440 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7441 SWIG_POINTER_EXCEPTION | 0)) == -1)
7442 SWIG_fail;
7443 if (arg7 == NULL) {
7444 PyErr_SetString(PyExc_TypeError,"null reference");
7445 SWIG_fail;
7446 }
7447 }
7448 if (obj7) {
7449 {
7450 arg8 = wxString_in_helper(obj7);
7451 if (arg8 == NULL) SWIG_fail;
7452 temp8 = True;
7453 }
7454 }
7455 {
7456 PyThreadState* __tstate = wxPyBeginAllowThreads();
7457 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7458
7459 wxPyEndAllowThreads(__tstate);
7460 if (PyErr_Occurred()) SWIG_fail;
7461 }
7462 {
7463 resultobj = wxPyMake_wxObject(result);
7464 }
7465 {
7466 if (temp3)
7467 delete arg3;
7468 }
7469 {
7470 if (temp8)
7471 delete arg8;
7472 }
7473 return resultobj;
7474 fail:
7475 {
7476 if (temp3)
7477 delete arg3;
7478 }
7479 {
7480 if (temp8)
7481 delete arg8;
7482 }
7483 return NULL;
7484 }
7485
7486
7487 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7488 PyObject *resultobj;
7489 wxTextCtrl *result;
7490 char *kwnames[] = {
7491 NULL
7492 };
7493
7494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
7495 {
7496 PyThreadState* __tstate = wxPyBeginAllowThreads();
7497 result = (wxTextCtrl *)new wxTextCtrl();
7498
7499 wxPyEndAllowThreads(__tstate);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 }
7502 {
7503 resultobj = wxPyMake_wxObject(result);
7504 }
7505 return resultobj;
7506 fail:
7507 return NULL;
7508 }
7509
7510
7511 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7512 PyObject *resultobj;
7513 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7514 wxWindow *arg2 = (wxWindow *) 0 ;
7515 int arg3 ;
7516 wxString const &arg4_defvalue = wxPyEmptyString ;
7517 wxString *arg4 = (wxString *) &arg4_defvalue ;
7518 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7519 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7520 wxSize const &arg6_defvalue = wxDefaultSize ;
7521 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7522 long arg7 = (long) 0 ;
7523 wxValidator const &arg8_defvalue = wxDefaultValidator ;
7524 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
7525 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
7526 wxString *arg9 = (wxString *) &arg9_defvalue ;
7527 bool result;
7528 bool temp4 = False ;
7529 wxPoint temp5 ;
7530 wxSize temp6 ;
7531 bool temp9 = False ;
7532 PyObject * obj0 = 0 ;
7533 PyObject * obj1 = 0 ;
7534 PyObject * obj2 = 0 ;
7535 PyObject * obj3 = 0 ;
7536 PyObject * obj4 = 0 ;
7537 PyObject * obj5 = 0 ;
7538 PyObject * obj6 = 0 ;
7539 PyObject * obj7 = 0 ;
7540 PyObject * obj8 = 0 ;
7541 char *kwnames[] = {
7542 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7543 };
7544
7545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
7546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7550 arg3 = (int) SWIG_AsInt(obj2);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 if (obj3) {
7553 {
7554 arg4 = wxString_in_helper(obj3);
7555 if (arg4 == NULL) SWIG_fail;
7556 temp4 = True;
7557 }
7558 }
7559 if (obj4) {
7560 {
7561 arg5 = &temp5;
7562 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7563 }
7564 }
7565 if (obj5) {
7566 {
7567 arg6 = &temp6;
7568 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7569 }
7570 }
7571 if (obj6) {
7572 arg7 = (long) SWIG_AsLong(obj6);
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 if (obj7) {
7576 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
7577 SWIG_POINTER_EXCEPTION | 0)) == -1)
7578 SWIG_fail;
7579 if (arg8 == NULL) {
7580 PyErr_SetString(PyExc_TypeError,"null reference");
7581 SWIG_fail;
7582 }
7583 }
7584 if (obj8) {
7585 {
7586 arg9 = wxString_in_helper(obj8);
7587 if (arg9 == NULL) SWIG_fail;
7588 temp9 = True;
7589 }
7590 }
7591 {
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7594
7595 wxPyEndAllowThreads(__tstate);
7596 if (PyErr_Occurred()) SWIG_fail;
7597 }
7598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7599 {
7600 if (temp4)
7601 delete arg4;
7602 }
7603 {
7604 if (temp9)
7605 delete arg9;
7606 }
7607 return resultobj;
7608 fail:
7609 {
7610 if (temp4)
7611 delete arg4;
7612 }
7613 {
7614 if (temp9)
7615 delete arg9;
7616 }
7617 return NULL;
7618 }
7619
7620
7621 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7622 PyObject *resultobj;
7623 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7624 wxString result;
7625 PyObject * obj0 = 0 ;
7626 char *kwnames[] = {
7627 (char *) "self", NULL
7628 };
7629
7630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
7631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7633 {
7634 PyThreadState* __tstate = wxPyBeginAllowThreads();
7635 result = ((wxTextCtrl const *)arg1)->GetValue();
7636
7637 wxPyEndAllowThreads(__tstate);
7638 if (PyErr_Occurred()) SWIG_fail;
7639 }
7640 {
7641 #if wxUSE_UNICODE
7642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7643 #else
7644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7645 #endif
7646 }
7647 return resultobj;
7648 fail:
7649 return NULL;
7650 }
7651
7652
7653 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7654 PyObject *resultobj;
7655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7656 wxString *arg2 = 0 ;
7657 bool temp2 = False ;
7658 PyObject * obj0 = 0 ;
7659 PyObject * obj1 = 0 ;
7660 char *kwnames[] = {
7661 (char *) "self",(char *) "value", NULL
7662 };
7663
7664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
7665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7667 {
7668 arg2 = wxString_in_helper(obj1);
7669 if (arg2 == NULL) SWIG_fail;
7670 temp2 = True;
7671 }
7672 {
7673 PyThreadState* __tstate = wxPyBeginAllowThreads();
7674 (arg1)->SetValue((wxString const &)*arg2);
7675
7676 wxPyEndAllowThreads(__tstate);
7677 if (PyErr_Occurred()) SWIG_fail;
7678 }
7679 Py_INCREF(Py_None); resultobj = Py_None;
7680 {
7681 if (temp2)
7682 delete arg2;
7683 }
7684 return resultobj;
7685 fail:
7686 {
7687 if (temp2)
7688 delete arg2;
7689 }
7690 return NULL;
7691 }
7692
7693
7694 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
7695 PyObject *resultobj;
7696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7697 long arg2 ;
7698 long arg3 ;
7699 wxString result;
7700 PyObject * obj0 = 0 ;
7701 PyObject * obj1 = 0 ;
7702 PyObject * obj2 = 0 ;
7703 char *kwnames[] = {
7704 (char *) "self",(char *) "from",(char *) "to", NULL
7705 };
7706
7707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
7708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7710 arg2 = (long) SWIG_AsLong(obj1);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 arg3 = (long) SWIG_AsLong(obj2);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 {
7715 PyThreadState* __tstate = wxPyBeginAllowThreads();
7716 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
7717
7718 wxPyEndAllowThreads(__tstate);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 {
7722 #if wxUSE_UNICODE
7723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7724 #else
7725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7726 #endif
7727 }
7728 return resultobj;
7729 fail:
7730 return NULL;
7731 }
7732
7733
7734 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
7735 PyObject *resultobj;
7736 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7737 long arg2 ;
7738 int result;
7739 PyObject * obj0 = 0 ;
7740 PyObject * obj1 = 0 ;
7741 char *kwnames[] = {
7742 (char *) "self",(char *) "lineNo", NULL
7743 };
7744
7745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
7746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7748 arg2 = (long) SWIG_AsLong(obj1);
7749 if (PyErr_Occurred()) SWIG_fail;
7750 {
7751 PyThreadState* __tstate = wxPyBeginAllowThreads();
7752 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
7753
7754 wxPyEndAllowThreads(__tstate);
7755 if (PyErr_Occurred()) SWIG_fail;
7756 }
7757 resultobj = SWIG_FromInt((int)result);
7758 return resultobj;
7759 fail:
7760 return NULL;
7761 }
7762
7763
7764 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
7765 PyObject *resultobj;
7766 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7767 long arg2 ;
7768 wxString result;
7769 PyObject * obj0 = 0 ;
7770 PyObject * obj1 = 0 ;
7771 char *kwnames[] = {
7772 (char *) "self",(char *) "lineNo", NULL
7773 };
7774
7775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
7776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7778 arg2 = (long) SWIG_AsLong(obj1);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 {
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
7783
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 {
7788 #if wxUSE_UNICODE
7789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7790 #else
7791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7792 #endif
7793 }
7794 return resultobj;
7795 fail:
7796 return NULL;
7797 }
7798
7799
7800 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj;
7802 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7803 int result;
7804 PyObject * obj0 = 0 ;
7805 char *kwnames[] = {
7806 (char *) "self", NULL
7807 };
7808
7809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
7810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7812 {
7813 PyThreadState* __tstate = wxPyBeginAllowThreads();
7814 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
7815
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_FromInt((int)result);
7820 return resultobj;
7821 fail:
7822 return NULL;
7823 }
7824
7825
7826 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
7827 PyObject *resultobj;
7828 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7829 bool result;
7830 PyObject * obj0 = 0 ;
7831 char *kwnames[] = {
7832 (char *) "self", NULL
7833 };
7834
7835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
7836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7838 {
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
7841
7842 wxPyEndAllowThreads(__tstate);
7843 if (PyErr_Occurred()) SWIG_fail;
7844 }
7845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7846 return resultobj;
7847 fail:
7848 return NULL;
7849 }
7850
7851
7852 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7853 PyObject *resultobj;
7854 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7855 bool result;
7856 PyObject * obj0 = 0 ;
7857 char *kwnames[] = {
7858 (char *) "self", NULL
7859 };
7860
7861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
7862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7864 {
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
7867
7868 wxPyEndAllowThreads(__tstate);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
7871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7872 return resultobj;
7873 fail:
7874 return NULL;
7875 }
7876
7877
7878 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7879 PyObject *resultobj;
7880 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7881 bool result;
7882 PyObject * obj0 = 0 ;
7883 char *kwnames[] = {
7884 (char *) "self", NULL
7885 };
7886
7887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
7888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7890 {
7891 PyThreadState* __tstate = wxPyBeginAllowThreads();
7892 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
7893
7894 wxPyEndAllowThreads(__tstate);
7895 if (PyErr_Occurred()) SWIG_fail;
7896 }
7897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7898 return resultobj;
7899 fail:
7900 return NULL;
7901 }
7902
7903
7904 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7905 PyObject *resultobj;
7906 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7907 bool result;
7908 PyObject * obj0 = 0 ;
7909 char *kwnames[] = {
7910 (char *) "self", NULL
7911 };
7912
7913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
7914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7916 {
7917 PyThreadState* __tstate = wxPyBeginAllowThreads();
7918 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
7919
7920 wxPyEndAllowThreads(__tstate);
7921 if (PyErr_Occurred()) SWIG_fail;
7922 }
7923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7924 return resultobj;
7925 fail:
7926 return NULL;
7927 }
7928
7929
7930 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7931 PyObject *resultobj;
7932 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7933 long *arg2 = (long *) 0 ;
7934 long *arg3 = (long *) 0 ;
7935 long temp2 ;
7936 long temp3 ;
7937 PyObject * obj0 = 0 ;
7938 char *kwnames[] = {
7939 (char *) "self", NULL
7940 };
7941
7942 arg2 = &temp2;
7943 arg3 = &temp3;
7944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
7945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
7950
7951 wxPyEndAllowThreads(__tstate);
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 Py_INCREF(Py_None); resultobj = Py_None;
7955 {
7956 PyObject *o = PyInt_FromLong((long) (*arg2));
7957 resultobj = t_output_helper(resultobj,o);
7958 }
7959 {
7960 PyObject *o = PyInt_FromLong((long) (*arg3));
7961 resultobj = t_output_helper(resultobj,o);
7962 }
7963 return resultobj;
7964 fail:
7965 return NULL;
7966 }
7967
7968
7969 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7970 PyObject *resultobj;
7971 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7972 wxString result;
7973 PyObject * obj0 = 0 ;
7974 char *kwnames[] = {
7975 (char *) "self", NULL
7976 };
7977
7978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
7979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
7984
7985 wxPyEndAllowThreads(__tstate);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 {
7989 #if wxUSE_UNICODE
7990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7991 #else
7992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7993 #endif
7994 }
7995 return resultobj;
7996 fail:
7997 return NULL;
7998 }
7999
8000
8001 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8002 PyObject *resultobj;
8003 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8004 PyObject * obj0 = 0 ;
8005 char *kwnames[] = {
8006 (char *) "self", NULL
8007 };
8008
8009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8012 {
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 (arg1)->Clear();
8015
8016 wxPyEndAllowThreads(__tstate);
8017 if (PyErr_Occurred()) SWIG_fail;
8018 }
8019 Py_INCREF(Py_None); resultobj = Py_None;
8020 return resultobj;
8021 fail:
8022 return NULL;
8023 }
8024
8025
8026 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8027 PyObject *resultobj;
8028 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8029 long arg2 ;
8030 long arg3 ;
8031 wxString *arg4 = 0 ;
8032 bool temp4 = False ;
8033 PyObject * obj0 = 0 ;
8034 PyObject * obj1 = 0 ;
8035 PyObject * obj2 = 0 ;
8036 PyObject * obj3 = 0 ;
8037 char *kwnames[] = {
8038 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8039 };
8040
8041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8044 arg2 = (long) SWIG_AsLong(obj1);
8045 if (PyErr_Occurred()) SWIG_fail;
8046 arg3 = (long) SWIG_AsLong(obj2);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 {
8049 arg4 = wxString_in_helper(obj3);
8050 if (arg4 == NULL) SWIG_fail;
8051 temp4 = True;
8052 }
8053 {
8054 PyThreadState* __tstate = wxPyBeginAllowThreads();
8055 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8056
8057 wxPyEndAllowThreads(__tstate);
8058 if (PyErr_Occurred()) SWIG_fail;
8059 }
8060 Py_INCREF(Py_None); resultobj = Py_None;
8061 {
8062 if (temp4)
8063 delete arg4;
8064 }
8065 return resultobj;
8066 fail:
8067 {
8068 if (temp4)
8069 delete arg4;
8070 }
8071 return NULL;
8072 }
8073
8074
8075 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8076 PyObject *resultobj;
8077 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8078 long arg2 ;
8079 long arg3 ;
8080 PyObject * obj0 = 0 ;
8081 PyObject * obj1 = 0 ;
8082 PyObject * obj2 = 0 ;
8083 char *kwnames[] = {
8084 (char *) "self",(char *) "from",(char *) "to", NULL
8085 };
8086
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8090 arg2 = (long) SWIG_AsLong(obj1);
8091 if (PyErr_Occurred()) SWIG_fail;
8092 arg3 = (long) SWIG_AsLong(obj2);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 {
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 (arg1)->Remove(arg2,arg3);
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 Py_INCREF(Py_None); resultobj = Py_None;
8102 return resultobj;
8103 fail:
8104 return NULL;
8105 }
8106
8107
8108 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj;
8110 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8111 wxString *arg2 = 0 ;
8112 bool result;
8113 bool temp2 = False ;
8114 PyObject * obj0 = 0 ;
8115 PyObject * obj1 = 0 ;
8116 char *kwnames[] = {
8117 (char *) "self",(char *) "file", NULL
8118 };
8119
8120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8123 {
8124 arg2 = wxString_in_helper(obj1);
8125 if (arg2 == NULL) SWIG_fail;
8126 temp2 = True;
8127 }
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8131
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8136 {
8137 if (temp2)
8138 delete arg2;
8139 }
8140 return resultobj;
8141 fail:
8142 {
8143 if (temp2)
8144 delete arg2;
8145 }
8146 return NULL;
8147 }
8148
8149
8150 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj;
8152 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8153 wxString const &arg2_defvalue = wxPyEmptyString ;
8154 wxString *arg2 = (wxString *) &arg2_defvalue ;
8155 bool result;
8156 bool temp2 = False ;
8157 PyObject * obj0 = 0 ;
8158 PyObject * obj1 = 0 ;
8159 char *kwnames[] = {
8160 (char *) "self",(char *) "file", NULL
8161 };
8162
8163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8166 if (obj1) {
8167 {
8168 arg2 = wxString_in_helper(obj1);
8169 if (arg2 == NULL) SWIG_fail;
8170 temp2 = True;
8171 }
8172 }
8173 {
8174 PyThreadState* __tstate = wxPyBeginAllowThreads();
8175 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8176
8177 wxPyEndAllowThreads(__tstate);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 }
8180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8181 {
8182 if (temp2)
8183 delete arg2;
8184 }
8185 return resultobj;
8186 fail:
8187 {
8188 if (temp2)
8189 delete arg2;
8190 }
8191 return NULL;
8192 }
8193
8194
8195 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8196 PyObject *resultobj;
8197 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8198 PyObject * obj0 = 0 ;
8199 char *kwnames[] = {
8200 (char *) "self", NULL
8201 };
8202
8203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8206 {
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 (arg1)->MarkDirty();
8209
8210 wxPyEndAllowThreads(__tstate);
8211 if (PyErr_Occurred()) SWIG_fail;
8212 }
8213 Py_INCREF(Py_None); resultobj = Py_None;
8214 return resultobj;
8215 fail:
8216 return NULL;
8217 }
8218
8219
8220 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8221 PyObject *resultobj;
8222 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8223 PyObject * obj0 = 0 ;
8224 char *kwnames[] = {
8225 (char *) "self", NULL
8226 };
8227
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8231 {
8232 PyThreadState* __tstate = wxPyBeginAllowThreads();
8233 (arg1)->DiscardEdits();
8234
8235 wxPyEndAllowThreads(__tstate);
8236 if (PyErr_Occurred()) SWIG_fail;
8237 }
8238 Py_INCREF(Py_None); resultobj = Py_None;
8239 return resultobj;
8240 fail:
8241 return NULL;
8242 }
8243
8244
8245 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject *resultobj;
8247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8248 unsigned long arg2 ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 char *kwnames[] = {
8252 (char *) "self",(char *) "len", NULL
8253 };
8254
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8258 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 {
8261 PyThreadState* __tstate = wxPyBeginAllowThreads();
8262 (arg1)->SetMaxLength(arg2);
8263
8264 wxPyEndAllowThreads(__tstate);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 Py_INCREF(Py_None); resultobj = Py_None;
8268 return resultobj;
8269 fail:
8270 return NULL;
8271 }
8272
8273
8274 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8275 PyObject *resultobj;
8276 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8277 wxString *arg2 = 0 ;
8278 bool temp2 = False ;
8279 PyObject * obj0 = 0 ;
8280 PyObject * obj1 = 0 ;
8281 char *kwnames[] = {
8282 (char *) "self",(char *) "text", NULL
8283 };
8284
8285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8288 {
8289 arg2 = wxString_in_helper(obj1);
8290 if (arg2 == NULL) SWIG_fail;
8291 temp2 = True;
8292 }
8293 {
8294 PyThreadState* __tstate = wxPyBeginAllowThreads();
8295 (arg1)->WriteText((wxString const &)*arg2);
8296
8297 wxPyEndAllowThreads(__tstate);
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 Py_INCREF(Py_None); resultobj = Py_None;
8301 {
8302 if (temp2)
8303 delete arg2;
8304 }
8305 return resultobj;
8306 fail:
8307 {
8308 if (temp2)
8309 delete arg2;
8310 }
8311 return NULL;
8312 }
8313
8314
8315 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8316 PyObject *resultobj;
8317 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8318 wxString *arg2 = 0 ;
8319 bool temp2 = False ;
8320 PyObject * obj0 = 0 ;
8321 PyObject * obj1 = 0 ;
8322 char *kwnames[] = {
8323 (char *) "self",(char *) "text", NULL
8324 };
8325
8326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8329 {
8330 arg2 = wxString_in_helper(obj1);
8331 if (arg2 == NULL) SWIG_fail;
8332 temp2 = True;
8333 }
8334 {
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 (arg1)->AppendText((wxString const &)*arg2);
8337
8338 wxPyEndAllowThreads(__tstate);
8339 if (PyErr_Occurred()) SWIG_fail;
8340 }
8341 Py_INCREF(Py_None); resultobj = Py_None;
8342 {
8343 if (temp2)
8344 delete arg2;
8345 }
8346 return resultobj;
8347 fail:
8348 {
8349 if (temp2)
8350 delete arg2;
8351 }
8352 return NULL;
8353 }
8354
8355
8356 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8357 PyObject *resultobj;
8358 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8359 wxKeyEvent *arg2 = 0 ;
8360 bool result;
8361 PyObject * obj0 = 0 ;
8362 PyObject * obj1 = 0 ;
8363 char *kwnames[] = {
8364 (char *) "self",(char *) "event", NULL
8365 };
8366
8367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8371 SWIG_POINTER_EXCEPTION | 0)) == -1)
8372 SWIG_fail;
8373 if (arg2 == NULL) {
8374 PyErr_SetString(PyExc_TypeError,"null reference");
8375 SWIG_fail;
8376 }
8377 {
8378 PyThreadState* __tstate = wxPyBeginAllowThreads();
8379 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8380
8381 wxPyEndAllowThreads(__tstate);
8382 if (PyErr_Occurred()) SWIG_fail;
8383 }
8384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8385 return resultobj;
8386 fail:
8387 return NULL;
8388 }
8389
8390
8391 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8392 PyObject *resultobj;
8393 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8394 long arg2 ;
8395 long arg3 ;
8396 wxTextAttr *arg4 = 0 ;
8397 bool result;
8398 PyObject * obj0 = 0 ;
8399 PyObject * obj1 = 0 ;
8400 PyObject * obj2 = 0 ;
8401 PyObject * obj3 = 0 ;
8402 char *kwnames[] = {
8403 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8404 };
8405
8406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8409 arg2 = (long) SWIG_AsLong(obj1);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 arg3 = (long) SWIG_AsLong(obj2);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8414 SWIG_POINTER_EXCEPTION | 0)) == -1)
8415 SWIG_fail;
8416 if (arg4 == NULL) {
8417 PyErr_SetString(PyExc_TypeError,"null reference");
8418 SWIG_fail;
8419 }
8420 {
8421 PyThreadState* __tstate = wxPyBeginAllowThreads();
8422 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8423
8424 wxPyEndAllowThreads(__tstate);
8425 if (PyErr_Occurred()) SWIG_fail;
8426 }
8427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8428 return resultobj;
8429 fail:
8430 return NULL;
8431 }
8432
8433
8434 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8435 PyObject *resultobj;
8436 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8437 long arg2 ;
8438 wxTextAttr *arg3 = 0 ;
8439 bool result;
8440 PyObject * obj0 = 0 ;
8441 PyObject * obj1 = 0 ;
8442 PyObject * obj2 = 0 ;
8443 char *kwnames[] = {
8444 (char *) "self",(char *) "position",(char *) "style", NULL
8445 };
8446
8447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8450 arg2 = (long) SWIG_AsLong(obj1);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8453 SWIG_POINTER_EXCEPTION | 0)) == -1)
8454 SWIG_fail;
8455 if (arg3 == NULL) {
8456 PyErr_SetString(PyExc_TypeError,"null reference");
8457 SWIG_fail;
8458 }
8459 {
8460 PyThreadState* __tstate = wxPyBeginAllowThreads();
8461 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8462
8463 wxPyEndAllowThreads(__tstate);
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8467 return resultobj;
8468 fail:
8469 return NULL;
8470 }
8471
8472
8473 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8474 PyObject *resultobj;
8475 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8476 wxTextAttr *arg2 = 0 ;
8477 bool result;
8478 PyObject * obj0 = 0 ;
8479 PyObject * obj1 = 0 ;
8480 char *kwnames[] = {
8481 (char *) "self",(char *) "style", NULL
8482 };
8483
8484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
8485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8488 SWIG_POINTER_EXCEPTION | 0)) == -1)
8489 SWIG_fail;
8490 if (arg2 == NULL) {
8491 PyErr_SetString(PyExc_TypeError,"null reference");
8492 SWIG_fail;
8493 }
8494 {
8495 PyThreadState* __tstate = wxPyBeginAllowThreads();
8496 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
8497
8498 wxPyEndAllowThreads(__tstate);
8499 if (PyErr_Occurred()) SWIG_fail;
8500 }
8501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8502 return resultobj;
8503 fail:
8504 return NULL;
8505 }
8506
8507
8508 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8509 PyObject *resultobj;
8510 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8511 wxTextAttr *result;
8512 PyObject * obj0 = 0 ;
8513 char *kwnames[] = {
8514 (char *) "self", NULL
8515 };
8516
8517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
8518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8520 {
8521 PyThreadState* __tstate = wxPyBeginAllowThreads();
8522 {
8523 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
8524 result = (wxTextAttr *) &_result_ref;
8525 }
8526
8527 wxPyEndAllowThreads(__tstate);
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
8531 return resultobj;
8532 fail:
8533 return NULL;
8534 }
8535
8536
8537 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8538 PyObject *resultobj;
8539 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8540 long arg2 ;
8541 long arg3 ;
8542 long result;
8543 PyObject * obj0 = 0 ;
8544 PyObject * obj1 = 0 ;
8545 PyObject * obj2 = 0 ;
8546 char *kwnames[] = {
8547 (char *) "self",(char *) "x",(char *) "y", NULL
8548 };
8549
8550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
8551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8553 arg2 = (long) SWIG_AsLong(obj1);
8554 if (PyErr_Occurred()) SWIG_fail;
8555 arg3 = (long) SWIG_AsLong(obj2);
8556 if (PyErr_Occurred()) SWIG_fail;
8557 {
8558 PyThreadState* __tstate = wxPyBeginAllowThreads();
8559 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
8560
8561 wxPyEndAllowThreads(__tstate);
8562 if (PyErr_Occurred()) SWIG_fail;
8563 }
8564 resultobj = SWIG_FromLong((long)result);
8565 return resultobj;
8566 fail:
8567 return NULL;
8568 }
8569
8570
8571 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8572 PyObject *resultobj;
8573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8574 long arg2 ;
8575 long *arg3 = (long *) 0 ;
8576 long *arg4 = (long *) 0 ;
8577 long temp3 ;
8578 long temp4 ;
8579 PyObject * obj0 = 0 ;
8580 PyObject * obj1 = 0 ;
8581 char *kwnames[] = {
8582 (char *) "self",(char *) "pos", NULL
8583 };
8584
8585 arg3 = &temp3;
8586 arg4 = &temp4;
8587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
8588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8590 arg2 = (long) SWIG_AsLong(obj1);
8591 if (PyErr_Occurred()) SWIG_fail;
8592 {
8593 PyThreadState* __tstate = wxPyBeginAllowThreads();
8594 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
8595
8596 wxPyEndAllowThreads(__tstate);
8597 if (PyErr_Occurred()) SWIG_fail;
8598 }
8599 Py_INCREF(Py_None); resultobj = Py_None;
8600 {
8601 PyObject *o = PyInt_FromLong((long) (*arg3));
8602 resultobj = t_output_helper(resultobj,o);
8603 }
8604 {
8605 PyObject *o = PyInt_FromLong((long) (*arg4));
8606 resultobj = t_output_helper(resultobj,o);
8607 }
8608 return resultobj;
8609 fail:
8610 return NULL;
8611 }
8612
8613
8614 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8615 PyObject *resultobj;
8616 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8617 long arg2 ;
8618 PyObject * obj0 = 0 ;
8619 PyObject * obj1 = 0 ;
8620 char *kwnames[] = {
8621 (char *) "self",(char *) "pos", NULL
8622 };
8623
8624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
8625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8627 arg2 = (long) SWIG_AsLong(obj1);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 {
8630 PyThreadState* __tstate = wxPyBeginAllowThreads();
8631 (arg1)->ShowPosition(arg2);
8632
8633 wxPyEndAllowThreads(__tstate);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 Py_INCREF(Py_None); resultobj = Py_None;
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj;
8645 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8646 wxPoint *arg2 = 0 ;
8647 long *arg3 = (long *) 0 ;
8648 long *arg4 = (long *) 0 ;
8649 int result;
8650 wxPoint temp2 ;
8651 long temp3 ;
8652 long temp4 ;
8653 PyObject * obj0 = 0 ;
8654 PyObject * obj1 = 0 ;
8655 char *kwnames[] = {
8656 (char *) "self",(char *) "pt", NULL
8657 };
8658
8659 arg3 = &temp3;
8660 arg4 = &temp4;
8661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
8662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8664 {
8665 arg2 = &temp2;
8666 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8667 }
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
8671
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) SWIG_fail;
8674 }
8675 resultobj = SWIG_FromInt((int)result);
8676 {
8677 PyObject *o = PyInt_FromLong((long) (*arg3));
8678 resultobj = t_output_helper(resultobj,o);
8679 }
8680 {
8681 PyObject *o = PyInt_FromLong((long) (*arg4));
8682 resultobj = t_output_helper(resultobj,o);
8683 }
8684 return resultobj;
8685 fail:
8686 return NULL;
8687 }
8688
8689
8690 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
8691 PyObject *resultobj;
8692 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8693 PyObject * obj0 = 0 ;
8694 char *kwnames[] = {
8695 (char *) "self", NULL
8696 };
8697
8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
8699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8701 {
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 (arg1)->Copy();
8704
8705 wxPyEndAllowThreads(__tstate);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 Py_INCREF(Py_None); resultobj = Py_None;
8709 return resultobj;
8710 fail:
8711 return NULL;
8712 }
8713
8714
8715 static PyObject *_wrap_TextCtrl_Cut(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_Cut",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)->Cut();
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_Paste(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_Paste",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)->Paste();
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_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj;
8767 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8768 bool result;
8769 PyObject * obj0 = 0 ;
8770 char *kwnames[] = {
8771 (char *) "self", NULL
8772 };
8773
8774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
8775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8777 {
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
8780
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8785 return resultobj;
8786 fail:
8787 return NULL;
8788 }
8789
8790
8791 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
8792 PyObject *resultobj;
8793 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8794 bool result;
8795 PyObject * obj0 = 0 ;
8796 char *kwnames[] = {
8797 (char *) "self", NULL
8798 };
8799
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
8801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8803 {
8804 PyThreadState* __tstate = wxPyBeginAllowThreads();
8805 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
8806
8807 wxPyEndAllowThreads(__tstate);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8811 return resultobj;
8812 fail:
8813 return NULL;
8814 }
8815
8816
8817 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
8818 PyObject *resultobj;
8819 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8820 bool result;
8821 PyObject * obj0 = 0 ;
8822 char *kwnames[] = {
8823 (char *) "self", NULL
8824 };
8825
8826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
8827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8829 {
8830 PyThreadState* __tstate = wxPyBeginAllowThreads();
8831 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
8832
8833 wxPyEndAllowThreads(__tstate);
8834 if (PyErr_Occurred()) SWIG_fail;
8835 }
8836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8837 return resultobj;
8838 fail:
8839 return NULL;
8840 }
8841
8842
8843 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
8844 PyObject *resultobj;
8845 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8846 PyObject * obj0 = 0 ;
8847 char *kwnames[] = {
8848 (char *) "self", NULL
8849 };
8850
8851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
8852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8854 {
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 (arg1)->Undo();
8857
8858 wxPyEndAllowThreads(__tstate);
8859 if (PyErr_Occurred()) SWIG_fail;
8860 }
8861 Py_INCREF(Py_None); resultobj = Py_None;
8862 return resultobj;
8863 fail:
8864 return NULL;
8865 }
8866
8867
8868 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
8869 PyObject *resultobj;
8870 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8871 PyObject * obj0 = 0 ;
8872 char *kwnames[] = {
8873 (char *) "self", NULL
8874 };
8875
8876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
8877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8879 {
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 (arg1)->Redo();
8882
8883 wxPyEndAllowThreads(__tstate);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 Py_INCREF(Py_None); resultobj = Py_None;
8887 return resultobj;
8888 fail:
8889 return NULL;
8890 }
8891
8892
8893 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj;
8895 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8896 bool result;
8897 PyObject * obj0 = 0 ;
8898 char *kwnames[] = {
8899 (char *) "self", NULL
8900 };
8901
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
8903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8905 {
8906 PyThreadState* __tstate = wxPyBeginAllowThreads();
8907 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
8908
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8913 return resultobj;
8914 fail:
8915 return NULL;
8916 }
8917
8918
8919 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
8920 PyObject *resultobj;
8921 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8922 bool result;
8923 PyObject * obj0 = 0 ;
8924 char *kwnames[] = {
8925 (char *) "self", NULL
8926 };
8927
8928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
8929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8931 {
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
8934
8935 wxPyEndAllowThreads(__tstate);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 }
8938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8939 return resultobj;
8940 fail:
8941 return NULL;
8942 }
8943
8944
8945 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8946 PyObject *resultobj;
8947 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8948 long arg2 ;
8949 PyObject * obj0 = 0 ;
8950 PyObject * obj1 = 0 ;
8951 char *kwnames[] = {
8952 (char *) "self",(char *) "pos", NULL
8953 };
8954
8955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
8956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8958 arg2 = (long) SWIG_AsLong(obj1);
8959 if (PyErr_Occurred()) SWIG_fail;
8960 {
8961 PyThreadState* __tstate = wxPyBeginAllowThreads();
8962 (arg1)->SetInsertionPoint(arg2);
8963
8964 wxPyEndAllowThreads(__tstate);
8965 if (PyErr_Occurred()) SWIG_fail;
8966 }
8967 Py_INCREF(Py_None); resultobj = Py_None;
8968 return resultobj;
8969 fail:
8970 return NULL;
8971 }
8972
8973
8974 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
8975 PyObject *resultobj;
8976 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8977 PyObject * obj0 = 0 ;
8978 char *kwnames[] = {
8979 (char *) "self", NULL
8980 };
8981
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
8983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8985 {
8986 PyThreadState* __tstate = wxPyBeginAllowThreads();
8987 (arg1)->SetInsertionPointEnd();
8988
8989 wxPyEndAllowThreads(__tstate);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 Py_INCREF(Py_None); resultobj = Py_None;
8993 return resultobj;
8994 fail:
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9002 long result;
9003 PyObject * obj0 = 0 ;
9004 char *kwnames[] = {
9005 (char *) "self", NULL
9006 };
9007
9008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9011 {
9012 PyThreadState* __tstate = wxPyBeginAllowThreads();
9013 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9014
9015 wxPyEndAllowThreads(__tstate);
9016 if (PyErr_Occurred()) SWIG_fail;
9017 }
9018 resultobj = SWIG_FromLong((long)result);
9019 return resultobj;
9020 fail:
9021 return NULL;
9022 }
9023
9024
9025 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9026 PyObject *resultobj;
9027 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9028 long result;
9029 PyObject * obj0 = 0 ;
9030 char *kwnames[] = {
9031 (char *) "self", NULL
9032 };
9033
9034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9040
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 resultobj = SWIG_FromLong((long)result);
9045 return resultobj;
9046 fail:
9047 return NULL;
9048 }
9049
9050
9051 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9052 PyObject *resultobj;
9053 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9054 long arg2 ;
9055 long arg3 ;
9056 PyObject * obj0 = 0 ;
9057 PyObject * obj1 = 0 ;
9058 PyObject * obj2 = 0 ;
9059 char *kwnames[] = {
9060 (char *) "self",(char *) "from",(char *) "to", NULL
9061 };
9062
9063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9066 arg2 = (long) SWIG_AsLong(obj1);
9067 if (PyErr_Occurred()) SWIG_fail;
9068 arg3 = (long) SWIG_AsLong(obj2);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 {
9071 PyThreadState* __tstate = wxPyBeginAllowThreads();
9072 (arg1)->SetSelection(arg2,arg3);
9073
9074 wxPyEndAllowThreads(__tstate);
9075 if (PyErr_Occurred()) SWIG_fail;
9076 }
9077 Py_INCREF(Py_None); resultobj = Py_None;
9078 return resultobj;
9079 fail:
9080 return NULL;
9081 }
9082
9083
9084 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject *resultobj;
9086 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9087 PyObject * obj0 = 0 ;
9088 char *kwnames[] = {
9089 (char *) "self", NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9095 {
9096 PyThreadState* __tstate = wxPyBeginAllowThreads();
9097 (arg1)->SelectAll();
9098
9099 wxPyEndAllowThreads(__tstate);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 }
9102 Py_INCREF(Py_None); resultobj = Py_None;
9103 return resultobj;
9104 fail:
9105 return NULL;
9106 }
9107
9108
9109 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9110 PyObject *resultobj;
9111 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9112 bool arg2 ;
9113 PyObject * obj0 = 0 ;
9114 PyObject * obj1 = 0 ;
9115 char *kwnames[] = {
9116 (char *) "self",(char *) "editable", NULL
9117 };
9118
9119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9122 arg2 = (bool) SWIG_AsBool(obj1);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 (arg1)->SetEditable(arg2);
9127
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 Py_INCREF(Py_None); resultobj = Py_None;
9132 return resultobj;
9133 fail:
9134 return NULL;
9135 }
9136
9137
9138 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9139 PyObject *resultobj;
9140 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9141 wxString *arg2 = 0 ;
9142 bool temp2 = False ;
9143 PyObject * obj0 = 0 ;
9144 PyObject * obj1 = 0 ;
9145 char *kwnames[] = {
9146 (char *) "self",(char *) "text", NULL
9147 };
9148
9149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9152 {
9153 arg2 = wxString_in_helper(obj1);
9154 if (arg2 == NULL) SWIG_fail;
9155 temp2 = True;
9156 }
9157 {
9158 PyThreadState* __tstate = wxPyBeginAllowThreads();
9159 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9160
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) SWIG_fail;
9163 }
9164 Py_INCREF(Py_None); resultobj = Py_None;
9165 {
9166 if (temp2)
9167 delete arg2;
9168 }
9169 return resultobj;
9170 fail:
9171 {
9172 if (temp2)
9173 delete arg2;
9174 }
9175 return NULL;
9176 }
9177
9178
9179 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9180 PyObject *resultobj;
9181 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9182 long arg2 ;
9183 long arg3 ;
9184 wxString result;
9185 PyObject * obj0 = 0 ;
9186 PyObject * obj1 = 0 ;
9187 PyObject * obj2 = 0 ;
9188 char *kwnames[] = {
9189 (char *) "self",(char *) "from",(char *) "to", NULL
9190 };
9191
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9195 arg2 = (long) SWIG_AsLong(obj1);
9196 if (PyErr_Occurred()) SWIG_fail;
9197 arg3 = (long) SWIG_AsLong(obj2);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9202
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 {
9207 #if wxUSE_UNICODE
9208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9209 #else
9210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9211 #endif
9212 }
9213 return resultobj;
9214 fail:
9215 return NULL;
9216 }
9217
9218
9219 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9220 PyObject *obj;
9221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9222 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9223 Py_INCREF(obj);
9224 return Py_BuildValue((char *)"");
9225 }
9226 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9227 PyObject *resultobj;
9228 int arg1 ;
9229 wxMouseEvent *arg2 = 0 ;
9230 long arg3 ;
9231 long arg4 ;
9232 wxTextUrlEvent *result;
9233 PyObject * obj0 = 0 ;
9234 PyObject * obj1 = 0 ;
9235 PyObject * obj2 = 0 ;
9236 PyObject * obj3 = 0 ;
9237 char *kwnames[] = {
9238 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9239 };
9240
9241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9242 arg1 = (int) SWIG_AsInt(obj0);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9245 SWIG_POINTER_EXCEPTION | 0)) == -1)
9246 SWIG_fail;
9247 if (arg2 == NULL) {
9248 PyErr_SetString(PyExc_TypeError,"null reference");
9249 SWIG_fail;
9250 }
9251 arg3 = (long) SWIG_AsLong(obj2);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 arg4 = (long) SWIG_AsLong(obj3);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9258
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9263 return resultobj;
9264 fail:
9265 return NULL;
9266 }
9267
9268
9269 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj;
9271 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9272 wxMouseEvent *result;
9273 PyObject * obj0 = 0 ;
9274 char *kwnames[] = {
9275 (char *) "self", NULL
9276 };
9277
9278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 {
9284 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9285 result = (wxMouseEvent *) &_result_ref;
9286 }
9287
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9292 return resultobj;
9293 fail:
9294 return NULL;
9295 }
9296
9297
9298 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9299 PyObject *resultobj;
9300 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9301 long result;
9302 PyObject * obj0 = 0 ;
9303 char *kwnames[] = {
9304 (char *) "self", NULL
9305 };
9306
9307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9313
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 resultobj = SWIG_FromLong((long)result);
9318 return resultobj;
9319 fail:
9320 return NULL;
9321 }
9322
9323
9324 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj;
9326 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9327 long result;
9328 PyObject * obj0 = 0 ;
9329 char *kwnames[] = {
9330 (char *) "self", NULL
9331 };
9332
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9339
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_FromLong((long)result);
9344 return resultobj;
9345 fail:
9346 return NULL;
9347 }
9348
9349
9350 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9351 PyObject *obj;
9352 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9353 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9354 Py_INCREF(obj);
9355 return Py_BuildValue((char *)"");
9356 }
9357 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9358 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9359 return 1;
9360 }
9361
9362
9363 static PyObject *_wrap_ScrollBarNameStr_get() {
9364 PyObject *pyobj;
9365
9366 {
9367 #if wxUSE_UNICODE
9368 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9369 #else
9370 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9371 #endif
9372 }
9373 return pyobj;
9374 }
9375
9376
9377 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj;
9379 wxWindow *arg1 = (wxWindow *) 0 ;
9380 int arg2 = (int) -1 ;
9381 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9382 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9383 wxSize const &arg4_defvalue = wxDefaultSize ;
9384 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9385 long arg5 = (long) wxSB_HORIZONTAL ;
9386 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9387 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9388 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9389 wxString *arg7 = (wxString *) &arg7_defvalue ;
9390 wxScrollBar *result;
9391 wxPoint temp3 ;
9392 wxSize temp4 ;
9393 bool temp7 = False ;
9394 PyObject * obj0 = 0 ;
9395 PyObject * obj1 = 0 ;
9396 PyObject * obj2 = 0 ;
9397 PyObject * obj3 = 0 ;
9398 PyObject * obj4 = 0 ;
9399 PyObject * obj5 = 0 ;
9400 PyObject * obj6 = 0 ;
9401 char *kwnames[] = {
9402 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9403 };
9404
9405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9408 if (obj1) {
9409 arg2 = (int) SWIG_AsInt(obj1);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 if (obj2) {
9413 {
9414 arg3 = &temp3;
9415 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9416 }
9417 }
9418 if (obj3) {
9419 {
9420 arg4 = &temp4;
9421 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9422 }
9423 }
9424 if (obj4) {
9425 arg5 = (long) SWIG_AsLong(obj4);
9426 if (PyErr_Occurred()) SWIG_fail;
9427 }
9428 if (obj5) {
9429 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
9430 SWIG_POINTER_EXCEPTION | 0)) == -1)
9431 SWIG_fail;
9432 if (arg6 == NULL) {
9433 PyErr_SetString(PyExc_TypeError,"null reference");
9434 SWIG_fail;
9435 }
9436 }
9437 if (obj6) {
9438 {
9439 arg7 = wxString_in_helper(obj6);
9440 if (arg7 == NULL) SWIG_fail;
9441 temp7 = True;
9442 }
9443 }
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9452 {
9453 if (temp7)
9454 delete arg7;
9455 }
9456 return resultobj;
9457 fail:
9458 {
9459 if (temp7)
9460 delete arg7;
9461 }
9462 return NULL;
9463 }
9464
9465
9466 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj;
9468 wxScrollBar *result;
9469 char *kwnames[] = {
9470 NULL
9471 };
9472
9473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 result = (wxScrollBar *)new wxScrollBar();
9477
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9482 return resultobj;
9483 fail:
9484 return NULL;
9485 }
9486
9487
9488 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj;
9490 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9491 wxWindow *arg2 = (wxWindow *) 0 ;
9492 int arg3 = (int) -1 ;
9493 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9494 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9495 wxSize const &arg5_defvalue = wxDefaultSize ;
9496 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9497 long arg6 = (long) wxSB_HORIZONTAL ;
9498 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9499 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9500 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
9501 wxString *arg8 = (wxString *) &arg8_defvalue ;
9502 bool result;
9503 wxPoint temp4 ;
9504 wxSize temp5 ;
9505 bool temp8 = False ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 PyObject * obj2 = 0 ;
9509 PyObject * obj3 = 0 ;
9510 PyObject * obj4 = 0 ;
9511 PyObject * obj5 = 0 ;
9512 PyObject * obj6 = 0 ;
9513 PyObject * obj7 = 0 ;
9514 char *kwnames[] = {
9515 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9516 };
9517
9518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
9519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9521 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
9522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9523 if (obj2) {
9524 arg3 = (int) SWIG_AsInt(obj2);
9525 if (PyErr_Occurred()) SWIG_fail;
9526 }
9527 if (obj3) {
9528 {
9529 arg4 = &temp4;
9530 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9531 }
9532 }
9533 if (obj4) {
9534 {
9535 arg5 = &temp5;
9536 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9537 }
9538 }
9539 if (obj5) {
9540 arg6 = (long) SWIG_AsLong(obj5);
9541 if (PyErr_Occurred()) SWIG_fail;
9542 }
9543 if (obj6) {
9544 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
9545 SWIG_POINTER_EXCEPTION | 0)) == -1)
9546 SWIG_fail;
9547 if (arg7 == NULL) {
9548 PyErr_SetString(PyExc_TypeError,"null reference");
9549 SWIG_fail;
9550 }
9551 }
9552 if (obj7) {
9553 {
9554 arg8 = wxString_in_helper(obj7);
9555 if (arg8 == NULL) SWIG_fail;
9556 temp8 = True;
9557 }
9558 }
9559 {
9560 PyThreadState* __tstate = wxPyBeginAllowThreads();
9561 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9562
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9567 {
9568 if (temp8)
9569 delete arg8;
9570 }
9571 return resultobj;
9572 fail:
9573 {
9574 if (temp8)
9575 delete arg8;
9576 }
9577 return NULL;
9578 }
9579
9580
9581 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9582 PyObject *resultobj;
9583 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9584 int result;
9585 PyObject * obj0 = 0 ;
9586 char *kwnames[] = {
9587 (char *) "self", NULL
9588 };
9589
9590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
9591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9593 {
9594 PyThreadState* __tstate = wxPyBeginAllowThreads();
9595 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
9596
9597 wxPyEndAllowThreads(__tstate);
9598 if (PyErr_Occurred()) SWIG_fail;
9599 }
9600 resultobj = SWIG_FromInt((int)result);
9601 return resultobj;
9602 fail:
9603 return NULL;
9604 }
9605
9606
9607 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9608 PyObject *resultobj;
9609 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9610 int result;
9611 PyObject * obj0 = 0 ;
9612 char *kwnames[] = {
9613 (char *) "self", NULL
9614 };
9615
9616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
9617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
9622
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 resultobj = SWIG_FromInt((int)result);
9627 return resultobj;
9628 fail:
9629 return NULL;
9630 }
9631
9632
9633 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9634 PyObject *resultobj;
9635 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9636 int result;
9637 PyObject * obj0 = 0 ;
9638 char *kwnames[] = {
9639 (char *) "self", NULL
9640 };
9641
9642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
9643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9645 {
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
9648
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
9652 resultobj = SWIG_FromInt((int)result);
9653 return resultobj;
9654 fail:
9655 return NULL;
9656 }
9657
9658
9659 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
9660 PyObject *resultobj;
9661 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9662 int result;
9663 PyObject * obj0 = 0 ;
9664 char *kwnames[] = {
9665 (char *) "self", NULL
9666 };
9667
9668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
9669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9671 {
9672 PyThreadState* __tstate = wxPyBeginAllowThreads();
9673 result = (int)((wxScrollBar const *)arg1)->GetRange();
9674
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 resultobj = SWIG_FromInt((int)result);
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj;
9687 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9688 bool result;
9689 PyObject * obj0 = 0 ;
9690 char *kwnames[] = {
9691 (char *) "self", NULL
9692 };
9693
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
9695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9697 {
9698 PyThreadState* __tstate = wxPyBeginAllowThreads();
9699 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
9700
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9705 return resultobj;
9706 fail:
9707 return NULL;
9708 }
9709
9710
9711 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9712 PyObject *resultobj;
9713 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9714 int arg2 ;
9715 PyObject * obj0 = 0 ;
9716 PyObject * obj1 = 0 ;
9717 char *kwnames[] = {
9718 (char *) "self",(char *) "viewStart", NULL
9719 };
9720
9721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
9722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9724 arg2 = (int) SWIG_AsInt(obj1);
9725 if (PyErr_Occurred()) SWIG_fail;
9726 {
9727 PyThreadState* __tstate = wxPyBeginAllowThreads();
9728 (arg1)->SetThumbPosition(arg2);
9729
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 Py_INCREF(Py_None); resultobj = Py_None;
9734 return resultobj;
9735 fail:
9736 return NULL;
9737 }
9738
9739
9740 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
9741 PyObject *resultobj;
9742 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9743 int arg2 ;
9744 int arg3 ;
9745 int arg4 ;
9746 int arg5 ;
9747 bool arg6 = (bool) True ;
9748 PyObject * obj0 = 0 ;
9749 PyObject * obj1 = 0 ;
9750 PyObject * obj2 = 0 ;
9751 PyObject * obj3 = 0 ;
9752 PyObject * obj4 = 0 ;
9753 PyObject * obj5 = 0 ;
9754 char *kwnames[] = {
9755 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
9756 };
9757
9758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
9760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9761 arg2 = (int) SWIG_AsInt(obj1);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 arg3 = (int) SWIG_AsInt(obj2);
9764 if (PyErr_Occurred()) SWIG_fail;
9765 arg4 = (int) SWIG_AsInt(obj3);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 arg5 = (int) SWIG_AsInt(obj4);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 if (obj5) {
9770 arg6 = (bool) SWIG_AsBool(obj5);
9771 if (PyErr_Occurred()) SWIG_fail;
9772 }
9773 {
9774 PyThreadState* __tstate = wxPyBeginAllowThreads();
9775 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
9776
9777 wxPyEndAllowThreads(__tstate);
9778 if (PyErr_Occurred()) SWIG_fail;
9779 }
9780 Py_INCREF(Py_None); resultobj = Py_None;
9781 return resultobj;
9782 fail:
9783 return NULL;
9784 }
9785
9786
9787 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
9788 PyObject *obj;
9789 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9790 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
9791 Py_INCREF(obj);
9792 return Py_BuildValue((char *)"");
9793 }
9794 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
9795 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
9796 return 1;
9797 }
9798
9799
9800 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
9801 PyObject *pyobj;
9802
9803 {
9804 #if wxUSE_UNICODE
9805 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9806 #else
9807 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9808 #endif
9809 }
9810 return pyobj;
9811 }
9812
9813
9814 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
9815 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
9816 return 1;
9817 }
9818
9819
9820 static PyObject *_wrap_SpinCtrlNameStr_get() {
9821 PyObject *pyobj;
9822
9823 {
9824 #if wxUSE_UNICODE
9825 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9826 #else
9827 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9828 #endif
9829 }
9830 return pyobj;
9831 }
9832
9833
9834 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9835 PyObject *resultobj;
9836 wxWindow *arg1 = (wxWindow *) 0 ;
9837 int arg2 = (int) -1 ;
9838 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9839 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9840 wxSize const &arg4_defvalue = wxDefaultSize ;
9841 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9842 long arg5 = (long) wxSP_HORIZONTAL ;
9843 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
9844 wxString *arg6 = (wxString *) &arg6_defvalue ;
9845 wxSpinButton *result;
9846 wxPoint temp3 ;
9847 wxSize temp4 ;
9848 bool temp6 = False ;
9849 PyObject * obj0 = 0 ;
9850 PyObject * obj1 = 0 ;
9851 PyObject * obj2 = 0 ;
9852 PyObject * obj3 = 0 ;
9853 PyObject * obj4 = 0 ;
9854 PyObject * obj5 = 0 ;
9855 char *kwnames[] = {
9856 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
9857 };
9858
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9862 if (obj1) {
9863 arg2 = (int) SWIG_AsInt(obj1);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 }
9866 if (obj2) {
9867 {
9868 arg3 = &temp3;
9869 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9870 }
9871 }
9872 if (obj3) {
9873 {
9874 arg4 = &temp4;
9875 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9876 }
9877 }
9878 if (obj4) {
9879 arg5 = (long) SWIG_AsLong(obj4);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 if (obj5) {
9883 {
9884 arg6 = wxString_in_helper(obj5);
9885 if (arg6 == NULL) SWIG_fail;
9886 temp6 = True;
9887 }
9888 }
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
9892
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
9897 {
9898 if (temp6)
9899 delete arg6;
9900 }
9901 return resultobj;
9902 fail:
9903 {
9904 if (temp6)
9905 delete arg6;
9906 }
9907 return NULL;
9908 }
9909
9910
9911 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9912 PyObject *resultobj;
9913 wxSpinButton *result;
9914 char *kwnames[] = {
9915 NULL
9916 };
9917
9918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
9919 {
9920 PyThreadState* __tstate = wxPyBeginAllowThreads();
9921 result = (wxSpinButton *)new wxSpinButton();
9922
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
9927 return resultobj;
9928 fail:
9929 return NULL;
9930 }
9931
9932
9933 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9934 PyObject *resultobj;
9935 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9936 wxWindow *arg2 = (wxWindow *) 0 ;
9937 int arg3 = (int) -1 ;
9938 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9939 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9940 wxSize const &arg5_defvalue = wxDefaultSize ;
9941 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9942 long arg6 = (long) wxSP_HORIZONTAL ;
9943 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
9944 wxString *arg7 = (wxString *) &arg7_defvalue ;
9945 bool result;
9946 wxPoint temp4 ;
9947 wxSize temp5 ;
9948 bool temp7 = False ;
9949 PyObject * obj0 = 0 ;
9950 PyObject * obj1 = 0 ;
9951 PyObject * obj2 = 0 ;
9952 PyObject * obj3 = 0 ;
9953 PyObject * obj4 = 0 ;
9954 PyObject * obj5 = 0 ;
9955 PyObject * obj6 = 0 ;
9956 char *kwnames[] = {
9957 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
9958 };
9959
9960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
9962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9963 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
9964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9965 if (obj2) {
9966 arg3 = (int) SWIG_AsInt(obj2);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 if (obj3) {
9970 {
9971 arg4 = &temp4;
9972 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9973 }
9974 }
9975 if (obj4) {
9976 {
9977 arg5 = &temp5;
9978 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9979 }
9980 }
9981 if (obj5) {
9982 arg6 = (long) SWIG_AsLong(obj5);
9983 if (PyErr_Occurred()) SWIG_fail;
9984 }
9985 if (obj6) {
9986 {
9987 arg7 = wxString_in_helper(obj6);
9988 if (arg7 == NULL) SWIG_fail;
9989 temp7 = True;
9990 }
9991 }
9992 {
9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
9994 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
9995
9996 wxPyEndAllowThreads(__tstate);
9997 if (PyErr_Occurred()) SWIG_fail;
9998 }
9999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10000 {
10001 if (temp7)
10002 delete arg7;
10003 }
10004 return resultobj;
10005 fail:
10006 {
10007 if (temp7)
10008 delete arg7;
10009 }
10010 return NULL;
10011 }
10012
10013
10014 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10015 PyObject *resultobj;
10016 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10017 int result;
10018 PyObject * obj0 = 0 ;
10019 char *kwnames[] = {
10020 (char *) "self", NULL
10021 };
10022
10023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10026 {
10027 PyThreadState* __tstate = wxPyBeginAllowThreads();
10028 result = (int)((wxSpinButton const *)arg1)->GetValue();
10029
10030 wxPyEndAllowThreads(__tstate);
10031 if (PyErr_Occurred()) SWIG_fail;
10032 }
10033 resultobj = SWIG_FromInt((int)result);
10034 return resultobj;
10035 fail:
10036 return NULL;
10037 }
10038
10039
10040 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10041 PyObject *resultobj;
10042 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10043 int result;
10044 PyObject * obj0 = 0 ;
10045 char *kwnames[] = {
10046 (char *) "self", NULL
10047 };
10048
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10052 {
10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
10054 result = (int)((wxSpinButton const *)arg1)->GetMin();
10055
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 resultobj = SWIG_FromInt((int)result);
10060 return resultobj;
10061 fail:
10062 return NULL;
10063 }
10064
10065
10066 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10067 PyObject *resultobj;
10068 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10069 int result;
10070 PyObject * obj0 = 0 ;
10071 char *kwnames[] = {
10072 (char *) "self", NULL
10073 };
10074
10075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10078 {
10079 PyThreadState* __tstate = wxPyBeginAllowThreads();
10080 result = (int)((wxSpinButton const *)arg1)->GetMax();
10081
10082 wxPyEndAllowThreads(__tstate);
10083 if (PyErr_Occurred()) SWIG_fail;
10084 }
10085 resultobj = SWIG_FromInt((int)result);
10086 return resultobj;
10087 fail:
10088 return NULL;
10089 }
10090
10091
10092 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10093 PyObject *resultobj;
10094 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10095 int arg2 ;
10096 PyObject * obj0 = 0 ;
10097 PyObject * obj1 = 0 ;
10098 char *kwnames[] = {
10099 (char *) "self",(char *) "val", NULL
10100 };
10101
10102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10105 arg2 = (int) SWIG_AsInt(obj1);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 {
10108 PyThreadState* __tstate = wxPyBeginAllowThreads();
10109 (arg1)->SetValue(arg2);
10110
10111 wxPyEndAllowThreads(__tstate);
10112 if (PyErr_Occurred()) SWIG_fail;
10113 }
10114 Py_INCREF(Py_None); resultobj = Py_None;
10115 return resultobj;
10116 fail:
10117 return NULL;
10118 }
10119
10120
10121 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10122 PyObject *resultobj;
10123 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10124 int arg2 ;
10125 PyObject * obj0 = 0 ;
10126 PyObject * obj1 = 0 ;
10127 char *kwnames[] = {
10128 (char *) "self",(char *) "minVal", NULL
10129 };
10130
10131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10134 arg2 = (int) SWIG_AsInt(obj1);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 {
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 (arg1)->SetMin(arg2);
10139
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 Py_INCREF(Py_None); resultobj = Py_None;
10144 return resultobj;
10145 fail:
10146 return NULL;
10147 }
10148
10149
10150 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10151 PyObject *resultobj;
10152 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10153 int arg2 ;
10154 PyObject * obj0 = 0 ;
10155 PyObject * obj1 = 0 ;
10156 char *kwnames[] = {
10157 (char *) "self",(char *) "maxVal", NULL
10158 };
10159
10160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10163 arg2 = (int) SWIG_AsInt(obj1);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 (arg1)->SetMax(arg2);
10168
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 Py_INCREF(Py_None); resultobj = Py_None;
10173 return resultobj;
10174 fail:
10175 return NULL;
10176 }
10177
10178
10179 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj;
10181 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10182 int arg2 ;
10183 int arg3 ;
10184 PyObject * obj0 = 0 ;
10185 PyObject * obj1 = 0 ;
10186 PyObject * obj2 = 0 ;
10187 char *kwnames[] = {
10188 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10189 };
10190
10191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10194 arg2 = (int) SWIG_AsInt(obj1);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 arg3 = (int) SWIG_AsInt(obj2);
10197 if (PyErr_Occurred()) SWIG_fail;
10198 {
10199 PyThreadState* __tstate = wxPyBeginAllowThreads();
10200 (arg1)->SetRange(arg2,arg3);
10201
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 Py_INCREF(Py_None); resultobj = Py_None;
10206 return resultobj;
10207 fail:
10208 return NULL;
10209 }
10210
10211
10212 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10213 PyObject *resultobj;
10214 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10215 bool result;
10216 PyObject * obj0 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10239 PyObject *obj;
10240 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10241 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10242 Py_INCREF(obj);
10243 return Py_BuildValue((char *)"");
10244 }
10245 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj;
10247 wxWindow *arg1 = (wxWindow *) 0 ;
10248 int arg2 = (int) -1 ;
10249 wxString const &arg3_defvalue = wxPyEmptyString ;
10250 wxString *arg3 = (wxString *) &arg3_defvalue ;
10251 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10252 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10253 wxSize const &arg5_defvalue = wxDefaultSize ;
10254 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10255 long arg6 = (long) wxSP_ARROW_KEYS ;
10256 int arg7 = (int) 0 ;
10257 int arg8 = (int) 100 ;
10258 int arg9 = (int) 0 ;
10259 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10260 wxString *arg10 = (wxString *) &arg10_defvalue ;
10261 wxSpinCtrl *result;
10262 bool temp3 = False ;
10263 wxPoint temp4 ;
10264 wxSize temp5 ;
10265 bool temp10 = False ;
10266 PyObject * obj0 = 0 ;
10267 PyObject * obj1 = 0 ;
10268 PyObject * obj2 = 0 ;
10269 PyObject * obj3 = 0 ;
10270 PyObject * obj4 = 0 ;
10271 PyObject * obj5 = 0 ;
10272 PyObject * obj6 = 0 ;
10273 PyObject * obj7 = 0 ;
10274 PyObject * obj8 = 0 ;
10275 PyObject * obj9 = 0 ;
10276 char *kwnames[] = {
10277 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10278 };
10279
10280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10283 if (obj1) {
10284 arg2 = (int) SWIG_AsInt(obj1);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 if (obj2) {
10288 {
10289 arg3 = wxString_in_helper(obj2);
10290 if (arg3 == NULL) SWIG_fail;
10291 temp3 = True;
10292 }
10293 }
10294 if (obj3) {
10295 {
10296 arg4 = &temp4;
10297 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10298 }
10299 }
10300 if (obj4) {
10301 {
10302 arg5 = &temp5;
10303 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10304 }
10305 }
10306 if (obj5) {
10307 arg6 = (long) SWIG_AsLong(obj5);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 if (obj6) {
10311 arg7 = (int) SWIG_AsInt(obj6);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 if (obj7) {
10315 arg8 = (int) SWIG_AsInt(obj7);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
10318 if (obj8) {
10319 arg9 = (int) SWIG_AsInt(obj8);
10320 if (PyErr_Occurred()) SWIG_fail;
10321 }
10322 if (obj9) {
10323 {
10324 arg10 = wxString_in_helper(obj9);
10325 if (arg10 == NULL) SWIG_fail;
10326 temp10 = True;
10327 }
10328 }
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10332
10333 wxPyEndAllowThreads(__tstate);
10334 if (PyErr_Occurred()) SWIG_fail;
10335 }
10336 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10337 {
10338 if (temp3)
10339 delete arg3;
10340 }
10341 {
10342 if (temp10)
10343 delete arg10;
10344 }
10345 return resultobj;
10346 fail:
10347 {
10348 if (temp3)
10349 delete arg3;
10350 }
10351 {
10352 if (temp10)
10353 delete arg10;
10354 }
10355 return NULL;
10356 }
10357
10358
10359 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj;
10361 wxSpinCtrl *result;
10362 char *kwnames[] = {
10363 NULL
10364 };
10365
10366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
10367 {
10368 PyThreadState* __tstate = wxPyBeginAllowThreads();
10369 result = (wxSpinCtrl *)new wxSpinCtrl();
10370
10371 wxPyEndAllowThreads(__tstate);
10372 if (PyErr_Occurred()) SWIG_fail;
10373 }
10374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10375 return resultobj;
10376 fail:
10377 return NULL;
10378 }
10379
10380
10381 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10382 PyObject *resultobj;
10383 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10384 wxWindow *arg2 = (wxWindow *) 0 ;
10385 int arg3 = (int) -1 ;
10386 wxString const &arg4_defvalue = wxPyEmptyString ;
10387 wxString *arg4 = (wxString *) &arg4_defvalue ;
10388 wxPoint const &arg5_defvalue = wxDefaultPosition ;
10389 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
10390 wxSize const &arg6_defvalue = wxDefaultSize ;
10391 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
10392 long arg7 = (long) wxSP_ARROW_KEYS ;
10393 int arg8 = (int) 0 ;
10394 int arg9 = (int) 100 ;
10395 int arg10 = (int) 0 ;
10396 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
10397 wxString *arg11 = (wxString *) &arg11_defvalue ;
10398 bool result;
10399 bool temp4 = False ;
10400 wxPoint temp5 ;
10401 wxSize temp6 ;
10402 bool temp11 = False ;
10403 PyObject * obj0 = 0 ;
10404 PyObject * obj1 = 0 ;
10405 PyObject * obj2 = 0 ;
10406 PyObject * obj3 = 0 ;
10407 PyObject * obj4 = 0 ;
10408 PyObject * obj5 = 0 ;
10409 PyObject * obj6 = 0 ;
10410 PyObject * obj7 = 0 ;
10411 PyObject * obj8 = 0 ;
10412 PyObject * obj9 = 0 ;
10413 PyObject * obj10 = 0 ;
10414 char *kwnames[] = {
10415 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10416 };
10417
10418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
10419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10423 if (obj2) {
10424 arg3 = (int) SWIG_AsInt(obj2);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 if (obj3) {
10428 {
10429 arg4 = wxString_in_helper(obj3);
10430 if (arg4 == NULL) SWIG_fail;
10431 temp4 = True;
10432 }
10433 }
10434 if (obj4) {
10435 {
10436 arg5 = &temp5;
10437 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10438 }
10439 }
10440 if (obj5) {
10441 {
10442 arg6 = &temp6;
10443 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
10444 }
10445 }
10446 if (obj6) {
10447 arg7 = (long) SWIG_AsLong(obj6);
10448 if (PyErr_Occurred()) SWIG_fail;
10449 }
10450 if (obj7) {
10451 arg8 = (int) SWIG_AsInt(obj7);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 if (obj8) {
10455 arg9 = (int) SWIG_AsInt(obj8);
10456 if (PyErr_Occurred()) SWIG_fail;
10457 }
10458 if (obj9) {
10459 arg10 = (int) SWIG_AsInt(obj9);
10460 if (PyErr_Occurred()) SWIG_fail;
10461 }
10462 if (obj10) {
10463 {
10464 arg11 = wxString_in_helper(obj10);
10465 if (arg11 == NULL) SWIG_fail;
10466 temp11 = True;
10467 }
10468 }
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
10472
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10477 {
10478 if (temp4)
10479 delete arg4;
10480 }
10481 {
10482 if (temp11)
10483 delete arg11;
10484 }
10485 return resultobj;
10486 fail:
10487 {
10488 if (temp4)
10489 delete arg4;
10490 }
10491 {
10492 if (temp11)
10493 delete arg11;
10494 }
10495 return NULL;
10496 }
10497
10498
10499 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj;
10501 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10502 int result;
10503 PyObject * obj0 = 0 ;
10504 char *kwnames[] = {
10505 (char *) "self", NULL
10506 };
10507
10508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
10509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10511 {
10512 PyThreadState* __tstate = wxPyBeginAllowThreads();
10513 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
10514
10515 wxPyEndAllowThreads(__tstate);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 resultobj = SWIG_FromInt((int)result);
10519 return resultobj;
10520 fail:
10521 return NULL;
10522 }
10523
10524
10525 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10526 PyObject *resultobj;
10527 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10528 int arg2 ;
10529 PyObject * obj0 = 0 ;
10530 PyObject * obj1 = 0 ;
10531 char *kwnames[] = {
10532 (char *) "self",(char *) "value", NULL
10533 };
10534
10535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
10536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10538 arg2 = (int) SWIG_AsInt(obj1);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 {
10541 PyThreadState* __tstate = wxPyBeginAllowThreads();
10542 (arg1)->SetValue(arg2);
10543
10544 wxPyEndAllowThreads(__tstate);
10545 if (PyErr_Occurred()) SWIG_fail;
10546 }
10547 Py_INCREF(Py_None); resultobj = Py_None;
10548 return resultobj;
10549 fail:
10550 return NULL;
10551 }
10552
10553
10554 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
10555 PyObject *resultobj;
10556 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10557 wxString *arg2 = 0 ;
10558 bool temp2 = False ;
10559 PyObject * obj0 = 0 ;
10560 PyObject * obj1 = 0 ;
10561 char *kwnames[] = {
10562 (char *) "self",(char *) "text", NULL
10563 };
10564
10565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
10566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10568 {
10569 arg2 = wxString_in_helper(obj1);
10570 if (arg2 == NULL) SWIG_fail;
10571 temp2 = True;
10572 }
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 (arg1)->SetValue((wxString const &)*arg2);
10576
10577 wxPyEndAllowThreads(__tstate);
10578 if (PyErr_Occurred()) SWIG_fail;
10579 }
10580 Py_INCREF(Py_None); resultobj = Py_None;
10581 {
10582 if (temp2)
10583 delete arg2;
10584 }
10585 return resultobj;
10586 fail:
10587 {
10588 if (temp2)
10589 delete arg2;
10590 }
10591 return NULL;
10592 }
10593
10594
10595 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj;
10597 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10598 int arg2 ;
10599 int arg3 ;
10600 PyObject * obj0 = 0 ;
10601 PyObject * obj1 = 0 ;
10602 PyObject * obj2 = 0 ;
10603 char *kwnames[] = {
10604 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10605 };
10606
10607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10610 arg2 = (int) SWIG_AsInt(obj1);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 arg3 = (int) SWIG_AsInt(obj2);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 (arg1)->SetRange(arg2,arg3);
10617
10618 wxPyEndAllowThreads(__tstate);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 Py_INCREF(Py_None); resultobj = Py_None;
10622 return resultobj;
10623 fail:
10624 return NULL;
10625 }
10626
10627
10628 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10629 PyObject *resultobj;
10630 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10631 int result;
10632 PyObject * obj0 = 0 ;
10633 char *kwnames[] = {
10634 (char *) "self", NULL
10635 };
10636
10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
10638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
10643
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_FromInt((int)result);
10648 return resultobj;
10649 fail:
10650 return NULL;
10651 }
10652
10653
10654 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj;
10656 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10657 int result;
10658 PyObject * obj0 = 0 ;
10659 char *kwnames[] = {
10660 (char *) "self", NULL
10661 };
10662
10663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
10664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
10669
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 resultobj = SWIG_FromInt((int)result);
10674 return resultobj;
10675 fail:
10676 return NULL;
10677 }
10678
10679
10680 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10681 PyObject *resultobj;
10682 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10683 long arg2 ;
10684 long arg3 ;
10685 PyObject * obj0 = 0 ;
10686 PyObject * obj1 = 0 ;
10687 PyObject * obj2 = 0 ;
10688 char *kwnames[] = {
10689 (char *) "self",(char *) "from",(char *) "to", NULL
10690 };
10691
10692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
10693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
10694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10695 arg2 = (long) SWIG_AsLong(obj1);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 arg3 = (long) SWIG_AsLong(obj2);
10698 if (PyErr_Occurred()) SWIG_fail;
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
10701 (arg1)->SetSelection(arg2,arg3);
10702
10703 wxPyEndAllowThreads(__tstate);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 }
10706 Py_INCREF(Py_None); resultobj = Py_None;
10707 return resultobj;
10708 fail:
10709 return NULL;
10710 }
10711
10712
10713 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
10714 PyObject *obj;
10715 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10716 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
10717 Py_INCREF(obj);
10718 return Py_BuildValue((char *)"");
10719 }
10720 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj;
10722 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10723 int arg2 = (int) 0 ;
10724 wxSpinEvent *result;
10725 PyObject * obj0 = 0 ;
10726 PyObject * obj1 = 0 ;
10727 char *kwnames[] = {
10728 (char *) "commandType",(char *) "winid", NULL
10729 };
10730
10731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
10732 if (obj0) {
10733 arg1 = (wxEventType) SWIG_AsInt(obj0);
10734 if (PyErr_Occurred()) SWIG_fail;
10735 }
10736 if (obj1) {
10737 arg2 = (int) SWIG_AsInt(obj1);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
10743
10744 wxPyEndAllowThreads(__tstate);
10745 if (PyErr_Occurred()) SWIG_fail;
10746 }
10747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10755 PyObject *resultobj;
10756 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10757 int result;
10758 PyObject * obj0 = 0 ;
10759 char *kwnames[] = {
10760 (char *) "self", NULL
10761 };
10762
10763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
10764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
10765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10766 {
10767 PyThreadState* __tstate = wxPyBeginAllowThreads();
10768 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
10769
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_FromInt((int)result);
10774 return resultobj;
10775 fail:
10776 return NULL;
10777 }
10778
10779
10780 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj;
10782 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10783 int arg2 ;
10784 PyObject * obj0 = 0 ;
10785 PyObject * obj1 = 0 ;
10786 char *kwnames[] = {
10787 (char *) "self",(char *) "pos", NULL
10788 };
10789
10790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
10791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
10792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10793 arg2 = (int) SWIG_AsInt(obj1);
10794 if (PyErr_Occurred()) SWIG_fail;
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->SetPosition(arg2);
10798
10799 wxPyEndAllowThreads(__tstate);
10800 if (PyErr_Occurred()) SWIG_fail;
10801 }
10802 Py_INCREF(Py_None); resultobj = Py_None;
10803 return resultobj;
10804 fail:
10805 return NULL;
10806 }
10807
10808
10809 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
10810 PyObject *obj;
10811 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10812 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
10813 Py_INCREF(obj);
10814 return Py_BuildValue((char *)"");
10815 }
10816 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
10817 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
10818 return 1;
10819 }
10820
10821
10822 static PyObject *_wrap_RadioBoxNameStr_get() {
10823 PyObject *pyobj;
10824
10825 {
10826 #if wxUSE_UNICODE
10827 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10828 #else
10829 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10830 #endif
10831 }
10832 return pyobj;
10833 }
10834
10835
10836 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
10837 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
10838 return 1;
10839 }
10840
10841
10842 static PyObject *_wrap_RadioButtonNameStr_get() {
10843 PyObject *pyobj;
10844
10845 {
10846 #if wxUSE_UNICODE
10847 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10848 #else
10849 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10850 #endif
10851 }
10852 return pyobj;
10853 }
10854
10855
10856 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10857 PyObject *resultobj;
10858 wxWindow *arg1 = (wxWindow *) 0 ;
10859 int arg2 ;
10860 wxString *arg3 = 0 ;
10861 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10862 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10863 wxSize const &arg5_defvalue = wxDefaultSize ;
10864 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10865 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10866 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10867 int arg7 = (int) 0 ;
10868 long arg8 = (long) wxRA_HORIZONTAL ;
10869 wxValidator const &arg9_defvalue = wxDefaultValidator ;
10870 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
10871 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
10872 wxString *arg10 = (wxString *) &arg10_defvalue ;
10873 wxRadioBox *result;
10874 bool temp3 = False ;
10875 wxPoint temp4 ;
10876 wxSize temp5 ;
10877 bool temp6 = False ;
10878 bool temp10 = False ;
10879 PyObject * obj0 = 0 ;
10880 PyObject * obj1 = 0 ;
10881 PyObject * obj2 = 0 ;
10882 PyObject * obj3 = 0 ;
10883 PyObject * obj4 = 0 ;
10884 PyObject * obj5 = 0 ;
10885 PyObject * obj6 = 0 ;
10886 PyObject * obj7 = 0 ;
10887 PyObject * obj8 = 0 ;
10888 PyObject * obj9 = 0 ;
10889 char *kwnames[] = {
10890 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
10891 };
10892
10893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10896 arg2 = (int) SWIG_AsInt(obj1);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 {
10899 arg3 = wxString_in_helper(obj2);
10900 if (arg3 == NULL) SWIG_fail;
10901 temp3 = True;
10902 }
10903 if (obj3) {
10904 {
10905 arg4 = &temp4;
10906 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10907 }
10908 }
10909 if (obj4) {
10910 {
10911 arg5 = &temp5;
10912 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10913 }
10914 }
10915 if (obj5) {
10916 {
10917 if (! PySequence_Check(obj5)) {
10918 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10919 SWIG_fail;
10920 }
10921 arg6 = new wxArrayString;
10922 temp6 = True;
10923 int i, len=PySequence_Length(obj5);
10924 for (i=0; i<len; i++) {
10925 PyObject* item = PySequence_GetItem(obj5, i);
10926 #if wxUSE_UNICODE
10927 PyObject* str = PyObject_Unicode(item);
10928 #else
10929 PyObject* str = PyObject_Str(item);
10930 #endif
10931 arg6->Add(Py2wxString(str));
10932 Py_DECREF(item);
10933 Py_DECREF(str);
10934 }
10935 }
10936 }
10937 if (obj6) {
10938 arg7 = (int) SWIG_AsInt(obj6);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 if (obj7) {
10942 arg8 = (long) SWIG_AsLong(obj7);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 }
10945 if (obj8) {
10946 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
10947 SWIG_POINTER_EXCEPTION | 0)) == -1)
10948 SWIG_fail;
10949 if (arg9 == NULL) {
10950 PyErr_SetString(PyExc_TypeError,"null reference");
10951 SWIG_fail;
10952 }
10953 }
10954 if (obj9) {
10955 {
10956 arg10 = wxString_in_helper(obj9);
10957 if (arg10 == NULL) SWIG_fail;
10958 temp10 = True;
10959 }
10960 }
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 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);
10964
10965 wxPyEndAllowThreads(__tstate);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 }
10968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
10969 {
10970 if (temp3)
10971 delete arg3;
10972 }
10973 {
10974 if (temp6) delete arg6;
10975 }
10976 {
10977 if (temp10)
10978 delete arg10;
10979 }
10980 return resultobj;
10981 fail:
10982 {
10983 if (temp3)
10984 delete arg3;
10985 }
10986 {
10987 if (temp6) delete arg6;
10988 }
10989 {
10990 if (temp10)
10991 delete arg10;
10992 }
10993 return NULL;
10994 }
10995
10996
10997 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10998 PyObject *resultobj;
10999 wxRadioBox *result;
11000 char *kwnames[] = {
11001 NULL
11002 };
11003
11004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 result = (wxRadioBox *)new wxRadioBox();
11008
11009 wxPyEndAllowThreads(__tstate);
11010 if (PyErr_Occurred()) SWIG_fail;
11011 }
11012 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11013 return resultobj;
11014 fail:
11015 return NULL;
11016 }
11017
11018
11019 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11020 PyObject *resultobj;
11021 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11022 wxWindow *arg2 = (wxWindow *) 0 ;
11023 int arg3 ;
11024 wxString *arg4 = 0 ;
11025 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11026 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11027 wxSize const &arg6_defvalue = wxDefaultSize ;
11028 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11029 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11030 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11031 int arg8 = (int) 0 ;
11032 long arg9 = (long) wxRA_HORIZONTAL ;
11033 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11034 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11035 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11036 wxString *arg11 = (wxString *) &arg11_defvalue ;
11037 bool result;
11038 bool temp4 = False ;
11039 wxPoint temp5 ;
11040 wxSize temp6 ;
11041 bool temp7 = False ;
11042 bool temp11 = False ;
11043 PyObject * obj0 = 0 ;
11044 PyObject * obj1 = 0 ;
11045 PyObject * obj2 = 0 ;
11046 PyObject * obj3 = 0 ;
11047 PyObject * obj4 = 0 ;
11048 PyObject * obj5 = 0 ;
11049 PyObject * obj6 = 0 ;
11050 PyObject * obj7 = 0 ;
11051 PyObject * obj8 = 0 ;
11052 PyObject * obj9 = 0 ;
11053 PyObject * obj10 = 0 ;
11054 char *kwnames[] = {
11055 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11056 };
11057
11058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11061 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11063 arg3 = (int) SWIG_AsInt(obj2);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 {
11066 arg4 = wxString_in_helper(obj3);
11067 if (arg4 == NULL) SWIG_fail;
11068 temp4 = True;
11069 }
11070 if (obj4) {
11071 {
11072 arg5 = &temp5;
11073 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11074 }
11075 }
11076 if (obj5) {
11077 {
11078 arg6 = &temp6;
11079 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11080 }
11081 }
11082 if (obj6) {
11083 {
11084 if (! PySequence_Check(obj6)) {
11085 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11086 SWIG_fail;
11087 }
11088 arg7 = new wxArrayString;
11089 temp7 = True;
11090 int i, len=PySequence_Length(obj6);
11091 for (i=0; i<len; i++) {
11092 PyObject* item = PySequence_GetItem(obj6, i);
11093 #if wxUSE_UNICODE
11094 PyObject* str = PyObject_Unicode(item);
11095 #else
11096 PyObject* str = PyObject_Str(item);
11097 #endif
11098 arg7->Add(Py2wxString(str));
11099 Py_DECREF(item);
11100 Py_DECREF(str);
11101 }
11102 }
11103 }
11104 if (obj7) {
11105 arg8 = (int) SWIG_AsInt(obj7);
11106 if (PyErr_Occurred()) SWIG_fail;
11107 }
11108 if (obj8) {
11109 arg9 = (long) SWIG_AsLong(obj8);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 if (obj9) {
11113 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11114 SWIG_POINTER_EXCEPTION | 0)) == -1)
11115 SWIG_fail;
11116 if (arg10 == NULL) {
11117 PyErr_SetString(PyExc_TypeError,"null reference");
11118 SWIG_fail;
11119 }
11120 }
11121 if (obj10) {
11122 {
11123 arg11 = wxString_in_helper(obj10);
11124 if (arg11 == NULL) SWIG_fail;
11125 temp11 = True;
11126 }
11127 }
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 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);
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 {
11137 if (temp4)
11138 delete arg4;
11139 }
11140 {
11141 if (temp7) delete arg7;
11142 }
11143 {
11144 if (temp11)
11145 delete arg11;
11146 }
11147 return resultobj;
11148 fail:
11149 {
11150 if (temp4)
11151 delete arg4;
11152 }
11153 {
11154 if (temp7) delete arg7;
11155 }
11156 {
11157 if (temp11)
11158 delete arg11;
11159 }
11160 return NULL;
11161 }
11162
11163
11164 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11165 PyObject *resultobj;
11166 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11167 int arg2 ;
11168 PyObject * obj0 = 0 ;
11169 PyObject * obj1 = 0 ;
11170 char *kwnames[] = {
11171 (char *) "self",(char *) "n", NULL
11172 };
11173
11174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11177 arg2 = (int) SWIG_AsInt(obj1);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 {
11180 PyThreadState* __tstate = wxPyBeginAllowThreads();
11181 (arg1)->SetSelection(arg2);
11182
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 Py_INCREF(Py_None); resultobj = Py_None;
11187 return resultobj;
11188 fail:
11189 return NULL;
11190 }
11191
11192
11193 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11194 PyObject *resultobj;
11195 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11196 int result;
11197 PyObject * obj0 = 0 ;
11198 char *kwnames[] = {
11199 (char *) "self", NULL
11200 };
11201
11202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11208
11209 wxPyEndAllowThreads(__tstate);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 resultobj = SWIG_FromInt((int)result);
11213 return resultobj;
11214 fail:
11215 return NULL;
11216 }
11217
11218
11219 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11220 PyObject *resultobj;
11221 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11222 wxString result;
11223 PyObject * obj0 = 0 ;
11224 char *kwnames[] = {
11225 (char *) "self", NULL
11226 };
11227
11228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11231 {
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11234
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 {
11239 #if wxUSE_UNICODE
11240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11241 #else
11242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11243 #endif
11244 }
11245 return resultobj;
11246 fail:
11247 return NULL;
11248 }
11249
11250
11251 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11252 PyObject *resultobj;
11253 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11254 wxString *arg2 = 0 ;
11255 bool result;
11256 bool temp2 = False ;
11257 PyObject * obj0 = 0 ;
11258 PyObject * obj1 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "self",(char *) "s", NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11266 {
11267 arg2 = wxString_in_helper(obj1);
11268 if (arg2 == NULL) SWIG_fail;
11269 temp2 = True;
11270 }
11271 {
11272 PyThreadState* __tstate = wxPyBeginAllowThreads();
11273 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11274
11275 wxPyEndAllowThreads(__tstate);
11276 if (PyErr_Occurred()) SWIG_fail;
11277 }
11278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11279 {
11280 if (temp2)
11281 delete arg2;
11282 }
11283 return resultobj;
11284 fail:
11285 {
11286 if (temp2)
11287 delete arg2;
11288 }
11289 return NULL;
11290 }
11291
11292
11293 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11294 PyObject *resultobj;
11295 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11296 int result;
11297 PyObject * obj0 = 0 ;
11298 char *kwnames[] = {
11299 (char *) "self", NULL
11300 };
11301
11302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
11307 result = (int)((wxRadioBox const *)arg1)->GetCount();
11308
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 resultobj = SWIG_FromInt((int)result);
11313 return resultobj;
11314 fail:
11315 return NULL;
11316 }
11317
11318
11319 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj;
11321 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11322 wxString *arg2 = 0 ;
11323 int result;
11324 bool temp2 = False ;
11325 PyObject * obj0 = 0 ;
11326 PyObject * obj1 = 0 ;
11327 char *kwnames[] = {
11328 (char *) "self",(char *) "s", NULL
11329 };
11330
11331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
11332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11334 {
11335 arg2 = wxString_in_helper(obj1);
11336 if (arg2 == NULL) SWIG_fail;
11337 temp2 = True;
11338 }
11339 {
11340 PyThreadState* __tstate = wxPyBeginAllowThreads();
11341 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
11342
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_FromInt((int)result);
11347 {
11348 if (temp2)
11349 delete arg2;
11350 }
11351 return resultobj;
11352 fail:
11353 {
11354 if (temp2)
11355 delete arg2;
11356 }
11357 return NULL;
11358 }
11359
11360
11361 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11362 PyObject *resultobj;
11363 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11364 int arg2 ;
11365 wxString result;
11366 PyObject * obj0 = 0 ;
11367 PyObject * obj1 = 0 ;
11368 char *kwnames[] = {
11369 (char *) "self",(char *) "n", NULL
11370 };
11371
11372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
11373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11375 arg2 = (int) SWIG_AsInt(obj1);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 result = ((wxRadioBox const *)arg1)->GetString(arg2);
11380
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 {
11385 #if wxUSE_UNICODE
11386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11387 #else
11388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11389 #endif
11390 }
11391 return resultobj;
11392 fail:
11393 return NULL;
11394 }
11395
11396
11397 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11398 PyObject *resultobj;
11399 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11400 int arg2 ;
11401 wxString *arg3 = 0 ;
11402 bool temp3 = False ;
11403 PyObject * obj0 = 0 ;
11404 PyObject * obj1 = 0 ;
11405 PyObject * obj2 = 0 ;
11406 char *kwnames[] = {
11407 (char *) "self",(char *) "n",(char *) "label", NULL
11408 };
11409
11410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11413 arg2 = (int) SWIG_AsInt(obj1);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 {
11416 arg3 = wxString_in_helper(obj2);
11417 if (arg3 == NULL) SWIG_fail;
11418 temp3 = True;
11419 }
11420 {
11421 PyThreadState* __tstate = wxPyBeginAllowThreads();
11422 (arg1)->SetString(arg2,(wxString const &)*arg3);
11423
11424 wxPyEndAllowThreads(__tstate);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 Py_INCREF(Py_None); resultobj = Py_None;
11428 {
11429 if (temp3)
11430 delete arg3;
11431 }
11432 return resultobj;
11433 fail:
11434 {
11435 if (temp3)
11436 delete arg3;
11437 }
11438 return NULL;
11439 }
11440
11441
11442 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11443 PyObject *resultobj;
11444 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11445 int arg2 ;
11446 bool arg3 = (bool) True ;
11447 PyObject * obj0 = 0 ;
11448 PyObject * obj1 = 0 ;
11449 PyObject * obj2 = 0 ;
11450 char *kwnames[] = {
11451 (char *) "self",(char *) "n",(char *) "enable", NULL
11452 };
11453
11454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11457 arg2 = (int) SWIG_AsInt(obj1);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 if (obj2) {
11460 arg3 = (bool) SWIG_AsBool(obj2);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 {
11464 PyThreadState* __tstate = wxPyBeginAllowThreads();
11465 (arg1)->Enable(arg2,arg3);
11466
11467 wxPyEndAllowThreads(__tstate);
11468 if (PyErr_Occurred()) SWIG_fail;
11469 }
11470 Py_INCREF(Py_None); resultobj = Py_None;
11471 return resultobj;
11472 fail:
11473 return NULL;
11474 }
11475
11476
11477 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11478 PyObject *resultobj;
11479 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11480 int arg2 ;
11481 bool arg3 = (bool) True ;
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
11484 PyObject * obj2 = 0 ;
11485 char *kwnames[] = {
11486 (char *) "self",(char *) "n",(char *) "show", NULL
11487 };
11488
11489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11492 arg2 = (int) SWIG_AsInt(obj1);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 if (obj2) {
11495 arg3 = (bool) SWIG_AsBool(obj2);
11496 if (PyErr_Occurred()) SWIG_fail;
11497 }
11498 {
11499 PyThreadState* __tstate = wxPyBeginAllowThreads();
11500 (arg1)->Show(arg2,arg3);
11501
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 Py_INCREF(Py_None); resultobj = Py_None;
11506 return resultobj;
11507 fail:
11508 return NULL;
11509 }
11510
11511
11512 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11513 PyObject *resultobj;
11514 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11515 int result;
11516 PyObject * obj0 = 0 ;
11517 char *kwnames[] = {
11518 (char *) "self", NULL
11519 };
11520
11521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
11522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11524 {
11525 PyThreadState* __tstate = wxPyBeginAllowThreads();
11526 result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1);
11527
11528 wxPyEndAllowThreads(__tstate);
11529 if (PyErr_Occurred()) SWIG_fail;
11530 }
11531 resultobj = SWIG_FromInt((int)result);
11532 return resultobj;
11533 fail:
11534 return NULL;
11535 }
11536
11537
11538 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11539 PyObject *resultobj;
11540 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11541 int result;
11542 PyObject * obj0 = 0 ;
11543 char *kwnames[] = {
11544 (char *) "self", NULL
11545 };
11546
11547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
11548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11550 {
11551 PyThreadState* __tstate = wxPyBeginAllowThreads();
11552 result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1);
11553
11554 wxPyEndAllowThreads(__tstate);
11555 if (PyErr_Occurred()) SWIG_fail;
11556 }
11557 resultobj = SWIG_FromInt((int)result);
11558 return resultobj;
11559 fail:
11560 return NULL;
11561 }
11562
11563
11564 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11565 PyObject *resultobj;
11566 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11567 int arg2 ;
11568 int arg3 ;
11569 long arg4 ;
11570 int result;
11571 PyObject * obj0 = 0 ;
11572 PyObject * obj1 = 0 ;
11573 PyObject * obj2 = 0 ;
11574 PyObject * obj3 = 0 ;
11575 char *kwnames[] = {
11576 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
11577 };
11578
11579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11582 arg2 = (int) SWIG_AsInt(obj1);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 arg3 = (wxDirection) SWIG_AsInt(obj2);
11585 if (PyErr_Occurred()) SWIG_fail;
11586 arg4 = (long) SWIG_AsLong(obj3);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 resultobj = SWIG_FromInt((int)result);
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
11603 PyObject *obj;
11604 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11605 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
11606 Py_INCREF(obj);
11607 return Py_BuildValue((char *)"");
11608 }
11609 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11610 PyObject *resultobj;
11611 wxWindow *arg1 = (wxWindow *) 0 ;
11612 int arg2 ;
11613 wxString *arg3 = 0 ;
11614 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11615 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11616 wxSize const &arg5_defvalue = wxDefaultSize ;
11617 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11618 long arg6 = (long) 0 ;
11619 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11620 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11621 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
11622 wxString *arg8 = (wxString *) &arg8_defvalue ;
11623 wxRadioButton *result;
11624 bool temp3 = False ;
11625 wxPoint temp4 ;
11626 wxSize temp5 ;
11627 bool temp8 = False ;
11628 PyObject * obj0 = 0 ;
11629 PyObject * obj1 = 0 ;
11630 PyObject * obj2 = 0 ;
11631 PyObject * obj3 = 0 ;
11632 PyObject * obj4 = 0 ;
11633 PyObject * obj5 = 0 ;
11634 PyObject * obj6 = 0 ;
11635 PyObject * obj7 = 0 ;
11636 char *kwnames[] = {
11637 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11638 };
11639
11640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11643 arg2 = (int) SWIG_AsInt(obj1);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 {
11646 arg3 = wxString_in_helper(obj2);
11647 if (arg3 == NULL) SWIG_fail;
11648 temp3 = True;
11649 }
11650 if (obj3) {
11651 {
11652 arg4 = &temp4;
11653 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11654 }
11655 }
11656 if (obj4) {
11657 {
11658 arg5 = &temp5;
11659 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11660 }
11661 }
11662 if (obj5) {
11663 arg6 = (long) SWIG_AsLong(obj5);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 if (obj6) {
11667 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
11668 SWIG_POINTER_EXCEPTION | 0)) == -1)
11669 SWIG_fail;
11670 if (arg7 == NULL) {
11671 PyErr_SetString(PyExc_TypeError,"null reference");
11672 SWIG_fail;
11673 }
11674 }
11675 if (obj7) {
11676 {
11677 arg8 = wxString_in_helper(obj7);
11678 if (arg8 == NULL) SWIG_fail;
11679 temp8 = True;
11680 }
11681 }
11682 {
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
11684 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11685
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
11690 {
11691 if (temp3)
11692 delete arg3;
11693 }
11694 {
11695 if (temp8)
11696 delete arg8;
11697 }
11698 return resultobj;
11699 fail:
11700 {
11701 if (temp3)
11702 delete arg3;
11703 }
11704 {
11705 if (temp8)
11706 delete arg8;
11707 }
11708 return NULL;
11709 }
11710
11711
11712 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11713 PyObject *resultobj;
11714 wxRadioButton *result;
11715 char *kwnames[] = {
11716 NULL
11717 };
11718
11719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 result = (wxRadioButton *)new wxRadioButton();
11723
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
11728 return resultobj;
11729 fail:
11730 return NULL;
11731 }
11732
11733
11734 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11735 PyObject *resultobj;
11736 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11737 wxWindow *arg2 = (wxWindow *) 0 ;
11738 int arg3 ;
11739 wxString *arg4 = 0 ;
11740 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11741 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11742 wxSize const &arg6_defvalue = wxDefaultSize ;
11743 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11744 long arg7 = (long) 0 ;
11745 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11746 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11747 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
11748 wxString *arg9 = (wxString *) &arg9_defvalue ;
11749 bool result;
11750 bool temp4 = False ;
11751 wxPoint temp5 ;
11752 wxSize temp6 ;
11753 bool temp9 = False ;
11754 PyObject * obj0 = 0 ;
11755 PyObject * obj1 = 0 ;
11756 PyObject * obj2 = 0 ;
11757 PyObject * obj3 = 0 ;
11758 PyObject * obj4 = 0 ;
11759 PyObject * obj5 = 0 ;
11760 PyObject * obj6 = 0 ;
11761 PyObject * obj7 = 0 ;
11762 PyObject * obj8 = 0 ;
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11765 };
11766
11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
11768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11770 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11772 arg3 = (int) SWIG_AsInt(obj2);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 {
11775 arg4 = wxString_in_helper(obj3);
11776 if (arg4 == NULL) SWIG_fail;
11777 temp4 = True;
11778 }
11779 if (obj4) {
11780 {
11781 arg5 = &temp5;
11782 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11783 }
11784 }
11785 if (obj5) {
11786 {
11787 arg6 = &temp6;
11788 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11789 }
11790 }
11791 if (obj6) {
11792 arg7 = (long) SWIG_AsLong(obj6);
11793 if (PyErr_Occurred()) SWIG_fail;
11794 }
11795 if (obj7) {
11796 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
11797 SWIG_POINTER_EXCEPTION | 0)) == -1)
11798 SWIG_fail;
11799 if (arg8 == NULL) {
11800 PyErr_SetString(PyExc_TypeError,"null reference");
11801 SWIG_fail;
11802 }
11803 }
11804 if (obj8) {
11805 {
11806 arg9 = wxString_in_helper(obj8);
11807 if (arg9 == NULL) SWIG_fail;
11808 temp9 = True;
11809 }
11810 }
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11814
11815 wxPyEndAllowThreads(__tstate);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 }
11818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11819 {
11820 if (temp4)
11821 delete arg4;
11822 }
11823 {
11824 if (temp9)
11825 delete arg9;
11826 }
11827 return resultobj;
11828 fail:
11829 {
11830 if (temp4)
11831 delete arg4;
11832 }
11833 {
11834 if (temp9)
11835 delete arg9;
11836 }
11837 return NULL;
11838 }
11839
11840
11841 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11842 PyObject *resultobj;
11843 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11844 bool result;
11845 PyObject * obj0 = 0 ;
11846 char *kwnames[] = {
11847 (char *) "self", NULL
11848 };
11849
11850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
11851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11853 {
11854 PyThreadState* __tstate = wxPyBeginAllowThreads();
11855 result = (bool)(arg1)->GetValue();
11856
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11861 return resultobj;
11862 fail:
11863 return NULL;
11864 }
11865
11866
11867 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11868 PyObject *resultobj;
11869 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11870 bool arg2 ;
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
11873 char *kwnames[] = {
11874 (char *) "self",(char *) "value", NULL
11875 };
11876
11877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
11879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11880 arg2 = (bool) SWIG_AsBool(obj1);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 {
11883 PyThreadState* __tstate = wxPyBeginAllowThreads();
11884 (arg1)->SetValue(arg2);
11885
11886 wxPyEndAllowThreads(__tstate);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 }
11889 Py_INCREF(Py_None); resultobj = Py_None;
11890 return resultobj;
11891 fail:
11892 return NULL;
11893 }
11894
11895
11896 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
11897 PyObject *obj;
11898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11899 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
11900 Py_INCREF(obj);
11901 return Py_BuildValue((char *)"");
11902 }
11903 static int _wrap_SliderNameStr_set(PyObject *_val) {
11904 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
11905 return 1;
11906 }
11907
11908
11909 static PyObject *_wrap_SliderNameStr_get() {
11910 PyObject *pyobj;
11911
11912 {
11913 #if wxUSE_UNICODE
11914 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
11915 #else
11916 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
11917 #endif
11918 }
11919 return pyobj;
11920 }
11921
11922
11923 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
11924 PyObject *resultobj;
11925 wxWindow *arg1 = (wxWindow *) 0 ;
11926 int arg2 ;
11927 int arg3 ;
11928 int arg4 ;
11929 int arg5 ;
11930 wxPoint const &arg6_defvalue = wxDefaultPosition ;
11931 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
11932 wxSize const &arg7_defvalue = wxDefaultSize ;
11933 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
11934 long arg8 = (long) wxSL_HORIZONTAL ;
11935 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11936 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11937 wxString const &arg10_defvalue = wxPySliderNameStr ;
11938 wxString *arg10 = (wxString *) &arg10_defvalue ;
11939 wxSlider *result;
11940 wxPoint temp6 ;
11941 wxSize temp7 ;
11942 bool temp10 = False ;
11943 PyObject * obj0 = 0 ;
11944 PyObject * obj1 = 0 ;
11945 PyObject * obj2 = 0 ;
11946 PyObject * obj3 = 0 ;
11947 PyObject * obj4 = 0 ;
11948 PyObject * obj5 = 0 ;
11949 PyObject * obj6 = 0 ;
11950 PyObject * obj7 = 0 ;
11951 PyObject * obj8 = 0 ;
11952 PyObject * obj9 = 0 ;
11953 char *kwnames[] = {
11954 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11955 };
11956
11957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11960 arg2 = (int) SWIG_AsInt(obj1);
11961 if (PyErr_Occurred()) SWIG_fail;
11962 arg3 = (int) SWIG_AsInt(obj2);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 arg4 = (int) SWIG_AsInt(obj3);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 arg5 = (int) SWIG_AsInt(obj4);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 if (obj5) {
11969 {
11970 arg6 = &temp6;
11971 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
11972 }
11973 }
11974 if (obj6) {
11975 {
11976 arg7 = &temp7;
11977 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
11978 }
11979 }
11980 if (obj7) {
11981 arg8 = (long) SWIG_AsLong(obj7);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 if (obj8) {
11985 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11986 SWIG_POINTER_EXCEPTION | 0)) == -1)
11987 SWIG_fail;
11988 if (arg9 == NULL) {
11989 PyErr_SetString(PyExc_TypeError,"null reference");
11990 SWIG_fail;
11991 }
11992 }
11993 if (obj9) {
11994 {
11995 arg10 = wxString_in_helper(obj9);
11996 if (arg10 == NULL) SWIG_fail;
11997 temp10 = True;
11998 }
11999 }
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12003
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 }
12007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12008 {
12009 if (temp10)
12010 delete arg10;
12011 }
12012 return resultobj;
12013 fail:
12014 {
12015 if (temp10)
12016 delete arg10;
12017 }
12018 return NULL;
12019 }
12020
12021
12022 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12023 PyObject *resultobj;
12024 wxSlider *result;
12025 char *kwnames[] = {
12026 NULL
12027 };
12028
12029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 result = (wxSlider *)new wxSlider();
12033
12034 wxPyEndAllowThreads(__tstate);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 }
12037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12038 return resultobj;
12039 fail:
12040 return NULL;
12041 }
12042
12043
12044 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12045 PyObject *resultobj;
12046 wxSlider *arg1 = (wxSlider *) 0 ;
12047 wxWindow *arg2 = (wxWindow *) 0 ;
12048 int arg3 ;
12049 int arg4 ;
12050 int arg5 ;
12051 int arg6 ;
12052 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12053 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12054 wxSize const &arg8_defvalue = wxDefaultSize ;
12055 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12056 long arg9 = (long) wxSL_HORIZONTAL ;
12057 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12058 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12059 wxString const &arg11_defvalue = wxPySliderNameStr ;
12060 wxString *arg11 = (wxString *) &arg11_defvalue ;
12061 bool result;
12062 wxPoint temp7 ;
12063 wxSize temp8 ;
12064 bool temp11 = False ;
12065 PyObject * obj0 = 0 ;
12066 PyObject * obj1 = 0 ;
12067 PyObject * obj2 = 0 ;
12068 PyObject * obj3 = 0 ;
12069 PyObject * obj4 = 0 ;
12070 PyObject * obj5 = 0 ;
12071 PyObject * obj6 = 0 ;
12072 PyObject * obj7 = 0 ;
12073 PyObject * obj8 = 0 ;
12074 PyObject * obj9 = 0 ;
12075 PyObject * obj10 = 0 ;
12076 char *kwnames[] = {
12077 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12078 };
12079
12080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12085 arg3 = (int) SWIG_AsInt(obj2);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 arg4 = (int) SWIG_AsInt(obj3);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 arg5 = (int) SWIG_AsInt(obj4);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 arg6 = (int) SWIG_AsInt(obj5);
12092 if (PyErr_Occurred()) SWIG_fail;
12093 if (obj6) {
12094 {
12095 arg7 = &temp7;
12096 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12097 }
12098 }
12099 if (obj7) {
12100 {
12101 arg8 = &temp8;
12102 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12103 }
12104 }
12105 if (obj8) {
12106 arg9 = (long) SWIG_AsLong(obj8);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 if (obj9) {
12110 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12111 SWIG_POINTER_EXCEPTION | 0)) == -1)
12112 SWIG_fail;
12113 if (arg10 == NULL) {
12114 PyErr_SetString(PyExc_TypeError,"null reference");
12115 SWIG_fail;
12116 }
12117 }
12118 if (obj10) {
12119 {
12120 arg11 = wxString_in_helper(obj10);
12121 if (arg11 == NULL) SWIG_fail;
12122 temp11 = True;
12123 }
12124 }
12125 {
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12128
12129 wxPyEndAllowThreads(__tstate);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12133 {
12134 if (temp11)
12135 delete arg11;
12136 }
12137 return resultobj;
12138 fail:
12139 {
12140 if (temp11)
12141 delete arg11;
12142 }
12143 return NULL;
12144 }
12145
12146
12147 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12148 PyObject *resultobj;
12149 wxSlider *arg1 = (wxSlider *) 0 ;
12150 int result;
12151 PyObject * obj0 = 0 ;
12152 char *kwnames[] = {
12153 (char *) "self", NULL
12154 };
12155
12156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12159 {
12160 PyThreadState* __tstate = wxPyBeginAllowThreads();
12161 result = (int)((wxSlider const *)arg1)->GetValue();
12162
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 resultobj = SWIG_FromInt((int)result);
12167 return resultobj;
12168 fail:
12169 return NULL;
12170 }
12171
12172
12173 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12174 PyObject *resultobj;
12175 wxSlider *arg1 = (wxSlider *) 0 ;
12176 int arg2 ;
12177 PyObject * obj0 = 0 ;
12178 PyObject * obj1 = 0 ;
12179 char *kwnames[] = {
12180 (char *) "self",(char *) "value", NULL
12181 };
12182
12183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12186 arg2 = (int) SWIG_AsInt(obj1);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 (arg1)->SetValue(arg2);
12191
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 Py_INCREF(Py_None); resultobj = Py_None;
12196 return resultobj;
12197 fail:
12198 return NULL;
12199 }
12200
12201
12202 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12203 PyObject *resultobj;
12204 wxSlider *arg1 = (wxSlider *) 0 ;
12205 int arg2 ;
12206 int arg3 ;
12207 PyObject * obj0 = 0 ;
12208 PyObject * obj1 = 0 ;
12209 PyObject * obj2 = 0 ;
12210 char *kwnames[] = {
12211 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12212 };
12213
12214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12217 arg2 = (int) SWIG_AsInt(obj1);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 arg3 = (int) SWIG_AsInt(obj2);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 (arg1)->SetRange(arg2,arg3);
12224
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 Py_INCREF(Py_None); resultobj = Py_None;
12229 return resultobj;
12230 fail:
12231 return NULL;
12232 }
12233
12234
12235 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12236 PyObject *resultobj;
12237 wxSlider *arg1 = (wxSlider *) 0 ;
12238 int result;
12239 PyObject * obj0 = 0 ;
12240 char *kwnames[] = {
12241 (char *) "self", NULL
12242 };
12243
12244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
12245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 result = (int)((wxSlider const *)arg1)->GetMin();
12250
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 resultobj = SWIG_FromInt((int)result);
12255 return resultobj;
12256 fail:
12257 return NULL;
12258 }
12259
12260
12261 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12262 PyObject *resultobj;
12263 wxSlider *arg1 = (wxSlider *) 0 ;
12264 int result;
12265 PyObject * obj0 = 0 ;
12266 char *kwnames[] = {
12267 (char *) "self", NULL
12268 };
12269
12270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
12271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 result = (int)((wxSlider const *)arg1)->GetMax();
12276
12277 wxPyEndAllowThreads(__tstate);
12278 if (PyErr_Occurred()) SWIG_fail;
12279 }
12280 resultobj = SWIG_FromInt((int)result);
12281 return resultobj;
12282 fail:
12283 return NULL;
12284 }
12285
12286
12287 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12288 PyObject *resultobj;
12289 wxSlider *arg1 = (wxSlider *) 0 ;
12290 int arg2 ;
12291 PyObject * obj0 = 0 ;
12292 PyObject * obj1 = 0 ;
12293 char *kwnames[] = {
12294 (char *) "self",(char *) "minValue", NULL
12295 };
12296
12297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
12298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12300 arg2 = (int) SWIG_AsInt(obj1);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 {
12303 PyThreadState* __tstate = wxPyBeginAllowThreads();
12304 (arg1)->SetMin(arg2);
12305
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 Py_INCREF(Py_None); resultobj = Py_None;
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12317 PyObject *resultobj;
12318 wxSlider *arg1 = (wxSlider *) 0 ;
12319 int arg2 ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 char *kwnames[] = {
12323 (char *) "self",(char *) "maxValue", NULL
12324 };
12325
12326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
12327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12329 arg2 = (int) SWIG_AsInt(obj1);
12330 if (PyErr_Occurred()) SWIG_fail;
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
12333 (arg1)->SetMax(arg2);
12334
12335 wxPyEndAllowThreads(__tstate);
12336 if (PyErr_Occurred()) SWIG_fail;
12337 }
12338 Py_INCREF(Py_None); resultobj = Py_None;
12339 return resultobj;
12340 fail:
12341 return NULL;
12342 }
12343
12344
12345 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12346 PyObject *resultobj;
12347 wxSlider *arg1 = (wxSlider *) 0 ;
12348 int arg2 ;
12349 PyObject * obj0 = 0 ;
12350 PyObject * obj1 = 0 ;
12351 char *kwnames[] = {
12352 (char *) "self",(char *) "lineSize", NULL
12353 };
12354
12355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
12356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12358 arg2 = (int) SWIG_AsInt(obj1);
12359 if (PyErr_Occurred()) SWIG_fail;
12360 {
12361 PyThreadState* __tstate = wxPyBeginAllowThreads();
12362 (arg1)->SetLineSize(arg2);
12363
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 Py_INCREF(Py_None); resultobj = Py_None;
12368 return resultobj;
12369 fail:
12370 return NULL;
12371 }
12372
12373
12374 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12375 PyObject *resultobj;
12376 wxSlider *arg1 = (wxSlider *) 0 ;
12377 int arg2 ;
12378 PyObject * obj0 = 0 ;
12379 PyObject * obj1 = 0 ;
12380 char *kwnames[] = {
12381 (char *) "self",(char *) "pageSize", NULL
12382 };
12383
12384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
12385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12387 arg2 = (int) SWIG_AsInt(obj1);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 {
12390 PyThreadState* __tstate = wxPyBeginAllowThreads();
12391 (arg1)->SetPageSize(arg2);
12392
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 Py_INCREF(Py_None); resultobj = Py_None;
12397 return resultobj;
12398 fail:
12399 return NULL;
12400 }
12401
12402
12403 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12404 PyObject *resultobj;
12405 wxSlider *arg1 = (wxSlider *) 0 ;
12406 int result;
12407 PyObject * obj0 = 0 ;
12408 char *kwnames[] = {
12409 (char *) "self", NULL
12410 };
12411
12412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
12413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 result = (int)((wxSlider const *)arg1)->GetLineSize();
12418
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 resultobj = SWIG_FromInt((int)result);
12423 return resultobj;
12424 fail:
12425 return NULL;
12426 }
12427
12428
12429 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12430 PyObject *resultobj;
12431 wxSlider *arg1 = (wxSlider *) 0 ;
12432 int result;
12433 PyObject * obj0 = 0 ;
12434 char *kwnames[] = {
12435 (char *) "self", NULL
12436 };
12437
12438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
12439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 result = (int)((wxSlider const *)arg1)->GetPageSize();
12444
12445 wxPyEndAllowThreads(__tstate);
12446 if (PyErr_Occurred()) SWIG_fail;
12447 }
12448 resultobj = SWIG_FromInt((int)result);
12449 return resultobj;
12450 fail:
12451 return NULL;
12452 }
12453
12454
12455 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12456 PyObject *resultobj;
12457 wxSlider *arg1 = (wxSlider *) 0 ;
12458 int arg2 ;
12459 PyObject * obj0 = 0 ;
12460 PyObject * obj1 = 0 ;
12461 char *kwnames[] = {
12462 (char *) "self",(char *) "lenPixels", NULL
12463 };
12464
12465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
12466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12468 arg2 = (int) SWIG_AsInt(obj1);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 (arg1)->SetThumbLength(arg2);
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 Py_INCREF(Py_None); resultobj = Py_None;
12478 return resultobj;
12479 fail:
12480 return NULL;
12481 }
12482
12483
12484 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12485 PyObject *resultobj;
12486 wxSlider *arg1 = (wxSlider *) 0 ;
12487 int result;
12488 PyObject * obj0 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = (int)((wxSlider const *)arg1)->GetThumbLength();
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 resultobj = SWIG_FromInt((int)result);
12504 return resultobj;
12505 fail:
12506 return NULL;
12507 }
12508
12509
12510 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxSlider *arg1 = (wxSlider *) 0 ;
12513 int arg2 ;
12514 int arg3 = (int) 1 ;
12515 PyObject * obj0 = 0 ;
12516 PyObject * obj1 = 0 ;
12517 PyObject * obj2 = 0 ;
12518 char *kwnames[] = {
12519 (char *) "self",(char *) "n",(char *) "pos", NULL
12520 };
12521
12522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
12523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12525 arg2 = (int) SWIG_AsInt(obj1);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 if (obj2) {
12528 arg3 = (int) SWIG_AsInt(obj2);
12529 if (PyErr_Occurred()) SWIG_fail;
12530 }
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->SetTickFreq(arg2,arg3);
12534
12535 wxPyEndAllowThreads(__tstate);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 }
12538 Py_INCREF(Py_None); resultobj = Py_None;
12539 return resultobj;
12540 fail:
12541 return NULL;
12542 }
12543
12544
12545 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12546 PyObject *resultobj;
12547 wxSlider *arg1 = (wxSlider *) 0 ;
12548 int result;
12549 PyObject * obj0 = 0 ;
12550 char *kwnames[] = {
12551 (char *) "self", NULL
12552 };
12553
12554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
12555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 result = (int)((wxSlider const *)arg1)->GetTickFreq();
12560
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = SWIG_FromInt((int)result);
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj;
12573 wxSlider *arg1 = (wxSlider *) 0 ;
12574 PyObject * obj0 = 0 ;
12575 char *kwnames[] = {
12576 (char *) "self", NULL
12577 };
12578
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
12580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12582 {
12583 PyThreadState* __tstate = wxPyBeginAllowThreads();
12584 (arg1)->ClearTicks();
12585
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 Py_INCREF(Py_None); resultobj = Py_None;
12590 return resultobj;
12591 fail:
12592 return NULL;
12593 }
12594
12595
12596 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
12597 PyObject *resultobj;
12598 wxSlider *arg1 = (wxSlider *) 0 ;
12599 int arg2 ;
12600 PyObject * obj0 = 0 ;
12601 PyObject * obj1 = 0 ;
12602 char *kwnames[] = {
12603 (char *) "self",(char *) "tickPos", NULL
12604 };
12605
12606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
12607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12609 arg2 = (int) SWIG_AsInt(obj1);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 (arg1)->SetTick(arg2);
12614
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 Py_INCREF(Py_None); resultobj = Py_None;
12619 return resultobj;
12620 fail:
12621 return NULL;
12622 }
12623
12624
12625 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
12626 PyObject *resultobj;
12627 wxSlider *arg1 = (wxSlider *) 0 ;
12628 PyObject * obj0 = 0 ;
12629 char *kwnames[] = {
12630 (char *) "self", NULL
12631 };
12632
12633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
12634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 (arg1)->ClearSel();
12639
12640 wxPyEndAllowThreads(__tstate);
12641 if (PyErr_Occurred()) SWIG_fail;
12642 }
12643 Py_INCREF(Py_None); resultobj = Py_None;
12644 return resultobj;
12645 fail:
12646 return NULL;
12647 }
12648
12649
12650 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
12651 PyObject *resultobj;
12652 wxSlider *arg1 = (wxSlider *) 0 ;
12653 int result;
12654 PyObject * obj0 = 0 ;
12655 char *kwnames[] = {
12656 (char *) "self", NULL
12657 };
12658
12659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
12660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12662 {
12663 PyThreadState* __tstate = wxPyBeginAllowThreads();
12664 result = (int)((wxSlider const *)arg1)->GetSelEnd();
12665
12666 wxPyEndAllowThreads(__tstate);
12667 if (PyErr_Occurred()) SWIG_fail;
12668 }
12669 resultobj = SWIG_FromInt((int)result);
12670 return resultobj;
12671 fail:
12672 return NULL;
12673 }
12674
12675
12676 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
12677 PyObject *resultobj;
12678 wxSlider *arg1 = (wxSlider *) 0 ;
12679 int result;
12680 PyObject * obj0 = 0 ;
12681 char *kwnames[] = {
12682 (char *) "self", NULL
12683 };
12684
12685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
12686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 result = (int)((wxSlider const *)arg1)->GetSelStart();
12691
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 resultobj = SWIG_FromInt((int)result);
12696 return resultobj;
12697 fail:
12698 return NULL;
12699 }
12700
12701
12702 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12703 PyObject *resultobj;
12704 wxSlider *arg1 = (wxSlider *) 0 ;
12705 int arg2 ;
12706 int arg3 ;
12707 PyObject * obj0 = 0 ;
12708 PyObject * obj1 = 0 ;
12709 PyObject * obj2 = 0 ;
12710 char *kwnames[] = {
12711 (char *) "self",(char *) "min",(char *) "max", NULL
12712 };
12713
12714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
12715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12717 arg2 = (int) SWIG_AsInt(obj1);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 arg3 = (int) SWIG_AsInt(obj2);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 {
12722 PyThreadState* __tstate = wxPyBeginAllowThreads();
12723 (arg1)->SetSelection(arg2,arg3);
12724
12725 wxPyEndAllowThreads(__tstate);
12726 if (PyErr_Occurred()) SWIG_fail;
12727 }
12728 Py_INCREF(Py_None); resultobj = Py_None;
12729 return resultobj;
12730 fail:
12731 return NULL;
12732 }
12733
12734
12735 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
12736 PyObject *obj;
12737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12738 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
12739 Py_INCREF(obj);
12740 return Py_BuildValue((char *)"");
12741 }
12742 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
12743 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
12744 return 1;
12745 }
12746
12747
12748 static PyObject *_wrap_ToggleButtonNameStr_get() {
12749 PyObject *pyobj;
12750
12751 {
12752 #if wxUSE_UNICODE
12753 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12754 #else
12755 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12756 #endif
12757 }
12758 return pyobj;
12759 }
12760
12761
12762 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12763 PyObject *resultobj;
12764 wxWindow *arg1 = (wxWindow *) 0 ;
12765 int arg2 ;
12766 wxString *arg3 = 0 ;
12767 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12768 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12769 wxSize const &arg5_defvalue = wxDefaultSize ;
12770 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12771 long arg6 = (long) 0 ;
12772 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12773 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12774 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
12775 wxString *arg8 = (wxString *) &arg8_defvalue ;
12776 wxToggleButton *result;
12777 bool temp3 = False ;
12778 wxPoint temp4 ;
12779 wxSize temp5 ;
12780 bool temp8 = False ;
12781 PyObject * obj0 = 0 ;
12782 PyObject * obj1 = 0 ;
12783 PyObject * obj2 = 0 ;
12784 PyObject * obj3 = 0 ;
12785 PyObject * obj4 = 0 ;
12786 PyObject * obj5 = 0 ;
12787 PyObject * obj6 = 0 ;
12788 PyObject * obj7 = 0 ;
12789 char *kwnames[] = {
12790 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12791 };
12792
12793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12796 arg2 = (int) SWIG_AsInt(obj1);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 {
12799 arg3 = wxString_in_helper(obj2);
12800 if (arg3 == NULL) SWIG_fail;
12801 temp3 = True;
12802 }
12803 if (obj3) {
12804 {
12805 arg4 = &temp4;
12806 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12807 }
12808 }
12809 if (obj4) {
12810 {
12811 arg5 = &temp5;
12812 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12813 }
12814 }
12815 if (obj5) {
12816 arg6 = (long) SWIG_AsLong(obj5);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 if (obj6) {
12820 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12821 SWIG_POINTER_EXCEPTION | 0)) == -1)
12822 SWIG_fail;
12823 if (arg7 == NULL) {
12824 PyErr_SetString(PyExc_TypeError,"null reference");
12825 SWIG_fail;
12826 }
12827 }
12828 if (obj7) {
12829 {
12830 arg8 = wxString_in_helper(obj7);
12831 if (arg8 == NULL) SWIG_fail;
12832 temp8 = True;
12833 }
12834 }
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12838
12839 wxPyEndAllowThreads(__tstate);
12840 if (PyErr_Occurred()) SWIG_fail;
12841 }
12842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
12843 {
12844 if (temp3)
12845 delete arg3;
12846 }
12847 {
12848 if (temp8)
12849 delete arg8;
12850 }
12851 return resultobj;
12852 fail:
12853 {
12854 if (temp3)
12855 delete arg3;
12856 }
12857 {
12858 if (temp8)
12859 delete arg8;
12860 }
12861 return NULL;
12862 }
12863
12864
12865 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj;
12867 wxToggleButton *result;
12868 char *kwnames[] = {
12869 NULL
12870 };
12871
12872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = (wxToggleButton *)new wxToggleButton();
12876
12877 wxPyEndAllowThreads(__tstate);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
12881 return resultobj;
12882 fail:
12883 return NULL;
12884 }
12885
12886
12887 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12888 PyObject *resultobj;
12889 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12890 wxWindow *arg2 = (wxWindow *) 0 ;
12891 int arg3 ;
12892 wxString *arg4 = 0 ;
12893 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12894 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12895 wxSize const &arg6_defvalue = wxDefaultSize ;
12896 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12897 long arg7 = (long) 0 ;
12898 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12899 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12900 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
12901 wxString *arg9 = (wxString *) &arg9_defvalue ;
12902 bool result;
12903 bool temp4 = False ;
12904 wxPoint temp5 ;
12905 wxSize temp6 ;
12906 bool temp9 = False ;
12907 PyObject * obj0 = 0 ;
12908 PyObject * obj1 = 0 ;
12909 PyObject * obj2 = 0 ;
12910 PyObject * obj3 = 0 ;
12911 PyObject * obj4 = 0 ;
12912 PyObject * obj5 = 0 ;
12913 PyObject * obj6 = 0 ;
12914 PyObject * obj7 = 0 ;
12915 PyObject * obj8 = 0 ;
12916 char *kwnames[] = {
12917 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12918 };
12919
12920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
12922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12925 arg3 = (int) SWIG_AsInt(obj2);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 {
12928 arg4 = wxString_in_helper(obj3);
12929 if (arg4 == NULL) SWIG_fail;
12930 temp4 = True;
12931 }
12932 if (obj4) {
12933 {
12934 arg5 = &temp5;
12935 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12936 }
12937 }
12938 if (obj5) {
12939 {
12940 arg6 = &temp6;
12941 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12942 }
12943 }
12944 if (obj6) {
12945 arg7 = (long) SWIG_AsLong(obj6);
12946 if (PyErr_Occurred()) SWIG_fail;
12947 }
12948 if (obj7) {
12949 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12950 SWIG_POINTER_EXCEPTION | 0)) == -1)
12951 SWIG_fail;
12952 if (arg8 == NULL) {
12953 PyErr_SetString(PyExc_TypeError,"null reference");
12954 SWIG_fail;
12955 }
12956 }
12957 if (obj8) {
12958 {
12959 arg9 = wxString_in_helper(obj8);
12960 if (arg9 == NULL) SWIG_fail;
12961 temp9 = True;
12962 }
12963 }
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12967
12968 wxPyEndAllowThreads(__tstate);
12969 if (PyErr_Occurred()) SWIG_fail;
12970 }
12971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12972 {
12973 if (temp4)
12974 delete arg4;
12975 }
12976 {
12977 if (temp9)
12978 delete arg9;
12979 }
12980 return resultobj;
12981 fail:
12982 {
12983 if (temp4)
12984 delete arg4;
12985 }
12986 {
12987 if (temp9)
12988 delete arg9;
12989 }
12990 return NULL;
12991 }
12992
12993
12994 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12995 PyObject *resultobj;
12996 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12997 bool arg2 ;
12998 PyObject * obj0 = 0 ;
12999 PyObject * obj1 = 0 ;
13000 char *kwnames[] = {
13001 (char *) "self",(char *) "value", NULL
13002 };
13003
13004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13007 arg2 = (bool) SWIG_AsBool(obj1);
13008 if (PyErr_Occurred()) SWIG_fail;
13009 {
13010 PyThreadState* __tstate = wxPyBeginAllowThreads();
13011 (arg1)->SetValue(arg2);
13012
13013 wxPyEndAllowThreads(__tstate);
13014 if (PyErr_Occurred()) SWIG_fail;
13015 }
13016 Py_INCREF(Py_None); resultobj = Py_None;
13017 return resultobj;
13018 fail:
13019 return NULL;
13020 }
13021
13022
13023 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13024 PyObject *resultobj;
13025 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13026 bool result;
13027 PyObject * obj0 = 0 ;
13028 char *kwnames[] = {
13029 (char *) "self", NULL
13030 };
13031
13032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13035 {
13036 PyThreadState* __tstate = wxPyBeginAllowThreads();
13037 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13038
13039 wxPyEndAllowThreads(__tstate);
13040 if (PyErr_Occurred()) SWIG_fail;
13041 }
13042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13043 return resultobj;
13044 fail:
13045 return NULL;
13046 }
13047
13048
13049 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13050 PyObject *resultobj;
13051 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13052 wxString *arg2 = 0 ;
13053 bool temp2 = False ;
13054 PyObject * obj0 = 0 ;
13055 PyObject * obj1 = 0 ;
13056 char *kwnames[] = {
13057 (char *) "self",(char *) "label", NULL
13058 };
13059
13060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13063 {
13064 arg2 = wxString_in_helper(obj1);
13065 if (arg2 == NULL) SWIG_fail;
13066 temp2 = True;
13067 }
13068 {
13069 PyThreadState* __tstate = wxPyBeginAllowThreads();
13070 (arg1)->SetLabel((wxString const &)*arg2);
13071
13072 wxPyEndAllowThreads(__tstate);
13073 if (PyErr_Occurred()) SWIG_fail;
13074 }
13075 Py_INCREF(Py_None); resultobj = Py_None;
13076 {
13077 if (temp2)
13078 delete arg2;
13079 }
13080 return resultobj;
13081 fail:
13082 {
13083 if (temp2)
13084 delete arg2;
13085 }
13086 return NULL;
13087 }
13088
13089
13090 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13091 PyObject *obj;
13092 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13093 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13094 Py_INCREF(obj);
13095 return Py_BuildValue((char *)"");
13096 }
13097 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
13098 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13099 return 1;
13100 }
13101
13102
13103 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13104 PyObject *pyobj;
13105
13106 {
13107 #if wxUSE_UNICODE
13108 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13109 #else
13110 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13111 #endif
13112 }
13113 return pyobj;
13114 }
13115
13116
13117 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13118 PyObject *resultobj;
13119 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13120 size_t result;
13121 PyObject * obj0 = 0 ;
13122 char *kwnames[] = {
13123 (char *) "self", NULL
13124 };
13125
13126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13132
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
13137 return resultobj;
13138 fail:
13139 return NULL;
13140 }
13141
13142
13143 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13144 PyObject *resultobj;
13145 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13146 size_t arg2 ;
13147 wxWindow *result;
13148 PyObject * obj0 = 0 ;
13149 PyObject * obj1 = 0 ;
13150 char *kwnames[] = {
13151 (char *) "self",(char *) "n", NULL
13152 };
13153
13154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13157 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13158 if (PyErr_Occurred()) SWIG_fail;
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = (wxWindow *)(arg1)->GetPage(arg2);
13162
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 {
13167 resultobj = wxPyMake_wxObject(result);
13168 }
13169 return resultobj;
13170 fail:
13171 return NULL;
13172 }
13173
13174
13175 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13176 PyObject *resultobj;
13177 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13178 int result;
13179 PyObject * obj0 = 0 ;
13180 char *kwnames[] = {
13181 (char *) "self", NULL
13182 };
13183
13184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
13185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13187 {
13188 PyThreadState* __tstate = wxPyBeginAllowThreads();
13189 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
13190
13191 wxPyEndAllowThreads(__tstate);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 }
13194 resultobj = SWIG_FromInt((int)result);
13195 return resultobj;
13196 fail:
13197 return NULL;
13198 }
13199
13200
13201 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13202 PyObject *resultobj;
13203 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13204 size_t arg2 ;
13205 wxString *arg3 = 0 ;
13206 bool result;
13207 bool temp3 = False ;
13208 PyObject * obj0 = 0 ;
13209 PyObject * obj1 = 0 ;
13210 PyObject * obj2 = 0 ;
13211 char *kwnames[] = {
13212 (char *) "self",(char *) "n",(char *) "strText", NULL
13213 };
13214
13215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
13216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13218 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13219 if (PyErr_Occurred()) SWIG_fail;
13220 {
13221 arg3 = wxString_in_helper(obj2);
13222 if (arg3 == NULL) SWIG_fail;
13223 temp3 = True;
13224 }
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
13228
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13233 {
13234 if (temp3)
13235 delete arg3;
13236 }
13237 return resultobj;
13238 fail:
13239 {
13240 if (temp3)
13241 delete arg3;
13242 }
13243 return NULL;
13244 }
13245
13246
13247 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13248 PyObject *resultobj;
13249 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13250 size_t arg2 ;
13251 wxString result;
13252 PyObject * obj0 = 0 ;
13253 PyObject * obj1 = 0 ;
13254 char *kwnames[] = {
13255 (char *) "self",(char *) "n", NULL
13256 };
13257
13258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
13259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13261 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13262 if (PyErr_Occurred()) SWIG_fail;
13263 {
13264 PyThreadState* __tstate = wxPyBeginAllowThreads();
13265 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
13266
13267 wxPyEndAllowThreads(__tstate);
13268 if (PyErr_Occurred()) SWIG_fail;
13269 }
13270 {
13271 #if wxUSE_UNICODE
13272 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13273 #else
13274 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13275 #endif
13276 }
13277 return resultobj;
13278 fail:
13279 return NULL;
13280 }
13281
13282
13283 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13284 PyObject *resultobj;
13285 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13286 wxImageList *arg2 = (wxImageList *) 0 ;
13287 PyObject * obj0 = 0 ;
13288 PyObject * obj1 = 0 ;
13289 char *kwnames[] = {
13290 (char *) "self",(char *) "imageList", NULL
13291 };
13292
13293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
13294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
13297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 (arg1)->SetImageList(arg2);
13301
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 Py_INCREF(Py_None); resultobj = Py_None;
13306 return resultobj;
13307 fail:
13308 return NULL;
13309 }
13310
13311
13312 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13313 PyObject *resultobj;
13314 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13315 wxImageList *arg2 = (wxImageList *) 0 ;
13316 PyObject * obj0 = 0 ;
13317 PyObject * obj1 = 0 ;
13318 char *kwnames[] = {
13319 (char *) "self",(char *) "imageList", NULL
13320 };
13321
13322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
13323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
13326 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 (arg1)->AssignImageList(arg2);
13330
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 Py_INCREF(Py_None); resultobj = Py_None;
13335 return resultobj;
13336 fail:
13337 return NULL;
13338 }
13339
13340
13341 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13342 PyObject *resultobj;
13343 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13344 wxImageList *result;
13345 PyObject * obj0 = 0 ;
13346 char *kwnames[] = {
13347 (char *) "self", NULL
13348 };
13349
13350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
13351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
13356
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 {
13361 resultobj = wxPyMake_wxObject(result);
13362 }
13363 return resultobj;
13364 fail:
13365 return NULL;
13366 }
13367
13368
13369 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13370 PyObject *resultobj;
13371 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13372 size_t arg2 ;
13373 int result;
13374 PyObject * obj0 = 0 ;
13375 PyObject * obj1 = 0 ;
13376 char *kwnames[] = {
13377 (char *) "self",(char *) "n", NULL
13378 };
13379
13380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
13381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13383 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13384 if (PyErr_Occurred()) SWIG_fail;
13385 {
13386 PyThreadState* __tstate = wxPyBeginAllowThreads();
13387 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
13388
13389 wxPyEndAllowThreads(__tstate);
13390 if (PyErr_Occurred()) SWIG_fail;
13391 }
13392 resultobj = SWIG_FromInt((int)result);
13393 return resultobj;
13394 fail:
13395 return NULL;
13396 }
13397
13398
13399 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13400 PyObject *resultobj;
13401 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13402 size_t arg2 ;
13403 int arg3 ;
13404 bool result;
13405 PyObject * obj0 = 0 ;
13406 PyObject * obj1 = 0 ;
13407 PyObject * obj2 = 0 ;
13408 char *kwnames[] = {
13409 (char *) "self",(char *) "n",(char *) "imageId", NULL
13410 };
13411
13412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
13413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13415 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 arg3 = (int) SWIG_AsInt(obj2);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 {
13420 PyThreadState* __tstate = wxPyBeginAllowThreads();
13421 result = (bool)(arg1)->SetPageImage(arg2,arg3);
13422
13423 wxPyEndAllowThreads(__tstate);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13427 return resultobj;
13428 fail:
13429 return NULL;
13430 }
13431
13432
13433 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13434 PyObject *resultobj;
13435 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13436 wxSize *arg2 = 0 ;
13437 wxSize temp2 ;
13438 PyObject * obj0 = 0 ;
13439 PyObject * obj1 = 0 ;
13440 char *kwnames[] = {
13441 (char *) "self",(char *) "size", NULL
13442 };
13443
13444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13447 {
13448 arg2 = &temp2;
13449 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13450 }
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 (arg1)->SetPageSize((wxSize const &)*arg2);
13454
13455 wxPyEndAllowThreads(__tstate);
13456 if (PyErr_Occurred()) SWIG_fail;
13457 }
13458 Py_INCREF(Py_None); resultobj = Py_None;
13459 return resultobj;
13460 fail:
13461 return NULL;
13462 }
13463
13464
13465 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13466 PyObject *resultobj;
13467 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13468 wxSize *arg2 = 0 ;
13469 wxSize result;
13470 wxSize temp2 ;
13471 PyObject * obj0 = 0 ;
13472 PyObject * obj1 = 0 ;
13473 char *kwnames[] = {
13474 (char *) "self",(char *) "sizePage", NULL
13475 };
13476
13477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
13478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13480 {
13481 arg2 = &temp2;
13482 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13483 }
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
13487
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 {
13492 wxSize * resultptr;
13493 resultptr = new wxSize((wxSize &) result);
13494 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13495 }
13496 return resultobj;
13497 fail:
13498 return NULL;
13499 }
13500
13501
13502 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13503 PyObject *resultobj;
13504 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13505 size_t arg2 ;
13506 bool result;
13507 PyObject * obj0 = 0 ;
13508 PyObject * obj1 = 0 ;
13509 char *kwnames[] = {
13510 (char *) "self",(char *) "n", NULL
13511 };
13512
13513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
13514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13516 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 result = (bool)(arg1)->DeletePage(arg2);
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj;
13534 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13535 size_t arg2 ;
13536 bool result;
13537 PyObject * obj0 = 0 ;
13538 PyObject * obj1 = 0 ;
13539 char *kwnames[] = {
13540 (char *) "self",(char *) "n", NULL
13541 };
13542
13543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
13544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13546 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13547 if (PyErr_Occurred()) SWIG_fail;
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 result = (bool)(arg1)->RemovePage(arg2);
13551
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj;
13564 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13565 bool result;
13566 PyObject * obj0 = 0 ;
13567 char *kwnames[] = {
13568 (char *) "self", NULL
13569 };
13570
13571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
13572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 result = (bool)(arg1)->DeleteAllPages();
13577
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13582 return resultobj;
13583 fail:
13584 return NULL;
13585 }
13586
13587
13588 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13589 PyObject *resultobj;
13590 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13591 wxWindow *arg2 = (wxWindow *) 0 ;
13592 wxString *arg3 = 0 ;
13593 bool arg4 = (bool) False ;
13594 int arg5 = (int) -1 ;
13595 bool result;
13596 bool temp3 = False ;
13597 PyObject * obj0 = 0 ;
13598 PyObject * obj1 = 0 ;
13599 PyObject * obj2 = 0 ;
13600 PyObject * obj3 = 0 ;
13601 PyObject * obj4 = 0 ;
13602 char *kwnames[] = {
13603 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13604 };
13605
13606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13609 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13611 {
13612 arg3 = wxString_in_helper(obj2);
13613 if (arg3 == NULL) SWIG_fail;
13614 temp3 = True;
13615 }
13616 if (obj3) {
13617 arg4 = (bool) SWIG_AsBool(obj3);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 if (obj4) {
13621 arg5 = (int) SWIG_AsInt(obj4);
13622 if (PyErr_Occurred()) SWIG_fail;
13623 }
13624 {
13625 PyThreadState* __tstate = wxPyBeginAllowThreads();
13626 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
13627
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13632 {
13633 if (temp3)
13634 delete arg3;
13635 }
13636 return resultobj;
13637 fail:
13638 {
13639 if (temp3)
13640 delete arg3;
13641 }
13642 return NULL;
13643 }
13644
13645
13646 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj;
13648 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13649 size_t arg2 ;
13650 wxWindow *arg3 = (wxWindow *) 0 ;
13651 wxString *arg4 = 0 ;
13652 bool arg5 = (bool) False ;
13653 int arg6 = (int) -1 ;
13654 bool result;
13655 bool temp4 = False ;
13656 PyObject * obj0 = 0 ;
13657 PyObject * obj1 = 0 ;
13658 PyObject * obj2 = 0 ;
13659 PyObject * obj3 = 0 ;
13660 PyObject * obj4 = 0 ;
13661 PyObject * obj5 = 0 ;
13662 char *kwnames[] = {
13663 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13664 };
13665
13666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13669 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
13672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13673 {
13674 arg4 = wxString_in_helper(obj3);
13675 if (arg4 == NULL) SWIG_fail;
13676 temp4 = True;
13677 }
13678 if (obj4) {
13679 arg5 = (bool) SWIG_AsBool(obj4);
13680 if (PyErr_Occurred()) SWIG_fail;
13681 }
13682 if (obj5) {
13683 arg6 = (int) SWIG_AsInt(obj5);
13684 if (PyErr_Occurred()) SWIG_fail;
13685 }
13686 {
13687 PyThreadState* __tstate = wxPyBeginAllowThreads();
13688 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
13689
13690 wxPyEndAllowThreads(__tstate);
13691 if (PyErr_Occurred()) SWIG_fail;
13692 }
13693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13694 {
13695 if (temp4)
13696 delete arg4;
13697 }
13698 return resultobj;
13699 fail:
13700 {
13701 if (temp4)
13702 delete arg4;
13703 }
13704 return NULL;
13705 }
13706
13707
13708 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13709 PyObject *resultobj;
13710 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13711 size_t arg2 ;
13712 int result;
13713 PyObject * obj0 = 0 ;
13714 PyObject * obj1 = 0 ;
13715 char *kwnames[] = {
13716 (char *) "self",(char *) "n", NULL
13717 };
13718
13719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13722 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13723 if (PyErr_Occurred()) SWIG_fail;
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 result = (int)(arg1)->SetSelection(arg2);
13727
13728 wxPyEndAllowThreads(__tstate);
13729 if (PyErr_Occurred()) SWIG_fail;
13730 }
13731 resultobj = SWIG_FromInt((int)result);
13732 return resultobj;
13733 fail:
13734 return NULL;
13735 }
13736
13737
13738 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13739 PyObject *resultobj;
13740 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13741 bool arg2 = (bool) True ;
13742 PyObject * obj0 = 0 ;
13743 PyObject * obj1 = 0 ;
13744 char *kwnames[] = {
13745 (char *) "self",(char *) "forward", NULL
13746 };
13747
13748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
13749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13751 if (obj1) {
13752 arg2 = (bool) SWIG_AsBool(obj1);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 {
13756 PyThreadState* __tstate = wxPyBeginAllowThreads();
13757 (arg1)->AdvanceSelection(arg2);
13758
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 Py_INCREF(Py_None); resultobj = Py_None;
13763 return resultobj;
13764 fail:
13765 return NULL;
13766 }
13767
13768
13769 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
13770 PyObject *obj;
13771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13772 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
13773 Py_INCREF(obj);
13774 return Py_BuildValue((char *)"");
13775 }
13776 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13777 PyObject *resultobj;
13778 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13779 int arg2 = (int) 0 ;
13780 int arg3 = (int) -1 ;
13781 int arg4 = (int) -1 ;
13782 wxBookCtrlEvent *result;
13783 PyObject * obj0 = 0 ;
13784 PyObject * obj1 = 0 ;
13785 PyObject * obj2 = 0 ;
13786 PyObject * obj3 = 0 ;
13787 char *kwnames[] = {
13788 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
13789 };
13790
13791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13792 if (obj0) {
13793 arg1 = (wxEventType) SWIG_AsInt(obj0);
13794 if (PyErr_Occurred()) SWIG_fail;
13795 }
13796 if (obj1) {
13797 arg2 = (int) SWIG_AsInt(obj1);
13798 if (PyErr_Occurred()) SWIG_fail;
13799 }
13800 if (obj2) {
13801 arg3 = (int) SWIG_AsInt(obj2);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 }
13804 if (obj3) {
13805 arg4 = (int) SWIG_AsInt(obj3);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 {
13809 PyThreadState* __tstate = wxPyBeginAllowThreads();
13810 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
13811
13812 wxPyEndAllowThreads(__tstate);
13813 if (PyErr_Occurred()) SWIG_fail;
13814 }
13815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
13816 return resultobj;
13817 fail:
13818 return NULL;
13819 }
13820
13821
13822 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13823 PyObject *resultobj;
13824 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13825 int result;
13826 PyObject * obj0 = 0 ;
13827 char *kwnames[] = {
13828 (char *) "self", NULL
13829 };
13830
13831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
13832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13834 {
13835 PyThreadState* __tstate = wxPyBeginAllowThreads();
13836 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
13837
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 resultobj = SWIG_FromInt((int)result);
13842 return resultobj;
13843 fail:
13844 return NULL;
13845 }
13846
13847
13848 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj;
13850 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13851 int arg2 ;
13852 PyObject * obj0 = 0 ;
13853 PyObject * obj1 = 0 ;
13854 char *kwnames[] = {
13855 (char *) "self",(char *) "nSel", NULL
13856 };
13857
13858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13861 arg2 = (int) SWIG_AsInt(obj1);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 (arg1)->SetSelection(arg2);
13866
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 Py_INCREF(Py_None); resultobj = Py_None;
13871 return resultobj;
13872 fail:
13873 return NULL;
13874 }
13875
13876
13877 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj;
13879 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13880 int result;
13881 PyObject * obj0 = 0 ;
13882 char *kwnames[] = {
13883 (char *) "self", NULL
13884 };
13885
13886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
13887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13889 {
13890 PyThreadState* __tstate = wxPyBeginAllowThreads();
13891 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
13892
13893 wxPyEndAllowThreads(__tstate);
13894 if (PyErr_Occurred()) SWIG_fail;
13895 }
13896 resultobj = SWIG_FromInt((int)result);
13897 return resultobj;
13898 fail:
13899 return NULL;
13900 }
13901
13902
13903 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13904 PyObject *resultobj;
13905 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13906 int arg2 ;
13907 PyObject * obj0 = 0 ;
13908 PyObject * obj1 = 0 ;
13909 char *kwnames[] = {
13910 (char *) "self",(char *) "nOldSel", NULL
13911 };
13912
13913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
13914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
13915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13916 arg2 = (int) SWIG_AsInt(obj1);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 (arg1)->SetOldSelection(arg2);
13921
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 Py_INCREF(Py_None); resultobj = Py_None;
13926 return resultobj;
13927 fail:
13928 return NULL;
13929 }
13930
13931
13932 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
13933 PyObject *obj;
13934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13935 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
13936 Py_INCREF(obj);
13937 return Py_BuildValue((char *)"");
13938 }
13939 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
13940 PyObject *resultobj;
13941 wxWindow *arg1 = (wxWindow *) 0 ;
13942 int arg2 ;
13943 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13944 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13945 wxSize const &arg4_defvalue = wxDefaultSize ;
13946 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13947 long arg5 = (long) 0 ;
13948 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
13949 wxString *arg6 = (wxString *) &arg6_defvalue ;
13950 wxNotebook *result;
13951 wxPoint temp3 ;
13952 wxSize temp4 ;
13953 bool temp6 = False ;
13954 PyObject * obj0 = 0 ;
13955 PyObject * obj1 = 0 ;
13956 PyObject * obj2 = 0 ;
13957 PyObject * obj3 = 0 ;
13958 PyObject * obj4 = 0 ;
13959 PyObject * obj5 = 0 ;
13960 char *kwnames[] = {
13961 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
13962 };
13963
13964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13967 arg2 = (int) SWIG_AsInt(obj1);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 if (obj2) {
13970 {
13971 arg3 = &temp3;
13972 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13973 }
13974 }
13975 if (obj3) {
13976 {
13977 arg4 = &temp4;
13978 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
13979 }
13980 }
13981 if (obj4) {
13982 arg5 = (long) SWIG_AsLong(obj4);
13983 if (PyErr_Occurred()) SWIG_fail;
13984 }
13985 if (obj5) {
13986 {
13987 arg6 = wxString_in_helper(obj5);
13988 if (arg6 == NULL) SWIG_fail;
13989 temp6 = True;
13990 }
13991 }
13992 {
13993 PyThreadState* __tstate = wxPyBeginAllowThreads();
13994 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
13995
13996 wxPyEndAllowThreads(__tstate);
13997 if (PyErr_Occurred()) SWIG_fail;
13998 }
13999 {
14000 resultobj = wxPyMake_wxObject(result);
14001 }
14002 {
14003 if (temp6)
14004 delete arg6;
14005 }
14006 return resultobj;
14007 fail:
14008 {
14009 if (temp6)
14010 delete arg6;
14011 }
14012 return NULL;
14013 }
14014
14015
14016 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14017 PyObject *resultobj;
14018 wxNotebook *result;
14019 char *kwnames[] = {
14020 NULL
14021 };
14022
14023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14024 {
14025 PyThreadState* __tstate = wxPyBeginAllowThreads();
14026 result = (wxNotebook *)new wxNotebook();
14027
14028 wxPyEndAllowThreads(__tstate);
14029 if (PyErr_Occurred()) SWIG_fail;
14030 }
14031 {
14032 resultobj = wxPyMake_wxObject(result);
14033 }
14034 return resultobj;
14035 fail:
14036 return NULL;
14037 }
14038
14039
14040 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14041 PyObject *resultobj;
14042 wxNotebook *arg1 = (wxNotebook *) 0 ;
14043 wxWindow *arg2 = (wxWindow *) 0 ;
14044 int arg3 ;
14045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14047 wxSize const &arg5_defvalue = wxDefaultSize ;
14048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14049 long arg6 = (long) 0 ;
14050 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14051 wxString *arg7 = (wxString *) &arg7_defvalue ;
14052 bool result;
14053 wxPoint temp4 ;
14054 wxSize temp5 ;
14055 bool temp7 = False ;
14056 PyObject * obj0 = 0 ;
14057 PyObject * obj1 = 0 ;
14058 PyObject * obj2 = 0 ;
14059 PyObject * obj3 = 0 ;
14060 PyObject * obj4 = 0 ;
14061 PyObject * obj5 = 0 ;
14062 PyObject * obj6 = 0 ;
14063 char *kwnames[] = {
14064 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14065 };
14066
14067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14070 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14072 arg3 = (int) SWIG_AsInt(obj2);
14073 if (PyErr_Occurred()) SWIG_fail;
14074 if (obj3) {
14075 {
14076 arg4 = &temp4;
14077 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14078 }
14079 }
14080 if (obj4) {
14081 {
14082 arg5 = &temp5;
14083 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14084 }
14085 }
14086 if (obj5) {
14087 arg6 = (long) SWIG_AsLong(obj5);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 if (obj6) {
14091 {
14092 arg7 = wxString_in_helper(obj6);
14093 if (arg7 == NULL) SWIG_fail;
14094 temp7 = True;
14095 }
14096 }
14097 {
14098 PyThreadState* __tstate = wxPyBeginAllowThreads();
14099 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14100
14101 wxPyEndAllowThreads(__tstate);
14102 if (PyErr_Occurred()) SWIG_fail;
14103 }
14104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14105 {
14106 if (temp7)
14107 delete arg7;
14108 }
14109 return resultobj;
14110 fail:
14111 {
14112 if (temp7)
14113 delete arg7;
14114 }
14115 return NULL;
14116 }
14117
14118
14119 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14120 PyObject *resultobj;
14121 wxNotebook *arg1 = (wxNotebook *) 0 ;
14122 int result;
14123 PyObject * obj0 = 0 ;
14124 char *kwnames[] = {
14125 (char *) "self", NULL
14126 };
14127
14128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
14129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14131 {
14132 PyThreadState* __tstate = wxPyBeginAllowThreads();
14133 result = (int)((wxNotebook const *)arg1)->GetRowCount();
14134
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 resultobj = SWIG_FromInt((int)result);
14139 return resultobj;
14140 fail:
14141 return NULL;
14142 }
14143
14144
14145 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
14146 PyObject *resultobj;
14147 wxNotebook *arg1 = (wxNotebook *) 0 ;
14148 wxSize *arg2 = 0 ;
14149 wxSize temp2 ;
14150 PyObject * obj0 = 0 ;
14151 PyObject * obj1 = 0 ;
14152 char *kwnames[] = {
14153 (char *) "self",(char *) "padding", NULL
14154 };
14155
14156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
14157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14159 {
14160 arg2 = &temp2;
14161 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14162 }
14163 {
14164 PyThreadState* __tstate = wxPyBeginAllowThreads();
14165 (arg1)->SetPadding((wxSize const &)*arg2);
14166
14167 wxPyEndAllowThreads(__tstate);
14168 if (PyErr_Occurred()) SWIG_fail;
14169 }
14170 Py_INCREF(Py_None); resultobj = Py_None;
14171 return resultobj;
14172 fail:
14173 return NULL;
14174 }
14175
14176
14177 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14178 PyObject *resultobj;
14179 wxNotebook *arg1 = (wxNotebook *) 0 ;
14180 wxSize *arg2 = 0 ;
14181 wxSize temp2 ;
14182 PyObject * obj0 = 0 ;
14183 PyObject * obj1 = 0 ;
14184 char *kwnames[] = {
14185 (char *) "self",(char *) "sz", NULL
14186 };
14187
14188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
14189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14191 {
14192 arg2 = &temp2;
14193 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14194 }
14195 {
14196 PyThreadState* __tstate = wxPyBeginAllowThreads();
14197 (arg1)->SetTabSize((wxSize const &)*arg2);
14198
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 Py_INCREF(Py_None); resultobj = Py_None;
14203 return resultobj;
14204 fail:
14205 return NULL;
14206 }
14207
14208
14209 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
14210 PyObject *resultobj;
14211 wxNotebook *arg1 = (wxNotebook *) 0 ;
14212 wxPoint *arg2 = 0 ;
14213 long *arg3 = (long *) 0 ;
14214 int result;
14215 wxPoint temp2 ;
14216 long temp3 ;
14217 PyObject * obj0 = 0 ;
14218 PyObject * obj1 = 0 ;
14219 char *kwnames[] = {
14220 (char *) "self",(char *) "pt", NULL
14221 };
14222
14223 arg3 = &temp3;
14224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
14225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14227 {
14228 arg2 = &temp2;
14229 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14230 }
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
14234
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 resultobj = SWIG_FromInt((int)result);
14239 {
14240 PyObject *o = PyInt_FromLong((long) (*arg3));
14241 resultobj = t_output_helper(resultobj,o);
14242 }
14243 return resultobj;
14244 fail:
14245 return NULL;
14246 }
14247
14248
14249 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj;
14251 wxNotebook *arg1 = (wxNotebook *) 0 ;
14252 wxSize *arg2 = 0 ;
14253 wxSize result;
14254 wxSize temp2 ;
14255 PyObject * obj0 = 0 ;
14256 PyObject * obj1 = 0 ;
14257 char *kwnames[] = {
14258 (char *) "self",(char *) "sizePage", NULL
14259 };
14260
14261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14264 {
14265 arg2 = &temp2;
14266 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14267 }
14268 {
14269 PyThreadState* __tstate = wxPyBeginAllowThreads();
14270 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14271
14272 wxPyEndAllowThreads(__tstate);
14273 if (PyErr_Occurred()) SWIG_fail;
14274 }
14275 {
14276 wxSize * resultptr;
14277 resultptr = new wxSize((wxSize &) result);
14278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14279 }
14280 return resultobj;
14281 fail:
14282 return NULL;
14283 }
14284
14285
14286 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
14287 PyObject *obj;
14288 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14289 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
14290 Py_INCREF(obj);
14291 return Py_BuildValue((char *)"");
14292 }
14293 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14294 PyObject *resultobj;
14295 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14296 int arg2 = (int) 0 ;
14297 int arg3 = (int) -1 ;
14298 int arg4 = (int) -1 ;
14299 wxNotebookEvent *result;
14300 PyObject * obj0 = 0 ;
14301 PyObject * obj1 = 0 ;
14302 PyObject * obj2 = 0 ;
14303 PyObject * obj3 = 0 ;
14304 char *kwnames[] = {
14305 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14306 };
14307
14308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14309 if (obj0) {
14310 arg1 = (wxEventType) SWIG_AsInt(obj0);
14311 if (PyErr_Occurred()) SWIG_fail;
14312 }
14313 if (obj1) {
14314 arg2 = (int) SWIG_AsInt(obj1);
14315 if (PyErr_Occurred()) SWIG_fail;
14316 }
14317 if (obj2) {
14318 arg3 = (int) SWIG_AsInt(obj2);
14319 if (PyErr_Occurred()) SWIG_fail;
14320 }
14321 if (obj3) {
14322 arg4 = (int) SWIG_AsInt(obj3);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 {
14326 PyThreadState* __tstate = wxPyBeginAllowThreads();
14327 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
14328
14329 wxPyEndAllowThreads(__tstate);
14330 if (PyErr_Occurred()) SWIG_fail;
14331 }
14332 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
14333 return resultobj;
14334 fail:
14335 return NULL;
14336 }
14337
14338
14339 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
14340 PyObject *obj;
14341 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14342 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
14343 Py_INCREF(obj);
14344 return Py_BuildValue((char *)"");
14345 }
14346 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14347 PyObject *resultobj;
14348 wxWindow *arg1 = (wxWindow *) 0 ;
14349 int arg2 ;
14350 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14351 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14352 wxSize const &arg4_defvalue = wxDefaultSize ;
14353 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14354 long arg5 = (long) 0 ;
14355 wxString const &arg6_defvalue = wxPyEmptyString ;
14356 wxString *arg6 = (wxString *) &arg6_defvalue ;
14357 wxListbook *result;
14358 wxPoint temp3 ;
14359 wxSize temp4 ;
14360 bool temp6 = False ;
14361 PyObject * obj0 = 0 ;
14362 PyObject * obj1 = 0 ;
14363 PyObject * obj2 = 0 ;
14364 PyObject * obj3 = 0 ;
14365 PyObject * obj4 = 0 ;
14366 PyObject * obj5 = 0 ;
14367 char *kwnames[] = {
14368 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14369 };
14370
14371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14374 arg2 = (int) SWIG_AsInt(obj1);
14375 if (PyErr_Occurred()) SWIG_fail;
14376 if (obj2) {
14377 {
14378 arg3 = &temp3;
14379 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14380 }
14381 }
14382 if (obj3) {
14383 {
14384 arg4 = &temp4;
14385 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14386 }
14387 }
14388 if (obj4) {
14389 arg5 = (long) SWIG_AsLong(obj4);
14390 if (PyErr_Occurred()) SWIG_fail;
14391 }
14392 if (obj5) {
14393 {
14394 arg6 = wxString_in_helper(obj5);
14395 if (arg6 == NULL) SWIG_fail;
14396 temp6 = True;
14397 }
14398 }
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14402
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
14407 {
14408 if (temp6)
14409 delete arg6;
14410 }
14411 return resultobj;
14412 fail:
14413 {
14414 if (temp6)
14415 delete arg6;
14416 }
14417 return NULL;
14418 }
14419
14420
14421 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14422 PyObject *resultobj;
14423 wxListbook *result;
14424 char *kwnames[] = {
14425 NULL
14426 };
14427
14428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 result = (wxListbook *)new wxListbook();
14432
14433 wxPyEndAllowThreads(__tstate);
14434 if (PyErr_Occurred()) SWIG_fail;
14435 }
14436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
14437 return resultobj;
14438 fail:
14439 return NULL;
14440 }
14441
14442
14443 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj;
14445 wxListbook *arg1 = (wxListbook *) 0 ;
14446 wxWindow *arg2 = (wxWindow *) 0 ;
14447 int arg3 ;
14448 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14449 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14450 wxSize const &arg5_defvalue = wxDefaultSize ;
14451 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14452 long arg6 = (long) 0 ;
14453 wxString const &arg7_defvalue = wxPyEmptyString ;
14454 wxString *arg7 = (wxString *) &arg7_defvalue ;
14455 bool result;
14456 wxPoint temp4 ;
14457 wxSize temp5 ;
14458 bool temp7 = False ;
14459 PyObject * obj0 = 0 ;
14460 PyObject * obj1 = 0 ;
14461 PyObject * obj2 = 0 ;
14462 PyObject * obj3 = 0 ;
14463 PyObject * obj4 = 0 ;
14464 PyObject * obj5 = 0 ;
14465 PyObject * obj6 = 0 ;
14466 char *kwnames[] = {
14467 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14468 };
14469
14470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
14472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14473 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14475 arg3 = (int) SWIG_AsInt(obj2);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 if (obj3) {
14478 {
14479 arg4 = &temp4;
14480 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14481 }
14482 }
14483 if (obj4) {
14484 {
14485 arg5 = &temp5;
14486 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14487 }
14488 }
14489 if (obj5) {
14490 arg6 = (long) SWIG_AsLong(obj5);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 if (obj6) {
14494 {
14495 arg7 = wxString_in_helper(obj6);
14496 if (arg7 == NULL) SWIG_fail;
14497 temp7 = True;
14498 }
14499 }
14500 {
14501 PyThreadState* __tstate = wxPyBeginAllowThreads();
14502 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14503
14504 wxPyEndAllowThreads(__tstate);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 }
14507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14508 {
14509 if (temp7)
14510 delete arg7;
14511 }
14512 return resultobj;
14513 fail:
14514 {
14515 if (temp7)
14516 delete arg7;
14517 }
14518 return NULL;
14519 }
14520
14521
14522 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
14523 PyObject *resultobj;
14524 wxListbook *arg1 = (wxListbook *) 0 ;
14525 bool result;
14526 PyObject * obj0 = 0 ;
14527 char *kwnames[] = {
14528 (char *) "self", NULL
14529 };
14530
14531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
14532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
14533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14534 {
14535 PyThreadState* __tstate = wxPyBeginAllowThreads();
14536 result = (bool)((wxListbook const *)arg1)->IsVertical();
14537
14538 wxPyEndAllowThreads(__tstate);
14539 if (PyErr_Occurred()) SWIG_fail;
14540 }
14541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14542 return resultobj;
14543 fail:
14544 return NULL;
14545 }
14546
14547
14548 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
14549 PyObject *obj;
14550 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14551 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
14552 Py_INCREF(obj);
14553 return Py_BuildValue((char *)"");
14554 }
14555 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj;
14557 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14558 int arg2 = (int) 0 ;
14559 int arg3 = (int) -1 ;
14560 int arg4 = (int) -1 ;
14561 wxListbookEvent *result;
14562 PyObject * obj0 = 0 ;
14563 PyObject * obj1 = 0 ;
14564 PyObject * obj2 = 0 ;
14565 PyObject * obj3 = 0 ;
14566 char *kwnames[] = {
14567 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14568 };
14569
14570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14571 if (obj0) {
14572 arg1 = (wxEventType) SWIG_AsInt(obj0);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 if (obj1) {
14576 arg2 = (int) SWIG_AsInt(obj1);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 if (obj2) {
14580 arg3 = (int) SWIG_AsInt(obj2);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 if (obj3) {
14584 arg4 = (int) SWIG_AsInt(obj3);
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 {
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
14590
14591 wxPyEndAllowThreads(__tstate);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 }
14594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
14595 return resultobj;
14596 fail:
14597 return NULL;
14598 }
14599
14600
14601 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
14602 PyObject *obj;
14603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14604 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
14605 Py_INCREF(obj);
14606 return Py_BuildValue((char *)"");
14607 }
14608 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14609 PyObject *resultobj;
14610 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14611 wxBookCtrlSizer *result;
14612 PyObject * obj0 = 0 ;
14613 char *kwnames[] = {
14614 (char *) "nb", NULL
14615 };
14616
14617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
14618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14620 {
14621 PyThreadState* __tstate = wxPyBeginAllowThreads();
14622 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
14623
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
14628 return resultobj;
14629 fail:
14630 return NULL;
14631 }
14632
14633
14634 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14635 PyObject *resultobj;
14636 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14637 PyObject * obj0 = 0 ;
14638 char *kwnames[] = {
14639 (char *) "self", NULL
14640 };
14641
14642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14645 {
14646 PyThreadState* __tstate = wxPyBeginAllowThreads();
14647 (arg1)->RecalcSizes();
14648
14649 wxPyEndAllowThreads(__tstate);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 }
14652 Py_INCREF(Py_None); resultobj = Py_None;
14653 return resultobj;
14654 fail:
14655 return NULL;
14656 }
14657
14658
14659 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14660 PyObject *resultobj;
14661 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14662 wxSize result;
14663 PyObject * obj0 = 0 ;
14664 char *kwnames[] = {
14665 (char *) "self", NULL
14666 };
14667
14668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
14669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 result = (arg1)->CalcMin();
14674
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 {
14679 wxSize * resultptr;
14680 resultptr = new wxSize((wxSize &) result);
14681 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14682 }
14683 return resultobj;
14684 fail:
14685 return NULL;
14686 }
14687
14688
14689 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14690 PyObject *resultobj;
14691 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14692 wxBookCtrl *result;
14693 PyObject * obj0 = 0 ;
14694 char *kwnames[] = {
14695 (char *) "self", NULL
14696 };
14697
14698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
14699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
14700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14701 {
14702 PyThreadState* __tstate = wxPyBeginAllowThreads();
14703 result = (wxBookCtrl *)(arg1)->GetControl();
14704
14705 wxPyEndAllowThreads(__tstate);
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
14709 return resultobj;
14710 fail:
14711 return NULL;
14712 }
14713
14714
14715 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
14716 PyObject *obj;
14717 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14718 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
14719 Py_INCREF(obj);
14720 return Py_BuildValue((char *)"");
14721 }
14722 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14723 PyObject *resultobj;
14724 wxNotebook *arg1 = (wxNotebook *) 0 ;
14725 wxNotebookSizer *result;
14726 PyObject * obj0 = 0 ;
14727 char *kwnames[] = {
14728 (char *) "nb", NULL
14729 };
14730
14731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
14732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
14737
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
14742 return resultobj;
14743 fail:
14744 return NULL;
14745 }
14746
14747
14748 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14749 PyObject *resultobj;
14750 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14751 PyObject * obj0 = 0 ;
14752 char *kwnames[] = {
14753 (char *) "self", NULL
14754 };
14755
14756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14759 {
14760 PyThreadState* __tstate = wxPyBeginAllowThreads();
14761 (arg1)->RecalcSizes();
14762
14763 wxPyEndAllowThreads(__tstate);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 }
14766 Py_INCREF(Py_None); resultobj = Py_None;
14767 return resultobj;
14768 fail:
14769 return NULL;
14770 }
14771
14772
14773 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14774 PyObject *resultobj;
14775 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14776 wxSize result;
14777 PyObject * obj0 = 0 ;
14778 char *kwnames[] = {
14779 (char *) "self", NULL
14780 };
14781
14782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
14783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14785 {
14786 PyThreadState* __tstate = wxPyBeginAllowThreads();
14787 result = (arg1)->CalcMin();
14788
14789 wxPyEndAllowThreads(__tstate);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 }
14792 {
14793 wxSize * resultptr;
14794 resultptr = new wxSize((wxSize &) result);
14795 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14796 }
14797 return resultobj;
14798 fail:
14799 return NULL;
14800 }
14801
14802
14803 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14804 PyObject *resultobj;
14805 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14806 wxNotebook *result;
14807 PyObject * obj0 = 0 ;
14808 char *kwnames[] = {
14809 (char *) "self", NULL
14810 };
14811
14812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
14813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
14814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 result = (wxNotebook *)(arg1)->GetNotebook();
14818
14819 wxPyEndAllowThreads(__tstate);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 }
14822 {
14823 resultobj = wxPyMake_wxObject(result);
14824 }
14825 return resultobj;
14826 fail:
14827 return NULL;
14828 }
14829
14830
14831 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
14832 PyObject *obj;
14833 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14834 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
14835 Py_INCREF(obj);
14836 return Py_BuildValue((char *)"");
14837 }
14838 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
14839 PyObject *resultobj;
14840 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14841 int result;
14842 PyObject * obj0 = 0 ;
14843 char *kwnames[] = {
14844 (char *) "self", NULL
14845 };
14846
14847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
14848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = (int)(arg1)->GetId();
14853
14854 wxPyEndAllowThreads(__tstate);
14855 if (PyErr_Occurred()) SWIG_fail;
14856 }
14857 resultobj = SWIG_FromInt((int)result);
14858 return resultobj;
14859 fail:
14860 return NULL;
14861 }
14862
14863
14864 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14865 PyObject *resultobj;
14866 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14867 wxControl *result;
14868 PyObject * obj0 = 0 ;
14869 char *kwnames[] = {
14870 (char *) "self", NULL
14871 };
14872
14873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
14874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 result = (wxControl *)(arg1)->GetControl();
14879
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 {
14884 resultobj = wxPyMake_wxObject(result);
14885 }
14886 return resultobj;
14887 fail:
14888 return NULL;
14889 }
14890
14891
14892 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
14893 PyObject *resultobj;
14894 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14895 wxToolBarBase *result;
14896 PyObject * obj0 = 0 ;
14897 char *kwnames[] = {
14898 (char *) "self", NULL
14899 };
14900
14901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
14902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14904 {
14905 PyThreadState* __tstate = wxPyBeginAllowThreads();
14906 result = (wxToolBarBase *)(arg1)->GetToolBar();
14907
14908 wxPyEndAllowThreads(__tstate);
14909 if (PyErr_Occurred()) SWIG_fail;
14910 }
14911 {
14912 resultobj = wxPyMake_wxObject(result);
14913 }
14914 return resultobj;
14915 fail:
14916 return NULL;
14917 }
14918
14919
14920 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
14921 PyObject *resultobj;
14922 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14923 int result;
14924 PyObject * obj0 = 0 ;
14925 char *kwnames[] = {
14926 (char *) "self", NULL
14927 };
14928
14929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
14930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14932 {
14933 PyThreadState* __tstate = wxPyBeginAllowThreads();
14934 result = (int)(arg1)->IsButton();
14935
14936 wxPyEndAllowThreads(__tstate);
14937 if (PyErr_Occurred()) SWIG_fail;
14938 }
14939 resultobj = SWIG_FromInt((int)result);
14940 return resultobj;
14941 fail:
14942 return NULL;
14943 }
14944
14945
14946 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14947 PyObject *resultobj;
14948 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14949 int result;
14950 PyObject * obj0 = 0 ;
14951 char *kwnames[] = {
14952 (char *) "self", NULL
14953 };
14954
14955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
14956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (int)(arg1)->IsControl();
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 resultobj = SWIG_FromInt((int)result);
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj;
14974 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14975 int result;
14976 PyObject * obj0 = 0 ;
14977 char *kwnames[] = {
14978 (char *) "self", NULL
14979 };
14980
14981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
14982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
14983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14984 {
14985 PyThreadState* __tstate = wxPyBeginAllowThreads();
14986 result = (int)(arg1)->IsSeparator();
14987
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 resultobj = SWIG_FromInt((int)result);
14992 return resultobj;
14993 fail:
14994 return NULL;
14995 }
14996
14997
14998 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
14999 PyObject *resultobj;
15000 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15001 int result;
15002 PyObject * obj0 = 0 ;
15003 char *kwnames[] = {
15004 (char *) "self", NULL
15005 };
15006
15007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
15008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15010 {
15011 PyThreadState* __tstate = wxPyBeginAllowThreads();
15012 result = (int)(arg1)->GetStyle();
15013
15014 wxPyEndAllowThreads(__tstate);
15015 if (PyErr_Occurred()) SWIG_fail;
15016 }
15017 resultobj = SWIG_FromInt((int)result);
15018 return resultobj;
15019 fail:
15020 return NULL;
15021 }
15022
15023
15024 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
15025 PyObject *resultobj;
15026 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15027 int result;
15028 PyObject * obj0 = 0 ;
15029 char *kwnames[] = {
15030 (char *) "self", NULL
15031 };
15032
15033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
15034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15036 {
15037 PyThreadState* __tstate = wxPyBeginAllowThreads();
15038 result = (int)(arg1)->GetKind();
15039
15040 wxPyEndAllowThreads(__tstate);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 resultobj = SWIG_FromInt((int)result);
15044 return resultobj;
15045 fail:
15046 return NULL;
15047 }
15048
15049
15050 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
15051 PyObject *resultobj;
15052 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15053 bool result;
15054 PyObject * obj0 = 0 ;
15055 char *kwnames[] = {
15056 (char *) "self", NULL
15057 };
15058
15059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
15060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15062 {
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 result = (bool)(arg1)->IsEnabled();
15065
15066 wxPyEndAllowThreads(__tstate);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 }
15069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15070 return resultobj;
15071 fail:
15072 return NULL;
15073 }
15074
15075
15076 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15077 PyObject *resultobj;
15078 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15079 bool result;
15080 PyObject * obj0 = 0 ;
15081 char *kwnames[] = {
15082 (char *) "self", NULL
15083 };
15084
15085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
15086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15088 {
15089 PyThreadState* __tstate = wxPyBeginAllowThreads();
15090 result = (bool)(arg1)->IsToggled();
15091
15092 wxPyEndAllowThreads(__tstate);
15093 if (PyErr_Occurred()) SWIG_fail;
15094 }
15095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15096 return resultobj;
15097 fail:
15098 return NULL;
15099 }
15100
15101
15102 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15103 PyObject *resultobj;
15104 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15105 bool result;
15106 PyObject * obj0 = 0 ;
15107 char *kwnames[] = {
15108 (char *) "self", NULL
15109 };
15110
15111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
15112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15114 {
15115 PyThreadState* __tstate = wxPyBeginAllowThreads();
15116 result = (bool)(arg1)->CanBeToggled();
15117
15118 wxPyEndAllowThreads(__tstate);
15119 if (PyErr_Occurred()) SWIG_fail;
15120 }
15121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15122 return resultobj;
15123 fail:
15124 return NULL;
15125 }
15126
15127
15128 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15129 PyObject *resultobj;
15130 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15131 wxBitmap *result;
15132 PyObject * obj0 = 0 ;
15133 char *kwnames[] = {
15134 (char *) "self", NULL
15135 };
15136
15137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
15138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15140 {
15141 PyThreadState* __tstate = wxPyBeginAllowThreads();
15142 {
15143 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
15144 result = (wxBitmap *) &_result_ref;
15145 }
15146
15147 wxPyEndAllowThreads(__tstate);
15148 if (PyErr_Occurred()) SWIG_fail;
15149 }
15150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
15151 return resultobj;
15152 fail:
15153 return NULL;
15154 }
15155
15156
15157 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15158 PyObject *resultobj;
15159 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15160 wxBitmap *result;
15161 PyObject * obj0 = 0 ;
15162 char *kwnames[] = {
15163 (char *) "self", NULL
15164 };
15165
15166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
15167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15169 {
15170 PyThreadState* __tstate = wxPyBeginAllowThreads();
15171 {
15172 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
15173 result = (wxBitmap *) &_result_ref;
15174 }
15175
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
15180 return resultobj;
15181 fail:
15182 return NULL;
15183 }
15184
15185
15186 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15187 PyObject *resultobj;
15188 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15189 wxBitmap result;
15190 PyObject * obj0 = 0 ;
15191 char *kwnames[] = {
15192 (char *) "self", NULL
15193 };
15194
15195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
15196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 result = (arg1)->GetBitmap();
15201
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 {
15206 wxBitmap * resultptr;
15207 resultptr = new wxBitmap((wxBitmap &) result);
15208 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15209 }
15210 return resultobj;
15211 fail:
15212 return NULL;
15213 }
15214
15215
15216 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15217 PyObject *resultobj;
15218 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15219 wxString result;
15220 PyObject * obj0 = 0 ;
15221 char *kwnames[] = {
15222 (char *) "self", NULL
15223 };
15224
15225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
15226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 result = (arg1)->GetLabel();
15231
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 {
15236 #if wxUSE_UNICODE
15237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15238 #else
15239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15240 #endif
15241 }
15242 return resultobj;
15243 fail:
15244 return NULL;
15245 }
15246
15247
15248 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15249 PyObject *resultobj;
15250 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15251 wxString result;
15252 PyObject * obj0 = 0 ;
15253 char *kwnames[] = {
15254 (char *) "self", NULL
15255 };
15256
15257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
15258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 result = (arg1)->GetShortHelp();
15263
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 {
15268 #if wxUSE_UNICODE
15269 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15270 #else
15271 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15272 #endif
15273 }
15274 return resultobj;
15275 fail:
15276 return NULL;
15277 }
15278
15279
15280 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15281 PyObject *resultobj;
15282 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15283 wxString result;
15284 PyObject * obj0 = 0 ;
15285 char *kwnames[] = {
15286 (char *) "self", NULL
15287 };
15288
15289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
15290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 result = (arg1)->GetLongHelp();
15295
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 {
15300 #if wxUSE_UNICODE
15301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15302 #else
15303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15304 #endif
15305 }
15306 return resultobj;
15307 fail:
15308 return NULL;
15309 }
15310
15311
15312 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
15313 PyObject *resultobj;
15314 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15315 bool arg2 ;
15316 bool result;
15317 PyObject * obj0 = 0 ;
15318 PyObject * obj1 = 0 ;
15319 char *kwnames[] = {
15320 (char *) "self",(char *) "enable", NULL
15321 };
15322
15323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
15324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15326 arg2 = (bool) SWIG_AsBool(obj1);
15327 if (PyErr_Occurred()) SWIG_fail;
15328 {
15329 PyThreadState* __tstate = wxPyBeginAllowThreads();
15330 result = (bool)(arg1)->Enable(arg2);
15331
15332 wxPyEndAllowThreads(__tstate);
15333 if (PyErr_Occurred()) SWIG_fail;
15334 }
15335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15336 return resultobj;
15337 fail:
15338 return NULL;
15339 }
15340
15341
15342 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15343 PyObject *resultobj;
15344 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15345 PyObject * obj0 = 0 ;
15346 char *kwnames[] = {
15347 (char *) "self", NULL
15348 };
15349
15350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
15351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15353 {
15354 PyThreadState* __tstate = wxPyBeginAllowThreads();
15355 (arg1)->Toggle();
15356
15357 wxPyEndAllowThreads(__tstate);
15358 if (PyErr_Occurred()) SWIG_fail;
15359 }
15360 Py_INCREF(Py_None); resultobj = Py_None;
15361 return resultobj;
15362 fail:
15363 return NULL;
15364 }
15365
15366
15367 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15368 PyObject *resultobj;
15369 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15370 bool arg2 ;
15371 bool result;
15372 PyObject * obj0 = 0 ;
15373 PyObject * obj1 = 0 ;
15374 char *kwnames[] = {
15375 (char *) "self",(char *) "toggle", NULL
15376 };
15377
15378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
15379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15381 arg2 = (bool) SWIG_AsBool(obj1);
15382 if (PyErr_Occurred()) SWIG_fail;
15383 {
15384 PyThreadState* __tstate = wxPyBeginAllowThreads();
15385 result = (bool)(arg1)->SetToggle(arg2);
15386
15387 wxPyEndAllowThreads(__tstate);
15388 if (PyErr_Occurred()) SWIG_fail;
15389 }
15390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15391 return resultobj;
15392 fail:
15393 return NULL;
15394 }
15395
15396
15397 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15398 PyObject *resultobj;
15399 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15400 wxString *arg2 = 0 ;
15401 bool result;
15402 bool temp2 = False ;
15403 PyObject * obj0 = 0 ;
15404 PyObject * obj1 = 0 ;
15405 char *kwnames[] = {
15406 (char *) "self",(char *) "help", NULL
15407 };
15408
15409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
15410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15412 {
15413 arg2 = wxString_in_helper(obj1);
15414 if (arg2 == NULL) SWIG_fail;
15415 temp2 = True;
15416 }
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
15420
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15425 {
15426 if (temp2)
15427 delete arg2;
15428 }
15429 return resultobj;
15430 fail:
15431 {
15432 if (temp2)
15433 delete arg2;
15434 }
15435 return NULL;
15436 }
15437
15438
15439 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15440 PyObject *resultobj;
15441 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15442 wxString *arg2 = 0 ;
15443 bool result;
15444 bool temp2 = False ;
15445 PyObject * obj0 = 0 ;
15446 PyObject * obj1 = 0 ;
15447 char *kwnames[] = {
15448 (char *) "self",(char *) "help", NULL
15449 };
15450
15451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
15452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15454 {
15455 arg2 = wxString_in_helper(obj1);
15456 if (arg2 == NULL) SWIG_fail;
15457 temp2 = True;
15458 }
15459 {
15460 PyThreadState* __tstate = wxPyBeginAllowThreads();
15461 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
15462
15463 wxPyEndAllowThreads(__tstate);
15464 if (PyErr_Occurred()) SWIG_fail;
15465 }
15466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15467 {
15468 if (temp2)
15469 delete arg2;
15470 }
15471 return resultobj;
15472 fail:
15473 {
15474 if (temp2)
15475 delete arg2;
15476 }
15477 return NULL;
15478 }
15479
15480
15481 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj;
15483 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15484 wxBitmap *arg2 = 0 ;
15485 PyObject * obj0 = 0 ;
15486 PyObject * obj1 = 0 ;
15487 char *kwnames[] = {
15488 (char *) "self",(char *) "bmp", NULL
15489 };
15490
15491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
15492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15495 SWIG_POINTER_EXCEPTION | 0)) == -1)
15496 SWIG_fail;
15497 if (arg2 == NULL) {
15498 PyErr_SetString(PyExc_TypeError,"null reference");
15499 SWIG_fail;
15500 }
15501 {
15502 PyThreadState* __tstate = wxPyBeginAllowThreads();
15503 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
15504
15505 wxPyEndAllowThreads(__tstate);
15506 if (PyErr_Occurred()) SWIG_fail;
15507 }
15508 Py_INCREF(Py_None); resultobj = Py_None;
15509 return resultobj;
15510 fail:
15511 return NULL;
15512 }
15513
15514
15515 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15516 PyObject *resultobj;
15517 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15518 wxBitmap *arg2 = 0 ;
15519 PyObject * obj0 = 0 ;
15520 PyObject * obj1 = 0 ;
15521 char *kwnames[] = {
15522 (char *) "self",(char *) "bmp", NULL
15523 };
15524
15525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
15526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15529 SWIG_POINTER_EXCEPTION | 0)) == -1)
15530 SWIG_fail;
15531 if (arg2 == NULL) {
15532 PyErr_SetString(PyExc_TypeError,"null reference");
15533 SWIG_fail;
15534 }
15535 {
15536 PyThreadState* __tstate = wxPyBeginAllowThreads();
15537 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
15538
15539 wxPyEndAllowThreads(__tstate);
15540 if (PyErr_Occurred()) SWIG_fail;
15541 }
15542 Py_INCREF(Py_None); resultobj = Py_None;
15543 return resultobj;
15544 fail:
15545 return NULL;
15546 }
15547
15548
15549 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15550 PyObject *resultobj;
15551 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15552 wxString *arg2 = 0 ;
15553 bool temp2 = False ;
15554 PyObject * obj0 = 0 ;
15555 PyObject * obj1 = 0 ;
15556 char *kwnames[] = {
15557 (char *) "self",(char *) "label", NULL
15558 };
15559
15560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
15561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15563 {
15564 arg2 = wxString_in_helper(obj1);
15565 if (arg2 == NULL) SWIG_fail;
15566 temp2 = True;
15567 }
15568 {
15569 PyThreadState* __tstate = wxPyBeginAllowThreads();
15570 (arg1)->SetLabel((wxString const &)*arg2);
15571
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 Py_INCREF(Py_None); resultobj = Py_None;
15576 {
15577 if (temp2)
15578 delete arg2;
15579 }
15580 return resultobj;
15581 fail:
15582 {
15583 if (temp2)
15584 delete arg2;
15585 }
15586 return NULL;
15587 }
15588
15589
15590 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
15591 PyObject *resultobj;
15592 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15593 PyObject * obj0 = 0 ;
15594 char *kwnames[] = {
15595 (char *) "self", NULL
15596 };
15597
15598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
15599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
15603 (arg1)->Detach();
15604
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 Py_INCREF(Py_None); resultobj = Py_None;
15609 return resultobj;
15610 fail:
15611 return NULL;
15612 }
15613
15614
15615 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
15616 PyObject *resultobj;
15617 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15618 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
15619 PyObject * obj0 = 0 ;
15620 PyObject * obj1 = 0 ;
15621 char *kwnames[] = {
15622 (char *) "self",(char *) "tbar", NULL
15623 };
15624
15625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
15626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15628 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
15629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
15632 (arg1)->Attach(arg2);
15633
15634 wxPyEndAllowThreads(__tstate);
15635 if (PyErr_Occurred()) SWIG_fail;
15636 }
15637 Py_INCREF(Py_None); resultobj = Py_None;
15638 return resultobj;
15639 fail:
15640 return NULL;
15641 }
15642
15643
15644 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15645 PyObject *resultobj;
15646 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15647 PyObject *result;
15648 PyObject * obj0 = 0 ;
15649 char *kwnames[] = {
15650 (char *) "self", NULL
15651 };
15652
15653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
15654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
15659
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 resultobj = result;
15664 return resultobj;
15665 fail:
15666 return NULL;
15667 }
15668
15669
15670 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15671 PyObject *resultobj;
15672 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15673 PyObject *arg2 = (PyObject *) 0 ;
15674 PyObject * obj0 = 0 ;
15675 PyObject * obj1 = 0 ;
15676 char *kwnames[] = {
15677 (char *) "self",(char *) "clientData", NULL
15678 };
15679
15680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
15681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15683 arg2 = obj1;
15684 {
15685 PyThreadState* __tstate = wxPyBeginAllowThreads();
15686 wxToolBarToolBase_SetClientData(arg1,arg2);
15687
15688 wxPyEndAllowThreads(__tstate);
15689 if (PyErr_Occurred()) SWIG_fail;
15690 }
15691 Py_INCREF(Py_None); resultobj = Py_None;
15692 return resultobj;
15693 fail:
15694 return NULL;
15695 }
15696
15697
15698 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
15699 PyObject *obj;
15700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15701 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
15702 Py_INCREF(obj);
15703 return Py_BuildValue((char *)"");
15704 }
15705 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
15706 PyObject *resultobj;
15707 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15708 int arg2 ;
15709 wxString *arg3 = 0 ;
15710 wxBitmap *arg4 = 0 ;
15711 wxBitmap const &arg5_defvalue = wxNullBitmap ;
15712 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
15713 int arg6 = (int) wxITEM_NORMAL ;
15714 wxString const &arg7_defvalue = wxPyEmptyString ;
15715 wxString *arg7 = (wxString *) &arg7_defvalue ;
15716 wxString const &arg8_defvalue = wxPyEmptyString ;
15717 wxString *arg8 = (wxString *) &arg8_defvalue ;
15718 PyObject *arg9 = (PyObject *) NULL ;
15719 wxToolBarToolBase *result;
15720 bool temp3 = False ;
15721 bool temp7 = False ;
15722 bool temp8 = False ;
15723 PyObject * obj0 = 0 ;
15724 PyObject * obj1 = 0 ;
15725 PyObject * obj2 = 0 ;
15726 PyObject * obj3 = 0 ;
15727 PyObject * obj4 = 0 ;
15728 PyObject * obj5 = 0 ;
15729 PyObject * obj6 = 0 ;
15730 PyObject * obj7 = 0 ;
15731 PyObject * obj8 = 0 ;
15732 char *kwnames[] = {
15733 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15734 };
15735
15736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
15737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15739 arg2 = (int) SWIG_AsInt(obj1);
15740 if (PyErr_Occurred()) SWIG_fail;
15741 {
15742 arg3 = wxString_in_helper(obj2);
15743 if (arg3 == NULL) SWIG_fail;
15744 temp3 = True;
15745 }
15746 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
15747 SWIG_POINTER_EXCEPTION | 0)) == -1)
15748 SWIG_fail;
15749 if (arg4 == NULL) {
15750 PyErr_SetString(PyExc_TypeError,"null reference");
15751 SWIG_fail;
15752 }
15753 if (obj4) {
15754 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
15755 SWIG_POINTER_EXCEPTION | 0)) == -1)
15756 SWIG_fail;
15757 if (arg5 == NULL) {
15758 PyErr_SetString(PyExc_TypeError,"null reference");
15759 SWIG_fail;
15760 }
15761 }
15762 if (obj5) {
15763 arg6 = (wxItemKind) SWIG_AsInt(obj5);
15764 if (PyErr_Occurred()) SWIG_fail;
15765 }
15766 if (obj6) {
15767 {
15768 arg7 = wxString_in_helper(obj6);
15769 if (arg7 == NULL) SWIG_fail;
15770 temp7 = True;
15771 }
15772 }
15773 if (obj7) {
15774 {
15775 arg8 = wxString_in_helper(obj7);
15776 if (arg8 == NULL) SWIG_fail;
15777 temp8 = True;
15778 }
15779 }
15780 if (obj8) {
15781 arg9 = obj8;
15782 }
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
15786
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 {
15791 resultobj = wxPyMake_wxObject(result);
15792 }
15793 {
15794 if (temp3)
15795 delete arg3;
15796 }
15797 {
15798 if (temp7)
15799 delete arg7;
15800 }
15801 {
15802 if (temp8)
15803 delete arg8;
15804 }
15805 return resultobj;
15806 fail:
15807 {
15808 if (temp3)
15809 delete arg3;
15810 }
15811 {
15812 if (temp7)
15813 delete arg7;
15814 }
15815 {
15816 if (temp8)
15817 delete arg8;
15818 }
15819 return NULL;
15820 }
15821
15822
15823 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
15824 PyObject *resultobj;
15825 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15826 size_t arg2 ;
15827 int arg3 ;
15828 wxString *arg4 = 0 ;
15829 wxBitmap *arg5 = 0 ;
15830 wxBitmap const &arg6_defvalue = wxNullBitmap ;
15831 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
15832 int arg7 = (int) wxITEM_NORMAL ;
15833 wxString const &arg8_defvalue = wxPyEmptyString ;
15834 wxString *arg8 = (wxString *) &arg8_defvalue ;
15835 wxString const &arg9_defvalue = wxPyEmptyString ;
15836 wxString *arg9 = (wxString *) &arg9_defvalue ;
15837 PyObject *arg10 = (PyObject *) NULL ;
15838 wxToolBarToolBase *result;
15839 bool temp4 = False ;
15840 bool temp8 = False ;
15841 bool temp9 = False ;
15842 PyObject * obj0 = 0 ;
15843 PyObject * obj1 = 0 ;
15844 PyObject * obj2 = 0 ;
15845 PyObject * obj3 = 0 ;
15846 PyObject * obj4 = 0 ;
15847 PyObject * obj5 = 0 ;
15848 PyObject * obj6 = 0 ;
15849 PyObject * obj7 = 0 ;
15850 PyObject * obj8 = 0 ;
15851 PyObject * obj9 = 0 ;
15852 char *kwnames[] = {
15853 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15854 };
15855
15856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
15857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15859 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 arg3 = (int) SWIG_AsInt(obj2);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 {
15864 arg4 = wxString_in_helper(obj3);
15865 if (arg4 == NULL) SWIG_fail;
15866 temp4 = True;
15867 }
15868 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
15869 SWIG_POINTER_EXCEPTION | 0)) == -1)
15870 SWIG_fail;
15871 if (arg5 == NULL) {
15872 PyErr_SetString(PyExc_TypeError,"null reference");
15873 SWIG_fail;
15874 }
15875 if (obj5) {
15876 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
15877 SWIG_POINTER_EXCEPTION | 0)) == -1)
15878 SWIG_fail;
15879 if (arg6 == NULL) {
15880 PyErr_SetString(PyExc_TypeError,"null reference");
15881 SWIG_fail;
15882 }
15883 }
15884 if (obj6) {
15885 arg7 = (wxItemKind) SWIG_AsInt(obj6);
15886 if (PyErr_Occurred()) SWIG_fail;
15887 }
15888 if (obj7) {
15889 {
15890 arg8 = wxString_in_helper(obj7);
15891 if (arg8 == NULL) SWIG_fail;
15892 temp8 = True;
15893 }
15894 }
15895 if (obj8) {
15896 {
15897 arg9 = wxString_in_helper(obj8);
15898 if (arg9 == NULL) SWIG_fail;
15899 temp9 = True;
15900 }
15901 }
15902 if (obj9) {
15903 arg10 = obj9;
15904 }
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 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);
15908
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 {
15913 resultobj = wxPyMake_wxObject(result);
15914 }
15915 {
15916 if (temp4)
15917 delete arg4;
15918 }
15919 {
15920 if (temp8)
15921 delete arg8;
15922 }
15923 {
15924 if (temp9)
15925 delete arg9;
15926 }
15927 return resultobj;
15928 fail:
15929 {
15930 if (temp4)
15931 delete arg4;
15932 }
15933 {
15934 if (temp8)
15935 delete arg8;
15936 }
15937 {
15938 if (temp9)
15939 delete arg9;
15940 }
15941 return NULL;
15942 }
15943
15944
15945 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj;
15947 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15948 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
15949 wxToolBarToolBase *result;
15950 PyObject * obj0 = 0 ;
15951 PyObject * obj1 = 0 ;
15952 char *kwnames[] = {
15953 (char *) "self",(char *) "tool", NULL
15954 };
15955
15956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
15957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15959 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
15960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15961 {
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
15964
15965 wxPyEndAllowThreads(__tstate);
15966 if (PyErr_Occurred()) SWIG_fail;
15967 }
15968 {
15969 resultobj = wxPyMake_wxObject(result);
15970 }
15971 return resultobj;
15972 fail:
15973 return NULL;
15974 }
15975
15976
15977 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
15978 PyObject *resultobj;
15979 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15980 size_t arg2 ;
15981 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
15982 wxToolBarToolBase *result;
15983 PyObject * obj0 = 0 ;
15984 PyObject * obj1 = 0 ;
15985 PyObject * obj2 = 0 ;
15986 char *kwnames[] = {
15987 (char *) "self",(char *) "pos",(char *) "tool", NULL
15988 };
15989
15990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
15991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
15992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15993 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
15994 if (PyErr_Occurred()) SWIG_fail;
15995 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
15996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15997 {
15998 PyThreadState* __tstate = wxPyBeginAllowThreads();
15999 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
16000
16001 wxPyEndAllowThreads(__tstate);
16002 if (PyErr_Occurred()) SWIG_fail;
16003 }
16004 {
16005 resultobj = wxPyMake_wxObject(result);
16006 }
16007 return resultobj;
16008 fail:
16009 return NULL;
16010 }
16011
16012
16013 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16014 PyObject *resultobj;
16015 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16016 wxControl *arg2 = (wxControl *) 0 ;
16017 wxToolBarToolBase *result;
16018 PyObject * obj0 = 0 ;
16019 PyObject * obj1 = 0 ;
16020 char *kwnames[] = {
16021 (char *) "self",(char *) "control", NULL
16022 };
16023
16024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
16025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16027 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
16028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16029 {
16030 PyThreadState* __tstate = wxPyBeginAllowThreads();
16031 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
16032
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 {
16037 resultobj = wxPyMake_wxObject(result);
16038 }
16039 return resultobj;
16040 fail:
16041 return NULL;
16042 }
16043
16044
16045 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16046 PyObject *resultobj;
16047 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16048 size_t arg2 ;
16049 wxControl *arg3 = (wxControl *) 0 ;
16050 wxToolBarToolBase *result;
16051 PyObject * obj0 = 0 ;
16052 PyObject * obj1 = 0 ;
16053 PyObject * obj2 = 0 ;
16054 char *kwnames[] = {
16055 (char *) "self",(char *) "pos",(char *) "control", NULL
16056 };
16057
16058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16061 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16062 if (PyErr_Occurred()) SWIG_fail;
16063 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
16064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16065 {
16066 PyThreadState* __tstate = wxPyBeginAllowThreads();
16067 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
16068
16069 wxPyEndAllowThreads(__tstate);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 }
16072 {
16073 resultobj = wxPyMake_wxObject(result);
16074 }
16075 return resultobj;
16076 fail:
16077 return NULL;
16078 }
16079
16080
16081 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16082 PyObject *resultobj;
16083 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16084 int arg2 ;
16085 wxControl *result;
16086 PyObject * obj0 = 0 ;
16087 PyObject * obj1 = 0 ;
16088 char *kwnames[] = {
16089 (char *) "self",(char *) "id", NULL
16090 };
16091
16092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
16093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16095 arg2 = (int) SWIG_AsInt(obj1);
16096 if (PyErr_Occurred()) SWIG_fail;
16097 {
16098 PyThreadState* __tstate = wxPyBeginAllowThreads();
16099 result = (wxControl *)(arg1)->FindControl(arg2);
16100
16101 wxPyEndAllowThreads(__tstate);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 {
16105 resultobj = wxPyMake_wxObject(result);
16106 }
16107 return resultobj;
16108 fail:
16109 return NULL;
16110 }
16111
16112
16113 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16114 PyObject *resultobj;
16115 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16116 wxToolBarToolBase *result;
16117 PyObject * obj0 = 0 ;
16118 char *kwnames[] = {
16119 (char *) "self", NULL
16120 };
16121
16122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
16123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16125 {
16126 PyThreadState* __tstate = wxPyBeginAllowThreads();
16127 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
16128
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 {
16133 resultobj = wxPyMake_wxObject(result);
16134 }
16135 return resultobj;
16136 fail:
16137 return NULL;
16138 }
16139
16140
16141 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16142 PyObject *resultobj;
16143 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16144 size_t arg2 ;
16145 wxToolBarToolBase *result;
16146 PyObject * obj0 = 0 ;
16147 PyObject * obj1 = 0 ;
16148 char *kwnames[] = {
16149 (char *) "self",(char *) "pos", NULL
16150 };
16151
16152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
16153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16155 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16156 if (PyErr_Occurred()) SWIG_fail;
16157 {
16158 PyThreadState* __tstate = wxPyBeginAllowThreads();
16159 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
16160
16161 wxPyEndAllowThreads(__tstate);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 {
16165 resultobj = wxPyMake_wxObject(result);
16166 }
16167 return resultobj;
16168 fail:
16169 return NULL;
16170 }
16171
16172
16173 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16174 PyObject *resultobj;
16175 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16176 int arg2 ;
16177 wxToolBarToolBase *result;
16178 PyObject * obj0 = 0 ;
16179 PyObject * obj1 = 0 ;
16180 char *kwnames[] = {
16181 (char *) "self",(char *) "id", NULL
16182 };
16183
16184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
16185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16187 arg2 = (int) SWIG_AsInt(obj1);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 {
16190 PyThreadState* __tstate = wxPyBeginAllowThreads();
16191 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
16192
16193 wxPyEndAllowThreads(__tstate);
16194 if (PyErr_Occurred()) SWIG_fail;
16195 }
16196 {
16197 resultobj = wxPyMake_wxObject(result);
16198 }
16199 return resultobj;
16200 fail:
16201 return NULL;
16202 }
16203
16204
16205 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16206 PyObject *resultobj;
16207 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16208 size_t arg2 ;
16209 bool result;
16210 PyObject * obj0 = 0 ;
16211 PyObject * obj1 = 0 ;
16212 char *kwnames[] = {
16213 (char *) "self",(char *) "pos", NULL
16214 };
16215
16216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
16217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16219 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 {
16222 PyThreadState* __tstate = wxPyBeginAllowThreads();
16223 result = (bool)(arg1)->DeleteToolByPos(arg2);
16224
16225 wxPyEndAllowThreads(__tstate);
16226 if (PyErr_Occurred()) SWIG_fail;
16227 }
16228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16229 return resultobj;
16230 fail:
16231 return NULL;
16232 }
16233
16234
16235 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16236 PyObject *resultobj;
16237 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16238 int arg2 ;
16239 bool result;
16240 PyObject * obj0 = 0 ;
16241 PyObject * obj1 = 0 ;
16242 char *kwnames[] = {
16243 (char *) "self",(char *) "id", NULL
16244 };
16245
16246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
16247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16249 arg2 = (int) SWIG_AsInt(obj1);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 {
16252 PyThreadState* __tstate = wxPyBeginAllowThreads();
16253 result = (bool)(arg1)->DeleteTool(arg2);
16254
16255 wxPyEndAllowThreads(__tstate);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16259 return resultobj;
16260 fail:
16261 return NULL;
16262 }
16263
16264
16265 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
16266 PyObject *resultobj;
16267 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16268 PyObject * obj0 = 0 ;
16269 char *kwnames[] = {
16270 (char *) "self", NULL
16271 };
16272
16273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
16274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 (arg1)->ClearTools();
16279
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 Py_INCREF(Py_None); resultobj = Py_None;
16284 return resultobj;
16285 fail:
16286 return NULL;
16287 }
16288
16289
16290 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
16291 PyObject *resultobj;
16292 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16293 bool result;
16294 PyObject * obj0 = 0 ;
16295 char *kwnames[] = {
16296 (char *) "self", NULL
16297 };
16298
16299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
16300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 result = (bool)(arg1)->Realize();
16305
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16310 return resultobj;
16311 fail:
16312 return NULL;
16313 }
16314
16315
16316 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16317 PyObject *resultobj;
16318 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16319 int arg2 ;
16320 bool arg3 ;
16321 PyObject * obj0 = 0 ;
16322 PyObject * obj1 = 0 ;
16323 PyObject * obj2 = 0 ;
16324 char *kwnames[] = {
16325 (char *) "self",(char *) "id",(char *) "enable", NULL
16326 };
16327
16328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16331 arg2 = (int) SWIG_AsInt(obj1);
16332 if (PyErr_Occurred()) SWIG_fail;
16333 arg3 = (bool) SWIG_AsBool(obj2);
16334 if (PyErr_Occurred()) SWIG_fail;
16335 {
16336 PyThreadState* __tstate = wxPyBeginAllowThreads();
16337 (arg1)->EnableTool(arg2,arg3);
16338
16339 wxPyEndAllowThreads(__tstate);
16340 if (PyErr_Occurred()) SWIG_fail;
16341 }
16342 Py_INCREF(Py_None); resultobj = Py_None;
16343 return resultobj;
16344 fail:
16345 return NULL;
16346 }
16347
16348
16349 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16350 PyObject *resultobj;
16351 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16352 int arg2 ;
16353 bool arg3 ;
16354 PyObject * obj0 = 0 ;
16355 PyObject * obj1 = 0 ;
16356 PyObject * obj2 = 0 ;
16357 char *kwnames[] = {
16358 (char *) "self",(char *) "id",(char *) "toggle", NULL
16359 };
16360
16361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16364 arg2 = (int) SWIG_AsInt(obj1);
16365 if (PyErr_Occurred()) SWIG_fail;
16366 arg3 = (bool) SWIG_AsBool(obj2);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 {
16369 PyThreadState* __tstate = wxPyBeginAllowThreads();
16370 (arg1)->ToggleTool(arg2,arg3);
16371
16372 wxPyEndAllowThreads(__tstate);
16373 if (PyErr_Occurred()) SWIG_fail;
16374 }
16375 Py_INCREF(Py_None); resultobj = Py_None;
16376 return resultobj;
16377 fail:
16378 return NULL;
16379 }
16380
16381
16382 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16383 PyObject *resultobj;
16384 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16385 int arg2 ;
16386 bool arg3 ;
16387 PyObject * obj0 = 0 ;
16388 PyObject * obj1 = 0 ;
16389 PyObject * obj2 = 0 ;
16390 char *kwnames[] = {
16391 (char *) "self",(char *) "id",(char *) "toggle", NULL
16392 };
16393
16394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
16395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16397 arg2 = (int) SWIG_AsInt(obj1);
16398 if (PyErr_Occurred()) SWIG_fail;
16399 arg3 = (bool) SWIG_AsBool(obj2);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 {
16402 PyThreadState* __tstate = wxPyBeginAllowThreads();
16403 (arg1)->SetToggle(arg2,arg3);
16404
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 Py_INCREF(Py_None); resultobj = Py_None;
16409 return resultobj;
16410 fail:
16411 return NULL;
16412 }
16413
16414
16415 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16416 PyObject *resultobj;
16417 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16418 int arg2 ;
16419 PyObject *result;
16420 PyObject * obj0 = 0 ;
16421 PyObject * obj1 = 0 ;
16422 char *kwnames[] = {
16423 (char *) "self",(char *) "id", NULL
16424 };
16425
16426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
16427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16429 arg2 = (int) SWIG_AsInt(obj1);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 {
16432 PyThreadState* __tstate = wxPyBeginAllowThreads();
16433 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
16434
16435 wxPyEndAllowThreads(__tstate);
16436 if (PyErr_Occurred()) SWIG_fail;
16437 }
16438 resultobj = result;
16439 return resultobj;
16440 fail:
16441 return NULL;
16442 }
16443
16444
16445 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16446 PyObject *resultobj;
16447 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16448 int arg2 ;
16449 PyObject *arg3 = (PyObject *) 0 ;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 PyObject * obj2 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self",(char *) "id",(char *) "clientData", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
16458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16460 arg2 = (int) SWIG_AsInt(obj1);
16461 if (PyErr_Occurred()) SWIG_fail;
16462 arg3 = obj2;
16463 {
16464 PyThreadState* __tstate = wxPyBeginAllowThreads();
16465 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
16466
16467 wxPyEndAllowThreads(__tstate);
16468 if (PyErr_Occurred()) SWIG_fail;
16469 }
16470 Py_INCREF(Py_None); resultobj = Py_None;
16471 return resultobj;
16472 fail:
16473 return NULL;
16474 }
16475
16476
16477 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16478 PyObject *resultobj;
16479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16480 int arg2 ;
16481 int result;
16482 PyObject * obj0 = 0 ;
16483 PyObject * obj1 = 0 ;
16484 char *kwnames[] = {
16485 (char *) "self",(char *) "id", NULL
16486 };
16487
16488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
16489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16491 arg2 = (int) SWIG_AsInt(obj1);
16492 if (PyErr_Occurred()) SWIG_fail;
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
16496
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 resultobj = SWIG_FromInt((int)result);
16501 return resultobj;
16502 fail:
16503 return NULL;
16504 }
16505
16506
16507 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
16508 PyObject *resultobj;
16509 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16510 int arg2 ;
16511 bool result;
16512 PyObject * obj0 = 0 ;
16513 PyObject * obj1 = 0 ;
16514 char *kwnames[] = {
16515 (char *) "self",(char *) "id", NULL
16516 };
16517
16518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
16519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16521 arg2 = (int) SWIG_AsInt(obj1);
16522 if (PyErr_Occurred()) SWIG_fail;
16523 {
16524 PyThreadState* __tstate = wxPyBeginAllowThreads();
16525 result = (bool)(arg1)->GetToolState(arg2);
16526
16527 wxPyEndAllowThreads(__tstate);
16528 if (PyErr_Occurred()) SWIG_fail;
16529 }
16530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16531 return resultobj;
16532 fail:
16533 return NULL;
16534 }
16535
16536
16537 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
16538 PyObject *resultobj;
16539 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16540 int arg2 ;
16541 bool result;
16542 PyObject * obj0 = 0 ;
16543 PyObject * obj1 = 0 ;
16544 char *kwnames[] = {
16545 (char *) "self",(char *) "id", NULL
16546 };
16547
16548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
16549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16551 arg2 = (int) SWIG_AsInt(obj1);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 {
16554 PyThreadState* __tstate = wxPyBeginAllowThreads();
16555 result = (bool)(arg1)->GetToolEnabled(arg2);
16556
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16561 return resultobj;
16562 fail:
16563 return NULL;
16564 }
16565
16566
16567 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16568 PyObject *resultobj;
16569 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16570 int arg2 ;
16571 wxString *arg3 = 0 ;
16572 bool temp3 = False ;
16573 PyObject * obj0 = 0 ;
16574 PyObject * obj1 = 0 ;
16575 PyObject * obj2 = 0 ;
16576 char *kwnames[] = {
16577 (char *) "self",(char *) "id",(char *) "helpString", NULL
16578 };
16579
16580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16583 arg2 = (int) SWIG_AsInt(obj1);
16584 if (PyErr_Occurred()) SWIG_fail;
16585 {
16586 arg3 = wxString_in_helper(obj2);
16587 if (arg3 == NULL) SWIG_fail;
16588 temp3 = True;
16589 }
16590 {
16591 PyThreadState* __tstate = wxPyBeginAllowThreads();
16592 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
16593
16594 wxPyEndAllowThreads(__tstate);
16595 if (PyErr_Occurred()) SWIG_fail;
16596 }
16597 Py_INCREF(Py_None); resultobj = Py_None;
16598 {
16599 if (temp3)
16600 delete arg3;
16601 }
16602 return resultobj;
16603 fail:
16604 {
16605 if (temp3)
16606 delete arg3;
16607 }
16608 return NULL;
16609 }
16610
16611
16612 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16613 PyObject *resultobj;
16614 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16615 int arg2 ;
16616 wxString result;
16617 PyObject * obj0 = 0 ;
16618 PyObject * obj1 = 0 ;
16619 char *kwnames[] = {
16620 (char *) "self",(char *) "id", NULL
16621 };
16622
16623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
16624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16626 arg2 = (int) SWIG_AsInt(obj1);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 {
16629 PyThreadState* __tstate = wxPyBeginAllowThreads();
16630 result = (arg1)->GetToolShortHelp(arg2);
16631
16632 wxPyEndAllowThreads(__tstate);
16633 if (PyErr_Occurred()) SWIG_fail;
16634 }
16635 {
16636 #if wxUSE_UNICODE
16637 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16638 #else
16639 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16640 #endif
16641 }
16642 return resultobj;
16643 fail:
16644 return NULL;
16645 }
16646
16647
16648 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16649 PyObject *resultobj;
16650 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16651 int arg2 ;
16652 wxString *arg3 = 0 ;
16653 bool temp3 = False ;
16654 PyObject * obj0 = 0 ;
16655 PyObject * obj1 = 0 ;
16656 PyObject * obj2 = 0 ;
16657 char *kwnames[] = {
16658 (char *) "self",(char *) "id",(char *) "helpString", NULL
16659 };
16660
16661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16664 arg2 = (int) SWIG_AsInt(obj1);
16665 if (PyErr_Occurred()) SWIG_fail;
16666 {
16667 arg3 = wxString_in_helper(obj2);
16668 if (arg3 == NULL) SWIG_fail;
16669 temp3 = True;
16670 }
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
16674
16675 wxPyEndAllowThreads(__tstate);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
16678 Py_INCREF(Py_None); resultobj = Py_None;
16679 {
16680 if (temp3)
16681 delete arg3;
16682 }
16683 return resultobj;
16684 fail:
16685 {
16686 if (temp3)
16687 delete arg3;
16688 }
16689 return NULL;
16690 }
16691
16692
16693 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16694 PyObject *resultobj;
16695 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16696 int arg2 ;
16697 wxString result;
16698 PyObject * obj0 = 0 ;
16699 PyObject * obj1 = 0 ;
16700 char *kwnames[] = {
16701 (char *) "self",(char *) "id", NULL
16702 };
16703
16704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
16705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16707 arg2 = (int) SWIG_AsInt(obj1);
16708 if (PyErr_Occurred()) SWIG_fail;
16709 {
16710 PyThreadState* __tstate = wxPyBeginAllowThreads();
16711 result = (arg1)->GetToolLongHelp(arg2);
16712
16713 wxPyEndAllowThreads(__tstate);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 }
16716 {
16717 #if wxUSE_UNICODE
16718 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16719 #else
16720 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16721 #endif
16722 }
16723 return resultobj;
16724 fail:
16725 return NULL;
16726 }
16727
16728
16729 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
16730 PyObject *resultobj;
16731 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16732 int arg2 ;
16733 int arg3 ;
16734 PyObject * obj0 = 0 ;
16735 PyObject * obj1 = 0 ;
16736 PyObject * obj2 = 0 ;
16737 char *kwnames[] = {
16738 (char *) "self",(char *) "x",(char *) "y", NULL
16739 };
16740
16741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
16742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16744 arg2 = (int) SWIG_AsInt(obj1);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 arg3 = (int) SWIG_AsInt(obj2);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 {
16749 PyThreadState* __tstate = wxPyBeginAllowThreads();
16750 (arg1)->SetMargins(arg2,arg3);
16751
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 Py_INCREF(Py_None); resultobj = Py_None;
16756 return resultobj;
16757 fail:
16758 return NULL;
16759 }
16760
16761
16762 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16763 PyObject *resultobj;
16764 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16765 wxSize *arg2 = 0 ;
16766 wxSize temp2 ;
16767 PyObject * obj0 = 0 ;
16768 PyObject * obj1 = 0 ;
16769 char *kwnames[] = {
16770 (char *) "self",(char *) "size", NULL
16771 };
16772
16773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
16774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16776 {
16777 arg2 = &temp2;
16778 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16779 }
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 (arg1)->SetMargins((wxSize const &)*arg2);
16783
16784 wxPyEndAllowThreads(__tstate);
16785 if (PyErr_Occurred()) SWIG_fail;
16786 }
16787 Py_INCREF(Py_None); resultobj = Py_None;
16788 return resultobj;
16789 fail:
16790 return NULL;
16791 }
16792
16793
16794 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
16795 PyObject *resultobj;
16796 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16797 int arg2 ;
16798 PyObject * obj0 = 0 ;
16799 PyObject * obj1 = 0 ;
16800 char *kwnames[] = {
16801 (char *) "self",(char *) "packing", NULL
16802 };
16803
16804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
16805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16807 arg2 = (int) SWIG_AsInt(obj1);
16808 if (PyErr_Occurred()) SWIG_fail;
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 (arg1)->SetToolPacking(arg2);
16812
16813 wxPyEndAllowThreads(__tstate);
16814 if (PyErr_Occurred()) SWIG_fail;
16815 }
16816 Py_INCREF(Py_None); resultobj = Py_None;
16817 return resultobj;
16818 fail:
16819 return NULL;
16820 }
16821
16822
16823 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
16824 PyObject *resultobj;
16825 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16826 int arg2 ;
16827 PyObject * obj0 = 0 ;
16828 PyObject * obj1 = 0 ;
16829 char *kwnames[] = {
16830 (char *) "self",(char *) "separation", NULL
16831 };
16832
16833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
16834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16836 arg2 = (int) SWIG_AsInt(obj1);
16837 if (PyErr_Occurred()) SWIG_fail;
16838 {
16839 PyThreadState* __tstate = wxPyBeginAllowThreads();
16840 (arg1)->SetToolSeparation(arg2);
16841
16842 wxPyEndAllowThreads(__tstate);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 Py_INCREF(Py_None); resultobj = Py_None;
16846 return resultobj;
16847 fail:
16848 return NULL;
16849 }
16850
16851
16852 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16853 PyObject *resultobj;
16854 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16855 wxSize result;
16856 PyObject * obj0 = 0 ;
16857 char *kwnames[] = {
16858 (char *) "self", NULL
16859 };
16860
16861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
16862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16864 {
16865 PyThreadState* __tstate = wxPyBeginAllowThreads();
16866 result = (arg1)->GetToolMargins();
16867
16868 wxPyEndAllowThreads(__tstate);
16869 if (PyErr_Occurred()) SWIG_fail;
16870 }
16871 {
16872 wxSize * resultptr;
16873 resultptr = new wxSize((wxSize &) result);
16874 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16875 }
16876 return resultobj;
16877 fail:
16878 return NULL;
16879 }
16880
16881
16882 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16883 PyObject *resultobj;
16884 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16885 wxSize result;
16886 PyObject * obj0 = 0 ;
16887 char *kwnames[] = {
16888 (char *) "self", NULL
16889 };
16890
16891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
16892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16894 {
16895 PyThreadState* __tstate = wxPyBeginAllowThreads();
16896 result = (arg1)->GetMargins();
16897
16898 wxPyEndAllowThreads(__tstate);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 {
16902 wxSize * resultptr;
16903 resultptr = new wxSize((wxSize &) result);
16904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16905 }
16906 return resultobj;
16907 fail:
16908 return NULL;
16909 }
16910
16911
16912 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
16913 PyObject *resultobj;
16914 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16915 int result;
16916 PyObject * obj0 = 0 ;
16917 char *kwnames[] = {
16918 (char *) "self", NULL
16919 };
16920
16921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
16922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 result = (int)(arg1)->GetToolPacking();
16927
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 resultobj = SWIG_FromInt((int)result);
16932 return resultobj;
16933 fail:
16934 return NULL;
16935 }
16936
16937
16938 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj;
16940 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16941 int result;
16942 PyObject * obj0 = 0 ;
16943 char *kwnames[] = {
16944 (char *) "self", NULL
16945 };
16946
16947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
16948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16950 {
16951 PyThreadState* __tstate = wxPyBeginAllowThreads();
16952 result = (int)(arg1)->GetToolSeparation();
16953
16954 wxPyEndAllowThreads(__tstate);
16955 if (PyErr_Occurred()) SWIG_fail;
16956 }
16957 resultobj = SWIG_FromInt((int)result);
16958 return resultobj;
16959 fail:
16960 return NULL;
16961 }
16962
16963
16964 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
16965 PyObject *resultobj;
16966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16967 int arg2 ;
16968 PyObject * obj0 = 0 ;
16969 PyObject * obj1 = 0 ;
16970 char *kwnames[] = {
16971 (char *) "self",(char *) "nRows", NULL
16972 };
16973
16974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
16975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16977 arg2 = (int) SWIG_AsInt(obj1);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 {
16980 PyThreadState* __tstate = wxPyBeginAllowThreads();
16981 (arg1)->SetRows(arg2);
16982
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 Py_INCREF(Py_None); resultobj = Py_None;
16987 return resultobj;
16988 fail:
16989 return NULL;
16990 }
16991
16992
16993 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
16994 PyObject *resultobj;
16995 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16996 int arg2 ;
16997 int arg3 ;
16998 PyObject * obj0 = 0 ;
16999 PyObject * obj1 = 0 ;
17000 PyObject * obj2 = 0 ;
17001 char *kwnames[] = {
17002 (char *) "self",(char *) "rows",(char *) "cols", NULL
17003 };
17004
17005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
17006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17008 arg2 = (int) SWIG_AsInt(obj1);
17009 if (PyErr_Occurred()) SWIG_fail;
17010 arg3 = (int) SWIG_AsInt(obj2);
17011 if (PyErr_Occurred()) SWIG_fail;
17012 {
17013 PyThreadState* __tstate = wxPyBeginAllowThreads();
17014 (arg1)->SetMaxRowsCols(arg2,arg3);
17015
17016 wxPyEndAllowThreads(__tstate);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
17019 Py_INCREF(Py_None); resultobj = Py_None;
17020 return resultobj;
17021 fail:
17022 return NULL;
17023 }
17024
17025
17026 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17027 PyObject *resultobj;
17028 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17029 int result;
17030 PyObject * obj0 = 0 ;
17031 char *kwnames[] = {
17032 (char *) "self", NULL
17033 };
17034
17035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
17036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
17040 result = (int)(arg1)->GetMaxRows();
17041
17042 wxPyEndAllowThreads(__tstate);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 resultobj = SWIG_FromInt((int)result);
17046 return resultobj;
17047 fail:
17048 return NULL;
17049 }
17050
17051
17052 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17053 PyObject *resultobj;
17054 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17055 int result;
17056 PyObject * obj0 = 0 ;
17057 char *kwnames[] = {
17058 (char *) "self", NULL
17059 };
17060
17061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
17062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17064 {
17065 PyThreadState* __tstate = wxPyBeginAllowThreads();
17066 result = (int)(arg1)->GetMaxCols();
17067
17068 wxPyEndAllowThreads(__tstate);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 resultobj = SWIG_FromInt((int)result);
17072 return resultobj;
17073 fail:
17074 return NULL;
17075 }
17076
17077
17078 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17079 PyObject *resultobj;
17080 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17081 wxSize *arg2 = 0 ;
17082 wxSize temp2 ;
17083 PyObject * obj0 = 0 ;
17084 PyObject * obj1 = 0 ;
17085 char *kwnames[] = {
17086 (char *) "self",(char *) "size", NULL
17087 };
17088
17089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
17090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17092 {
17093 arg2 = &temp2;
17094 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17095 }
17096 {
17097 PyThreadState* __tstate = wxPyBeginAllowThreads();
17098 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
17099
17100 wxPyEndAllowThreads(__tstate);
17101 if (PyErr_Occurred()) SWIG_fail;
17102 }
17103 Py_INCREF(Py_None); resultobj = Py_None;
17104 return resultobj;
17105 fail:
17106 return NULL;
17107 }
17108
17109
17110 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17111 PyObject *resultobj;
17112 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17113 wxSize result;
17114 PyObject * obj0 = 0 ;
17115 char *kwnames[] = {
17116 (char *) "self", NULL
17117 };
17118
17119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
17120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17122 {
17123 PyThreadState* __tstate = wxPyBeginAllowThreads();
17124 result = (arg1)->GetToolBitmapSize();
17125
17126 wxPyEndAllowThreads(__tstate);
17127 if (PyErr_Occurred()) SWIG_fail;
17128 }
17129 {
17130 wxSize * resultptr;
17131 resultptr = new wxSize((wxSize &) result);
17132 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17133 }
17134 return resultobj;
17135 fail:
17136 return NULL;
17137 }
17138
17139
17140 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17141 PyObject *resultobj;
17142 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17143 wxSize result;
17144 PyObject * obj0 = 0 ;
17145 char *kwnames[] = {
17146 (char *) "self", NULL
17147 };
17148
17149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
17150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17152 {
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 result = (arg1)->GetToolSize();
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
17160 wxSize * resultptr;
17161 resultptr = new wxSize((wxSize &) result);
17162 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17163 }
17164 return resultobj;
17165 fail:
17166 return NULL;
17167 }
17168
17169
17170 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17171 PyObject *resultobj;
17172 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17173 int arg2 ;
17174 int arg3 ;
17175 wxToolBarToolBase *result;
17176 PyObject * obj0 = 0 ;
17177 PyObject * obj1 = 0 ;
17178 PyObject * obj2 = 0 ;
17179 char *kwnames[] = {
17180 (char *) "self",(char *) "x",(char *) "y", NULL
17181 };
17182
17183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17186 arg2 = (int) SWIG_AsInt(obj1);
17187 if (PyErr_Occurred()) SWIG_fail;
17188 arg3 = (int) SWIG_AsInt(obj2);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17193
17194 wxPyEndAllowThreads(__tstate);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 }
17197 {
17198 resultobj = wxPyMake_wxObject(result);
17199 }
17200 return resultobj;
17201 fail:
17202 return NULL;
17203 }
17204
17205
17206 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
17207 PyObject *resultobj;
17208 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17209 int arg2 ;
17210 wxToolBarToolBase *result;
17211 PyObject * obj0 = 0 ;
17212 PyObject * obj1 = 0 ;
17213 char *kwnames[] = {
17214 (char *) "self",(char *) "toolid", NULL
17215 };
17216
17217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
17218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17220 arg2 = (int) SWIG_AsInt(obj1);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
17225
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 {
17230 resultobj = wxPyMake_wxObject(result);
17231 }
17232 return resultobj;
17233 fail:
17234 return NULL;
17235 }
17236
17237
17238 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
17239 PyObject *resultobj;
17240 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17241 bool result;
17242 PyObject * obj0 = 0 ;
17243 char *kwnames[] = {
17244 (char *) "self", NULL
17245 };
17246
17247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
17248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17250 {
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 result = (bool)(arg1)->IsVertical();
17253
17254 wxPyEndAllowThreads(__tstate);
17255 if (PyErr_Occurred()) SWIG_fail;
17256 }
17257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17258 return resultobj;
17259 fail:
17260 return NULL;
17261 }
17262
17263
17264 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
17265 PyObject *obj;
17266 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17267 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
17268 Py_INCREF(obj);
17269 return Py_BuildValue((char *)"");
17270 }
17271 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17272 PyObject *resultobj;
17273 wxWindow *arg1 = (wxWindow *) 0 ;
17274 int arg2 ;
17275 wxPoint const &arg3_defvalue = wxDefaultPosition ;
17276 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
17277 wxSize const &arg4_defvalue = wxDefaultSize ;
17278 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
17279 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17280 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
17281 wxString *arg6 = (wxString *) &arg6_defvalue ;
17282 wxToolBar *result;
17283 wxPoint temp3 ;
17284 wxSize temp4 ;
17285 bool temp6 = False ;
17286 PyObject * obj0 = 0 ;
17287 PyObject * obj1 = 0 ;
17288 PyObject * obj2 = 0 ;
17289 PyObject * obj3 = 0 ;
17290 PyObject * obj4 = 0 ;
17291 PyObject * obj5 = 0 ;
17292 char *kwnames[] = {
17293 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17294 };
17295
17296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17299 arg2 = (int) SWIG_AsInt(obj1);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 if (obj2) {
17302 {
17303 arg3 = &temp3;
17304 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17305 }
17306 }
17307 if (obj3) {
17308 {
17309 arg4 = &temp4;
17310 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
17311 }
17312 }
17313 if (obj4) {
17314 arg5 = (long) SWIG_AsLong(obj4);
17315 if (PyErr_Occurred()) SWIG_fail;
17316 }
17317 if (obj5) {
17318 {
17319 arg6 = wxString_in_helper(obj5);
17320 if (arg6 == NULL) SWIG_fail;
17321 temp6 = True;
17322 }
17323 }
17324 {
17325 PyThreadState* __tstate = wxPyBeginAllowThreads();
17326 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
17327
17328 wxPyEndAllowThreads(__tstate);
17329 if (PyErr_Occurred()) SWIG_fail;
17330 }
17331 {
17332 resultobj = wxPyMake_wxObject(result);
17333 }
17334 {
17335 if (temp6)
17336 delete arg6;
17337 }
17338 return resultobj;
17339 fail:
17340 {
17341 if (temp6)
17342 delete arg6;
17343 }
17344 return NULL;
17345 }
17346
17347
17348 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17349 PyObject *resultobj;
17350 wxToolBar *result;
17351 char *kwnames[] = {
17352 NULL
17353 };
17354
17355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
17356 {
17357 PyThreadState* __tstate = wxPyBeginAllowThreads();
17358 result = (wxToolBar *)new wxToolBar();
17359
17360 wxPyEndAllowThreads(__tstate);
17361 if (PyErr_Occurred()) SWIG_fail;
17362 }
17363 {
17364 resultobj = wxPyMake_wxObject(result);
17365 }
17366 return resultobj;
17367 fail:
17368 return NULL;
17369 }
17370
17371
17372 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
17373 PyObject *resultobj;
17374 wxToolBar *arg1 = (wxToolBar *) 0 ;
17375 wxWindow *arg2 = (wxWindow *) 0 ;
17376 int arg3 ;
17377 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17378 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17379 wxSize const &arg5_defvalue = wxDefaultSize ;
17380 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17381 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17382 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
17383 wxString *arg7 = (wxString *) &arg7_defvalue ;
17384 bool result;
17385 wxPoint temp4 ;
17386 wxSize temp5 ;
17387 bool temp7 = False ;
17388 PyObject * obj0 = 0 ;
17389 PyObject * obj1 = 0 ;
17390 PyObject * obj2 = 0 ;
17391 PyObject * obj3 = 0 ;
17392 PyObject * obj4 = 0 ;
17393 PyObject * obj5 = 0 ;
17394 PyObject * obj6 = 0 ;
17395 char *kwnames[] = {
17396 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17397 };
17398
17399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
17401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17404 arg3 = (int) SWIG_AsInt(obj2);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 if (obj3) {
17407 {
17408 arg4 = &temp4;
17409 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17410 }
17411 }
17412 if (obj4) {
17413 {
17414 arg5 = &temp5;
17415 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17416 }
17417 }
17418 if (obj5) {
17419 arg6 = (long) SWIG_AsLong(obj5);
17420 if (PyErr_Occurred()) SWIG_fail;
17421 }
17422 if (obj6) {
17423 {
17424 arg7 = wxString_in_helper(obj6);
17425 if (arg7 == NULL) SWIG_fail;
17426 temp7 = True;
17427 }
17428 }
17429 {
17430 PyThreadState* __tstate = wxPyBeginAllowThreads();
17431 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
17432
17433 wxPyEndAllowThreads(__tstate);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 }
17436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17437 {
17438 if (temp7)
17439 delete arg7;
17440 }
17441 return resultobj;
17442 fail:
17443 {
17444 if (temp7)
17445 delete arg7;
17446 }
17447 return NULL;
17448 }
17449
17450
17451 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17452 PyObject *resultobj;
17453 wxToolBar *arg1 = (wxToolBar *) 0 ;
17454 int arg2 ;
17455 int arg3 ;
17456 wxToolBarToolBase *result;
17457 PyObject * obj0 = 0 ;
17458 PyObject * obj1 = 0 ;
17459 PyObject * obj2 = 0 ;
17460 char *kwnames[] = {
17461 (char *) "self",(char *) "x",(char *) "y", NULL
17462 };
17463
17464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
17466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17467 arg2 = (int) SWIG_AsInt(obj1);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 arg3 = (int) SWIG_AsInt(obj2);
17470 if (PyErr_Occurred()) SWIG_fail;
17471 {
17472 PyThreadState* __tstate = wxPyBeginAllowThreads();
17473 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17474
17475 wxPyEndAllowThreads(__tstate);
17476 if (PyErr_Occurred()) SWIG_fail;
17477 }
17478 {
17479 resultobj = wxPyMake_wxObject(result);
17480 }
17481 return resultobj;
17482 fail:
17483 return NULL;
17484 }
17485
17486
17487 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
17488 PyObject *obj;
17489 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17490 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
17491 Py_INCREF(obj);
17492 return Py_BuildValue((char *)"");
17493 }
17494 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
17495 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
17496 return 1;
17497 }
17498
17499
17500 static PyObject *_wrap_ListCtrlNameStr_get() {
17501 PyObject *pyobj;
17502
17503 {
17504 #if wxUSE_UNICODE
17505 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17506 #else
17507 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17508 #endif
17509 }
17510 return pyobj;
17511 }
17512
17513
17514 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
17515 PyObject *resultobj;
17516 wxColour const &arg1_defvalue = wxNullColour ;
17517 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
17518 wxColour const &arg2_defvalue = wxNullColour ;
17519 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
17520 wxFont const &arg3_defvalue = wxNullFont ;
17521 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
17522 wxListItemAttr *result;
17523 wxColour temp1 ;
17524 wxColour temp2 ;
17525 PyObject * obj0 = 0 ;
17526 PyObject * obj1 = 0 ;
17527 PyObject * obj2 = 0 ;
17528 char *kwnames[] = {
17529 (char *) "colText",(char *) "colBack",(char *) "font", NULL
17530 };
17531
17532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
17533 if (obj0) {
17534 {
17535 arg1 = &temp1;
17536 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
17537 }
17538 }
17539 if (obj1) {
17540 {
17541 arg2 = &temp2;
17542 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17543 }
17544 }
17545 if (obj2) {
17546 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
17547 SWIG_POINTER_EXCEPTION | 0)) == -1)
17548 SWIG_fail;
17549 if (arg3 == NULL) {
17550 PyErr_SetString(PyExc_TypeError,"null reference");
17551 SWIG_fail;
17552 }
17553 }
17554 {
17555 PyThreadState* __tstate = wxPyBeginAllowThreads();
17556 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
17557
17558 wxPyEndAllowThreads(__tstate);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
17562 return resultobj;
17563 fail:
17564 return NULL;
17565 }
17566
17567
17568 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17569 PyObject *resultobj;
17570 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17571 wxColour *arg2 = 0 ;
17572 wxColour temp2 ;
17573 PyObject * obj0 = 0 ;
17574 PyObject * obj1 = 0 ;
17575 char *kwnames[] = {
17576 (char *) "self",(char *) "colText", NULL
17577 };
17578
17579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
17580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17582 {
17583 arg2 = &temp2;
17584 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17585 }
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 (arg1)->SetTextColour((wxColour const &)*arg2);
17589
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 Py_INCREF(Py_None); resultobj = Py_None;
17594 return resultobj;
17595 fail:
17596 return NULL;
17597 }
17598
17599
17600 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17601 PyObject *resultobj;
17602 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17603 wxColour *arg2 = 0 ;
17604 wxColour temp2 ;
17605 PyObject * obj0 = 0 ;
17606 PyObject * obj1 = 0 ;
17607 char *kwnames[] = {
17608 (char *) "self",(char *) "colBack", NULL
17609 };
17610
17611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
17612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17614 {
17615 arg2 = &temp2;
17616 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17617 }
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 Py_INCREF(Py_None); resultobj = Py_None;
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17635 wxFont *arg2 = 0 ;
17636 PyObject * obj0 = 0 ;
17637 PyObject * obj1 = 0 ;
17638 char *kwnames[] = {
17639 (char *) "self",(char *) "font", NULL
17640 };
17641
17642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
17643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17645 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17646 SWIG_POINTER_EXCEPTION | 0)) == -1)
17647 SWIG_fail;
17648 if (arg2 == NULL) {
17649 PyErr_SetString(PyExc_TypeError,"null reference");
17650 SWIG_fail;
17651 }
17652 {
17653 PyThreadState* __tstate = wxPyBeginAllowThreads();
17654 (arg1)->SetFont((wxFont const &)*arg2);
17655
17656 wxPyEndAllowThreads(__tstate);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 }
17659 Py_INCREF(Py_None); resultobj = Py_None;
17660 return resultobj;
17661 fail:
17662 return NULL;
17663 }
17664
17665
17666 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17667 PyObject *resultobj;
17668 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17669 bool result;
17670 PyObject * obj0 = 0 ;
17671 char *kwnames[] = {
17672 (char *) "self", NULL
17673 };
17674
17675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
17676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17678 {
17679 PyThreadState* __tstate = wxPyBeginAllowThreads();
17680 result = (bool)(arg1)->HasTextColour();
17681
17682 wxPyEndAllowThreads(__tstate);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17686 return resultobj;
17687 fail:
17688 return NULL;
17689 }
17690
17691
17692 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17693 PyObject *resultobj;
17694 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17695 bool result;
17696 PyObject * obj0 = 0 ;
17697 char *kwnames[] = {
17698 (char *) "self", NULL
17699 };
17700
17701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
17702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 result = (bool)(arg1)->HasBackgroundColour();
17707
17708 wxPyEndAllowThreads(__tstate);
17709 if (PyErr_Occurred()) SWIG_fail;
17710 }
17711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17712 return resultobj;
17713 fail:
17714 return NULL;
17715 }
17716
17717
17718 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17719 PyObject *resultobj;
17720 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17721 bool result;
17722 PyObject * obj0 = 0 ;
17723 char *kwnames[] = {
17724 (char *) "self", NULL
17725 };
17726
17727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
17728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 result = (bool)(arg1)->HasFont();
17733
17734 wxPyEndAllowThreads(__tstate);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17738 return resultobj;
17739 fail:
17740 return NULL;
17741 }
17742
17743
17744 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17745 PyObject *resultobj;
17746 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17747 wxColour result;
17748 PyObject * obj0 = 0 ;
17749 char *kwnames[] = {
17750 (char *) "self", NULL
17751 };
17752
17753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
17754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17756 {
17757 PyThreadState* __tstate = wxPyBeginAllowThreads();
17758 result = (arg1)->GetTextColour();
17759
17760 wxPyEndAllowThreads(__tstate);
17761 if (PyErr_Occurred()) SWIG_fail;
17762 }
17763 {
17764 wxColour * resultptr;
17765 resultptr = new wxColour((wxColour &) result);
17766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17767 }
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj;
17776 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17777 wxColour result;
17778 PyObject * obj0 = 0 ;
17779 char *kwnames[] = {
17780 (char *) "self", NULL
17781 };
17782
17783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
17784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17786 {
17787 PyThreadState* __tstate = wxPyBeginAllowThreads();
17788 result = (arg1)->GetBackgroundColour();
17789
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 {
17794 wxColour * resultptr;
17795 resultptr = new wxColour((wxColour &) result);
17796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17797 }
17798 return resultobj;
17799 fail:
17800 return NULL;
17801 }
17802
17803
17804 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17805 PyObject *resultobj;
17806 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17807 wxFont result;
17808 PyObject * obj0 = 0 ;
17809 char *kwnames[] = {
17810 (char *) "self", NULL
17811 };
17812
17813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
17814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 result = (arg1)->GetFont();
17819
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 {
17824 wxFont * resultptr;
17825 resultptr = new wxFont((wxFont &) result);
17826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
17827 }
17828 return resultobj;
17829 fail:
17830 return NULL;
17831 }
17832
17833
17834 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
17835 PyObject *resultobj;
17836 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17837 PyObject * obj0 = 0 ;
17838 char *kwnames[] = {
17839 (char *) "self", NULL
17840 };
17841
17842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
17843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
17844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 wxListItemAttr_Destroy(arg1);
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 * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
17860 PyObject *obj;
17861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17862 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
17863 Py_INCREF(obj);
17864 return Py_BuildValue((char *)"");
17865 }
17866 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj;
17868 wxListItem *result;
17869 char *kwnames[] = {
17870 NULL
17871 };
17872
17873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
17874 {
17875 PyThreadState* __tstate = wxPyBeginAllowThreads();
17876 result = (wxListItem *)new wxListItem();
17877
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 {
17882 resultobj = wxPyMake_wxObject(result);
17883 }
17884 return resultobj;
17885 fail:
17886 return NULL;
17887 }
17888
17889
17890 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17891 PyObject *resultobj;
17892 wxListItem *arg1 = (wxListItem *) 0 ;
17893 PyObject * obj0 = 0 ;
17894 char *kwnames[] = {
17895 (char *) "self", NULL
17896 };
17897
17898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
17899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17901 {
17902 PyThreadState* __tstate = wxPyBeginAllowThreads();
17903 delete arg1;
17904
17905 wxPyEndAllowThreads(__tstate);
17906 if (PyErr_Occurred()) SWIG_fail;
17907 }
17908 Py_INCREF(Py_None); resultobj = Py_None;
17909 return resultobj;
17910 fail:
17911 return NULL;
17912 }
17913
17914
17915 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
17916 PyObject *resultobj;
17917 wxListItem *arg1 = (wxListItem *) 0 ;
17918 PyObject * obj0 = 0 ;
17919 char *kwnames[] = {
17920 (char *) "self", NULL
17921 };
17922
17923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
17924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 (arg1)->Clear();
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 Py_INCREF(Py_None); resultobj = Py_None;
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 wxListItem *arg1 = (wxListItem *) 0 ;
17943 PyObject * obj0 = 0 ;
17944 char *kwnames[] = {
17945 (char *) "self", NULL
17946 };
17947
17948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
17949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17951 {
17952 PyThreadState* __tstate = wxPyBeginAllowThreads();
17953 (arg1)->ClearAttributes();
17954
17955 wxPyEndAllowThreads(__tstate);
17956 if (PyErr_Occurred()) SWIG_fail;
17957 }
17958 Py_INCREF(Py_None); resultobj = Py_None;
17959 return resultobj;
17960 fail:
17961 return NULL;
17962 }
17963
17964
17965 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
17966 PyObject *resultobj;
17967 wxListItem *arg1 = (wxListItem *) 0 ;
17968 long arg2 ;
17969 PyObject * obj0 = 0 ;
17970 PyObject * obj1 = 0 ;
17971 char *kwnames[] = {
17972 (char *) "self",(char *) "mask", NULL
17973 };
17974
17975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
17976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
17977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17978 arg2 = (long) SWIG_AsLong(obj1);
17979 if (PyErr_Occurred()) SWIG_fail;
17980 {
17981 PyThreadState* __tstate = wxPyBeginAllowThreads();
17982 (arg1)->SetMask(arg2);
17983
17984 wxPyEndAllowThreads(__tstate);
17985 if (PyErr_Occurred()) SWIG_fail;
17986 }
17987 Py_INCREF(Py_None); resultobj = Py_None;
17988 return resultobj;
17989 fail:
17990 return NULL;
17991 }
17992
17993
17994 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
17995 PyObject *resultobj;
17996 wxListItem *arg1 = (wxListItem *) 0 ;
17997 long arg2 ;
17998 PyObject * obj0 = 0 ;
17999 PyObject * obj1 = 0 ;
18000 char *kwnames[] = {
18001 (char *) "self",(char *) "id", NULL
18002 };
18003
18004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
18005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18007 arg2 = (long) SWIG_AsLong(obj1);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 {
18010 PyThreadState* __tstate = wxPyBeginAllowThreads();
18011 (arg1)->SetId(arg2);
18012
18013 wxPyEndAllowThreads(__tstate);
18014 if (PyErr_Occurred()) SWIG_fail;
18015 }
18016 Py_INCREF(Py_None); resultobj = Py_None;
18017 return resultobj;
18018 fail:
18019 return NULL;
18020 }
18021
18022
18023 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18024 PyObject *resultobj;
18025 wxListItem *arg1 = (wxListItem *) 0 ;
18026 int arg2 ;
18027 PyObject * obj0 = 0 ;
18028 PyObject * obj1 = 0 ;
18029 char *kwnames[] = {
18030 (char *) "self",(char *) "col", NULL
18031 };
18032
18033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
18034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18036 arg2 = (int) SWIG_AsInt(obj1);
18037 if (PyErr_Occurred()) SWIG_fail;
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 (arg1)->SetColumn(arg2);
18041
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 Py_INCREF(Py_None); resultobj = Py_None;
18046 return resultobj;
18047 fail:
18048 return NULL;
18049 }
18050
18051
18052 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj;
18054 wxListItem *arg1 = (wxListItem *) 0 ;
18055 long arg2 ;
18056 PyObject * obj0 = 0 ;
18057 PyObject * obj1 = 0 ;
18058 char *kwnames[] = {
18059 (char *) "self",(char *) "state", NULL
18060 };
18061
18062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
18063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18065 arg2 = (long) SWIG_AsLong(obj1);
18066 if (PyErr_Occurred()) SWIG_fail;
18067 {
18068 PyThreadState* __tstate = wxPyBeginAllowThreads();
18069 (arg1)->SetState(arg2);
18070
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 Py_INCREF(Py_None); resultobj = Py_None;
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18082 PyObject *resultobj;
18083 wxListItem *arg1 = (wxListItem *) 0 ;
18084 long arg2 ;
18085 PyObject * obj0 = 0 ;
18086 PyObject * obj1 = 0 ;
18087 char *kwnames[] = {
18088 (char *) "self",(char *) "stateMask", NULL
18089 };
18090
18091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
18092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18094 arg2 = (long) SWIG_AsLong(obj1);
18095 if (PyErr_Occurred()) SWIG_fail;
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 (arg1)->SetStateMask(arg2);
18099
18100 wxPyEndAllowThreads(__tstate);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
18103 Py_INCREF(Py_None); resultobj = Py_None;
18104 return resultobj;
18105 fail:
18106 return NULL;
18107 }
18108
18109
18110 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18111 PyObject *resultobj;
18112 wxListItem *arg1 = (wxListItem *) 0 ;
18113 wxString *arg2 = 0 ;
18114 bool temp2 = False ;
18115 PyObject * obj0 = 0 ;
18116 PyObject * obj1 = 0 ;
18117 char *kwnames[] = {
18118 (char *) "self",(char *) "text", NULL
18119 };
18120
18121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
18122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18124 {
18125 arg2 = wxString_in_helper(obj1);
18126 if (arg2 == NULL) SWIG_fail;
18127 temp2 = True;
18128 }
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 (arg1)->SetText((wxString const &)*arg2);
18132
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 Py_INCREF(Py_None); resultobj = Py_None;
18137 {
18138 if (temp2)
18139 delete arg2;
18140 }
18141 return resultobj;
18142 fail:
18143 {
18144 if (temp2)
18145 delete arg2;
18146 }
18147 return NULL;
18148 }
18149
18150
18151 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18152 PyObject *resultobj;
18153 wxListItem *arg1 = (wxListItem *) 0 ;
18154 int arg2 ;
18155 PyObject * obj0 = 0 ;
18156 PyObject * obj1 = 0 ;
18157 char *kwnames[] = {
18158 (char *) "self",(char *) "image", NULL
18159 };
18160
18161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
18162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18164 arg2 = (int) SWIG_AsInt(obj1);
18165 if (PyErr_Occurred()) SWIG_fail;
18166 {
18167 PyThreadState* __tstate = wxPyBeginAllowThreads();
18168 (arg1)->SetImage(arg2);
18169
18170 wxPyEndAllowThreads(__tstate);
18171 if (PyErr_Occurred()) SWIG_fail;
18172 }
18173 Py_INCREF(Py_None); resultobj = Py_None;
18174 return resultobj;
18175 fail:
18176 return NULL;
18177 }
18178
18179
18180 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18181 PyObject *resultobj;
18182 wxListItem *arg1 = (wxListItem *) 0 ;
18183 long arg2 ;
18184 PyObject * obj0 = 0 ;
18185 PyObject * obj1 = 0 ;
18186 char *kwnames[] = {
18187 (char *) "self",(char *) "data", NULL
18188 };
18189
18190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
18191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18193 arg2 = (long) SWIG_AsLong(obj1);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 {
18196 PyThreadState* __tstate = wxPyBeginAllowThreads();
18197 (arg1)->SetData(arg2);
18198
18199 wxPyEndAllowThreads(__tstate);
18200 if (PyErr_Occurred()) SWIG_fail;
18201 }
18202 Py_INCREF(Py_None); resultobj = Py_None;
18203 return resultobj;
18204 fail:
18205 return NULL;
18206 }
18207
18208
18209 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18210 PyObject *resultobj;
18211 wxListItem *arg1 = (wxListItem *) 0 ;
18212 int arg2 ;
18213 PyObject * obj0 = 0 ;
18214 PyObject * obj1 = 0 ;
18215 char *kwnames[] = {
18216 (char *) "self",(char *) "width", NULL
18217 };
18218
18219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
18220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18222 arg2 = (int) SWIG_AsInt(obj1);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 {
18225 PyThreadState* __tstate = wxPyBeginAllowThreads();
18226 (arg1)->SetWidth(arg2);
18227
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 Py_INCREF(Py_None); resultobj = Py_None;
18232 return resultobj;
18233 fail:
18234 return NULL;
18235 }
18236
18237
18238 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18239 PyObject *resultobj;
18240 wxListItem *arg1 = (wxListItem *) 0 ;
18241 int arg2 ;
18242 PyObject * obj0 = 0 ;
18243 PyObject * obj1 = 0 ;
18244 char *kwnames[] = {
18245 (char *) "self",(char *) "align", NULL
18246 };
18247
18248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
18249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18251 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 {
18254 PyThreadState* __tstate = wxPyBeginAllowThreads();
18255 (arg1)->SetAlign((wxListColumnFormat )arg2);
18256
18257 wxPyEndAllowThreads(__tstate);
18258 if (PyErr_Occurred()) SWIG_fail;
18259 }
18260 Py_INCREF(Py_None); resultobj = Py_None;
18261 return resultobj;
18262 fail:
18263 return NULL;
18264 }
18265
18266
18267 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18268 PyObject *resultobj;
18269 wxListItem *arg1 = (wxListItem *) 0 ;
18270 wxColour *arg2 = 0 ;
18271 wxColour temp2 ;
18272 PyObject * obj0 = 0 ;
18273 PyObject * obj1 = 0 ;
18274 char *kwnames[] = {
18275 (char *) "self",(char *) "colText", NULL
18276 };
18277
18278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18281 {
18282 arg2 = &temp2;
18283 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18284 }
18285 {
18286 PyThreadState* __tstate = wxPyBeginAllowThreads();
18287 (arg1)->SetTextColour((wxColour const &)*arg2);
18288
18289 wxPyEndAllowThreads(__tstate);
18290 if (PyErr_Occurred()) SWIG_fail;
18291 }
18292 Py_INCREF(Py_None); resultobj = Py_None;
18293 return resultobj;
18294 fail:
18295 return NULL;
18296 }
18297
18298
18299 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18300 PyObject *resultobj;
18301 wxListItem *arg1 = (wxListItem *) 0 ;
18302 wxColour *arg2 = 0 ;
18303 wxColour temp2 ;
18304 PyObject * obj0 = 0 ;
18305 PyObject * obj1 = 0 ;
18306 char *kwnames[] = {
18307 (char *) "self",(char *) "colBack", NULL
18308 };
18309
18310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18313 {
18314 arg2 = &temp2;
18315 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18316 }
18317 {
18318 PyThreadState* __tstate = wxPyBeginAllowThreads();
18319 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18320
18321 wxPyEndAllowThreads(__tstate);
18322 if (PyErr_Occurred()) SWIG_fail;
18323 }
18324 Py_INCREF(Py_None); resultobj = Py_None;
18325 return resultobj;
18326 fail:
18327 return NULL;
18328 }
18329
18330
18331 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18332 PyObject *resultobj;
18333 wxListItem *arg1 = (wxListItem *) 0 ;
18334 wxFont *arg2 = 0 ;
18335 PyObject * obj0 = 0 ;
18336 PyObject * obj1 = 0 ;
18337 char *kwnames[] = {
18338 (char *) "self",(char *) "font", NULL
18339 };
18340
18341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
18342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18345 SWIG_POINTER_EXCEPTION | 0)) == -1)
18346 SWIG_fail;
18347 if (arg2 == NULL) {
18348 PyErr_SetString(PyExc_TypeError,"null reference");
18349 SWIG_fail;
18350 }
18351 {
18352 PyThreadState* __tstate = wxPyBeginAllowThreads();
18353 (arg1)->SetFont((wxFont const &)*arg2);
18354
18355 wxPyEndAllowThreads(__tstate);
18356 if (PyErr_Occurred()) SWIG_fail;
18357 }
18358 Py_INCREF(Py_None); resultobj = Py_None;
18359 return resultobj;
18360 fail:
18361 return NULL;
18362 }
18363
18364
18365 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18366 PyObject *resultobj;
18367 wxListItem *arg1 = (wxListItem *) 0 ;
18368 long result;
18369 PyObject * obj0 = 0 ;
18370 char *kwnames[] = {
18371 (char *) "self", NULL
18372 };
18373
18374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
18375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18377 {
18378 PyThreadState* __tstate = wxPyBeginAllowThreads();
18379 result = (long)(arg1)->GetMask();
18380
18381 wxPyEndAllowThreads(__tstate);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 }
18384 resultobj = SWIG_FromLong((long)result);
18385 return resultobj;
18386 fail:
18387 return NULL;
18388 }
18389
18390
18391 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18392 PyObject *resultobj;
18393 wxListItem *arg1 = (wxListItem *) 0 ;
18394 long result;
18395 PyObject * obj0 = 0 ;
18396 char *kwnames[] = {
18397 (char *) "self", NULL
18398 };
18399
18400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
18401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18403 {
18404 PyThreadState* __tstate = wxPyBeginAllowThreads();
18405 result = (long)(arg1)->GetId();
18406
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_FromLong((long)result);
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj;
18419 wxListItem *arg1 = (wxListItem *) 0 ;
18420 int result;
18421 PyObject * obj0 = 0 ;
18422 char *kwnames[] = {
18423 (char *) "self", NULL
18424 };
18425
18426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
18427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18429 {
18430 PyThreadState* __tstate = wxPyBeginAllowThreads();
18431 result = (int)(arg1)->GetColumn();
18432
18433 wxPyEndAllowThreads(__tstate);
18434 if (PyErr_Occurred()) SWIG_fail;
18435 }
18436 resultobj = SWIG_FromInt((int)result);
18437 return resultobj;
18438 fail:
18439 return NULL;
18440 }
18441
18442
18443 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
18444 PyObject *resultobj;
18445 wxListItem *arg1 = (wxListItem *) 0 ;
18446 long result;
18447 PyObject * obj0 = 0 ;
18448 char *kwnames[] = {
18449 (char *) "self", NULL
18450 };
18451
18452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
18453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18455 {
18456 PyThreadState* __tstate = wxPyBeginAllowThreads();
18457 result = (long)(arg1)->GetState();
18458
18459 wxPyEndAllowThreads(__tstate);
18460 if (PyErr_Occurred()) SWIG_fail;
18461 }
18462 resultobj = SWIG_FromLong((long)result);
18463 return resultobj;
18464 fail:
18465 return NULL;
18466 }
18467
18468
18469 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18470 PyObject *resultobj;
18471 wxListItem *arg1 = (wxListItem *) 0 ;
18472 wxString *result;
18473 PyObject * obj0 = 0 ;
18474 char *kwnames[] = {
18475 (char *) "self", NULL
18476 };
18477
18478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
18479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18481 {
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 {
18484 wxString const &_result_ref = (arg1)->GetText();
18485 result = (wxString *) &_result_ref;
18486 }
18487
18488 wxPyEndAllowThreads(__tstate);
18489 if (PyErr_Occurred()) SWIG_fail;
18490 }
18491 {
18492 #if wxUSE_UNICODE
18493 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18494 #else
18495 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18496 #endif
18497 }
18498 return resultobj;
18499 fail:
18500 return NULL;
18501 }
18502
18503
18504 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18505 PyObject *resultobj;
18506 wxListItem *arg1 = (wxListItem *) 0 ;
18507 int result;
18508 PyObject * obj0 = 0 ;
18509 char *kwnames[] = {
18510 (char *) "self", NULL
18511 };
18512
18513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
18514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18516 {
18517 PyThreadState* __tstate = wxPyBeginAllowThreads();
18518 result = (int)(arg1)->GetImage();
18519
18520 wxPyEndAllowThreads(__tstate);
18521 if (PyErr_Occurred()) SWIG_fail;
18522 }
18523 resultobj = SWIG_FromInt((int)result);
18524 return resultobj;
18525 fail:
18526 return NULL;
18527 }
18528
18529
18530 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18531 PyObject *resultobj;
18532 wxListItem *arg1 = (wxListItem *) 0 ;
18533 long result;
18534 PyObject * obj0 = 0 ;
18535 char *kwnames[] = {
18536 (char *) "self", NULL
18537 };
18538
18539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
18540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18542 {
18543 PyThreadState* __tstate = wxPyBeginAllowThreads();
18544 result = (long)(arg1)->GetData();
18545
18546 wxPyEndAllowThreads(__tstate);
18547 if (PyErr_Occurred()) SWIG_fail;
18548 }
18549 resultobj = SWIG_FromLong((long)result);
18550 return resultobj;
18551 fail:
18552 return NULL;
18553 }
18554
18555
18556 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18557 PyObject *resultobj;
18558 wxListItem *arg1 = (wxListItem *) 0 ;
18559 int result;
18560 PyObject * obj0 = 0 ;
18561 char *kwnames[] = {
18562 (char *) "self", NULL
18563 };
18564
18565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
18566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 result = (int)(arg1)->GetWidth();
18571
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_FromInt((int)result);
18576 return resultobj;
18577 fail:
18578 return NULL;
18579 }
18580
18581
18582 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj;
18584 wxListItem *arg1 = (wxListItem *) 0 ;
18585 int result;
18586 PyObject * obj0 = 0 ;
18587 char *kwnames[] = {
18588 (char *) "self", NULL
18589 };
18590
18591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
18592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18594 {
18595 PyThreadState* __tstate = wxPyBeginAllowThreads();
18596 result = (int)(arg1)->GetAlign();
18597
18598 wxPyEndAllowThreads(__tstate);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 resultobj = SWIG_FromInt((int)result);
18602 return resultobj;
18603 fail:
18604 return NULL;
18605 }
18606
18607
18608 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18609 PyObject *resultobj;
18610 wxListItem *arg1 = (wxListItem *) 0 ;
18611 wxListItemAttr *result;
18612 PyObject * obj0 = 0 ;
18613 char *kwnames[] = {
18614 (char *) "self", NULL
18615 };
18616
18617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
18618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18620 {
18621 PyThreadState* __tstate = wxPyBeginAllowThreads();
18622 result = (wxListItemAttr *)(arg1)->GetAttributes();
18623
18624 wxPyEndAllowThreads(__tstate);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
18628 return resultobj;
18629 fail:
18630 return NULL;
18631 }
18632
18633
18634 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18635 PyObject *resultobj;
18636 wxListItem *arg1 = (wxListItem *) 0 ;
18637 bool result;
18638 PyObject * obj0 = 0 ;
18639 char *kwnames[] = {
18640 (char *) "self", NULL
18641 };
18642
18643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
18644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18646 {
18647 PyThreadState* __tstate = wxPyBeginAllowThreads();
18648 result = (bool)(arg1)->HasAttributes();
18649
18650 wxPyEndAllowThreads(__tstate);
18651 if (PyErr_Occurred()) SWIG_fail;
18652 }
18653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18654 return resultobj;
18655 fail:
18656 return NULL;
18657 }
18658
18659
18660 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18661 PyObject *resultobj;
18662 wxListItem *arg1 = (wxListItem *) 0 ;
18663 wxColour result;
18664 PyObject * obj0 = 0 ;
18665 char *kwnames[] = {
18666 (char *) "self", NULL
18667 };
18668
18669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
18670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18672 {
18673 PyThreadState* __tstate = wxPyBeginAllowThreads();
18674 result = ((wxListItem const *)arg1)->GetTextColour();
18675
18676 wxPyEndAllowThreads(__tstate);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 {
18680 wxColour * resultptr;
18681 resultptr = new wxColour((wxColour &) result);
18682 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18683 }
18684 return resultobj;
18685 fail:
18686 return NULL;
18687 }
18688
18689
18690 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18691 PyObject *resultobj;
18692 wxListItem *arg1 = (wxListItem *) 0 ;
18693 wxColour result;
18694 PyObject * obj0 = 0 ;
18695 char *kwnames[] = {
18696 (char *) "self", NULL
18697 };
18698
18699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
18700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18702 {
18703 PyThreadState* __tstate = wxPyBeginAllowThreads();
18704 result = ((wxListItem const *)arg1)->GetBackgroundColour();
18705
18706 wxPyEndAllowThreads(__tstate);
18707 if (PyErr_Occurred()) SWIG_fail;
18708 }
18709 {
18710 wxColour * resultptr;
18711 resultptr = new wxColour((wxColour &) result);
18712 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18713 }
18714 return resultobj;
18715 fail:
18716 return NULL;
18717 }
18718
18719
18720 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18721 PyObject *resultobj;
18722 wxListItem *arg1 = (wxListItem *) 0 ;
18723 wxFont result;
18724 PyObject * obj0 = 0 ;
18725 char *kwnames[] = {
18726 (char *) "self", NULL
18727 };
18728
18729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
18730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18732 {
18733 PyThreadState* __tstate = wxPyBeginAllowThreads();
18734 result = ((wxListItem const *)arg1)->GetFont();
18735
18736 wxPyEndAllowThreads(__tstate);
18737 if (PyErr_Occurred()) SWIG_fail;
18738 }
18739 {
18740 wxFont * resultptr;
18741 resultptr = new wxFont((wxFont &) result);
18742 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18743 }
18744 return resultobj;
18745 fail:
18746 return NULL;
18747 }
18748
18749
18750 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18751 PyObject *resultobj;
18752 wxListItem *arg1 = (wxListItem *) 0 ;
18753 long arg2 ;
18754 PyObject * obj0 = 0 ;
18755 PyObject * obj1 = 0 ;
18756 char *kwnames[] = {
18757 (char *) "self",(char *) "m_mask", NULL
18758 };
18759
18760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
18761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18763 arg2 = (long) SWIG_AsLong(obj1);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 if (arg1) (arg1)->m_mask = arg2;
18766
18767 Py_INCREF(Py_None); resultobj = Py_None;
18768 return resultobj;
18769 fail:
18770 return NULL;
18771 }
18772
18773
18774 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18775 PyObject *resultobj;
18776 wxListItem *arg1 = (wxListItem *) 0 ;
18777 long result;
18778 PyObject * obj0 = 0 ;
18779 char *kwnames[] = {
18780 (char *) "self", NULL
18781 };
18782
18783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
18784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18786 result = (long) ((arg1)->m_mask);
18787
18788 resultobj = SWIG_FromLong((long)result);
18789 return resultobj;
18790 fail:
18791 return NULL;
18792 }
18793
18794
18795 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18796 PyObject *resultobj;
18797 wxListItem *arg1 = (wxListItem *) 0 ;
18798 long arg2 ;
18799 PyObject * obj0 = 0 ;
18800 PyObject * obj1 = 0 ;
18801 char *kwnames[] = {
18802 (char *) "self",(char *) "m_itemId", NULL
18803 };
18804
18805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
18806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18808 arg2 = (long) SWIG_AsLong(obj1);
18809 if (PyErr_Occurred()) SWIG_fail;
18810 if (arg1) (arg1)->m_itemId = arg2;
18811
18812 Py_INCREF(Py_None); resultobj = Py_None;
18813 return resultobj;
18814 fail:
18815 return NULL;
18816 }
18817
18818
18819 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18820 PyObject *resultobj;
18821 wxListItem *arg1 = (wxListItem *) 0 ;
18822 long result;
18823 PyObject * obj0 = 0 ;
18824 char *kwnames[] = {
18825 (char *) "self", NULL
18826 };
18827
18828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
18829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18831 result = (long) ((arg1)->m_itemId);
18832
18833 resultobj = SWIG_FromLong((long)result);
18834 return resultobj;
18835 fail:
18836 return NULL;
18837 }
18838
18839
18840 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18841 PyObject *resultobj;
18842 wxListItem *arg1 = (wxListItem *) 0 ;
18843 int arg2 ;
18844 PyObject * obj0 = 0 ;
18845 PyObject * obj1 = 0 ;
18846 char *kwnames[] = {
18847 (char *) "self",(char *) "m_col", NULL
18848 };
18849
18850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
18851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18853 arg2 = (int) SWIG_AsInt(obj1);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 if (arg1) (arg1)->m_col = arg2;
18856
18857 Py_INCREF(Py_None); resultobj = Py_None;
18858 return resultobj;
18859 fail:
18860 return NULL;
18861 }
18862
18863
18864 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18865 PyObject *resultobj;
18866 wxListItem *arg1 = (wxListItem *) 0 ;
18867 int result;
18868 PyObject * obj0 = 0 ;
18869 char *kwnames[] = {
18870 (char *) "self", NULL
18871 };
18872
18873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
18874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18876 result = (int) ((arg1)->m_col);
18877
18878 resultobj = SWIG_FromInt((int)result);
18879 return resultobj;
18880 fail:
18881 return NULL;
18882 }
18883
18884
18885 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18886 PyObject *resultobj;
18887 wxListItem *arg1 = (wxListItem *) 0 ;
18888 long arg2 ;
18889 PyObject * obj0 = 0 ;
18890 PyObject * obj1 = 0 ;
18891 char *kwnames[] = {
18892 (char *) "self",(char *) "m_state", NULL
18893 };
18894
18895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
18896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18898 arg2 = (long) SWIG_AsLong(obj1);
18899 if (PyErr_Occurred()) SWIG_fail;
18900 if (arg1) (arg1)->m_state = arg2;
18901
18902 Py_INCREF(Py_None); resultobj = Py_None;
18903 return resultobj;
18904 fail:
18905 return NULL;
18906 }
18907
18908
18909 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18910 PyObject *resultobj;
18911 wxListItem *arg1 = (wxListItem *) 0 ;
18912 long result;
18913 PyObject * obj0 = 0 ;
18914 char *kwnames[] = {
18915 (char *) "self", NULL
18916 };
18917
18918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
18919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18921 result = (long) ((arg1)->m_state);
18922
18923 resultobj = SWIG_FromLong((long)result);
18924 return resultobj;
18925 fail:
18926 return NULL;
18927 }
18928
18929
18930 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18931 PyObject *resultobj;
18932 wxListItem *arg1 = (wxListItem *) 0 ;
18933 long arg2 ;
18934 PyObject * obj0 = 0 ;
18935 PyObject * obj1 = 0 ;
18936 char *kwnames[] = {
18937 (char *) "self",(char *) "m_stateMask", NULL
18938 };
18939
18940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
18941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18943 arg2 = (long) SWIG_AsLong(obj1);
18944 if (PyErr_Occurred()) SWIG_fail;
18945 if (arg1) (arg1)->m_stateMask = arg2;
18946
18947 Py_INCREF(Py_None); resultobj = Py_None;
18948 return resultobj;
18949 fail:
18950 return NULL;
18951 }
18952
18953
18954 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18955 PyObject *resultobj;
18956 wxListItem *arg1 = (wxListItem *) 0 ;
18957 long result;
18958 PyObject * obj0 = 0 ;
18959 char *kwnames[] = {
18960 (char *) "self", NULL
18961 };
18962
18963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
18964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18966 result = (long) ((arg1)->m_stateMask);
18967
18968 resultobj = SWIG_FromLong((long)result);
18969 return resultobj;
18970 fail:
18971 return NULL;
18972 }
18973
18974
18975 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18976 PyObject *resultobj;
18977 wxListItem *arg1 = (wxListItem *) 0 ;
18978 wxString *arg2 = (wxString *) 0 ;
18979 bool temp2 = False ;
18980 PyObject * obj0 = 0 ;
18981 PyObject * obj1 = 0 ;
18982 char *kwnames[] = {
18983 (char *) "self",(char *) "m_text", NULL
18984 };
18985
18986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
18987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18989 {
18990 arg2 = wxString_in_helper(obj1);
18991 if (arg2 == NULL) SWIG_fail;
18992 temp2 = True;
18993 }
18994 if (arg1) (arg1)->m_text = *arg2;
18995
18996 Py_INCREF(Py_None); resultobj = Py_None;
18997 {
18998 if (temp2)
18999 delete arg2;
19000 }
19001 return resultobj;
19002 fail:
19003 {
19004 if (temp2)
19005 delete arg2;
19006 }
19007 return NULL;
19008 }
19009
19010
19011 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19012 PyObject *resultobj;
19013 wxListItem *arg1 = (wxListItem *) 0 ;
19014 wxString *result;
19015 PyObject * obj0 = 0 ;
19016 char *kwnames[] = {
19017 (char *) "self", NULL
19018 };
19019
19020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
19021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19023 result = (wxString *)& ((arg1)->m_text);
19024
19025 {
19026 #if wxUSE_UNICODE
19027 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19028 #else
19029 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19030 #endif
19031 }
19032 return resultobj;
19033 fail:
19034 return NULL;
19035 }
19036
19037
19038 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19039 PyObject *resultobj;
19040 wxListItem *arg1 = (wxListItem *) 0 ;
19041 int arg2 ;
19042 PyObject * obj0 = 0 ;
19043 PyObject * obj1 = 0 ;
19044 char *kwnames[] = {
19045 (char *) "self",(char *) "m_image", NULL
19046 };
19047
19048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
19049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19051 arg2 = (int) SWIG_AsInt(obj1);
19052 if (PyErr_Occurred()) SWIG_fail;
19053 if (arg1) (arg1)->m_image = arg2;
19054
19055 Py_INCREF(Py_None); resultobj = Py_None;
19056 return resultobj;
19057 fail:
19058 return NULL;
19059 }
19060
19061
19062 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19063 PyObject *resultobj;
19064 wxListItem *arg1 = (wxListItem *) 0 ;
19065 int result;
19066 PyObject * obj0 = 0 ;
19067 char *kwnames[] = {
19068 (char *) "self", NULL
19069 };
19070
19071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
19072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19074 result = (int) ((arg1)->m_image);
19075
19076 resultobj = SWIG_FromInt((int)result);
19077 return resultobj;
19078 fail:
19079 return NULL;
19080 }
19081
19082
19083 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19084 PyObject *resultobj;
19085 wxListItem *arg1 = (wxListItem *) 0 ;
19086 long arg2 ;
19087 PyObject * obj0 = 0 ;
19088 PyObject * obj1 = 0 ;
19089 char *kwnames[] = {
19090 (char *) "self",(char *) "m_data", NULL
19091 };
19092
19093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
19094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19096 arg2 = (long) SWIG_AsLong(obj1);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 if (arg1) (arg1)->m_data = arg2;
19099
19100 Py_INCREF(Py_None); resultobj = Py_None;
19101 return resultobj;
19102 fail:
19103 return NULL;
19104 }
19105
19106
19107 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj;
19109 wxListItem *arg1 = (wxListItem *) 0 ;
19110 long result;
19111 PyObject * obj0 = 0 ;
19112 char *kwnames[] = {
19113 (char *) "self", NULL
19114 };
19115
19116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
19117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19119 result = (long) ((arg1)->m_data);
19120
19121 resultobj = SWIG_FromLong((long)result);
19122 return resultobj;
19123 fail:
19124 return NULL;
19125 }
19126
19127
19128 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj;
19130 wxListItem *arg1 = (wxListItem *) 0 ;
19131 int arg2 ;
19132 PyObject * obj0 = 0 ;
19133 PyObject * obj1 = 0 ;
19134 char *kwnames[] = {
19135 (char *) "self",(char *) "m_format", NULL
19136 };
19137
19138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
19139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19141 arg2 = (int) SWIG_AsInt(obj1);
19142 if (PyErr_Occurred()) SWIG_fail;
19143 if (arg1) (arg1)->m_format = arg2;
19144
19145 Py_INCREF(Py_None); resultobj = Py_None;
19146 return resultobj;
19147 fail:
19148 return NULL;
19149 }
19150
19151
19152 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19153 PyObject *resultobj;
19154 wxListItem *arg1 = (wxListItem *) 0 ;
19155 int result;
19156 PyObject * obj0 = 0 ;
19157 char *kwnames[] = {
19158 (char *) "self", NULL
19159 };
19160
19161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
19162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19164 result = (int) ((arg1)->m_format);
19165
19166 resultobj = SWIG_FromInt((int)result);
19167 return resultobj;
19168 fail:
19169 return NULL;
19170 }
19171
19172
19173 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19174 PyObject *resultobj;
19175 wxListItem *arg1 = (wxListItem *) 0 ;
19176 int arg2 ;
19177 PyObject * obj0 = 0 ;
19178 PyObject * obj1 = 0 ;
19179 char *kwnames[] = {
19180 (char *) "self",(char *) "m_width", NULL
19181 };
19182
19183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
19184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19186 arg2 = (int) SWIG_AsInt(obj1);
19187 if (PyErr_Occurred()) SWIG_fail;
19188 if (arg1) (arg1)->m_width = arg2;
19189
19190 Py_INCREF(Py_None); resultobj = Py_None;
19191 return resultobj;
19192 fail:
19193 return NULL;
19194 }
19195
19196
19197 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19198 PyObject *resultobj;
19199 wxListItem *arg1 = (wxListItem *) 0 ;
19200 int result;
19201 PyObject * obj0 = 0 ;
19202 char *kwnames[] = {
19203 (char *) "self", NULL
19204 };
19205
19206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
19207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19209 result = (int) ((arg1)->m_width);
19210
19211 resultobj = SWIG_FromInt((int)result);
19212 return resultobj;
19213 fail:
19214 return NULL;
19215 }
19216
19217
19218 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
19219 PyObject *obj;
19220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19221 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
19222 Py_INCREF(obj);
19223 return Py_BuildValue((char *)"");
19224 }
19225 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19226 PyObject *resultobj;
19227 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19228 int arg2 = (int) 0 ;
19229 wxListEvent *result;
19230 PyObject * obj0 = 0 ;
19231 PyObject * obj1 = 0 ;
19232 char *kwnames[] = {
19233 (char *) "commandType",(char *) "id", NULL
19234 };
19235
19236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
19237 if (obj0) {
19238 arg1 = (wxEventType) SWIG_AsInt(obj0);
19239 if (PyErr_Occurred()) SWIG_fail;
19240 }
19241 if (obj1) {
19242 arg2 = (int) SWIG_AsInt(obj1);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 }
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 result = (wxListEvent *)new wxListEvent(arg1,arg2);
19248
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
19253 return resultobj;
19254 fail:
19255 return NULL;
19256 }
19257
19258
19259 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19260 PyObject *resultobj;
19261 wxListEvent *arg1 = (wxListEvent *) 0 ;
19262 int arg2 ;
19263 PyObject * obj0 = 0 ;
19264 PyObject * obj1 = 0 ;
19265 char *kwnames[] = {
19266 (char *) "self",(char *) "m_code", NULL
19267 };
19268
19269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
19270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19272 arg2 = (int) SWIG_AsInt(obj1);
19273 if (PyErr_Occurred()) SWIG_fail;
19274 if (arg1) (arg1)->m_code = arg2;
19275
19276 Py_INCREF(Py_None); resultobj = Py_None;
19277 return resultobj;
19278 fail:
19279 return NULL;
19280 }
19281
19282
19283 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19284 PyObject *resultobj;
19285 wxListEvent *arg1 = (wxListEvent *) 0 ;
19286 int result;
19287 PyObject * obj0 = 0 ;
19288 char *kwnames[] = {
19289 (char *) "self", NULL
19290 };
19291
19292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
19293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19295 result = (int) ((arg1)->m_code);
19296
19297 resultobj = SWIG_FromInt((int)result);
19298 return resultobj;
19299 fail:
19300 return NULL;
19301 }
19302
19303
19304 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19305 PyObject *resultobj;
19306 wxListEvent *arg1 = (wxListEvent *) 0 ;
19307 long arg2 ;
19308 PyObject * obj0 = 0 ;
19309 PyObject * obj1 = 0 ;
19310 char *kwnames[] = {
19311 (char *) "self",(char *) "m_oldItemIndex", NULL
19312 };
19313
19314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19317 arg2 = (long) SWIG_AsLong(obj1);
19318 if (PyErr_Occurred()) SWIG_fail;
19319 if (arg1) (arg1)->m_oldItemIndex = arg2;
19320
19321 Py_INCREF(Py_None); resultobj = Py_None;
19322 return resultobj;
19323 fail:
19324 return NULL;
19325 }
19326
19327
19328 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19329 PyObject *resultobj;
19330 wxListEvent *arg1 = (wxListEvent *) 0 ;
19331 long result;
19332 PyObject * obj0 = 0 ;
19333 char *kwnames[] = {
19334 (char *) "self", NULL
19335 };
19336
19337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
19338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19340 result = (long) ((arg1)->m_oldItemIndex);
19341
19342 resultobj = SWIG_FromLong((long)result);
19343 return resultobj;
19344 fail:
19345 return NULL;
19346 }
19347
19348
19349 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19350 PyObject *resultobj;
19351 wxListEvent *arg1 = (wxListEvent *) 0 ;
19352 long arg2 ;
19353 PyObject * obj0 = 0 ;
19354 PyObject * obj1 = 0 ;
19355 char *kwnames[] = {
19356 (char *) "self",(char *) "m_itemIndex", NULL
19357 };
19358
19359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19362 arg2 = (long) SWIG_AsLong(obj1);
19363 if (PyErr_Occurred()) SWIG_fail;
19364 if (arg1) (arg1)->m_itemIndex = arg2;
19365
19366 Py_INCREF(Py_None); resultobj = Py_None;
19367 return resultobj;
19368 fail:
19369 return NULL;
19370 }
19371
19372
19373 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19374 PyObject *resultobj;
19375 wxListEvent *arg1 = (wxListEvent *) 0 ;
19376 long result;
19377 PyObject * obj0 = 0 ;
19378 char *kwnames[] = {
19379 (char *) "self", NULL
19380 };
19381
19382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
19383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19385 result = (long) ((arg1)->m_itemIndex);
19386
19387 resultobj = SWIG_FromLong((long)result);
19388 return resultobj;
19389 fail:
19390 return NULL;
19391 }
19392
19393
19394 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19395 PyObject *resultobj;
19396 wxListEvent *arg1 = (wxListEvent *) 0 ;
19397 int arg2 ;
19398 PyObject * obj0 = 0 ;
19399 PyObject * obj1 = 0 ;
19400 char *kwnames[] = {
19401 (char *) "self",(char *) "m_col", NULL
19402 };
19403
19404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19407 arg2 = (int) SWIG_AsInt(obj1);
19408 if (PyErr_Occurred()) SWIG_fail;
19409 if (arg1) (arg1)->m_col = arg2;
19410
19411 Py_INCREF(Py_None); resultobj = Py_None;
19412 return resultobj;
19413 fail:
19414 return NULL;
19415 }
19416
19417
19418 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19419 PyObject *resultobj;
19420 wxListEvent *arg1 = (wxListEvent *) 0 ;
19421 int result;
19422 PyObject * obj0 = 0 ;
19423 char *kwnames[] = {
19424 (char *) "self", NULL
19425 };
19426
19427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
19428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19430 result = (int) ((arg1)->m_col);
19431
19432 resultobj = SWIG_FromInt((int)result);
19433 return resultobj;
19434 fail:
19435 return NULL;
19436 }
19437
19438
19439 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19440 PyObject *resultobj;
19441 wxListEvent *arg1 = (wxListEvent *) 0 ;
19442 wxPoint *arg2 = (wxPoint *) 0 ;
19443 PyObject * obj0 = 0 ;
19444 PyObject * obj1 = 0 ;
19445 char *kwnames[] = {
19446 (char *) "self",(char *) "m_pointDrag", NULL
19447 };
19448
19449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
19450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19452 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
19453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19454 if (arg1) (arg1)->m_pointDrag = *arg2;
19455
19456 Py_INCREF(Py_None); resultobj = Py_None;
19457 return resultobj;
19458 fail:
19459 return NULL;
19460 }
19461
19462
19463 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19464 PyObject *resultobj;
19465 wxListEvent *arg1 = (wxListEvent *) 0 ;
19466 wxPoint *result;
19467 PyObject * obj0 = 0 ;
19468 char *kwnames[] = {
19469 (char *) "self", NULL
19470 };
19471
19472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
19473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19475 result = (wxPoint *)& ((arg1)->m_pointDrag);
19476
19477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19478 return resultobj;
19479 fail:
19480 return NULL;
19481 }
19482
19483
19484 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19485 PyObject *resultobj;
19486 wxListEvent *arg1 = (wxListEvent *) 0 ;
19487 wxListItem *result;
19488 PyObject * obj0 = 0 ;
19489 char *kwnames[] = {
19490 (char *) "self", NULL
19491 };
19492
19493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
19494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19496 result = (wxListItem *)& ((arg1)->m_item);
19497
19498 {
19499 resultobj = wxPyMake_wxObject(result);
19500 }
19501 return resultobj;
19502 fail:
19503 return NULL;
19504 }
19505
19506
19507 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
19508 PyObject *resultobj;
19509 wxListEvent *arg1 = (wxListEvent *) 0 ;
19510 int result;
19511 PyObject * obj0 = 0 ;
19512 char *kwnames[] = {
19513 (char *) "self", NULL
19514 };
19515
19516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
19517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 result = (int)(arg1)->GetKeyCode();
19522
19523 wxPyEndAllowThreads(__tstate);
19524 if (PyErr_Occurred()) SWIG_fail;
19525 }
19526 resultobj = SWIG_FromInt((int)result);
19527 return resultobj;
19528 fail:
19529 return NULL;
19530 }
19531
19532
19533 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
19534 PyObject *resultobj;
19535 wxListEvent *arg1 = (wxListEvent *) 0 ;
19536 long result;
19537 PyObject * obj0 = 0 ;
19538 char *kwnames[] = {
19539 (char *) "self", NULL
19540 };
19541
19542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
19543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19545 {
19546 PyThreadState* __tstate = wxPyBeginAllowThreads();
19547 result = (long)(arg1)->GetIndex();
19548
19549 wxPyEndAllowThreads(__tstate);
19550 if (PyErr_Occurred()) SWIG_fail;
19551 }
19552 resultobj = SWIG_FromLong((long)result);
19553 return resultobj;
19554 fail:
19555 return NULL;
19556 }
19557
19558
19559 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19560 PyObject *resultobj;
19561 wxListEvent *arg1 = (wxListEvent *) 0 ;
19562 int result;
19563 PyObject * obj0 = 0 ;
19564 char *kwnames[] = {
19565 (char *) "self", NULL
19566 };
19567
19568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
19569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19571 {
19572 PyThreadState* __tstate = wxPyBeginAllowThreads();
19573 result = (int)(arg1)->GetColumn();
19574
19575 wxPyEndAllowThreads(__tstate);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 }
19578 resultobj = SWIG_FromInt((int)result);
19579 return resultobj;
19580 fail:
19581 return NULL;
19582 }
19583
19584
19585 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
19586 PyObject *resultobj;
19587 wxListEvent *arg1 = (wxListEvent *) 0 ;
19588 wxPoint result;
19589 PyObject * obj0 = 0 ;
19590 char *kwnames[] = {
19591 (char *) "self", NULL
19592 };
19593
19594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
19595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19597 {
19598 PyThreadState* __tstate = wxPyBeginAllowThreads();
19599 result = (arg1)->GetPoint();
19600
19601 wxPyEndAllowThreads(__tstate);
19602 if (PyErr_Occurred()) SWIG_fail;
19603 }
19604 {
19605 wxPoint * resultptr;
19606 resultptr = new wxPoint((wxPoint &) result);
19607 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
19608 }
19609 return resultobj;
19610 fail:
19611 return NULL;
19612 }
19613
19614
19615 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
19616 PyObject *resultobj;
19617 wxListEvent *arg1 = (wxListEvent *) 0 ;
19618 wxString *result;
19619 PyObject * obj0 = 0 ;
19620 char *kwnames[] = {
19621 (char *) "self", NULL
19622 };
19623
19624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
19625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19627 {
19628 PyThreadState* __tstate = wxPyBeginAllowThreads();
19629 {
19630 wxString const &_result_ref = (arg1)->GetLabel();
19631 result = (wxString *) &_result_ref;
19632 }
19633
19634 wxPyEndAllowThreads(__tstate);
19635 if (PyErr_Occurred()) SWIG_fail;
19636 }
19637 {
19638 #if wxUSE_UNICODE
19639 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19640 #else
19641 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19642 #endif
19643 }
19644 return resultobj;
19645 fail:
19646 return NULL;
19647 }
19648
19649
19650 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19651 PyObject *resultobj;
19652 wxListEvent *arg1 = (wxListEvent *) 0 ;
19653 wxString *result;
19654 PyObject * obj0 = 0 ;
19655 char *kwnames[] = {
19656 (char *) "self", NULL
19657 };
19658
19659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
19660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19662 {
19663 PyThreadState* __tstate = wxPyBeginAllowThreads();
19664 {
19665 wxString const &_result_ref = (arg1)->GetText();
19666 result = (wxString *) &_result_ref;
19667 }
19668
19669 wxPyEndAllowThreads(__tstate);
19670 if (PyErr_Occurred()) SWIG_fail;
19671 }
19672 {
19673 #if wxUSE_UNICODE
19674 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19675 #else
19676 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19677 #endif
19678 }
19679 return resultobj;
19680 fail:
19681 return NULL;
19682 }
19683
19684
19685 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19686 PyObject *resultobj;
19687 wxListEvent *arg1 = (wxListEvent *) 0 ;
19688 int result;
19689 PyObject * obj0 = 0 ;
19690 char *kwnames[] = {
19691 (char *) "self", NULL
19692 };
19693
19694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
19695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19697 {
19698 PyThreadState* __tstate = wxPyBeginAllowThreads();
19699 result = (int)(arg1)->GetImage();
19700
19701 wxPyEndAllowThreads(__tstate);
19702 if (PyErr_Occurred()) SWIG_fail;
19703 }
19704 resultobj = SWIG_FromInt((int)result);
19705 return resultobj;
19706 fail:
19707 return NULL;
19708 }
19709
19710
19711 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19712 PyObject *resultobj;
19713 wxListEvent *arg1 = (wxListEvent *) 0 ;
19714 long result;
19715 PyObject * obj0 = 0 ;
19716 char *kwnames[] = {
19717 (char *) "self", NULL
19718 };
19719
19720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
19721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 result = (long)(arg1)->GetData();
19726
19727 wxPyEndAllowThreads(__tstate);
19728 if (PyErr_Occurred()) SWIG_fail;
19729 }
19730 resultobj = SWIG_FromLong((long)result);
19731 return resultobj;
19732 fail:
19733 return NULL;
19734 }
19735
19736
19737 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19738 PyObject *resultobj;
19739 wxListEvent *arg1 = (wxListEvent *) 0 ;
19740 long result;
19741 PyObject * obj0 = 0 ;
19742 char *kwnames[] = {
19743 (char *) "self", NULL
19744 };
19745
19746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
19747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19749 {
19750 PyThreadState* __tstate = wxPyBeginAllowThreads();
19751 result = (long)(arg1)->GetMask();
19752
19753 wxPyEndAllowThreads(__tstate);
19754 if (PyErr_Occurred()) SWIG_fail;
19755 }
19756 resultobj = SWIG_FromLong((long)result);
19757 return resultobj;
19758 fail:
19759 return NULL;
19760 }
19761
19762
19763 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
19764 PyObject *resultobj;
19765 wxListEvent *arg1 = (wxListEvent *) 0 ;
19766 wxListItem *result;
19767 PyObject * obj0 = 0 ;
19768 char *kwnames[] = {
19769 (char *) "self", NULL
19770 };
19771
19772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
19773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19775 {
19776 PyThreadState* __tstate = wxPyBeginAllowThreads();
19777 {
19778 wxListItem const &_result_ref = (arg1)->GetItem();
19779 result = (wxListItem *) &_result_ref;
19780 }
19781
19782 wxPyEndAllowThreads(__tstate);
19783 if (PyErr_Occurred()) SWIG_fail;
19784 }
19785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
19786 return resultobj;
19787 fail:
19788 return NULL;
19789 }
19790
19791
19792 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
19793 PyObject *resultobj;
19794 wxListEvent *arg1 = (wxListEvent *) 0 ;
19795 long result;
19796 PyObject * obj0 = 0 ;
19797 char *kwnames[] = {
19798 (char *) "self", NULL
19799 };
19800
19801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
19802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19804 {
19805 PyThreadState* __tstate = wxPyBeginAllowThreads();
19806 result = (long)(arg1)->GetCacheFrom();
19807
19808 wxPyEndAllowThreads(__tstate);
19809 if (PyErr_Occurred()) SWIG_fail;
19810 }
19811 resultobj = SWIG_FromLong((long)result);
19812 return resultobj;
19813 fail:
19814 return NULL;
19815 }
19816
19817
19818 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19819 PyObject *resultobj;
19820 wxListEvent *arg1 = (wxListEvent *) 0 ;
19821 long result;
19822 PyObject * obj0 = 0 ;
19823 char *kwnames[] = {
19824 (char *) "self", NULL
19825 };
19826
19827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
19828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19830 {
19831 PyThreadState* __tstate = wxPyBeginAllowThreads();
19832 result = (long)(arg1)->GetCacheTo();
19833
19834 wxPyEndAllowThreads(__tstate);
19835 if (PyErr_Occurred()) SWIG_fail;
19836 }
19837 resultobj = SWIG_FromLong((long)result);
19838 return resultobj;
19839 fail:
19840 return NULL;
19841 }
19842
19843
19844 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
19845 PyObject *resultobj;
19846 wxListEvent *arg1 = (wxListEvent *) 0 ;
19847 bool result;
19848 PyObject * obj0 = 0 ;
19849 char *kwnames[] = {
19850 (char *) "self", NULL
19851 };
19852
19853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
19854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19856 {
19857 PyThreadState* __tstate = wxPyBeginAllowThreads();
19858 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
19859
19860 wxPyEndAllowThreads(__tstate);
19861 if (PyErr_Occurred()) SWIG_fail;
19862 }
19863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19864 return resultobj;
19865 fail:
19866 return NULL;
19867 }
19868
19869
19870 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
19871 PyObject *resultobj;
19872 wxListEvent *arg1 = (wxListEvent *) 0 ;
19873 bool arg2 ;
19874 PyObject * obj0 = 0 ;
19875 PyObject * obj1 = 0 ;
19876 char *kwnames[] = {
19877 (char *) "self",(char *) "editCancelled", NULL
19878 };
19879
19880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
19881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
19882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19883 arg2 = (bool) SWIG_AsBool(obj1);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 {
19886 PyThreadState* __tstate = wxPyBeginAllowThreads();
19887 (arg1)->SetEditCanceled(arg2);
19888
19889 wxPyEndAllowThreads(__tstate);
19890 if (PyErr_Occurred()) SWIG_fail;
19891 }
19892 Py_INCREF(Py_None); resultobj = Py_None;
19893 return resultobj;
19894 fail:
19895 return NULL;
19896 }
19897
19898
19899 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
19900 PyObject *obj;
19901 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19902 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
19903 Py_INCREF(obj);
19904 return Py_BuildValue((char *)"");
19905 }
19906 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
19907 PyObject *resultobj;
19908 wxWindow *arg1 = (wxWindow *) 0 ;
19909 int arg2 = (int) -1 ;
19910 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19911 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19912 wxSize const &arg4_defvalue = wxDefaultSize ;
19913 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19914 long arg5 = (long) wxLC_ICON ;
19915 wxValidator const &arg6_defvalue = wxDefaultValidator ;
19916 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
19917 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
19918 wxString *arg7 = (wxString *) &arg7_defvalue ;
19919 wxPyListCtrl *result;
19920 wxPoint temp3 ;
19921 wxSize temp4 ;
19922 bool temp7 = False ;
19923 PyObject * obj0 = 0 ;
19924 PyObject * obj1 = 0 ;
19925 PyObject * obj2 = 0 ;
19926 PyObject * obj3 = 0 ;
19927 PyObject * obj4 = 0 ;
19928 PyObject * obj5 = 0 ;
19929 PyObject * obj6 = 0 ;
19930 char *kwnames[] = {
19931 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19932 };
19933
19934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19937 if (obj1) {
19938 arg2 = (int) SWIG_AsInt(obj1);
19939 if (PyErr_Occurred()) SWIG_fail;
19940 }
19941 if (obj2) {
19942 {
19943 arg3 = &temp3;
19944 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19945 }
19946 }
19947 if (obj3) {
19948 {
19949 arg4 = &temp4;
19950 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19951 }
19952 }
19953 if (obj4) {
19954 arg5 = (long) SWIG_AsLong(obj4);
19955 if (PyErr_Occurred()) SWIG_fail;
19956 }
19957 if (obj5) {
19958 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
19959 SWIG_POINTER_EXCEPTION | 0)) == -1)
19960 SWIG_fail;
19961 if (arg6 == NULL) {
19962 PyErr_SetString(PyExc_TypeError,"null reference");
19963 SWIG_fail;
19964 }
19965 }
19966 if (obj6) {
19967 {
19968 arg7 = wxString_in_helper(obj6);
19969 if (arg7 == NULL) SWIG_fail;
19970 temp7 = True;
19971 }
19972 }
19973 {
19974 PyThreadState* __tstate = wxPyBeginAllowThreads();
19975 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
19976
19977 wxPyEndAllowThreads(__tstate);
19978 if (PyErr_Occurred()) SWIG_fail;
19979 }
19980 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
19981 {
19982 if (temp7)
19983 delete arg7;
19984 }
19985 return resultobj;
19986 fail:
19987 {
19988 if (temp7)
19989 delete arg7;
19990 }
19991 return NULL;
19992 }
19993
19994
19995 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
19996 PyObject *resultobj;
19997 wxPyListCtrl *result;
19998 char *kwnames[] = {
19999 NULL
20000 };
20001
20002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
20003 {
20004 PyThreadState* __tstate = wxPyBeginAllowThreads();
20005 result = (wxPyListCtrl *)new wxPyListCtrl();
20006
20007 wxPyEndAllowThreads(__tstate);
20008 if (PyErr_Occurred()) SWIG_fail;
20009 }
20010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20011 return resultobj;
20012 fail:
20013 return NULL;
20014 }
20015
20016
20017 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
20018 PyObject *resultobj;
20019 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20020 wxWindow *arg2 = (wxWindow *) 0 ;
20021 int arg3 = (int) -1 ;
20022 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20023 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20024 wxSize const &arg5_defvalue = wxDefaultSize ;
20025 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20026 long arg6 = (long) wxLC_ICON ;
20027 wxValidator const &arg7_defvalue = wxDefaultValidator ;
20028 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
20029 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
20030 wxString *arg8 = (wxString *) &arg8_defvalue ;
20031 bool result;
20032 wxPoint temp4 ;
20033 wxSize temp5 ;
20034 bool temp8 = False ;
20035 PyObject * obj0 = 0 ;
20036 PyObject * obj1 = 0 ;
20037 PyObject * obj2 = 0 ;
20038 PyObject * obj3 = 0 ;
20039 PyObject * obj4 = 0 ;
20040 PyObject * obj5 = 0 ;
20041 PyObject * obj6 = 0 ;
20042 PyObject * obj7 = 0 ;
20043 char *kwnames[] = {
20044 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20045 };
20046
20047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
20048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20050 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20052 if (obj2) {
20053 arg3 = (int) SWIG_AsInt(obj2);
20054 if (PyErr_Occurred()) SWIG_fail;
20055 }
20056 if (obj3) {
20057 {
20058 arg4 = &temp4;
20059 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20060 }
20061 }
20062 if (obj4) {
20063 {
20064 arg5 = &temp5;
20065 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20066 }
20067 }
20068 if (obj5) {
20069 arg6 = (long) SWIG_AsLong(obj5);
20070 if (PyErr_Occurred()) SWIG_fail;
20071 }
20072 if (obj6) {
20073 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
20074 SWIG_POINTER_EXCEPTION | 0)) == -1)
20075 SWIG_fail;
20076 if (arg7 == NULL) {
20077 PyErr_SetString(PyExc_TypeError,"null reference");
20078 SWIG_fail;
20079 }
20080 }
20081 if (obj7) {
20082 {
20083 arg8 = wxString_in_helper(obj7);
20084 if (arg8 == NULL) SWIG_fail;
20085 temp8 = True;
20086 }
20087 }
20088 {
20089 PyThreadState* __tstate = wxPyBeginAllowThreads();
20090 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
20091
20092 wxPyEndAllowThreads(__tstate);
20093 if (PyErr_Occurred()) SWIG_fail;
20094 }
20095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20096 {
20097 if (temp8)
20098 delete arg8;
20099 }
20100 return resultobj;
20101 fail:
20102 {
20103 if (temp8)
20104 delete arg8;
20105 }
20106 return NULL;
20107 }
20108
20109
20110 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
20111 PyObject *resultobj;
20112 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20113 PyObject *arg2 = (PyObject *) 0 ;
20114 PyObject *arg3 = (PyObject *) 0 ;
20115 PyObject * obj0 = 0 ;
20116 PyObject * obj1 = 0 ;
20117 PyObject * obj2 = 0 ;
20118 char *kwnames[] = {
20119 (char *) "self",(char *) "self",(char *) "_class", NULL
20120 };
20121
20122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20125 arg2 = obj1;
20126 arg3 = obj2;
20127 {
20128 PyThreadState* __tstate = wxPyBeginAllowThreads();
20129 (arg1)->_setCallbackInfo(arg2,arg3);
20130
20131 wxPyEndAllowThreads(__tstate);
20132 if (PyErr_Occurred()) SWIG_fail;
20133 }
20134 Py_INCREF(Py_None); resultobj = Py_None;
20135 return resultobj;
20136 fail:
20137 return NULL;
20138 }
20139
20140
20141 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20142 PyObject *resultobj;
20143 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20144 wxColour *arg2 = 0 ;
20145 bool result;
20146 wxColour temp2 ;
20147 PyObject * obj0 = 0 ;
20148 PyObject * obj1 = 0 ;
20149 char *kwnames[] = {
20150 (char *) "self",(char *) "col", NULL
20151 };
20152
20153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
20154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20156 {
20157 arg2 = &temp2;
20158 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20159 }
20160 {
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
20163
20164 wxPyEndAllowThreads(__tstate);
20165 if (PyErr_Occurred()) SWIG_fail;
20166 }
20167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20168 return resultobj;
20169 fail:
20170 return NULL;
20171 }
20172
20173
20174 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20175 PyObject *resultobj;
20176 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20177 wxColour *arg2 = 0 ;
20178 bool result;
20179 wxColour temp2 ;
20180 PyObject * obj0 = 0 ;
20181 PyObject * obj1 = 0 ;
20182 char *kwnames[] = {
20183 (char *) "self",(char *) "col", NULL
20184 };
20185
20186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20189 {
20190 arg2 = &temp2;
20191 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20192 }
20193 {
20194 PyThreadState* __tstate = wxPyBeginAllowThreads();
20195 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
20196
20197 wxPyEndAllowThreads(__tstate);
20198 if (PyErr_Occurred()) SWIG_fail;
20199 }
20200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20201 return resultobj;
20202 fail:
20203 return NULL;
20204 }
20205
20206
20207 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20208 PyObject *resultobj;
20209 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20210 int arg2 ;
20211 wxListItem *result;
20212 PyObject * obj0 = 0 ;
20213 PyObject * obj1 = 0 ;
20214 char *kwnames[] = {
20215 (char *) "self",(char *) "col", NULL
20216 };
20217
20218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
20219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20221 arg2 = (int) SWIG_AsInt(obj1);
20222 if (PyErr_Occurred()) SWIG_fail;
20223 {
20224 PyThreadState* __tstate = wxPyBeginAllowThreads();
20225 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
20226
20227 wxPyEndAllowThreads(__tstate);
20228 if (PyErr_Occurred()) SWIG_fail;
20229 }
20230 {
20231 resultobj = wxPyMake_wxObject(result);
20232 }
20233 return resultobj;
20234 fail:
20235 return NULL;
20236 }
20237
20238
20239 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20240 PyObject *resultobj;
20241 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20242 int arg2 ;
20243 wxListItem *arg3 = 0 ;
20244 bool result;
20245 PyObject * obj0 = 0 ;
20246 PyObject * obj1 = 0 ;
20247 PyObject * obj2 = 0 ;
20248 char *kwnames[] = {
20249 (char *) "self",(char *) "col",(char *) "item", NULL
20250 };
20251
20252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
20253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20255 arg2 = (int) SWIG_AsInt(obj1);
20256 if (PyErr_Occurred()) SWIG_fail;
20257 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
20258 SWIG_POINTER_EXCEPTION | 0)) == -1)
20259 SWIG_fail;
20260 if (arg3 == NULL) {
20261 PyErr_SetString(PyExc_TypeError,"null reference");
20262 SWIG_fail;
20263 }
20264 {
20265 PyThreadState* __tstate = wxPyBeginAllowThreads();
20266 result = (bool)(arg1)->SetColumn(arg2,*arg3);
20267
20268 wxPyEndAllowThreads(__tstate);
20269 if (PyErr_Occurred()) SWIG_fail;
20270 }
20271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20272 return resultobj;
20273 fail:
20274 return NULL;
20275 }
20276
20277
20278 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20279 PyObject *resultobj;
20280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20281 int arg2 ;
20282 int result;
20283 PyObject * obj0 = 0 ;
20284 PyObject * obj1 = 0 ;
20285 char *kwnames[] = {
20286 (char *) "self",(char *) "col", NULL
20287 };
20288
20289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
20290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20292 arg2 = (int) SWIG_AsInt(obj1);
20293 if (PyErr_Occurred()) SWIG_fail;
20294 {
20295 PyThreadState* __tstate = wxPyBeginAllowThreads();
20296 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
20297
20298 wxPyEndAllowThreads(__tstate);
20299 if (PyErr_Occurred()) SWIG_fail;
20300 }
20301 resultobj = SWIG_FromInt((int)result);
20302 return resultobj;
20303 fail:
20304 return NULL;
20305 }
20306
20307
20308 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20309 PyObject *resultobj;
20310 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20311 int arg2 ;
20312 int arg3 ;
20313 bool result;
20314 PyObject * obj0 = 0 ;
20315 PyObject * obj1 = 0 ;
20316 PyObject * obj2 = 0 ;
20317 char *kwnames[] = {
20318 (char *) "self",(char *) "col",(char *) "width", NULL
20319 };
20320
20321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20324 arg2 = (int) SWIG_AsInt(obj1);
20325 if (PyErr_Occurred()) SWIG_fail;
20326 arg3 = (int) SWIG_AsInt(obj2);
20327 if (PyErr_Occurred()) SWIG_fail;
20328 {
20329 PyThreadState* __tstate = wxPyBeginAllowThreads();
20330 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
20331
20332 wxPyEndAllowThreads(__tstate);
20333 if (PyErr_Occurred()) SWIG_fail;
20334 }
20335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20336 return resultobj;
20337 fail:
20338 return NULL;
20339 }
20340
20341
20342 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
20343 PyObject *resultobj;
20344 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20345 int result;
20346 PyObject * obj0 = 0 ;
20347 char *kwnames[] = {
20348 (char *) "self", NULL
20349 };
20350
20351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
20352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20354 {
20355 PyThreadState* __tstate = wxPyBeginAllowThreads();
20356 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
20357
20358 wxPyEndAllowThreads(__tstate);
20359 if (PyErr_Occurred()) SWIG_fail;
20360 }
20361 resultobj = SWIG_FromInt((int)result);
20362 return resultobj;
20363 fail:
20364 return NULL;
20365 }
20366
20367
20368 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20369 PyObject *resultobj;
20370 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20371 wxRect result;
20372 PyObject * obj0 = 0 ;
20373 char *kwnames[] = {
20374 (char *) "self", NULL
20375 };
20376
20377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
20378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20380 {
20381 PyThreadState* __tstate = wxPyBeginAllowThreads();
20382 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
20383
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
20387 {
20388 wxRect * resultptr;
20389 resultptr = new wxRect((wxRect &) result);
20390 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
20391 }
20392 return resultobj;
20393 fail:
20394 return NULL;
20395 }
20396
20397
20398 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20399 PyObject *resultobj;
20400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20401 long arg2 ;
20402 int arg3 = (int) 0 ;
20403 wxListItem *result;
20404 PyObject * obj0 = 0 ;
20405 PyObject * obj1 = 0 ;
20406 PyObject * obj2 = 0 ;
20407 char *kwnames[] = {
20408 (char *) "self",(char *) "itemId",(char *) "col", NULL
20409 };
20410
20411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
20412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20414 arg2 = (long) SWIG_AsLong(obj1);
20415 if (PyErr_Occurred()) SWIG_fail;
20416 if (obj2) {
20417 arg3 = (int) SWIG_AsInt(obj2);
20418 if (PyErr_Occurred()) SWIG_fail;
20419 }
20420 {
20421 PyThreadState* __tstate = wxPyBeginAllowThreads();
20422 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
20423
20424 wxPyEndAllowThreads(__tstate);
20425 if (PyErr_Occurred()) SWIG_fail;
20426 }
20427 {
20428 resultobj = wxPyMake_wxObject(result);
20429 }
20430 return resultobj;
20431 fail:
20432 return NULL;
20433 }
20434
20435
20436 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20437 PyObject *resultobj;
20438 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20439 wxListItem *arg2 = 0 ;
20440 bool result;
20441 PyObject * obj0 = 0 ;
20442 PyObject * obj1 = 0 ;
20443 char *kwnames[] = {
20444 (char *) "self",(char *) "info", NULL
20445 };
20446
20447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
20448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
20451 SWIG_POINTER_EXCEPTION | 0)) == -1)
20452 SWIG_fail;
20453 if (arg2 == NULL) {
20454 PyErr_SetString(PyExc_TypeError,"null reference");
20455 SWIG_fail;
20456 }
20457 {
20458 PyThreadState* __tstate = wxPyBeginAllowThreads();
20459 result = (bool)(arg1)->SetItem(*arg2);
20460
20461 wxPyEndAllowThreads(__tstate);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 }
20464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20465 return resultobj;
20466 fail:
20467 return NULL;
20468 }
20469
20470
20471 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20472 PyObject *resultobj;
20473 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20474 long arg2 ;
20475 int arg3 ;
20476 wxString *arg4 = 0 ;
20477 int arg5 = (int) -1 ;
20478 long result;
20479 bool temp4 = False ;
20480 PyObject * obj0 = 0 ;
20481 PyObject * obj1 = 0 ;
20482 PyObject * obj2 = 0 ;
20483 PyObject * obj3 = 0 ;
20484 PyObject * obj4 = 0 ;
20485 char *kwnames[] = {
20486 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
20487 };
20488
20489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20492 arg2 = (long) SWIG_AsLong(obj1);
20493 if (PyErr_Occurred()) SWIG_fail;
20494 arg3 = (int) SWIG_AsInt(obj2);
20495 if (PyErr_Occurred()) SWIG_fail;
20496 {
20497 arg4 = wxString_in_helper(obj3);
20498 if (arg4 == NULL) SWIG_fail;
20499 temp4 = True;
20500 }
20501 if (obj4) {
20502 arg5 = (int) SWIG_AsInt(obj4);
20503 if (PyErr_Occurred()) SWIG_fail;
20504 }
20505 {
20506 PyThreadState* __tstate = wxPyBeginAllowThreads();
20507 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
20508
20509 wxPyEndAllowThreads(__tstate);
20510 if (PyErr_Occurred()) SWIG_fail;
20511 }
20512 resultobj = SWIG_FromLong((long)result);
20513 {
20514 if (temp4)
20515 delete arg4;
20516 }
20517 return resultobj;
20518 fail:
20519 {
20520 if (temp4)
20521 delete arg4;
20522 }
20523 return NULL;
20524 }
20525
20526
20527 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20528 PyObject *resultobj;
20529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20530 long arg2 ;
20531 long arg3 ;
20532 int result;
20533 PyObject * obj0 = 0 ;
20534 PyObject * obj1 = 0 ;
20535 PyObject * obj2 = 0 ;
20536 char *kwnames[] = {
20537 (char *) "self",(char *) "item",(char *) "stateMask", NULL
20538 };
20539
20540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
20541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20543 arg2 = (long) SWIG_AsLong(obj1);
20544 if (PyErr_Occurred()) SWIG_fail;
20545 arg3 = (long) SWIG_AsLong(obj2);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
20550
20551 wxPyEndAllowThreads(__tstate);
20552 if (PyErr_Occurred()) SWIG_fail;
20553 }
20554 resultobj = SWIG_FromInt((int)result);
20555 return resultobj;
20556 fail:
20557 return NULL;
20558 }
20559
20560
20561 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20562 PyObject *resultobj;
20563 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20564 long arg2 ;
20565 long arg3 ;
20566 long arg4 ;
20567 bool result;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 PyObject * obj2 = 0 ;
20571 PyObject * obj3 = 0 ;
20572 char *kwnames[] = {
20573 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
20574 };
20575
20576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20579 arg2 = (long) SWIG_AsLong(obj1);
20580 if (PyErr_Occurred()) SWIG_fail;
20581 arg3 = (long) SWIG_AsLong(obj2);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 arg4 = (long) SWIG_AsLong(obj3);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 {
20586 PyThreadState* __tstate = wxPyBeginAllowThreads();
20587 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
20588
20589 wxPyEndAllowThreads(__tstate);
20590 if (PyErr_Occurred()) SWIG_fail;
20591 }
20592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20593 return resultobj;
20594 fail:
20595 return NULL;
20596 }
20597
20598
20599 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20600 PyObject *resultobj;
20601 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20602 long arg2 ;
20603 int arg3 ;
20604 int arg4 ;
20605 bool result;
20606 PyObject * obj0 = 0 ;
20607 PyObject * obj1 = 0 ;
20608 PyObject * obj2 = 0 ;
20609 PyObject * obj3 = 0 ;
20610 char *kwnames[] = {
20611 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
20612 };
20613
20614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20617 arg2 = (long) SWIG_AsLong(obj1);
20618 if (PyErr_Occurred()) SWIG_fail;
20619 arg3 = (int) SWIG_AsInt(obj2);
20620 if (PyErr_Occurred()) SWIG_fail;
20621 arg4 = (int) SWIG_AsInt(obj3);
20622 if (PyErr_Occurred()) SWIG_fail;
20623 {
20624 PyThreadState* __tstate = wxPyBeginAllowThreads();
20625 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
20626
20627 wxPyEndAllowThreads(__tstate);
20628 if (PyErr_Occurred()) SWIG_fail;
20629 }
20630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20631 return resultobj;
20632 fail:
20633 return NULL;
20634 }
20635
20636
20637 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
20638 PyObject *resultobj;
20639 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20640 long arg2 ;
20641 wxString result;
20642 PyObject * obj0 = 0 ;
20643 PyObject * obj1 = 0 ;
20644 char *kwnames[] = {
20645 (char *) "self",(char *) "item", NULL
20646 };
20647
20648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
20649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20651 arg2 = (long) SWIG_AsLong(obj1);
20652 if (PyErr_Occurred()) SWIG_fail;
20653 {
20654 PyThreadState* __tstate = wxPyBeginAllowThreads();
20655 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
20656
20657 wxPyEndAllowThreads(__tstate);
20658 if (PyErr_Occurred()) SWIG_fail;
20659 }
20660 {
20661 #if wxUSE_UNICODE
20662 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20663 #else
20664 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20665 #endif
20666 }
20667 return resultobj;
20668 fail:
20669 return NULL;
20670 }
20671
20672
20673 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
20674 PyObject *resultobj;
20675 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20676 long arg2 ;
20677 wxString *arg3 = 0 ;
20678 bool temp3 = False ;
20679 PyObject * obj0 = 0 ;
20680 PyObject * obj1 = 0 ;
20681 PyObject * obj2 = 0 ;
20682 char *kwnames[] = {
20683 (char *) "self",(char *) "item",(char *) "str", NULL
20684 };
20685
20686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
20687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20689 arg2 = (long) SWIG_AsLong(obj1);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 {
20692 arg3 = wxString_in_helper(obj2);
20693 if (arg3 == NULL) SWIG_fail;
20694 temp3 = True;
20695 }
20696 {
20697 PyThreadState* __tstate = wxPyBeginAllowThreads();
20698 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
20699
20700 wxPyEndAllowThreads(__tstate);
20701 if (PyErr_Occurred()) SWIG_fail;
20702 }
20703 Py_INCREF(Py_None); resultobj = Py_None;
20704 {
20705 if (temp3)
20706 delete arg3;
20707 }
20708 return resultobj;
20709 fail:
20710 {
20711 if (temp3)
20712 delete arg3;
20713 }
20714 return NULL;
20715 }
20716
20717
20718 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
20719 PyObject *resultobj;
20720 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20721 long arg2 ;
20722 long result;
20723 PyObject * obj0 = 0 ;
20724 PyObject * obj1 = 0 ;
20725 char *kwnames[] = {
20726 (char *) "self",(char *) "item", NULL
20727 };
20728
20729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
20730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20732 arg2 = (long) SWIG_AsLong(obj1);
20733 if (PyErr_Occurred()) SWIG_fail;
20734 {
20735 PyThreadState* __tstate = wxPyBeginAllowThreads();
20736 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
20737
20738 wxPyEndAllowThreads(__tstate);
20739 if (PyErr_Occurred()) SWIG_fail;
20740 }
20741 resultobj = SWIG_FromLong((long)result);
20742 return resultobj;
20743 fail:
20744 return NULL;
20745 }
20746
20747
20748 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
20749 PyObject *resultobj;
20750 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20751 long arg2 ;
20752 long arg3 ;
20753 bool result;
20754 PyObject * obj0 = 0 ;
20755 PyObject * obj1 = 0 ;
20756 PyObject * obj2 = 0 ;
20757 char *kwnames[] = {
20758 (char *) "self",(char *) "item",(char *) "data", NULL
20759 };
20760
20761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
20762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20764 arg2 = (long) SWIG_AsLong(obj1);
20765 if (PyErr_Occurred()) SWIG_fail;
20766 arg3 = (long) SWIG_AsLong(obj2);
20767 if (PyErr_Occurred()) SWIG_fail;
20768 {
20769 PyThreadState* __tstate = wxPyBeginAllowThreads();
20770 result = (bool)(arg1)->SetItemData(arg2,arg3);
20771
20772 wxPyEndAllowThreads(__tstate);
20773 if (PyErr_Occurred()) SWIG_fail;
20774 }
20775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20776 return resultobj;
20777 fail:
20778 return NULL;
20779 }
20780
20781
20782 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
20783 PyObject *resultobj;
20784 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20785 long arg2 ;
20786 wxPoint result;
20787 PyObject * obj0 = 0 ;
20788 PyObject * obj1 = 0 ;
20789 char *kwnames[] = {
20790 (char *) "self",(char *) "item", NULL
20791 };
20792
20793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
20794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20796 arg2 = (long) SWIG_AsLong(obj1);
20797 if (PyErr_Occurred()) SWIG_fail;
20798 {
20799 PyThreadState* __tstate = wxPyBeginAllowThreads();
20800 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
20801
20802 wxPyEndAllowThreads(__tstate);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 }
20805 {
20806 wxPoint * resultptr;
20807 resultptr = new wxPoint((wxPoint &) result);
20808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20809 }
20810 return resultobj;
20811 fail:
20812 return NULL;
20813 }
20814
20815
20816 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20817 PyObject *resultobj;
20818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20819 long arg2 ;
20820 int arg3 = (int) wxLIST_RECT_BOUNDS ;
20821 wxRect result;
20822 PyObject * obj0 = 0 ;
20823 PyObject * obj1 = 0 ;
20824 PyObject * obj2 = 0 ;
20825 char *kwnames[] = {
20826 (char *) "self",(char *) "item",(char *) "code", NULL
20827 };
20828
20829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
20830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20832 arg2 = (long) SWIG_AsLong(obj1);
20833 if (PyErr_Occurred()) SWIG_fail;
20834 if (obj2) {
20835 arg3 = (int) SWIG_AsInt(obj2);
20836 if (PyErr_Occurred()) SWIG_fail;
20837 }
20838 {
20839 PyThreadState* __tstate = wxPyBeginAllowThreads();
20840 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
20841
20842 wxPyEndAllowThreads(__tstate);
20843 if (PyErr_Occurred()) SWIG_fail;
20844 }
20845 {
20846 wxRect * resultptr;
20847 resultptr = new wxRect((wxRect &) result);
20848 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
20849 }
20850 return resultobj;
20851 fail:
20852 return NULL;
20853 }
20854
20855
20856 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
20857 PyObject *resultobj;
20858 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20859 long arg2 ;
20860 wxPoint *arg3 = 0 ;
20861 bool result;
20862 wxPoint temp3 ;
20863 PyObject * obj0 = 0 ;
20864 PyObject * obj1 = 0 ;
20865 PyObject * obj2 = 0 ;
20866 char *kwnames[] = {
20867 (char *) "self",(char *) "item",(char *) "pos", NULL
20868 };
20869
20870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
20871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20873 arg2 = (long) SWIG_AsLong(obj1);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 {
20876 arg3 = &temp3;
20877 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20878 }
20879 {
20880 PyThreadState* __tstate = wxPyBeginAllowThreads();
20881 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
20882
20883 wxPyEndAllowThreads(__tstate);
20884 if (PyErr_Occurred()) SWIG_fail;
20885 }
20886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20887 return resultobj;
20888 fail:
20889 return NULL;
20890 }
20891
20892
20893 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
20894 PyObject *resultobj;
20895 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20896 int result;
20897 PyObject * obj0 = 0 ;
20898 char *kwnames[] = {
20899 (char *) "self", NULL
20900 };
20901
20902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
20903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20905 {
20906 PyThreadState* __tstate = wxPyBeginAllowThreads();
20907 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
20908
20909 wxPyEndAllowThreads(__tstate);
20910 if (PyErr_Occurred()) SWIG_fail;
20911 }
20912 resultobj = SWIG_FromInt((int)result);
20913 return resultobj;
20914 fail:
20915 return NULL;
20916 }
20917
20918
20919 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
20920 PyObject *resultobj;
20921 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20922 int result;
20923 PyObject * obj0 = 0 ;
20924 char *kwnames[] = {
20925 (char *) "self", NULL
20926 };
20927
20928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
20929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20931 {
20932 PyThreadState* __tstate = wxPyBeginAllowThreads();
20933 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
20934
20935 wxPyEndAllowThreads(__tstate);
20936 if (PyErr_Occurred()) SWIG_fail;
20937 }
20938 resultobj = SWIG_FromInt((int)result);
20939 return resultobj;
20940 fail:
20941 return NULL;
20942 }
20943
20944
20945 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
20946 PyObject *resultobj;
20947 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20948 wxSize result;
20949 PyObject * obj0 = 0 ;
20950 char *kwnames[] = {
20951 (char *) "self", NULL
20952 };
20953
20954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
20955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20957 {
20958 PyThreadState* __tstate = wxPyBeginAllowThreads();
20959 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
20960
20961 wxPyEndAllowThreads(__tstate);
20962 if (PyErr_Occurred()) SWIG_fail;
20963 }
20964 {
20965 wxSize * resultptr;
20966 resultptr = new wxSize((wxSize &) result);
20967 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
20968 }
20969 return resultobj;
20970 fail:
20971 return NULL;
20972 }
20973
20974
20975 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
20976 PyObject *resultobj;
20977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20978 int arg2 ;
20979 bool arg3 = (bool) False ;
20980 PyObject * obj0 = 0 ;
20981 PyObject * obj1 = 0 ;
20982 PyObject * obj2 = 0 ;
20983 char *kwnames[] = {
20984 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
20985 };
20986
20987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
20988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
20989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20990 arg2 = (int) SWIG_AsInt(obj1);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 if (obj2) {
20993 arg3 = (bool) SWIG_AsBool(obj2);
20994 if (PyErr_Occurred()) SWIG_fail;
20995 }
20996 {
20997 PyThreadState* __tstate = wxPyBeginAllowThreads();
20998 (arg1)->SetItemSpacing(arg2,arg3);
20999
21000 wxPyEndAllowThreads(__tstate);
21001 if (PyErr_Occurred()) SWIG_fail;
21002 }
21003 Py_INCREF(Py_None); resultobj = Py_None;
21004 return resultobj;
21005 fail:
21006 return NULL;
21007 }
21008
21009
21010 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21011 PyObject *resultobj;
21012 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21013 int result;
21014 PyObject * obj0 = 0 ;
21015 char *kwnames[] = {
21016 (char *) "self", NULL
21017 };
21018
21019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
21020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21022 {
21023 PyThreadState* __tstate = wxPyBeginAllowThreads();
21024 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
21025
21026 wxPyEndAllowThreads(__tstate);
21027 if (PyErr_Occurred()) SWIG_fail;
21028 }
21029 resultobj = SWIG_FromInt((int)result);
21030 return resultobj;
21031 fail:
21032 return NULL;
21033 }
21034
21035
21036 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj;
21038 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21039 wxColour result;
21040 PyObject * obj0 = 0 ;
21041 char *kwnames[] = {
21042 (char *) "self", NULL
21043 };
21044
21045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
21046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21048 {
21049 PyThreadState* __tstate = wxPyBeginAllowThreads();
21050 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
21051
21052 wxPyEndAllowThreads(__tstate);
21053 if (PyErr_Occurred()) SWIG_fail;
21054 }
21055 {
21056 wxColour * resultptr;
21057 resultptr = new wxColour((wxColour &) result);
21058 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21059 }
21060 return resultobj;
21061 fail:
21062 return NULL;
21063 }
21064
21065
21066 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21067 PyObject *resultobj;
21068 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21069 wxColour *arg2 = 0 ;
21070 wxColour temp2 ;
21071 PyObject * obj0 = 0 ;
21072 PyObject * obj1 = 0 ;
21073 char *kwnames[] = {
21074 (char *) "self",(char *) "col", NULL
21075 };
21076
21077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
21078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21080 {
21081 arg2 = &temp2;
21082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21083 }
21084 {
21085 PyThreadState* __tstate = wxPyBeginAllowThreads();
21086 (arg1)->SetTextColour((wxColour const &)*arg2);
21087
21088 wxPyEndAllowThreads(__tstate);
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
21091 Py_INCREF(Py_None); resultobj = Py_None;
21092 return resultobj;
21093 fail:
21094 return NULL;
21095 }
21096
21097
21098 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21099 PyObject *resultobj;
21100 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21101 long result;
21102 PyObject * obj0 = 0 ;
21103 char *kwnames[] = {
21104 (char *) "self", NULL
21105 };
21106
21107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
21108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21110 {
21111 PyThreadState* __tstate = wxPyBeginAllowThreads();
21112 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
21113
21114 wxPyEndAllowThreads(__tstate);
21115 if (PyErr_Occurred()) SWIG_fail;
21116 }
21117 resultobj = SWIG_FromLong((long)result);
21118 return resultobj;
21119 fail:
21120 return NULL;
21121 }
21122
21123
21124 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
21125 PyObject *resultobj;
21126 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21127 long arg2 ;
21128 bool arg3 = (bool) True ;
21129 PyObject * obj0 = 0 ;
21130 PyObject * obj1 = 0 ;
21131 PyObject * obj2 = 0 ;
21132 char *kwnames[] = {
21133 (char *) "self",(char *) "style",(char *) "add", NULL
21134 };
21135
21136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
21137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21139 arg2 = (long) SWIG_AsLong(obj1);
21140 if (PyErr_Occurred()) SWIG_fail;
21141 if (obj2) {
21142 arg3 = (bool) SWIG_AsBool(obj2);
21143 if (PyErr_Occurred()) SWIG_fail;
21144 }
21145 {
21146 PyThreadState* __tstate = wxPyBeginAllowThreads();
21147 (arg1)->SetSingleStyle(arg2,arg3);
21148
21149 wxPyEndAllowThreads(__tstate);
21150 if (PyErr_Occurred()) SWIG_fail;
21151 }
21152 Py_INCREF(Py_None); resultobj = Py_None;
21153 return resultobj;
21154 fail:
21155 return NULL;
21156 }
21157
21158
21159 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
21160 PyObject *resultobj;
21161 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21162 long arg2 ;
21163 PyObject * obj0 = 0 ;
21164 PyObject * obj1 = 0 ;
21165 char *kwnames[] = {
21166 (char *) "self",(char *) "style", NULL
21167 };
21168
21169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
21170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21172 arg2 = (long) SWIG_AsLong(obj1);
21173 if (PyErr_Occurred()) SWIG_fail;
21174 {
21175 PyThreadState* __tstate = wxPyBeginAllowThreads();
21176 (arg1)->SetWindowStyleFlag(arg2);
21177
21178 wxPyEndAllowThreads(__tstate);
21179 if (PyErr_Occurred()) SWIG_fail;
21180 }
21181 Py_INCREF(Py_None); resultobj = Py_None;
21182 return resultobj;
21183 fail:
21184 return NULL;
21185 }
21186
21187
21188 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21189 PyObject *resultobj;
21190 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21191 long arg2 ;
21192 int arg3 = (int) wxLIST_NEXT_ALL ;
21193 int arg4 = (int) wxLIST_STATE_DONTCARE ;
21194 long result;
21195 PyObject * obj0 = 0 ;
21196 PyObject * obj1 = 0 ;
21197 PyObject * obj2 = 0 ;
21198 PyObject * obj3 = 0 ;
21199 char *kwnames[] = {
21200 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
21201 };
21202
21203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21206 arg2 = (long) SWIG_AsLong(obj1);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 if (obj2) {
21209 arg3 = (int) SWIG_AsInt(obj2);
21210 if (PyErr_Occurred()) SWIG_fail;
21211 }
21212 if (obj3) {
21213 arg4 = (int) SWIG_AsInt(obj3);
21214 if (PyErr_Occurred()) SWIG_fail;
21215 }
21216 {
21217 PyThreadState* __tstate = wxPyBeginAllowThreads();
21218 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
21219
21220 wxPyEndAllowThreads(__tstate);
21221 if (PyErr_Occurred()) SWIG_fail;
21222 }
21223 resultobj = SWIG_FromLong((long)result);
21224 return resultobj;
21225 fail:
21226 return NULL;
21227 }
21228
21229
21230 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21231 PyObject *resultobj;
21232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21233 int arg2 ;
21234 wxImageList *result;
21235 PyObject * obj0 = 0 ;
21236 PyObject * obj1 = 0 ;
21237 char *kwnames[] = {
21238 (char *) "self",(char *) "which", NULL
21239 };
21240
21241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
21242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21244 arg2 = (int) SWIG_AsInt(obj1);
21245 if (PyErr_Occurred()) SWIG_fail;
21246 {
21247 PyThreadState* __tstate = wxPyBeginAllowThreads();
21248 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
21249
21250 wxPyEndAllowThreads(__tstate);
21251 if (PyErr_Occurred()) SWIG_fail;
21252 }
21253 {
21254 resultobj = wxPyMake_wxObject(result);
21255 }
21256 return resultobj;
21257 fail:
21258 return NULL;
21259 }
21260
21261
21262 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21263 PyObject *resultobj;
21264 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21265 wxImageList *arg2 = (wxImageList *) 0 ;
21266 int arg3 ;
21267 PyObject * obj0 = 0 ;
21268 PyObject * obj1 = 0 ;
21269 PyObject * obj2 = 0 ;
21270 char *kwnames[] = {
21271 (char *) "self",(char *) "imageList",(char *) "which", NULL
21272 };
21273
21274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21277 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
21278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21279 arg3 = (int) SWIG_AsInt(obj2);
21280 if (PyErr_Occurred()) SWIG_fail;
21281 {
21282 PyThreadState* __tstate = wxPyBeginAllowThreads();
21283 (arg1)->SetImageList(arg2,arg3);
21284
21285 wxPyEndAllowThreads(__tstate);
21286 if (PyErr_Occurred()) SWIG_fail;
21287 }
21288 Py_INCREF(Py_None); resultobj = Py_None;
21289 return resultobj;
21290 fail:
21291 return NULL;
21292 }
21293
21294
21295 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21296 PyObject *resultobj;
21297 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21298 wxImageList *arg2 = (wxImageList *) 0 ;
21299 int arg3 ;
21300 PyObject * obj0 = 0 ;
21301 PyObject * obj1 = 0 ;
21302 PyObject * obj2 = 0 ;
21303 char *kwnames[] = {
21304 (char *) "self",(char *) "imageList",(char *) "which", NULL
21305 };
21306
21307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21310 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
21311 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
21312 arg3 = (int) SWIG_AsInt(obj2);
21313 if (PyErr_Occurred()) SWIG_fail;
21314 {
21315 PyThreadState* __tstate = wxPyBeginAllowThreads();
21316 (arg1)->AssignImageList(arg2,arg3);
21317
21318 wxPyEndAllowThreads(__tstate);
21319 if (PyErr_Occurred()) SWIG_fail;
21320 }
21321 Py_INCREF(Py_None); resultobj = Py_None;
21322 return resultobj;
21323 fail:
21324 return NULL;
21325 }
21326
21327
21328 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
21329 PyObject *resultobj;
21330 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21331 bool result;
21332 PyObject * obj0 = 0 ;
21333 char *kwnames[] = {
21334 (char *) "self", NULL
21335 };
21336
21337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
21338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21340 {
21341 PyThreadState* __tstate = wxPyBeginAllowThreads();
21342 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
21343
21344 wxPyEndAllowThreads(__tstate);
21345 if (PyErr_Occurred()) SWIG_fail;
21346 }
21347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21348 return resultobj;
21349 fail:
21350 return NULL;
21351 }
21352
21353
21354 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21355 PyObject *resultobj;
21356 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21357 long arg2 ;
21358 PyObject * obj0 = 0 ;
21359 PyObject * obj1 = 0 ;
21360 char *kwnames[] = {
21361 (char *) "self",(char *) "item", NULL
21362 };
21363
21364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
21365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21367 arg2 = (long) SWIG_AsLong(obj1);
21368 if (PyErr_Occurred()) SWIG_fail;
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 (arg1)->RefreshItem(arg2);
21372
21373 wxPyEndAllowThreads(__tstate);
21374 if (PyErr_Occurred()) SWIG_fail;
21375 }
21376 Py_INCREF(Py_None); resultobj = Py_None;
21377 return resultobj;
21378 fail:
21379 return NULL;
21380 }
21381
21382
21383 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21384 PyObject *resultobj;
21385 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21386 long arg2 ;
21387 long arg3 ;
21388 PyObject * obj0 = 0 ;
21389 PyObject * obj1 = 0 ;
21390 PyObject * obj2 = 0 ;
21391 char *kwnames[] = {
21392 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
21393 };
21394
21395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
21396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21398 arg2 = (long) SWIG_AsLong(obj1);
21399 if (PyErr_Occurred()) SWIG_fail;
21400 arg3 = (long) SWIG_AsLong(obj2);
21401 if (PyErr_Occurred()) SWIG_fail;
21402 {
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 (arg1)->RefreshItems(arg2,arg3);
21405
21406 wxPyEndAllowThreads(__tstate);
21407 if (PyErr_Occurred()) SWIG_fail;
21408 }
21409 Py_INCREF(Py_None); resultobj = Py_None;
21410 return resultobj;
21411 fail:
21412 return NULL;
21413 }
21414
21415
21416 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
21417 PyObject *resultobj;
21418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21419 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
21420 bool result;
21421 PyObject * obj0 = 0 ;
21422 PyObject * obj1 = 0 ;
21423 char *kwnames[] = {
21424 (char *) "self",(char *) "flag", NULL
21425 };
21426
21427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
21428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21430 if (obj1) {
21431 arg2 = (int) SWIG_AsInt(obj1);
21432 if (PyErr_Occurred()) SWIG_fail;
21433 }
21434 {
21435 PyThreadState* __tstate = wxPyBeginAllowThreads();
21436 result = (bool)(arg1)->Arrange(arg2);
21437
21438 wxPyEndAllowThreads(__tstate);
21439 if (PyErr_Occurred()) SWIG_fail;
21440 }
21441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21442 return resultobj;
21443 fail:
21444 return NULL;
21445 }
21446
21447
21448 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21449 PyObject *resultobj;
21450 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21451 long arg2 ;
21452 bool result;
21453 PyObject * obj0 = 0 ;
21454 PyObject * obj1 = 0 ;
21455 char *kwnames[] = {
21456 (char *) "self",(char *) "item", NULL
21457 };
21458
21459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
21460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21462 arg2 = (long) SWIG_AsLong(obj1);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 result = (bool)(arg1)->DeleteItem(arg2);
21467
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21472 return resultobj;
21473 fail:
21474 return NULL;
21475 }
21476
21477
21478 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21479 PyObject *resultobj;
21480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21481 bool result;
21482 PyObject * obj0 = 0 ;
21483 char *kwnames[] = {
21484 (char *) "self", NULL
21485 };
21486
21487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
21488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21490 {
21491 PyThreadState* __tstate = wxPyBeginAllowThreads();
21492 result = (bool)(arg1)->DeleteAllItems();
21493
21494 wxPyEndAllowThreads(__tstate);
21495 if (PyErr_Occurred()) SWIG_fail;
21496 }
21497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21498 return resultobj;
21499 fail:
21500 return NULL;
21501 }
21502
21503
21504 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21505 PyObject *resultobj;
21506 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21507 int arg2 ;
21508 bool result;
21509 PyObject * obj0 = 0 ;
21510 PyObject * obj1 = 0 ;
21511 char *kwnames[] = {
21512 (char *) "self",(char *) "col", NULL
21513 };
21514
21515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
21516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21518 arg2 = (int) SWIG_AsInt(obj1);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 {
21521 PyThreadState* __tstate = wxPyBeginAllowThreads();
21522 result = (bool)(arg1)->DeleteColumn(arg2);
21523
21524 wxPyEndAllowThreads(__tstate);
21525 if (PyErr_Occurred()) SWIG_fail;
21526 }
21527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21528 return resultobj;
21529 fail:
21530 return NULL;
21531 }
21532
21533
21534 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
21535 PyObject *resultobj;
21536 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21537 bool result;
21538 PyObject * obj0 = 0 ;
21539 char *kwnames[] = {
21540 (char *) "self", NULL
21541 };
21542
21543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
21544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21546 {
21547 PyThreadState* __tstate = wxPyBeginAllowThreads();
21548 result = (bool)(arg1)->DeleteAllColumns();
21549
21550 wxPyEndAllowThreads(__tstate);
21551 if (PyErr_Occurred()) SWIG_fail;
21552 }
21553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21554 return resultobj;
21555 fail:
21556 return NULL;
21557 }
21558
21559
21560 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21561 PyObject *resultobj;
21562 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21563 PyObject * obj0 = 0 ;
21564 char *kwnames[] = {
21565 (char *) "self", NULL
21566 };
21567
21568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
21569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21571 {
21572 PyThreadState* __tstate = wxPyBeginAllowThreads();
21573 (arg1)->ClearAll();
21574
21575 wxPyEndAllowThreads(__tstate);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
21578 Py_INCREF(Py_None); resultobj = Py_None;
21579 return resultobj;
21580 fail:
21581 return NULL;
21582 }
21583
21584
21585 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21586 PyObject *resultobj;
21587 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21588 long arg2 ;
21589 PyObject * obj0 = 0 ;
21590 PyObject * obj1 = 0 ;
21591 char *kwnames[] = {
21592 (char *) "self",(char *) "item", NULL
21593 };
21594
21595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
21596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21598 arg2 = (long) SWIG_AsLong(obj1);
21599 if (PyErr_Occurred()) SWIG_fail;
21600 {
21601 PyThreadState* __tstate = wxPyBeginAllowThreads();
21602 (arg1)->EditLabel(arg2);
21603
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
21607 Py_INCREF(Py_None); resultobj = Py_None;
21608 return resultobj;
21609 fail:
21610 return NULL;
21611 }
21612
21613
21614 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
21615 PyObject *resultobj;
21616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21617 long arg2 ;
21618 bool result;
21619 PyObject * obj0 = 0 ;
21620 PyObject * obj1 = 0 ;
21621 char *kwnames[] = {
21622 (char *) "self",(char *) "item", NULL
21623 };
21624
21625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
21626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21628 arg2 = (long) SWIG_AsLong(obj1);
21629 if (PyErr_Occurred()) SWIG_fail;
21630 {
21631 PyThreadState* __tstate = wxPyBeginAllowThreads();
21632 result = (bool)(arg1)->EnsureVisible(arg2);
21633
21634 wxPyEndAllowThreads(__tstate);
21635 if (PyErr_Occurred()) SWIG_fail;
21636 }
21637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21638 return resultobj;
21639 fail:
21640 return NULL;
21641 }
21642
21643
21644 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21645 PyObject *resultobj;
21646 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21647 long arg2 ;
21648 wxString *arg3 = 0 ;
21649 bool arg4 = (bool) False ;
21650 long result;
21651 bool temp3 = False ;
21652 PyObject * obj0 = 0 ;
21653 PyObject * obj1 = 0 ;
21654 PyObject * obj2 = 0 ;
21655 PyObject * obj3 = 0 ;
21656 char *kwnames[] = {
21657 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
21658 };
21659
21660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21663 arg2 = (long) SWIG_AsLong(obj1);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 {
21666 arg3 = wxString_in_helper(obj2);
21667 if (arg3 == NULL) SWIG_fail;
21668 temp3 = True;
21669 }
21670 if (obj3) {
21671 arg4 = (bool) SWIG_AsBool(obj3);
21672 if (PyErr_Occurred()) SWIG_fail;
21673 }
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
21677
21678 wxPyEndAllowThreads(__tstate);
21679 if (PyErr_Occurred()) SWIG_fail;
21680 }
21681 resultobj = SWIG_FromLong((long)result);
21682 {
21683 if (temp3)
21684 delete arg3;
21685 }
21686 return resultobj;
21687 fail:
21688 {
21689 if (temp3)
21690 delete arg3;
21691 }
21692 return NULL;
21693 }
21694
21695
21696 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21697 PyObject *resultobj;
21698 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21699 long arg2 ;
21700 long arg3 ;
21701 long result;
21702 PyObject * obj0 = 0 ;
21703 PyObject * obj1 = 0 ;
21704 PyObject * obj2 = 0 ;
21705 char *kwnames[] = {
21706 (char *) "self",(char *) "start",(char *) "data", NULL
21707 };
21708
21709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21712 arg2 = (long) SWIG_AsLong(obj1);
21713 if (PyErr_Occurred()) SWIG_fail;
21714 arg3 = (long) SWIG_AsLong(obj2);
21715 if (PyErr_Occurred()) SWIG_fail;
21716 {
21717 PyThreadState* __tstate = wxPyBeginAllowThreads();
21718 result = (long)(arg1)->FindItem(arg2,arg3);
21719
21720 wxPyEndAllowThreads(__tstate);
21721 if (PyErr_Occurred()) SWIG_fail;
21722 }
21723 resultobj = SWIG_FromLong((long)result);
21724 return resultobj;
21725 fail:
21726 return NULL;
21727 }
21728
21729
21730 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
21731 PyObject *resultobj;
21732 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21733 long arg2 ;
21734 wxPoint *arg3 = 0 ;
21735 int arg4 ;
21736 long result;
21737 wxPoint temp3 ;
21738 PyObject * obj0 = 0 ;
21739 PyObject * obj1 = 0 ;
21740 PyObject * obj2 = 0 ;
21741 PyObject * obj3 = 0 ;
21742 char *kwnames[] = {
21743 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
21744 };
21745
21746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21749 arg2 = (long) SWIG_AsLong(obj1);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 {
21752 arg3 = &temp3;
21753 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21754 }
21755 arg4 = (int) SWIG_AsInt(obj3);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 {
21758 PyThreadState* __tstate = wxPyBeginAllowThreads();
21759 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
21760
21761 wxPyEndAllowThreads(__tstate);
21762 if (PyErr_Occurred()) SWIG_fail;
21763 }
21764 resultobj = SWIG_FromLong((long)result);
21765 return resultobj;
21766 fail:
21767 return NULL;
21768 }
21769
21770
21771 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
21772 PyObject *resultobj;
21773 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21774 wxPoint *arg2 = 0 ;
21775 int *arg3 = 0 ;
21776 long result;
21777 wxPoint temp2 ;
21778 int temp3 ;
21779 PyObject * obj0 = 0 ;
21780 PyObject * obj1 = 0 ;
21781 char *kwnames[] = {
21782 (char *) "self",(char *) "point", NULL
21783 };
21784
21785 arg3 = &temp3;
21786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
21787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21789 {
21790 arg2 = &temp2;
21791 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21792 }
21793 {
21794 PyThreadState* __tstate = wxPyBeginAllowThreads();
21795 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
21796
21797 wxPyEndAllowThreads(__tstate);
21798 if (PyErr_Occurred()) SWIG_fail;
21799 }
21800 resultobj = SWIG_FromLong((long)result);
21801 {
21802 PyObject *o = PyInt_FromLong((long) (*arg3));
21803 resultobj = t_output_helper(resultobj,o);
21804 }
21805 return resultobj;
21806 fail:
21807 return NULL;
21808 }
21809
21810
21811 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21812 PyObject *resultobj;
21813 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21814 wxListItem *arg2 = 0 ;
21815 long result;
21816 PyObject * obj0 = 0 ;
21817 PyObject * obj1 = 0 ;
21818 char *kwnames[] = {
21819 (char *) "self",(char *) "info", NULL
21820 };
21821
21822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
21823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21825 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21826 SWIG_POINTER_EXCEPTION | 0)) == -1)
21827 SWIG_fail;
21828 if (arg2 == NULL) {
21829 PyErr_SetString(PyExc_TypeError,"null reference");
21830 SWIG_fail;
21831 }
21832 {
21833 PyThreadState* __tstate = wxPyBeginAllowThreads();
21834 result = (long)(arg1)->InsertItem(*arg2);
21835
21836 wxPyEndAllowThreads(__tstate);
21837 if (PyErr_Occurred()) SWIG_fail;
21838 }
21839 resultobj = SWIG_FromLong((long)result);
21840 return resultobj;
21841 fail:
21842 return NULL;
21843 }
21844
21845
21846 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21847 PyObject *resultobj;
21848 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21849 long arg2 ;
21850 wxString *arg3 = 0 ;
21851 long result;
21852 bool temp3 = False ;
21853 PyObject * obj0 = 0 ;
21854 PyObject * obj1 = 0 ;
21855 PyObject * obj2 = 0 ;
21856 char *kwnames[] = {
21857 (char *) "self",(char *) "index",(char *) "label", NULL
21858 };
21859
21860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21863 arg2 = (long) SWIG_AsLong(obj1);
21864 if (PyErr_Occurred()) SWIG_fail;
21865 {
21866 arg3 = wxString_in_helper(obj2);
21867 if (arg3 == NULL) SWIG_fail;
21868 temp3 = True;
21869 }
21870 {
21871 PyThreadState* __tstate = wxPyBeginAllowThreads();
21872 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
21873
21874 wxPyEndAllowThreads(__tstate);
21875 if (PyErr_Occurred()) SWIG_fail;
21876 }
21877 resultobj = SWIG_FromLong((long)result);
21878 {
21879 if (temp3)
21880 delete arg3;
21881 }
21882 return resultobj;
21883 fail:
21884 {
21885 if (temp3)
21886 delete arg3;
21887 }
21888 return NULL;
21889 }
21890
21891
21892 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21893 PyObject *resultobj;
21894 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21895 long arg2 ;
21896 int arg3 ;
21897 long result;
21898 PyObject * obj0 = 0 ;
21899 PyObject * obj1 = 0 ;
21900 PyObject * obj2 = 0 ;
21901 char *kwnames[] = {
21902 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
21903 };
21904
21905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21908 arg2 = (long) SWIG_AsLong(obj1);
21909 if (PyErr_Occurred()) SWIG_fail;
21910 arg3 = (int) SWIG_AsInt(obj2);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 result = (long)(arg1)->InsertItem(arg2,arg3);
21915
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 resultobj = SWIG_FromLong((long)result);
21920 return resultobj;
21921 fail:
21922 return NULL;
21923 }
21924
21925
21926 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21929 long arg2 ;
21930 wxString *arg3 = 0 ;
21931 int arg4 ;
21932 long result;
21933 bool temp3 = False ;
21934 PyObject * obj0 = 0 ;
21935 PyObject * obj1 = 0 ;
21936 PyObject * obj2 = 0 ;
21937 PyObject * obj3 = 0 ;
21938 char *kwnames[] = {
21939 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
21940 };
21941
21942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21945 arg2 = (long) SWIG_AsLong(obj1);
21946 if (PyErr_Occurred()) SWIG_fail;
21947 {
21948 arg3 = wxString_in_helper(obj2);
21949 if (arg3 == NULL) SWIG_fail;
21950 temp3 = True;
21951 }
21952 arg4 = (int) SWIG_AsInt(obj3);
21953 if (PyErr_Occurred()) SWIG_fail;
21954 {
21955 PyThreadState* __tstate = wxPyBeginAllowThreads();
21956 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
21957
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 resultobj = SWIG_FromLong((long)result);
21962 {
21963 if (temp3)
21964 delete arg3;
21965 }
21966 return resultobj;
21967 fail:
21968 {
21969 if (temp3)
21970 delete arg3;
21971 }
21972 return NULL;
21973 }
21974
21975
21976 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21977 PyObject *resultobj;
21978 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21979 long arg2 ;
21980 wxListItem *arg3 = 0 ;
21981 long result;
21982 PyObject * obj0 = 0 ;
21983 PyObject * obj1 = 0 ;
21984 PyObject * obj2 = 0 ;
21985 char *kwnames[] = {
21986 (char *) "self",(char *) "col",(char *) "info", NULL
21987 };
21988
21989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21992 arg2 = (long) SWIG_AsLong(obj1);
21993 if (PyErr_Occurred()) SWIG_fail;
21994 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21995 SWIG_POINTER_EXCEPTION | 0)) == -1)
21996 SWIG_fail;
21997 if (arg3 == NULL) {
21998 PyErr_SetString(PyExc_TypeError,"null reference");
21999 SWIG_fail;
22000 }
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (long)(arg1)->InsertColumn(arg2,*arg3);
22004
22005 wxPyEndAllowThreads(__tstate);
22006 if (PyErr_Occurred()) SWIG_fail;
22007 }
22008 resultobj = SWIG_FromLong((long)result);
22009 return resultobj;
22010 fail:
22011 return NULL;
22012 }
22013
22014
22015 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22016 PyObject *resultobj;
22017 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22018 long arg2 ;
22019 wxString *arg3 = 0 ;
22020 int arg4 = (int) wxLIST_FORMAT_LEFT ;
22021 int arg5 = (int) -1 ;
22022 long result;
22023 bool temp3 = False ;
22024 PyObject * obj0 = 0 ;
22025 PyObject * obj1 = 0 ;
22026 PyObject * obj2 = 0 ;
22027 PyObject * obj3 = 0 ;
22028 PyObject * obj4 = 0 ;
22029 char *kwnames[] = {
22030 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
22031 };
22032
22033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22036 arg2 = (long) SWIG_AsLong(obj1);
22037 if (PyErr_Occurred()) SWIG_fail;
22038 {
22039 arg3 = wxString_in_helper(obj2);
22040 if (arg3 == NULL) SWIG_fail;
22041 temp3 = True;
22042 }
22043 if (obj3) {
22044 arg4 = (int) SWIG_AsInt(obj3);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
22047 if (obj4) {
22048 arg5 = (int) SWIG_AsInt(obj4);
22049 if (PyErr_Occurred()) SWIG_fail;
22050 }
22051 {
22052 PyThreadState* __tstate = wxPyBeginAllowThreads();
22053 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
22054
22055 wxPyEndAllowThreads(__tstate);
22056 if (PyErr_Occurred()) SWIG_fail;
22057 }
22058 resultobj = SWIG_FromLong((long)result);
22059 {
22060 if (temp3)
22061 delete arg3;
22062 }
22063 return resultobj;
22064 fail:
22065 {
22066 if (temp3)
22067 delete arg3;
22068 }
22069 return NULL;
22070 }
22071
22072
22073 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22074 PyObject *resultobj;
22075 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22076 long arg2 ;
22077 PyObject * obj0 = 0 ;
22078 PyObject * obj1 = 0 ;
22079 char *kwnames[] = {
22080 (char *) "self",(char *) "count", NULL
22081 };
22082
22083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
22084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22086 arg2 = (long) SWIG_AsLong(obj1);
22087 if (PyErr_Occurred()) SWIG_fail;
22088 {
22089 PyThreadState* __tstate = wxPyBeginAllowThreads();
22090 (arg1)->SetItemCount(arg2);
22091
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 Py_INCREF(Py_None); resultobj = Py_None;
22096 return resultobj;
22097 fail:
22098 return NULL;
22099 }
22100
22101
22102 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
22103 PyObject *resultobj;
22104 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22105 int arg2 ;
22106 int arg3 ;
22107 bool result;
22108 PyObject * obj0 = 0 ;
22109 PyObject * obj1 = 0 ;
22110 PyObject * obj2 = 0 ;
22111 char *kwnames[] = {
22112 (char *) "self",(char *) "dx",(char *) "dy", NULL
22113 };
22114
22115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22118 arg2 = (int) SWIG_AsInt(obj1);
22119 if (PyErr_Occurred()) SWIG_fail;
22120 arg3 = (int) SWIG_AsInt(obj2);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 result = (bool)(arg1)->ScrollList(arg2,arg3);
22125
22126 wxPyEndAllowThreads(__tstate);
22127 if (PyErr_Occurred()) SWIG_fail;
22128 }
22129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22130 return resultobj;
22131 fail:
22132 return NULL;
22133 }
22134
22135
22136 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22137 PyObject *resultobj;
22138 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22139 long arg2 ;
22140 wxColour *arg3 = 0 ;
22141 wxColour temp3 ;
22142 PyObject * obj0 = 0 ;
22143 PyObject * obj1 = 0 ;
22144 PyObject * obj2 = 0 ;
22145 char *kwnames[] = {
22146 (char *) "self",(char *) "item",(char *) "col", NULL
22147 };
22148
22149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22152 arg2 = (long) SWIG_AsLong(obj1);
22153 if (PyErr_Occurred()) SWIG_fail;
22154 {
22155 arg3 = &temp3;
22156 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22157 }
22158 {
22159 PyThreadState* __tstate = wxPyBeginAllowThreads();
22160 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
22161
22162 wxPyEndAllowThreads(__tstate);
22163 if (PyErr_Occurred()) SWIG_fail;
22164 }
22165 Py_INCREF(Py_None); resultobj = Py_None;
22166 return resultobj;
22167 fail:
22168 return NULL;
22169 }
22170
22171
22172 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22173 PyObject *resultobj;
22174 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22175 long arg2 ;
22176 wxColour result;
22177 PyObject * obj0 = 0 ;
22178 PyObject * obj1 = 0 ;
22179 char *kwnames[] = {
22180 (char *) "self",(char *) "item", NULL
22181 };
22182
22183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
22184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22186 arg2 = (long) SWIG_AsLong(obj1);
22187 if (PyErr_Occurred()) SWIG_fail;
22188 {
22189 PyThreadState* __tstate = wxPyBeginAllowThreads();
22190 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
22191
22192 wxPyEndAllowThreads(__tstate);
22193 if (PyErr_Occurred()) SWIG_fail;
22194 }
22195 {
22196 wxColour * resultptr;
22197 resultptr = new wxColour((wxColour &) result);
22198 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22199 }
22200 return resultobj;
22201 fail:
22202 return NULL;
22203 }
22204
22205
22206 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22207 PyObject *resultobj;
22208 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22209 long arg2 ;
22210 wxColour *arg3 = 0 ;
22211 wxColour temp3 ;
22212 PyObject * obj0 = 0 ;
22213 PyObject * obj1 = 0 ;
22214 PyObject * obj2 = 0 ;
22215 char *kwnames[] = {
22216 (char *) "self",(char *) "item",(char *) "col", NULL
22217 };
22218
22219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22222 arg2 = (long) SWIG_AsLong(obj1);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 {
22225 arg3 = &temp3;
22226 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22227 }
22228 {
22229 PyThreadState* __tstate = wxPyBeginAllowThreads();
22230 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
22231
22232 wxPyEndAllowThreads(__tstate);
22233 if (PyErr_Occurred()) SWIG_fail;
22234 }
22235 Py_INCREF(Py_None); resultobj = Py_None;
22236 return resultobj;
22237 fail:
22238 return NULL;
22239 }
22240
22241
22242 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22243 PyObject *resultobj;
22244 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22245 long arg2 ;
22246 wxColour result;
22247 PyObject * obj0 = 0 ;
22248 PyObject * obj1 = 0 ;
22249 char *kwnames[] = {
22250 (char *) "self",(char *) "item", NULL
22251 };
22252
22253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
22254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22256 arg2 = (long) SWIG_AsLong(obj1);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 {
22259 PyThreadState* __tstate = wxPyBeginAllowThreads();
22260 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
22261
22262 wxPyEndAllowThreads(__tstate);
22263 if (PyErr_Occurred()) SWIG_fail;
22264 }
22265 {
22266 wxColour * resultptr;
22267 resultptr = new wxColour((wxColour &) result);
22268 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22269 }
22270 return resultobj;
22271 fail:
22272 return NULL;
22273 }
22274
22275
22276 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22277 PyObject *resultobj;
22278 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22279 PyObject *arg2 = (PyObject *) 0 ;
22280 bool result;
22281 PyObject * obj0 = 0 ;
22282 PyObject * obj1 = 0 ;
22283 char *kwnames[] = {
22284 (char *) "self",(char *) "func", NULL
22285 };
22286
22287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
22288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22290 arg2 = obj1;
22291 {
22292 PyThreadState* __tstate = wxPyBeginAllowThreads();
22293 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
22294
22295 wxPyEndAllowThreads(__tstate);
22296 if (PyErr_Occurred()) SWIG_fail;
22297 }
22298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22299 return resultobj;
22300 fail:
22301 return NULL;
22302 }
22303
22304
22305 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
22306 PyObject *resultobj;
22307 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22308 wxWindow *result;
22309 PyObject * obj0 = 0 ;
22310 char *kwnames[] = {
22311 (char *) "self", NULL
22312 };
22313
22314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
22315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
22320
22321 wxPyEndAllowThreads(__tstate);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 }
22324 {
22325 resultobj = wxPyMake_wxObject(result);
22326 }
22327 return resultobj;
22328 fail:
22329 return NULL;
22330 }
22331
22332
22333 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
22334 PyObject *obj;
22335 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22336 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
22337 Py_INCREF(obj);
22338 return Py_BuildValue((char *)"");
22339 }
22340 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22341 PyObject *resultobj;
22342 wxWindow *arg1 = (wxWindow *) 0 ;
22343 int arg2 = (int) -1 ;
22344 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22345 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22346 wxSize const &arg4_defvalue = wxDefaultSize ;
22347 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22348 long arg5 = (long) wxLC_REPORT ;
22349 wxValidator const &arg6_defvalue = wxDefaultValidator ;
22350 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
22351 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
22352 wxString *arg7 = (wxString *) &arg7_defvalue ;
22353 wxListView *result;
22354 wxPoint temp3 ;
22355 wxSize temp4 ;
22356 bool temp7 = False ;
22357 PyObject * obj0 = 0 ;
22358 PyObject * obj1 = 0 ;
22359 PyObject * obj2 = 0 ;
22360 PyObject * obj3 = 0 ;
22361 PyObject * obj4 = 0 ;
22362 PyObject * obj5 = 0 ;
22363 PyObject * obj6 = 0 ;
22364 char *kwnames[] = {
22365 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22366 };
22367
22368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22371 if (obj1) {
22372 arg2 = (int) SWIG_AsInt(obj1);
22373 if (PyErr_Occurred()) SWIG_fail;
22374 }
22375 if (obj2) {
22376 {
22377 arg3 = &temp3;
22378 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22379 }
22380 }
22381 if (obj3) {
22382 {
22383 arg4 = &temp4;
22384 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22385 }
22386 }
22387 if (obj4) {
22388 arg5 = (long) SWIG_AsLong(obj4);
22389 if (PyErr_Occurred()) SWIG_fail;
22390 }
22391 if (obj5) {
22392 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
22393 SWIG_POINTER_EXCEPTION | 0)) == -1)
22394 SWIG_fail;
22395 if (arg6 == NULL) {
22396 PyErr_SetString(PyExc_TypeError,"null reference");
22397 SWIG_fail;
22398 }
22399 }
22400 if (obj6) {
22401 {
22402 arg7 = wxString_in_helper(obj6);
22403 if (arg7 == NULL) SWIG_fail;
22404 temp7 = True;
22405 }
22406 }
22407 {
22408 PyThreadState* __tstate = wxPyBeginAllowThreads();
22409 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
22410
22411 wxPyEndAllowThreads(__tstate);
22412 if (PyErr_Occurred()) SWIG_fail;
22413 }
22414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
22415 {
22416 if (temp7)
22417 delete arg7;
22418 }
22419 return resultobj;
22420 fail:
22421 {
22422 if (temp7)
22423 delete arg7;
22424 }
22425 return NULL;
22426 }
22427
22428
22429 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22430 PyObject *resultobj;
22431 wxListView *result;
22432 char *kwnames[] = {
22433 NULL
22434 };
22435
22436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
22437 {
22438 PyThreadState* __tstate = wxPyBeginAllowThreads();
22439 result = (wxListView *)new wxListView();
22440
22441 wxPyEndAllowThreads(__tstate);
22442 if (PyErr_Occurred()) SWIG_fail;
22443 }
22444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
22445 return resultobj;
22446 fail:
22447 return NULL;
22448 }
22449
22450
22451 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
22452 PyObject *resultobj;
22453 wxListView *arg1 = (wxListView *) 0 ;
22454 wxWindow *arg2 = (wxWindow *) 0 ;
22455 int arg3 = (int) -1 ;
22456 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22457 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22458 wxSize const &arg5_defvalue = wxDefaultSize ;
22459 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22460 long arg6 = (long) wxLC_REPORT ;
22461 wxValidator const &arg7_defvalue = wxDefaultValidator ;
22462 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
22463 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
22464 wxString *arg8 = (wxString *) &arg8_defvalue ;
22465 bool result;
22466 wxPoint temp4 ;
22467 wxSize temp5 ;
22468 bool temp8 = False ;
22469 PyObject * obj0 = 0 ;
22470 PyObject * obj1 = 0 ;
22471 PyObject * obj2 = 0 ;
22472 PyObject * obj3 = 0 ;
22473 PyObject * obj4 = 0 ;
22474 PyObject * obj5 = 0 ;
22475 PyObject * obj6 = 0 ;
22476 PyObject * obj7 = 0 ;
22477 char *kwnames[] = {
22478 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22479 };
22480
22481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
22482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22484 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
22485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22486 if (obj2) {
22487 arg3 = (int) SWIG_AsInt(obj2);
22488 if (PyErr_Occurred()) SWIG_fail;
22489 }
22490 if (obj3) {
22491 {
22492 arg4 = &temp4;
22493 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22494 }
22495 }
22496 if (obj4) {
22497 {
22498 arg5 = &temp5;
22499 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22500 }
22501 }
22502 if (obj5) {
22503 arg6 = (long) SWIG_AsLong(obj5);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 if (obj6) {
22507 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
22508 SWIG_POINTER_EXCEPTION | 0)) == -1)
22509 SWIG_fail;
22510 if (arg7 == NULL) {
22511 PyErr_SetString(PyExc_TypeError,"null reference");
22512 SWIG_fail;
22513 }
22514 }
22515 if (obj7) {
22516 {
22517 arg8 = wxString_in_helper(obj7);
22518 if (arg8 == NULL) SWIG_fail;
22519 temp8 = True;
22520 }
22521 }
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
22524 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
22525
22526 wxPyEndAllowThreads(__tstate);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
22529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22530 {
22531 if (temp8)
22532 delete arg8;
22533 }
22534 return resultobj;
22535 fail:
22536 {
22537 if (temp8)
22538 delete arg8;
22539 }
22540 return NULL;
22541 }
22542
22543
22544 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
22545 PyObject *resultobj;
22546 wxListView *arg1 = (wxListView *) 0 ;
22547 long arg2 ;
22548 bool arg3 = (bool) True ;
22549 PyObject * obj0 = 0 ;
22550 PyObject * obj1 = 0 ;
22551 PyObject * obj2 = 0 ;
22552 char *kwnames[] = {
22553 (char *) "self",(char *) "n",(char *) "on", NULL
22554 };
22555
22556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
22557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22559 arg2 = (long) SWIG_AsLong(obj1);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 if (obj2) {
22562 arg3 = (bool) SWIG_AsBool(obj2);
22563 if (PyErr_Occurred()) SWIG_fail;
22564 }
22565 {
22566 PyThreadState* __tstate = wxPyBeginAllowThreads();
22567 (arg1)->Select(arg2,arg3);
22568
22569 wxPyEndAllowThreads(__tstate);
22570 if (PyErr_Occurred()) SWIG_fail;
22571 }
22572 Py_INCREF(Py_None); resultobj = Py_None;
22573 return resultobj;
22574 fail:
22575 return NULL;
22576 }
22577
22578
22579 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
22580 PyObject *resultobj;
22581 wxListView *arg1 = (wxListView *) 0 ;
22582 long arg2 ;
22583 PyObject * obj0 = 0 ;
22584 PyObject * obj1 = 0 ;
22585 char *kwnames[] = {
22586 (char *) "self",(char *) "index", NULL
22587 };
22588
22589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
22590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22592 arg2 = (long) SWIG_AsLong(obj1);
22593 if (PyErr_Occurred()) SWIG_fail;
22594 {
22595 PyThreadState* __tstate = wxPyBeginAllowThreads();
22596 (arg1)->Focus(arg2);
22597
22598 wxPyEndAllowThreads(__tstate);
22599 if (PyErr_Occurred()) SWIG_fail;
22600 }
22601 Py_INCREF(Py_None); resultobj = Py_None;
22602 return resultobj;
22603 fail:
22604 return NULL;
22605 }
22606
22607
22608 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22609 PyObject *resultobj;
22610 wxListView *arg1 = (wxListView *) 0 ;
22611 long result;
22612 PyObject * obj0 = 0 ;
22613 char *kwnames[] = {
22614 (char *) "self", NULL
22615 };
22616
22617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
22618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 result = (long)((wxListView const *)arg1)->GetFocusedItem();
22623
22624 wxPyEndAllowThreads(__tstate);
22625 if (PyErr_Occurred()) SWIG_fail;
22626 }
22627 resultobj = SWIG_FromLong((long)result);
22628 return resultobj;
22629 fail:
22630 return NULL;
22631 }
22632
22633
22634 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22635 PyObject *resultobj;
22636 wxListView *arg1 = (wxListView *) 0 ;
22637 long arg2 ;
22638 long result;
22639 PyObject * obj0 = 0 ;
22640 PyObject * obj1 = 0 ;
22641 char *kwnames[] = {
22642 (char *) "self",(char *) "item", NULL
22643 };
22644
22645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
22646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22648 arg2 = (long) SWIG_AsLong(obj1);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 {
22651 PyThreadState* __tstate = wxPyBeginAllowThreads();
22652 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
22653
22654 wxPyEndAllowThreads(__tstate);
22655 if (PyErr_Occurred()) SWIG_fail;
22656 }
22657 resultobj = SWIG_FromLong((long)result);
22658 return resultobj;
22659 fail:
22660 return NULL;
22661 }
22662
22663
22664 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22665 PyObject *resultobj;
22666 wxListView *arg1 = (wxListView *) 0 ;
22667 long result;
22668 PyObject * obj0 = 0 ;
22669 char *kwnames[] = {
22670 (char *) "self", NULL
22671 };
22672
22673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
22674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22676 {
22677 PyThreadState* __tstate = wxPyBeginAllowThreads();
22678 result = (long)((wxListView const *)arg1)->GetFirstSelected();
22679
22680 wxPyEndAllowThreads(__tstate);
22681 if (PyErr_Occurred()) SWIG_fail;
22682 }
22683 resultobj = SWIG_FromLong((long)result);
22684 return resultobj;
22685 fail:
22686 return NULL;
22687 }
22688
22689
22690 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22691 PyObject *resultobj;
22692 wxListView *arg1 = (wxListView *) 0 ;
22693 long arg2 ;
22694 bool result;
22695 PyObject * obj0 = 0 ;
22696 PyObject * obj1 = 0 ;
22697 char *kwnames[] = {
22698 (char *) "self",(char *) "index", NULL
22699 };
22700
22701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
22702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22704 arg2 = (long) SWIG_AsLong(obj1);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 {
22707 PyThreadState* __tstate = wxPyBeginAllowThreads();
22708 result = (bool)(arg1)->IsSelected(arg2);
22709
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22714 return resultobj;
22715 fail:
22716 return NULL;
22717 }
22718
22719
22720 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
22721 PyObject *resultobj;
22722 wxListView *arg1 = (wxListView *) 0 ;
22723 int arg2 ;
22724 int arg3 ;
22725 PyObject * obj0 = 0 ;
22726 PyObject * obj1 = 0 ;
22727 PyObject * obj2 = 0 ;
22728 char *kwnames[] = {
22729 (char *) "self",(char *) "col",(char *) "image", NULL
22730 };
22731
22732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
22733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22735 arg2 = (int) SWIG_AsInt(obj1);
22736 if (PyErr_Occurred()) SWIG_fail;
22737 arg3 = (int) SWIG_AsInt(obj2);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 {
22740 PyThreadState* __tstate = wxPyBeginAllowThreads();
22741 (arg1)->SetColumnImage(arg2,arg3);
22742
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 Py_INCREF(Py_None); resultobj = Py_None;
22747 return resultobj;
22748 fail:
22749 return NULL;
22750 }
22751
22752
22753 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
22754 PyObject *resultobj;
22755 wxListView *arg1 = (wxListView *) 0 ;
22756 int arg2 ;
22757 PyObject * obj0 = 0 ;
22758 PyObject * obj1 = 0 ;
22759 char *kwnames[] = {
22760 (char *) "self",(char *) "col", NULL
22761 };
22762
22763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
22764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
22765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22766 arg2 = (int) SWIG_AsInt(obj1);
22767 if (PyErr_Occurred()) SWIG_fail;
22768 {
22769 PyThreadState* __tstate = wxPyBeginAllowThreads();
22770 (arg1)->ClearColumnImage(arg2);
22771
22772 wxPyEndAllowThreads(__tstate);
22773 if (PyErr_Occurred()) SWIG_fail;
22774 }
22775 Py_INCREF(Py_None); resultobj = Py_None;
22776 return resultobj;
22777 fail:
22778 return NULL;
22779 }
22780
22781
22782 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
22783 PyObject *obj;
22784 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22785 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
22786 Py_INCREF(obj);
22787 return Py_BuildValue((char *)"");
22788 }
22789 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
22790 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
22791 return 1;
22792 }
22793
22794
22795 static PyObject *_wrap_TreeCtrlNameStr_get() {
22796 PyObject *pyobj;
22797
22798 {
22799 #if wxUSE_UNICODE
22800 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22801 #else
22802 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22803 #endif
22804 }
22805 return pyobj;
22806 }
22807
22808
22809 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
22810 PyObject *resultobj;
22811 wxTreeItemId *result;
22812 char *kwnames[] = {
22813 NULL
22814 };
22815
22816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
22817 {
22818 PyThreadState* __tstate = wxPyBeginAllowThreads();
22819 result = (wxTreeItemId *)new wxTreeItemId();
22820
22821 wxPyEndAllowThreads(__tstate);
22822 if (PyErr_Occurred()) SWIG_fail;
22823 }
22824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
22825 return resultobj;
22826 fail:
22827 return NULL;
22828 }
22829
22830
22831 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
22832 PyObject *resultobj;
22833 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22834 PyObject * obj0 = 0 ;
22835 char *kwnames[] = {
22836 (char *) "self", NULL
22837 };
22838
22839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
22840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22842 {
22843 PyThreadState* __tstate = wxPyBeginAllowThreads();
22844 delete arg1;
22845
22846 wxPyEndAllowThreads(__tstate);
22847 if (PyErr_Occurred()) SWIG_fail;
22848 }
22849 Py_INCREF(Py_None); resultobj = Py_None;
22850 return resultobj;
22851 fail:
22852 return NULL;
22853 }
22854
22855
22856 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
22857 PyObject *resultobj;
22858 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22859 bool result;
22860 PyObject * obj0 = 0 ;
22861 char *kwnames[] = {
22862 (char *) "self", NULL
22863 };
22864
22865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
22866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
22871
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22876 return resultobj;
22877 fail:
22878 return NULL;
22879 }
22880
22881
22882 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22883 PyObject *resultobj;
22884 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22885 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
22886 bool result;
22887 PyObject * obj0 = 0 ;
22888 PyObject * obj1 = 0 ;
22889 char *kwnames[] = {
22890 (char *) "self",(char *) "other", NULL
22891 };
22892
22893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
22894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
22897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22898 {
22899 PyThreadState* __tstate = wxPyBeginAllowThreads();
22900 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
22901
22902 wxPyEndAllowThreads(__tstate);
22903 if (PyErr_Occurred()) SWIG_fail;
22904 }
22905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22906 return resultobj;
22907 fail:
22908 return NULL;
22909 }
22910
22911
22912 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22913 PyObject *resultobj;
22914 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22915 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
22916 bool result;
22917 PyObject * obj0 = 0 ;
22918 PyObject * obj1 = 0 ;
22919 char *kwnames[] = {
22920 (char *) "self",(char *) "other", NULL
22921 };
22922
22923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
22924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22926 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
22927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
22931
22932 wxPyEndAllowThreads(__tstate);
22933 if (PyErr_Occurred()) SWIG_fail;
22934 }
22935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22936 return resultobj;
22937 fail:
22938 return NULL;
22939 }
22940
22941
22942 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
22943 PyObject *resultobj;
22944 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22945 void *arg2 = (void *) 0 ;
22946 PyObject * obj0 = 0 ;
22947 PyObject * obj1 = 0 ;
22948 char *kwnames[] = {
22949 (char *) "self",(char *) "m_pItem", NULL
22950 };
22951
22952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
22953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22955 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22956 if (arg1) (arg1)->m_pItem = arg2;
22957
22958 Py_INCREF(Py_None); resultobj = Py_None;
22959 return resultobj;
22960 fail:
22961 return NULL;
22962 }
22963
22964
22965 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
22966 PyObject *resultobj;
22967 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22968 void *result;
22969 PyObject * obj0 = 0 ;
22970 char *kwnames[] = {
22971 (char *) "self", NULL
22972 };
22973
22974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
22975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
22976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22977 result = (void *) ((arg1)->m_pItem);
22978
22979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
22980 return resultobj;
22981 fail:
22982 return NULL;
22983 }
22984
22985
22986 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
22987 PyObject *obj;
22988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22989 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
22990 Py_INCREF(obj);
22991 return Py_BuildValue((char *)"");
22992 }
22993 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22994 PyObject *resultobj;
22995 PyObject *arg1 = (PyObject *) NULL ;
22996 wxPyTreeItemData *result;
22997 PyObject * obj0 = 0 ;
22998 char *kwnames[] = {
22999 (char *) "obj", NULL
23000 };
23001
23002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
23003 if (obj0) {
23004 arg1 = obj0;
23005 }
23006 {
23007 PyThreadState* __tstate = wxPyBeginAllowThreads();
23008 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
23009
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
23014 return resultobj;
23015 fail:
23016 return NULL;
23017 }
23018
23019
23020 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23021 PyObject *resultobj;
23022 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23023 PyObject *result;
23024 PyObject * obj0 = 0 ;
23025 char *kwnames[] = {
23026 (char *) "self", NULL
23027 };
23028
23029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
23030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23032 {
23033 PyThreadState* __tstate = wxPyBeginAllowThreads();
23034 result = (PyObject *)(arg1)->GetData();
23035
23036 wxPyEndAllowThreads(__tstate);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
23039 resultobj = result;
23040 return resultobj;
23041 fail:
23042 return NULL;
23043 }
23044
23045
23046 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23047 PyObject *resultobj;
23048 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23049 PyObject *arg2 = (PyObject *) 0 ;
23050 PyObject * obj0 = 0 ;
23051 PyObject * obj1 = 0 ;
23052 char *kwnames[] = {
23053 (char *) "self",(char *) "obj", NULL
23054 };
23055
23056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
23057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23059 arg2 = obj1;
23060 {
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 (arg1)->SetData(arg2);
23063
23064 wxPyEndAllowThreads(__tstate);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 Py_INCREF(Py_None); resultobj = Py_None;
23068 return resultobj;
23069 fail:
23070 return NULL;
23071 }
23072
23073
23074 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23075 PyObject *resultobj;
23076 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23077 wxTreeItemId *result;
23078 PyObject * obj0 = 0 ;
23079 char *kwnames[] = {
23080 (char *) "self", NULL
23081 };
23082
23083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
23084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 {
23089 wxTreeItemId const &_result_ref = (arg1)->GetId();
23090 result = (wxTreeItemId *) &_result_ref;
23091 }
23092
23093 wxPyEndAllowThreads(__tstate);
23094 if (PyErr_Occurred()) SWIG_fail;
23095 }
23096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
23097 return resultobj;
23098 fail:
23099 return NULL;
23100 }
23101
23102
23103 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23104 PyObject *resultobj;
23105 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23106 wxTreeItemId *arg2 = 0 ;
23107 PyObject * obj0 = 0 ;
23108 PyObject * obj1 = 0 ;
23109 char *kwnames[] = {
23110 (char *) "self",(char *) "id", NULL
23111 };
23112
23113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
23114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23117 SWIG_POINTER_EXCEPTION | 0)) == -1)
23118 SWIG_fail;
23119 if (arg2 == NULL) {
23120 PyErr_SetString(PyExc_TypeError,"null reference");
23121 SWIG_fail;
23122 }
23123 {
23124 PyThreadState* __tstate = wxPyBeginAllowThreads();
23125 (arg1)->SetId((wxTreeItemId const &)*arg2);
23126
23127 wxPyEndAllowThreads(__tstate);
23128 if (PyErr_Occurred()) SWIG_fail;
23129 }
23130 Py_INCREF(Py_None); resultobj = Py_None;
23131 return resultobj;
23132 fail:
23133 return NULL;
23134 }
23135
23136
23137 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
23138 PyObject *resultobj;
23139 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23140 PyObject * obj0 = 0 ;
23141 char *kwnames[] = {
23142 (char *) "self", NULL
23143 };
23144
23145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
23146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
23147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23148 {
23149 PyThreadState* __tstate = wxPyBeginAllowThreads();
23150 wxPyTreeItemData_Destroy(arg1);
23151
23152 wxPyEndAllowThreads(__tstate);
23153 if (PyErr_Occurred()) SWIG_fail;
23154 }
23155 Py_INCREF(Py_None); resultobj = Py_None;
23156 return resultobj;
23157 fail:
23158 return NULL;
23159 }
23160
23161
23162 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
23163 PyObject *obj;
23164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23165 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
23166 Py_INCREF(obj);
23167 return Py_BuildValue((char *)"");
23168 }
23169 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23170 PyObject *resultobj;
23171 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
23172 int arg2 = (int) 0 ;
23173 wxTreeEvent *result;
23174 PyObject * obj0 = 0 ;
23175 PyObject * obj1 = 0 ;
23176 char *kwnames[] = {
23177 (char *) "commandType",(char *) "id", NULL
23178 };
23179
23180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
23181 if (obj0) {
23182 arg1 = (wxEventType) SWIG_AsInt(obj0);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
23185 if (obj1) {
23186 arg2 = (int) SWIG_AsInt(obj1);
23187 if (PyErr_Occurred()) SWIG_fail;
23188 }
23189 {
23190 PyThreadState* __tstate = wxPyBeginAllowThreads();
23191 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
23192
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
23197 return resultobj;
23198 fail:
23199 return NULL;
23200 }
23201
23202
23203 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23204 PyObject *resultobj;
23205 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23206 wxTreeItemId result;
23207 PyObject * obj0 = 0 ;
23208 char *kwnames[] = {
23209 (char *) "self", NULL
23210 };
23211
23212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
23213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23215 {
23216 PyThreadState* __tstate = wxPyBeginAllowThreads();
23217 result = ((wxTreeEvent const *)arg1)->GetItem();
23218
23219 wxPyEndAllowThreads(__tstate);
23220 if (PyErr_Occurred()) SWIG_fail;
23221 }
23222 {
23223 wxTreeItemId * resultptr;
23224 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23225 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
23226 }
23227 return resultobj;
23228 fail:
23229 return NULL;
23230 }
23231
23232
23233 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23234 PyObject *resultobj;
23235 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23236 wxTreeItemId *arg2 = 0 ;
23237 PyObject * obj0 = 0 ;
23238 PyObject * obj1 = 0 ;
23239 char *kwnames[] = {
23240 (char *) "self",(char *) "item", NULL
23241 };
23242
23243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
23244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23247 SWIG_POINTER_EXCEPTION | 0)) == -1)
23248 SWIG_fail;
23249 if (arg2 == NULL) {
23250 PyErr_SetString(PyExc_TypeError,"null reference");
23251 SWIG_fail;
23252 }
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 (arg1)->SetItem((wxTreeItemId const &)*arg2);
23256
23257 wxPyEndAllowThreads(__tstate);
23258 if (PyErr_Occurred()) SWIG_fail;
23259 }
23260 Py_INCREF(Py_None); resultobj = Py_None;
23261 return resultobj;
23262 fail:
23263 return NULL;
23264 }
23265
23266
23267 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23268 PyObject *resultobj;
23269 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23270 wxTreeItemId result;
23271 PyObject * obj0 = 0 ;
23272 char *kwnames[] = {
23273 (char *) "self", NULL
23274 };
23275
23276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
23277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23279 {
23280 PyThreadState* __tstate = wxPyBeginAllowThreads();
23281 result = ((wxTreeEvent const *)arg1)->GetOldItem();
23282
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 {
23287 wxTreeItemId * resultptr;
23288 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23289 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
23290 }
23291 return resultobj;
23292 fail:
23293 return NULL;
23294 }
23295
23296
23297 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23298 PyObject *resultobj;
23299 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23300 wxTreeItemId *arg2 = 0 ;
23301 PyObject * obj0 = 0 ;
23302 PyObject * obj1 = 0 ;
23303 char *kwnames[] = {
23304 (char *) "self",(char *) "item", NULL
23305 };
23306
23307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
23308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23310 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23311 SWIG_POINTER_EXCEPTION | 0)) == -1)
23312 SWIG_fail;
23313 if (arg2 == NULL) {
23314 PyErr_SetString(PyExc_TypeError,"null reference");
23315 SWIG_fail;
23316 }
23317 {
23318 PyThreadState* __tstate = wxPyBeginAllowThreads();
23319 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
23320
23321 wxPyEndAllowThreads(__tstate);
23322 if (PyErr_Occurred()) SWIG_fail;
23323 }
23324 Py_INCREF(Py_None); resultobj = Py_None;
23325 return resultobj;
23326 fail:
23327 return NULL;
23328 }
23329
23330
23331 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23332 PyObject *resultobj;
23333 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23334 wxPoint result;
23335 PyObject * obj0 = 0 ;
23336 char *kwnames[] = {
23337 (char *) "self", NULL
23338 };
23339
23340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
23341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23343 {
23344 PyThreadState* __tstate = wxPyBeginAllowThreads();
23345 result = ((wxTreeEvent const *)arg1)->GetPoint();
23346
23347 wxPyEndAllowThreads(__tstate);
23348 if (PyErr_Occurred()) SWIG_fail;
23349 }
23350 {
23351 wxPoint * resultptr;
23352 resultptr = new wxPoint((wxPoint &) result);
23353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
23354 }
23355 return resultobj;
23356 fail:
23357 return NULL;
23358 }
23359
23360
23361 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23362 PyObject *resultobj;
23363 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23364 wxPoint *arg2 = 0 ;
23365 wxPoint temp2 ;
23366 PyObject * obj0 = 0 ;
23367 PyObject * obj1 = 0 ;
23368 char *kwnames[] = {
23369 (char *) "self",(char *) "pt", NULL
23370 };
23371
23372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
23373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23375 {
23376 arg2 = &temp2;
23377 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23378 }
23379 {
23380 PyThreadState* __tstate = wxPyBeginAllowThreads();
23381 (arg1)->SetPoint((wxPoint const &)*arg2);
23382
23383 wxPyEndAllowThreads(__tstate);
23384 if (PyErr_Occurred()) SWIG_fail;
23385 }
23386 Py_INCREF(Py_None); resultobj = Py_None;
23387 return resultobj;
23388 fail:
23389 return NULL;
23390 }
23391
23392
23393 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23394 PyObject *resultobj;
23395 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23396 wxKeyEvent *result;
23397 PyObject * obj0 = 0 ;
23398 char *kwnames[] = {
23399 (char *) "self", NULL
23400 };
23401
23402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
23403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23405 {
23406 PyThreadState* __tstate = wxPyBeginAllowThreads();
23407 {
23408 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
23409 result = (wxKeyEvent *) &_result_ref;
23410 }
23411
23412 wxPyEndAllowThreads(__tstate);
23413 if (PyErr_Occurred()) SWIG_fail;
23414 }
23415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
23416 return resultobj;
23417 fail:
23418 return NULL;
23419 }
23420
23421
23422 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
23423 PyObject *resultobj;
23424 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23425 int result;
23426 PyObject * obj0 = 0 ;
23427 char *kwnames[] = {
23428 (char *) "self", NULL
23429 };
23430
23431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
23432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23434 {
23435 PyThreadState* __tstate = wxPyBeginAllowThreads();
23436 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
23437
23438 wxPyEndAllowThreads(__tstate);
23439 if (PyErr_Occurred()) SWIG_fail;
23440 }
23441 resultobj = SWIG_FromInt((int)result);
23442 return resultobj;
23443 fail:
23444 return NULL;
23445 }
23446
23447
23448 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23449 PyObject *resultobj;
23450 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23451 wxKeyEvent *arg2 = 0 ;
23452 PyObject * obj0 = 0 ;
23453 PyObject * obj1 = 0 ;
23454 char *kwnames[] = {
23455 (char *) "self",(char *) "evt", NULL
23456 };
23457
23458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
23459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
23462 SWIG_POINTER_EXCEPTION | 0)) == -1)
23463 SWIG_fail;
23464 if (arg2 == NULL) {
23465 PyErr_SetString(PyExc_TypeError,"null reference");
23466 SWIG_fail;
23467 }
23468 {
23469 PyThreadState* __tstate = wxPyBeginAllowThreads();
23470 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
23471
23472 wxPyEndAllowThreads(__tstate);
23473 if (PyErr_Occurred()) SWIG_fail;
23474 }
23475 Py_INCREF(Py_None); resultobj = Py_None;
23476 return resultobj;
23477 fail:
23478 return NULL;
23479 }
23480
23481
23482 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23483 PyObject *resultobj;
23484 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23485 wxString *result;
23486 PyObject * obj0 = 0 ;
23487 char *kwnames[] = {
23488 (char *) "self", NULL
23489 };
23490
23491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
23492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23494 {
23495 PyThreadState* __tstate = wxPyBeginAllowThreads();
23496 {
23497 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
23498 result = (wxString *) &_result_ref;
23499 }
23500
23501 wxPyEndAllowThreads(__tstate);
23502 if (PyErr_Occurred()) SWIG_fail;
23503 }
23504 {
23505 #if wxUSE_UNICODE
23506 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
23507 #else
23508 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
23509 #endif
23510 }
23511 return resultobj;
23512 fail:
23513 return NULL;
23514 }
23515
23516
23517 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23518 PyObject *resultobj;
23519 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23520 wxString *arg2 = 0 ;
23521 bool temp2 = False ;
23522 PyObject * obj0 = 0 ;
23523 PyObject * obj1 = 0 ;
23524 char *kwnames[] = {
23525 (char *) "self",(char *) "label", NULL
23526 };
23527
23528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
23529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23531 {
23532 arg2 = wxString_in_helper(obj1);
23533 if (arg2 == NULL) SWIG_fail;
23534 temp2 = True;
23535 }
23536 {
23537 PyThreadState* __tstate = wxPyBeginAllowThreads();
23538 (arg1)->SetLabel((wxString const &)*arg2);
23539
23540 wxPyEndAllowThreads(__tstate);
23541 if (PyErr_Occurred()) SWIG_fail;
23542 }
23543 Py_INCREF(Py_None); resultobj = Py_None;
23544 {
23545 if (temp2)
23546 delete arg2;
23547 }
23548 return resultobj;
23549 fail:
23550 {
23551 if (temp2)
23552 delete arg2;
23553 }
23554 return NULL;
23555 }
23556
23557
23558 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
23559 PyObject *resultobj;
23560 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23561 bool result;
23562 PyObject * obj0 = 0 ;
23563 char *kwnames[] = {
23564 (char *) "self", NULL
23565 };
23566
23567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
23568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23570 {
23571 PyThreadState* __tstate = wxPyBeginAllowThreads();
23572 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
23573
23574 wxPyEndAllowThreads(__tstate);
23575 if (PyErr_Occurred()) SWIG_fail;
23576 }
23577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23578 return resultobj;
23579 fail:
23580 return NULL;
23581 }
23582
23583
23584 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
23585 PyObject *resultobj;
23586 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23587 bool arg2 ;
23588 PyObject * obj0 = 0 ;
23589 PyObject * obj1 = 0 ;
23590 char *kwnames[] = {
23591 (char *) "self",(char *) "editCancelled", NULL
23592 };
23593
23594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
23595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23597 arg2 = (bool) SWIG_AsBool(obj1);
23598 if (PyErr_Occurred()) SWIG_fail;
23599 {
23600 PyThreadState* __tstate = wxPyBeginAllowThreads();
23601 (arg1)->SetEditCanceled(arg2);
23602
23603 wxPyEndAllowThreads(__tstate);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 }
23606 Py_INCREF(Py_None); resultobj = Py_None;
23607 return resultobj;
23608 fail:
23609 return NULL;
23610 }
23611
23612
23613 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
23614 PyObject *resultobj;
23615 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23616 wxString *arg2 = 0 ;
23617 bool temp2 = False ;
23618 PyObject * obj0 = 0 ;
23619 PyObject * obj1 = 0 ;
23620 char *kwnames[] = {
23621 (char *) "self",(char *) "toolTip", NULL
23622 };
23623
23624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
23625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
23626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23627 {
23628 arg2 = wxString_in_helper(obj1);
23629 if (arg2 == NULL) SWIG_fail;
23630 temp2 = True;
23631 }
23632 {
23633 PyThreadState* __tstate = wxPyBeginAllowThreads();
23634 (arg1)->SetToolTip((wxString const &)*arg2);
23635
23636 wxPyEndAllowThreads(__tstate);
23637 if (PyErr_Occurred()) SWIG_fail;
23638 }
23639 Py_INCREF(Py_None); resultobj = Py_None;
23640 {
23641 if (temp2)
23642 delete arg2;
23643 }
23644 return resultobj;
23645 fail:
23646 {
23647 if (temp2)
23648 delete arg2;
23649 }
23650 return NULL;
23651 }
23652
23653
23654 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
23655 PyObject *obj;
23656 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23657 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
23658 Py_INCREF(obj);
23659 return Py_BuildValue((char *)"");
23660 }
23661 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
23662 PyObject *resultobj;
23663 wxWindow *arg1 = (wxWindow *) 0 ;
23664 int arg2 = (int) -1 ;
23665 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23666 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23667 wxSize const &arg4_defvalue = wxDefaultSize ;
23668 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23669 long arg5 = (long) wxTR_DEFAULT_STYLE ;
23670 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23671 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23672 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
23673 wxString *arg7 = (wxString *) &arg7_defvalue ;
23674 wxPyTreeCtrl *result;
23675 wxPoint temp3 ;
23676 wxSize temp4 ;
23677 bool temp7 = False ;
23678 PyObject * obj0 = 0 ;
23679 PyObject * obj1 = 0 ;
23680 PyObject * obj2 = 0 ;
23681 PyObject * obj3 = 0 ;
23682 PyObject * obj4 = 0 ;
23683 PyObject * obj5 = 0 ;
23684 PyObject * obj6 = 0 ;
23685 char *kwnames[] = {
23686 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23687 };
23688
23689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23692 if (obj1) {
23693 arg2 = (int) SWIG_AsInt(obj1);
23694 if (PyErr_Occurred()) SWIG_fail;
23695 }
23696 if (obj2) {
23697 {
23698 arg3 = &temp3;
23699 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23700 }
23701 }
23702 if (obj3) {
23703 {
23704 arg4 = &temp4;
23705 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23706 }
23707 }
23708 if (obj4) {
23709 arg5 = (long) SWIG_AsLong(obj4);
23710 if (PyErr_Occurred()) SWIG_fail;
23711 }
23712 if (obj5) {
23713 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23714 SWIG_POINTER_EXCEPTION | 0)) == -1)
23715 SWIG_fail;
23716 if (arg6 == NULL) {
23717 PyErr_SetString(PyExc_TypeError,"null reference");
23718 SWIG_fail;
23719 }
23720 }
23721 if (obj6) {
23722 {
23723 arg7 = wxString_in_helper(obj6);
23724 if (arg7 == NULL) SWIG_fail;
23725 temp7 = True;
23726 }
23727 }
23728 {
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23731
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 {
23736 resultobj = wxPyMake_wxObject(result);
23737 }
23738 {
23739 if (temp7)
23740 delete arg7;
23741 }
23742 return resultobj;
23743 fail:
23744 {
23745 if (temp7)
23746 delete arg7;
23747 }
23748 return NULL;
23749 }
23750
23751
23752 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
23753 PyObject *resultobj;
23754 wxPyTreeCtrl *result;
23755 char *kwnames[] = {
23756 NULL
23757 };
23758
23759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
23760 {
23761 PyThreadState* __tstate = wxPyBeginAllowThreads();
23762 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
23763
23764 wxPyEndAllowThreads(__tstate);
23765 if (PyErr_Occurred()) SWIG_fail;
23766 }
23767 {
23768 resultobj = wxPyMake_wxObject(result);
23769 }
23770 return resultobj;
23771 fail:
23772 return NULL;
23773 }
23774
23775
23776 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23777 PyObject *resultobj;
23778 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23779 wxWindow *arg2 = (wxWindow *) 0 ;
23780 int arg3 = (int) -1 ;
23781 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23782 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23783 wxSize const &arg5_defvalue = wxDefaultSize ;
23784 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23785 long arg6 = (long) wxTR_DEFAULT_STYLE ;
23786 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23787 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23788 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
23789 wxString *arg8 = (wxString *) &arg8_defvalue ;
23790 bool result;
23791 wxPoint temp4 ;
23792 wxSize temp5 ;
23793 bool temp8 = False ;
23794 PyObject * obj0 = 0 ;
23795 PyObject * obj1 = 0 ;
23796 PyObject * obj2 = 0 ;
23797 PyObject * obj3 = 0 ;
23798 PyObject * obj4 = 0 ;
23799 PyObject * obj5 = 0 ;
23800 PyObject * obj6 = 0 ;
23801 PyObject * obj7 = 0 ;
23802 char *kwnames[] = {
23803 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23804 };
23805
23806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23811 if (obj2) {
23812 arg3 = (int) SWIG_AsInt(obj2);
23813 if (PyErr_Occurred()) SWIG_fail;
23814 }
23815 if (obj3) {
23816 {
23817 arg4 = &temp4;
23818 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23819 }
23820 }
23821 if (obj4) {
23822 {
23823 arg5 = &temp5;
23824 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23825 }
23826 }
23827 if (obj5) {
23828 arg6 = (long) SWIG_AsLong(obj5);
23829 if (PyErr_Occurred()) SWIG_fail;
23830 }
23831 if (obj6) {
23832 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23833 SWIG_POINTER_EXCEPTION | 0)) == -1)
23834 SWIG_fail;
23835 if (arg7 == NULL) {
23836 PyErr_SetString(PyExc_TypeError,"null reference");
23837 SWIG_fail;
23838 }
23839 }
23840 if (obj7) {
23841 {
23842 arg8 = wxString_in_helper(obj7);
23843 if (arg8 == NULL) SWIG_fail;
23844 temp8 = True;
23845 }
23846 }
23847 {
23848 PyThreadState* __tstate = wxPyBeginAllowThreads();
23849 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23850
23851 wxPyEndAllowThreads(__tstate);
23852 if (PyErr_Occurred()) SWIG_fail;
23853 }
23854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23855 {
23856 if (temp8)
23857 delete arg8;
23858 }
23859 return resultobj;
23860 fail:
23861 {
23862 if (temp8)
23863 delete arg8;
23864 }
23865 return NULL;
23866 }
23867
23868
23869 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23870 PyObject *resultobj;
23871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23872 PyObject *arg2 = (PyObject *) 0 ;
23873 PyObject *arg3 = (PyObject *) 0 ;
23874 PyObject * obj0 = 0 ;
23875 PyObject * obj1 = 0 ;
23876 PyObject * obj2 = 0 ;
23877 char *kwnames[] = {
23878 (char *) "self",(char *) "self",(char *) "_class", NULL
23879 };
23880
23881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23884 arg2 = obj1;
23885 arg3 = obj2;
23886 {
23887 PyThreadState* __tstate = wxPyBeginAllowThreads();
23888 (arg1)->_setCallbackInfo(arg2,arg3);
23889
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 Py_INCREF(Py_None); resultobj = Py_None;
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj;
23902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23903 size_t result;
23904 PyObject * obj0 = 0 ;
23905 char *kwnames[] = {
23906 (char *) "self", NULL
23907 };
23908
23909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
23910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23912 {
23913 PyThreadState* __tstate = wxPyBeginAllowThreads();
23914 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
23915
23916 wxPyEndAllowThreads(__tstate);
23917 if (PyErr_Occurred()) SWIG_fail;
23918 }
23919 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
23920 return resultobj;
23921 fail:
23922 return NULL;
23923 }
23924
23925
23926 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
23927 PyObject *resultobj;
23928 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23929 unsigned int result;
23930 PyObject * obj0 = 0 ;
23931 char *kwnames[] = {
23932 (char *) "self", NULL
23933 };
23934
23935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
23936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
23941
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
23946 return resultobj;
23947 fail:
23948 return NULL;
23949 }
23950
23951
23952 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj;
23954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23955 unsigned int arg2 ;
23956 PyObject * obj0 = 0 ;
23957 PyObject * obj1 = 0 ;
23958 char *kwnames[] = {
23959 (char *) "self",(char *) "indent", NULL
23960 };
23961
23962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
23963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23965 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 {
23968 PyThreadState* __tstate = wxPyBeginAllowThreads();
23969 (arg1)->SetIndent(arg2);
23970
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 Py_INCREF(Py_None); resultobj = Py_None;
23975 return resultobj;
23976 fail:
23977 return NULL;
23978 }
23979
23980
23981 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj;
23983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23984 unsigned int result;
23985 PyObject * obj0 = 0 ;
23986 char *kwnames[] = {
23987 (char *) "self", NULL
23988 };
23989
23990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
23991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
23992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23993 {
23994 PyThreadState* __tstate = wxPyBeginAllowThreads();
23995 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
23996
23997 wxPyEndAllowThreads(__tstate);
23998 if (PyErr_Occurred()) SWIG_fail;
23999 }
24000 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
24001 return resultobj;
24002 fail:
24003 return NULL;
24004 }
24005
24006
24007 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
24008 PyObject *resultobj;
24009 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24010 unsigned int arg2 ;
24011 PyObject * obj0 = 0 ;
24012 PyObject * obj1 = 0 ;
24013 char *kwnames[] = {
24014 (char *) "self",(char *) "spacing", NULL
24015 };
24016
24017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
24018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24020 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 {
24023 PyThreadState* __tstate = wxPyBeginAllowThreads();
24024 (arg1)->SetSpacing(arg2);
24025
24026 wxPyEndAllowThreads(__tstate);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 Py_INCREF(Py_None); resultobj = Py_None;
24030 return resultobj;
24031 fail:
24032 return NULL;
24033 }
24034
24035
24036 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24037 PyObject *resultobj;
24038 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24039 wxImageList *result;
24040 PyObject * obj0 = 0 ;
24041 char *kwnames[] = {
24042 (char *) "self", NULL
24043 };
24044
24045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
24046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24048 {
24049 PyThreadState* __tstate = wxPyBeginAllowThreads();
24050 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
24051
24052 wxPyEndAllowThreads(__tstate);
24053 if (PyErr_Occurred()) SWIG_fail;
24054 }
24055 {
24056 resultobj = wxPyMake_wxObject(result);
24057 }
24058 return resultobj;
24059 fail:
24060 return NULL;
24061 }
24062
24063
24064 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24065 PyObject *resultobj;
24066 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24067 wxImageList *result;
24068 PyObject * obj0 = 0 ;
24069 char *kwnames[] = {
24070 (char *) "self", NULL
24071 };
24072
24073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
24074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24076 {
24077 PyThreadState* __tstate = wxPyBeginAllowThreads();
24078 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
24079
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 {
24084 resultobj = wxPyMake_wxObject(result);
24085 }
24086 return resultobj;
24087 fail:
24088 return NULL;
24089 }
24090
24091
24092 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24093 PyObject *resultobj;
24094 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24095 wxImageList *arg2 = (wxImageList *) 0 ;
24096 PyObject * obj0 = 0 ;
24097 PyObject * obj1 = 0 ;
24098 char *kwnames[] = {
24099 (char *) "self",(char *) "imageList", NULL
24100 };
24101
24102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
24103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24105 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24107 {
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 (arg1)->SetImageList(arg2);
24110
24111 wxPyEndAllowThreads(__tstate);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 }
24114 Py_INCREF(Py_None); resultobj = Py_None;
24115 return resultobj;
24116 fail:
24117 return NULL;
24118 }
24119
24120
24121 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24122 PyObject *resultobj;
24123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24124 wxImageList *arg2 = (wxImageList *) 0 ;
24125 PyObject * obj0 = 0 ;
24126 PyObject * obj1 = 0 ;
24127 char *kwnames[] = {
24128 (char *) "self",(char *) "imageList", NULL
24129 };
24130
24131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
24132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24136 {
24137 PyThreadState* __tstate = wxPyBeginAllowThreads();
24138 (arg1)->SetStateImageList(arg2);
24139
24140 wxPyEndAllowThreads(__tstate);
24141 if (PyErr_Occurred()) SWIG_fail;
24142 }
24143 Py_INCREF(Py_None); resultobj = Py_None;
24144 return resultobj;
24145 fail:
24146 return NULL;
24147 }
24148
24149
24150 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24151 PyObject *resultobj;
24152 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24153 wxImageList *arg2 = (wxImageList *) 0 ;
24154 PyObject * obj0 = 0 ;
24155 PyObject * obj1 = 0 ;
24156 char *kwnames[] = {
24157 (char *) "self",(char *) "imageList", NULL
24158 };
24159
24160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
24161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24164 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24165 {
24166 PyThreadState* __tstate = wxPyBeginAllowThreads();
24167 (arg1)->AssignImageList(arg2);
24168
24169 wxPyEndAllowThreads(__tstate);
24170 if (PyErr_Occurred()) SWIG_fail;
24171 }
24172 Py_INCREF(Py_None); resultobj = Py_None;
24173 return resultobj;
24174 fail:
24175 return NULL;
24176 }
24177
24178
24179 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24180 PyObject *resultobj;
24181 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24182 wxImageList *arg2 = (wxImageList *) 0 ;
24183 PyObject * obj0 = 0 ;
24184 PyObject * obj1 = 0 ;
24185 char *kwnames[] = {
24186 (char *) "self",(char *) "imageList", NULL
24187 };
24188
24189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
24190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
24193 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24194 {
24195 PyThreadState* __tstate = wxPyBeginAllowThreads();
24196 (arg1)->AssignStateImageList(arg2);
24197
24198 wxPyEndAllowThreads(__tstate);
24199 if (PyErr_Occurred()) SWIG_fail;
24200 }
24201 Py_INCREF(Py_None); resultobj = Py_None;
24202 return resultobj;
24203 fail:
24204 return NULL;
24205 }
24206
24207
24208 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24209 PyObject *resultobj;
24210 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24211 wxTreeItemId *arg2 = 0 ;
24212 wxString result;
24213 PyObject * obj0 = 0 ;
24214 PyObject * obj1 = 0 ;
24215 char *kwnames[] = {
24216 (char *) "self",(char *) "item", NULL
24217 };
24218
24219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
24220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24222 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24223 SWIG_POINTER_EXCEPTION | 0)) == -1)
24224 SWIG_fail;
24225 if (arg2 == NULL) {
24226 PyErr_SetString(PyExc_TypeError,"null reference");
24227 SWIG_fail;
24228 }
24229 {
24230 PyThreadState* __tstate = wxPyBeginAllowThreads();
24231 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
24232
24233 wxPyEndAllowThreads(__tstate);
24234 if (PyErr_Occurred()) SWIG_fail;
24235 }
24236 {
24237 #if wxUSE_UNICODE
24238 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24239 #else
24240 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24241 #endif
24242 }
24243 return resultobj;
24244 fail:
24245 return NULL;
24246 }
24247
24248
24249 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24250 PyObject *resultobj;
24251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24252 wxTreeItemId *arg2 = 0 ;
24253 int arg3 = (int) wxTreeItemIcon_Normal ;
24254 int result;
24255 PyObject * obj0 = 0 ;
24256 PyObject * obj1 = 0 ;
24257 PyObject * obj2 = 0 ;
24258 char *kwnames[] = {
24259 (char *) "self",(char *) "item",(char *) "which", NULL
24260 };
24261
24262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24265 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24266 SWIG_POINTER_EXCEPTION | 0)) == -1)
24267 SWIG_fail;
24268 if (arg2 == NULL) {
24269 PyErr_SetString(PyExc_TypeError,"null reference");
24270 SWIG_fail;
24271 }
24272 if (obj2) {
24273 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
24274 if (PyErr_Occurred()) SWIG_fail;
24275 }
24276 {
24277 PyThreadState* __tstate = wxPyBeginAllowThreads();
24278 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
24279
24280 wxPyEndAllowThreads(__tstate);
24281 if (PyErr_Occurred()) SWIG_fail;
24282 }
24283 resultobj = SWIG_FromInt((int)result);
24284 return resultobj;
24285 fail:
24286 return NULL;
24287 }
24288
24289
24290 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24291 PyObject *resultobj;
24292 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24293 wxTreeItemId *arg2 = 0 ;
24294 wxPyTreeItemData *result;
24295 PyObject * obj0 = 0 ;
24296 PyObject * obj1 = 0 ;
24297 char *kwnames[] = {
24298 (char *) "self",(char *) "item", NULL
24299 };
24300
24301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
24302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24304 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24305 SWIG_POINTER_EXCEPTION | 0)) == -1)
24306 SWIG_fail;
24307 if (arg2 == NULL) {
24308 PyErr_SetString(PyExc_TypeError,"null reference");
24309 SWIG_fail;
24310 }
24311 {
24312 PyThreadState* __tstate = wxPyBeginAllowThreads();
24313 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
24314
24315 wxPyEndAllowThreads(__tstate);
24316 if (PyErr_Occurred()) SWIG_fail;
24317 }
24318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
24319 return resultobj;
24320 fail:
24321 return NULL;
24322 }
24323
24324
24325 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24326 PyObject *resultobj;
24327 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24328 wxTreeItemId *arg2 = 0 ;
24329 PyObject *result;
24330 PyObject * obj0 = 0 ;
24331 PyObject * obj1 = 0 ;
24332 char *kwnames[] = {
24333 (char *) "self",(char *) "item", NULL
24334 };
24335
24336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
24337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24339 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24340 SWIG_POINTER_EXCEPTION | 0)) == -1)
24341 SWIG_fail;
24342 if (arg2 == NULL) {
24343 PyErr_SetString(PyExc_TypeError,"null reference");
24344 SWIG_fail;
24345 }
24346 {
24347 PyThreadState* __tstate = wxPyBeginAllowThreads();
24348 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
24349
24350 wxPyEndAllowThreads(__tstate);
24351 if (PyErr_Occurred()) SWIG_fail;
24352 }
24353 resultobj = result;
24354 return resultobj;
24355 fail:
24356 return NULL;
24357 }
24358
24359
24360 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24361 PyObject *resultobj;
24362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24363 wxTreeItemId *arg2 = 0 ;
24364 wxColour result;
24365 PyObject * obj0 = 0 ;
24366 PyObject * obj1 = 0 ;
24367 char *kwnames[] = {
24368 (char *) "self",(char *) "item", NULL
24369 };
24370
24371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
24372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24375 SWIG_POINTER_EXCEPTION | 0)) == -1)
24376 SWIG_fail;
24377 if (arg2 == NULL) {
24378 PyErr_SetString(PyExc_TypeError,"null reference");
24379 SWIG_fail;
24380 }
24381 {
24382 PyThreadState* __tstate = wxPyBeginAllowThreads();
24383 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
24384
24385 wxPyEndAllowThreads(__tstate);
24386 if (PyErr_Occurred()) SWIG_fail;
24387 }
24388 {
24389 wxColour * resultptr;
24390 resultptr = new wxColour((wxColour &) result);
24391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24392 }
24393 return resultobj;
24394 fail:
24395 return NULL;
24396 }
24397
24398
24399 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24400 PyObject *resultobj;
24401 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24402 wxTreeItemId *arg2 = 0 ;
24403 wxColour result;
24404 PyObject * obj0 = 0 ;
24405 PyObject * obj1 = 0 ;
24406 char *kwnames[] = {
24407 (char *) "self",(char *) "item", NULL
24408 };
24409
24410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24414 SWIG_POINTER_EXCEPTION | 0)) == -1)
24415 SWIG_fail;
24416 if (arg2 == NULL) {
24417 PyErr_SetString(PyExc_TypeError,"null reference");
24418 SWIG_fail;
24419 }
24420 {
24421 PyThreadState* __tstate = wxPyBeginAllowThreads();
24422 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
24423
24424 wxPyEndAllowThreads(__tstate);
24425 if (PyErr_Occurred()) SWIG_fail;
24426 }
24427 {
24428 wxColour * resultptr;
24429 resultptr = new wxColour((wxColour &) result);
24430 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24431 }
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj;
24440 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24441 wxTreeItemId *arg2 = 0 ;
24442 wxFont result;
24443 PyObject * obj0 = 0 ;
24444 PyObject * obj1 = 0 ;
24445 char *kwnames[] = {
24446 (char *) "self",(char *) "item", NULL
24447 };
24448
24449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
24450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24452 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24453 SWIG_POINTER_EXCEPTION | 0)) == -1)
24454 SWIG_fail;
24455 if (arg2 == NULL) {
24456 PyErr_SetString(PyExc_TypeError,"null reference");
24457 SWIG_fail;
24458 }
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
24462
24463 wxPyEndAllowThreads(__tstate);
24464 if (PyErr_Occurred()) SWIG_fail;
24465 }
24466 {
24467 wxFont * resultptr;
24468 resultptr = new wxFont((wxFont &) result);
24469 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
24470 }
24471 return resultobj;
24472 fail:
24473 return NULL;
24474 }
24475
24476
24477 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24478 PyObject *resultobj;
24479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24480 wxTreeItemId *arg2 = 0 ;
24481 wxString *arg3 = 0 ;
24482 bool temp3 = False ;
24483 PyObject * obj0 = 0 ;
24484 PyObject * obj1 = 0 ;
24485 PyObject * obj2 = 0 ;
24486 char *kwnames[] = {
24487 (char *) "self",(char *) "item",(char *) "text", NULL
24488 };
24489
24490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
24491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24493 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24494 SWIG_POINTER_EXCEPTION | 0)) == -1)
24495 SWIG_fail;
24496 if (arg2 == NULL) {
24497 PyErr_SetString(PyExc_TypeError,"null reference");
24498 SWIG_fail;
24499 }
24500 {
24501 arg3 = wxString_in_helper(obj2);
24502 if (arg3 == NULL) SWIG_fail;
24503 temp3 = True;
24504 }
24505 {
24506 PyThreadState* __tstate = wxPyBeginAllowThreads();
24507 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
24508
24509 wxPyEndAllowThreads(__tstate);
24510 if (PyErr_Occurred()) SWIG_fail;
24511 }
24512 Py_INCREF(Py_None); resultobj = Py_None;
24513 {
24514 if (temp3)
24515 delete arg3;
24516 }
24517 return resultobj;
24518 fail:
24519 {
24520 if (temp3)
24521 delete arg3;
24522 }
24523 return NULL;
24524 }
24525
24526
24527 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24528 PyObject *resultobj;
24529 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24530 wxTreeItemId *arg2 = 0 ;
24531 int arg3 ;
24532 int arg4 = (int) wxTreeItemIcon_Normal ;
24533 PyObject * obj0 = 0 ;
24534 PyObject * obj1 = 0 ;
24535 PyObject * obj2 = 0 ;
24536 PyObject * obj3 = 0 ;
24537 char *kwnames[] = {
24538 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
24539 };
24540
24541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24545 SWIG_POINTER_EXCEPTION | 0)) == -1)
24546 SWIG_fail;
24547 if (arg2 == NULL) {
24548 PyErr_SetString(PyExc_TypeError,"null reference");
24549 SWIG_fail;
24550 }
24551 arg3 = (int) SWIG_AsInt(obj2);
24552 if (PyErr_Occurred()) SWIG_fail;
24553 if (obj3) {
24554 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
24555 if (PyErr_Occurred()) SWIG_fail;
24556 }
24557 {
24558 PyThreadState* __tstate = wxPyBeginAllowThreads();
24559 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
24560
24561 wxPyEndAllowThreads(__tstate);
24562 if (PyErr_Occurred()) SWIG_fail;
24563 }
24564 Py_INCREF(Py_None); resultobj = Py_None;
24565 return resultobj;
24566 fail:
24567 return NULL;
24568 }
24569
24570
24571 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24572 PyObject *resultobj;
24573 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24574 wxTreeItemId *arg2 = 0 ;
24575 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
24576 PyObject * obj0 = 0 ;
24577 PyObject * obj1 = 0 ;
24578 PyObject * obj2 = 0 ;
24579 char *kwnames[] = {
24580 (char *) "self",(char *) "item",(char *) "data", NULL
24581 };
24582
24583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24586 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24587 SWIG_POINTER_EXCEPTION | 0)) == -1)
24588 SWIG_fail;
24589 if (arg2 == NULL) {
24590 PyErr_SetString(PyExc_TypeError,"null reference");
24591 SWIG_fail;
24592 }
24593 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
24594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
24598
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 Py_INCREF(Py_None); resultobj = Py_None;
24603 return resultobj;
24604 fail:
24605 return NULL;
24606 }
24607
24608
24609 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24610 PyObject *resultobj;
24611 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24612 wxTreeItemId *arg2 = 0 ;
24613 PyObject *arg3 = (PyObject *) 0 ;
24614 PyObject * obj0 = 0 ;
24615 PyObject * obj1 = 0 ;
24616 PyObject * obj2 = 0 ;
24617 char *kwnames[] = {
24618 (char *) "self",(char *) "item",(char *) "obj", NULL
24619 };
24620
24621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24625 SWIG_POINTER_EXCEPTION | 0)) == -1)
24626 SWIG_fail;
24627 if (arg2 == NULL) {
24628 PyErr_SetString(PyExc_TypeError,"null reference");
24629 SWIG_fail;
24630 }
24631 arg3 = obj2;
24632 {
24633 PyThreadState* __tstate = wxPyBeginAllowThreads();
24634 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
24635
24636 wxPyEndAllowThreads(__tstate);
24637 if (PyErr_Occurred()) SWIG_fail;
24638 }
24639 Py_INCREF(Py_None); resultobj = Py_None;
24640 return resultobj;
24641 fail:
24642 return NULL;
24643 }
24644
24645
24646 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj;
24648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24649 wxTreeItemId *arg2 = 0 ;
24650 bool arg3 = (bool) True ;
24651 PyObject * obj0 = 0 ;
24652 PyObject * obj1 = 0 ;
24653 PyObject * obj2 = 0 ;
24654 char *kwnames[] = {
24655 (char *) "self",(char *) "item",(char *) "has", NULL
24656 };
24657
24658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
24659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24662 SWIG_POINTER_EXCEPTION | 0)) == -1)
24663 SWIG_fail;
24664 if (arg2 == NULL) {
24665 PyErr_SetString(PyExc_TypeError,"null reference");
24666 SWIG_fail;
24667 }
24668 if (obj2) {
24669 arg3 = (bool) SWIG_AsBool(obj2);
24670 if (PyErr_Occurred()) SWIG_fail;
24671 }
24672 {
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
24674 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
24675
24676 wxPyEndAllowThreads(__tstate);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 Py_INCREF(Py_None); resultobj = Py_None;
24680 return resultobj;
24681 fail:
24682 return NULL;
24683 }
24684
24685
24686 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
24687 PyObject *resultobj;
24688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24689 wxTreeItemId *arg2 = 0 ;
24690 bool arg3 = (bool) True ;
24691 PyObject * obj0 = 0 ;
24692 PyObject * obj1 = 0 ;
24693 PyObject * obj2 = 0 ;
24694 char *kwnames[] = {
24695 (char *) "self",(char *) "item",(char *) "bold", NULL
24696 };
24697
24698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
24699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24701 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24702 SWIG_POINTER_EXCEPTION | 0)) == -1)
24703 SWIG_fail;
24704 if (arg2 == NULL) {
24705 PyErr_SetString(PyExc_TypeError,"null reference");
24706 SWIG_fail;
24707 }
24708 if (obj2) {
24709 arg3 = (bool) SWIG_AsBool(obj2);
24710 if (PyErr_Occurred()) SWIG_fail;
24711 }
24712 {
24713 PyThreadState* __tstate = wxPyBeginAllowThreads();
24714 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
24715
24716 wxPyEndAllowThreads(__tstate);
24717 if (PyErr_Occurred()) SWIG_fail;
24718 }
24719 Py_INCREF(Py_None); resultobj = Py_None;
24720 return resultobj;
24721 fail:
24722 return NULL;
24723 }
24724
24725
24726 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24727 PyObject *resultobj;
24728 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24729 wxTreeItemId *arg2 = 0 ;
24730 wxColour *arg3 = 0 ;
24731 wxColour temp3 ;
24732 PyObject * obj0 = 0 ;
24733 PyObject * obj1 = 0 ;
24734 PyObject * obj2 = 0 ;
24735 char *kwnames[] = {
24736 (char *) "self",(char *) "item",(char *) "col", NULL
24737 };
24738
24739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24742 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24743 SWIG_POINTER_EXCEPTION | 0)) == -1)
24744 SWIG_fail;
24745 if (arg2 == NULL) {
24746 PyErr_SetString(PyExc_TypeError,"null reference");
24747 SWIG_fail;
24748 }
24749 {
24750 arg3 = &temp3;
24751 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24752 }
24753 {
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24756
24757 wxPyEndAllowThreads(__tstate);
24758 if (PyErr_Occurred()) SWIG_fail;
24759 }
24760 Py_INCREF(Py_None); resultobj = Py_None;
24761 return resultobj;
24762 fail:
24763 return NULL;
24764 }
24765
24766
24767 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24768 PyObject *resultobj;
24769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24770 wxTreeItemId *arg2 = 0 ;
24771 wxColour *arg3 = 0 ;
24772 wxColour temp3 ;
24773 PyObject * obj0 = 0 ;
24774 PyObject * obj1 = 0 ;
24775 PyObject * obj2 = 0 ;
24776 char *kwnames[] = {
24777 (char *) "self",(char *) "item",(char *) "col", NULL
24778 };
24779
24780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24784 SWIG_POINTER_EXCEPTION | 0)) == -1)
24785 SWIG_fail;
24786 if (arg2 == NULL) {
24787 PyErr_SetString(PyExc_TypeError,"null reference");
24788 SWIG_fail;
24789 }
24790 {
24791 arg3 = &temp3;
24792 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24793 }
24794 {
24795 PyThreadState* __tstate = wxPyBeginAllowThreads();
24796 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24797
24798 wxPyEndAllowThreads(__tstate);
24799 if (PyErr_Occurred()) SWIG_fail;
24800 }
24801 Py_INCREF(Py_None); resultobj = Py_None;
24802 return resultobj;
24803 fail:
24804 return NULL;
24805 }
24806
24807
24808 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24809 PyObject *resultobj;
24810 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24811 wxTreeItemId *arg2 = 0 ;
24812 wxFont *arg3 = 0 ;
24813 PyObject * obj0 = 0 ;
24814 PyObject * obj1 = 0 ;
24815 PyObject * obj2 = 0 ;
24816 char *kwnames[] = {
24817 (char *) "self",(char *) "item",(char *) "font", NULL
24818 };
24819
24820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
24821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24823 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24824 SWIG_POINTER_EXCEPTION | 0)) == -1)
24825 SWIG_fail;
24826 if (arg2 == NULL) {
24827 PyErr_SetString(PyExc_TypeError,"null reference");
24828 SWIG_fail;
24829 }
24830 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
24831 SWIG_POINTER_EXCEPTION | 0)) == -1)
24832 SWIG_fail;
24833 if (arg3 == NULL) {
24834 PyErr_SetString(PyExc_TypeError,"null reference");
24835 SWIG_fail;
24836 }
24837 {
24838 PyThreadState* __tstate = wxPyBeginAllowThreads();
24839 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
24840
24841 wxPyEndAllowThreads(__tstate);
24842 if (PyErr_Occurred()) SWIG_fail;
24843 }
24844 Py_INCREF(Py_None); resultobj = Py_None;
24845 return resultobj;
24846 fail:
24847 return NULL;
24848 }
24849
24850
24851 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
24852 PyObject *resultobj;
24853 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24854 wxTreeItemId *arg2 = 0 ;
24855 bool result;
24856 PyObject * obj0 = 0 ;
24857 PyObject * obj1 = 0 ;
24858 char *kwnames[] = {
24859 (char *) "self",(char *) "item", NULL
24860 };
24861
24862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
24863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24865 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24866 SWIG_POINTER_EXCEPTION | 0)) == -1)
24867 SWIG_fail;
24868 if (arg2 == NULL) {
24869 PyErr_SetString(PyExc_TypeError,"null reference");
24870 SWIG_fail;
24871 }
24872 {
24873 PyThreadState* __tstate = wxPyBeginAllowThreads();
24874 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
24875
24876 wxPyEndAllowThreads(__tstate);
24877 if (PyErr_Occurred()) SWIG_fail;
24878 }
24879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24880 return resultobj;
24881 fail:
24882 return NULL;
24883 }
24884
24885
24886 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24887 PyObject *resultobj;
24888 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24889 wxTreeItemId *arg2 = 0 ;
24890 bool result;
24891 PyObject * obj0 = 0 ;
24892 PyObject * obj1 = 0 ;
24893 char *kwnames[] = {
24894 (char *) "self",(char *) "item", NULL
24895 };
24896
24897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
24898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24900 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24901 SWIG_POINTER_EXCEPTION | 0)) == -1)
24902 SWIG_fail;
24903 if (arg2 == NULL) {
24904 PyErr_SetString(PyExc_TypeError,"null reference");
24905 SWIG_fail;
24906 }
24907 {
24908 PyThreadState* __tstate = wxPyBeginAllowThreads();
24909 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
24910
24911 wxPyEndAllowThreads(__tstate);
24912 if (PyErr_Occurred()) SWIG_fail;
24913 }
24914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24915 return resultobj;
24916 fail:
24917 return NULL;
24918 }
24919
24920
24921 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
24922 PyObject *resultobj;
24923 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24924 wxTreeItemId *arg2 = 0 ;
24925 bool result;
24926 PyObject * obj0 = 0 ;
24927 PyObject * obj1 = 0 ;
24928 char *kwnames[] = {
24929 (char *) "self",(char *) "item", NULL
24930 };
24931
24932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
24933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24936 SWIG_POINTER_EXCEPTION | 0)) == -1)
24937 SWIG_fail;
24938 if (arg2 == NULL) {
24939 PyErr_SetString(PyExc_TypeError,"null reference");
24940 SWIG_fail;
24941 }
24942 {
24943 PyThreadState* __tstate = wxPyBeginAllowThreads();
24944 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
24945
24946 wxPyEndAllowThreads(__tstate);
24947 if (PyErr_Occurred()) SWIG_fail;
24948 }
24949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24950 return resultobj;
24951 fail:
24952 return NULL;
24953 }
24954
24955
24956 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
24957 PyObject *resultobj;
24958 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24959 wxTreeItemId *arg2 = 0 ;
24960 bool result;
24961 PyObject * obj0 = 0 ;
24962 PyObject * obj1 = 0 ;
24963 char *kwnames[] = {
24964 (char *) "self",(char *) "item", NULL
24965 };
24966
24967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24970 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24971 SWIG_POINTER_EXCEPTION | 0)) == -1)
24972 SWIG_fail;
24973 if (arg2 == NULL) {
24974 PyErr_SetString(PyExc_TypeError,"null reference");
24975 SWIG_fail;
24976 }
24977 {
24978 PyThreadState* __tstate = wxPyBeginAllowThreads();
24979 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
24980
24981 wxPyEndAllowThreads(__tstate);
24982 if (PyErr_Occurred()) SWIG_fail;
24983 }
24984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24985 return resultobj;
24986 fail:
24987 return NULL;
24988 }
24989
24990
24991 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
24992 PyObject *resultobj;
24993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24994 wxTreeItemId *arg2 = 0 ;
24995 bool result;
24996 PyObject * obj0 = 0 ;
24997 PyObject * obj1 = 0 ;
24998 char *kwnames[] = {
24999 (char *) "self",(char *) "item", NULL
25000 };
25001
25002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
25003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25005 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25006 SWIG_POINTER_EXCEPTION | 0)) == -1)
25007 SWIG_fail;
25008 if (arg2 == NULL) {
25009 PyErr_SetString(PyExc_TypeError,"null reference");
25010 SWIG_fail;
25011 }
25012 {
25013 PyThreadState* __tstate = wxPyBeginAllowThreads();
25014 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
25015
25016 wxPyEndAllowThreads(__tstate);
25017 if (PyErr_Occurred()) SWIG_fail;
25018 }
25019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25020 return resultobj;
25021 fail:
25022 return NULL;
25023 }
25024
25025
25026 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
25027 PyObject *resultobj;
25028 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25029 wxTreeItemId *arg2 = 0 ;
25030 bool arg3 = (bool) True ;
25031 size_t result;
25032 PyObject * obj0 = 0 ;
25033 PyObject * obj1 = 0 ;
25034 PyObject * obj2 = 0 ;
25035 char *kwnames[] = {
25036 (char *) "self",(char *) "item",(char *) "recursively", NULL
25037 };
25038
25039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
25040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25042 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25043 SWIG_POINTER_EXCEPTION | 0)) == -1)
25044 SWIG_fail;
25045 if (arg2 == NULL) {
25046 PyErr_SetString(PyExc_TypeError,"null reference");
25047 SWIG_fail;
25048 }
25049 if (obj2) {
25050 arg3 = (bool) SWIG_AsBool(obj2);
25051 if (PyErr_Occurred()) SWIG_fail;
25052 }
25053 {
25054 PyThreadState* __tstate = wxPyBeginAllowThreads();
25055 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
25056
25057 wxPyEndAllowThreads(__tstate);
25058 if (PyErr_Occurred()) SWIG_fail;
25059 }
25060 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25061 return resultobj;
25062 fail:
25063 return NULL;
25064 }
25065
25066
25067 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25068 PyObject *resultobj;
25069 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25070 wxTreeItemId result;
25071 PyObject * obj0 = 0 ;
25072 char *kwnames[] = {
25073 (char *) "self", NULL
25074 };
25075
25076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
25077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25079 {
25080 PyThreadState* __tstate = wxPyBeginAllowThreads();
25081 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
25082
25083 wxPyEndAllowThreads(__tstate);
25084 if (PyErr_Occurred()) SWIG_fail;
25085 }
25086 {
25087 wxTreeItemId * resultptr;
25088 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25089 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25090 }
25091 return resultobj;
25092 fail:
25093 return NULL;
25094 }
25095
25096
25097 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
25098 PyObject *resultobj;
25099 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25100 wxTreeItemId result;
25101 PyObject * obj0 = 0 ;
25102 char *kwnames[] = {
25103 (char *) "self", NULL
25104 };
25105
25106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
25107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25109 {
25110 PyThreadState* __tstate = wxPyBeginAllowThreads();
25111 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
25112
25113 wxPyEndAllowThreads(__tstate);
25114 if (PyErr_Occurred()) SWIG_fail;
25115 }
25116 {
25117 wxTreeItemId * resultptr;
25118 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25119 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25120 }
25121 return resultobj;
25122 fail:
25123 return NULL;
25124 }
25125
25126
25127 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
25128 PyObject *resultobj;
25129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25130 PyObject *result;
25131 PyObject * obj0 = 0 ;
25132 char *kwnames[] = {
25133 (char *) "self", NULL
25134 };
25135
25136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
25137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25139 {
25140 PyThreadState* __tstate = wxPyBeginAllowThreads();
25141 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
25142
25143 wxPyEndAllowThreads(__tstate);
25144 if (PyErr_Occurred()) SWIG_fail;
25145 }
25146 resultobj = result;
25147 return resultobj;
25148 fail:
25149 return NULL;
25150 }
25151
25152
25153 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
25154 PyObject *resultobj;
25155 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25156 wxTreeItemId *arg2 = 0 ;
25157 wxTreeItemId result;
25158 PyObject * obj0 = 0 ;
25159 PyObject * obj1 = 0 ;
25160 char *kwnames[] = {
25161 (char *) "self",(char *) "item", NULL
25162 };
25163
25164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
25165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25168 SWIG_POINTER_EXCEPTION | 0)) == -1)
25169 SWIG_fail;
25170 if (arg2 == NULL) {
25171 PyErr_SetString(PyExc_TypeError,"null reference");
25172 SWIG_fail;
25173 }
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
25177
25178 wxPyEndAllowThreads(__tstate);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 {
25182 wxTreeItemId * resultptr;
25183 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25184 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25185 }
25186 return resultobj;
25187 fail:
25188 return NULL;
25189 }
25190
25191
25192 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25193 PyObject *resultobj;
25194 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25195 wxTreeItemId *arg2 = 0 ;
25196 PyObject *result;
25197 PyObject * obj0 = 0 ;
25198 PyObject * obj1 = 0 ;
25199 char *kwnames[] = {
25200 (char *) "self",(char *) "item", NULL
25201 };
25202
25203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
25204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25207 SWIG_POINTER_EXCEPTION | 0)) == -1)
25208 SWIG_fail;
25209 if (arg2 == NULL) {
25210 PyErr_SetString(PyExc_TypeError,"null reference");
25211 SWIG_fail;
25212 }
25213 {
25214 PyThreadState* __tstate = wxPyBeginAllowThreads();
25215 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
25216
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 resultobj = result;
25221 return resultobj;
25222 fail:
25223 return NULL;
25224 }
25225
25226
25227 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25228 PyObject *resultobj;
25229 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25230 wxTreeItemId *arg2 = 0 ;
25231 void *arg3 = (void *) 0 ;
25232 PyObject *result;
25233 PyObject * obj0 = 0 ;
25234 PyObject * obj1 = 0 ;
25235 PyObject * obj2 = 0 ;
25236 char *kwnames[] = {
25237 (char *) "self",(char *) "item",(char *) "cookie", NULL
25238 };
25239
25240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
25241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25243 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25244 SWIG_POINTER_EXCEPTION | 0)) == -1)
25245 SWIG_fail;
25246 if (arg2 == NULL) {
25247 PyErr_SetString(PyExc_TypeError,"null reference");
25248 SWIG_fail;
25249 }
25250 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25251 {
25252 PyThreadState* __tstate = wxPyBeginAllowThreads();
25253 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
25254
25255 wxPyEndAllowThreads(__tstate);
25256 if (PyErr_Occurred()) SWIG_fail;
25257 }
25258 resultobj = result;
25259 return resultobj;
25260 fail:
25261 return NULL;
25262 }
25263
25264
25265 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25266 PyObject *resultobj;
25267 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25268 wxTreeItemId *arg2 = 0 ;
25269 wxTreeItemId result;
25270 PyObject * obj0 = 0 ;
25271 PyObject * obj1 = 0 ;
25272 char *kwnames[] = {
25273 (char *) "self",(char *) "item", NULL
25274 };
25275
25276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
25277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25279 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25280 SWIG_POINTER_EXCEPTION | 0)) == -1)
25281 SWIG_fail;
25282 if (arg2 == NULL) {
25283 PyErr_SetString(PyExc_TypeError,"null reference");
25284 SWIG_fail;
25285 }
25286 {
25287 PyThreadState* __tstate = wxPyBeginAllowThreads();
25288 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
25289
25290 wxPyEndAllowThreads(__tstate);
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
25293 {
25294 wxTreeItemId * resultptr;
25295 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25296 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25297 }
25298 return resultobj;
25299 fail:
25300 return NULL;
25301 }
25302
25303
25304 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25305 PyObject *resultobj;
25306 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25307 wxTreeItemId *arg2 = 0 ;
25308 wxTreeItemId result;
25309 PyObject * obj0 = 0 ;
25310 PyObject * obj1 = 0 ;
25311 char *kwnames[] = {
25312 (char *) "self",(char *) "item", NULL
25313 };
25314
25315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
25316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25319 SWIG_POINTER_EXCEPTION | 0)) == -1)
25320 SWIG_fail;
25321 if (arg2 == NULL) {
25322 PyErr_SetString(PyExc_TypeError,"null reference");
25323 SWIG_fail;
25324 }
25325 {
25326 PyThreadState* __tstate = wxPyBeginAllowThreads();
25327 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
25328
25329 wxPyEndAllowThreads(__tstate);
25330 if (PyErr_Occurred()) SWIG_fail;
25331 }
25332 {
25333 wxTreeItemId * resultptr;
25334 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25335 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25336 }
25337 return resultobj;
25338 fail:
25339 return NULL;
25340 }
25341
25342
25343 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25344 PyObject *resultobj;
25345 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25346 wxTreeItemId *arg2 = 0 ;
25347 wxTreeItemId result;
25348 PyObject * obj0 = 0 ;
25349 PyObject * obj1 = 0 ;
25350 char *kwnames[] = {
25351 (char *) "self",(char *) "item", NULL
25352 };
25353
25354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
25355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25358 SWIG_POINTER_EXCEPTION | 0)) == -1)
25359 SWIG_fail;
25360 if (arg2 == NULL) {
25361 PyErr_SetString(PyExc_TypeError,"null reference");
25362 SWIG_fail;
25363 }
25364 {
25365 PyThreadState* __tstate = wxPyBeginAllowThreads();
25366 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
25367
25368 wxPyEndAllowThreads(__tstate);
25369 if (PyErr_Occurred()) SWIG_fail;
25370 }
25371 {
25372 wxTreeItemId * resultptr;
25373 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25374 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25375 }
25376 return resultobj;
25377 fail:
25378 return NULL;
25379 }
25380
25381
25382 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25383 PyObject *resultobj;
25384 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25385 wxTreeItemId result;
25386 PyObject * obj0 = 0 ;
25387 char *kwnames[] = {
25388 (char *) "self", NULL
25389 };
25390
25391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
25392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25394 {
25395 PyThreadState* __tstate = wxPyBeginAllowThreads();
25396 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
25397
25398 wxPyEndAllowThreads(__tstate);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 {
25402 wxTreeItemId * resultptr;
25403 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25404 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25405 }
25406 return resultobj;
25407 fail:
25408 return NULL;
25409 }
25410
25411
25412 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25413 PyObject *resultobj;
25414 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25415 wxTreeItemId *arg2 = 0 ;
25416 wxTreeItemId result;
25417 PyObject * obj0 = 0 ;
25418 PyObject * obj1 = 0 ;
25419 char *kwnames[] = {
25420 (char *) "self",(char *) "item", NULL
25421 };
25422
25423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
25424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25427 SWIG_POINTER_EXCEPTION | 0)) == -1)
25428 SWIG_fail;
25429 if (arg2 == NULL) {
25430 PyErr_SetString(PyExc_TypeError,"null reference");
25431 SWIG_fail;
25432 }
25433 {
25434 PyThreadState* __tstate = wxPyBeginAllowThreads();
25435 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
25436
25437 wxPyEndAllowThreads(__tstate);
25438 if (PyErr_Occurred()) SWIG_fail;
25439 }
25440 {
25441 wxTreeItemId * resultptr;
25442 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25444 }
25445 return resultobj;
25446 fail:
25447 return NULL;
25448 }
25449
25450
25451 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25452 PyObject *resultobj;
25453 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25454 wxTreeItemId *arg2 = 0 ;
25455 wxTreeItemId result;
25456 PyObject * obj0 = 0 ;
25457 PyObject * obj1 = 0 ;
25458 char *kwnames[] = {
25459 (char *) "self",(char *) "item", NULL
25460 };
25461
25462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
25463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25466 SWIG_POINTER_EXCEPTION | 0)) == -1)
25467 SWIG_fail;
25468 if (arg2 == NULL) {
25469 PyErr_SetString(PyExc_TypeError,"null reference");
25470 SWIG_fail;
25471 }
25472 {
25473 PyThreadState* __tstate = wxPyBeginAllowThreads();
25474 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
25475
25476 wxPyEndAllowThreads(__tstate);
25477 if (PyErr_Occurred()) SWIG_fail;
25478 }
25479 {
25480 wxTreeItemId * resultptr;
25481 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25482 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25483 }
25484 return resultobj;
25485 fail:
25486 return NULL;
25487 }
25488
25489
25490 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
25491 PyObject *resultobj;
25492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25493 wxString *arg2 = 0 ;
25494 int arg3 = (int) -1 ;
25495 int arg4 = (int) -1 ;
25496 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
25497 wxTreeItemId result;
25498 bool temp2 = False ;
25499 PyObject * obj0 = 0 ;
25500 PyObject * obj1 = 0 ;
25501 PyObject * obj2 = 0 ;
25502 PyObject * obj3 = 0 ;
25503 PyObject * obj4 = 0 ;
25504 char *kwnames[] = {
25505 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25506 };
25507
25508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25511 {
25512 arg2 = wxString_in_helper(obj1);
25513 if (arg2 == NULL) SWIG_fail;
25514 temp2 = True;
25515 }
25516 if (obj2) {
25517 arg3 = (int) SWIG_AsInt(obj2);
25518 if (PyErr_Occurred()) SWIG_fail;
25519 }
25520 if (obj3) {
25521 arg4 = (int) SWIG_AsInt(obj3);
25522 if (PyErr_Occurred()) SWIG_fail;
25523 }
25524 if (obj4) {
25525 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
25526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25527 }
25528 {
25529 PyThreadState* __tstate = wxPyBeginAllowThreads();
25530 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
25531
25532 wxPyEndAllowThreads(__tstate);
25533 if (PyErr_Occurred()) SWIG_fail;
25534 }
25535 {
25536 wxTreeItemId * resultptr;
25537 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25538 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25539 }
25540 {
25541 if (temp2)
25542 delete arg2;
25543 }
25544 return resultobj;
25545 fail:
25546 {
25547 if (temp2)
25548 delete arg2;
25549 }
25550 return NULL;
25551 }
25552
25553
25554 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25555 PyObject *resultobj;
25556 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25557 wxTreeItemId *arg2 = 0 ;
25558 wxString *arg3 = 0 ;
25559 int arg4 = (int) -1 ;
25560 int arg5 = (int) -1 ;
25561 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25562 wxTreeItemId result;
25563 bool temp3 = False ;
25564 PyObject * obj0 = 0 ;
25565 PyObject * obj1 = 0 ;
25566 PyObject * obj2 = 0 ;
25567 PyObject * obj3 = 0 ;
25568 PyObject * obj4 = 0 ;
25569 PyObject * obj5 = 0 ;
25570 char *kwnames[] = {
25571 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25572 };
25573
25574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25577 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25578 SWIG_POINTER_EXCEPTION | 0)) == -1)
25579 SWIG_fail;
25580 if (arg2 == NULL) {
25581 PyErr_SetString(PyExc_TypeError,"null reference");
25582 SWIG_fail;
25583 }
25584 {
25585 arg3 = wxString_in_helper(obj2);
25586 if (arg3 == NULL) SWIG_fail;
25587 temp3 = True;
25588 }
25589 if (obj3) {
25590 arg4 = (int) SWIG_AsInt(obj3);
25591 if (PyErr_Occurred()) SWIG_fail;
25592 }
25593 if (obj4) {
25594 arg5 = (int) SWIG_AsInt(obj4);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 if (obj5) {
25598 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
25599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25600 }
25601 {
25602 PyThreadState* __tstate = wxPyBeginAllowThreads();
25603 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25604
25605 wxPyEndAllowThreads(__tstate);
25606 if (PyErr_Occurred()) SWIG_fail;
25607 }
25608 {
25609 wxTreeItemId * resultptr;
25610 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25612 }
25613 {
25614 if (temp3)
25615 delete arg3;
25616 }
25617 return resultobj;
25618 fail:
25619 {
25620 if (temp3)
25621 delete arg3;
25622 }
25623 return NULL;
25624 }
25625
25626
25627 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25628 PyObject *resultobj;
25629 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25630 wxTreeItemId *arg2 = 0 ;
25631 wxTreeItemId *arg3 = 0 ;
25632 wxString *arg4 = 0 ;
25633 int arg5 = (int) -1 ;
25634 int arg6 = (int) -1 ;
25635 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25636 wxTreeItemId result;
25637 bool temp4 = False ;
25638 PyObject * obj0 = 0 ;
25639 PyObject * obj1 = 0 ;
25640 PyObject * obj2 = 0 ;
25641 PyObject * obj3 = 0 ;
25642 PyObject * obj4 = 0 ;
25643 PyObject * obj5 = 0 ;
25644 PyObject * obj6 = 0 ;
25645 char *kwnames[] = {
25646 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25647 };
25648
25649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25653 SWIG_POINTER_EXCEPTION | 0)) == -1)
25654 SWIG_fail;
25655 if (arg2 == NULL) {
25656 PyErr_SetString(PyExc_TypeError,"null reference");
25657 SWIG_fail;
25658 }
25659 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
25660 SWIG_POINTER_EXCEPTION | 0)) == -1)
25661 SWIG_fail;
25662 if (arg3 == NULL) {
25663 PyErr_SetString(PyExc_TypeError,"null reference");
25664 SWIG_fail;
25665 }
25666 {
25667 arg4 = wxString_in_helper(obj3);
25668 if (arg4 == NULL) SWIG_fail;
25669 temp4 = True;
25670 }
25671 if (obj4) {
25672 arg5 = (int) SWIG_AsInt(obj4);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 if (obj5) {
25676 arg6 = (int) SWIG_AsInt(obj5);
25677 if (PyErr_Occurred()) SWIG_fail;
25678 }
25679 if (obj6) {
25680 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
25681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25682 }
25683 {
25684 PyThreadState* __tstate = wxPyBeginAllowThreads();
25685 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25686
25687 wxPyEndAllowThreads(__tstate);
25688 if (PyErr_Occurred()) SWIG_fail;
25689 }
25690 {
25691 wxTreeItemId * resultptr;
25692 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25693 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25694 }
25695 {
25696 if (temp4)
25697 delete arg4;
25698 }
25699 return resultobj;
25700 fail:
25701 {
25702 if (temp4)
25703 delete arg4;
25704 }
25705 return NULL;
25706 }
25707
25708
25709 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
25710 PyObject *resultobj;
25711 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25712 wxTreeItemId *arg2 = 0 ;
25713 size_t arg3 ;
25714 wxString *arg4 = 0 ;
25715 int arg5 = (int) -1 ;
25716 int arg6 = (int) -1 ;
25717 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25718 wxTreeItemId result;
25719 bool temp4 = False ;
25720 PyObject * obj0 = 0 ;
25721 PyObject * obj1 = 0 ;
25722 PyObject * obj2 = 0 ;
25723 PyObject * obj3 = 0 ;
25724 PyObject * obj4 = 0 ;
25725 PyObject * obj5 = 0 ;
25726 PyObject * obj6 = 0 ;
25727 char *kwnames[] = {
25728 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25729 };
25730
25731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25735 SWIG_POINTER_EXCEPTION | 0)) == -1)
25736 SWIG_fail;
25737 if (arg2 == NULL) {
25738 PyErr_SetString(PyExc_TypeError,"null reference");
25739 SWIG_fail;
25740 }
25741 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
25742 if (PyErr_Occurred()) SWIG_fail;
25743 {
25744 arg4 = wxString_in_helper(obj3);
25745 if (arg4 == NULL) SWIG_fail;
25746 temp4 = True;
25747 }
25748 if (obj4) {
25749 arg5 = (int) SWIG_AsInt(obj4);
25750 if (PyErr_Occurred()) SWIG_fail;
25751 }
25752 if (obj5) {
25753 arg6 = (int) SWIG_AsInt(obj5);
25754 if (PyErr_Occurred()) SWIG_fail;
25755 }
25756 if (obj6) {
25757 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
25758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25759 }
25760 {
25761 PyThreadState* __tstate = wxPyBeginAllowThreads();
25762 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25763
25764 wxPyEndAllowThreads(__tstate);
25765 if (PyErr_Occurred()) SWIG_fail;
25766 }
25767 {
25768 wxTreeItemId * resultptr;
25769 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25770 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25771 }
25772 {
25773 if (temp4)
25774 delete arg4;
25775 }
25776 return resultobj;
25777 fail:
25778 {
25779 if (temp4)
25780 delete arg4;
25781 }
25782 return NULL;
25783 }
25784
25785
25786 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25787 PyObject *resultobj;
25788 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25789 wxTreeItemId *arg2 = 0 ;
25790 wxString *arg3 = 0 ;
25791 int arg4 = (int) -1 ;
25792 int arg5 = (int) -1 ;
25793 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25794 wxTreeItemId result;
25795 bool temp3 = False ;
25796 PyObject * obj0 = 0 ;
25797 PyObject * obj1 = 0 ;
25798 PyObject * obj2 = 0 ;
25799 PyObject * obj3 = 0 ;
25800 PyObject * obj4 = 0 ;
25801 PyObject * obj5 = 0 ;
25802 char *kwnames[] = {
25803 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25804 };
25805
25806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25810 SWIG_POINTER_EXCEPTION | 0)) == -1)
25811 SWIG_fail;
25812 if (arg2 == NULL) {
25813 PyErr_SetString(PyExc_TypeError,"null reference");
25814 SWIG_fail;
25815 }
25816 {
25817 arg3 = wxString_in_helper(obj2);
25818 if (arg3 == NULL) SWIG_fail;
25819 temp3 = True;
25820 }
25821 if (obj3) {
25822 arg4 = (int) SWIG_AsInt(obj3);
25823 if (PyErr_Occurred()) SWIG_fail;
25824 }
25825 if (obj4) {
25826 arg5 = (int) SWIG_AsInt(obj4);
25827 if (PyErr_Occurred()) SWIG_fail;
25828 }
25829 if (obj5) {
25830 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
25831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25832 }
25833 {
25834 PyThreadState* __tstate = wxPyBeginAllowThreads();
25835 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25836
25837 wxPyEndAllowThreads(__tstate);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 }
25840 {
25841 wxTreeItemId * resultptr;
25842 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25843 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25844 }
25845 {
25846 if (temp3)
25847 delete arg3;
25848 }
25849 return resultobj;
25850 fail:
25851 {
25852 if (temp3)
25853 delete arg3;
25854 }
25855 return NULL;
25856 }
25857
25858
25859 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
25860 PyObject *resultobj;
25861 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25862 wxTreeItemId *arg2 = 0 ;
25863 PyObject * obj0 = 0 ;
25864 PyObject * obj1 = 0 ;
25865 char *kwnames[] = {
25866 (char *) "self",(char *) "item", NULL
25867 };
25868
25869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
25870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25873 SWIG_POINTER_EXCEPTION | 0)) == -1)
25874 SWIG_fail;
25875 if (arg2 == NULL) {
25876 PyErr_SetString(PyExc_TypeError,"null reference");
25877 SWIG_fail;
25878 }
25879 {
25880 PyThreadState* __tstate = wxPyBeginAllowThreads();
25881 (arg1)->Delete((wxTreeItemId const &)*arg2);
25882
25883 wxPyEndAllowThreads(__tstate);
25884 if (PyErr_Occurred()) SWIG_fail;
25885 }
25886 Py_INCREF(Py_None); resultobj = Py_None;
25887 return resultobj;
25888 fail:
25889 return NULL;
25890 }
25891
25892
25893 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25894 PyObject *resultobj;
25895 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25896 wxTreeItemId *arg2 = 0 ;
25897 PyObject * obj0 = 0 ;
25898 PyObject * obj1 = 0 ;
25899 char *kwnames[] = {
25900 (char *) "self",(char *) "item", NULL
25901 };
25902
25903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
25904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25906 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25907 SWIG_POINTER_EXCEPTION | 0)) == -1)
25908 SWIG_fail;
25909 if (arg2 == NULL) {
25910 PyErr_SetString(PyExc_TypeError,"null reference");
25911 SWIG_fail;
25912 }
25913 {
25914 PyThreadState* __tstate = wxPyBeginAllowThreads();
25915 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
25916
25917 wxPyEndAllowThreads(__tstate);
25918 if (PyErr_Occurred()) SWIG_fail;
25919 }
25920 Py_INCREF(Py_None); resultobj = Py_None;
25921 return resultobj;
25922 fail:
25923 return NULL;
25924 }
25925
25926
25927 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
25928 PyObject *resultobj;
25929 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25930 PyObject * obj0 = 0 ;
25931 char *kwnames[] = {
25932 (char *) "self", NULL
25933 };
25934
25935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
25936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25938 {
25939 PyThreadState* __tstate = wxPyBeginAllowThreads();
25940 (arg1)->DeleteAllItems();
25941
25942 wxPyEndAllowThreads(__tstate);
25943 if (PyErr_Occurred()) SWIG_fail;
25944 }
25945 Py_INCREF(Py_None); resultobj = Py_None;
25946 return resultobj;
25947 fail:
25948 return NULL;
25949 }
25950
25951
25952 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
25953 PyObject *resultobj;
25954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25955 wxTreeItemId *arg2 = 0 ;
25956 PyObject * obj0 = 0 ;
25957 PyObject * obj1 = 0 ;
25958 char *kwnames[] = {
25959 (char *) "self",(char *) "item", NULL
25960 };
25961
25962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
25963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25965 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25966 SWIG_POINTER_EXCEPTION | 0)) == -1)
25967 SWIG_fail;
25968 if (arg2 == NULL) {
25969 PyErr_SetString(PyExc_TypeError,"null reference");
25970 SWIG_fail;
25971 }
25972 {
25973 PyThreadState* __tstate = wxPyBeginAllowThreads();
25974 (arg1)->Expand((wxTreeItemId const &)*arg2);
25975
25976 wxPyEndAllowThreads(__tstate);
25977 if (PyErr_Occurred()) SWIG_fail;
25978 }
25979 Py_INCREF(Py_None); resultobj = Py_None;
25980 return resultobj;
25981 fail:
25982 return NULL;
25983 }
25984
25985
25986 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
25987 PyObject *resultobj;
25988 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25989 wxTreeItemId *arg2 = 0 ;
25990 PyObject * obj0 = 0 ;
25991 PyObject * obj1 = 0 ;
25992 char *kwnames[] = {
25993 (char *) "self",(char *) "item", NULL
25994 };
25995
25996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
25997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25999 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26000 SWIG_POINTER_EXCEPTION | 0)) == -1)
26001 SWIG_fail;
26002 if (arg2 == NULL) {
26003 PyErr_SetString(PyExc_TypeError,"null reference");
26004 SWIG_fail;
26005 }
26006 {
26007 PyThreadState* __tstate = wxPyBeginAllowThreads();
26008 (arg1)->Collapse((wxTreeItemId const &)*arg2);
26009
26010 wxPyEndAllowThreads(__tstate);
26011 if (PyErr_Occurred()) SWIG_fail;
26012 }
26013 Py_INCREF(Py_None); resultobj = Py_None;
26014 return resultobj;
26015 fail:
26016 return NULL;
26017 }
26018
26019
26020 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
26021 PyObject *resultobj;
26022 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26023 wxTreeItemId *arg2 = 0 ;
26024 PyObject * obj0 = 0 ;
26025 PyObject * obj1 = 0 ;
26026 char *kwnames[] = {
26027 (char *) "self",(char *) "item", NULL
26028 };
26029
26030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
26031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26033 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26034 SWIG_POINTER_EXCEPTION | 0)) == -1)
26035 SWIG_fail;
26036 if (arg2 == NULL) {
26037 PyErr_SetString(PyExc_TypeError,"null reference");
26038 SWIG_fail;
26039 }
26040 {
26041 PyThreadState* __tstate = wxPyBeginAllowThreads();
26042 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
26043
26044 wxPyEndAllowThreads(__tstate);
26045 if (PyErr_Occurred()) SWIG_fail;
26046 }
26047 Py_INCREF(Py_None); resultobj = Py_None;
26048 return resultobj;
26049 fail:
26050 return NULL;
26051 }
26052
26053
26054 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
26055 PyObject *resultobj;
26056 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26057 wxTreeItemId *arg2 = 0 ;
26058 PyObject * obj0 = 0 ;
26059 PyObject * obj1 = 0 ;
26060 char *kwnames[] = {
26061 (char *) "self",(char *) "item", NULL
26062 };
26063
26064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
26065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26067 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26068 SWIG_POINTER_EXCEPTION | 0)) == -1)
26069 SWIG_fail;
26070 if (arg2 == NULL) {
26071 PyErr_SetString(PyExc_TypeError,"null reference");
26072 SWIG_fail;
26073 }
26074 {
26075 PyThreadState* __tstate = wxPyBeginAllowThreads();
26076 (arg1)->Toggle((wxTreeItemId const &)*arg2);
26077
26078 wxPyEndAllowThreads(__tstate);
26079 if (PyErr_Occurred()) SWIG_fail;
26080 }
26081 Py_INCREF(Py_None); resultobj = Py_None;
26082 return resultobj;
26083 fail:
26084 return NULL;
26085 }
26086
26087
26088 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
26089 PyObject *resultobj;
26090 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26091 PyObject * obj0 = 0 ;
26092 char *kwnames[] = {
26093 (char *) "self", NULL
26094 };
26095
26096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
26097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26099 {
26100 PyThreadState* __tstate = wxPyBeginAllowThreads();
26101 (arg1)->Unselect();
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_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26114 PyObject *resultobj;
26115 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26116 wxTreeItemId *arg2 = 0 ;
26117 PyObject * obj0 = 0 ;
26118 PyObject * obj1 = 0 ;
26119 char *kwnames[] = {
26120 (char *) "self",(char *) "item", NULL
26121 };
26122
26123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
26124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26127 SWIG_POINTER_EXCEPTION | 0)) == -1)
26128 SWIG_fail;
26129 if (arg2 == NULL) {
26130 PyErr_SetString(PyExc_TypeError,"null reference");
26131 SWIG_fail;
26132 }
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
26136
26137 wxPyEndAllowThreads(__tstate);
26138 if (PyErr_Occurred()) SWIG_fail;
26139 }
26140 Py_INCREF(Py_None); resultobj = Py_None;
26141 return resultobj;
26142 fail:
26143 return NULL;
26144 }
26145
26146
26147 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
26148 PyObject *resultobj;
26149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26150 PyObject * obj0 = 0 ;
26151 char *kwnames[] = {
26152 (char *) "self", NULL
26153 };
26154
26155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
26156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26158 {
26159 PyThreadState* __tstate = wxPyBeginAllowThreads();
26160 (arg1)->UnselectAll();
26161
26162 wxPyEndAllowThreads(__tstate);
26163 if (PyErr_Occurred()) SWIG_fail;
26164 }
26165 Py_INCREF(Py_None); resultobj = Py_None;
26166 return resultobj;
26167 fail:
26168 return NULL;
26169 }
26170
26171
26172 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26173 PyObject *resultobj;
26174 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26175 wxTreeItemId *arg2 = 0 ;
26176 bool arg3 = (bool) True ;
26177 PyObject * obj0 = 0 ;
26178 PyObject * obj1 = 0 ;
26179 PyObject * obj2 = 0 ;
26180 char *kwnames[] = {
26181 (char *) "self",(char *) "item",(char *) "select", NULL
26182 };
26183
26184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
26185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26188 SWIG_POINTER_EXCEPTION | 0)) == -1)
26189 SWIG_fail;
26190 if (arg2 == NULL) {
26191 PyErr_SetString(PyExc_TypeError,"null reference");
26192 SWIG_fail;
26193 }
26194 if (obj2) {
26195 arg3 = (bool) SWIG_AsBool(obj2);
26196 if (PyErr_Occurred()) SWIG_fail;
26197 }
26198 {
26199 PyThreadState* __tstate = wxPyBeginAllowThreads();
26200 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
26201
26202 wxPyEndAllowThreads(__tstate);
26203 if (PyErr_Occurred()) SWIG_fail;
26204 }
26205 Py_INCREF(Py_None); resultobj = Py_None;
26206 return resultobj;
26207 fail:
26208 return NULL;
26209 }
26210
26211
26212 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26213 PyObject *resultobj;
26214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26215 wxTreeItemId *arg2 = 0 ;
26216 PyObject * obj0 = 0 ;
26217 PyObject * obj1 = 0 ;
26218 char *kwnames[] = {
26219 (char *) "self",(char *) "item", NULL
26220 };
26221
26222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
26223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26225 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26226 SWIG_POINTER_EXCEPTION | 0)) == -1)
26227 SWIG_fail;
26228 if (arg2 == NULL) {
26229 PyErr_SetString(PyExc_TypeError,"null reference");
26230 SWIG_fail;
26231 }
26232 {
26233 PyThreadState* __tstate = wxPyBeginAllowThreads();
26234 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
26235
26236 wxPyEndAllowThreads(__tstate);
26237 if (PyErr_Occurred()) SWIG_fail;
26238 }
26239 Py_INCREF(Py_None); resultobj = Py_None;
26240 return resultobj;
26241 fail:
26242 return NULL;
26243 }
26244
26245
26246 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26247 PyObject *resultobj;
26248 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26249 wxTreeItemId *arg2 = 0 ;
26250 PyObject * obj0 = 0 ;
26251 PyObject * obj1 = 0 ;
26252 char *kwnames[] = {
26253 (char *) "self",(char *) "item", NULL
26254 };
26255
26256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
26257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26259 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26260 SWIG_POINTER_EXCEPTION | 0)) == -1)
26261 SWIG_fail;
26262 if (arg2 == NULL) {
26263 PyErr_SetString(PyExc_TypeError,"null reference");
26264 SWIG_fail;
26265 }
26266 {
26267 PyThreadState* __tstate = wxPyBeginAllowThreads();
26268 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
26269
26270 wxPyEndAllowThreads(__tstate);
26271 if (PyErr_Occurred()) SWIG_fail;
26272 }
26273 Py_INCREF(Py_None); resultobj = Py_None;
26274 return resultobj;
26275 fail:
26276 return NULL;
26277 }
26278
26279
26280 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
26281 PyObject *resultobj;
26282 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26283 wxTreeItemId *arg2 = 0 ;
26284 PyObject * obj0 = 0 ;
26285 PyObject * obj1 = 0 ;
26286 char *kwnames[] = {
26287 (char *) "self",(char *) "item", NULL
26288 };
26289
26290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
26291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26293 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26294 SWIG_POINTER_EXCEPTION | 0)) == -1)
26295 SWIG_fail;
26296 if (arg2 == NULL) {
26297 PyErr_SetString(PyExc_TypeError,"null reference");
26298 SWIG_fail;
26299 }
26300 {
26301 PyThreadState* __tstate = wxPyBeginAllowThreads();
26302 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
26303
26304 wxPyEndAllowThreads(__tstate);
26305 if (PyErr_Occurred()) SWIG_fail;
26306 }
26307 Py_INCREF(Py_None); resultobj = Py_None;
26308 return resultobj;
26309 fail:
26310 return NULL;
26311 }
26312
26313
26314 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26315 PyObject *resultobj;
26316 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26317 wxTreeItemId *arg2 = 0 ;
26318 PyObject * obj0 = 0 ;
26319 PyObject * obj1 = 0 ;
26320 char *kwnames[] = {
26321 (char *) "self",(char *) "item", NULL
26322 };
26323
26324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
26325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26327 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26328 SWIG_POINTER_EXCEPTION | 0)) == -1)
26329 SWIG_fail;
26330 if (arg2 == NULL) {
26331 PyErr_SetString(PyExc_TypeError,"null reference");
26332 SWIG_fail;
26333 }
26334 {
26335 PyThreadState* __tstate = wxPyBeginAllowThreads();
26336 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
26337
26338 wxPyEndAllowThreads(__tstate);
26339 if (PyErr_Occurred()) SWIG_fail;
26340 }
26341 Py_INCREF(Py_None); resultobj = Py_None;
26342 return resultobj;
26343 fail:
26344 return NULL;
26345 }
26346
26347
26348 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
26349 PyObject *resultobj;
26350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26351 wxTextCtrl *result;
26352 PyObject * obj0 = 0 ;
26353 char *kwnames[] = {
26354 (char *) "self", NULL
26355 };
26356
26357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
26358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26360 {
26361 PyThreadState* __tstate = wxPyBeginAllowThreads();
26362 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
26363
26364 wxPyEndAllowThreads(__tstate);
26365 if (PyErr_Occurred()) SWIG_fail;
26366 }
26367 {
26368 resultobj = wxPyMake_wxObject(result);
26369 }
26370 return resultobj;
26371 fail:
26372 return NULL;
26373 }
26374
26375
26376 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26377 PyObject *resultobj;
26378 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26379 wxTreeItemId *arg2 = 0 ;
26380 PyObject * obj0 = 0 ;
26381 PyObject * obj1 = 0 ;
26382 char *kwnames[] = {
26383 (char *) "self",(char *) "item", NULL
26384 };
26385
26386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
26387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26389 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26390 SWIG_POINTER_EXCEPTION | 0)) == -1)
26391 SWIG_fail;
26392 if (arg2 == NULL) {
26393 PyErr_SetString(PyExc_TypeError,"null reference");
26394 SWIG_fail;
26395 }
26396 {
26397 PyThreadState* __tstate = wxPyBeginAllowThreads();
26398 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
26399
26400 wxPyEndAllowThreads(__tstate);
26401 if (PyErr_Occurred()) SWIG_fail;
26402 }
26403 Py_INCREF(Py_None); resultobj = Py_None;
26404 return resultobj;
26405 fail:
26406 return NULL;
26407 }
26408
26409
26410 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
26411 PyObject *resultobj;
26412 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26413 wxPoint *arg2 = 0 ;
26414 int *arg3 = 0 ;
26415 wxTreeItemId result;
26416 wxPoint temp2 ;
26417 int temp3 ;
26418 PyObject * obj0 = 0 ;
26419 PyObject * obj1 = 0 ;
26420 char *kwnames[] = {
26421 (char *) "self",(char *) "point", NULL
26422 };
26423
26424 arg3 = &temp3;
26425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
26426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26428 {
26429 arg2 = &temp2;
26430 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26431 }
26432 {
26433 PyThreadState* __tstate = wxPyBeginAllowThreads();
26434 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
26435
26436 wxPyEndAllowThreads(__tstate);
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 {
26440 wxTreeItemId * resultptr;
26441 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26442 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26443 }
26444 {
26445 PyObject *o = PyInt_FromLong((long) (*arg3));
26446 resultobj = t_output_helper(resultobj,o);
26447 }
26448 return resultobj;
26449 fail:
26450 return NULL;
26451 }
26452
26453
26454 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
26455 PyObject *resultobj;
26456 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26457 wxTreeItemId *arg2 = 0 ;
26458 bool arg3 = (bool) False ;
26459 PyObject *result;
26460 PyObject * obj0 = 0 ;
26461 PyObject * obj1 = 0 ;
26462 PyObject * obj2 = 0 ;
26463 char *kwnames[] = {
26464 (char *) "self",(char *) "item",(char *) "textOnly", NULL
26465 };
26466
26467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
26468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26471 SWIG_POINTER_EXCEPTION | 0)) == -1)
26472 SWIG_fail;
26473 if (arg2 == NULL) {
26474 PyErr_SetString(PyExc_TypeError,"null reference");
26475 SWIG_fail;
26476 }
26477 if (obj2) {
26478 arg3 = (bool) SWIG_AsBool(obj2);
26479 if (PyErr_Occurred()) SWIG_fail;
26480 }
26481 {
26482 PyThreadState* __tstate = wxPyBeginAllowThreads();
26483 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
26484
26485 wxPyEndAllowThreads(__tstate);
26486 if (PyErr_Occurred()) SWIG_fail;
26487 }
26488 resultobj = result;
26489 return resultobj;
26490 fail:
26491 return NULL;
26492 }
26493
26494
26495 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
26496 PyObject *obj;
26497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26498 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
26499 Py_INCREF(obj);
26500 return Py_BuildValue((char *)"");
26501 }
26502 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
26503 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
26504 return 1;
26505 }
26506
26507
26508 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
26509 PyObject *pyobj;
26510
26511 {
26512 #if wxUSE_UNICODE
26513 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26514 #else
26515 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26516 #endif
26517 }
26518 return pyobj;
26519 }
26520
26521
26522 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26523 PyObject *resultobj;
26524 wxWindow *arg1 = (wxWindow *) 0 ;
26525 int arg2 = (int) (int)-1 ;
26526 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
26527 wxString *arg3 = (wxString *) &arg3_defvalue ;
26528 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26529 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26530 wxSize const &arg5_defvalue = wxDefaultSize ;
26531 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26532 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26533 wxString const &arg7_defvalue = wxPyEmptyString ;
26534 wxString *arg7 = (wxString *) &arg7_defvalue ;
26535 int arg8 = (int) 0 ;
26536 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
26537 wxString *arg9 = (wxString *) &arg9_defvalue ;
26538 wxGenericDirCtrl *result;
26539 bool temp3 = False ;
26540 wxPoint temp4 ;
26541 wxSize temp5 ;
26542 bool temp7 = False ;
26543 bool temp9 = False ;
26544 PyObject * obj0 = 0 ;
26545 PyObject * obj1 = 0 ;
26546 PyObject * obj2 = 0 ;
26547 PyObject * obj3 = 0 ;
26548 PyObject * obj4 = 0 ;
26549 PyObject * obj5 = 0 ;
26550 PyObject * obj6 = 0 ;
26551 PyObject * obj7 = 0 ;
26552 PyObject * obj8 = 0 ;
26553 char *kwnames[] = {
26554 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26555 };
26556
26557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
26558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26560 if (obj1) {
26561 arg2 = (int const) SWIG_AsInt(obj1);
26562 if (PyErr_Occurred()) SWIG_fail;
26563 }
26564 if (obj2) {
26565 {
26566 arg3 = wxString_in_helper(obj2);
26567 if (arg3 == NULL) SWIG_fail;
26568 temp3 = True;
26569 }
26570 }
26571 if (obj3) {
26572 {
26573 arg4 = &temp4;
26574 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26575 }
26576 }
26577 if (obj4) {
26578 {
26579 arg5 = &temp5;
26580 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26581 }
26582 }
26583 if (obj5) {
26584 arg6 = (long) SWIG_AsLong(obj5);
26585 if (PyErr_Occurred()) SWIG_fail;
26586 }
26587 if (obj6) {
26588 {
26589 arg7 = wxString_in_helper(obj6);
26590 if (arg7 == NULL) SWIG_fail;
26591 temp7 = True;
26592 }
26593 }
26594 if (obj7) {
26595 arg8 = (int) SWIG_AsInt(obj7);
26596 if (PyErr_Occurred()) SWIG_fail;
26597 }
26598 if (obj8) {
26599 {
26600 arg9 = wxString_in_helper(obj8);
26601 if (arg9 == NULL) SWIG_fail;
26602 temp9 = True;
26603 }
26604 }
26605 {
26606 PyThreadState* __tstate = wxPyBeginAllowThreads();
26607 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
26608
26609 wxPyEndAllowThreads(__tstate);
26610 if (PyErr_Occurred()) SWIG_fail;
26611 }
26612 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
26613 {
26614 if (temp3)
26615 delete arg3;
26616 }
26617 {
26618 if (temp7)
26619 delete arg7;
26620 }
26621 {
26622 if (temp9)
26623 delete arg9;
26624 }
26625 return resultobj;
26626 fail:
26627 {
26628 if (temp3)
26629 delete arg3;
26630 }
26631 {
26632 if (temp7)
26633 delete arg7;
26634 }
26635 {
26636 if (temp9)
26637 delete arg9;
26638 }
26639 return NULL;
26640 }
26641
26642
26643 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26644 PyObject *resultobj;
26645 wxGenericDirCtrl *result;
26646 char *kwnames[] = {
26647 NULL
26648 };
26649
26650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
26651 {
26652 PyThreadState* __tstate = wxPyBeginAllowThreads();
26653 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
26654
26655 wxPyEndAllowThreads(__tstate);
26656 if (PyErr_Occurred()) SWIG_fail;
26657 }
26658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
26659 return resultobj;
26660 fail:
26661 return NULL;
26662 }
26663
26664
26665 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
26666 PyObject *resultobj;
26667 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26668 wxWindow *arg2 = (wxWindow *) 0 ;
26669 int arg3 = (int) (int)-1 ;
26670 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
26671 wxString *arg4 = (wxString *) &arg4_defvalue ;
26672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
26673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
26674 wxSize const &arg6_defvalue = wxDefaultSize ;
26675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
26676 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26677 wxString const &arg8_defvalue = wxPyEmptyString ;
26678 wxString *arg8 = (wxString *) &arg8_defvalue ;
26679 int arg9 = (int) 0 ;
26680 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
26681 wxString *arg10 = (wxString *) &arg10_defvalue ;
26682 bool result;
26683 bool temp4 = False ;
26684 wxPoint temp5 ;
26685 wxSize temp6 ;
26686 bool temp8 = False ;
26687 bool temp10 = False ;
26688 PyObject * obj0 = 0 ;
26689 PyObject * obj1 = 0 ;
26690 PyObject * obj2 = 0 ;
26691 PyObject * obj3 = 0 ;
26692 PyObject * obj4 = 0 ;
26693 PyObject * obj5 = 0 ;
26694 PyObject * obj6 = 0 ;
26695 PyObject * obj7 = 0 ;
26696 PyObject * obj8 = 0 ;
26697 PyObject * obj9 = 0 ;
26698 char *kwnames[] = {
26699 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26700 };
26701
26702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
26703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26705 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
26706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26707 if (obj2) {
26708 arg3 = (int const) SWIG_AsInt(obj2);
26709 if (PyErr_Occurred()) SWIG_fail;
26710 }
26711 if (obj3) {
26712 {
26713 arg4 = wxString_in_helper(obj3);
26714 if (arg4 == NULL) SWIG_fail;
26715 temp4 = True;
26716 }
26717 }
26718 if (obj4) {
26719 {
26720 arg5 = &temp5;
26721 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
26722 }
26723 }
26724 if (obj5) {
26725 {
26726 arg6 = &temp6;
26727 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
26728 }
26729 }
26730 if (obj6) {
26731 arg7 = (long) SWIG_AsLong(obj6);
26732 if (PyErr_Occurred()) SWIG_fail;
26733 }
26734 if (obj7) {
26735 {
26736 arg8 = wxString_in_helper(obj7);
26737 if (arg8 == NULL) SWIG_fail;
26738 temp8 = True;
26739 }
26740 }
26741 if (obj8) {
26742 arg9 = (int) SWIG_AsInt(obj8);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 }
26745 if (obj9) {
26746 {
26747 arg10 = wxString_in_helper(obj9);
26748 if (arg10 == NULL) SWIG_fail;
26749 temp10 = True;
26750 }
26751 }
26752 {
26753 PyThreadState* __tstate = wxPyBeginAllowThreads();
26754 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
26755
26756 wxPyEndAllowThreads(__tstate);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26760 {
26761 if (temp4)
26762 delete arg4;
26763 }
26764 {
26765 if (temp8)
26766 delete arg8;
26767 }
26768 {
26769 if (temp10)
26770 delete arg10;
26771 }
26772 return resultobj;
26773 fail:
26774 {
26775 if (temp4)
26776 delete arg4;
26777 }
26778 {
26779 if (temp8)
26780 delete arg8;
26781 }
26782 {
26783 if (temp10)
26784 delete arg10;
26785 }
26786 return NULL;
26787 }
26788
26789
26790 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26791 PyObject *resultobj;
26792 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26793 wxString *arg2 = 0 ;
26794 bool result;
26795 bool temp2 = False ;
26796 PyObject * obj0 = 0 ;
26797 PyObject * obj1 = 0 ;
26798 char *kwnames[] = {
26799 (char *) "self",(char *) "path", NULL
26800 };
26801
26802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
26803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26805 {
26806 arg2 = wxString_in_helper(obj1);
26807 if (arg2 == NULL) SWIG_fail;
26808 temp2 = True;
26809 }
26810 {
26811 PyThreadState* __tstate = wxPyBeginAllowThreads();
26812 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
26813
26814 wxPyEndAllowThreads(__tstate);
26815 if (PyErr_Occurred()) SWIG_fail;
26816 }
26817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26818 {
26819 if (temp2)
26820 delete arg2;
26821 }
26822 return resultobj;
26823 fail:
26824 {
26825 if (temp2)
26826 delete arg2;
26827 }
26828 return NULL;
26829 }
26830
26831
26832 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26833 PyObject *resultobj;
26834 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26835 wxString result;
26836 PyObject * obj0 = 0 ;
26837 char *kwnames[] = {
26838 (char *) "self", NULL
26839 };
26840
26841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
26842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26844 {
26845 PyThreadState* __tstate = wxPyBeginAllowThreads();
26846 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
26847
26848 wxPyEndAllowThreads(__tstate);
26849 if (PyErr_Occurred()) SWIG_fail;
26850 }
26851 {
26852 #if wxUSE_UNICODE
26853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26854 #else
26855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26856 #endif
26857 }
26858 return resultobj;
26859 fail:
26860 return NULL;
26861 }
26862
26863
26864 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26865 PyObject *resultobj;
26866 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26867 wxString *arg2 = 0 ;
26868 bool temp2 = False ;
26869 PyObject * obj0 = 0 ;
26870 PyObject * obj1 = 0 ;
26871 char *kwnames[] = {
26872 (char *) "self",(char *) "path", NULL
26873 };
26874
26875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
26876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26878 {
26879 arg2 = wxString_in_helper(obj1);
26880 if (arg2 == NULL) SWIG_fail;
26881 temp2 = True;
26882 }
26883 {
26884 PyThreadState* __tstate = wxPyBeginAllowThreads();
26885 (arg1)->SetDefaultPath((wxString const &)*arg2);
26886
26887 wxPyEndAllowThreads(__tstate);
26888 if (PyErr_Occurred()) SWIG_fail;
26889 }
26890 Py_INCREF(Py_None); resultobj = Py_None;
26891 {
26892 if (temp2)
26893 delete arg2;
26894 }
26895 return resultobj;
26896 fail:
26897 {
26898 if (temp2)
26899 delete arg2;
26900 }
26901 return NULL;
26902 }
26903
26904
26905 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26906 PyObject *resultobj;
26907 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26908 wxString result;
26909 PyObject * obj0 = 0 ;
26910 char *kwnames[] = {
26911 (char *) "self", NULL
26912 };
26913
26914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
26915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26917 {
26918 PyThreadState* __tstate = wxPyBeginAllowThreads();
26919 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
26920
26921 wxPyEndAllowThreads(__tstate);
26922 if (PyErr_Occurred()) SWIG_fail;
26923 }
26924 {
26925 #if wxUSE_UNICODE
26926 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26927 #else
26928 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26929 #endif
26930 }
26931 return resultobj;
26932 fail:
26933 return NULL;
26934 }
26935
26936
26937 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
26938 PyObject *resultobj;
26939 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26940 wxString result;
26941 PyObject * obj0 = 0 ;
26942 char *kwnames[] = {
26943 (char *) "self", NULL
26944 };
26945
26946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
26947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26949 {
26950 PyThreadState* __tstate = wxPyBeginAllowThreads();
26951 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
26952
26953 wxPyEndAllowThreads(__tstate);
26954 if (PyErr_Occurred()) SWIG_fail;
26955 }
26956 {
26957 #if wxUSE_UNICODE
26958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26959 #else
26960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26961 #endif
26962 }
26963 return resultobj;
26964 fail:
26965 return NULL;
26966 }
26967
26968
26969 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26970 PyObject *resultobj;
26971 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26972 wxString *arg2 = 0 ;
26973 bool temp2 = False ;
26974 PyObject * obj0 = 0 ;
26975 PyObject * obj1 = 0 ;
26976 char *kwnames[] = {
26977 (char *) "self",(char *) "path", NULL
26978 };
26979
26980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
26981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
26982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26983 {
26984 arg2 = wxString_in_helper(obj1);
26985 if (arg2 == NULL) SWIG_fail;
26986 temp2 = True;
26987 }
26988 {
26989 PyThreadState* __tstate = wxPyBeginAllowThreads();
26990 (arg1)->SetPath((wxString const &)*arg2);
26991
26992 wxPyEndAllowThreads(__tstate);
26993 if (PyErr_Occurred()) SWIG_fail;
26994 }
26995 Py_INCREF(Py_None); resultobj = Py_None;
26996 {
26997 if (temp2)
26998 delete arg2;
26999 }
27000 return resultobj;
27001 fail:
27002 {
27003 if (temp2)
27004 delete arg2;
27005 }
27006 return NULL;
27007 }
27008
27009
27010 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
27011 PyObject *resultobj;
27012 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27013 bool arg2 ;
27014 PyObject * obj0 = 0 ;
27015 PyObject * obj1 = 0 ;
27016 char *kwnames[] = {
27017 (char *) "self",(char *) "show", NULL
27018 };
27019
27020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
27021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27023 arg2 = (bool) SWIG_AsBool(obj1);
27024 if (PyErr_Occurred()) SWIG_fail;
27025 {
27026 PyThreadState* __tstate = wxPyBeginAllowThreads();
27027 (arg1)->ShowHidden(arg2);
27028
27029 wxPyEndAllowThreads(__tstate);
27030 if (PyErr_Occurred()) SWIG_fail;
27031 }
27032 Py_INCREF(Py_None); resultobj = Py_None;
27033 return resultobj;
27034 fail:
27035 return NULL;
27036 }
27037
27038
27039 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
27040 PyObject *resultobj;
27041 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27042 bool result;
27043 PyObject * obj0 = 0 ;
27044 char *kwnames[] = {
27045 (char *) "self", NULL
27046 };
27047
27048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
27049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27051 {
27052 PyThreadState* __tstate = wxPyBeginAllowThreads();
27053 result = (bool)(arg1)->GetShowHidden();
27054
27055 wxPyEndAllowThreads(__tstate);
27056 if (PyErr_Occurred()) SWIG_fail;
27057 }
27058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27059 return resultobj;
27060 fail:
27061 return NULL;
27062 }
27063
27064
27065 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
27066 PyObject *resultobj;
27067 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27068 wxString result;
27069 PyObject * obj0 = 0 ;
27070 char *kwnames[] = {
27071 (char *) "self", NULL
27072 };
27073
27074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
27075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27077 {
27078 PyThreadState* __tstate = wxPyBeginAllowThreads();
27079 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
27080
27081 wxPyEndAllowThreads(__tstate);
27082 if (PyErr_Occurred()) SWIG_fail;
27083 }
27084 {
27085 #if wxUSE_UNICODE
27086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27087 #else
27088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27089 #endif
27090 }
27091 return resultobj;
27092 fail:
27093 return NULL;
27094 }
27095
27096
27097 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
27098 PyObject *resultobj;
27099 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27100 wxString *arg2 = 0 ;
27101 bool temp2 = False ;
27102 PyObject * obj0 = 0 ;
27103 PyObject * obj1 = 0 ;
27104 char *kwnames[] = {
27105 (char *) "self",(char *) "filter", NULL
27106 };
27107
27108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
27109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27111 {
27112 arg2 = wxString_in_helper(obj1);
27113 if (arg2 == NULL) SWIG_fail;
27114 temp2 = True;
27115 }
27116 {
27117 PyThreadState* __tstate = wxPyBeginAllowThreads();
27118 (arg1)->SetFilter((wxString const &)*arg2);
27119
27120 wxPyEndAllowThreads(__tstate);
27121 if (PyErr_Occurred()) SWIG_fail;
27122 }
27123 Py_INCREF(Py_None); resultobj = Py_None;
27124 {
27125 if (temp2)
27126 delete arg2;
27127 }
27128 return resultobj;
27129 fail:
27130 {
27131 if (temp2)
27132 delete arg2;
27133 }
27134 return NULL;
27135 }
27136
27137
27138 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
27139 PyObject *resultobj;
27140 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27141 int result;
27142 PyObject * obj0 = 0 ;
27143 char *kwnames[] = {
27144 (char *) "self", NULL
27145 };
27146
27147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
27148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27150 {
27151 PyThreadState* __tstate = wxPyBeginAllowThreads();
27152 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
27153
27154 wxPyEndAllowThreads(__tstate);
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 resultobj = SWIG_FromInt((int)result);
27158 return resultobj;
27159 fail:
27160 return NULL;
27161 }
27162
27163
27164 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
27165 PyObject *resultobj;
27166 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27167 int arg2 ;
27168 PyObject * obj0 = 0 ;
27169 PyObject * obj1 = 0 ;
27170 char *kwnames[] = {
27171 (char *) "self",(char *) "n", NULL
27172 };
27173
27174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
27175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27177 arg2 = (int) SWIG_AsInt(obj1);
27178 if (PyErr_Occurred()) SWIG_fail;
27179 {
27180 PyThreadState* __tstate = wxPyBeginAllowThreads();
27181 (arg1)->SetFilterIndex(arg2);
27182
27183 wxPyEndAllowThreads(__tstate);
27184 if (PyErr_Occurred()) SWIG_fail;
27185 }
27186 Py_INCREF(Py_None); resultobj = Py_None;
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
27194 PyObject *resultobj;
27195 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27196 wxTreeItemId result;
27197 PyObject * obj0 = 0 ;
27198 char *kwnames[] = {
27199 (char *) "self", NULL
27200 };
27201
27202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
27203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27205 {
27206 PyThreadState* __tstate = wxPyBeginAllowThreads();
27207 result = (arg1)->GetRootId();
27208
27209 wxPyEndAllowThreads(__tstate);
27210 if (PyErr_Occurred()) SWIG_fail;
27211 }
27212 {
27213 wxTreeItemId * resultptr;
27214 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27215 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27216 }
27217 return resultobj;
27218 fail:
27219 return NULL;
27220 }
27221
27222
27223 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27224 PyObject *resultobj;
27225 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27226 wxPyTreeCtrl *result;
27227 PyObject * obj0 = 0 ;
27228 char *kwnames[] = {
27229 (char *) "self", NULL
27230 };
27231
27232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
27233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27235 {
27236 PyThreadState* __tstate = wxPyBeginAllowThreads();
27237 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
27238
27239 wxPyEndAllowThreads(__tstate);
27240 if (PyErr_Occurred()) SWIG_fail;
27241 }
27242 {
27243 resultobj = wxPyMake_wxObject(result);
27244 }
27245 return resultobj;
27246 fail:
27247 return NULL;
27248 }
27249
27250
27251 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27252 PyObject *resultobj;
27253 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27254 wxDirFilterListCtrl *result;
27255 PyObject * obj0 = 0 ;
27256 char *kwnames[] = {
27257 (char *) "self", NULL
27258 };
27259
27260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
27261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27263 {
27264 PyThreadState* __tstate = wxPyBeginAllowThreads();
27265 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
27266
27267 wxPyEndAllowThreads(__tstate);
27268 if (PyErr_Occurred()) SWIG_fail;
27269 }
27270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
27271 return resultobj;
27272 fail:
27273 return NULL;
27274 }
27275
27276
27277 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
27278 PyObject *resultobj;
27279 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27280 wxTreeItemId arg2 ;
27281 wxString *arg3 = 0 ;
27282 bool *arg4 = 0 ;
27283 wxTreeItemId result;
27284 wxTreeItemId *argp2 ;
27285 bool temp3 = False ;
27286 bool temp4 ;
27287 PyObject * obj0 = 0 ;
27288 PyObject * obj1 = 0 ;
27289 PyObject * obj2 = 0 ;
27290 char *kwnames[] = {
27291 (char *) "self",(char *) "parentId",(char *) "path", NULL
27292 };
27293
27294 arg4 = &temp4;
27295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27298 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
27299 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
27300 arg2 = *argp2;
27301 {
27302 arg3 = wxString_in_helper(obj2);
27303 if (arg3 == NULL) SWIG_fail;
27304 temp3 = True;
27305 }
27306 {
27307 PyThreadState* __tstate = wxPyBeginAllowThreads();
27308 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
27309
27310 wxPyEndAllowThreads(__tstate);
27311 if (PyErr_Occurred()) SWIG_fail;
27312 }
27313 {
27314 wxTreeItemId * resultptr;
27315 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27316 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27317 }
27318 {
27319 PyObject *o = PyInt_FromLong((long) (*arg4));
27320 resultobj = t_output_helper(resultobj,o);
27321 }
27322 {
27323 if (temp3)
27324 delete arg3;
27325 }
27326 return resultobj;
27327 fail:
27328 {
27329 if (temp3)
27330 delete arg3;
27331 }
27332 return NULL;
27333 }
27334
27335
27336 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
27337 PyObject *resultobj;
27338 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27339 PyObject * obj0 = 0 ;
27340 char *kwnames[] = {
27341 (char *) "self", NULL
27342 };
27343
27344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
27345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27347 {
27348 PyThreadState* __tstate = wxPyBeginAllowThreads();
27349 (arg1)->DoResize();
27350
27351 wxPyEndAllowThreads(__tstate);
27352 if (PyErr_Occurred()) SWIG_fail;
27353 }
27354 Py_INCREF(Py_None); resultobj = Py_None;
27355 return resultobj;
27356 fail:
27357 return NULL;
27358 }
27359
27360
27361 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
27362 PyObject *resultobj;
27363 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27364 PyObject * obj0 = 0 ;
27365 char *kwnames[] = {
27366 (char *) "self", NULL
27367 };
27368
27369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
27370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27372 {
27373 PyThreadState* __tstate = wxPyBeginAllowThreads();
27374 (arg1)->ReCreateTree();
27375
27376 wxPyEndAllowThreads(__tstate);
27377 if (PyErr_Occurred()) SWIG_fail;
27378 }
27379 Py_INCREF(Py_None); resultobj = Py_None;
27380 return resultobj;
27381 fail:
27382 return NULL;
27383 }
27384
27385
27386 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
27387 PyObject *obj;
27388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27389 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
27390 Py_INCREF(obj);
27391 return Py_BuildValue((char *)"");
27392 }
27393 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27394 PyObject *resultobj;
27395 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27396 int arg2 = (int) (int)-1 ;
27397 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27398 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27399 wxSize const &arg4_defvalue = wxDefaultSize ;
27400 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27401 long arg5 = (long) 0 ;
27402 wxDirFilterListCtrl *result;
27403 wxPoint temp3 ;
27404 wxSize temp4 ;
27405 PyObject * obj0 = 0 ;
27406 PyObject * obj1 = 0 ;
27407 PyObject * obj2 = 0 ;
27408 PyObject * obj3 = 0 ;
27409 PyObject * obj4 = 0 ;
27410 char *kwnames[] = {
27411 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27412 };
27413
27414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27417 if (obj1) {
27418 arg2 = (int const) SWIG_AsInt(obj1);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 if (obj2) {
27422 {
27423 arg3 = &temp3;
27424 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27425 }
27426 }
27427 if (obj3) {
27428 {
27429 arg4 = &temp4;
27430 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27431 }
27432 }
27433 if (obj4) {
27434 arg5 = (long) SWIG_AsLong(obj4);
27435 if (PyErr_Occurred()) SWIG_fail;
27436 }
27437 {
27438 PyThreadState* __tstate = wxPyBeginAllowThreads();
27439 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
27440
27441 wxPyEndAllowThreads(__tstate);
27442 if (PyErr_Occurred()) SWIG_fail;
27443 }
27444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
27445 return resultobj;
27446 fail:
27447 return NULL;
27448 }
27449
27450
27451 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27452 PyObject *resultobj;
27453 wxDirFilterListCtrl *result;
27454 char *kwnames[] = {
27455 NULL
27456 };
27457
27458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
27459 {
27460 PyThreadState* __tstate = wxPyBeginAllowThreads();
27461 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
27462
27463 wxPyEndAllowThreads(__tstate);
27464 if (PyErr_Occurred()) SWIG_fail;
27465 }
27466 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
27467 return resultobj;
27468 fail:
27469 return NULL;
27470 }
27471
27472
27473 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27474 PyObject *resultobj;
27475 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27476 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
27477 int arg3 = (int) (int)-1 ;
27478 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27479 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27480 wxSize const &arg5_defvalue = wxDefaultSize ;
27481 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27482 long arg6 = (long) 0 ;
27483 bool result;
27484 wxPoint temp4 ;
27485 wxSize temp5 ;
27486 PyObject * obj0 = 0 ;
27487 PyObject * obj1 = 0 ;
27488 PyObject * obj2 = 0 ;
27489 PyObject * obj3 = 0 ;
27490 PyObject * obj4 = 0 ;
27491 PyObject * obj5 = 0 ;
27492 char *kwnames[] = {
27493 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27494 };
27495
27496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
27498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
27500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27501 if (obj2) {
27502 arg3 = (int const) SWIG_AsInt(obj2);
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 if (obj3) {
27506 {
27507 arg4 = &temp4;
27508 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27509 }
27510 }
27511 if (obj4) {
27512 {
27513 arg5 = &temp5;
27514 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27515 }
27516 }
27517 if (obj5) {
27518 arg6 = (long) SWIG_AsLong(obj5);
27519 if (PyErr_Occurred()) SWIG_fail;
27520 }
27521 {
27522 PyThreadState* __tstate = wxPyBeginAllowThreads();
27523 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
27524
27525 wxPyEndAllowThreads(__tstate);
27526 if (PyErr_Occurred()) SWIG_fail;
27527 }
27528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27529 return resultobj;
27530 fail:
27531 return NULL;
27532 }
27533
27534
27535 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
27536 PyObject *resultobj;
27537 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27538 wxString *arg2 = 0 ;
27539 int arg3 ;
27540 bool temp2 = False ;
27541 PyObject * obj0 = 0 ;
27542 PyObject * obj1 = 0 ;
27543 PyObject * obj2 = 0 ;
27544 char *kwnames[] = {
27545 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
27546 };
27547
27548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
27549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
27550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27551 {
27552 arg2 = wxString_in_helper(obj1);
27553 if (arg2 == NULL) SWIG_fail;
27554 temp2 = True;
27555 }
27556 arg3 = (int) SWIG_AsInt(obj2);
27557 if (PyErr_Occurred()) SWIG_fail;
27558 {
27559 PyThreadState* __tstate = wxPyBeginAllowThreads();
27560 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
27561
27562 wxPyEndAllowThreads(__tstate);
27563 if (PyErr_Occurred()) SWIG_fail;
27564 }
27565 Py_INCREF(Py_None); resultobj = Py_None;
27566 {
27567 if (temp2)
27568 delete arg2;
27569 }
27570 return resultobj;
27571 fail:
27572 {
27573 if (temp2)
27574 delete arg2;
27575 }
27576 return NULL;
27577 }
27578
27579
27580 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
27581 PyObject *obj;
27582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27583 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
27584 Py_INCREF(obj);
27585 return Py_BuildValue((char *)"");
27586 }
27587 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27588 PyObject *resultobj;
27589 wxWindow *arg1 = (wxWindow *) 0 ;
27590 int arg2 ;
27591 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27592 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27593 wxSize const &arg4_defvalue = wxDefaultSize ;
27594 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27595 long arg5 = (long) 0 ;
27596 wxValidator const &arg6_defvalue = wxDefaultValidator ;
27597 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
27598 wxString const &arg7_defvalue = wxPyControlNameStr ;
27599 wxString *arg7 = (wxString *) &arg7_defvalue ;
27600 wxPyControl *result;
27601 wxPoint temp3 ;
27602 wxSize temp4 ;
27603 bool temp7 = False ;
27604 PyObject * obj0 = 0 ;
27605 PyObject * obj1 = 0 ;
27606 PyObject * obj2 = 0 ;
27607 PyObject * obj3 = 0 ;
27608 PyObject * obj4 = 0 ;
27609 PyObject * obj5 = 0 ;
27610 PyObject * obj6 = 0 ;
27611 char *kwnames[] = {
27612 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
27613 };
27614
27615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27618 arg2 = (int const) SWIG_AsInt(obj1);
27619 if (PyErr_Occurred()) SWIG_fail;
27620 if (obj2) {
27621 {
27622 arg3 = &temp3;
27623 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27624 }
27625 }
27626 if (obj3) {
27627 {
27628 arg4 = &temp4;
27629 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27630 }
27631 }
27632 if (obj4) {
27633 arg5 = (long) SWIG_AsLong(obj4);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 if (obj5) {
27637 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
27638 SWIG_POINTER_EXCEPTION | 0)) == -1)
27639 SWIG_fail;
27640 if (arg6 == NULL) {
27641 PyErr_SetString(PyExc_TypeError,"null reference");
27642 SWIG_fail;
27643 }
27644 }
27645 if (obj6) {
27646 {
27647 arg7 = wxString_in_helper(obj6);
27648 if (arg7 == NULL) SWIG_fail;
27649 temp7 = True;
27650 }
27651 }
27652 {
27653 PyThreadState* __tstate = wxPyBeginAllowThreads();
27654 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
27655
27656 wxPyEndAllowThreads(__tstate);
27657 if (PyErr_Occurred()) SWIG_fail;
27658 }
27659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
27660 {
27661 if (temp7)
27662 delete arg7;
27663 }
27664 return resultobj;
27665 fail:
27666 {
27667 if (temp7)
27668 delete arg7;
27669 }
27670 return NULL;
27671 }
27672
27673
27674 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
27675 PyObject *resultobj;
27676 wxPyControl *arg1 = (wxPyControl *) 0 ;
27677 PyObject *arg2 = (PyObject *) 0 ;
27678 PyObject *arg3 = (PyObject *) 0 ;
27679 PyObject * obj0 = 0 ;
27680 PyObject * obj1 = 0 ;
27681 PyObject * obj2 = 0 ;
27682 char *kwnames[] = {
27683 (char *) "self",(char *) "self",(char *) "_class", NULL
27684 };
27685
27686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27689 arg2 = obj1;
27690 arg3 = obj2;
27691 {
27692 PyThreadState* __tstate = wxPyBeginAllowThreads();
27693 (arg1)->_setCallbackInfo(arg2,arg3);
27694
27695 wxPyEndAllowThreads(__tstate);
27696 if (PyErr_Occurred()) SWIG_fail;
27697 }
27698 Py_INCREF(Py_None); resultobj = Py_None;
27699 return resultobj;
27700 fail:
27701 return NULL;
27702 }
27703
27704
27705 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27706 PyObject *resultobj;
27707 wxPyControl *arg1 = (wxPyControl *) 0 ;
27708 int arg2 ;
27709 int arg3 ;
27710 int arg4 ;
27711 int arg5 ;
27712 PyObject * obj0 = 0 ;
27713 PyObject * obj1 = 0 ;
27714 PyObject * obj2 = 0 ;
27715 PyObject * obj3 = 0 ;
27716 PyObject * obj4 = 0 ;
27717 char *kwnames[] = {
27718 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27719 };
27720
27721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27724 arg2 = (int) SWIG_AsInt(obj1);
27725 if (PyErr_Occurred()) SWIG_fail;
27726 arg3 = (int) SWIG_AsInt(obj2);
27727 if (PyErr_Occurred()) SWIG_fail;
27728 arg4 = (int) SWIG_AsInt(obj3);
27729 if (PyErr_Occurred()) SWIG_fail;
27730 arg5 = (int) SWIG_AsInt(obj4);
27731 if (PyErr_Occurred()) SWIG_fail;
27732 {
27733 PyThreadState* __tstate = wxPyBeginAllowThreads();
27734 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
27735
27736 wxPyEndAllowThreads(__tstate);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 Py_INCREF(Py_None); resultobj = Py_None;
27740 return resultobj;
27741 fail:
27742 return NULL;
27743 }
27744
27745
27746 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27747 PyObject *resultobj;
27748 wxPyControl *arg1 = (wxPyControl *) 0 ;
27749 int arg2 ;
27750 int arg3 ;
27751 int arg4 ;
27752 int arg5 ;
27753 int arg6 = (int) wxSIZE_AUTO ;
27754 PyObject * obj0 = 0 ;
27755 PyObject * obj1 = 0 ;
27756 PyObject * obj2 = 0 ;
27757 PyObject * obj3 = 0 ;
27758 PyObject * obj4 = 0 ;
27759 PyObject * obj5 = 0 ;
27760 char *kwnames[] = {
27761 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
27762 };
27763
27764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27767 arg2 = (int) SWIG_AsInt(obj1);
27768 if (PyErr_Occurred()) SWIG_fail;
27769 arg3 = (int) SWIG_AsInt(obj2);
27770 if (PyErr_Occurred()) SWIG_fail;
27771 arg4 = (int) SWIG_AsInt(obj3);
27772 if (PyErr_Occurred()) SWIG_fail;
27773 arg5 = (int) SWIG_AsInt(obj4);
27774 if (PyErr_Occurred()) SWIG_fail;
27775 if (obj5) {
27776 arg6 = (int) SWIG_AsInt(obj5);
27777 if (PyErr_Occurred()) SWIG_fail;
27778 }
27779 {
27780 PyThreadState* __tstate = wxPyBeginAllowThreads();
27781 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
27782
27783 wxPyEndAllowThreads(__tstate);
27784 if (PyErr_Occurred()) SWIG_fail;
27785 }
27786 Py_INCREF(Py_None); resultobj = Py_None;
27787 return resultobj;
27788 fail:
27789 return NULL;
27790 }
27791
27792
27793 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27794 PyObject *resultobj;
27795 wxPyControl *arg1 = (wxPyControl *) 0 ;
27796 int arg2 ;
27797 int arg3 ;
27798 PyObject * obj0 = 0 ;
27799 PyObject * obj1 = 0 ;
27800 PyObject * obj2 = 0 ;
27801 char *kwnames[] = {
27802 (char *) "self",(char *) "width",(char *) "height", NULL
27803 };
27804
27805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
27806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27808 arg2 = (int) SWIG_AsInt(obj1);
27809 if (PyErr_Occurred()) SWIG_fail;
27810 arg3 = (int) SWIG_AsInt(obj2);
27811 if (PyErr_Occurred()) SWIG_fail;
27812 {
27813 PyThreadState* __tstate = wxPyBeginAllowThreads();
27814 (arg1)->base_DoSetClientSize(arg2,arg3);
27815
27816 wxPyEndAllowThreads(__tstate);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 Py_INCREF(Py_None); resultobj = Py_None;
27820 return resultobj;
27821 fail:
27822 return NULL;
27823 }
27824
27825
27826 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27827 PyObject *resultobj;
27828 wxPyControl *arg1 = (wxPyControl *) 0 ;
27829 int arg2 ;
27830 int arg3 ;
27831 PyObject * obj0 = 0 ;
27832 PyObject * obj1 = 0 ;
27833 PyObject * obj2 = 0 ;
27834 char *kwnames[] = {
27835 (char *) "self",(char *) "x",(char *) "y", NULL
27836 };
27837
27838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
27839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27841 arg2 = (int) SWIG_AsInt(obj1);
27842 if (PyErr_Occurred()) SWIG_fail;
27843 arg3 = (int) SWIG_AsInt(obj2);
27844 if (PyErr_Occurred()) SWIG_fail;
27845 {
27846 PyThreadState* __tstate = wxPyBeginAllowThreads();
27847 (arg1)->base_DoSetVirtualSize(arg2,arg3);
27848
27849 wxPyEndAllowThreads(__tstate);
27850 if (PyErr_Occurred()) SWIG_fail;
27851 }
27852 Py_INCREF(Py_None); resultobj = Py_None;
27853 return resultobj;
27854 fail:
27855 return NULL;
27856 }
27857
27858
27859 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27860 PyObject *resultobj;
27861 wxPyControl *arg1 = (wxPyControl *) 0 ;
27862 int *arg2 = (int *) 0 ;
27863 int *arg3 = (int *) 0 ;
27864 int temp2 ;
27865 int temp3 ;
27866 PyObject * obj0 = 0 ;
27867 char *kwnames[] = {
27868 (char *) "self", NULL
27869 };
27870
27871 arg2 = &temp2;
27872 arg3 = &temp3;
27873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
27874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27876 {
27877 PyThreadState* __tstate = wxPyBeginAllowThreads();
27878 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
27879
27880 wxPyEndAllowThreads(__tstate);
27881 if (PyErr_Occurred()) SWIG_fail;
27882 }
27883 Py_INCREF(Py_None); resultobj = Py_None;
27884 {
27885 PyObject *o = PyInt_FromLong((long) (*arg2));
27886 resultobj = t_output_helper(resultobj,o);
27887 }
27888 {
27889 PyObject *o = PyInt_FromLong((long) (*arg3));
27890 resultobj = t_output_helper(resultobj,o);
27891 }
27892 return resultobj;
27893 fail:
27894 return NULL;
27895 }
27896
27897
27898 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27899 PyObject *resultobj;
27900 wxPyControl *arg1 = (wxPyControl *) 0 ;
27901 int *arg2 = (int *) 0 ;
27902 int *arg3 = (int *) 0 ;
27903 int temp2 ;
27904 int temp3 ;
27905 PyObject * obj0 = 0 ;
27906 char *kwnames[] = {
27907 (char *) "self", NULL
27908 };
27909
27910 arg2 = &temp2;
27911 arg3 = &temp3;
27912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
27913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27915 {
27916 PyThreadState* __tstate = wxPyBeginAllowThreads();
27917 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
27918
27919 wxPyEndAllowThreads(__tstate);
27920 if (PyErr_Occurred()) SWIG_fail;
27921 }
27922 Py_INCREF(Py_None); resultobj = Py_None;
27923 {
27924 PyObject *o = PyInt_FromLong((long) (*arg2));
27925 resultobj = t_output_helper(resultobj,o);
27926 }
27927 {
27928 PyObject *o = PyInt_FromLong((long) (*arg3));
27929 resultobj = t_output_helper(resultobj,o);
27930 }
27931 return resultobj;
27932 fail:
27933 return NULL;
27934 }
27935
27936
27937 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
27938 PyObject *resultobj;
27939 wxPyControl *arg1 = (wxPyControl *) 0 ;
27940 int *arg2 = (int *) 0 ;
27941 int *arg3 = (int *) 0 ;
27942 int temp2 ;
27943 int temp3 ;
27944 PyObject * obj0 = 0 ;
27945 char *kwnames[] = {
27946 (char *) "self", NULL
27947 };
27948
27949 arg2 = &temp2;
27950 arg3 = &temp3;
27951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
27952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27954 {
27955 PyThreadState* __tstate = wxPyBeginAllowThreads();
27956 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
27957
27958 wxPyEndAllowThreads(__tstate);
27959 if (PyErr_Occurred()) SWIG_fail;
27960 }
27961 Py_INCREF(Py_None); resultobj = Py_None;
27962 {
27963 PyObject *o = PyInt_FromLong((long) (*arg2));
27964 resultobj = t_output_helper(resultobj,o);
27965 }
27966 {
27967 PyObject *o = PyInt_FromLong((long) (*arg3));
27968 resultobj = t_output_helper(resultobj,o);
27969 }
27970 return resultobj;
27971 fail:
27972 return NULL;
27973 }
27974
27975
27976 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27977 PyObject *resultobj;
27978 wxPyControl *arg1 = (wxPyControl *) 0 ;
27979 wxSize result;
27980 PyObject * obj0 = 0 ;
27981 char *kwnames[] = {
27982 (char *) "self", NULL
27983 };
27984
27985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
27986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
27987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27988 {
27989 PyThreadState* __tstate = wxPyBeginAllowThreads();
27990 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
27991
27992 wxPyEndAllowThreads(__tstate);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 {
27996 wxSize * resultptr;
27997 resultptr = new wxSize((wxSize &) result);
27998 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
27999 }
28000 return resultobj;
28001 fail:
28002 return NULL;
28003 }
28004
28005
28006 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28007 PyObject *resultobj;
28008 wxPyControl *arg1 = (wxPyControl *) 0 ;
28009 wxSize result;
28010 PyObject * obj0 = 0 ;
28011 char *kwnames[] = {
28012 (char *) "self", NULL
28013 };
28014
28015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
28016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28018 {
28019 PyThreadState* __tstate = wxPyBeginAllowThreads();
28020 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
28021
28022 wxPyEndAllowThreads(__tstate);
28023 if (PyErr_Occurred()) SWIG_fail;
28024 }
28025 {
28026 wxSize * resultptr;
28027 resultptr = new wxSize((wxSize &) result);
28028 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28029 }
28030 return resultobj;
28031 fail:
28032 return NULL;
28033 }
28034
28035
28036 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
28037 PyObject *resultobj;
28038 wxPyControl *arg1 = (wxPyControl *) 0 ;
28039 PyObject * obj0 = 0 ;
28040 char *kwnames[] = {
28041 (char *) "self", NULL
28042 };
28043
28044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
28045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28047 {
28048 PyThreadState* __tstate = wxPyBeginAllowThreads();
28049 (arg1)->base_InitDialog();
28050
28051 wxPyEndAllowThreads(__tstate);
28052 if (PyErr_Occurred()) SWIG_fail;
28053 }
28054 Py_INCREF(Py_None); resultobj = Py_None;
28055 return resultobj;
28056 fail:
28057 return NULL;
28058 }
28059
28060
28061 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28062 PyObject *resultobj;
28063 wxPyControl *arg1 = (wxPyControl *) 0 ;
28064 bool result;
28065 PyObject * obj0 = 0 ;
28066 char *kwnames[] = {
28067 (char *) "self", NULL
28068 };
28069
28070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
28071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28073 {
28074 PyThreadState* __tstate = wxPyBeginAllowThreads();
28075 result = (bool)(arg1)->base_TransferDataToWindow();
28076
28077 wxPyEndAllowThreads(__tstate);
28078 if (PyErr_Occurred()) SWIG_fail;
28079 }
28080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28081 return resultobj;
28082 fail:
28083 return NULL;
28084 }
28085
28086
28087 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28088 PyObject *resultobj;
28089 wxPyControl *arg1 = (wxPyControl *) 0 ;
28090 bool result;
28091 PyObject * obj0 = 0 ;
28092 char *kwnames[] = {
28093 (char *) "self", NULL
28094 };
28095
28096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
28097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28099 {
28100 PyThreadState* __tstate = wxPyBeginAllowThreads();
28101 result = (bool)(arg1)->base_TransferDataFromWindow();
28102
28103 wxPyEndAllowThreads(__tstate);
28104 if (PyErr_Occurred()) SWIG_fail;
28105 }
28106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28107 return resultobj;
28108 fail:
28109 return NULL;
28110 }
28111
28112
28113 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28114 PyObject *resultobj;
28115 wxPyControl *arg1 = (wxPyControl *) 0 ;
28116 bool result;
28117 PyObject * obj0 = 0 ;
28118 char *kwnames[] = {
28119 (char *) "self", NULL
28120 };
28121
28122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
28123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28125 {
28126 PyThreadState* __tstate = wxPyBeginAllowThreads();
28127 result = (bool)(arg1)->base_Validate();
28128
28129 wxPyEndAllowThreads(__tstate);
28130 if (PyErr_Occurred()) SWIG_fail;
28131 }
28132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28133 return resultobj;
28134 fail:
28135 return NULL;
28136 }
28137
28138
28139 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
28140 PyObject *resultobj;
28141 wxPyControl *arg1 = (wxPyControl *) 0 ;
28142 bool result;
28143 PyObject * obj0 = 0 ;
28144 char *kwnames[] = {
28145 (char *) "self", NULL
28146 };
28147
28148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
28149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28151 {
28152 PyThreadState* __tstate = wxPyBeginAllowThreads();
28153 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
28154
28155 wxPyEndAllowThreads(__tstate);
28156 if (PyErr_Occurred()) SWIG_fail;
28157 }
28158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28159 return resultobj;
28160 fail:
28161 return NULL;
28162 }
28163
28164
28165 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
28166 PyObject *resultobj;
28167 wxPyControl *arg1 = (wxPyControl *) 0 ;
28168 bool result;
28169 PyObject * obj0 = 0 ;
28170 char *kwnames[] = {
28171 (char *) "self", NULL
28172 };
28173
28174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
28175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28177 {
28178 PyThreadState* __tstate = wxPyBeginAllowThreads();
28179 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
28180
28181 wxPyEndAllowThreads(__tstate);
28182 if (PyErr_Occurred()) SWIG_fail;
28183 }
28184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28185 return resultobj;
28186 fail:
28187 return NULL;
28188 }
28189
28190
28191 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28192 PyObject *resultobj;
28193 wxPyControl *arg1 = (wxPyControl *) 0 ;
28194 wxSize result;
28195 PyObject * obj0 = 0 ;
28196 char *kwnames[] = {
28197 (char *) "self", NULL
28198 };
28199
28200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
28201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28203 {
28204 PyThreadState* __tstate = wxPyBeginAllowThreads();
28205 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
28206
28207 wxPyEndAllowThreads(__tstate);
28208 if (PyErr_Occurred()) SWIG_fail;
28209 }
28210 {
28211 wxSize * resultptr;
28212 resultptr = new wxSize((wxSize &) result);
28213 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28214 }
28215 return resultobj;
28216 fail:
28217 return NULL;
28218 }
28219
28220
28221 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28222 PyObject *resultobj;
28223 wxPyControl *arg1 = (wxPyControl *) 0 ;
28224 wxWindow *arg2 = (wxWindow *) 0 ;
28225 PyObject * obj0 = 0 ;
28226 PyObject * obj1 = 0 ;
28227 char *kwnames[] = {
28228 (char *) "self",(char *) "child", NULL
28229 };
28230
28231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
28232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28236 {
28237 PyThreadState* __tstate = wxPyBeginAllowThreads();
28238 (arg1)->base_AddChild(arg2);
28239
28240 wxPyEndAllowThreads(__tstate);
28241 if (PyErr_Occurred()) SWIG_fail;
28242 }
28243 Py_INCREF(Py_None); resultobj = Py_None;
28244 return resultobj;
28245 fail:
28246 return NULL;
28247 }
28248
28249
28250 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28251 PyObject *resultobj;
28252 wxPyControl *arg1 = (wxPyControl *) 0 ;
28253 wxWindow *arg2 = (wxWindow *) 0 ;
28254 PyObject * obj0 = 0 ;
28255 PyObject * obj1 = 0 ;
28256 char *kwnames[] = {
28257 (char *) "self",(char *) "child", NULL
28258 };
28259
28260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
28261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28263 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28265 {
28266 PyThreadState* __tstate = wxPyBeginAllowThreads();
28267 (arg1)->base_RemoveChild(arg2);
28268
28269 wxPyEndAllowThreads(__tstate);
28270 if (PyErr_Occurred()) SWIG_fail;
28271 }
28272 Py_INCREF(Py_None); resultobj = Py_None;
28273 return resultobj;
28274 fail:
28275 return NULL;
28276 }
28277
28278
28279 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
28280 PyObject *obj;
28281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28282 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
28283 Py_INCREF(obj);
28284 return Py_BuildValue((char *)"");
28285 }
28286 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
28287 PyObject *resultobj;
28288 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28289 int arg2 = (int) 0 ;
28290 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28291 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28292 wxHelpEvent *result;
28293 wxPoint temp3 ;
28294 PyObject * obj0 = 0 ;
28295 PyObject * obj1 = 0 ;
28296 PyObject * obj2 = 0 ;
28297 char *kwnames[] = {
28298 (char *) "type",(char *) "winid",(char *) "pt", NULL
28299 };
28300
28301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
28302 if (obj0) {
28303 arg1 = (wxEventType) SWIG_AsInt(obj0);
28304 if (PyErr_Occurred()) SWIG_fail;
28305 }
28306 if (obj1) {
28307 arg2 = (int) SWIG_AsInt(obj1);
28308 if (PyErr_Occurred()) SWIG_fail;
28309 }
28310 if (obj2) {
28311 {
28312 arg3 = &temp3;
28313 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28314 }
28315 }
28316 {
28317 PyThreadState* __tstate = wxPyBeginAllowThreads();
28318 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
28319
28320 wxPyEndAllowThreads(__tstate);
28321 if (PyErr_Occurred()) SWIG_fail;
28322 }
28323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
28324 return resultobj;
28325 fail:
28326 return NULL;
28327 }
28328
28329
28330 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28331 PyObject *resultobj;
28332 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28333 wxPoint result;
28334 PyObject * obj0 = 0 ;
28335 char *kwnames[] = {
28336 (char *) "self", NULL
28337 };
28338
28339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
28340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28342 {
28343 PyThreadState* __tstate = wxPyBeginAllowThreads();
28344 result = ((wxHelpEvent const *)arg1)->GetPosition();
28345
28346 wxPyEndAllowThreads(__tstate);
28347 if (PyErr_Occurred()) SWIG_fail;
28348 }
28349 {
28350 wxPoint * resultptr;
28351 resultptr = new wxPoint((wxPoint &) result);
28352 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
28353 }
28354 return resultobj;
28355 fail:
28356 return NULL;
28357 }
28358
28359
28360 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28361 PyObject *resultobj;
28362 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28363 wxPoint *arg2 = 0 ;
28364 wxPoint temp2 ;
28365 PyObject * obj0 = 0 ;
28366 PyObject * obj1 = 0 ;
28367 char *kwnames[] = {
28368 (char *) "self",(char *) "pos", NULL
28369 };
28370
28371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
28372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28374 {
28375 arg2 = &temp2;
28376 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28377 }
28378 {
28379 PyThreadState* __tstate = wxPyBeginAllowThreads();
28380 (arg1)->SetPosition((wxPoint const &)*arg2);
28381
28382 wxPyEndAllowThreads(__tstate);
28383 if (PyErr_Occurred()) SWIG_fail;
28384 }
28385 Py_INCREF(Py_None); resultobj = Py_None;
28386 return resultobj;
28387 fail:
28388 return NULL;
28389 }
28390
28391
28392 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
28393 PyObject *resultobj;
28394 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28395 wxString *result;
28396 PyObject * obj0 = 0 ;
28397 char *kwnames[] = {
28398 (char *) "self", NULL
28399 };
28400
28401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
28402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28404 {
28405 PyThreadState* __tstate = wxPyBeginAllowThreads();
28406 {
28407 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
28408 result = (wxString *) &_result_ref;
28409 }
28410
28411 wxPyEndAllowThreads(__tstate);
28412 if (PyErr_Occurred()) SWIG_fail;
28413 }
28414 {
28415 #if wxUSE_UNICODE
28416 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28417 #else
28418 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28419 #endif
28420 }
28421 return resultobj;
28422 fail:
28423 return NULL;
28424 }
28425
28426
28427 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
28428 PyObject *resultobj;
28429 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28430 wxString *arg2 = 0 ;
28431 bool temp2 = False ;
28432 PyObject * obj0 = 0 ;
28433 PyObject * obj1 = 0 ;
28434 char *kwnames[] = {
28435 (char *) "self",(char *) "link", NULL
28436 };
28437
28438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
28439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28441 {
28442 arg2 = wxString_in_helper(obj1);
28443 if (arg2 == NULL) SWIG_fail;
28444 temp2 = True;
28445 }
28446 {
28447 PyThreadState* __tstate = wxPyBeginAllowThreads();
28448 (arg1)->SetLink((wxString const &)*arg2);
28449
28450 wxPyEndAllowThreads(__tstate);
28451 if (PyErr_Occurred()) SWIG_fail;
28452 }
28453 Py_INCREF(Py_None); resultobj = Py_None;
28454 {
28455 if (temp2)
28456 delete arg2;
28457 }
28458 return resultobj;
28459 fail:
28460 {
28461 if (temp2)
28462 delete arg2;
28463 }
28464 return NULL;
28465 }
28466
28467
28468 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
28469 PyObject *resultobj;
28470 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28471 wxString *result;
28472 PyObject * obj0 = 0 ;
28473 char *kwnames[] = {
28474 (char *) "self", NULL
28475 };
28476
28477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
28478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28480 {
28481 PyThreadState* __tstate = wxPyBeginAllowThreads();
28482 {
28483 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
28484 result = (wxString *) &_result_ref;
28485 }
28486
28487 wxPyEndAllowThreads(__tstate);
28488 if (PyErr_Occurred()) SWIG_fail;
28489 }
28490 {
28491 #if wxUSE_UNICODE
28492 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28493 #else
28494 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28495 #endif
28496 }
28497 return resultobj;
28498 fail:
28499 return NULL;
28500 }
28501
28502
28503 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
28504 PyObject *resultobj;
28505 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28506 wxString *arg2 = 0 ;
28507 bool temp2 = False ;
28508 PyObject * obj0 = 0 ;
28509 PyObject * obj1 = 0 ;
28510 char *kwnames[] = {
28511 (char *) "self",(char *) "target", NULL
28512 };
28513
28514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
28515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
28516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28517 {
28518 arg2 = wxString_in_helper(obj1);
28519 if (arg2 == NULL) SWIG_fail;
28520 temp2 = True;
28521 }
28522 {
28523 PyThreadState* __tstate = wxPyBeginAllowThreads();
28524 (arg1)->SetTarget((wxString const &)*arg2);
28525
28526 wxPyEndAllowThreads(__tstate);
28527 if (PyErr_Occurred()) SWIG_fail;
28528 }
28529 Py_INCREF(Py_None); resultobj = Py_None;
28530 {
28531 if (temp2)
28532 delete arg2;
28533 }
28534 return resultobj;
28535 fail:
28536 {
28537 if (temp2)
28538 delete arg2;
28539 }
28540 return NULL;
28541 }
28542
28543
28544 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
28545 PyObject *obj;
28546 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28547 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
28548 Py_INCREF(obj);
28549 return Py_BuildValue((char *)"");
28550 }
28551 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28552 PyObject *resultobj;
28553 wxWindow *arg1 = (wxWindow *) NULL ;
28554 bool arg2 = (bool) True ;
28555 wxContextHelp *result;
28556 PyObject * obj0 = 0 ;
28557 PyObject * obj1 = 0 ;
28558 char *kwnames[] = {
28559 (char *) "window",(char *) "doNow", NULL
28560 };
28561
28562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
28563 if (obj0) {
28564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28566 }
28567 if (obj1) {
28568 arg2 = (bool) SWIG_AsBool(obj1);
28569 if (PyErr_Occurred()) SWIG_fail;
28570 }
28571 {
28572 PyThreadState* __tstate = wxPyBeginAllowThreads();
28573 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
28574
28575 wxPyEndAllowThreads(__tstate);
28576 if (PyErr_Occurred()) SWIG_fail;
28577 }
28578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
28579 return resultobj;
28580 fail:
28581 return NULL;
28582 }
28583
28584
28585 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28586 PyObject *resultobj;
28587 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28588 PyObject * obj0 = 0 ;
28589 char *kwnames[] = {
28590 (char *) "self", NULL
28591 };
28592
28593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
28594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28596 {
28597 PyThreadState* __tstate = wxPyBeginAllowThreads();
28598 delete arg1;
28599
28600 wxPyEndAllowThreads(__tstate);
28601 if (PyErr_Occurred()) SWIG_fail;
28602 }
28603 Py_INCREF(Py_None); resultobj = Py_None;
28604 return resultobj;
28605 fail:
28606 return NULL;
28607 }
28608
28609
28610 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28611 PyObject *resultobj;
28612 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28613 wxWindow *arg2 = (wxWindow *) NULL ;
28614 bool result;
28615 PyObject * obj0 = 0 ;
28616 PyObject * obj1 = 0 ;
28617 char *kwnames[] = {
28618 (char *) "self",(char *) "window", NULL
28619 };
28620
28621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
28622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28624 if (obj1) {
28625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28627 }
28628 {
28629 PyThreadState* __tstate = wxPyBeginAllowThreads();
28630 result = (bool)(arg1)->BeginContextHelp(arg2);
28631
28632 wxPyEndAllowThreads(__tstate);
28633 if (PyErr_Occurred()) SWIG_fail;
28634 }
28635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28636 return resultobj;
28637 fail:
28638 return NULL;
28639 }
28640
28641
28642 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28643 PyObject *resultobj;
28644 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28645 bool result;
28646 PyObject * obj0 = 0 ;
28647 char *kwnames[] = {
28648 (char *) "self", NULL
28649 };
28650
28651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
28652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
28653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28654 {
28655 PyThreadState* __tstate = wxPyBeginAllowThreads();
28656 result = (bool)(arg1)->EndContextHelp();
28657
28658 wxPyEndAllowThreads(__tstate);
28659 if (PyErr_Occurred()) SWIG_fail;
28660 }
28661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28662 return resultobj;
28663 fail:
28664 return NULL;
28665 }
28666
28667
28668 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
28669 PyObject *obj;
28670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28671 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
28672 Py_INCREF(obj);
28673 return Py_BuildValue((char *)"");
28674 }
28675 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
28676 PyObject *resultobj;
28677 wxWindow *arg1 = (wxWindow *) 0 ;
28678 int arg2 = (int) wxID_CONTEXT_HELP ;
28679 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28680 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28681 wxSize const &arg4_defvalue = wxDefaultSize ;
28682 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28683 long arg5 = (long) wxBU_AUTODRAW ;
28684 wxContextHelpButton *result;
28685 wxPoint temp3 ;
28686 wxSize temp4 ;
28687 PyObject * obj0 = 0 ;
28688 PyObject * obj1 = 0 ;
28689 PyObject * obj2 = 0 ;
28690 PyObject * obj3 = 0 ;
28691 PyObject * obj4 = 0 ;
28692 char *kwnames[] = {
28693 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28694 };
28695
28696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28699 if (obj1) {
28700 arg2 = (int) SWIG_AsInt(obj1);
28701 if (PyErr_Occurred()) SWIG_fail;
28702 }
28703 if (obj2) {
28704 {
28705 arg3 = &temp3;
28706 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28707 }
28708 }
28709 if (obj3) {
28710 {
28711 arg4 = &temp4;
28712 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28713 }
28714 }
28715 if (obj4) {
28716 arg5 = (long) SWIG_AsLong(obj4);
28717 if (PyErr_Occurred()) SWIG_fail;
28718 }
28719 {
28720 PyThreadState* __tstate = wxPyBeginAllowThreads();
28721 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28722
28723 wxPyEndAllowThreads(__tstate);
28724 if (PyErr_Occurred()) SWIG_fail;
28725 }
28726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
28727 return resultobj;
28728 fail:
28729 return NULL;
28730 }
28731
28732
28733 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
28734 PyObject *obj;
28735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28736 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
28737 Py_INCREF(obj);
28738 return Py_BuildValue((char *)"");
28739 }
28740 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
28741 PyObject *resultobj;
28742 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28743 wxHelpProvider *result;
28744 PyObject * obj0 = 0 ;
28745 char *kwnames[] = {
28746 (char *) "helpProvider", NULL
28747 };
28748
28749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
28750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28752 {
28753 PyThreadState* __tstate = wxPyBeginAllowThreads();
28754 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
28755
28756 wxPyEndAllowThreads(__tstate);
28757 if (PyErr_Occurred()) SWIG_fail;
28758 }
28759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
28760 return resultobj;
28761 fail:
28762 return NULL;
28763 }
28764
28765
28766 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
28767 PyObject *resultobj;
28768 wxHelpProvider *result;
28769 char *kwnames[] = {
28770 NULL
28771 };
28772
28773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
28774 {
28775 PyThreadState* __tstate = wxPyBeginAllowThreads();
28776 result = (wxHelpProvider *)wxHelpProvider::Get();
28777
28778 wxPyEndAllowThreads(__tstate);
28779 if (PyErr_Occurred()) SWIG_fail;
28780 }
28781 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
28782 return resultobj;
28783 fail:
28784 return NULL;
28785 }
28786
28787
28788 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28789 PyObject *resultobj;
28790 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28791 wxWindow *arg2 = (wxWindow *) 0 ;
28792 wxString result;
28793 PyObject * obj0 = 0 ;
28794 PyObject * obj1 = 0 ;
28795 char *kwnames[] = {
28796 (char *) "self",(char *) "window", NULL
28797 };
28798
28799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
28800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28802 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28804 {
28805 PyThreadState* __tstate = wxPyBeginAllowThreads();
28806 result = (arg1)->GetHelp((wxWindow const *)arg2);
28807
28808 wxPyEndAllowThreads(__tstate);
28809 if (PyErr_Occurred()) SWIG_fail;
28810 }
28811 {
28812 #if wxUSE_UNICODE
28813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28814 #else
28815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28816 #endif
28817 }
28818 return resultobj;
28819 fail:
28820 return NULL;
28821 }
28822
28823
28824 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28825 PyObject *resultobj;
28826 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28827 wxWindow *arg2 = (wxWindow *) 0 ;
28828 bool result;
28829 PyObject * obj0 = 0 ;
28830 PyObject * obj1 = 0 ;
28831 char *kwnames[] = {
28832 (char *) "self",(char *) "window", NULL
28833 };
28834
28835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
28836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28838 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28840 {
28841 PyThreadState* __tstate = wxPyBeginAllowThreads();
28842 result = (bool)(arg1)->ShowHelp(arg2);
28843
28844 wxPyEndAllowThreads(__tstate);
28845 if (PyErr_Occurred()) SWIG_fail;
28846 }
28847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28848 return resultobj;
28849 fail:
28850 return NULL;
28851 }
28852
28853
28854 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28855 PyObject *resultobj;
28856 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28857 wxWindow *arg2 = (wxWindow *) 0 ;
28858 wxString *arg3 = 0 ;
28859 bool temp3 = False ;
28860 PyObject * obj0 = 0 ;
28861 PyObject * obj1 = 0 ;
28862 PyObject * obj2 = 0 ;
28863 char *kwnames[] = {
28864 (char *) "self",(char *) "window",(char *) "text", NULL
28865 };
28866
28867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
28868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28870 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28872 {
28873 arg3 = wxString_in_helper(obj2);
28874 if (arg3 == NULL) SWIG_fail;
28875 temp3 = True;
28876 }
28877 {
28878 PyThreadState* __tstate = wxPyBeginAllowThreads();
28879 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
28880
28881 wxPyEndAllowThreads(__tstate);
28882 if (PyErr_Occurred()) SWIG_fail;
28883 }
28884 Py_INCREF(Py_None); resultobj = Py_None;
28885 {
28886 if (temp3)
28887 delete arg3;
28888 }
28889 return resultobj;
28890 fail:
28891 {
28892 if (temp3)
28893 delete arg3;
28894 }
28895 return NULL;
28896 }
28897
28898
28899 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
28900 PyObject *resultobj;
28901 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28902 int arg2 ;
28903 wxString *arg3 = 0 ;
28904 bool temp3 = False ;
28905 PyObject * obj0 = 0 ;
28906 PyObject * obj1 = 0 ;
28907 PyObject * obj2 = 0 ;
28908 char *kwnames[] = {
28909 (char *) "self",(char *) "id",(char *) "text", NULL
28910 };
28911
28912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
28913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28915 arg2 = (int) SWIG_AsInt(obj1);
28916 if (PyErr_Occurred()) SWIG_fail;
28917 {
28918 arg3 = wxString_in_helper(obj2);
28919 if (arg3 == NULL) SWIG_fail;
28920 temp3 = True;
28921 }
28922 {
28923 PyThreadState* __tstate = wxPyBeginAllowThreads();
28924 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
28925
28926 wxPyEndAllowThreads(__tstate);
28927 if (PyErr_Occurred()) SWIG_fail;
28928 }
28929 Py_INCREF(Py_None); resultobj = Py_None;
28930 {
28931 if (temp3)
28932 delete arg3;
28933 }
28934 return resultobj;
28935 fail:
28936 {
28937 if (temp3)
28938 delete arg3;
28939 }
28940 return NULL;
28941 }
28942
28943
28944 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28945 PyObject *resultobj;
28946 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28947 wxWindow *arg2 = (wxWindow *) 0 ;
28948 PyObject * obj0 = 0 ;
28949 PyObject * obj1 = 0 ;
28950 char *kwnames[] = {
28951 (char *) "self",(char *) "window", NULL
28952 };
28953
28954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
28955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28957 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28959 {
28960 PyThreadState* __tstate = wxPyBeginAllowThreads();
28961 (arg1)->RemoveHelp(arg2);
28962
28963 wxPyEndAllowThreads(__tstate);
28964 if (PyErr_Occurred()) SWIG_fail;
28965 }
28966 Py_INCREF(Py_None); resultobj = Py_None;
28967 return resultobj;
28968 fail:
28969 return NULL;
28970 }
28971
28972
28973 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
28974 PyObject *resultobj;
28975 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28976 PyObject * obj0 = 0 ;
28977 char *kwnames[] = {
28978 (char *) "self", NULL
28979 };
28980
28981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
28982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
28983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28984 {
28985 PyThreadState* __tstate = wxPyBeginAllowThreads();
28986 wxHelpProvider_Destroy(arg1);
28987
28988 wxPyEndAllowThreads(__tstate);
28989 if (PyErr_Occurred()) SWIG_fail;
28990 }
28991 Py_INCREF(Py_None); resultobj = Py_None;
28992 return resultobj;
28993 fail:
28994 return NULL;
28995 }
28996
28997
28998 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
28999 PyObject *obj;
29000 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29001 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
29002 Py_INCREF(obj);
29003 return Py_BuildValue((char *)"");
29004 }
29005 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
29006 PyObject *resultobj;
29007 wxSimpleHelpProvider *result;
29008 char *kwnames[] = {
29009 NULL
29010 };
29011
29012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
29013 {
29014 PyThreadState* __tstate = wxPyBeginAllowThreads();
29015 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
29016
29017 wxPyEndAllowThreads(__tstate);
29018 if (PyErr_Occurred()) SWIG_fail;
29019 }
29020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
29021 return resultobj;
29022 fail:
29023 return NULL;
29024 }
29025
29026
29027 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
29028 PyObject *obj;
29029 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29030 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
29031 Py_INCREF(obj);
29032 return Py_BuildValue((char *)"");
29033 }
29034 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29035 PyObject *resultobj;
29036 wxBitmap *arg1 = 0 ;
29037 wxCursor const &arg2_defvalue = wxNullCursor ;
29038 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29039 wxGenericDragImage *result;
29040 PyObject * obj0 = 0 ;
29041 PyObject * obj1 = 0 ;
29042 char *kwnames[] = {
29043 (char *) "image",(char *) "cursor", NULL
29044 };
29045
29046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
29047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
29048 SWIG_POINTER_EXCEPTION | 0)) == -1)
29049 SWIG_fail;
29050 if (arg1 == NULL) {
29051 PyErr_SetString(PyExc_TypeError,"null reference");
29052 SWIG_fail;
29053 }
29054 if (obj1) {
29055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29056 SWIG_POINTER_EXCEPTION | 0)) == -1)
29057 SWIG_fail;
29058 if (arg2 == NULL) {
29059 PyErr_SetString(PyExc_TypeError,"null reference");
29060 SWIG_fail;
29061 }
29062 }
29063 {
29064 PyThreadState* __tstate = wxPyBeginAllowThreads();
29065 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
29066
29067 wxPyEndAllowThreads(__tstate);
29068 if (PyErr_Occurred()) SWIG_fail;
29069 }
29070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29071 return resultobj;
29072 fail:
29073 return NULL;
29074 }
29075
29076
29077 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
29078 PyObject *resultobj;
29079 wxIcon *arg1 = 0 ;
29080 wxCursor const &arg2_defvalue = wxNullCursor ;
29081 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29082 wxGenericDragImage *result;
29083 PyObject * obj0 = 0 ;
29084 PyObject * obj1 = 0 ;
29085 char *kwnames[] = {
29086 (char *) "image",(char *) "cursor", NULL
29087 };
29088
29089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
29090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
29091 SWIG_POINTER_EXCEPTION | 0)) == -1)
29092 SWIG_fail;
29093 if (arg1 == NULL) {
29094 PyErr_SetString(PyExc_TypeError,"null reference");
29095 SWIG_fail;
29096 }
29097 if (obj1) {
29098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29099 SWIG_POINTER_EXCEPTION | 0)) == -1)
29100 SWIG_fail;
29101 if (arg2 == NULL) {
29102 PyErr_SetString(PyExc_TypeError,"null reference");
29103 SWIG_fail;
29104 }
29105 }
29106 {
29107 PyThreadState* __tstate = wxPyBeginAllowThreads();
29108 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
29109
29110 wxPyEndAllowThreads(__tstate);
29111 if (PyErr_Occurred()) SWIG_fail;
29112 }
29113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29114 return resultobj;
29115 fail:
29116 return NULL;
29117 }
29118
29119
29120 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
29121 PyObject *resultobj;
29122 wxString *arg1 = 0 ;
29123 wxCursor const &arg2_defvalue = wxNullCursor ;
29124 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
29125 wxGenericDragImage *result;
29126 bool temp1 = False ;
29127 PyObject * obj0 = 0 ;
29128 PyObject * obj1 = 0 ;
29129 char *kwnames[] = {
29130 (char *) "str",(char *) "cursor", NULL
29131 };
29132
29133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
29134 {
29135 arg1 = wxString_in_helper(obj0);
29136 if (arg1 == NULL) SWIG_fail;
29137 temp1 = True;
29138 }
29139 if (obj1) {
29140 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
29141 SWIG_POINTER_EXCEPTION | 0)) == -1)
29142 SWIG_fail;
29143 if (arg2 == NULL) {
29144 PyErr_SetString(PyExc_TypeError,"null reference");
29145 SWIG_fail;
29146 }
29147 }
29148 {
29149 PyThreadState* __tstate = wxPyBeginAllowThreads();
29150 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
29151
29152 wxPyEndAllowThreads(__tstate);
29153 if (PyErr_Occurred()) SWIG_fail;
29154 }
29155 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29156 {
29157 if (temp1)
29158 delete arg1;
29159 }
29160 return resultobj;
29161 fail:
29162 {
29163 if (temp1)
29164 delete arg1;
29165 }
29166 return NULL;
29167 }
29168
29169
29170 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29171 PyObject *resultobj;
29172 wxPyTreeCtrl *arg1 = 0 ;
29173 wxTreeItemId *arg2 = 0 ;
29174 wxGenericDragImage *result;
29175 PyObject * obj0 = 0 ;
29176 PyObject * obj1 = 0 ;
29177 char *kwnames[] = {
29178 (char *) "treeCtrl",(char *) "id", NULL
29179 };
29180
29181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
29182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
29183 SWIG_POINTER_EXCEPTION | 0)) == -1)
29184 SWIG_fail;
29185 if (arg1 == NULL) {
29186 PyErr_SetString(PyExc_TypeError,"null reference");
29187 SWIG_fail;
29188 }
29189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
29190 SWIG_POINTER_EXCEPTION | 0)) == -1)
29191 SWIG_fail;
29192 if (arg2 == NULL) {
29193 PyErr_SetString(PyExc_TypeError,"null reference");
29194 SWIG_fail;
29195 }
29196 {
29197 PyThreadState* __tstate = wxPyBeginAllowThreads();
29198 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
29199
29200 wxPyEndAllowThreads(__tstate);
29201 if (PyErr_Occurred()) SWIG_fail;
29202 }
29203 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29204 return resultobj;
29205 fail:
29206 return NULL;
29207 }
29208
29209
29210 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29211 PyObject *resultobj;
29212 wxPyListCtrl *arg1 = 0 ;
29213 long arg2 ;
29214 wxGenericDragImage *result;
29215 PyObject * obj0 = 0 ;
29216 PyObject * obj1 = 0 ;
29217 char *kwnames[] = {
29218 (char *) "listCtrl",(char *) "id", NULL
29219 };
29220
29221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
29222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
29223 SWIG_POINTER_EXCEPTION | 0)) == -1)
29224 SWIG_fail;
29225 if (arg1 == NULL) {
29226 PyErr_SetString(PyExc_TypeError,"null reference");
29227 SWIG_fail;
29228 }
29229 arg2 = (long) SWIG_AsLong(obj1);
29230 if (PyErr_Occurred()) SWIG_fail;
29231 {
29232 PyThreadState* __tstate = wxPyBeginAllowThreads();
29233 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
29234
29235 wxPyEndAllowThreads(__tstate);
29236 if (PyErr_Occurred()) SWIG_fail;
29237 }
29238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
29239 return resultobj;
29240 fail:
29241 return NULL;
29242 }
29243
29244
29245 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29246 PyObject *resultobj;
29247 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29248 PyObject * obj0 = 0 ;
29249 char *kwnames[] = {
29250 (char *) "self", NULL
29251 };
29252
29253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
29254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29256 {
29257 PyThreadState* __tstate = wxPyBeginAllowThreads();
29258 delete arg1;
29259
29260 wxPyEndAllowThreads(__tstate);
29261 if (PyErr_Occurred()) SWIG_fail;
29262 }
29263 Py_INCREF(Py_None); resultobj = Py_None;
29264 return resultobj;
29265 fail:
29266 return NULL;
29267 }
29268
29269
29270 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
29271 PyObject *resultobj;
29272 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29273 wxBitmap *arg2 = (wxBitmap *) 0 ;
29274 PyObject * obj0 = 0 ;
29275 PyObject * obj1 = 0 ;
29276 char *kwnames[] = {
29277 (char *) "self",(char *) "bitmap", NULL
29278 };
29279
29280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
29281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
29284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29285 {
29286 PyThreadState* __tstate = wxPyBeginAllowThreads();
29287 (arg1)->SetBackingBitmap(arg2);
29288
29289 wxPyEndAllowThreads(__tstate);
29290 if (PyErr_Occurred()) SWIG_fail;
29291 }
29292 Py_INCREF(Py_None); resultobj = Py_None;
29293 return resultobj;
29294 fail:
29295 return NULL;
29296 }
29297
29298
29299 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
29300 PyObject *resultobj;
29301 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29302 wxPoint *arg2 = 0 ;
29303 wxWindow *arg3 = (wxWindow *) 0 ;
29304 bool arg4 = (bool) False ;
29305 wxRect *arg5 = (wxRect *) NULL ;
29306 bool result;
29307 wxPoint temp2 ;
29308 PyObject * obj0 = 0 ;
29309 PyObject * obj1 = 0 ;
29310 PyObject * obj2 = 0 ;
29311 PyObject * obj3 = 0 ;
29312 PyObject * obj4 = 0 ;
29313 char *kwnames[] = {
29314 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
29315 };
29316
29317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29320 {
29321 arg2 = &temp2;
29322 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29323 }
29324 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
29325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29326 if (obj3) {
29327 arg4 = (bool) SWIG_AsBool(obj3);
29328 if (PyErr_Occurred()) SWIG_fail;
29329 }
29330 if (obj4) {
29331 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
29332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29333 }
29334 {
29335 PyThreadState* __tstate = wxPyBeginAllowThreads();
29336 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
29337
29338 wxPyEndAllowThreads(__tstate);
29339 if (PyErr_Occurred()) SWIG_fail;
29340 }
29341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29342 return resultobj;
29343 fail:
29344 return NULL;
29345 }
29346
29347
29348 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
29349 PyObject *resultobj;
29350 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29351 wxPoint *arg2 = 0 ;
29352 wxWindow *arg3 = (wxWindow *) 0 ;
29353 wxWindow *arg4 = (wxWindow *) 0 ;
29354 bool result;
29355 wxPoint temp2 ;
29356 PyObject * obj0 = 0 ;
29357 PyObject * obj1 = 0 ;
29358 PyObject * obj2 = 0 ;
29359 PyObject * obj3 = 0 ;
29360 char *kwnames[] = {
29361 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
29362 };
29363
29364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29367 {
29368 arg2 = &temp2;
29369 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29370 }
29371 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
29372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29373 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
29374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29375 {
29376 PyThreadState* __tstate = wxPyBeginAllowThreads();
29377 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
29378
29379 wxPyEndAllowThreads(__tstate);
29380 if (PyErr_Occurred()) SWIG_fail;
29381 }
29382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29383 return resultobj;
29384 fail:
29385 return NULL;
29386 }
29387
29388
29389 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
29390 PyObject *resultobj;
29391 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29392 bool result;
29393 PyObject * obj0 = 0 ;
29394 char *kwnames[] = {
29395 (char *) "self", NULL
29396 };
29397
29398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
29399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29401 {
29402 PyThreadState* __tstate = wxPyBeginAllowThreads();
29403 result = (bool)(arg1)->EndDrag();
29404
29405 wxPyEndAllowThreads(__tstate);
29406 if (PyErr_Occurred()) SWIG_fail;
29407 }
29408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29409 return resultobj;
29410 fail:
29411 return NULL;
29412 }
29413
29414
29415 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
29416 PyObject *resultobj;
29417 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29418 wxPoint *arg2 = 0 ;
29419 bool result;
29420 wxPoint temp2 ;
29421 PyObject * obj0 = 0 ;
29422 PyObject * obj1 = 0 ;
29423 char *kwnames[] = {
29424 (char *) "self",(char *) "pt", NULL
29425 };
29426
29427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
29428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29430 {
29431 arg2 = &temp2;
29432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29433 }
29434 {
29435 PyThreadState* __tstate = wxPyBeginAllowThreads();
29436 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
29437
29438 wxPyEndAllowThreads(__tstate);
29439 if (PyErr_Occurred()) SWIG_fail;
29440 }
29441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29442 return resultobj;
29443 fail:
29444 return NULL;
29445 }
29446
29447
29448 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
29449 PyObject *resultobj;
29450 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29451 bool result;
29452 PyObject * obj0 = 0 ;
29453 char *kwnames[] = {
29454 (char *) "self", NULL
29455 };
29456
29457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
29458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29460 {
29461 PyThreadState* __tstate = wxPyBeginAllowThreads();
29462 result = (bool)(arg1)->Show();
29463
29464 wxPyEndAllowThreads(__tstate);
29465 if (PyErr_Occurred()) SWIG_fail;
29466 }
29467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29468 return resultobj;
29469 fail:
29470 return NULL;
29471 }
29472
29473
29474 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
29475 PyObject *resultobj;
29476 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29477 bool result;
29478 PyObject * obj0 = 0 ;
29479 char *kwnames[] = {
29480 (char *) "self", NULL
29481 };
29482
29483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
29484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29486 {
29487 PyThreadState* __tstate = wxPyBeginAllowThreads();
29488 result = (bool)(arg1)->Hide();
29489
29490 wxPyEndAllowThreads(__tstate);
29491 if (PyErr_Occurred()) SWIG_fail;
29492 }
29493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29494 return resultobj;
29495 fail:
29496 return NULL;
29497 }
29498
29499
29500 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
29501 PyObject *resultobj;
29502 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29503 wxPoint *arg2 = 0 ;
29504 wxRect result;
29505 wxPoint temp2 ;
29506 PyObject * obj0 = 0 ;
29507 PyObject * obj1 = 0 ;
29508 char *kwnames[] = {
29509 (char *) "self",(char *) "pos", NULL
29510 };
29511
29512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
29513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29515 {
29516 arg2 = &temp2;
29517 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29518 }
29519 {
29520 PyThreadState* __tstate = wxPyBeginAllowThreads();
29521 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
29522
29523 wxPyEndAllowThreads(__tstate);
29524 if (PyErr_Occurred()) SWIG_fail;
29525 }
29526 {
29527 wxRect * resultptr;
29528 resultptr = new wxRect((wxRect &) result);
29529 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
29530 }
29531 return resultobj;
29532 fail:
29533 return NULL;
29534 }
29535
29536
29537 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29538 PyObject *resultobj;
29539 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29540 wxDC *arg2 = 0 ;
29541 wxPoint *arg3 = 0 ;
29542 bool result;
29543 wxPoint temp3 ;
29544 PyObject * obj0 = 0 ;
29545 PyObject * obj1 = 0 ;
29546 PyObject * obj2 = 0 ;
29547 char *kwnames[] = {
29548 (char *) "self",(char *) "dc",(char *) "pos", NULL
29549 };
29550
29551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
29552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29554 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
29555 SWIG_POINTER_EXCEPTION | 0)) == -1)
29556 SWIG_fail;
29557 if (arg2 == NULL) {
29558 PyErr_SetString(PyExc_TypeError,"null reference");
29559 SWIG_fail;
29560 }
29561 {
29562 arg3 = &temp3;
29563 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29564 }
29565 {
29566 PyThreadState* __tstate = wxPyBeginAllowThreads();
29567 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
29568
29569 wxPyEndAllowThreads(__tstate);
29570 if (PyErr_Occurred()) SWIG_fail;
29571 }
29572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29573 return resultobj;
29574 fail:
29575 return NULL;
29576 }
29577
29578
29579 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29580 PyObject *resultobj;
29581 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29582 wxDC *arg2 = 0 ;
29583 wxMemoryDC *arg3 = 0 ;
29584 wxRect *arg4 = 0 ;
29585 wxRect *arg5 = 0 ;
29586 bool result;
29587 wxRect temp4 ;
29588 wxRect temp5 ;
29589 PyObject * obj0 = 0 ;
29590 PyObject * obj1 = 0 ;
29591 PyObject * obj2 = 0 ;
29592 PyObject * obj3 = 0 ;
29593 PyObject * obj4 = 0 ;
29594 char *kwnames[] = {
29595 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
29596 };
29597
29598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
29602 SWIG_POINTER_EXCEPTION | 0)) == -1)
29603 SWIG_fail;
29604 if (arg2 == NULL) {
29605 PyErr_SetString(PyExc_TypeError,"null reference");
29606 SWIG_fail;
29607 }
29608 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
29609 SWIG_POINTER_EXCEPTION | 0)) == -1)
29610 SWIG_fail;
29611 if (arg3 == NULL) {
29612 PyErr_SetString(PyExc_TypeError,"null reference");
29613 SWIG_fail;
29614 }
29615 {
29616 arg4 = &temp4;
29617 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29618 }
29619 {
29620 arg5 = &temp5;
29621 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
29622 }
29623 {
29624 PyThreadState* __tstate = wxPyBeginAllowThreads();
29625 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
29626
29627 wxPyEndAllowThreads(__tstate);
29628 if (PyErr_Occurred()) SWIG_fail;
29629 }
29630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29631 return resultobj;
29632 fail:
29633 return NULL;
29634 }
29635
29636
29637 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29638 PyObject *resultobj;
29639 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29640 wxPoint *arg2 = 0 ;
29641 wxPoint *arg3 = 0 ;
29642 bool arg4 ;
29643 bool arg5 ;
29644 bool result;
29645 wxPoint temp2 ;
29646 wxPoint temp3 ;
29647 PyObject * obj0 = 0 ;
29648 PyObject * obj1 = 0 ;
29649 PyObject * obj2 = 0 ;
29650 PyObject * obj3 = 0 ;
29651 PyObject * obj4 = 0 ;
29652 char *kwnames[] = {
29653 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
29654 };
29655
29656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
29658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29659 {
29660 arg2 = &temp2;
29661 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29662 }
29663 {
29664 arg3 = &temp3;
29665 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29666 }
29667 arg4 = (bool) SWIG_AsBool(obj3);
29668 if (PyErr_Occurred()) SWIG_fail;
29669 arg5 = (bool) SWIG_AsBool(obj4);
29670 if (PyErr_Occurred()) SWIG_fail;
29671 {
29672 PyThreadState* __tstate = wxPyBeginAllowThreads();
29673 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
29674
29675 wxPyEndAllowThreads(__tstate);
29676 if (PyErr_Occurred()) SWIG_fail;
29677 }
29678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29679 return resultobj;
29680 fail:
29681 return NULL;
29682 }
29683
29684
29685 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
29686 PyObject *obj;
29687 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29688 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
29689 Py_INCREF(obj);
29690 return Py_BuildValue((char *)"");
29691 }
29692 static PyMethodDef SwigMethods[] = {
29693 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
29694 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
29695 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
29696 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
29697 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
29698 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
29699 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
29700 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
29701 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
29702 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
29703 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
29704 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
29705 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
29706 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
29707 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
29708 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
29709 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
29710 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
29711 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
29712 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
29713 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
29714 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
29715 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
29716 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
29717 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
29718 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
29719 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
29720 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
29721 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
29722 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
29723 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
29724 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
29725 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
29726 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
29727 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
29728 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
29729 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29730 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
29731 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
29732 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
29733 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
29734 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
29735 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
29736 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
29737 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
29738 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
29739 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
29740 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29741 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29742 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
29743 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
29744 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29745 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
29746 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
29747 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
29748 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
29749 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
29750 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
29751 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
29752 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
29753 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
29754 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
29755 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
29756 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
29757 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
29758 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
29759 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
29760 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
29761 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
29762 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
29763 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
29764 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
29765 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
29766 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
29767 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
29768 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
29769 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
29770 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
29771 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
29772 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
29773 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
29774 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
29775 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
29776 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
29777 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
29778 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
29779 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
29780 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
29781 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
29782 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
29783 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
29784 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
29785 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
29786 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
29787 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
29788 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
29789 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
29790 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
29791 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29792 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
29793 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
29794 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
29795 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29796 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
29797 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
29798 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
29799 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
29800 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
29801 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
29802 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
29803 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29804 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
29805 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
29806 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
29807 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
29808 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
29809 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
29810 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
29811 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
29812 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
29813 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
29814 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
29815 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
29816 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
29817 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
29818 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
29819 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29820 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
29821 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
29822 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
29823 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
29824 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
29825 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
29826 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
29827 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29828 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
29829 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
29830 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
29831 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
29832 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
29833 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
29834 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
29835 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29836 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
29837 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
29838 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
29839 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
29840 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
29841 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
29842 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
29843 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
29844 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
29845 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
29846 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
29847 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
29848 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
29849 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
29850 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
29851 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
29852 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
29853 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
29854 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
29855 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
29856 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
29857 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
29858 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
29859 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
29860 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
29861 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
29862 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
29863 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
29864 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
29865 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
29866 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
29867 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
29868 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
29869 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
29870 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
29871 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
29872 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
29873 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
29874 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
29875 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
29876 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
29877 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
29878 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
29879 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
29880 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
29881 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
29882 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
29883 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
29884 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
29885 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
29886 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
29887 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
29888 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
29889 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29890 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
29891 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29892 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
29893 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
29894 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
29895 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
29896 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
29897 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
29898 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
29899 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
29900 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
29901 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
29902 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
29903 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
29904 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
29905 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
29906 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
29907 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
29908 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
29909 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
29910 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
29911 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
29912 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
29913 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
29914 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
29915 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
29916 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
29917 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
29918 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29919 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
29920 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
29921 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29922 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
29923 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
29924 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
29925 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
29926 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
29927 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
29928 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
29929 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
29930 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
29931 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
29932 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
29933 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
29934 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
29935 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
29936 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
29937 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
29938 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
29939 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
29940 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
29941 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
29942 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
29943 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
29944 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
29945 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29946 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
29947 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
29948 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29949 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
29950 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
29951 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
29952 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
29953 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
29954 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
29955 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
29956 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
29957 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
29958 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
29959 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
29960 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
29961 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
29962 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29963 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29964 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
29965 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
29966 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
29967 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
29968 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
29969 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
29970 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
29971 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
29972 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
29973 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
29974 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
29975 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
29976 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
29977 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
29978 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
29979 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
29980 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
29981 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
29982 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
29983 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
29984 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
29985 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
29986 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
29987 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
29988 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
29989 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
29990 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
29991 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
29992 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
29993 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29994 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29995 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
29996 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
29997 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
29998 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
29999 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30000 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
30001 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
30002 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30003 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30004 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30005 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
30006 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
30007 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
30008 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
30009 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
30010 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
30011 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
30012 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
30013 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
30014 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
30015 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
30016 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
30017 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
30018 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
30019 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
30020 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
30021 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
30022 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
30023 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
30024 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
30025 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
30026 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
30027 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
30028 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
30029 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
30030 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
30031 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
30032 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
30033 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
30034 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
30035 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
30036 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
30037 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
30038 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
30039 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
30040 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
30041 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
30042 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
30043 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
30044 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
30045 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
30046 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
30047 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
30048 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
30049 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
30050 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
30051 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
30052 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
30053 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
30054 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
30055 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
30056 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
30057 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
30058 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
30059 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
30060 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
30061 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
30062 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
30063 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
30064 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
30065 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
30066 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
30067 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
30068 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
30069 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
30070 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
30071 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
30072 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
30073 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
30074 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
30075 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
30076 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
30077 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
30078 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
30079 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
30080 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
30081 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
30082 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
30083 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
30084 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
30085 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
30086 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
30087 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
30088 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
30089 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
30090 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
30091 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
30092 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
30093 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
30094 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
30095 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
30096 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
30097 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
30098 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
30099 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
30100 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
30101 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
30102 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
30103 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
30104 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
30105 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
30106 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
30107 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
30108 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
30109 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
30110 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
30111 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
30112 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
30113 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
30114 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
30115 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
30116 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
30117 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
30118 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
30119 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
30120 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
30121 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
30122 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
30123 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
30124 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
30125 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
30126 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
30127 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
30128 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
30129 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
30130 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
30131 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
30132 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30133 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30134 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
30135 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
30136 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30137 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
30138 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30139 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30140 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
30141 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
30142 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
30143 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
30144 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
30145 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
30146 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
30147 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
30148 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
30149 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
30150 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
30151 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
30152 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
30153 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
30154 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
30155 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
30156 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
30157 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30158 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30159 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
30160 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
30161 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
30162 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
30163 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
30164 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
30165 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
30166 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
30167 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
30168 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
30169 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
30170 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
30171 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30172 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30173 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
30174 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
30175 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
30176 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
30177 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
30178 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
30179 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
30180 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
30181 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
30182 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
30183 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
30184 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
30185 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
30186 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
30187 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
30188 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
30189 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
30190 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
30191 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
30192 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
30193 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
30194 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
30195 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
30196 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
30197 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
30198 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
30199 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
30200 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
30201 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
30202 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
30203 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
30204 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
30205 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
30206 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
30207 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
30208 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
30209 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
30210 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
30211 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
30212 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
30213 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
30214 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
30215 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
30216 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
30217 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
30218 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
30219 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
30220 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
30221 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
30222 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
30223 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
30224 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30225 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30226 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
30227 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30228 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
30229 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
30230 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
30231 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
30232 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
30233 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
30234 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
30235 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
30236 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
30237 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
30238 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
30239 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
30240 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
30241 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
30242 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
30243 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
30244 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
30245 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
30246 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
30247 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
30248 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
30249 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
30250 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS },
30251 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
30252 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30253 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30254 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
30255 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
30256 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
30257 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
30258 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30259 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30260 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30261 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
30262 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
30263 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
30264 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
30265 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
30266 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
30267 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
30268 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
30269 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
30270 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
30271 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30272 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
30273 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
30274 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
30275 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30276 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
30277 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
30278 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
30279 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
30280 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
30281 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
30282 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
30283 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
30284 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30285 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30286 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30287 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30288 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
30289 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
30290 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
30291 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
30292 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
30293 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
30294 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
30295 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
30296 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
30297 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
30298 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
30299 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
30300 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
30301 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
30302 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
30303 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
30304 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
30305 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
30306 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
30307 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
30308 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
30309 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
30310 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
30311 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
30312 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
30313 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
30314 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
30315 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
30316 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
30317 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
30318 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
30319 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
30320 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
30321 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
30322 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
30323 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
30324 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
30325 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
30326 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
30327 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
30328 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
30329 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
30330 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
30331 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
30332 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
30333 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
30334 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
30335 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
30336 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30337 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30338 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
30339 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
30340 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
30341 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
30342 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
30343 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30344 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
30345 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30346 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
30347 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30348 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
30349 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
30350 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
30351 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
30352 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
30353 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30354 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30355 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
30356 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
30357 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
30358 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
30359 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
30360 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
30361 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
30362 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30363 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30364 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
30365 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
30366 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
30367 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
30368 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
30369 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
30370 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
30371 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
30372 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30373 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
30374 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
30375 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
30376 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
30377 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
30378 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
30379 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
30380 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
30381 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
30382 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
30383 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
30384 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
30385 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
30386 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
30387 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
30388 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
30389 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
30390 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
30391 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
30392 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
30393 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
30394 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
30395 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
30396 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
30397 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
30398 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
30399 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
30400 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30401 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
30402 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
30403 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
30404 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
30405 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30406 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
30407 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
30408 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
30409 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
30410 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30411 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
30412 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
30413 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
30414 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
30415 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
30416 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
30417 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
30418 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
30419 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
30420 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
30421 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
30422 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
30423 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
30424 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
30425 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30426 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
30427 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
30428 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
30429 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
30430 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30431 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30432 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30433 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
30434 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
30435 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
30436 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30437 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
30438 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
30439 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
30440 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
30441 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
30442 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
30443 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
30444 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
30445 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
30446 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
30447 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
30448 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
30449 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
30450 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
30451 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
30452 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
30453 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
30454 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
30455 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
30456 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
30457 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
30458 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
30459 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
30460 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
30461 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
30462 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
30463 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
30464 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
30465 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
30466 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
30467 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
30468 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
30469 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
30470 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
30471 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
30472 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
30473 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
30474 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
30475 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
30476 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
30477 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
30478 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
30479 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
30480 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
30481 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
30482 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
30483 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
30484 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
30485 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
30486 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
30487 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
30488 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
30489 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
30490 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
30491 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
30492 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
30493 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
30494 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
30495 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
30496 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
30497 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
30498 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
30499 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
30500 { NULL, NULL }
30501 };
30502
30503
30504 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
30505
30506 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
30507 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30508 }
30509 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
30510 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
30511 }
30512 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
30513 return (void *)((wxSizer *) ((wxBoxSizer *) x));
30514 }
30515 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
30516 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
30517 }
30518 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
30519 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30520 }
30521 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
30522 return (void *)((wxSizer *) ((wxGridSizer *) x));
30523 }
30524 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
30525 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
30526 }
30527 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
30528 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
30529 }
30530 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
30531 return (void *)((wxSizer *) ((wxPySizer *) x));
30532 }
30533 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
30534 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
30535 }
30536 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
30537 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
30538 }
30539 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
30540 return (void *)((wxEvent *) ((wxMenuEvent *) x));
30541 }
30542 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
30543 return (void *)((wxEvent *) ((wxCloseEvent *) x));
30544 }
30545 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
30546 return (void *)((wxEvent *) ((wxMouseEvent *) x));
30547 }
30548 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
30549 return (void *)((wxEvent *) ((wxEraseEvent *) x));
30550 }
30551 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
30552 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
30553 }
30554 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
30555 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
30556 }
30557 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
30558 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
30559 }
30560 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
30561 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
30562 }
30563 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
30564 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
30565 }
30566 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
30567 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30568 }
30569 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
30570 return (void *)((wxEvent *) ((wxPyEvent *) x));
30571 }
30572 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
30573 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
30574 }
30575 static void *_p_wxListEventTo_p_wxEvent(void *x) {
30576 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
30577 }
30578 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
30579 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30580 }
30581 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
30582 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
30583 }
30584 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
30585 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
30586 }
30587 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
30588 return (void *)((wxEvent *) ((wxIdleEvent *) x));
30589 }
30590 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
30591 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
30592 }
30593 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
30594 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
30595 }
30596 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
30597 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
30598 }
30599 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
30600 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
30601 }
30602 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
30603 return (void *)((wxEvent *) ((wxActivateEvent *) x));
30604 }
30605 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
30606 return (void *)((wxEvent *) ((wxSizeEvent *) x));
30607 }
30608 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
30609 return (void *)((wxEvent *) ((wxMoveEvent *) x));
30610 }
30611 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
30612 return (void *)((wxEvent *) ((wxPaintEvent *) x));
30613 }
30614 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
30615 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
30616 }
30617 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
30618 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
30619 }
30620 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
30621 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
30622 }
30623 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
30624 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
30625 }
30626 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
30627 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30628 }
30629 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
30630 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
30631 }
30632 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
30633 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
30634 }
30635 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
30636 return (void *)((wxEvent *) ((wxFocusEvent *) x));
30637 }
30638 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
30639 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
30640 }
30641 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
30642 return (void *)((wxEvent *) ((wxShowEvent *) x));
30643 }
30644 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
30645 return (void *)((wxEvent *) ((wxCommandEvent *) x));
30646 }
30647 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
30648 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
30649 }
30650 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
30651 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30652 }
30653 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
30654 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
30655 }
30656 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
30657 return (void *)((wxEvent *) ((wxKeyEvent *) x));
30658 }
30659 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
30660 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
30661 }
30662 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
30663 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
30664 }
30665 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
30666 return (void *)((wxItemContainer *) ((wxComboBox *) x));
30667 }
30668 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
30669 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30670 }
30671 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
30672 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
30673 }
30674 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
30675 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
30676 }
30677 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
30678 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
30679 }
30680 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
30681 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30682 }
30683 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
30684 return (void *)((wxPyListCtrl *) ((wxListView *) x));
30685 }
30686 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
30687 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30688 }
30689 static void *_p_wxListBoxTo_p_wxControl(void *x) {
30690 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
30691 }
30692 static void *_p_wxChoiceTo_p_wxControl(void *x) {
30693 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
30694 }
30695 static void *_p_wxToolBarTo_p_wxControl(void *x) {
30696 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
30697 }
30698 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
30699 return (void *)((wxControl *) ((wxStaticBitmap *) x));
30700 }
30701 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
30702 return (void *)((wxControl *) ((wxComboBox *) x));
30703 }
30704 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
30705 return (void *)((wxControl *) ((wxSpinCtrl *) x));
30706 }
30707 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
30708 return (void *)((wxControl *) ((wxStaticBox *) x));
30709 }
30710 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
30711 return (void *)((wxControl *) ((wxPyListCtrl *) x));
30712 }
30713 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
30714 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
30715 }
30716 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
30717 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30718 }
30719 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
30720 return (void *)((wxControl *) ((wxScrollBar *) x));
30721 }
30722 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
30723 return (void *)((wxControl *) ((wxBookCtrl *) x));
30724 }
30725 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
30726 return (void *)((wxControl *) ((wxRadioButton *) x));
30727 }
30728 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
30729 return (void *)((wxControl *) ((wxToggleButton *) x));
30730 }
30731 static void *_p_wxGaugeTo_p_wxControl(void *x) {
30732 return (void *)((wxControl *) ((wxGauge *) x));
30733 }
30734 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
30735 return (void *)((wxControl *) ((wxToolBarBase *) x));
30736 }
30737 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
30738 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
30739 }
30740 static void *_p_wxButtonTo_p_wxControl(void *x) {
30741 return (void *)((wxControl *) ((wxButton *) x));
30742 }
30743 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
30744 return (void *)((wxControl *) ((wxSpinButton *) x));
30745 }
30746 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
30747 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30748 }
30749 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
30750 return (void *)((wxControl *) ((wxControlWithItems *) x));
30751 }
30752 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
30753 return (void *)((wxControl *) ((wxRadioBox *) x));
30754 }
30755 static void *_p_wxNotebookTo_p_wxControl(void *x) {
30756 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
30757 }
30758 static void *_p_wxListbookTo_p_wxControl(void *x) {
30759 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
30760 }
30761 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
30762 return (void *)((wxControl *) ((wxCheckBox *) x));
30763 }
30764 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
30765 return (void *)((wxControl *) ((wxTextCtrl *) x));
30766 }
30767 static void *_p_wxListViewTo_p_wxControl(void *x) {
30768 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
30769 }
30770 static void *_p_wxSliderTo_p_wxControl(void *x) {
30771 return (void *)((wxControl *) ((wxSlider *) x));
30772 }
30773 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
30774 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
30775 }
30776 static void *_p_wxPyControlTo_p_wxControl(void *x) {
30777 return (void *)((wxControl *) ((wxPyControl *) x));
30778 }
30779 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
30780 return (void *)((wxControl *) ((wxStaticLine *) x));
30781 }
30782 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
30783 return (void *)((wxControl *) ((wxStaticText *) x));
30784 }
30785 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
30786 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
30787 }
30788 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
30789 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
30790 }
30791 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
30792 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
30793 }
30794 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
30795 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30796 }
30797 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
30798 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
30799 }
30800 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
30801 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
30802 }
30803 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
30804 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30805 }
30806 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
30807 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
30808 }
30809 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
30810 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
30811 }
30812 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
30813 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
30814 }
30815 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
30816 return (void *)((wxEvtHandler *) ((wxValidator *) x));
30817 }
30818 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
30819 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
30820 }
30821 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
30822 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
30823 }
30824 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
30825 return (void *)((wxEvtHandler *) ((wxMenu *) x));
30826 }
30827 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
30828 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
30829 }
30830 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
30831 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
30832 }
30833 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
30834 return (void *)((wxEvtHandler *) ((wxWindow *) x));
30835 }
30836 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
30837 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
30838 }
30839 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
30840 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
30841 }
30842 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
30843 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
30844 }
30845 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
30846 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
30847 }
30848 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
30849 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30850 }
30851 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
30852 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
30853 }
30854 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
30855 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
30856 }
30857 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
30858 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
30859 }
30860 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
30861 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
30862 }
30863 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
30864 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30865 }
30866 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
30867 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
30868 }
30869 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
30870 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
30871 }
30872 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
30873 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
30874 }
30875 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
30876 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
30877 }
30878 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
30879 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
30880 }
30881 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
30882 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
30883 }
30884 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
30885 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30886 }
30887 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
30888 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
30889 }
30890 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
30891 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
30892 }
30893 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
30894 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
30895 }
30896 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
30897 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
30898 }
30899 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
30900 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
30901 }
30902 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
30903 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
30904 }
30905 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
30906 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
30907 }
30908 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
30909 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
30910 }
30911 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
30912 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
30913 }
30914 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
30915 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
30916 }
30917 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
30918 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
30919 }
30920 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
30921 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
30922 }
30923 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
30924 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30925 }
30926 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
30927 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
30928 }
30929 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
30930 return (void *)((wxListBox *) ((wxCheckListBox *) x));
30931 }
30932 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
30933 return (void *)((wxBookCtrl *) ((wxListbook *) x));
30934 }
30935 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
30936 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
30937 }
30938 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
30939 return (void *)((wxButton *) ((wxBitmapButton *) x));
30940 }
30941 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
30942 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
30943 }
30944 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
30945 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
30946 }
30947 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
30948 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
30949 }
30950 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
30951 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
30952 }
30953 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
30954 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
30955 }
30956 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
30957 return (void *)((wxObject *) ((wxSizerItem *) x));
30958 }
30959 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
30960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
30961 }
30962 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
30963 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
30964 }
30965 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
30966 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
30967 }
30968 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
30969 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30970 }
30971 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
30972 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
30973 }
30974 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
30975 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
30976 }
30977 static void *_p_wxSizerTo_p_wxObject(void *x) {
30978 return (void *)((wxObject *) ((wxSizer *) x));
30979 }
30980 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
30981 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30982 }
30983 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
30984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
30985 }
30986 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
30987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
30988 }
30989 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
30990 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
30991 }
30992 static void *_p_wxEventTo_p_wxObject(void *x) {
30993 return (void *)((wxObject *) ((wxEvent *) x));
30994 }
30995 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
30996 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
30997 }
30998 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
30999 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
31000 }
31001 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
31002 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
31003 }
31004 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
31005 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
31006 }
31007 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
31008 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
31009 }
31010 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
31011 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31012 }
31013 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
31014 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
31015 }
31016 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
31017 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
31018 }
31019 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
31020 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
31021 }
31022 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
31023 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
31024 }
31025 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
31026 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31027 }
31028 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
31029 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
31030 }
31031 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
31032 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
31033 }
31034 static void *_p_wxControlTo_p_wxObject(void *x) {
31035 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
31036 }
31037 static void *_p_wxPyControlTo_p_wxObject(void *x) {
31038 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
31039 }
31040 static void *_p_wxGaugeTo_p_wxObject(void *x) {
31041 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
31042 }
31043 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
31044 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
31045 }
31046 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
31047 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
31048 }
31049 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
31050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
31051 }
31052 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
31053 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
31054 }
31055 static void *_p_wxChoiceTo_p_wxObject(void *x) {
31056 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31057 }
31058 static void *_p_wxFSFileTo_p_wxObject(void *x) {
31059 return (void *)((wxObject *) ((wxFSFile *) x));
31060 }
31061 static void *_p_wxPySizerTo_p_wxObject(void *x) {
31062 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
31063 }
31064 static void *_p_wxListViewTo_p_wxObject(void *x) {
31065 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31066 }
31067 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
31068 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
31069 }
31070 static void *_p_wxNotebookTo_p_wxObject(void *x) {
31071 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31072 }
31073 static void *_p_wxPyEventTo_p_wxObject(void *x) {
31074 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
31075 }
31076 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
31077 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
31078 }
31079 static void *_p_wxListbookTo_p_wxObject(void *x) {
31080 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31081 }
31082 static void *_p_wxShowEventTo_p_wxObject(void *x) {
31083 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
31084 }
31085 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
31086 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
31087 }
31088 static void *_p_wxSliderTo_p_wxObject(void *x) {
31089 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
31090 }
31091 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
31092 return (void *)((wxObject *) ((wxMenuItem *) x));
31093 }
31094 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
31095 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
31096 }
31097 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
31098 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
31099 }
31100 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
31101 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
31102 }
31103 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
31104 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
31105 }
31106 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
31107 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
31108 }
31109 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
31110 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
31111 }
31112 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
31113 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
31114 }
31115 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
31116 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
31117 }
31118 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
31119 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
31120 }
31121 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
31122 return (void *)((wxObject *) ((wxContextHelp *) x));
31123 }
31124 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
31125 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
31126 }
31127 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
31128 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
31129 }
31130 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
31131 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
31132 }
31133 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
31134 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
31135 }
31136 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
31137 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
31138 }
31139 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
31140 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
31141 }
31142 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
31143 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
31144 }
31145 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
31146 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
31147 }
31148 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
31149 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
31150 }
31151 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
31152 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
31153 }
31154 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
31155 return (void *)((wxObject *) ((wxImageHandler *) x));
31156 }
31157 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
31158 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
31159 }
31160 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
31161 return (void *)((wxObject *) ((wxEvtHandler *) x));
31162 }
31163 static void *_p_wxListEventTo_p_wxObject(void *x) {
31164 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31165 }
31166 static void *_p_wxListBoxTo_p_wxObject(void *x) {
31167 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31168 }
31169 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
31170 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31171 }
31172 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
31173 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
31174 }
31175 static void *_p_wxButtonTo_p_wxObject(void *x) {
31176 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
31177 }
31178 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
31179 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
31180 }
31181 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
31182 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
31183 }
31184 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
31185 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31186 }
31187 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31188 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31189 }
31190 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
31191 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
31192 }
31193 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
31194 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
31195 }
31196 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
31197 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
31198 }
31199 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
31200 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
31201 }
31202 static void *_p_wxListItemTo_p_wxObject(void *x) {
31203 return (void *)((wxObject *) ((wxListItem *) x));
31204 }
31205 static void *_p_wxImageTo_p_wxObject(void *x) {
31206 return (void *)((wxObject *) ((wxImage *) x));
31207 }
31208 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
31209 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
31210 }
31211 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31212 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31213 }
31214 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
31215 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31216 }
31217 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
31218 return (void *)((wxObject *) ((wxGenericDragImage *) x));
31219 }
31220 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
31221 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
31222 }
31223 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
31224 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31225 }
31226 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
31227 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31228 }
31229 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31230 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31231 }
31232 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31233 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31234 }
31235 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31236 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31237 }
31238 static void *_p_wxWindowTo_p_wxObject(void *x) {
31239 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31240 }
31241 static void *_p_wxMenuTo_p_wxObject(void *x) {
31242 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31243 }
31244 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31245 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31246 }
31247 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
31248 return (void *)((wxObject *) ((wxFileSystem *) x));
31249 }
31250 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
31251 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
31252 }
31253 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
31254 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
31255 }
31256 static void *_p_wxPyAppTo_p_wxObject(void *x) {
31257 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
31258 }
31259 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
31260 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
31261 }
31262 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
31263 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
31264 }
31265 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
31266 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
31267 }
31268 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
31269 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31270 }
31271 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
31272 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
31273 }
31274 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
31275 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
31276 }
31277 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
31278 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
31279 }
31280 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
31281 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
31282 }
31283 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
31284 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
31285 }
31286 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
31287 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
31288 }
31289 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
31290 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31291 }
31292 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
31293 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
31294 }
31295 static void *_p_wxToolBarTo_p_wxObject(void *x) {
31296 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31297 }
31298 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
31299 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
31300 }
31301 static void *_p_wxValidatorTo_p_wxObject(void *x) {
31302 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
31303 }
31304 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
31305 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
31306 }
31307 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
31308 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
31309 }
31310 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
31311 return (void *)((wxWindow *) ((wxMenuBar *) x));
31312 }
31313 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
31314 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31315 }
31316 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
31317 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
31318 }
31319 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
31320 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
31321 }
31322 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
31323 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
31324 }
31325 static void *_p_wxControlTo_p_wxWindow(void *x) {
31326 return (void *)((wxWindow *) ((wxControl *) x));
31327 }
31328 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
31329 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
31330 }
31331 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
31332 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31333 }
31334 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
31335 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
31336 }
31337 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
31338 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
31339 }
31340 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
31341 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
31342 }
31343 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
31344 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
31345 }
31346 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
31347 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
31348 }
31349 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
31350 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
31351 }
31352 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
31353 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
31354 }
31355 static void *_p_wxListbookTo_p_wxWindow(void *x) {
31356 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31357 }
31358 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
31359 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
31360 }
31361 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
31362 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
31363 }
31364 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
31365 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
31366 }
31367 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
31368 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31369 }
31370 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
31371 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31372 }
31373 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
31374 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31375 }
31376 static void *_p_wxListViewTo_p_wxWindow(void *x) {
31377 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31378 }
31379 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
31380 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31381 }
31382 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
31383 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
31384 }
31385 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
31386 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
31387 }
31388 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
31389 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
31390 }
31391 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
31392 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
31393 }
31394 static void *_p_wxSliderTo_p_wxWindow(void *x) {
31395 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
31396 }
31397 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
31398 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
31399 }
31400 static void *_p_wxButtonTo_p_wxWindow(void *x) {
31401 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
31402 }
31403 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
31404 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
31405 }
31406 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
31407 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31408 }
31409 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
31410 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
31411 }
31412 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
31413 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31414 }
31415 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
31416 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31417 }
31418 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
31419 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
31420 }
31421 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
31422 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
31423 }
31424 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
31425 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
31426 }
31427 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
31428 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
31429 }
31430 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
31431 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
31432 }
31433 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
31434 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31435 }
31436 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
31437 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31438 }
31439 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
31440 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
31441 }
31442 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
31443 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
31444 }
31445 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
31446 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
31447 }
31448 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
31449 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
31450 }
31451 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
31452 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
31453 }
31454 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
31455 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
31456 }
31457 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
31458 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
31459 }
31460 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
31461 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
31462 }
31463 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
31464 return (void *)((wxControlWithItems *) ((wxChoice *) x));
31465 }
31466 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
31467 return (void *)((wxControlWithItems *) ((wxListBox *) x));
31468 }
31469 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
31470 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
31471 }
31472 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
31473 return (void *)((wxValidator *) ((wxPyValidator *) x));
31474 }
31475 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}};
31476 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}};
31477 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}};
31478 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}};
31479 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}};
31480 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}};
31481 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}};
31482 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}};
31483 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}};
31484 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}};
31485 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}};
31486 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}};
31487 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}};
31488 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}};
31489 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}};
31490 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}};
31491 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}};
31492 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}};
31493 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}};
31494 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}};
31495 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
31496 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}};
31497 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}};
31498 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}};
31499 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}};
31500 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}};
31501 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}};
31502 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}};
31503 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}};
31504 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}};
31505 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}};
31506 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}};
31507 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}};
31508 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}};
31509 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}};
31510 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}};
31511 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}};
31512 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}};
31513 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}};
31514 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}};
31515 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}};
31516 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}};
31517 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}};
31518 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}};
31519 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}};
31520 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}};
31521 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}};
31522 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}};
31523 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}};
31524 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}};
31525 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}};
31526 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}};
31527 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}};
31528 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}};
31529 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}};
31530 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}};
31531 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}};
31532 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}};
31533 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}};
31534 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}};
31535 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}};
31536 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}};
31537 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}};
31538 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}};
31539 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}};
31540 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}};
31541 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}};
31542 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}};
31543 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}};
31544 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}};
31545 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}};
31546 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}};
31547 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}};
31548 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}};
31549 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}};
31550 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}};
31551 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}};
31552 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}};
31553 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
31554 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}};
31555 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}};
31556 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}};
31557 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}};
31558 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}};
31559
31560 static swig_type_info *swig_types_initial[] = {
31561 _swigt__p_wxTextUrlEvent,
31562 _swigt__p_wxBookCtrlEvent,
31563 _swigt__p_wxSizer,
31564 _swigt__p_wxCheckBox,
31565 _swigt__p_wxPyTreeCtrl,
31566 _swigt__p_wxEvent,
31567 _swigt__p_wxGenericDirCtrl,
31568 _swigt__p_bool,
31569 _swigt__p_wxPyTreeItemData,
31570 _swigt__p_wxItemContainer,
31571 _swigt__p_wxDirFilterListCtrl,
31572 _swigt__p_wxPyListCtrl,
31573 _swigt__p_wxStaticLine,
31574 _swigt__p_wxControl,
31575 _swigt__p_wxPyControl,
31576 _swigt__p_wxGauge,
31577 _swigt__p_wxToolBarBase,
31578 _swigt__p_wxFont,
31579 _swigt__p_wxToggleButton,
31580 _swigt__p_wxRadioButton,
31581 _swigt__p_wxChoice,
31582 _swigt__p_wxMemoryDC,
31583 _swigt__p_wxListItemAttr,
31584 _swigt__p_void,
31585 _swigt__p_int,
31586 _swigt__p_wxSize,
31587 _swigt__p_wxDC,
31588 _swigt__p_wxListView,
31589 _swigt__p_wxIcon,
31590 _swigt__p_wxTextCtrl,
31591 _swigt__p_wxNotebook,
31592 _swigt__p_wxNotifyEvent,
31593 _swigt__p_wxArrayString,
31594 _swigt__p_wxListbook,
31595 _swigt__p_wxStaticBitmap,
31596 _swigt__p_wxSlider,
31597 _swigt__p_wxStaticBox,
31598 _swigt__p_wxArrayInt,
31599 _swigt__p_wxContextHelp,
31600 _swigt__p_long,
31601 _swigt__p_wxEvtHandler,
31602 _swigt__p_wxListEvent,
31603 _swigt__p_wxListBox,
31604 _swigt__p_wxCheckListBox,
31605 _swigt__p_wxBookCtrl,
31606 _swigt__p_wxSpinButton,
31607 _swigt__p_wxButton,
31608 _swigt__p_wxBitmapButton,
31609 _swigt__p_wxRect,
31610 _swigt__p_wxContextHelpButton,
31611 _swigt__p_wxRadioBox,
31612 _swigt__p_wxScrollBar,
31613 _swigt__p_char,
31614 _swigt__p_wxTreeItemId,
31615 _swigt__p_wxComboBox,
31616 _swigt__p_wxHelpEvent,
31617 _swigt__p_wxListItem,
31618 _swigt__p_wxNotebookSizer,
31619 _swigt__p_wxSpinEvent,
31620 _swigt__p_wxGenericDragImage,
31621 _swigt__p_wxSpinCtrl,
31622 _swigt__p_wxImageList,
31623 _swigt__p_wxHelpProvider,
31624 _swigt__p_wxTextAttr,
31625 _swigt__p_wxSimpleHelpProvider,
31626 _swigt__p_wxPoint,
31627 _swigt__p_wxListbookEvent,
31628 _swigt__p_wxNotebookEvent,
31629 _swigt__p_wxObject,
31630 _swigt__p_wxCursor,
31631 _swigt__p_wxKeyEvent,
31632 _swigt__p_wxWindow,
31633 _swigt__p_wxString,
31634 _swigt__p_wxBitmap,
31635 _swigt__p_wxTreeEvent,
31636 _swigt__p_wxMouseEvent,
31637 _swigt__p_wxCommandEvent,
31638 _swigt__p_wxStaticText,
31639 _swigt__p_wxControlWithItems,
31640 _swigt__p_wxToolBarToolBase,
31641 _swigt__p_wxColour,
31642 _swigt__p_wxToolBar,
31643 _swigt__p_wxBookCtrlSizer,
31644 _swigt__p_wxValidator,
31645 0
31646 };
31647
31648
31649 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
31650
31651 static swig_const_info swig_const_table[] = {
31652 {0}};
31653
31654 #ifdef __cplusplus
31655 }
31656 #endif
31657
31658 #ifdef __cplusplus
31659 extern "C"
31660 #endif
31661 SWIGEXPORT(void) SWIG_init(void) {
31662 static PyObject *SWIG_globals = 0;
31663 static int typeinit = 0;
31664 PyObject *m, *d;
31665 int i;
31666 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
31667 m = Py_InitModule((char *) SWIG_name, SwigMethods);
31668 d = PyModule_GetDict(m);
31669
31670 if (!typeinit) {
31671 for (i = 0; swig_types_initial[i]; i++) {
31672 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
31673 }
31674 typeinit = 1;
31675 }
31676 SWIG_InstallConstants(d,swig_const_table);
31677
31678 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
31679 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
31680 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
31681 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
31682 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
31683 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
31684 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
31685 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
31686 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
31687 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
31688 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
31689 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
31690 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
31691 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
31692 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
31693 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
31694 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
31695 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
31696 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
31697 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
31698 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
31699 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
31700 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
31701 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
31702 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
31703 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
31704 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
31705 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
31706 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
31707 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
31708 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
31709 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
31710 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
31711 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
31712 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
31713 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
31714 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
31715 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
31716 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
31717 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
31718 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
31719 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
31720 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
31721 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
31722 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
31723 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
31724 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
31725 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
31726 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
31727 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
31728 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
31729 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
31730 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
31731 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
31732 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
31733 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
31734 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
31735 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
31736 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
31737 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
31738 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
31739 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
31740 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
31741 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
31742 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
31743 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
31744 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
31745 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
31746 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
31747 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
31748 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
31749 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
31750 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
31751 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
31752 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
31753 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
31754 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
31755 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
31756 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
31757 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
31758 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
31759 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
31760 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
31761 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
31762 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
31763 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
31764 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
31765 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
31766 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
31767 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
31768 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
31769 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
31770 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
31771 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
31772 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
31773 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
31774 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
31775 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
31776 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
31777 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
31778 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
31779 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
31780 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
31781 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
31782 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
31783 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
31784 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
31785 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
31786 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
31787 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
31788 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
31789 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
31790 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
31791 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
31792 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
31793 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
31794 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
31795 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
31796 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
31797 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
31798 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
31799 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
31800 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
31801 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
31802 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
31803 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
31804 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
31805 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
31806 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
31807 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
31808 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
31809 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
31810 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
31811 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
31812 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
31813 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
31814 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
31815 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
31816 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
31817 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
31818 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
31819 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
31820 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
31821 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
31822 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
31823 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
31824 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
31825 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
31826 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
31827 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
31828 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
31829 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
31830 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
31831 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
31832 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
31833 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
31834 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
31835 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
31836 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
31837 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
31838 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
31839 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
31840 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
31841 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
31842 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
31843 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
31844 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
31845 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
31846 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
31847 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
31848 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
31849 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
31850 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
31851 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
31852 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
31853 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
31854 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
31855 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
31856 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
31857 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
31858 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
31859 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
31860 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
31861 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
31862 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
31863 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
31864 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
31865 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
31866 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
31867 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
31868 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
31869 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
31870 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
31871 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
31872 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
31873 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
31874 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
31875 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
31876 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
31877 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
31878 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
31879 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
31880 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
31881 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
31882 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
31883 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
31884 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
31885 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
31886 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
31887 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
31888 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
31889
31890 // Map renamed classes back to their common name for OOR
31891 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
31892
31893 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
31894 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
31895 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
31896 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
31897 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
31898 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
31899 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
31900 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
31901 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
31902 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
31903 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
31904 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
31905 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
31906 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
31907 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
31908 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
31909 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
31910 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
31911 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
31912 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
31913 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
31914 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
31915 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
31916 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
31917 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
31918 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
31919 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
31920 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
31921 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
31922 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
31923 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
31924 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
31925 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
31926 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
31927 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
31928 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
31929 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
31930 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
31931 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
31932 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
31933 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
31934 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
31935 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
31936 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
31937 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
31938 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
31939 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
31940 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
31941 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
31942 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
31943 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
31944 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
31945 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
31946 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
31947 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
31948 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
31949
31950 // Map renamed classes back to their common name for OOR
31951 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
31952 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
31953
31954 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
31955 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
31956 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
31957 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
31958 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
31959 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
31960 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
31961 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
31962 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
31963 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
31964
31965 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
31966
31967 }
31968