]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/controls_wrap.cpp
Made finding the bakefile related tech note easier.
[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 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
234 #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
235 #define SWIGTYPE_p_wxSizer swig_types[2]
236 #define SWIGTYPE_p_wxCheckBox swig_types[3]
237 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
238 #define SWIGTYPE_p_wxEvent swig_types[5]
239 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
240 #define SWIGTYPE_p_bool swig_types[7]
241 #define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
242 #define SWIGTYPE_p_wxItemContainer swig_types[9]
243 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10]
244 #define SWIGTYPE_p_wxPyListCtrl swig_types[11]
245 #define SWIGTYPE_p_wxStaticLine swig_types[12]
246 #define SWIGTYPE_p_wxControl swig_types[13]
247 #define SWIGTYPE_p_wxPyControl swig_types[14]
248 #define SWIGTYPE_p_wxGauge swig_types[15]
249 #define SWIGTYPE_p_wxToolBarBase swig_types[16]
250 #define SWIGTYPE_p_wxFont swig_types[17]
251 #define SWIGTYPE_p_wxToggleButton swig_types[18]
252 #define SWIGTYPE_p_wxRadioButton swig_types[19]
253 #define SWIGTYPE_p_wxChoice swig_types[20]
254 #define SWIGTYPE_p_wxMemoryDC swig_types[21]
255 #define SWIGTYPE_p_wxListItemAttr swig_types[22]
256 #define SWIGTYPE_p_void swig_types[23]
257 #define SWIGTYPE_p_int swig_types[24]
258 #define SWIGTYPE_p_wxSize swig_types[25]
259 #define SWIGTYPE_p_wxDC swig_types[26]
260 #define SWIGTYPE_p_wxListView swig_types[27]
261 #define SWIGTYPE_p_wxIcon swig_types[28]
262 #define SWIGTYPE_p_wxTextCtrl swig_types[29]
263 #define SWIGTYPE_p_wxNotebook swig_types[30]
264 #define SWIGTYPE_p_wxNotifyEvent swig_types[31]
265 #define SWIGTYPE_p_wxArrayString swig_types[32]
266 #define SWIGTYPE_p_wxListbook swig_types[33]
267 #define SWIGTYPE_p_wxStaticBitmap swig_types[34]
268 #define SWIGTYPE_p_wxSlider swig_types[35]
269 #define SWIGTYPE_p_wxStaticBox swig_types[36]
270 #define SWIGTYPE_p_wxArrayInt swig_types[37]
271 #define SWIGTYPE_p_wxContextHelp swig_types[38]
272 #define SWIGTYPE_p_long swig_types[39]
273 #define SWIGTYPE_p_wxEvtHandler swig_types[40]
274 #define SWIGTYPE_p_wxListEvent swig_types[41]
275 #define SWIGTYPE_p_wxListBox swig_types[42]
276 #define SWIGTYPE_p_wxCheckListBox swig_types[43]
277 #define SWIGTYPE_p_wxBookCtrl swig_types[44]
278 #define SWIGTYPE_p_wxSpinButton swig_types[45]
279 #define SWIGTYPE_p_wxButton swig_types[46]
280 #define SWIGTYPE_p_wxBitmapButton swig_types[47]
281 #define SWIGTYPE_p_wxRect swig_types[48]
282 #define SWIGTYPE_p_wxContextHelpButton swig_types[49]
283 #define SWIGTYPE_p_wxRadioBox swig_types[50]
284 #define SWIGTYPE_p_wxScrollBar swig_types[51]
285 #define SWIGTYPE_p_char swig_types[52]
286 #define SWIGTYPE_p_wxTreeItemId swig_types[53]
287 #define SWIGTYPE_p_wxComboBox swig_types[54]
288 #define SWIGTYPE_p_wxHelpEvent swig_types[55]
289 #define SWIGTYPE_p_wxListItem swig_types[56]
290 #define SWIGTYPE_p_wxNotebookSizer swig_types[57]
291 #define SWIGTYPE_p_wxSpinEvent swig_types[58]
292 #define SWIGTYPE_p_wxGenericDragImage swig_types[59]
293 #define SWIGTYPE_p_wxSpinCtrl swig_types[60]
294 #define SWIGTYPE_p_wxImageList swig_types[61]
295 #define SWIGTYPE_p_wxHelpProvider swig_types[62]
296 #define SWIGTYPE_p_wxTextAttr swig_types[63]
297 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64]
298 #define SWIGTYPE_p_wxPoint swig_types[65]
299 #define SWIGTYPE_p_wxListbookEvent swig_types[66]
300 #define SWIGTYPE_p_wxNotebookEvent swig_types[67]
301 #define SWIGTYPE_p_wxObject swig_types[68]
302 #define SWIGTYPE_p_wxCursor swig_types[69]
303 #define SWIGTYPE_p_wxKeyEvent swig_types[70]
304 #define SWIGTYPE_p_wxWindow swig_types[71]
305 #define SWIGTYPE_p_wxString swig_types[72]
306 #define SWIGTYPE_p_wxBitmap swig_types[73]
307 #define SWIGTYPE_p_wxTreeEvent swig_types[74]
308 #define SWIGTYPE_p_wxMouseEvent swig_types[75]
309 #define SWIGTYPE_p_wxCommandEvent swig_types[76]
310 #define SWIGTYPE_p_wxStaticText swig_types[77]
311 #define SWIGTYPE_p_wxControlWithItems swig_types[78]
312 #define SWIGTYPE_p_wxToolBarToolBase swig_types[79]
313 #define SWIGTYPE_p_wxColour swig_types[80]
314 #define SWIGTYPE_p_wxToolBar swig_types[81]
315 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82]
316 #define SWIGTYPE_p_wxValidator swig_types[83]
317 static swig_type_info *swig_types[85];
318
319 /* -------- TYPES TABLE (END) -------- */
320
321
322 /*-----------------------------------------------
323 @(target):= _controls.so
324 ------------------------------------------------*/
325 #define SWIG_init init_controls
326
327 #define SWIG_name "_controls"
328
329 #include <limits.h>
330 #include <float.h>
331 #include <string.h>
332
333 #ifndef SWIGSTATIC
334 #ifdef __cplusplus
335 #define SWIGSTATIC(a) static inline a
336 #else
337 #define SWIGSTATIC(a) static a
338 #endif
339 #endif
340
341 #ifndef numeric_cast
342 #ifdef __cplusplus
343 #ifdef HAVE_NUMERIC_CAST
344 #define numeric_cast(type,a) numeric_cast<type>(a)
345 #else
346 #define numeric_cast(type,a) static_cast<type>(a)
347 #endif
348 #else
349 #define numeric_cast(type,a) (type)(a)
350 #endif
351 #endif
352
353
354
355 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
356 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
357 #define SWIG_PyObj_FromShort PyInt_FromLong
358 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
359 #define SWIG_PyObj_FromInt PyInt_FromLong
360 #define SWIG_PyObj_FromLong PyInt_FromLong
361 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
362 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
363 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
364 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
365
366
367 #include "wx/wxPython/wxPython.h"
368 #include "wx/wxPython/pyclasses.h"
369
370 static const wxString wxPyPanelNameStr(wxPanelNameStr);
371 static const wxString wxPyEmptyString(wxEmptyString);
372 static const wxString wxPyControlNameStr(wxControlNameStr);
373
374 const wxArrayString wxPyEmptyStringArray;
375
376 static const wxString wxPyButtonNameStr(wxButtonNameStr);
377
378 SWIGSTATIC(int)
379 SWIG_PyObj_AsInt(PyObject *obj)
380 {
381 return numeric_cast(int,
382 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
383 }
384
385
386 SWIGSTATIC(long)
387 SWIG_PyObj_AsLong(PyObject * obj)
388 {
389 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
390 }
391
392 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
393
394 SWIGSTATIC(bool)
395 SWIG_PyObj_AsBool(PyObject *obj)
396 {
397 return PyObject_IsTrue(obj) ? true : false;
398 }
399
400 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
401 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
402 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
403 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
404 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
405 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
406
407 #include <wx/checklst.h>
408
409
410 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
411 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
412 if (clientData) {
413 wxPyClientData* data = new wxPyClientData(clientData);
414 self->Insert(item, pos, data);
415 } else
416 self->Insert(item, pos);
417 }
418 PyObject *wxListBox_GetSelections(wxListBox *self){
419 wxArrayInt lst;
420 self->GetSelections(lst);
421 PyObject *tup = PyTuple_New(lst.GetCount());
422 for(size_t i=0; i<lst.GetCount(); i++) {
423 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
424 }
425 return tup;
426 }
427 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
428 #ifdef __WXMSW__
429 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
430 self->GetItem(item)->SetTextColour(c);
431 #endif
432 }
433 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
434 #ifdef __WXMSW__
435 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
436 self->GetItem(item)->SetBackgroundColour(c);
437 #endif
438 }
439 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
440 #ifdef __WXMSW__
441 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
442 self->GetItem(item)->SetFont(f);
443 #endif
444 }
445 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
446
447 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
448 PyObject* o2;
449 PyObject* o3;
450
451 if (!target) {
452 target = o;
453 } else if (target == Py_None) {
454 Py_DECREF(Py_None);
455 target = o;
456 } else {
457 if (!PyTuple_Check(target)) {
458 o2 = target;
459 target = PyTuple_New(1);
460 PyTuple_SetItem(target, 0, o2);
461 }
462 o3 = PyTuple_New(1);
463 PyTuple_SetItem(o3, 0, o);
464
465 o2 = target;
466 target = PySequence_Concat(o2, o3);
467 Py_DECREF(o2);
468 Py_DECREF(o3);
469 }
470 return target;
471 }
472
473 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
474 self->AppendText(text);
475 }
476 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
477 return self->GetValue().Mid(from, to - from);
478 }
479 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
480 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
481 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
482 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
483 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
484 int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; }
485 int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; }
486 int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; }
487
488 #include <wx/slider.h>
489
490
491 static const wxString wxPySliderNameStr(wxSliderNameStr);
492 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
493
494 #if defined(__WXMAC__) || defined(__WXX11__)
495 // implement dummy classes and such for wxMac
496
497 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
498
499 class wxToggleButton : public wxControl
500 {
501 public:
502 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
503 const wxPoint&, const wxSize&, long,
504 const wxValidator&, const wxString&)
505 { wxPyRaiseNotImplemented(); }
506
507 wxToggleButton()
508 { wxPyRaiseNotImplemented(); }
509 };
510 #endif
511
512 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
513
514 SWIGSTATIC(PyObject* )
515 SWIG_PyObj_FromUnsignedLong(unsigned long value)
516 {
517 return (value > (unsigned long)(LONG_MAX)) ?
518 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
519 }
520
521 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
522 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
523 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
524 if (udata) {
525 Py_INCREF(udata->m_obj);
526 return udata->m_obj;
527 } else {
528 Py_INCREF(Py_None);
529 return Py_None;
530 }
531 }
532 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
533 self->SetClientData(new wxPyUserData(clientData));
534 }
535 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){
536 wxPyUserData* udata = NULL;
537 if (clientData && clientData != Py_None)
538 udata = new wxPyUserData(clientData);
539 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
540 shortHelp, longHelp, udata);
541 }
542 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){
543 wxPyUserData* udata = NULL;
544 if (clientData && clientData != Py_None)
545 udata = new wxPyUserData(clientData);
546 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
547 shortHelp, longHelp, udata);
548 }
549 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
550 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
551 if (udata) {
552 Py_INCREF(udata->m_obj);
553 return udata->m_obj;
554 } else {
555 Py_INCREF(Py_None);
556 return Py_None;
557 }
558 }
559 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
560 self->SetToolClientData(id, new wxPyUserData(clientData));
561 }
562
563 #include <wx/listctrl.h>
564
565
566 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
567 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
568 // Python aware sorting function for wxPyListCtrl
569 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
570 int retval = 0;
571 PyObject* func = (PyObject*)funcPtr;
572 wxPyBeginBlockThreads();
573
574 PyObject* args = Py_BuildValue("(ii)", item1, item2);
575 PyObject* result = PyEval_CallObject(func, args);
576 Py_DECREF(args);
577 if (result) {
578 retval = PyInt_AsLong(result);
579 Py_DECREF(result);
580 }
581
582 wxPyEndBlockThreads();
583 return retval;
584 }
585
586 // C++ Version of a Python aware class
587 class wxPyListCtrl : public wxListCtrl {
588 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
589 public:
590 wxPyListCtrl() : wxListCtrl() {}
591 wxPyListCtrl(wxWindow* parent, wxWindowID id,
592 const wxPoint& pos,
593 const wxSize& size,
594 long style,
595 const wxValidator& validator,
596 const wxString& name) :
597 wxListCtrl(parent, id, pos, size, style, validator, name) {}
598
599 bool Create(wxWindow* parent, wxWindowID id,
600 const wxPoint& pos,
601 const wxSize& size,
602 long style,
603 const wxValidator& validator,
604 const wxString& name) {
605 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
606 }
607
608 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
609 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
610 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
611
612 PYPRIVATE;
613 };
614
615 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
616
617 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
618 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
619 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
620
621 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
622 wxListItem item;
623 item.SetMask( wxLIST_MASK_STATE |
624 wxLIST_MASK_TEXT |
625 wxLIST_MASK_IMAGE |
626 wxLIST_MASK_DATA |
627 wxLIST_SET_ITEM |
628 wxLIST_MASK_WIDTH |
629 wxLIST_MASK_FORMAT
630 );
631 if (self->GetColumn(col, item))
632 return new wxListItem(item);
633 else
634 return NULL;
635 }
636 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
637 wxListItem* info = new wxListItem;
638 info->m_itemId = itemId;
639 info->m_col = col;
640 info->m_mask = 0xFFFF;
641 self->GetItem(*info);
642 return info;
643 }
644 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
645 wxPoint pos;
646 self->GetItemPosition(item, pos);
647 return pos;
648 }
649 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
650 wxRect rect;
651 self->GetItemRect(item, rect, code);
652 return rect;
653 }
654 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
655 if (!PyCallable_Check(func))
656 return False;
657 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
658 }
659 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
660
661
662
663 return (wxWindow*)self->m_mainWin;
664
665 }
666
667 #include <wx/treectrl.h>
668 #include "wx/wxPython/pytree.h"
669
670 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
671 bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){
672 if (!other) return False;
673 return *self == *other;
674 }
675 bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){
676 if (!other) return True;
677 return *self != *other;
678 }
679 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
680 // C++ version of Python aware wxTreeCtrl
681 class wxPyTreeCtrl : public wxTreeCtrl {
682 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
683 public:
684 wxPyTreeCtrl() : wxTreeCtrl() {}
685 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
686 const wxPoint& pos,
687 const wxSize& size,
688 long style,
689 const wxValidator& validator,
690 const wxString& name) :
691 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
692
693 bool Create(wxWindow *parent, wxWindowID id,
694 const wxPoint& pos,
695 const wxSize& size,
696 long style,
697 const wxValidator& validator,
698 const wxString& name) {
699 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
700 }
701
702
703 int OnCompareItems(const wxTreeItemId& item1,
704 const wxTreeItemId& item2) {
705 int rval = 0;
706 bool found;
707 wxPyBeginBlockThreads();
708 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
709 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
710 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
711 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
712 Py_DECREF(o1);
713 Py_DECREF(o2);
714 }
715 wxPyEndBlockThreads();
716 if (! found)
717 rval = wxTreeCtrl::OnCompareItems(item1, item2);
718 return rval;
719 }
720 PYPRIVATE;
721 };
722
723 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
724
725
726
727 #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong
728
729
730 SWIGSTATIC(unsigned int)
731 SWIG_PyObj_AsUnsignedInt(PyObject *obj)
732 {
733 return numeric_cast(unsigned int,
734 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX));
735 }
736
737 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
738 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
739 if (data == NULL) {
740 data = new wxPyTreeItemData();
741 data->SetId(item); // set the id
742 self->SetItemData(item, data);
743 }
744 return data;
745 }
746 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
747 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
748 if (data == NULL) {
749 data = new wxPyTreeItemData();
750 data->SetId(item); // set the id
751 self->SetItemData(item, data);
752 }
753 return data->GetData();
754 }
755 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
756 data->SetId(item); // set the id
757 self->SetItemData(item, data);
758 }
759 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
760 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
761 if (data == NULL) {
762 data = new wxPyTreeItemData(obj);
763 data->SetId(item); // set the id
764 self->SetItemData(item, data);
765 } else
766 data->SetData(obj);
767 }
768 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
769 wxPyBeginBlockThreads();
770 PyObject* rval = PyList_New(0);
771 wxArrayTreeItemIds array;
772 size_t num, x;
773 num = self->GetSelections(array);
774 for (x=0; x < num; x++) {
775 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
776 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
777 PyList_Append(rval, item);
778 }
779 wxPyEndBlockThreads();
780 return rval;
781 }
782 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
783 void* cookie = 0;
784 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
785 wxPyBeginBlockThreads();
786 PyObject* tup = PyTuple_New(2);
787 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
788 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
789 wxPyEndBlockThreads();
790 return tup;
791 }
792 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
793 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
794 wxPyBeginBlockThreads();
795 PyObject* tup = PyTuple_New(2);
796 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
797 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
798 wxPyEndBlockThreads();
799 return tup;
800 }
801 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
802 wxRect rect;
803 if (self->GetBoundingRect(item, rect, textOnly)) {
804 wxPyBeginBlockThreads();
805 wxRect* r = new wxRect(rect);
806 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
807 wxPyEndBlockThreads();
808 return val;
809 }
810 else
811 RETURN_NONE();
812 }
813 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
814 // C++ version of Python aware wxControl
815 class wxPyControl : public wxControl
816 {
817 DECLARE_DYNAMIC_CLASS(wxPyControl)
818 public:
819 wxPyControl() : wxControl() {}
820 wxPyControl(wxWindow* parent, const wxWindowID id,
821 const wxPoint& pos = wxDefaultPosition,
822 const wxSize& size = wxDefaultSize,
823 long style = 0,
824 const wxValidator& validator=wxDefaultValidator,
825 const wxString& name = wxPyControlNameStr)
826 : wxControl(parent, id, pos, size, style, validator, name) {}
827
828
829 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
830 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
831 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
832 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
833
834 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
835 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
836 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
837
838 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
839 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
840
841 DEC_PYCALLBACK__(InitDialog);
842 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
843 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
844 DEC_PYCALLBACK_BOOL_(Validate);
845
846 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
847 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
848 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
849
850 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
851 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
852
853 PYPRIVATE;
854 };
855
856 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
857
858 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
859 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
860 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
861 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
862
863 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
864 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
865 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
866
867 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
868 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
869
870 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
871 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
872 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
873 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
874
875 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
876 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
877 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
878
879 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
880 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
881
882
883
884
885 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
886
887 #include <wx/generic/dragimgg.h>
888
889 #ifdef __cplusplus
890 extern "C" {
891 #endif
892 static int _wrap_ButtonNameStr_set(PyObject *_val) {
893 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
894 return 1;
895 }
896
897
898 static PyObject *_wrap_ButtonNameStr_get() {
899 PyObject *pyobj;
900
901 {
902 #if wxUSE_UNICODE
903 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
904 #else
905 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
906 #endif
907 }
908 return pyobj;
909 }
910
911
912 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
913 PyObject *resultobj;
914 wxWindow *arg1 = (wxWindow *) 0 ;
915 int arg2 ;
916 wxString *arg3 = 0 ;
917 wxPoint const &arg4_defvalue = wxDefaultPosition ;
918 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
919 wxSize const &arg5_defvalue = wxDefaultSize ;
920 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
921 long arg6 = (long) 0 ;
922 wxValidator const &arg7_defvalue = wxDefaultValidator ;
923 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
924 wxString const &arg8_defvalue = wxPyButtonNameStr ;
925 wxString *arg8 = (wxString *) &arg8_defvalue ;
926 wxButton *result;
927 bool temp3 = False ;
928 wxPoint temp4 ;
929 wxSize temp5 ;
930 bool temp8 = False ;
931 PyObject * obj0 = 0 ;
932 PyObject * obj1 = 0 ;
933 PyObject * obj2 = 0 ;
934 PyObject * obj3 = 0 ;
935 PyObject * obj4 = 0 ;
936 PyObject * obj5 = 0 ;
937 PyObject * obj6 = 0 ;
938 PyObject * obj7 = 0 ;
939 char *kwnames[] = {
940 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
941 };
942
943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
945 {
946 arg2 = (int) SWIG_PyObj_AsInt(obj1);
947 if (PyErr_Occurred()) SWIG_fail;
948 }
949 {
950 arg3 = wxString_in_helper(obj2);
951 if (arg3 == NULL) SWIG_fail;
952 temp3 = True;
953 }
954 if (obj3) {
955 {
956 arg4 = &temp4;
957 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
958 }
959 }
960 if (obj4) {
961 {
962 arg5 = &temp5;
963 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
964 }
965 }
966 if (obj5) {
967 {
968 arg6 = (long) SWIG_PyObj_AsLong(obj5);
969 if (PyErr_Occurred()) SWIG_fail;
970 }
971 }
972 if (obj6) {
973 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
974 if (arg7 == NULL) {
975 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
976 }
977 }
978 if (obj7) {
979 {
980 arg8 = wxString_in_helper(obj7);
981 if (arg8 == NULL) SWIG_fail;
982 temp8 = True;
983 }
984 }
985 {
986 PyThreadState* __tstate = wxPyBeginAllowThreads();
987 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
988
989 wxPyEndAllowThreads(__tstate);
990 if (PyErr_Occurred()) SWIG_fail;
991 }
992 {
993 resultobj = wxPyMake_wxObject(result);
994 }
995 {
996 if (temp3)
997 delete arg3;
998 }
999 {
1000 if (temp8)
1001 delete arg8;
1002 }
1003 return resultobj;
1004 fail:
1005 {
1006 if (temp3)
1007 delete arg3;
1008 }
1009 {
1010 if (temp8)
1011 delete arg8;
1012 }
1013 return NULL;
1014 }
1015
1016
1017 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1018 PyObject *resultobj;
1019 wxButton *result;
1020 char *kwnames[] = {
1021 NULL
1022 };
1023
1024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1025 {
1026 PyThreadState* __tstate = wxPyBeginAllowThreads();
1027 result = (wxButton *)new wxButton();
1028
1029 wxPyEndAllowThreads(__tstate);
1030 if (PyErr_Occurred()) SWIG_fail;
1031 }
1032 {
1033 resultobj = wxPyMake_wxObject(result);
1034 }
1035 return resultobj;
1036 fail:
1037 return NULL;
1038 }
1039
1040
1041 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1042 PyObject *resultobj;
1043 wxButton *arg1 = (wxButton *) 0 ;
1044 wxWindow *arg2 = (wxWindow *) 0 ;
1045 int arg3 ;
1046 wxString *arg4 = 0 ;
1047 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1048 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1049 wxSize const &arg6_defvalue = wxDefaultSize ;
1050 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1051 long arg7 = (long) 0 ;
1052 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1053 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1054 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1055 wxString *arg9 = (wxString *) &arg9_defvalue ;
1056 bool result;
1057 bool temp4 = False ;
1058 wxPoint temp5 ;
1059 wxSize temp6 ;
1060 bool temp9 = False ;
1061 PyObject * obj0 = 0 ;
1062 PyObject * obj1 = 0 ;
1063 PyObject * obj2 = 0 ;
1064 PyObject * obj3 = 0 ;
1065 PyObject * obj4 = 0 ;
1066 PyObject * obj5 = 0 ;
1067 PyObject * obj6 = 0 ;
1068 PyObject * obj7 = 0 ;
1069 PyObject * obj8 = 0 ;
1070 char *kwnames[] = {
1071 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1072 };
1073
1074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1076 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1077 {
1078 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1079 if (PyErr_Occurred()) SWIG_fail;
1080 }
1081 {
1082 arg4 = wxString_in_helper(obj3);
1083 if (arg4 == NULL) SWIG_fail;
1084 temp4 = True;
1085 }
1086 if (obj4) {
1087 {
1088 arg5 = &temp5;
1089 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1090 }
1091 }
1092 if (obj5) {
1093 {
1094 arg6 = &temp6;
1095 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1096 }
1097 }
1098 if (obj6) {
1099 {
1100 arg7 = (long) SWIG_PyObj_AsLong(obj6);
1101 if (PyErr_Occurred()) SWIG_fail;
1102 }
1103 }
1104 if (obj7) {
1105 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1106 if (arg8 == NULL) {
1107 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1108 }
1109 }
1110 if (obj8) {
1111 {
1112 arg9 = wxString_in_helper(obj8);
1113 if (arg9 == NULL) SWIG_fail;
1114 temp9 = True;
1115 }
1116 }
1117 {
1118 PyThreadState* __tstate = wxPyBeginAllowThreads();
1119 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1120
1121 wxPyEndAllowThreads(__tstate);
1122 if (PyErr_Occurred()) SWIG_fail;
1123 }
1124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1125 {
1126 if (temp4)
1127 delete arg4;
1128 }
1129 {
1130 if (temp9)
1131 delete arg9;
1132 }
1133 return resultobj;
1134 fail:
1135 {
1136 if (temp4)
1137 delete arg4;
1138 }
1139 {
1140 if (temp9)
1141 delete arg9;
1142 }
1143 return NULL;
1144 }
1145
1146
1147 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1148 PyObject *resultobj;
1149 wxButton *arg1 = (wxButton *) 0 ;
1150 PyObject * obj0 = 0 ;
1151 char *kwnames[] = {
1152 (char *) "self", NULL
1153 };
1154
1155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1157 {
1158 PyThreadState* __tstate = wxPyBeginAllowThreads();
1159 (arg1)->SetDefault();
1160
1161 wxPyEndAllowThreads(__tstate);
1162 if (PyErr_Occurred()) SWIG_fail;
1163 }
1164 Py_INCREF(Py_None); resultobj = Py_None;
1165 return resultobj;
1166 fail:
1167 return NULL;
1168 }
1169
1170
1171 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1172 PyObject *resultobj;
1173 wxSize result;
1174 char *kwnames[] = {
1175 NULL
1176 };
1177
1178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1179 {
1180 PyThreadState* __tstate = wxPyBeginAllowThreads();
1181 result = wxButton::GetDefaultSize();
1182
1183 wxPyEndAllowThreads(__tstate);
1184 if (PyErr_Occurred()) SWIG_fail;
1185 }
1186 {
1187 wxSize * resultptr;
1188 resultptr = new wxSize((wxSize &) result);
1189 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1190 }
1191 return resultobj;
1192 fail:
1193 return NULL;
1194 }
1195
1196
1197 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1198 PyObject *obj;
1199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1200 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1201 Py_INCREF(obj);
1202 return Py_BuildValue((char *)"");
1203 }
1204 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1205 PyObject *resultobj;
1206 wxWindow *arg1 = (wxWindow *) 0 ;
1207 int arg2 ;
1208 wxBitmap *arg3 = 0 ;
1209 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1210 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1211 wxSize const &arg5_defvalue = wxDefaultSize ;
1212 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1213 long arg6 = (long) wxBU_AUTODRAW ;
1214 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1215 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1216 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1217 wxString *arg8 = (wxString *) &arg8_defvalue ;
1218 wxBitmapButton *result;
1219 wxPoint temp4 ;
1220 wxSize temp5 ;
1221 bool temp8 = False ;
1222 PyObject * obj0 = 0 ;
1223 PyObject * obj1 = 0 ;
1224 PyObject * obj2 = 0 ;
1225 PyObject * obj3 = 0 ;
1226 PyObject * obj4 = 0 ;
1227 PyObject * obj5 = 0 ;
1228 PyObject * obj6 = 0 ;
1229 PyObject * obj7 = 0 ;
1230 char *kwnames[] = {
1231 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1232 };
1233
1234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1236 {
1237 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 }
1240 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1241 if (arg3 == NULL) {
1242 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1243 }
1244 if (obj3) {
1245 {
1246 arg4 = &temp4;
1247 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1248 }
1249 }
1250 if (obj4) {
1251 {
1252 arg5 = &temp5;
1253 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1254 }
1255 }
1256 if (obj5) {
1257 {
1258 arg6 = (long) SWIG_PyObj_AsLong(obj5);
1259 if (PyErr_Occurred()) SWIG_fail;
1260 }
1261 }
1262 if (obj6) {
1263 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1264 if (arg7 == NULL) {
1265 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1266 }
1267 }
1268 if (obj7) {
1269 {
1270 arg8 = wxString_in_helper(obj7);
1271 if (arg8 == NULL) SWIG_fail;
1272 temp8 = True;
1273 }
1274 }
1275 {
1276 PyThreadState* __tstate = wxPyBeginAllowThreads();
1277 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1278
1279 wxPyEndAllowThreads(__tstate);
1280 if (PyErr_Occurred()) SWIG_fail;
1281 }
1282 {
1283 resultobj = wxPyMake_wxObject(result);
1284 }
1285 {
1286 if (temp8)
1287 delete arg8;
1288 }
1289 return resultobj;
1290 fail:
1291 {
1292 if (temp8)
1293 delete arg8;
1294 }
1295 return NULL;
1296 }
1297
1298
1299 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1300 PyObject *resultobj;
1301 wxBitmapButton *result;
1302 char *kwnames[] = {
1303 NULL
1304 };
1305
1306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1307 {
1308 PyThreadState* __tstate = wxPyBeginAllowThreads();
1309 result = (wxBitmapButton *)new wxBitmapButton();
1310
1311 wxPyEndAllowThreads(__tstate);
1312 if (PyErr_Occurred()) SWIG_fail;
1313 }
1314 {
1315 resultobj = wxPyMake_wxObject(result);
1316 }
1317 return resultobj;
1318 fail:
1319 return NULL;
1320 }
1321
1322
1323 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1324 PyObject *resultobj;
1325 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1326 wxWindow *arg2 = (wxWindow *) 0 ;
1327 int arg3 ;
1328 wxBitmap *arg4 = 0 ;
1329 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1330 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1331 wxSize const &arg6_defvalue = wxDefaultSize ;
1332 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1333 long arg7 = (long) wxBU_AUTODRAW ;
1334 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1335 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1336 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1337 wxString *arg9 = (wxString *) &arg9_defvalue ;
1338 bool result;
1339 wxPoint temp5 ;
1340 wxSize temp6 ;
1341 bool temp9 = False ;
1342 PyObject * obj0 = 0 ;
1343 PyObject * obj1 = 0 ;
1344 PyObject * obj2 = 0 ;
1345 PyObject * obj3 = 0 ;
1346 PyObject * obj4 = 0 ;
1347 PyObject * obj5 = 0 ;
1348 PyObject * obj6 = 0 ;
1349 PyObject * obj7 = 0 ;
1350 PyObject * obj8 = 0 ;
1351 char *kwnames[] = {
1352 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1353 };
1354
1355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1357 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1358 {
1359 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1360 if (PyErr_Occurred()) SWIG_fail;
1361 }
1362 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1363 if (arg4 == NULL) {
1364 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1365 }
1366 if (obj4) {
1367 {
1368 arg5 = &temp5;
1369 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1370 }
1371 }
1372 if (obj5) {
1373 {
1374 arg6 = &temp6;
1375 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1376 }
1377 }
1378 if (obj6) {
1379 {
1380 arg7 = (long) SWIG_PyObj_AsLong(obj6);
1381 if (PyErr_Occurred()) SWIG_fail;
1382 }
1383 }
1384 if (obj7) {
1385 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1386 if (arg8 == NULL) {
1387 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1388 }
1389 }
1390 if (obj8) {
1391 {
1392 arg9 = wxString_in_helper(obj8);
1393 if (arg9 == NULL) SWIG_fail;
1394 temp9 = True;
1395 }
1396 }
1397 {
1398 PyThreadState* __tstate = wxPyBeginAllowThreads();
1399 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1400
1401 wxPyEndAllowThreads(__tstate);
1402 if (PyErr_Occurred()) SWIG_fail;
1403 }
1404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1405 {
1406 if (temp9)
1407 delete arg9;
1408 }
1409 return resultobj;
1410 fail:
1411 {
1412 if (temp9)
1413 delete arg9;
1414 }
1415 return NULL;
1416 }
1417
1418
1419 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1420 PyObject *resultobj;
1421 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1422 wxBitmap result;
1423 PyObject * obj0 = 0 ;
1424 char *kwnames[] = {
1425 (char *) "self", NULL
1426 };
1427
1428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1430 {
1431 PyThreadState* __tstate = wxPyBeginAllowThreads();
1432 result = (arg1)->GetBitmapLabel();
1433
1434 wxPyEndAllowThreads(__tstate);
1435 if (PyErr_Occurred()) SWIG_fail;
1436 }
1437 {
1438 wxBitmap * resultptr;
1439 resultptr = new wxBitmap((wxBitmap &) result);
1440 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
1441 }
1442 return resultobj;
1443 fail:
1444 return NULL;
1445 }
1446
1447
1448 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1449 PyObject *resultobj;
1450 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1451 wxBitmap result;
1452 PyObject * obj0 = 0 ;
1453 char *kwnames[] = {
1454 (char *) "self", NULL
1455 };
1456
1457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1459 {
1460 PyThreadState* __tstate = wxPyBeginAllowThreads();
1461 result = (arg1)->GetBitmapDisabled();
1462
1463 wxPyEndAllowThreads(__tstate);
1464 if (PyErr_Occurred()) SWIG_fail;
1465 }
1466 {
1467 wxBitmap * resultptr;
1468 resultptr = new wxBitmap((wxBitmap &) result);
1469 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
1470 }
1471 return resultobj;
1472 fail:
1473 return NULL;
1474 }
1475
1476
1477 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1478 PyObject *resultobj;
1479 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1480 wxBitmap result;
1481 PyObject * obj0 = 0 ;
1482 char *kwnames[] = {
1483 (char *) "self", NULL
1484 };
1485
1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1488 {
1489 PyThreadState* __tstate = wxPyBeginAllowThreads();
1490 result = (arg1)->GetBitmapFocus();
1491
1492 wxPyEndAllowThreads(__tstate);
1493 if (PyErr_Occurred()) SWIG_fail;
1494 }
1495 {
1496 wxBitmap * resultptr;
1497 resultptr = new wxBitmap((wxBitmap &) result);
1498 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
1499 }
1500 return resultobj;
1501 fail:
1502 return NULL;
1503 }
1504
1505
1506 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1507 PyObject *resultobj;
1508 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1509 wxBitmap result;
1510 PyObject * obj0 = 0 ;
1511 char *kwnames[] = {
1512 (char *) "self", NULL
1513 };
1514
1515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1517 {
1518 PyThreadState* __tstate = wxPyBeginAllowThreads();
1519 result = (arg1)->GetBitmapSelected();
1520
1521 wxPyEndAllowThreads(__tstate);
1522 if (PyErr_Occurred()) SWIG_fail;
1523 }
1524 {
1525 wxBitmap * resultptr;
1526 resultptr = new wxBitmap((wxBitmap &) result);
1527 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
1528 }
1529 return resultobj;
1530 fail:
1531 return NULL;
1532 }
1533
1534
1535 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1536 PyObject *resultobj;
1537 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1538 wxBitmap *arg2 = 0 ;
1539 PyObject * obj0 = 0 ;
1540 PyObject * obj1 = 0 ;
1541 char *kwnames[] = {
1542 (char *) "self",(char *) "bitmap", NULL
1543 };
1544
1545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1547 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1548 if (arg2 == NULL) {
1549 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1550 }
1551 {
1552 PyThreadState* __tstate = wxPyBeginAllowThreads();
1553 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1554
1555 wxPyEndAllowThreads(__tstate);
1556 if (PyErr_Occurred()) SWIG_fail;
1557 }
1558 Py_INCREF(Py_None); resultobj = Py_None;
1559 return resultobj;
1560 fail:
1561 return NULL;
1562 }
1563
1564
1565 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1566 PyObject *resultobj;
1567 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1568 wxBitmap *arg2 = 0 ;
1569 PyObject * obj0 = 0 ;
1570 PyObject * obj1 = 0 ;
1571 char *kwnames[] = {
1572 (char *) "self",(char *) "bitmap", NULL
1573 };
1574
1575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1577 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1578 if (arg2 == NULL) {
1579 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1580 }
1581 {
1582 PyThreadState* __tstate = wxPyBeginAllowThreads();
1583 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1584
1585 wxPyEndAllowThreads(__tstate);
1586 if (PyErr_Occurred()) SWIG_fail;
1587 }
1588 Py_INCREF(Py_None); resultobj = Py_None;
1589 return resultobj;
1590 fail:
1591 return NULL;
1592 }
1593
1594
1595 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1596 PyObject *resultobj;
1597 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1598 wxBitmap *arg2 = 0 ;
1599 PyObject * obj0 = 0 ;
1600 PyObject * obj1 = 0 ;
1601 char *kwnames[] = {
1602 (char *) "self",(char *) "bitmap", NULL
1603 };
1604
1605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1607 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1608 if (arg2 == NULL) {
1609 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1610 }
1611 {
1612 PyThreadState* __tstate = wxPyBeginAllowThreads();
1613 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1614
1615 wxPyEndAllowThreads(__tstate);
1616 if (PyErr_Occurred()) SWIG_fail;
1617 }
1618 Py_INCREF(Py_None); resultobj = Py_None;
1619 return resultobj;
1620 fail:
1621 return NULL;
1622 }
1623
1624
1625 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1626 PyObject *resultobj;
1627 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1628 wxBitmap *arg2 = 0 ;
1629 PyObject * obj0 = 0 ;
1630 PyObject * obj1 = 0 ;
1631 char *kwnames[] = {
1632 (char *) "self",(char *) "bitmap", NULL
1633 };
1634
1635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1637 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1638 if (arg2 == NULL) {
1639 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1640 }
1641 {
1642 PyThreadState* __tstate = wxPyBeginAllowThreads();
1643 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1644
1645 wxPyEndAllowThreads(__tstate);
1646 if (PyErr_Occurred()) SWIG_fail;
1647 }
1648 Py_INCREF(Py_None); resultobj = Py_None;
1649 return resultobj;
1650 fail:
1651 return NULL;
1652 }
1653
1654
1655 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1656 PyObject *resultobj;
1657 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1658 int arg2 ;
1659 int arg3 ;
1660 PyObject * obj0 = 0 ;
1661 PyObject * obj1 = 0 ;
1662 PyObject * obj2 = 0 ;
1663 char *kwnames[] = {
1664 (char *) "self",(char *) "x",(char *) "y", NULL
1665 };
1666
1667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1669 {
1670 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1671 if (PyErr_Occurred()) SWIG_fail;
1672 }
1673 {
1674 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1675 if (PyErr_Occurred()) SWIG_fail;
1676 }
1677 {
1678 PyThreadState* __tstate = wxPyBeginAllowThreads();
1679 (arg1)->SetMargins(arg2,arg3);
1680
1681 wxPyEndAllowThreads(__tstate);
1682 if (PyErr_Occurred()) SWIG_fail;
1683 }
1684 Py_INCREF(Py_None); resultobj = Py_None;
1685 return resultobj;
1686 fail:
1687 return NULL;
1688 }
1689
1690
1691 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1692 PyObject *resultobj;
1693 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1694 int result;
1695 PyObject * obj0 = 0 ;
1696 char *kwnames[] = {
1697 (char *) "self", NULL
1698 };
1699
1700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1702 {
1703 PyThreadState* __tstate = wxPyBeginAllowThreads();
1704 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1705
1706 wxPyEndAllowThreads(__tstate);
1707 if (PyErr_Occurred()) SWIG_fail;
1708 }
1709 resultobj = SWIG_PyObj_FromInt((int)result);
1710 return resultobj;
1711 fail:
1712 return NULL;
1713 }
1714
1715
1716 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1717 PyObject *resultobj;
1718 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1719 int result;
1720 PyObject * obj0 = 0 ;
1721 char *kwnames[] = {
1722 (char *) "self", NULL
1723 };
1724
1725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1727 {
1728 PyThreadState* __tstate = wxPyBeginAllowThreads();
1729 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1730
1731 wxPyEndAllowThreads(__tstate);
1732 if (PyErr_Occurred()) SWIG_fail;
1733 }
1734 resultobj = SWIG_PyObj_FromInt((int)result);
1735 return resultobj;
1736 fail:
1737 return NULL;
1738 }
1739
1740
1741 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1742 PyObject *obj;
1743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1744 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1745 Py_INCREF(obj);
1746 return Py_BuildValue((char *)"");
1747 }
1748 static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1749 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1750 return 1;
1751 }
1752
1753
1754 static PyObject *_wrap_CheckBoxNameStr_get() {
1755 PyObject *pyobj;
1756
1757 {
1758 #if wxUSE_UNICODE
1759 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1760 #else
1761 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1762 #endif
1763 }
1764 return pyobj;
1765 }
1766
1767
1768 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1769 PyObject *resultobj;
1770 wxWindow *arg1 = (wxWindow *) 0 ;
1771 int arg2 ;
1772 wxString *arg3 = 0 ;
1773 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1774 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1775 wxSize const &arg5_defvalue = wxDefaultSize ;
1776 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1777 long arg6 = (long) 0 ;
1778 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1779 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1780 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1781 wxString *arg8 = (wxString *) &arg8_defvalue ;
1782 wxCheckBox *result;
1783 bool temp3 = False ;
1784 wxPoint temp4 ;
1785 wxSize temp5 ;
1786 bool temp8 = False ;
1787 PyObject * obj0 = 0 ;
1788 PyObject * obj1 = 0 ;
1789 PyObject * obj2 = 0 ;
1790 PyObject * obj3 = 0 ;
1791 PyObject * obj4 = 0 ;
1792 PyObject * obj5 = 0 ;
1793 PyObject * obj6 = 0 ;
1794 PyObject * obj7 = 0 ;
1795 char *kwnames[] = {
1796 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1797 };
1798
1799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1801 {
1802 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1803 if (PyErr_Occurred()) SWIG_fail;
1804 }
1805 {
1806 arg3 = wxString_in_helper(obj2);
1807 if (arg3 == NULL) SWIG_fail;
1808 temp3 = True;
1809 }
1810 if (obj3) {
1811 {
1812 arg4 = &temp4;
1813 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1814 }
1815 }
1816 if (obj4) {
1817 {
1818 arg5 = &temp5;
1819 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1820 }
1821 }
1822 if (obj5) {
1823 {
1824 arg6 = (long) SWIG_PyObj_AsLong(obj5);
1825 if (PyErr_Occurred()) SWIG_fail;
1826 }
1827 }
1828 if (obj6) {
1829 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1830 if (arg7 == NULL) {
1831 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1832 }
1833 }
1834 if (obj7) {
1835 {
1836 arg8 = wxString_in_helper(obj7);
1837 if (arg8 == NULL) SWIG_fail;
1838 temp8 = True;
1839 }
1840 }
1841 {
1842 PyThreadState* __tstate = wxPyBeginAllowThreads();
1843 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1844
1845 wxPyEndAllowThreads(__tstate);
1846 if (PyErr_Occurred()) SWIG_fail;
1847 }
1848 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1);
1849 {
1850 if (temp3)
1851 delete arg3;
1852 }
1853 {
1854 if (temp8)
1855 delete arg8;
1856 }
1857 return resultobj;
1858 fail:
1859 {
1860 if (temp3)
1861 delete arg3;
1862 }
1863 {
1864 if (temp8)
1865 delete arg8;
1866 }
1867 return NULL;
1868 }
1869
1870
1871 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1872 PyObject *resultobj;
1873 wxCheckBox *result;
1874 char *kwnames[] = {
1875 NULL
1876 };
1877
1878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
1879 {
1880 PyThreadState* __tstate = wxPyBeginAllowThreads();
1881 result = (wxCheckBox *)new wxCheckBox();
1882
1883 wxPyEndAllowThreads(__tstate);
1884 if (PyErr_Occurred()) SWIG_fail;
1885 }
1886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1);
1887 return resultobj;
1888 fail:
1889 return NULL;
1890 }
1891
1892
1893 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1894 PyObject *resultobj;
1895 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
1896 wxWindow *arg2 = (wxWindow *) 0 ;
1897 int arg3 ;
1898 wxString *arg4 = 0 ;
1899 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1900 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1901 wxSize const &arg6_defvalue = wxDefaultSize ;
1902 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1903 long arg7 = (long) 0 ;
1904 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1905 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1906 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
1907 wxString *arg9 = (wxString *) &arg9_defvalue ;
1908 bool result;
1909 bool temp4 = False ;
1910 wxPoint temp5 ;
1911 wxSize temp6 ;
1912 bool temp9 = False ;
1913 PyObject * obj0 = 0 ;
1914 PyObject * obj1 = 0 ;
1915 PyObject * obj2 = 0 ;
1916 PyObject * obj3 = 0 ;
1917 PyObject * obj4 = 0 ;
1918 PyObject * obj5 = 0 ;
1919 PyObject * obj6 = 0 ;
1920 PyObject * obj7 = 0 ;
1921 PyObject * obj8 = 0 ;
1922 char *kwnames[] = {
1923 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1924 };
1925
1926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1928 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1929 {
1930 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1931 if (PyErr_Occurred()) SWIG_fail;
1932 }
1933 {
1934 arg4 = wxString_in_helper(obj3);
1935 if (arg4 == NULL) SWIG_fail;
1936 temp4 = True;
1937 }
1938 if (obj4) {
1939 {
1940 arg5 = &temp5;
1941 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1942 }
1943 }
1944 if (obj5) {
1945 {
1946 arg6 = &temp6;
1947 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1948 }
1949 }
1950 if (obj6) {
1951 {
1952 arg7 = (long) SWIG_PyObj_AsLong(obj6);
1953 if (PyErr_Occurred()) SWIG_fail;
1954 }
1955 }
1956 if (obj7) {
1957 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1958 if (arg8 == NULL) {
1959 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1960 }
1961 }
1962 if (obj8) {
1963 {
1964 arg9 = wxString_in_helper(obj8);
1965 if (arg9 == NULL) SWIG_fail;
1966 temp9 = True;
1967 }
1968 }
1969 {
1970 PyThreadState* __tstate = wxPyBeginAllowThreads();
1971 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1972
1973 wxPyEndAllowThreads(__tstate);
1974 if (PyErr_Occurred()) SWIG_fail;
1975 }
1976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1977 {
1978 if (temp4)
1979 delete arg4;
1980 }
1981 {
1982 if (temp9)
1983 delete arg9;
1984 }
1985 return resultobj;
1986 fail:
1987 {
1988 if (temp4)
1989 delete arg4;
1990 }
1991 {
1992 if (temp9)
1993 delete arg9;
1994 }
1995 return NULL;
1996 }
1997
1998
1999 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2000 PyObject *resultobj;
2001 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2002 bool result;
2003 PyObject * obj0 = 0 ;
2004 char *kwnames[] = {
2005 (char *) "self", NULL
2006 };
2007
2008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2010 {
2011 PyThreadState* __tstate = wxPyBeginAllowThreads();
2012 result = (bool)(arg1)->GetValue();
2013
2014 wxPyEndAllowThreads(__tstate);
2015 if (PyErr_Occurred()) SWIG_fail;
2016 }
2017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2018 return resultobj;
2019 fail:
2020 return NULL;
2021 }
2022
2023
2024 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2025 PyObject *resultobj;
2026 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2027 bool result;
2028 PyObject * obj0 = 0 ;
2029 char *kwnames[] = {
2030 (char *) "self", NULL
2031 };
2032
2033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2035 {
2036 PyThreadState* __tstate = wxPyBeginAllowThreads();
2037 result = (bool)(arg1)->IsChecked();
2038
2039 wxPyEndAllowThreads(__tstate);
2040 if (PyErr_Occurred()) SWIG_fail;
2041 }
2042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2043 return resultobj;
2044 fail:
2045 return NULL;
2046 }
2047
2048
2049 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2050 PyObject *resultobj;
2051 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2052 bool arg2 ;
2053 PyObject * obj0 = 0 ;
2054 PyObject * obj1 = 0 ;
2055 char *kwnames[] = {
2056 (char *) "self",(char *) "state", NULL
2057 };
2058
2059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2061 {
2062 arg2 = (bool const) SWIG_PyObj_AsBool(obj1);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 }
2065 {
2066 PyThreadState* __tstate = wxPyBeginAllowThreads();
2067 (arg1)->SetValue(arg2);
2068
2069 wxPyEndAllowThreads(__tstate);
2070 if (PyErr_Occurred()) SWIG_fail;
2071 }
2072 Py_INCREF(Py_None); resultobj = Py_None;
2073 return resultobj;
2074 fail:
2075 return NULL;
2076 }
2077
2078
2079 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2080 PyObject *resultobj;
2081 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2082 int result;
2083 PyObject * obj0 = 0 ;
2084 char *kwnames[] = {
2085 (char *) "self", NULL
2086 };
2087
2088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2090 {
2091 PyThreadState* __tstate = wxPyBeginAllowThreads();
2092 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2093
2094 wxPyEndAllowThreads(__tstate);
2095 if (PyErr_Occurred()) SWIG_fail;
2096 }
2097 resultobj = SWIG_PyObj_FromInt((int)result);
2098 return resultobj;
2099 fail:
2100 return NULL;
2101 }
2102
2103
2104 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2105 PyObject *resultobj;
2106 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2107 int arg2 ;
2108 PyObject * obj0 = 0 ;
2109 PyObject * obj1 = 0 ;
2110 char *kwnames[] = {
2111 (char *) "self",(char *) "state", NULL
2112 };
2113
2114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2116 {
2117 arg2 = (wxCheckBoxState) SWIG_PyObj_AsInt(obj1);
2118 if (PyErr_Occurred()) SWIG_fail;
2119 }
2120 {
2121 PyThreadState* __tstate = wxPyBeginAllowThreads();
2122 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2123
2124 wxPyEndAllowThreads(__tstate);
2125 if (PyErr_Occurred()) SWIG_fail;
2126 }
2127 Py_INCREF(Py_None); resultobj = Py_None;
2128 return resultobj;
2129 fail:
2130 return NULL;
2131 }
2132
2133
2134 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2135 PyObject *resultobj;
2136 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2137 bool result;
2138 PyObject * obj0 = 0 ;
2139 char *kwnames[] = {
2140 (char *) "self", NULL
2141 };
2142
2143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2145 {
2146 PyThreadState* __tstate = wxPyBeginAllowThreads();
2147 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2148
2149 wxPyEndAllowThreads(__tstate);
2150 if (PyErr_Occurred()) SWIG_fail;
2151 }
2152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2153 return resultobj;
2154 fail:
2155 return NULL;
2156 }
2157
2158
2159 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2160 PyObject *resultobj;
2161 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2162 bool result;
2163 PyObject * obj0 = 0 ;
2164 char *kwnames[] = {
2165 (char *) "self", NULL
2166 };
2167
2168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2170 {
2171 PyThreadState* __tstate = wxPyBeginAllowThreads();
2172 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2173
2174 wxPyEndAllowThreads(__tstate);
2175 if (PyErr_Occurred()) SWIG_fail;
2176 }
2177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2178 return resultobj;
2179 fail:
2180 return NULL;
2181 }
2182
2183
2184 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2185 PyObject *obj;
2186 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2187 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2188 Py_INCREF(obj);
2189 return Py_BuildValue((char *)"");
2190 }
2191 static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2192 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2193 return 1;
2194 }
2195
2196
2197 static PyObject *_wrap_ChoiceNameStr_get() {
2198 PyObject *pyobj;
2199
2200 {
2201 #if wxUSE_UNICODE
2202 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2203 #else
2204 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2205 #endif
2206 }
2207 return pyobj;
2208 }
2209
2210
2211 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2212 PyObject *resultobj;
2213 wxWindow *arg1 = (wxWindow *) 0 ;
2214 int arg2 ;
2215 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2216 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2217 wxSize const &arg4_defvalue = wxDefaultSize ;
2218 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2219 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2220 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2221 long arg6 = (long) 0 ;
2222 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2223 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2224 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2225 wxString *arg8 = (wxString *) &arg8_defvalue ;
2226 wxChoice *result;
2227 wxPoint temp3 ;
2228 wxSize temp4 ;
2229 bool temp5 = False ;
2230 bool temp8 = False ;
2231 PyObject * obj0 = 0 ;
2232 PyObject * obj1 = 0 ;
2233 PyObject * obj2 = 0 ;
2234 PyObject * obj3 = 0 ;
2235 PyObject * obj4 = 0 ;
2236 PyObject * obj5 = 0 ;
2237 PyObject * obj6 = 0 ;
2238 PyObject * obj7 = 0 ;
2239 char *kwnames[] = {
2240 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2241 };
2242
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2245 {
2246 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2247 if (PyErr_Occurred()) SWIG_fail;
2248 }
2249 if (obj2) {
2250 {
2251 arg3 = &temp3;
2252 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2253 }
2254 }
2255 if (obj3) {
2256 {
2257 arg4 = &temp4;
2258 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2259 }
2260 }
2261 if (obj4) {
2262 {
2263 if (! PySequence_Check(obj4)) {
2264 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2265 SWIG_fail;
2266 }
2267 arg5 = new wxArrayString;
2268 temp5 = True;
2269 int i, len=PySequence_Length(obj4);
2270 for (i=0; i<len; i++) {
2271 PyObject* item = PySequence_GetItem(obj4, i);
2272 #if wxUSE_UNICODE
2273 PyObject* str = PyObject_Unicode(item);
2274 #else
2275 PyObject* str = PyObject_Str(item);
2276 #endif
2277 arg5->Add(Py2wxString(str));
2278 Py_DECREF(item);
2279 Py_DECREF(str);
2280 }
2281 }
2282 }
2283 if (obj5) {
2284 {
2285 arg6 = (long) SWIG_PyObj_AsLong(obj5);
2286 if (PyErr_Occurred()) SWIG_fail;
2287 }
2288 }
2289 if (obj6) {
2290 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2291 if (arg7 == NULL) {
2292 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2293 }
2294 }
2295 if (obj7) {
2296 {
2297 arg8 = wxString_in_helper(obj7);
2298 if (arg8 == NULL) SWIG_fail;
2299 temp8 = True;
2300 }
2301 }
2302 {
2303 PyThreadState* __tstate = wxPyBeginAllowThreads();
2304 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2305
2306 wxPyEndAllowThreads(__tstate);
2307 if (PyErr_Occurred()) SWIG_fail;
2308 }
2309 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1);
2310 {
2311 if (temp5) delete arg5;
2312 }
2313 {
2314 if (temp8)
2315 delete arg8;
2316 }
2317 return resultobj;
2318 fail:
2319 {
2320 if (temp5) delete arg5;
2321 }
2322 {
2323 if (temp8)
2324 delete arg8;
2325 }
2326 return NULL;
2327 }
2328
2329
2330 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2331 PyObject *resultobj;
2332 wxChoice *result;
2333 char *kwnames[] = {
2334 NULL
2335 };
2336
2337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2338 {
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
2340 result = (wxChoice *)new wxChoice();
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
2345 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1);
2346 return resultobj;
2347 fail:
2348 return NULL;
2349 }
2350
2351
2352 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2353 PyObject *resultobj;
2354 wxChoice *arg1 = (wxChoice *) 0 ;
2355 wxWindow *arg2 = (wxWindow *) 0 ;
2356 int arg3 ;
2357 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2358 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2359 wxSize const &arg5_defvalue = wxDefaultSize ;
2360 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2361 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2362 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2363 long arg7 = (long) 0 ;
2364 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2365 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2366 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2367 wxString *arg9 = (wxString *) &arg9_defvalue ;
2368 bool result;
2369 wxPoint temp4 ;
2370 wxSize temp5 ;
2371 bool temp6 = False ;
2372 bool temp9 = False ;
2373 PyObject * obj0 = 0 ;
2374 PyObject * obj1 = 0 ;
2375 PyObject * obj2 = 0 ;
2376 PyObject * obj3 = 0 ;
2377 PyObject * obj4 = 0 ;
2378 PyObject * obj5 = 0 ;
2379 PyObject * obj6 = 0 ;
2380 PyObject * obj7 = 0 ;
2381 PyObject * obj8 = 0 ;
2382 char *kwnames[] = {
2383 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2384 };
2385
2386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2388 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2389 {
2390 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2391 if (PyErr_Occurred()) SWIG_fail;
2392 }
2393 if (obj3) {
2394 {
2395 arg4 = &temp4;
2396 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2397 }
2398 }
2399 if (obj4) {
2400 {
2401 arg5 = &temp5;
2402 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2403 }
2404 }
2405 if (obj5) {
2406 {
2407 if (! PySequence_Check(obj5)) {
2408 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2409 SWIG_fail;
2410 }
2411 arg6 = new wxArrayString;
2412 temp6 = True;
2413 int i, len=PySequence_Length(obj5);
2414 for (i=0; i<len; i++) {
2415 PyObject* item = PySequence_GetItem(obj5, i);
2416 #if wxUSE_UNICODE
2417 PyObject* str = PyObject_Unicode(item);
2418 #else
2419 PyObject* str = PyObject_Str(item);
2420 #endif
2421 arg6->Add(Py2wxString(str));
2422 Py_DECREF(item);
2423 Py_DECREF(str);
2424 }
2425 }
2426 }
2427 if (obj6) {
2428 {
2429 arg7 = (long) SWIG_PyObj_AsLong(obj6);
2430 if (PyErr_Occurred()) SWIG_fail;
2431 }
2432 }
2433 if (obj7) {
2434 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2435 if (arg8 == NULL) {
2436 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2437 }
2438 }
2439 if (obj8) {
2440 {
2441 arg9 = wxString_in_helper(obj8);
2442 if (arg9 == NULL) SWIG_fail;
2443 temp9 = True;
2444 }
2445 }
2446 {
2447 PyThreadState* __tstate = wxPyBeginAllowThreads();
2448 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2449
2450 wxPyEndAllowThreads(__tstate);
2451 if (PyErr_Occurred()) SWIG_fail;
2452 }
2453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2454 {
2455 if (temp6) delete arg6;
2456 }
2457 {
2458 if (temp9)
2459 delete arg9;
2460 }
2461 return resultobj;
2462 fail:
2463 {
2464 if (temp6) delete arg6;
2465 }
2466 {
2467 if (temp9)
2468 delete arg9;
2469 }
2470 return NULL;
2471 }
2472
2473
2474 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2475 PyObject *resultobj;
2476 wxChoice *arg1 = (wxChoice *) 0 ;
2477 int arg2 ;
2478 PyObject * obj0 = 0 ;
2479 PyObject * obj1 = 0 ;
2480 char *kwnames[] = {
2481 (char *) "self",(char *) "n", NULL
2482 };
2483
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2486 {
2487 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
2488 if (PyErr_Occurred()) SWIG_fail;
2489 }
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 (arg1)->SetSelection(arg2);
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) SWIG_fail;
2496 }
2497 Py_INCREF(Py_None); resultobj = Py_None;
2498 return resultobj;
2499 fail:
2500 return NULL;
2501 }
2502
2503
2504 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 wxChoice *arg1 = (wxChoice *) 0 ;
2507 wxString *arg2 = 0 ;
2508 bool temp2 = False ;
2509 PyObject * obj0 = 0 ;
2510 PyObject * obj1 = 0 ;
2511 char *kwnames[] = {
2512 (char *) "self",(char *) "string", NULL
2513 };
2514
2515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2517 {
2518 arg2 = wxString_in_helper(obj1);
2519 if (arg2 == NULL) SWIG_fail;
2520 temp2 = True;
2521 }
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
2524 (arg1)->SetStringSelection((wxString const &)*arg2);
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
2529 Py_INCREF(Py_None); resultobj = Py_None;
2530 {
2531 if (temp2)
2532 delete arg2;
2533 }
2534 return resultobj;
2535 fail:
2536 {
2537 if (temp2)
2538 delete arg2;
2539 }
2540 return NULL;
2541 }
2542
2543
2544 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2545 PyObject *resultobj;
2546 wxChoice *arg1 = (wxChoice *) 0 ;
2547 int arg2 ;
2548 wxString *arg3 = 0 ;
2549 bool temp3 = False ;
2550 PyObject * obj0 = 0 ;
2551 PyObject * obj1 = 0 ;
2552 PyObject * obj2 = 0 ;
2553 char *kwnames[] = {
2554 (char *) "self",(char *) "n",(char *) "string", NULL
2555 };
2556
2557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2559 {
2560 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2561 if (PyErr_Occurred()) SWIG_fail;
2562 }
2563 {
2564 arg3 = wxString_in_helper(obj2);
2565 if (arg3 == NULL) SWIG_fail;
2566 temp3 = True;
2567 }
2568 {
2569 PyThreadState* __tstate = wxPyBeginAllowThreads();
2570 (arg1)->SetString(arg2,(wxString const &)*arg3);
2571
2572 wxPyEndAllowThreads(__tstate);
2573 if (PyErr_Occurred()) SWIG_fail;
2574 }
2575 Py_INCREF(Py_None); resultobj = Py_None;
2576 {
2577 if (temp3)
2578 delete arg3;
2579 }
2580 return resultobj;
2581 fail:
2582 {
2583 if (temp3)
2584 delete arg3;
2585 }
2586 return NULL;
2587 }
2588
2589
2590 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2591 PyObject *obj;
2592 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2593 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2594 Py_INCREF(obj);
2595 return Py_BuildValue((char *)"");
2596 }
2597 static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2598 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2599 return 1;
2600 }
2601
2602
2603 static PyObject *_wrap_ComboBoxNameStr_get() {
2604 PyObject *pyobj;
2605
2606 {
2607 #if wxUSE_UNICODE
2608 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2609 #else
2610 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2611 #endif
2612 }
2613 return pyobj;
2614 }
2615
2616
2617 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2618 PyObject *resultobj;
2619 wxWindow *arg1 = (wxWindow *) 0 ;
2620 int arg2 ;
2621 wxString const &arg3_defvalue = wxPyEmptyString ;
2622 wxString *arg3 = (wxString *) &arg3_defvalue ;
2623 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2624 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2625 wxSize const &arg5_defvalue = wxDefaultSize ;
2626 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2627 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2628 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2629 long arg7 = (long) 0 ;
2630 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2631 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2632 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2633 wxString *arg9 = (wxString *) &arg9_defvalue ;
2634 wxComboBox *result;
2635 bool temp3 = False ;
2636 wxPoint temp4 ;
2637 wxSize temp5 ;
2638 bool temp6 = False ;
2639 bool temp9 = False ;
2640 PyObject * obj0 = 0 ;
2641 PyObject * obj1 = 0 ;
2642 PyObject * obj2 = 0 ;
2643 PyObject * obj3 = 0 ;
2644 PyObject * obj4 = 0 ;
2645 PyObject * obj5 = 0 ;
2646 PyObject * obj6 = 0 ;
2647 PyObject * obj7 = 0 ;
2648 PyObject * obj8 = 0 ;
2649 char *kwnames[] = {
2650 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2651 };
2652
2653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2655 {
2656 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2657 if (PyErr_Occurred()) SWIG_fail;
2658 }
2659 if (obj2) {
2660 {
2661 arg3 = wxString_in_helper(obj2);
2662 if (arg3 == NULL) SWIG_fail;
2663 temp3 = True;
2664 }
2665 }
2666 if (obj3) {
2667 {
2668 arg4 = &temp4;
2669 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2670 }
2671 }
2672 if (obj4) {
2673 {
2674 arg5 = &temp5;
2675 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2676 }
2677 }
2678 if (obj5) {
2679 {
2680 if (! PySequence_Check(obj5)) {
2681 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2682 SWIG_fail;
2683 }
2684 arg6 = new wxArrayString;
2685 temp6 = True;
2686 int i, len=PySequence_Length(obj5);
2687 for (i=0; i<len; i++) {
2688 PyObject* item = PySequence_GetItem(obj5, i);
2689 #if wxUSE_UNICODE
2690 PyObject* str = PyObject_Unicode(item);
2691 #else
2692 PyObject* str = PyObject_Str(item);
2693 #endif
2694 arg6->Add(Py2wxString(str));
2695 Py_DECREF(item);
2696 Py_DECREF(str);
2697 }
2698 }
2699 }
2700 if (obj6) {
2701 {
2702 arg7 = (long) SWIG_PyObj_AsLong(obj6);
2703 if (PyErr_Occurred()) SWIG_fail;
2704 }
2705 }
2706 if (obj7) {
2707 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2708 if (arg8 == NULL) {
2709 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2710 }
2711 }
2712 if (obj8) {
2713 {
2714 arg9 = wxString_in_helper(obj8);
2715 if (arg9 == NULL) SWIG_fail;
2716 temp9 = True;
2717 }
2718 }
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 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);
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1);
2727 {
2728 if (temp3)
2729 delete arg3;
2730 }
2731 {
2732 if (temp6) delete arg6;
2733 }
2734 {
2735 if (temp9)
2736 delete arg9;
2737 }
2738 return resultobj;
2739 fail:
2740 {
2741 if (temp3)
2742 delete arg3;
2743 }
2744 {
2745 if (temp6) delete arg6;
2746 }
2747 {
2748 if (temp9)
2749 delete arg9;
2750 }
2751 return NULL;
2752 }
2753
2754
2755 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2756 PyObject *resultobj;
2757 wxComboBox *result;
2758 char *kwnames[] = {
2759 NULL
2760 };
2761
2762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
2763 {
2764 PyThreadState* __tstate = wxPyBeginAllowThreads();
2765 result = (wxComboBox *)new wxComboBox();
2766
2767 wxPyEndAllowThreads(__tstate);
2768 if (PyErr_Occurred()) SWIG_fail;
2769 }
2770 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1);
2771 return resultobj;
2772 fail:
2773 return NULL;
2774 }
2775
2776
2777 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2778 PyObject *resultobj;
2779 wxComboBox *arg1 = (wxComboBox *) 0 ;
2780 wxWindow *arg2 = (wxWindow *) 0 ;
2781 int arg3 ;
2782 wxString const &arg4_defvalue = wxPyEmptyString ;
2783 wxString *arg4 = (wxString *) &arg4_defvalue ;
2784 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2785 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2786 wxSize const &arg6_defvalue = wxDefaultSize ;
2787 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2788 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
2789 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
2790 long arg8 = (long) 0 ;
2791 wxValidator const &arg9_defvalue = wxDefaultValidator ;
2792 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
2793 wxString const &arg10_defvalue = wxPyComboBoxNameStr ;
2794 wxString *arg10 = (wxString *) &arg10_defvalue ;
2795 bool result;
2796 bool temp4 = False ;
2797 wxPoint temp5 ;
2798 wxSize temp6 ;
2799 bool temp7 = False ;
2800 bool temp10 = False ;
2801 PyObject * obj0 = 0 ;
2802 PyObject * obj1 = 0 ;
2803 PyObject * obj2 = 0 ;
2804 PyObject * obj3 = 0 ;
2805 PyObject * obj4 = 0 ;
2806 PyObject * obj5 = 0 ;
2807 PyObject * obj6 = 0 ;
2808 PyObject * obj7 = 0 ;
2809 PyObject * obj8 = 0 ;
2810 PyObject * obj9 = 0 ;
2811 char *kwnames[] = {
2812 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2813 };
2814
2815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2817 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2818 {
2819 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 }
2822 if (obj3) {
2823 {
2824 arg4 = wxString_in_helper(obj3);
2825 if (arg4 == NULL) SWIG_fail;
2826 temp4 = True;
2827 }
2828 }
2829 if (obj4) {
2830 {
2831 arg5 = &temp5;
2832 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2833 }
2834 }
2835 if (obj5) {
2836 {
2837 arg6 = &temp6;
2838 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2839 }
2840 }
2841 if (obj6) {
2842 {
2843 if (! PySequence_Check(obj6)) {
2844 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2845 SWIG_fail;
2846 }
2847 arg7 = new wxArrayString;
2848 temp7 = True;
2849 int i, len=PySequence_Length(obj6);
2850 for (i=0; i<len; i++) {
2851 PyObject* item = PySequence_GetItem(obj6, i);
2852 #if wxUSE_UNICODE
2853 PyObject* str = PyObject_Unicode(item);
2854 #else
2855 PyObject* str = PyObject_Str(item);
2856 #endif
2857 arg7->Add(Py2wxString(str));
2858 Py_DECREF(item);
2859 Py_DECREF(str);
2860 }
2861 }
2862 }
2863 if (obj7) {
2864 {
2865 arg8 = (long) SWIG_PyObj_AsLong(obj7);
2866 if (PyErr_Occurred()) SWIG_fail;
2867 }
2868 }
2869 if (obj8) {
2870 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2871 if (arg9 == NULL) {
2872 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2873 }
2874 }
2875 if (obj9) {
2876 {
2877 arg10 = wxString_in_helper(obj9);
2878 if (arg10 == NULL) SWIG_fail;
2879 temp10 = True;
2880 }
2881 }
2882 {
2883 PyThreadState* __tstate = wxPyBeginAllowThreads();
2884 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);
2885
2886 wxPyEndAllowThreads(__tstate);
2887 if (PyErr_Occurred()) SWIG_fail;
2888 }
2889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2890 {
2891 if (temp4)
2892 delete arg4;
2893 }
2894 {
2895 if (temp7) delete arg7;
2896 }
2897 {
2898 if (temp10)
2899 delete arg10;
2900 }
2901 return resultobj;
2902 fail:
2903 {
2904 if (temp4)
2905 delete arg4;
2906 }
2907 {
2908 if (temp7) delete arg7;
2909 }
2910 {
2911 if (temp10)
2912 delete arg10;
2913 }
2914 return NULL;
2915 }
2916
2917
2918 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2919 PyObject *resultobj;
2920 wxComboBox *arg1 = (wxComboBox *) 0 ;
2921 wxString result;
2922 PyObject * obj0 = 0 ;
2923 char *kwnames[] = {
2924 (char *) "self", NULL
2925 };
2926
2927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
2928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2929 {
2930 PyThreadState* __tstate = wxPyBeginAllowThreads();
2931 result = ((wxComboBox const *)arg1)->GetValue();
2932
2933 wxPyEndAllowThreads(__tstate);
2934 if (PyErr_Occurred()) SWIG_fail;
2935 }
2936 {
2937 #if wxUSE_UNICODE
2938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2939 #else
2940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2941 #endif
2942 }
2943 return resultobj;
2944 fail:
2945 return NULL;
2946 }
2947
2948
2949 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2950 PyObject *resultobj;
2951 wxComboBox *arg1 = (wxComboBox *) 0 ;
2952 wxString *arg2 = 0 ;
2953 bool temp2 = False ;
2954 PyObject * obj0 = 0 ;
2955 PyObject * obj1 = 0 ;
2956 char *kwnames[] = {
2957 (char *) "self",(char *) "value", NULL
2958 };
2959
2960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2962 {
2963 arg2 = wxString_in_helper(obj1);
2964 if (arg2 == NULL) SWIG_fail;
2965 temp2 = True;
2966 }
2967 {
2968 PyThreadState* __tstate = wxPyBeginAllowThreads();
2969 (arg1)->SetValue((wxString const &)*arg2);
2970
2971 wxPyEndAllowThreads(__tstate);
2972 if (PyErr_Occurred()) SWIG_fail;
2973 }
2974 Py_INCREF(Py_None); resultobj = Py_None;
2975 {
2976 if (temp2)
2977 delete arg2;
2978 }
2979 return resultobj;
2980 fail:
2981 {
2982 if (temp2)
2983 delete arg2;
2984 }
2985 return NULL;
2986 }
2987
2988
2989 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject *resultobj;
2991 wxComboBox *arg1 = (wxComboBox *) 0 ;
2992 PyObject * obj0 = 0 ;
2993 char *kwnames[] = {
2994 (char *) "self", NULL
2995 };
2996
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
2998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2999 {
3000 PyThreadState* __tstate = wxPyBeginAllowThreads();
3001 (arg1)->Copy();
3002
3003 wxPyEndAllowThreads(__tstate);
3004 if (PyErr_Occurred()) SWIG_fail;
3005 }
3006 Py_INCREF(Py_None); resultobj = Py_None;
3007 return resultobj;
3008 fail:
3009 return NULL;
3010 }
3011
3012
3013 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3014 PyObject *resultobj;
3015 wxComboBox *arg1 = (wxComboBox *) 0 ;
3016 PyObject * obj0 = 0 ;
3017 char *kwnames[] = {
3018 (char *) "self", NULL
3019 };
3020
3021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3023 {
3024 PyThreadState* __tstate = wxPyBeginAllowThreads();
3025 (arg1)->Cut();
3026
3027 wxPyEndAllowThreads(__tstate);
3028 if (PyErr_Occurred()) SWIG_fail;
3029 }
3030 Py_INCREF(Py_None); resultobj = Py_None;
3031 return resultobj;
3032 fail:
3033 return NULL;
3034 }
3035
3036
3037 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3038 PyObject *resultobj;
3039 wxComboBox *arg1 = (wxComboBox *) 0 ;
3040 PyObject * obj0 = 0 ;
3041 char *kwnames[] = {
3042 (char *) "self", NULL
3043 };
3044
3045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3047 {
3048 PyThreadState* __tstate = wxPyBeginAllowThreads();
3049 (arg1)->Paste();
3050
3051 wxPyEndAllowThreads(__tstate);
3052 if (PyErr_Occurred()) SWIG_fail;
3053 }
3054 Py_INCREF(Py_None); resultobj = Py_None;
3055 return resultobj;
3056 fail:
3057 return NULL;
3058 }
3059
3060
3061 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3062 PyObject *resultobj;
3063 wxComboBox *arg1 = (wxComboBox *) 0 ;
3064 long arg2 ;
3065 PyObject * obj0 = 0 ;
3066 PyObject * obj1 = 0 ;
3067 char *kwnames[] = {
3068 (char *) "self",(char *) "pos", NULL
3069 };
3070
3071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3073 {
3074 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3075 if (PyErr_Occurred()) SWIG_fail;
3076 }
3077 {
3078 PyThreadState* __tstate = wxPyBeginAllowThreads();
3079 (arg1)->SetInsertionPoint(arg2);
3080
3081 wxPyEndAllowThreads(__tstate);
3082 if (PyErr_Occurred()) SWIG_fail;
3083 }
3084 Py_INCREF(Py_None); resultobj = Py_None;
3085 return resultobj;
3086 fail:
3087 return NULL;
3088 }
3089
3090
3091 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3092 PyObject *resultobj;
3093 wxComboBox *arg1 = (wxComboBox *) 0 ;
3094 long result;
3095 PyObject * obj0 = 0 ;
3096 char *kwnames[] = {
3097 (char *) "self", NULL
3098 };
3099
3100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3102 {
3103 PyThreadState* __tstate = wxPyBeginAllowThreads();
3104 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3105
3106 wxPyEndAllowThreads(__tstate);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 resultobj = SWIG_PyObj_FromLong((long)result);
3110 return resultobj;
3111 fail:
3112 return NULL;
3113 }
3114
3115
3116 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3117 PyObject *resultobj;
3118 wxComboBox *arg1 = (wxComboBox *) 0 ;
3119 long result;
3120 PyObject * obj0 = 0 ;
3121 char *kwnames[] = {
3122 (char *) "self", NULL
3123 };
3124
3125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3127 {
3128 PyThreadState* __tstate = wxPyBeginAllowThreads();
3129 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3130
3131 wxPyEndAllowThreads(__tstate);
3132 if (PyErr_Occurred()) SWIG_fail;
3133 }
3134 resultobj = SWIG_PyObj_FromLong((long)result);
3135 return resultobj;
3136 fail:
3137 return NULL;
3138 }
3139
3140
3141 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3142 PyObject *resultobj;
3143 wxComboBox *arg1 = (wxComboBox *) 0 ;
3144 long arg2 ;
3145 long arg3 ;
3146 wxString *arg4 = 0 ;
3147 bool temp4 = False ;
3148 PyObject * obj0 = 0 ;
3149 PyObject * obj1 = 0 ;
3150 PyObject * obj2 = 0 ;
3151 PyObject * obj3 = 0 ;
3152 char *kwnames[] = {
3153 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3154 };
3155
3156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3158 {
3159 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3160 if (PyErr_Occurred()) SWIG_fail;
3161 }
3162 {
3163 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3164 if (PyErr_Occurred()) SWIG_fail;
3165 }
3166 {
3167 arg4 = wxString_in_helper(obj3);
3168 if (arg4 == NULL) SWIG_fail;
3169 temp4 = True;
3170 }
3171 {
3172 PyThreadState* __tstate = wxPyBeginAllowThreads();
3173 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3174
3175 wxPyEndAllowThreads(__tstate);
3176 if (PyErr_Occurred()) SWIG_fail;
3177 }
3178 Py_INCREF(Py_None); resultobj = Py_None;
3179 {
3180 if (temp4)
3181 delete arg4;
3182 }
3183 return resultobj;
3184 fail:
3185 {
3186 if (temp4)
3187 delete arg4;
3188 }
3189 return NULL;
3190 }
3191
3192
3193 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3194 PyObject *resultobj;
3195 wxComboBox *arg1 = (wxComboBox *) 0 ;
3196 int arg2 ;
3197 PyObject * obj0 = 0 ;
3198 PyObject * obj1 = 0 ;
3199 char *kwnames[] = {
3200 (char *) "self",(char *) "n", NULL
3201 };
3202
3203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3205 {
3206 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3207 if (PyErr_Occurred()) SWIG_fail;
3208 }
3209 {
3210 PyThreadState* __tstate = wxPyBeginAllowThreads();
3211 (arg1)->SetSelection(arg2);
3212
3213 wxPyEndAllowThreads(__tstate);
3214 if (PyErr_Occurred()) SWIG_fail;
3215 }
3216 Py_INCREF(Py_None); resultobj = Py_None;
3217 return resultobj;
3218 fail:
3219 return NULL;
3220 }
3221
3222
3223 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3224 PyObject *resultobj;
3225 wxComboBox *arg1 = (wxComboBox *) 0 ;
3226 long arg2 ;
3227 long arg3 ;
3228 PyObject * obj0 = 0 ;
3229 PyObject * obj1 = 0 ;
3230 PyObject * obj2 = 0 ;
3231 char *kwnames[] = {
3232 (char *) "self",(char *) "from",(char *) "to", NULL
3233 };
3234
3235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3237 {
3238 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3239 if (PyErr_Occurred()) SWIG_fail;
3240 }
3241 {
3242 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3243 if (PyErr_Occurred()) SWIG_fail;
3244 }
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 (arg1)->SetSelection(arg2,arg3);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 Py_INCREF(Py_None); resultobj = Py_None;
3253 return resultobj;
3254 fail:
3255 return NULL;
3256 }
3257
3258
3259 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3260 PyObject *resultobj;
3261 wxComboBox *arg1 = (wxComboBox *) 0 ;
3262 bool arg2 ;
3263 PyObject * obj0 = 0 ;
3264 PyObject * obj1 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "self",(char *) "editable", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3271 {
3272 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
3273 if (PyErr_Occurred()) SWIG_fail;
3274 }
3275 {
3276 PyThreadState* __tstate = wxPyBeginAllowThreads();
3277 (arg1)->SetEditable(arg2);
3278
3279 wxPyEndAllowThreads(__tstate);
3280 if (PyErr_Occurred()) SWIG_fail;
3281 }
3282 Py_INCREF(Py_None); resultobj = Py_None;
3283 return resultobj;
3284 fail:
3285 return NULL;
3286 }
3287
3288
3289 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3290 PyObject *resultobj;
3291 wxComboBox *arg1 = (wxComboBox *) 0 ;
3292 PyObject * obj0 = 0 ;
3293 char *kwnames[] = {
3294 (char *) "self", NULL
3295 };
3296
3297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3299 {
3300 PyThreadState* __tstate = wxPyBeginAllowThreads();
3301 (arg1)->SetInsertionPointEnd();
3302
3303 wxPyEndAllowThreads(__tstate);
3304 if (PyErr_Occurred()) SWIG_fail;
3305 }
3306 Py_INCREF(Py_None); resultobj = Py_None;
3307 return resultobj;
3308 fail:
3309 return NULL;
3310 }
3311
3312
3313 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3314 PyObject *resultobj;
3315 wxComboBox *arg1 = (wxComboBox *) 0 ;
3316 long arg2 ;
3317 long arg3 ;
3318 PyObject * obj0 = 0 ;
3319 PyObject * obj1 = 0 ;
3320 PyObject * obj2 = 0 ;
3321 char *kwnames[] = {
3322 (char *) "self",(char *) "from",(char *) "to", NULL
3323 };
3324
3325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3327 {
3328 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3329 if (PyErr_Occurred()) SWIG_fail;
3330 }
3331 {
3332 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3333 if (PyErr_Occurred()) SWIG_fail;
3334 }
3335 {
3336 PyThreadState* __tstate = wxPyBeginAllowThreads();
3337 (arg1)->Remove(arg2,arg3);
3338
3339 wxPyEndAllowThreads(__tstate);
3340 if (PyErr_Occurred()) SWIG_fail;
3341 }
3342 Py_INCREF(Py_None); resultobj = Py_None;
3343 return resultobj;
3344 fail:
3345 return NULL;
3346 }
3347
3348
3349 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3350 PyObject *obj;
3351 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3352 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3353 Py_INCREF(obj);
3354 return Py_BuildValue((char *)"");
3355 }
3356 static int _wrap_GaugeNameStr_set(PyObject *_val) {
3357 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3358 return 1;
3359 }
3360
3361
3362 static PyObject *_wrap_GaugeNameStr_get() {
3363 PyObject *pyobj;
3364
3365 {
3366 #if wxUSE_UNICODE
3367 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3368 #else
3369 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3370 #endif
3371 }
3372 return pyobj;
3373 }
3374
3375
3376 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3377 PyObject *resultobj;
3378 wxWindow *arg1 = (wxWindow *) 0 ;
3379 int arg2 ;
3380 int arg3 ;
3381 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3382 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3383 wxSize const &arg5_defvalue = wxDefaultSize ;
3384 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3385 long arg6 = (long) wxGA_HORIZONTAL ;
3386 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3387 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3388 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3389 wxString *arg8 = (wxString *) &arg8_defvalue ;
3390 wxGauge *result;
3391 wxPoint temp4 ;
3392 wxSize temp5 ;
3393 bool temp8 = False ;
3394 PyObject * obj0 = 0 ;
3395 PyObject * obj1 = 0 ;
3396 PyObject * obj2 = 0 ;
3397 PyObject * obj3 = 0 ;
3398 PyObject * obj4 = 0 ;
3399 PyObject * obj5 = 0 ;
3400 PyObject * obj6 = 0 ;
3401 PyObject * obj7 = 0 ;
3402 char *kwnames[] = {
3403 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3404 };
3405
3406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3408 {
3409 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
3412 {
3413 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3414 if (PyErr_Occurred()) SWIG_fail;
3415 }
3416 if (obj3) {
3417 {
3418 arg4 = &temp4;
3419 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3420 }
3421 }
3422 if (obj4) {
3423 {
3424 arg5 = &temp5;
3425 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3426 }
3427 }
3428 if (obj5) {
3429 {
3430 arg6 = (long) SWIG_PyObj_AsLong(obj5);
3431 if (PyErr_Occurred()) SWIG_fail;
3432 }
3433 }
3434 if (obj6) {
3435 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3436 if (arg7 == NULL) {
3437 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3438 }
3439 }
3440 if (obj7) {
3441 {
3442 arg8 = wxString_in_helper(obj7);
3443 if (arg8 == NULL) SWIG_fail;
3444 temp8 = True;
3445 }
3446 }
3447 {
3448 PyThreadState* __tstate = wxPyBeginAllowThreads();
3449 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3450
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 }
3454 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1);
3455 {
3456 if (temp8)
3457 delete arg8;
3458 }
3459 return resultobj;
3460 fail:
3461 {
3462 if (temp8)
3463 delete arg8;
3464 }
3465 return NULL;
3466 }
3467
3468
3469 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3470 PyObject *resultobj;
3471 wxGauge *result;
3472 char *kwnames[] = {
3473 NULL
3474 };
3475
3476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3477 {
3478 PyThreadState* __tstate = wxPyBeginAllowThreads();
3479 result = (wxGauge *)new wxGauge();
3480
3481 wxPyEndAllowThreads(__tstate);
3482 if (PyErr_Occurred()) SWIG_fail;
3483 }
3484 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1);
3485 return resultobj;
3486 fail:
3487 return NULL;
3488 }
3489
3490
3491 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3492 PyObject *resultobj;
3493 wxGauge *arg1 = (wxGauge *) 0 ;
3494 wxWindow *arg2 = (wxWindow *) 0 ;
3495 int arg3 ;
3496 int arg4 ;
3497 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3498 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3499 wxSize const &arg6_defvalue = wxDefaultSize ;
3500 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3501 long arg7 = (long) wxGA_HORIZONTAL ;
3502 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3503 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3504 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3505 wxString *arg9 = (wxString *) &arg9_defvalue ;
3506 bool result;
3507 wxPoint temp5 ;
3508 wxSize temp6 ;
3509 bool temp9 = False ;
3510 PyObject * obj0 = 0 ;
3511 PyObject * obj1 = 0 ;
3512 PyObject * obj2 = 0 ;
3513 PyObject * obj3 = 0 ;
3514 PyObject * obj4 = 0 ;
3515 PyObject * obj5 = 0 ;
3516 PyObject * obj6 = 0 ;
3517 PyObject * obj7 = 0 ;
3518 PyObject * obj8 = 0 ;
3519 char *kwnames[] = {
3520 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3521 };
3522
3523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3525 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3526 {
3527 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 }
3530 {
3531 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3532 if (PyErr_Occurred()) SWIG_fail;
3533 }
3534 if (obj4) {
3535 {
3536 arg5 = &temp5;
3537 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3538 }
3539 }
3540 if (obj5) {
3541 {
3542 arg6 = &temp6;
3543 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3544 }
3545 }
3546 if (obj6) {
3547 {
3548 arg7 = (long) SWIG_PyObj_AsLong(obj6);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 }
3552 if (obj7) {
3553 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3554 if (arg8 == NULL) {
3555 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3556 }
3557 }
3558 if (obj8) {
3559 {
3560 arg9 = wxString_in_helper(obj8);
3561 if (arg9 == NULL) SWIG_fail;
3562 temp9 = True;
3563 }
3564 }
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3573 {
3574 if (temp9)
3575 delete arg9;
3576 }
3577 return resultobj;
3578 fail:
3579 {
3580 if (temp9)
3581 delete arg9;
3582 }
3583 return NULL;
3584 }
3585
3586
3587 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3588 PyObject *resultobj;
3589 wxGauge *arg1 = (wxGauge *) 0 ;
3590 int arg2 ;
3591 PyObject * obj0 = 0 ;
3592 PyObject * obj1 = 0 ;
3593 char *kwnames[] = {
3594 (char *) "self",(char *) "range", NULL
3595 };
3596
3597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
3598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3599 {
3600 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3601 if (PyErr_Occurred()) SWIG_fail;
3602 }
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 (arg1)->SetRange(arg2);
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 Py_INCREF(Py_None); resultobj = Py_None;
3611 return resultobj;
3612 fail:
3613 return NULL;
3614 }
3615
3616
3617 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj;
3619 wxGauge *arg1 = (wxGauge *) 0 ;
3620 int result;
3621 PyObject * obj0 = 0 ;
3622 char *kwnames[] = {
3623 (char *) "self", NULL
3624 };
3625
3626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
3627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3628 {
3629 PyThreadState* __tstate = wxPyBeginAllowThreads();
3630 result = (int)((wxGauge const *)arg1)->GetRange();
3631
3632 wxPyEndAllowThreads(__tstate);
3633 if (PyErr_Occurred()) SWIG_fail;
3634 }
3635 resultobj = SWIG_PyObj_FromInt((int)result);
3636 return resultobj;
3637 fail:
3638 return NULL;
3639 }
3640
3641
3642 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3643 PyObject *resultobj;
3644 wxGauge *arg1 = (wxGauge *) 0 ;
3645 int arg2 ;
3646 PyObject * obj0 = 0 ;
3647 PyObject * obj1 = 0 ;
3648 char *kwnames[] = {
3649 (char *) "self",(char *) "pos", NULL
3650 };
3651
3652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
3653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3654 {
3655 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
3658 {
3659 PyThreadState* __tstate = wxPyBeginAllowThreads();
3660 (arg1)->SetValue(arg2);
3661
3662 wxPyEndAllowThreads(__tstate);
3663 if (PyErr_Occurred()) SWIG_fail;
3664 }
3665 Py_INCREF(Py_None); resultobj = Py_None;
3666 return resultobj;
3667 fail:
3668 return NULL;
3669 }
3670
3671
3672 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3673 PyObject *resultobj;
3674 wxGauge *arg1 = (wxGauge *) 0 ;
3675 int result;
3676 PyObject * obj0 = 0 ;
3677 char *kwnames[] = {
3678 (char *) "self", NULL
3679 };
3680
3681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
3682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3683 {
3684 PyThreadState* __tstate = wxPyBeginAllowThreads();
3685 result = (int)((wxGauge const *)arg1)->GetValue();
3686
3687 wxPyEndAllowThreads(__tstate);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
3690 resultobj = SWIG_PyObj_FromInt((int)result);
3691 return resultobj;
3692 fail:
3693 return NULL;
3694 }
3695
3696
3697 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj;
3699 wxGauge *arg1 = (wxGauge *) 0 ;
3700 bool result;
3701 PyObject * obj0 = 0 ;
3702 char *kwnames[] = {
3703 (char *) "self", NULL
3704 };
3705
3706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
3707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3708 {
3709 PyThreadState* __tstate = wxPyBeginAllowThreads();
3710 result = (bool)((wxGauge const *)arg1)->IsVertical();
3711
3712 wxPyEndAllowThreads(__tstate);
3713 if (PyErr_Occurred()) SWIG_fail;
3714 }
3715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3716 return resultobj;
3717 fail:
3718 return NULL;
3719 }
3720
3721
3722 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3723 PyObject *resultobj;
3724 wxGauge *arg1 = (wxGauge *) 0 ;
3725 int arg2 ;
3726 PyObject * obj0 = 0 ;
3727 PyObject * obj1 = 0 ;
3728 char *kwnames[] = {
3729 (char *) "self",(char *) "w", NULL
3730 };
3731
3732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
3733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3734 {
3735 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3736 if (PyErr_Occurred()) SWIG_fail;
3737 }
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 (arg1)->SetShadowWidth(arg2);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 Py_INCREF(Py_None); resultobj = Py_None;
3746 return resultobj;
3747 fail:
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 wxGauge *arg1 = (wxGauge *) 0 ;
3755 int result;
3756 PyObject * obj0 = 0 ;
3757 char *kwnames[] = {
3758 (char *) "self", NULL
3759 };
3760
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
3762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3763 {
3764 PyThreadState* __tstate = wxPyBeginAllowThreads();
3765 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
3766
3767 wxPyEndAllowThreads(__tstate);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 }
3770 resultobj = SWIG_PyObj_FromInt((int)result);
3771 return resultobj;
3772 fail:
3773 return NULL;
3774 }
3775
3776
3777 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj;
3779 wxGauge *arg1 = (wxGauge *) 0 ;
3780 int arg2 ;
3781 PyObject * obj0 = 0 ;
3782 PyObject * obj1 = 0 ;
3783 char *kwnames[] = {
3784 (char *) "self",(char *) "w", NULL
3785 };
3786
3787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
3788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3789 {
3790 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3791 if (PyErr_Occurred()) SWIG_fail;
3792 }
3793 {
3794 PyThreadState* __tstate = wxPyBeginAllowThreads();
3795 (arg1)->SetBezelFace(arg2);
3796
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 Py_INCREF(Py_None); resultobj = Py_None;
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxGauge *arg1 = (wxGauge *) 0 ;
3810 int result;
3811 PyObject * obj0 = 0 ;
3812 char *kwnames[] = {
3813 (char *) "self", NULL
3814 };
3815
3816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
3817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3818 {
3819 PyThreadState* __tstate = wxPyBeginAllowThreads();
3820 result = (int)((wxGauge const *)arg1)->GetBezelFace();
3821
3822 wxPyEndAllowThreads(__tstate);
3823 if (PyErr_Occurred()) SWIG_fail;
3824 }
3825 resultobj = SWIG_PyObj_FromInt((int)result);
3826 return resultobj;
3827 fail:
3828 return NULL;
3829 }
3830
3831
3832 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
3833 PyObject *obj;
3834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3835 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
3836 Py_INCREF(obj);
3837 return Py_BuildValue((char *)"");
3838 }
3839 static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
3840 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
3841 return 1;
3842 }
3843
3844
3845 static PyObject *_wrap_StaticBitmapNameStr_get() {
3846 PyObject *pyobj;
3847
3848 {
3849 #if wxUSE_UNICODE
3850 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
3851 #else
3852 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
3853 #endif
3854 }
3855 return pyobj;
3856 }
3857
3858
3859 static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
3860 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
3861 return 1;
3862 }
3863
3864
3865 static PyObject *_wrap_StaticBoxNameStr_get() {
3866 PyObject *pyobj;
3867
3868 {
3869 #if wxUSE_UNICODE
3870 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
3871 #else
3872 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
3873 #endif
3874 }
3875 return pyobj;
3876 }
3877
3878
3879 static int _wrap_StaticTextNameStr_set(PyObject *_val) {
3880 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
3881 return 1;
3882 }
3883
3884
3885 static PyObject *_wrap_StaticTextNameStr_get() {
3886 PyObject *pyobj;
3887
3888 {
3889 #if wxUSE_UNICODE
3890 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
3891 #else
3892 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
3893 #endif
3894 }
3895 return pyobj;
3896 }
3897
3898
3899 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3900 PyObject *resultobj;
3901 wxWindow *arg1 = (wxWindow *) 0 ;
3902 int arg2 ;
3903 wxString *arg3 = 0 ;
3904 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3905 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3906 wxSize const &arg5_defvalue = wxDefaultSize ;
3907 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3908 long arg6 = (long) 0 ;
3909 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
3910 wxString *arg7 = (wxString *) &arg7_defvalue ;
3911 wxStaticBox *result;
3912 bool temp3 = False ;
3913 wxPoint temp4 ;
3914 wxSize temp5 ;
3915 bool temp7 = False ;
3916 PyObject * obj0 = 0 ;
3917 PyObject * obj1 = 0 ;
3918 PyObject * obj2 = 0 ;
3919 PyObject * obj3 = 0 ;
3920 PyObject * obj4 = 0 ;
3921 PyObject * obj5 = 0 ;
3922 PyObject * obj6 = 0 ;
3923 char *kwnames[] = {
3924 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3925 };
3926
3927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3929 {
3930 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3931 if (PyErr_Occurred()) SWIG_fail;
3932 }
3933 {
3934 arg3 = wxString_in_helper(obj2);
3935 if (arg3 == NULL) SWIG_fail;
3936 temp3 = True;
3937 }
3938 if (obj3) {
3939 {
3940 arg4 = &temp4;
3941 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3942 }
3943 }
3944 if (obj4) {
3945 {
3946 arg5 = &temp5;
3947 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3948 }
3949 }
3950 if (obj5) {
3951 {
3952 arg6 = (long) SWIG_PyObj_AsLong(obj5);
3953 if (PyErr_Occurred()) SWIG_fail;
3954 }
3955 }
3956 if (obj6) {
3957 {
3958 arg7 = wxString_in_helper(obj6);
3959 if (arg7 == NULL) SWIG_fail;
3960 temp7 = True;
3961 }
3962 }
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
3966
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) SWIG_fail;
3969 }
3970 {
3971 resultobj = wxPyMake_wxObject(result);
3972 }
3973 {
3974 if (temp3)
3975 delete arg3;
3976 }
3977 {
3978 if (temp7)
3979 delete arg7;
3980 }
3981 return resultobj;
3982 fail:
3983 {
3984 if (temp3)
3985 delete arg3;
3986 }
3987 {
3988 if (temp7)
3989 delete arg7;
3990 }
3991 return NULL;
3992 }
3993
3994
3995 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3996 PyObject *resultobj;
3997 wxStaticBox *result;
3998 char *kwnames[] = {
3999 NULL
4000 };
4001
4002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4003 {
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 result = (wxStaticBox *)new wxStaticBox();
4006
4007 wxPyEndAllowThreads(__tstate);
4008 if (PyErr_Occurred()) SWIG_fail;
4009 }
4010 {
4011 resultobj = wxPyMake_wxObject(result);
4012 }
4013 return resultobj;
4014 fail:
4015 return NULL;
4016 }
4017
4018
4019 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4020 PyObject *resultobj;
4021 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4022 wxWindow *arg2 = (wxWindow *) 0 ;
4023 int arg3 ;
4024 wxString *arg4 = 0 ;
4025 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4026 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4027 wxSize const &arg6_defvalue = wxDefaultSize ;
4028 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4029 long arg7 = (long) 0 ;
4030 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4031 wxString *arg8 = (wxString *) &arg8_defvalue ;
4032 bool result;
4033 bool temp4 = False ;
4034 wxPoint temp5 ;
4035 wxSize temp6 ;
4036 bool temp8 = False ;
4037 PyObject * obj0 = 0 ;
4038 PyObject * obj1 = 0 ;
4039 PyObject * obj2 = 0 ;
4040 PyObject * obj3 = 0 ;
4041 PyObject * obj4 = 0 ;
4042 PyObject * obj5 = 0 ;
4043 PyObject * obj6 = 0 ;
4044 PyObject * obj7 = 0 ;
4045 char *kwnames[] = {
4046 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4047 };
4048
4049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4051 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4052 {
4053 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4054 if (PyErr_Occurred()) SWIG_fail;
4055 }
4056 {
4057 arg4 = wxString_in_helper(obj3);
4058 if (arg4 == NULL) SWIG_fail;
4059 temp4 = True;
4060 }
4061 if (obj4) {
4062 {
4063 arg5 = &temp5;
4064 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4065 }
4066 }
4067 if (obj5) {
4068 {
4069 arg6 = &temp6;
4070 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4071 }
4072 }
4073 if (obj6) {
4074 {
4075 arg7 = (long) SWIG_PyObj_AsLong(obj6);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 }
4079 if (obj7) {
4080 {
4081 arg8 = wxString_in_helper(obj7);
4082 if (arg8 == NULL) SWIG_fail;
4083 temp8 = True;
4084 }
4085 }
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4089
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4094 {
4095 if (temp4)
4096 delete arg4;
4097 }
4098 {
4099 if (temp8)
4100 delete arg8;
4101 }
4102 return resultobj;
4103 fail:
4104 {
4105 if (temp4)
4106 delete arg4;
4107 }
4108 {
4109 if (temp8)
4110 delete arg8;
4111 }
4112 return NULL;
4113 }
4114
4115
4116 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4117 PyObject *obj;
4118 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4119 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4120 Py_INCREF(obj);
4121 return Py_BuildValue((char *)"");
4122 }
4123 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4124 PyObject *resultobj;
4125 wxWindow *arg1 = (wxWindow *) 0 ;
4126 int arg2 ;
4127 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4128 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4129 wxSize const &arg4_defvalue = wxDefaultSize ;
4130 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4131 long arg5 = (long) wxLI_HORIZONTAL ;
4132 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4133 wxString *arg6 = (wxString *) &arg6_defvalue ;
4134 wxStaticLine *result;
4135 wxPoint temp3 ;
4136 wxSize temp4 ;
4137 bool temp6 = False ;
4138 PyObject * obj0 = 0 ;
4139 PyObject * obj1 = 0 ;
4140 PyObject * obj2 = 0 ;
4141 PyObject * obj3 = 0 ;
4142 PyObject * obj4 = 0 ;
4143 PyObject * obj5 = 0 ;
4144 char *kwnames[] = {
4145 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4146 };
4147
4148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4150 {
4151 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 if (obj2) {
4155 {
4156 arg3 = &temp3;
4157 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4158 }
4159 }
4160 if (obj3) {
4161 {
4162 arg4 = &temp4;
4163 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4164 }
4165 }
4166 if (obj4) {
4167 {
4168 arg5 = (long) SWIG_PyObj_AsLong(obj4);
4169 if (PyErr_Occurred()) SWIG_fail;
4170 }
4171 }
4172 if (obj5) {
4173 {
4174 arg6 = wxString_in_helper(obj5);
4175 if (arg6 == NULL) SWIG_fail;
4176 temp6 = True;
4177 }
4178 }
4179 {
4180 PyThreadState* __tstate = wxPyBeginAllowThreads();
4181 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4182
4183 wxPyEndAllowThreads(__tstate);
4184 if (PyErr_Occurred()) SWIG_fail;
4185 }
4186 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1);
4187 {
4188 if (temp6)
4189 delete arg6;
4190 }
4191 return resultobj;
4192 fail:
4193 {
4194 if (temp6)
4195 delete arg6;
4196 }
4197 return NULL;
4198 }
4199
4200
4201 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4202 PyObject *resultobj;
4203 wxStaticLine *result;
4204 char *kwnames[] = {
4205 NULL
4206 };
4207
4208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 result = (wxStaticLine *)new wxStaticLine();
4212
4213 wxPyEndAllowThreads(__tstate);
4214 if (PyErr_Occurred()) SWIG_fail;
4215 }
4216 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1);
4217 return resultobj;
4218 fail:
4219 return NULL;
4220 }
4221
4222
4223 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4224 PyObject *resultobj;
4225 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4226 wxWindow *arg2 = (wxWindow *) 0 ;
4227 int arg3 ;
4228 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4229 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4230 wxSize const &arg5_defvalue = wxDefaultSize ;
4231 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4232 long arg6 = (long) wxLI_HORIZONTAL ;
4233 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4234 wxString *arg7 = (wxString *) &arg7_defvalue ;
4235 bool result;
4236 wxPoint temp4 ;
4237 wxSize temp5 ;
4238 bool temp7 = False ;
4239 PyObject * obj0 = 0 ;
4240 PyObject * obj1 = 0 ;
4241 PyObject * obj2 = 0 ;
4242 PyObject * obj3 = 0 ;
4243 PyObject * obj4 = 0 ;
4244 PyObject * obj5 = 0 ;
4245 PyObject * obj6 = 0 ;
4246 char *kwnames[] = {
4247 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4248 };
4249
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4252 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4253 {
4254 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4255 if (PyErr_Occurred()) SWIG_fail;
4256 }
4257 if (obj3) {
4258 {
4259 arg4 = &temp4;
4260 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4261 }
4262 }
4263 if (obj4) {
4264 {
4265 arg5 = &temp5;
4266 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4267 }
4268 }
4269 if (obj5) {
4270 {
4271 arg6 = (long) SWIG_PyObj_AsLong(obj5);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 }
4275 if (obj6) {
4276 {
4277 arg7 = wxString_in_helper(obj6);
4278 if (arg7 == NULL) SWIG_fail;
4279 temp7 = True;
4280 }
4281 }
4282 {
4283 PyThreadState* __tstate = wxPyBeginAllowThreads();
4284 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4285
4286 wxPyEndAllowThreads(__tstate);
4287 if (PyErr_Occurred()) SWIG_fail;
4288 }
4289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4290 {
4291 if (temp7)
4292 delete arg7;
4293 }
4294 return resultobj;
4295 fail:
4296 {
4297 if (temp7)
4298 delete arg7;
4299 }
4300 return NULL;
4301 }
4302
4303
4304 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj;
4306 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4307 bool result;
4308 PyObject * obj0 = 0 ;
4309 char *kwnames[] = {
4310 (char *) "self", NULL
4311 };
4312
4313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4315 {
4316 PyThreadState* __tstate = wxPyBeginAllowThreads();
4317 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4318
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4323 return resultobj;
4324 fail:
4325 return NULL;
4326 }
4327
4328
4329 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4330 PyObject *resultobj;
4331 int result;
4332 char *kwnames[] = {
4333 NULL
4334 };
4335
4336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 result = (int)wxStaticLine::GetDefaultSize();
4340
4341 wxPyEndAllowThreads(__tstate);
4342 if (PyErr_Occurred()) SWIG_fail;
4343 }
4344 resultobj = SWIG_PyObj_FromInt((int)result);
4345 return resultobj;
4346 fail:
4347 return NULL;
4348 }
4349
4350
4351 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4352 PyObject *obj;
4353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4354 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4355 Py_INCREF(obj);
4356 return Py_BuildValue((char *)"");
4357 }
4358 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj;
4360 wxWindow *arg1 = (wxWindow *) 0 ;
4361 int arg2 ;
4362 wxString *arg3 = 0 ;
4363 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4364 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4365 wxSize const &arg5_defvalue = wxDefaultSize ;
4366 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4367 long arg6 = (long) 0 ;
4368 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4369 wxString *arg7 = (wxString *) &arg7_defvalue ;
4370 wxStaticText *result;
4371 bool temp3 = False ;
4372 wxPoint temp4 ;
4373 wxSize temp5 ;
4374 bool temp7 = False ;
4375 PyObject * obj0 = 0 ;
4376 PyObject * obj1 = 0 ;
4377 PyObject * obj2 = 0 ;
4378 PyObject * obj3 = 0 ;
4379 PyObject * obj4 = 0 ;
4380 PyObject * obj5 = 0 ;
4381 PyObject * obj6 = 0 ;
4382 char *kwnames[] = {
4383 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4384 };
4385
4386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4388 {
4389 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 {
4393 arg3 = wxString_in_helper(obj2);
4394 if (arg3 == NULL) SWIG_fail;
4395 temp3 = True;
4396 }
4397 if (obj3) {
4398 {
4399 arg4 = &temp4;
4400 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4401 }
4402 }
4403 if (obj4) {
4404 {
4405 arg5 = &temp5;
4406 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4407 }
4408 }
4409 if (obj5) {
4410 {
4411 arg6 = (long) SWIG_PyObj_AsLong(obj5);
4412 if (PyErr_Occurred()) SWIG_fail;
4413 }
4414 }
4415 if (obj6) {
4416 {
4417 arg7 = wxString_in_helper(obj6);
4418 if (arg7 == NULL) SWIG_fail;
4419 temp7 = True;
4420 }
4421 }
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4425
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1);
4430 {
4431 if (temp3)
4432 delete arg3;
4433 }
4434 {
4435 if (temp7)
4436 delete arg7;
4437 }
4438 return resultobj;
4439 fail:
4440 {
4441 if (temp3)
4442 delete arg3;
4443 }
4444 {
4445 if (temp7)
4446 delete arg7;
4447 }
4448 return NULL;
4449 }
4450
4451
4452 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4453 PyObject *resultobj;
4454 wxStaticText *result;
4455 char *kwnames[] = {
4456 NULL
4457 };
4458
4459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4460 {
4461 PyThreadState* __tstate = wxPyBeginAllowThreads();
4462 result = (wxStaticText *)new wxStaticText();
4463
4464 wxPyEndAllowThreads(__tstate);
4465 if (PyErr_Occurred()) SWIG_fail;
4466 }
4467 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1);
4468 return resultobj;
4469 fail:
4470 return NULL;
4471 }
4472
4473
4474 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4475 PyObject *resultobj;
4476 wxStaticText *arg1 = (wxStaticText *) 0 ;
4477 wxWindow *arg2 = (wxWindow *) 0 ;
4478 int arg3 ;
4479 wxString *arg4 = 0 ;
4480 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4481 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4482 wxSize const &arg6_defvalue = wxDefaultSize ;
4483 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4484 long arg7 = (long) 0 ;
4485 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4486 wxString *arg8 = (wxString *) &arg8_defvalue ;
4487 bool result;
4488 bool temp4 = False ;
4489 wxPoint temp5 ;
4490 wxSize temp6 ;
4491 bool temp8 = False ;
4492 PyObject * obj0 = 0 ;
4493 PyObject * obj1 = 0 ;
4494 PyObject * obj2 = 0 ;
4495 PyObject * obj3 = 0 ;
4496 PyObject * obj4 = 0 ;
4497 PyObject * obj5 = 0 ;
4498 PyObject * obj6 = 0 ;
4499 PyObject * obj7 = 0 ;
4500 char *kwnames[] = {
4501 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4502 };
4503
4504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4506 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4507 {
4508 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4509 if (PyErr_Occurred()) SWIG_fail;
4510 }
4511 {
4512 arg4 = wxString_in_helper(obj3);
4513 if (arg4 == NULL) SWIG_fail;
4514 temp4 = True;
4515 }
4516 if (obj4) {
4517 {
4518 arg5 = &temp5;
4519 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4520 }
4521 }
4522 if (obj5) {
4523 {
4524 arg6 = &temp6;
4525 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4526 }
4527 }
4528 if (obj6) {
4529 {
4530 arg7 = (long) SWIG_PyObj_AsLong(obj6);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 }
4534 if (obj7) {
4535 {
4536 arg8 = wxString_in_helper(obj7);
4537 if (arg8 == NULL) SWIG_fail;
4538 temp8 = True;
4539 }
4540 }
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
4543 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4544
4545 wxPyEndAllowThreads(__tstate);
4546 if (PyErr_Occurred()) SWIG_fail;
4547 }
4548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4549 {
4550 if (temp4)
4551 delete arg4;
4552 }
4553 {
4554 if (temp8)
4555 delete arg8;
4556 }
4557 return resultobj;
4558 fail:
4559 {
4560 if (temp4)
4561 delete arg4;
4562 }
4563 {
4564 if (temp8)
4565 delete arg8;
4566 }
4567 return NULL;
4568 }
4569
4570
4571 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
4572 PyObject *obj;
4573 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4574 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
4575 Py_INCREF(obj);
4576 return Py_BuildValue((char *)"");
4577 }
4578 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4579 PyObject *resultobj;
4580 wxWindow *arg1 = (wxWindow *) 0 ;
4581 int arg2 ;
4582 wxBitmap *arg3 = 0 ;
4583 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4584 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4585 wxSize const &arg5_defvalue = wxDefaultSize ;
4586 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4587 long arg6 = (long) 0 ;
4588 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
4589 wxString *arg7 = (wxString *) &arg7_defvalue ;
4590 wxStaticBitmap *result;
4591 wxPoint temp4 ;
4592 wxSize temp5 ;
4593 bool temp7 = False ;
4594 PyObject * obj0 = 0 ;
4595 PyObject * obj1 = 0 ;
4596 PyObject * obj2 = 0 ;
4597 PyObject * obj3 = 0 ;
4598 PyObject * obj4 = 0 ;
4599 PyObject * obj5 = 0 ;
4600 PyObject * obj6 = 0 ;
4601 char *kwnames[] = {
4602 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4603 };
4604
4605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4607 {
4608 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4609 if (PyErr_Occurred()) SWIG_fail;
4610 }
4611 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4612 if (arg3 == NULL) {
4613 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4614 }
4615 if (obj3) {
4616 {
4617 arg4 = &temp4;
4618 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4619 }
4620 }
4621 if (obj4) {
4622 {
4623 arg5 = &temp5;
4624 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4625 }
4626 }
4627 if (obj5) {
4628 {
4629 arg6 = (long) SWIG_PyObj_AsLong(obj5);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 }
4633 if (obj6) {
4634 {
4635 arg7 = wxString_in_helper(obj6);
4636 if (arg7 == NULL) SWIG_fail;
4637 temp7 = True;
4638 }
4639 }
4640 {
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4643
4644 wxPyEndAllowThreads(__tstate);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
4647 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1);
4648 {
4649 if (temp7)
4650 delete arg7;
4651 }
4652 return resultobj;
4653 fail:
4654 {
4655 if (temp7)
4656 delete arg7;
4657 }
4658 return NULL;
4659 }
4660
4661
4662 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4663 PyObject *resultobj;
4664 wxStaticBitmap *result;
4665 char *kwnames[] = {
4666 NULL
4667 };
4668
4669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
4670 {
4671 PyThreadState* __tstate = wxPyBeginAllowThreads();
4672 result = (wxStaticBitmap *)new wxStaticBitmap();
4673
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1);
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4685 PyObject *resultobj;
4686 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4687 wxWindow *arg2 = (wxWindow *) 0 ;
4688 int arg3 ;
4689 wxBitmap *arg4 = 0 ;
4690 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4691 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4692 wxSize const &arg6_defvalue = wxDefaultSize ;
4693 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4694 long arg7 = (long) 0 ;
4695 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
4696 wxString *arg8 = (wxString *) &arg8_defvalue ;
4697 bool result;
4698 wxPoint temp5 ;
4699 wxSize temp6 ;
4700 bool temp8 = False ;
4701 PyObject * obj0 = 0 ;
4702 PyObject * obj1 = 0 ;
4703 PyObject * obj2 = 0 ;
4704 PyObject * obj3 = 0 ;
4705 PyObject * obj4 = 0 ;
4706 PyObject * obj5 = 0 ;
4707 PyObject * obj6 = 0 ;
4708 PyObject * obj7 = 0 ;
4709 char *kwnames[] = {
4710 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4711 };
4712
4713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4715 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4716 {
4717 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4718 if (PyErr_Occurred()) SWIG_fail;
4719 }
4720 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4721 if (arg4 == NULL) {
4722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4723 }
4724 if (obj4) {
4725 {
4726 arg5 = &temp5;
4727 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4728 }
4729 }
4730 if (obj5) {
4731 {
4732 arg6 = &temp6;
4733 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4734 }
4735 }
4736 if (obj6) {
4737 {
4738 arg7 = (long) SWIG_PyObj_AsLong(obj6);
4739 if (PyErr_Occurred()) SWIG_fail;
4740 }
4741 }
4742 if (obj7) {
4743 {
4744 arg8 = wxString_in_helper(obj7);
4745 if (arg8 == NULL) SWIG_fail;
4746 temp8 = True;
4747 }
4748 }
4749 {
4750 PyThreadState* __tstate = wxPyBeginAllowThreads();
4751 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4752
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4757 {
4758 if (temp8)
4759 delete arg8;
4760 }
4761 return resultobj;
4762 fail:
4763 {
4764 if (temp8)
4765 delete arg8;
4766 }
4767 return NULL;
4768 }
4769
4770
4771 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4772 PyObject *resultobj;
4773 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4774 wxBitmap result;
4775 PyObject * obj0 = 0 ;
4776 char *kwnames[] = {
4777 (char *) "self", NULL
4778 };
4779
4780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
4781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4782 {
4783 PyThreadState* __tstate = wxPyBeginAllowThreads();
4784 result = (arg1)->GetBitmap();
4785
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 {
4790 wxBitmap * resultptr;
4791 resultptr = new wxBitmap((wxBitmap &) result);
4792 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4793 }
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject *resultobj;
4802 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4803 wxBitmap *arg2 = 0 ;
4804 PyObject * obj0 = 0 ;
4805 PyObject * obj1 = 0 ;
4806 char *kwnames[] = {
4807 (char *) "self",(char *) "bitmap", NULL
4808 };
4809
4810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
4811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4812 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4813 if (arg2 == NULL) {
4814 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4815 }
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 (arg1)->SetBitmap((wxBitmap const &)*arg2);
4819
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 Py_INCREF(Py_None); resultobj = Py_None;
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj;
4832 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4833 wxIcon *arg2 = 0 ;
4834 PyObject * obj0 = 0 ;
4835 PyObject * obj1 = 0 ;
4836 char *kwnames[] = {
4837 (char *) "self",(char *) "icon", NULL
4838 };
4839
4840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
4841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4842 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4843 if (arg2 == NULL) {
4844 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4845 }
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 (arg1)->SetIcon((wxIcon const &)*arg2);
4849
4850 wxPyEndAllowThreads(__tstate);
4851 if (PyErr_Occurred()) SWIG_fail;
4852 }
4853 Py_INCREF(Py_None); resultobj = Py_None;
4854 return resultobj;
4855 fail:
4856 return NULL;
4857 }
4858
4859
4860 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
4861 PyObject *obj;
4862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4863 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
4864 Py_INCREF(obj);
4865 return Py_BuildValue((char *)"");
4866 }
4867 static int _wrap_ListBoxNameStr_set(PyObject *_val) {
4868 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
4869 return 1;
4870 }
4871
4872
4873 static PyObject *_wrap_ListBoxNameStr_get() {
4874 PyObject *pyobj;
4875
4876 {
4877 #if wxUSE_UNICODE
4878 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
4879 #else
4880 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
4881 #endif
4882 }
4883 return pyobj;
4884 }
4885
4886
4887 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj;
4889 wxWindow *arg1 = (wxWindow *) 0 ;
4890 int arg2 ;
4891 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4892 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4893 wxSize const &arg4_defvalue = wxDefaultSize ;
4894 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4895 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
4896 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
4897 long arg6 = (long) 0 ;
4898 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4899 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4900 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
4901 wxString *arg8 = (wxString *) &arg8_defvalue ;
4902 wxListBox *result;
4903 wxPoint temp3 ;
4904 wxSize temp4 ;
4905 bool temp5 = False ;
4906 bool temp8 = False ;
4907 PyObject * obj0 = 0 ;
4908 PyObject * obj1 = 0 ;
4909 PyObject * obj2 = 0 ;
4910 PyObject * obj3 = 0 ;
4911 PyObject * obj4 = 0 ;
4912 PyObject * obj5 = 0 ;
4913 PyObject * obj6 = 0 ;
4914 PyObject * obj7 = 0 ;
4915 char *kwnames[] = {
4916 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
4917 };
4918
4919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4921 {
4922 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 if (obj2) {
4926 {
4927 arg3 = &temp3;
4928 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4929 }
4930 }
4931 if (obj3) {
4932 {
4933 arg4 = &temp4;
4934 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4935 }
4936 }
4937 if (obj4) {
4938 {
4939 if (! PySequence_Check(obj4)) {
4940 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
4941 SWIG_fail;
4942 }
4943 arg5 = new wxArrayString;
4944 temp5 = True;
4945 int i, len=PySequence_Length(obj4);
4946 for (i=0; i<len; i++) {
4947 PyObject* item = PySequence_GetItem(obj4, i);
4948 #if wxUSE_UNICODE
4949 PyObject* str = PyObject_Unicode(item);
4950 #else
4951 PyObject* str = PyObject_Str(item);
4952 #endif
4953 arg5->Add(Py2wxString(str));
4954 Py_DECREF(item);
4955 Py_DECREF(str);
4956 }
4957 }
4958 }
4959 if (obj5) {
4960 {
4961 arg6 = (long) SWIG_PyObj_AsLong(obj5);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 }
4965 if (obj6) {
4966 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4967 if (arg7 == NULL) {
4968 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4969 }
4970 }
4971 if (obj7) {
4972 {
4973 arg8 = wxString_in_helper(obj7);
4974 if (arg8 == NULL) SWIG_fail;
4975 temp8 = True;
4976 }
4977 }
4978 {
4979 PyThreadState* __tstate = wxPyBeginAllowThreads();
4980 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4981
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1);
4986 {
4987 if (temp5) delete arg5;
4988 }
4989 {
4990 if (temp8)
4991 delete arg8;
4992 }
4993 return resultobj;
4994 fail:
4995 {
4996 if (temp5) delete arg5;
4997 }
4998 {
4999 if (temp8)
5000 delete arg8;
5001 }
5002 return NULL;
5003 }
5004
5005
5006 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject *resultobj;
5008 wxListBox *result;
5009 char *kwnames[] = {
5010 NULL
5011 };
5012
5013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = (wxListBox *)new wxListBox();
5017
5018 wxPyEndAllowThreads(__tstate);
5019 if (PyErr_Occurred()) SWIG_fail;
5020 }
5021 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1);
5022 return resultobj;
5023 fail:
5024 return NULL;
5025 }
5026
5027
5028 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5029 PyObject *resultobj;
5030 wxListBox *arg1 = (wxListBox *) 0 ;
5031 wxWindow *arg2 = (wxWindow *) 0 ;
5032 int arg3 ;
5033 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5034 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5035 wxSize const &arg5_defvalue = wxDefaultSize ;
5036 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5037 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5038 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5039 long arg7 = (long) 0 ;
5040 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5041 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5042 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5043 wxString *arg9 = (wxString *) &arg9_defvalue ;
5044 bool result;
5045 wxPoint temp4 ;
5046 wxSize temp5 ;
5047 bool temp6 = False ;
5048 bool temp9 = False ;
5049 PyObject * obj0 = 0 ;
5050 PyObject * obj1 = 0 ;
5051 PyObject * obj2 = 0 ;
5052 PyObject * obj3 = 0 ;
5053 PyObject * obj4 = 0 ;
5054 PyObject * obj5 = 0 ;
5055 PyObject * obj6 = 0 ;
5056 PyObject * obj7 = 0 ;
5057 PyObject * obj8 = 0 ;
5058 char *kwnames[] = {
5059 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5060 };
5061
5062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5064 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5065 {
5066 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5067 if (PyErr_Occurred()) SWIG_fail;
5068 }
5069 if (obj3) {
5070 {
5071 arg4 = &temp4;
5072 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5073 }
5074 }
5075 if (obj4) {
5076 {
5077 arg5 = &temp5;
5078 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5079 }
5080 }
5081 if (obj5) {
5082 {
5083 if (! PySequence_Check(obj5)) {
5084 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5085 SWIG_fail;
5086 }
5087 arg6 = new wxArrayString;
5088 temp6 = True;
5089 int i, len=PySequence_Length(obj5);
5090 for (i=0; i<len; i++) {
5091 PyObject* item = PySequence_GetItem(obj5, i);
5092 #if wxUSE_UNICODE
5093 PyObject* str = PyObject_Unicode(item);
5094 #else
5095 PyObject* str = PyObject_Str(item);
5096 #endif
5097 arg6->Add(Py2wxString(str));
5098 Py_DECREF(item);
5099 Py_DECREF(str);
5100 }
5101 }
5102 }
5103 if (obj6) {
5104 {
5105 arg7 = (long) SWIG_PyObj_AsLong(obj6);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
5108 }
5109 if (obj7) {
5110 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5111 if (arg8 == NULL) {
5112 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5113 }
5114 }
5115 if (obj8) {
5116 {
5117 arg9 = wxString_in_helper(obj8);
5118 if (arg9 == NULL) SWIG_fail;
5119 temp9 = True;
5120 }
5121 }
5122 {
5123 PyThreadState* __tstate = wxPyBeginAllowThreads();
5124 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5125
5126 wxPyEndAllowThreads(__tstate);
5127 if (PyErr_Occurred()) SWIG_fail;
5128 }
5129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5130 {
5131 if (temp6) delete arg6;
5132 }
5133 {
5134 if (temp9)
5135 delete arg9;
5136 }
5137 return resultobj;
5138 fail:
5139 {
5140 if (temp6) delete arg6;
5141 }
5142 {
5143 if (temp9)
5144 delete arg9;
5145 }
5146 return NULL;
5147 }
5148
5149
5150 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5151 PyObject *resultobj;
5152 wxListBox *arg1 = (wxListBox *) 0 ;
5153 wxString *arg2 = 0 ;
5154 int arg3 ;
5155 PyObject *arg4 = (PyObject *) NULL ;
5156 bool temp2 = False ;
5157 PyObject * obj0 = 0 ;
5158 PyObject * obj1 = 0 ;
5159 PyObject * obj2 = 0 ;
5160 PyObject * obj3 = 0 ;
5161 char *kwnames[] = {
5162 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5163 };
5164
5165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5167 {
5168 arg2 = wxString_in_helper(obj1);
5169 if (arg2 == NULL) SWIG_fail;
5170 temp2 = True;
5171 }
5172 {
5173 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 }
5176 if (obj3) {
5177 arg4 = obj3;
5178 }
5179 {
5180 PyThreadState* __tstate = wxPyBeginAllowThreads();
5181 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5182
5183 wxPyEndAllowThreads(__tstate);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 Py_INCREF(Py_None); resultobj = Py_None;
5187 {
5188 if (temp2)
5189 delete arg2;
5190 }
5191 return resultobj;
5192 fail:
5193 {
5194 if (temp2)
5195 delete arg2;
5196 }
5197 return NULL;
5198 }
5199
5200
5201 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5202 PyObject *resultobj;
5203 wxListBox *arg1 = (wxListBox *) 0 ;
5204 wxArrayString *arg2 = 0 ;
5205 int arg3 ;
5206 bool temp2 = False ;
5207 PyObject * obj0 = 0 ;
5208 PyObject * obj1 = 0 ;
5209 PyObject * obj2 = 0 ;
5210 char *kwnames[] = {
5211 (char *) "self",(char *) "items",(char *) "pos", NULL
5212 };
5213
5214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5216 {
5217 if (! PySequence_Check(obj1)) {
5218 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5219 SWIG_fail;
5220 }
5221 arg2 = new wxArrayString;
5222 temp2 = True;
5223 int i, len=PySequence_Length(obj1);
5224 for (i=0; i<len; i++) {
5225 PyObject* item = PySequence_GetItem(obj1, i);
5226 #if wxUSE_UNICODE
5227 PyObject* str = PyObject_Unicode(item);
5228 #else
5229 PyObject* str = PyObject_Str(item);
5230 #endif
5231 arg2->Add(Py2wxString(str));
5232 Py_DECREF(item);
5233 Py_DECREF(str);
5234 }
5235 }
5236 {
5237 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 {
5241 PyThreadState* __tstate = wxPyBeginAllowThreads();
5242 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5243
5244 wxPyEndAllowThreads(__tstate);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 }
5247 Py_INCREF(Py_None); resultobj = Py_None;
5248 {
5249 if (temp2) delete arg2;
5250 }
5251 return resultobj;
5252 fail:
5253 {
5254 if (temp2) delete arg2;
5255 }
5256 return NULL;
5257 }
5258
5259
5260 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5261 PyObject *resultobj;
5262 wxListBox *arg1 = (wxListBox *) 0 ;
5263 wxArrayString *arg2 = 0 ;
5264 bool temp2 = False ;
5265 PyObject * obj0 = 0 ;
5266 PyObject * obj1 = 0 ;
5267 char *kwnames[] = {
5268 (char *) "self",(char *) "items", NULL
5269 };
5270
5271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5273 {
5274 if (! PySequence_Check(obj1)) {
5275 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5276 SWIG_fail;
5277 }
5278 arg2 = new wxArrayString;
5279 temp2 = True;
5280 int i, len=PySequence_Length(obj1);
5281 for (i=0; i<len; i++) {
5282 PyObject* item = PySequence_GetItem(obj1, i);
5283 #if wxUSE_UNICODE
5284 PyObject* str = PyObject_Unicode(item);
5285 #else
5286 PyObject* str = PyObject_Str(item);
5287 #endif
5288 arg2->Add(Py2wxString(str));
5289 Py_DECREF(item);
5290 Py_DECREF(str);
5291 }
5292 }
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
5295 (arg1)->Set((wxArrayString const &)*arg2);
5296
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 Py_INCREF(Py_None); resultobj = Py_None;
5301 {
5302 if (temp2) delete arg2;
5303 }
5304 return resultobj;
5305 fail:
5306 {
5307 if (temp2) delete arg2;
5308 }
5309 return NULL;
5310 }
5311
5312
5313 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5314 PyObject *resultobj;
5315 wxListBox *arg1 = (wxListBox *) 0 ;
5316 int arg2 ;
5317 bool result;
5318 PyObject * obj0 = 0 ;
5319 PyObject * obj1 = 0 ;
5320 char *kwnames[] = {
5321 (char *) "self",(char *) "n", NULL
5322 };
5323
5324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5326 {
5327 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 {
5331 PyThreadState* __tstate = wxPyBeginAllowThreads();
5332 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5333
5334 wxPyEndAllowThreads(__tstate);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5338 return resultobj;
5339 fail:
5340 return NULL;
5341 }
5342
5343
5344 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5345 PyObject *resultobj;
5346 wxListBox *arg1 = (wxListBox *) 0 ;
5347 int arg2 ;
5348 bool arg3 = (bool) True ;
5349 PyObject * obj0 = 0 ;
5350 PyObject * obj1 = 0 ;
5351 PyObject * obj2 = 0 ;
5352 char *kwnames[] = {
5353 (char *) "self",(char *) "n",(char *) "select", NULL
5354 };
5355
5356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5358 {
5359 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
5362 if (obj2) {
5363 {
5364 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 }
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 (arg1)->SetSelection(arg2,arg3);
5371
5372 wxPyEndAllowThreads(__tstate);
5373 if (PyErr_Occurred()) SWIG_fail;
5374 }
5375 Py_INCREF(Py_None); resultobj = Py_None;
5376 return resultobj;
5377 fail:
5378 return NULL;
5379 }
5380
5381
5382 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5383 PyObject *resultobj;
5384 wxListBox *arg1 = (wxListBox *) 0 ;
5385 int arg2 ;
5386 PyObject * obj0 = 0 ;
5387 PyObject * obj1 = 0 ;
5388 char *kwnames[] = {
5389 (char *) "self",(char *) "n", NULL
5390 };
5391
5392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5394 {
5395 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 {
5399 PyThreadState* __tstate = wxPyBeginAllowThreads();
5400 (arg1)->Select(arg2);
5401
5402 wxPyEndAllowThreads(__tstate);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 Py_INCREF(Py_None); resultobj = Py_None;
5406 return resultobj;
5407 fail:
5408 return NULL;
5409 }
5410
5411
5412 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5413 PyObject *resultobj;
5414 wxListBox *arg1 = (wxListBox *) 0 ;
5415 int arg2 ;
5416 PyObject * obj0 = 0 ;
5417 PyObject * obj1 = 0 ;
5418 char *kwnames[] = {
5419 (char *) "self",(char *) "n", NULL
5420 };
5421
5422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
5423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5424 {
5425 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 {
5429 PyThreadState* __tstate = wxPyBeginAllowThreads();
5430 (arg1)->Deselect(arg2);
5431
5432 wxPyEndAllowThreads(__tstate);
5433 if (PyErr_Occurred()) SWIG_fail;
5434 }
5435 Py_INCREF(Py_None); resultobj = Py_None;
5436 return resultobj;
5437 fail:
5438 return NULL;
5439 }
5440
5441
5442 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
5443 PyObject *resultobj;
5444 wxListBox *arg1 = (wxListBox *) 0 ;
5445 int arg2 = (int) -1 ;
5446 PyObject * obj0 = 0 ;
5447 PyObject * obj1 = 0 ;
5448 char *kwnames[] = {
5449 (char *) "self",(char *) "itemToLeaveSelected", NULL
5450 };
5451
5452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
5453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5454 if (obj1) {
5455 {
5456 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5457 if (PyErr_Occurred()) SWIG_fail;
5458 }
5459 }
5460 {
5461 PyThreadState* __tstate = wxPyBeginAllowThreads();
5462 (arg1)->DeselectAll(arg2);
5463
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 Py_INCREF(Py_None); resultobj = Py_None;
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj;
5476 wxListBox *arg1 = (wxListBox *) 0 ;
5477 wxString *arg2 = 0 ;
5478 bool arg3 = (bool) True ;
5479 bool result;
5480 bool temp2 = False ;
5481 PyObject * obj0 = 0 ;
5482 PyObject * obj1 = 0 ;
5483 PyObject * obj2 = 0 ;
5484 char *kwnames[] = {
5485 (char *) "self",(char *) "s",(char *) "select", NULL
5486 };
5487
5488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5490 {
5491 arg2 = wxString_in_helper(obj1);
5492 if (arg2 == NULL) SWIG_fail;
5493 temp2 = True;
5494 }
5495 if (obj2) {
5496 {
5497 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 }
5501 {
5502 PyThreadState* __tstate = wxPyBeginAllowThreads();
5503 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
5504
5505 wxPyEndAllowThreads(__tstate);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 }
5508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5509 {
5510 if (temp2)
5511 delete arg2;
5512 }
5513 return resultobj;
5514 fail:
5515 {
5516 if (temp2)
5517 delete arg2;
5518 }
5519 return NULL;
5520 }
5521
5522
5523 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
5524 PyObject *resultobj;
5525 wxListBox *arg1 = (wxListBox *) 0 ;
5526 PyObject *result;
5527 PyObject * obj0 = 0 ;
5528 char *kwnames[] = {
5529 (char *) "self", NULL
5530 };
5531
5532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
5533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5534 {
5535 PyThreadState* __tstate = wxPyBeginAllowThreads();
5536 result = (PyObject *)wxListBox_GetSelections(arg1);
5537
5538 wxPyEndAllowThreads(__tstate);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 resultobj = result;
5542 return resultobj;
5543 fail:
5544 return NULL;
5545 }
5546
5547
5548 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5549 PyObject *resultobj;
5550 wxListBox *arg1 = (wxListBox *) 0 ;
5551 int arg2 ;
5552 PyObject * obj0 = 0 ;
5553 PyObject * obj1 = 0 ;
5554 char *kwnames[] = {
5555 (char *) "self",(char *) "n", NULL
5556 };
5557
5558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
5559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5560 {
5561 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 {
5565 PyThreadState* __tstate = wxPyBeginAllowThreads();
5566 (arg1)->SetFirstItem(arg2);
5567
5568 wxPyEndAllowThreads(__tstate);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 }
5571 Py_INCREF(Py_None); resultobj = Py_None;
5572 return resultobj;
5573 fail:
5574 return NULL;
5575 }
5576
5577
5578 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
5579 PyObject *resultobj;
5580 wxListBox *arg1 = (wxListBox *) 0 ;
5581 wxString *arg2 = 0 ;
5582 bool temp2 = False ;
5583 PyObject * obj0 = 0 ;
5584 PyObject * obj1 = 0 ;
5585 char *kwnames[] = {
5586 (char *) "self",(char *) "s", NULL
5587 };
5588
5589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
5590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5591 {
5592 arg2 = wxString_in_helper(obj1);
5593 if (arg2 == NULL) SWIG_fail;
5594 temp2 = True;
5595 }
5596 {
5597 PyThreadState* __tstate = wxPyBeginAllowThreads();
5598 (arg1)->SetFirstItem((wxString const &)*arg2);
5599
5600 wxPyEndAllowThreads(__tstate);
5601 if (PyErr_Occurred()) SWIG_fail;
5602 }
5603 Py_INCREF(Py_None); resultobj = Py_None;
5604 {
5605 if (temp2)
5606 delete arg2;
5607 }
5608 return resultobj;
5609 fail:
5610 {
5611 if (temp2)
5612 delete arg2;
5613 }
5614 return NULL;
5615 }
5616
5617
5618 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5619 PyObject *resultobj;
5620 wxListBox *arg1 = (wxListBox *) 0 ;
5621 int arg2 ;
5622 PyObject * obj0 = 0 ;
5623 PyObject * obj1 = 0 ;
5624 char *kwnames[] = {
5625 (char *) "self",(char *) "n", NULL
5626 };
5627
5628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5630 {
5631 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 {
5635 PyThreadState* __tstate = wxPyBeginAllowThreads();
5636 (arg1)->EnsureVisible(arg2);
5637
5638 wxPyEndAllowThreads(__tstate);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 }
5641 Py_INCREF(Py_None); resultobj = Py_None;
5642 return resultobj;
5643 fail:
5644 return NULL;
5645 }
5646
5647
5648 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5649 PyObject *resultobj;
5650 wxListBox *arg1 = (wxListBox *) 0 ;
5651 wxString *arg2 = 0 ;
5652 bool temp2 = False ;
5653 PyObject * obj0 = 0 ;
5654 PyObject * obj1 = 0 ;
5655 char *kwnames[] = {
5656 (char *) "self",(char *) "s", NULL
5657 };
5658
5659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5661 {
5662 arg2 = wxString_in_helper(obj1);
5663 if (arg2 == NULL) SWIG_fail;
5664 temp2 = True;
5665 }
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
5669
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 Py_INCREF(Py_None); resultobj = Py_None;
5674 {
5675 if (temp2)
5676 delete arg2;
5677 }
5678 return resultobj;
5679 fail:
5680 {
5681 if (temp2)
5682 delete arg2;
5683 }
5684 return NULL;
5685 }
5686
5687
5688 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
5689 PyObject *resultobj;
5690 wxListBox *arg1 = (wxListBox *) 0 ;
5691 bool result;
5692 PyObject * obj0 = 0 ;
5693 char *kwnames[] = {
5694 (char *) "self", NULL
5695 };
5696
5697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
5698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5699 {
5700 PyThreadState* __tstate = wxPyBeginAllowThreads();
5701 result = (bool)((wxListBox const *)arg1)->IsSorted();
5702
5703 wxPyEndAllowThreads(__tstate);
5704 if (PyErr_Occurred()) SWIG_fail;
5705 }
5706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5707 return resultobj;
5708 fail:
5709 return NULL;
5710 }
5711
5712
5713 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5714 PyObject *resultobj;
5715 wxListBox *arg1 = (wxListBox *) 0 ;
5716 int arg2 ;
5717 wxColour *arg3 = 0 ;
5718 wxColour temp3 ;
5719 PyObject * obj0 = 0 ;
5720 PyObject * obj1 = 0 ;
5721 PyObject * obj2 = 0 ;
5722 char *kwnames[] = {
5723 (char *) "self",(char *) "item",(char *) "c", NULL
5724 };
5725
5726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5728 {
5729 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 {
5733 arg3 = &temp3;
5734 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5735 }
5736 {
5737 PyThreadState* __tstate = wxPyBeginAllowThreads();
5738 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
5739
5740 wxPyEndAllowThreads(__tstate);
5741 if (PyErr_Occurred()) SWIG_fail;
5742 }
5743 Py_INCREF(Py_None); resultobj = Py_None;
5744 return resultobj;
5745 fail:
5746 return NULL;
5747 }
5748
5749
5750 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5751 PyObject *resultobj;
5752 wxListBox *arg1 = (wxListBox *) 0 ;
5753 int arg2 ;
5754 wxColour *arg3 = 0 ;
5755 wxColour temp3 ;
5756 PyObject * obj0 = 0 ;
5757 PyObject * obj1 = 0 ;
5758 PyObject * obj2 = 0 ;
5759 char *kwnames[] = {
5760 (char *) "self",(char *) "item",(char *) "c", NULL
5761 };
5762
5763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5765 {
5766 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 {
5770 arg3 = &temp3;
5771 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5772 }
5773 {
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
5776
5777 wxPyEndAllowThreads(__tstate);
5778 if (PyErr_Occurred()) SWIG_fail;
5779 }
5780 Py_INCREF(Py_None); resultobj = Py_None;
5781 return resultobj;
5782 fail:
5783 return NULL;
5784 }
5785
5786
5787 static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5788 PyObject *resultobj;
5789 wxListBox *arg1 = (wxListBox *) 0 ;
5790 int arg2 ;
5791 wxFont *arg3 = 0 ;
5792 PyObject * obj0 = 0 ;
5793 PyObject * obj1 = 0 ;
5794 PyObject * obj2 = 0 ;
5795 char *kwnames[] = {
5796 (char *) "self",(char *) "item",(char *) "f", NULL
5797 };
5798
5799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
5800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5801 {
5802 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5803 if (PyErr_Occurred()) SWIG_fail;
5804 }
5805 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5806 if (arg3 == NULL) {
5807 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5808 }
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 Py_INCREF(Py_None); resultobj = Py_None;
5817 return resultobj;
5818 fail:
5819 return NULL;
5820 }
5821
5822
5823 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
5824 PyObject *obj;
5825 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5826 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
5827 Py_INCREF(obj);
5828 return Py_BuildValue((char *)"");
5829 }
5830 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5831 PyObject *resultobj;
5832 wxWindow *arg1 = (wxWindow *) 0 ;
5833 int arg2 ;
5834 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5835 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5836 wxSize const &arg4_defvalue = wxDefaultSize ;
5837 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5838 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5839 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5840 long arg6 = (long) 0 ;
5841 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5842 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5843 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5844 wxString *arg8 = (wxString *) &arg8_defvalue ;
5845 wxCheckListBox *result;
5846 wxPoint temp3 ;
5847 wxSize temp4 ;
5848 bool temp5 = False ;
5849 bool temp8 = False ;
5850 PyObject * obj0 = 0 ;
5851 PyObject * obj1 = 0 ;
5852 PyObject * obj2 = 0 ;
5853 PyObject * obj3 = 0 ;
5854 PyObject * obj4 = 0 ;
5855 PyObject * obj5 = 0 ;
5856 PyObject * obj6 = 0 ;
5857 PyObject * obj7 = 0 ;
5858 char *kwnames[] = {
5859 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5860 };
5861
5862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5864 {
5865 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 if (obj2) {
5869 {
5870 arg3 = &temp3;
5871 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5872 }
5873 }
5874 if (obj3) {
5875 {
5876 arg4 = &temp4;
5877 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5878 }
5879 }
5880 if (obj4) {
5881 {
5882 if (! PySequence_Check(obj4)) {
5883 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5884 SWIG_fail;
5885 }
5886 arg5 = new wxArrayString;
5887 temp5 = True;
5888 int i, len=PySequence_Length(obj4);
5889 for (i=0; i<len; i++) {
5890 PyObject* item = PySequence_GetItem(obj4, i);
5891 #if wxUSE_UNICODE
5892 PyObject* str = PyObject_Unicode(item);
5893 #else
5894 PyObject* str = PyObject_Str(item);
5895 #endif
5896 arg5->Add(Py2wxString(str));
5897 Py_DECREF(item);
5898 Py_DECREF(str);
5899 }
5900 }
5901 }
5902 if (obj5) {
5903 {
5904 arg6 = (long) SWIG_PyObj_AsLong(obj5);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 }
5908 if (obj6) {
5909 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5910 if (arg7 == NULL) {
5911 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5912 }
5913 }
5914 if (obj7) {
5915 {
5916 arg8 = wxString_in_helper(obj7);
5917 if (arg8 == NULL) SWIG_fail;
5918 temp8 = True;
5919 }
5920 }
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5924
5925 wxPyEndAllowThreads(__tstate);
5926 if (PyErr_Occurred()) SWIG_fail;
5927 }
5928 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1);
5929 {
5930 if (temp5) delete arg5;
5931 }
5932 {
5933 if (temp8)
5934 delete arg8;
5935 }
5936 return resultobj;
5937 fail:
5938 {
5939 if (temp5) delete arg5;
5940 }
5941 {
5942 if (temp8)
5943 delete arg8;
5944 }
5945 return NULL;
5946 }
5947
5948
5949 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5950 PyObject *resultobj;
5951 wxCheckListBox *result;
5952 char *kwnames[] = {
5953 NULL
5954 };
5955
5956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
5957 {
5958 PyThreadState* __tstate = wxPyBeginAllowThreads();
5959 result = (wxCheckListBox *)new wxCheckListBox();
5960
5961 wxPyEndAllowThreads(__tstate);
5962 if (PyErr_Occurred()) SWIG_fail;
5963 }
5964 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1);
5965 return resultobj;
5966 fail:
5967 return NULL;
5968 }
5969
5970
5971 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5972 PyObject *resultobj;
5973 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
5974 wxWindow *arg2 = (wxWindow *) 0 ;
5975 int arg3 ;
5976 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5977 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5978 wxSize const &arg5_defvalue = wxDefaultSize ;
5979 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5980 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5981 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5982 long arg7 = (long) 0 ;
5983 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5984 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5985 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5986 wxString *arg9 = (wxString *) &arg9_defvalue ;
5987 bool result;
5988 wxPoint temp4 ;
5989 wxSize temp5 ;
5990 bool temp6 = False ;
5991 bool temp9 = False ;
5992 PyObject * obj0 = 0 ;
5993 PyObject * obj1 = 0 ;
5994 PyObject * obj2 = 0 ;
5995 PyObject * obj3 = 0 ;
5996 PyObject * obj4 = 0 ;
5997 PyObject * obj5 = 0 ;
5998 PyObject * obj6 = 0 ;
5999 PyObject * obj7 = 0 ;
6000 PyObject * obj8 = 0 ;
6001 char *kwnames[] = {
6002 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6003 };
6004
6005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6007 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6008 {
6009 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 if (obj3) {
6013 {
6014 arg4 = &temp4;
6015 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6016 }
6017 }
6018 if (obj4) {
6019 {
6020 arg5 = &temp5;
6021 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6022 }
6023 }
6024 if (obj5) {
6025 {
6026 if (! PySequence_Check(obj5)) {
6027 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6028 SWIG_fail;
6029 }
6030 arg6 = new wxArrayString;
6031 temp6 = True;
6032 int i, len=PySequence_Length(obj5);
6033 for (i=0; i<len; i++) {
6034 PyObject* item = PySequence_GetItem(obj5, i);
6035 #if wxUSE_UNICODE
6036 PyObject* str = PyObject_Unicode(item);
6037 #else
6038 PyObject* str = PyObject_Str(item);
6039 #endif
6040 arg6->Add(Py2wxString(str));
6041 Py_DECREF(item);
6042 Py_DECREF(str);
6043 }
6044 }
6045 }
6046 if (obj6) {
6047 {
6048 arg7 = (long) SWIG_PyObj_AsLong(obj6);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
6051 }
6052 if (obj7) {
6053 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6054 if (arg8 == NULL) {
6055 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6056 }
6057 }
6058 if (obj8) {
6059 {
6060 arg9 = wxString_in_helper(obj8);
6061 if (arg9 == NULL) SWIG_fail;
6062 temp9 = True;
6063 }
6064 }
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6068
6069 wxPyEndAllowThreads(__tstate);
6070 if (PyErr_Occurred()) SWIG_fail;
6071 }
6072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6073 {
6074 if (temp6) delete arg6;
6075 }
6076 {
6077 if (temp9)
6078 delete arg9;
6079 }
6080 return resultobj;
6081 fail:
6082 {
6083 if (temp6) delete arg6;
6084 }
6085 {
6086 if (temp9)
6087 delete arg9;
6088 }
6089 return NULL;
6090 }
6091
6092
6093 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6094 PyObject *resultobj;
6095 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6096 int arg2 ;
6097 bool result;
6098 PyObject * obj0 = 0 ;
6099 PyObject * obj1 = 0 ;
6100 char *kwnames[] = {
6101 (char *) "self",(char *) "index", NULL
6102 };
6103
6104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6106 {
6107 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6108 if (PyErr_Occurred()) SWIG_fail;
6109 }
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 result = (bool)(arg1)->IsChecked(arg2);
6113
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6118 return resultobj;
6119 fail:
6120 return NULL;
6121 }
6122
6123
6124 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj;
6126 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6127 int arg2 ;
6128 int arg3 = (int) True ;
6129 PyObject * obj0 = 0 ;
6130 PyObject * obj1 = 0 ;
6131 PyObject * obj2 = 0 ;
6132 char *kwnames[] = {
6133 (char *) "self",(char *) "index",(char *) "check", NULL
6134 };
6135
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6138 {
6139 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 }
6142 if (obj2) {
6143 {
6144 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 }
6148 {
6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
6150 (arg1)->Check(arg2,arg3);
6151
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 Py_INCREF(Py_None); resultobj = Py_None;
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj;
6164 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6165 int result;
6166 PyObject * obj0 = 0 ;
6167 char *kwnames[] = {
6168 (char *) "self", NULL
6169 };
6170
6171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
6172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6173 {
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 result = (int)(arg1)->GetItemHeight();
6176
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 resultobj = SWIG_PyObj_FromInt((int)result);
6181 return resultobj;
6182 fail:
6183 return NULL;
6184 }
6185
6186
6187 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj;
6189 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6190 wxPoint *arg2 = 0 ;
6191 int result;
6192 wxPoint temp2 ;
6193 PyObject * obj0 = 0 ;
6194 PyObject * obj1 = 0 ;
6195 char *kwnames[] = {
6196 (char *) "self",(char *) "pt", NULL
6197 };
6198
6199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6201 {
6202 arg2 = &temp2;
6203 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6204 }
6205 {
6206 PyThreadState* __tstate = wxPyBeginAllowThreads();
6207 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6208
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 resultobj = SWIG_PyObj_FromInt((int)result);
6213 return resultobj;
6214 fail:
6215 return NULL;
6216 }
6217
6218
6219 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6220 PyObject *resultobj;
6221 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6222 int arg2 ;
6223 int arg3 ;
6224 int result;
6225 PyObject * obj0 = 0 ;
6226 PyObject * obj1 = 0 ;
6227 PyObject * obj2 = 0 ;
6228 char *kwnames[] = {
6229 (char *) "self",(char *) "x",(char *) "y", NULL
6230 };
6231
6232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6234 {
6235 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6236 if (PyErr_Occurred()) SWIG_fail;
6237 }
6238 {
6239 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 {
6243 PyThreadState* __tstate = wxPyBeginAllowThreads();
6244 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6245
6246 wxPyEndAllowThreads(__tstate);
6247 if (PyErr_Occurred()) SWIG_fail;
6248 }
6249 resultobj = SWIG_PyObj_FromInt((int)result);
6250 return resultobj;
6251 fail:
6252 return NULL;
6253 }
6254
6255
6256 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6257 PyObject *obj;
6258 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6259 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6260 Py_INCREF(obj);
6261 return Py_BuildValue((char *)"");
6262 }
6263 static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6264 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6265 return 1;
6266 }
6267
6268
6269 static PyObject *_wrap_TextCtrlNameStr_get() {
6270 PyObject *pyobj;
6271
6272 {
6273 #if wxUSE_UNICODE
6274 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6275 #else
6276 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6277 #endif
6278 }
6279 return pyobj;
6280 }
6281
6282
6283 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6284 PyObject *resultobj;
6285 wxTextAttr *result;
6286
6287 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6288 {
6289 PyThreadState* __tstate = wxPyBeginAllowThreads();
6290 result = (wxTextAttr *)new wxTextAttr();
6291
6292 wxPyEndAllowThreads(__tstate);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1);
6296 return resultobj;
6297 fail:
6298 return NULL;
6299 }
6300
6301
6302 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6303 PyObject *resultobj;
6304 wxColour *arg1 = 0 ;
6305 wxColour const &arg2_defvalue = wxNullColour ;
6306 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6307 wxFont const &arg3_defvalue = wxNullFont ;
6308 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6309 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6310 wxTextAttr *result;
6311 wxColour temp1 ;
6312 wxColour temp2 ;
6313 PyObject * obj0 = 0 ;
6314 PyObject * obj1 = 0 ;
6315 PyObject * obj2 = 0 ;
6316 PyObject * obj3 = 0 ;
6317
6318 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6319 {
6320 arg1 = &temp1;
6321 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6322 }
6323 if (obj1) {
6324 {
6325 arg2 = &temp2;
6326 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6327 }
6328 }
6329 if (obj2) {
6330 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6331 if (arg3 == NULL) {
6332 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6333 }
6334 }
6335 if (obj3) {
6336 {
6337 arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 }
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6344
6345 wxPyEndAllowThreads(__tstate);
6346 if (PyErr_Occurred()) SWIG_fail;
6347 }
6348 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1);
6349 return resultobj;
6350 fail:
6351 return NULL;
6352 }
6353
6354
6355 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6356 int argc;
6357 PyObject *argv[5];
6358 int ii;
6359
6360 argc = PyObject_Length(args);
6361 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6362 argv[ii] = PyTuple_GetItem(args,ii);
6363 }
6364 if (argc == 0) {
6365 return _wrap_new_TextAttr__SWIG_0(self,args);
6366 }
6367 if ((argc >= 1) && (argc <= 4)) {
6368 int _v;
6369 {
6370 _v = wxColour_typecheck(argv[0]);
6371 }
6372 if (_v) {
6373 if (argc <= 1) {
6374 return _wrap_new_TextAttr__SWIG_1(self,args);
6375 }
6376 {
6377 _v = wxColour_typecheck(argv[1]);
6378 }
6379 if (_v) {
6380 if (argc <= 2) {
6381 return _wrap_new_TextAttr__SWIG_1(self,args);
6382 }
6383 {
6384 void *ptr;
6385 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6386 _v = 0;
6387 PyErr_Clear();
6388 } else {
6389 _v = 1;
6390 }
6391 }
6392 if (_v) {
6393 if (argc <= 3) {
6394 return _wrap_new_TextAttr__SWIG_1(self,args);
6395 }
6396 {
6397 SWIG_PyObj_AsInt(argv[3]);
6398 if (PyErr_Occurred()) {
6399 _v = 0;
6400 PyErr_Clear();
6401 } else {
6402 _v = 1;
6403 }
6404 }
6405 if (_v) {
6406 return _wrap_new_TextAttr__SWIG_1(self,args);
6407 }
6408 }
6409 }
6410 }
6411 }
6412
6413 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6414 return NULL;
6415 }
6416
6417
6418 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6419 PyObject *resultobj;
6420 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6421 PyObject * obj0 = 0 ;
6422 char *kwnames[] = {
6423 (char *) "self", NULL
6424 };
6425
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
6427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6428 {
6429 PyThreadState* __tstate = wxPyBeginAllowThreads();
6430 delete arg1;
6431
6432 wxPyEndAllowThreads(__tstate);
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 Py_INCREF(Py_None); resultobj = Py_None;
6436 return resultobj;
6437 fail:
6438 return NULL;
6439 }
6440
6441
6442 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6443 PyObject *resultobj;
6444 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6445 PyObject * obj0 = 0 ;
6446 char *kwnames[] = {
6447 (char *) "self", NULL
6448 };
6449
6450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
6451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6452 {
6453 PyThreadState* __tstate = wxPyBeginAllowThreads();
6454 (arg1)->Init();
6455
6456 wxPyEndAllowThreads(__tstate);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 Py_INCREF(Py_None); resultobj = Py_None;
6460 return resultobj;
6461 fail:
6462 return NULL;
6463 }
6464
6465
6466 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6467 PyObject *resultobj;
6468 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6469 wxColour *arg2 = 0 ;
6470 wxColour temp2 ;
6471 PyObject * obj0 = 0 ;
6472 PyObject * obj1 = 0 ;
6473 char *kwnames[] = {
6474 (char *) "self",(char *) "colText", NULL
6475 };
6476
6477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
6478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6479 {
6480 arg2 = &temp2;
6481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6482 }
6483 {
6484 PyThreadState* __tstate = wxPyBeginAllowThreads();
6485 (arg1)->SetTextColour((wxColour const &)*arg2);
6486
6487 wxPyEndAllowThreads(__tstate);
6488 if (PyErr_Occurred()) SWIG_fail;
6489 }
6490 Py_INCREF(Py_None); resultobj = Py_None;
6491 return resultobj;
6492 fail:
6493 return NULL;
6494 }
6495
6496
6497 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6498 PyObject *resultobj;
6499 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6500 wxColour *arg2 = 0 ;
6501 wxColour temp2 ;
6502 PyObject * obj0 = 0 ;
6503 PyObject * obj1 = 0 ;
6504 char *kwnames[] = {
6505 (char *) "self",(char *) "colBack", NULL
6506 };
6507
6508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
6509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6510 {
6511 arg2 = &temp2;
6512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6513 }
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
6517
6518 wxPyEndAllowThreads(__tstate);
6519 if (PyErr_Occurred()) SWIG_fail;
6520 }
6521 Py_INCREF(Py_None); resultobj = Py_None;
6522 return resultobj;
6523 fail:
6524 return NULL;
6525 }
6526
6527
6528 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6529 PyObject *resultobj;
6530 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6531 wxFont *arg2 = 0 ;
6532 long arg3 = (long) wxTEXT_ATTR_FONT ;
6533 PyObject * obj0 = 0 ;
6534 PyObject * obj1 = 0 ;
6535 PyObject * obj2 = 0 ;
6536 char *kwnames[] = {
6537 (char *) "self",(char *) "font",(char *) "flags", NULL
6538 };
6539
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6542 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6543 if (arg2 == NULL) {
6544 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6545 }
6546 if (obj2) {
6547 {
6548 arg3 = (long) SWIG_PyObj_AsLong(obj2);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 }
6552 {
6553 PyThreadState* __tstate = wxPyBeginAllowThreads();
6554 (arg1)->SetFont((wxFont const &)*arg2,arg3);
6555
6556 wxPyEndAllowThreads(__tstate);
6557 if (PyErr_Occurred()) SWIG_fail;
6558 }
6559 Py_INCREF(Py_None); resultobj = Py_None;
6560 return resultobj;
6561 fail:
6562 return NULL;
6563 }
6564
6565
6566 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6567 PyObject *resultobj;
6568 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6569 int arg2 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char *kwnames[] = {
6573 (char *) "self",(char *) "alignment", NULL
6574 };
6575
6576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
6577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6578 {
6579 arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 {
6583 PyThreadState* __tstate = wxPyBeginAllowThreads();
6584 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
6585
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 Py_INCREF(Py_None); resultobj = Py_None;
6590 return resultobj;
6591 fail:
6592 return NULL;
6593 }
6594
6595
6596 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6597 PyObject *resultobj;
6598 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6599 wxArrayInt *arg2 = 0 ;
6600 bool temp2 = False ;
6601 PyObject * obj0 = 0 ;
6602 PyObject * obj1 = 0 ;
6603 char *kwnames[] = {
6604 (char *) "self",(char *) "tabs", NULL
6605 };
6606
6607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
6608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6609 {
6610 if (! PySequence_Check(obj1)) {
6611 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
6612 SWIG_fail;
6613 }
6614 arg2 = new wxArrayInt;
6615 temp2 = True;
6616 int i, len=PySequence_Length(obj1);
6617 for (i=0; i<len; i++) {
6618 PyObject* item = PySequence_GetItem(obj1, i);
6619 PyObject* number = PyNumber_Int(item);
6620 arg2->Add(PyInt_AS_LONG(number));
6621 Py_DECREF(item);
6622 Py_DECREF(number);
6623 }
6624 }
6625 {
6626 PyThreadState* __tstate = wxPyBeginAllowThreads();
6627 (arg1)->SetTabs((wxArrayInt const &)*arg2);
6628
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 Py_INCREF(Py_None); resultobj = Py_None;
6633 {
6634 if (temp2) delete arg2;
6635 }
6636 return resultobj;
6637 fail:
6638 {
6639 if (temp2) delete arg2;
6640 }
6641 return NULL;
6642 }
6643
6644
6645 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6646 PyObject *resultobj;
6647 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6648 int arg2 ;
6649 PyObject * obj0 = 0 ;
6650 PyObject * obj1 = 0 ;
6651 char *kwnames[] = {
6652 (char *) "self",(char *) "indent", NULL
6653 };
6654
6655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
6656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6657 {
6658 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 (arg1)->SetLeftIndent(arg2);
6664
6665 wxPyEndAllowThreads(__tstate);
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 Py_INCREF(Py_None); resultobj = Py_None;
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj;
6677 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6678 int arg2 ;
6679 PyObject * obj0 = 0 ;
6680 PyObject * obj1 = 0 ;
6681 char *kwnames[] = {
6682 (char *) "self",(char *) "indent", NULL
6683 };
6684
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
6686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6687 {
6688 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 {
6692 PyThreadState* __tstate = wxPyBeginAllowThreads();
6693 (arg1)->SetRightIndent(arg2);
6694
6695 wxPyEndAllowThreads(__tstate);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 Py_INCREF(Py_None); resultobj = Py_None;
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj;
6707 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6708 long arg2 ;
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6711 char *kwnames[] = {
6712 (char *) "self",(char *) "flags", NULL
6713 };
6714
6715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
6716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6717 {
6718 arg2 = (long) SWIG_PyObj_AsLong(obj1);
6719 if (PyErr_Occurred()) SWIG_fail;
6720 }
6721 {
6722 PyThreadState* __tstate = wxPyBeginAllowThreads();
6723 (arg1)->SetFlags(arg2);
6724
6725 wxPyEndAllowThreads(__tstate);
6726 if (PyErr_Occurred()) SWIG_fail;
6727 }
6728 Py_INCREF(Py_None); resultobj = Py_None;
6729 return resultobj;
6730 fail:
6731 return NULL;
6732 }
6733
6734
6735 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj;
6737 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6738 bool result;
6739 PyObject * obj0 = 0 ;
6740 char *kwnames[] = {
6741 (char *) "self", NULL
6742 };
6743
6744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
6745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6746 {
6747 PyThreadState* __tstate = wxPyBeginAllowThreads();
6748 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
6749
6750 wxPyEndAllowThreads(__tstate);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6754 return resultobj;
6755 fail:
6756 return NULL;
6757 }
6758
6759
6760 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6761 PyObject *resultobj;
6762 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6763 bool result;
6764 PyObject * obj0 = 0 ;
6765 char *kwnames[] = {
6766 (char *) "self", NULL
6767 };
6768
6769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
6770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6771 {
6772 PyThreadState* __tstate = wxPyBeginAllowThreads();
6773 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
6774
6775 wxPyEndAllowThreads(__tstate);
6776 if (PyErr_Occurred()) SWIG_fail;
6777 }
6778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6779 return resultobj;
6780 fail:
6781 return NULL;
6782 }
6783
6784
6785 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6786 PyObject *resultobj;
6787 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6788 bool result;
6789 PyObject * obj0 = 0 ;
6790 char *kwnames[] = {
6791 (char *) "self", NULL
6792 };
6793
6794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
6795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6796 {
6797 PyThreadState* __tstate = wxPyBeginAllowThreads();
6798 result = (bool)((wxTextAttr const *)arg1)->HasFont();
6799
6800 wxPyEndAllowThreads(__tstate);
6801 if (PyErr_Occurred()) SWIG_fail;
6802 }
6803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6804 return resultobj;
6805 fail:
6806 return NULL;
6807 }
6808
6809
6810 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6811 PyObject *resultobj;
6812 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6813 bool result;
6814 PyObject * obj0 = 0 ;
6815 char *kwnames[] = {
6816 (char *) "self", NULL
6817 };
6818
6819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
6820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6821 {
6822 PyThreadState* __tstate = wxPyBeginAllowThreads();
6823 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
6824
6825 wxPyEndAllowThreads(__tstate);
6826 if (PyErr_Occurred()) SWIG_fail;
6827 }
6828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6829 return resultobj;
6830 fail:
6831 return NULL;
6832 }
6833
6834
6835 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6836 PyObject *resultobj;
6837 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6838 bool result;
6839 PyObject * obj0 = 0 ;
6840 char *kwnames[] = {
6841 (char *) "self", NULL
6842 };
6843
6844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
6845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6846 {
6847 PyThreadState* __tstate = wxPyBeginAllowThreads();
6848 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
6849
6850 wxPyEndAllowThreads(__tstate);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6854 return resultobj;
6855 fail:
6856 return NULL;
6857 }
6858
6859
6860 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj;
6862 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6863 bool result;
6864 PyObject * obj0 = 0 ;
6865 char *kwnames[] = {
6866 (char *) "self", NULL
6867 };
6868
6869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
6870 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6871 {
6872 PyThreadState* __tstate = wxPyBeginAllowThreads();
6873 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
6874
6875 wxPyEndAllowThreads(__tstate);
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6879 return resultobj;
6880 fail:
6881 return NULL;
6882 }
6883
6884
6885 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6886 PyObject *resultobj;
6887 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6888 bool result;
6889 PyObject * obj0 = 0 ;
6890 char *kwnames[] = {
6891 (char *) "self", NULL
6892 };
6893
6894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
6895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
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_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj;
6912 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6913 long arg2 ;
6914 bool result;
6915 PyObject * obj0 = 0 ;
6916 PyObject * obj1 = 0 ;
6917 char *kwnames[] = {
6918 (char *) "self",(char *) "flag", NULL
6919 };
6920
6921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
6922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6923 {
6924 arg2 = (long) SWIG_PyObj_AsLong(obj1);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 {
6928 PyThreadState* __tstate = wxPyBeginAllowThreads();
6929 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
6930
6931 wxPyEndAllowThreads(__tstate);
6932 if (PyErr_Occurred()) SWIG_fail;
6933 }
6934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6935 return resultobj;
6936 fail:
6937 return NULL;
6938 }
6939
6940
6941 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6942 PyObject *resultobj;
6943 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6944 wxColour *result;
6945 PyObject * obj0 = 0 ;
6946 char *kwnames[] = {
6947 (char *) "self", NULL
6948 };
6949
6950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
6951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6952 {
6953 PyThreadState* __tstate = wxPyBeginAllowThreads();
6954 {
6955 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
6956 result = (wxColour *) &_result_ref;
6957 }
6958
6959 wxPyEndAllowThreads(__tstate);
6960 if (PyErr_Occurred()) SWIG_fail;
6961 }
6962 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
6963 return resultobj;
6964 fail:
6965 return NULL;
6966 }
6967
6968
6969 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6970 PyObject *resultobj;
6971 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6972 wxColour *result;
6973 PyObject * obj0 = 0 ;
6974 char *kwnames[] = {
6975 (char *) "self", NULL
6976 };
6977
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
6979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6980 {
6981 PyThreadState* __tstate = wxPyBeginAllowThreads();
6982 {
6983 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
6984 result = (wxColour *) &_result_ref;
6985 }
6986
6987 wxPyEndAllowThreads(__tstate);
6988 if (PyErr_Occurred()) SWIG_fail;
6989 }
6990 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
6991 return resultobj;
6992 fail:
6993 return NULL;
6994 }
6995
6996
6997 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6998 PyObject *resultobj;
6999 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7000 wxFont *result;
7001 PyObject * obj0 = 0 ;
7002 char *kwnames[] = {
7003 (char *) "self", NULL
7004 };
7005
7006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7008 {
7009 PyThreadState* __tstate = wxPyBeginAllowThreads();
7010 {
7011 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7012 result = (wxFont *) &_result_ref;
7013 }
7014
7015 wxPyEndAllowThreads(__tstate);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
7019 return resultobj;
7020 fail:
7021 return NULL;
7022 }
7023
7024
7025 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7026 PyObject *resultobj;
7027 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7028 int result;
7029 PyObject * obj0 = 0 ;
7030 char *kwnames[] = {
7031 (char *) "self", NULL
7032 };
7033
7034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7036 {
7037 PyThreadState* __tstate = wxPyBeginAllowThreads();
7038 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7039
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 resultobj = SWIG_PyObj_FromInt((int)result);
7044 return resultobj;
7045 fail:
7046 return NULL;
7047 }
7048
7049
7050 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7051 PyObject *resultobj;
7052 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7053 wxArrayInt *result;
7054 PyObject * obj0 = 0 ;
7055 char *kwnames[] = {
7056 (char *) "self", NULL
7057 };
7058
7059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7061 {
7062 PyThreadState* __tstate = wxPyBeginAllowThreads();
7063 {
7064 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7065 result = (wxArrayInt *) &_result_ref;
7066 }
7067
7068 wxPyEndAllowThreads(__tstate);
7069 if (PyErr_Occurred()) SWIG_fail;
7070 }
7071 {
7072 resultobj = PyList_New(0);
7073 size_t idx;
7074 for (idx = 0; idx < result->GetCount(); idx += 1) {
7075 PyObject* val = PyInt_FromLong( result->Item(idx) );
7076 PyList_Append(resultobj, val);
7077 Py_DECREF(val);
7078 }
7079 }
7080 return resultobj;
7081 fail:
7082 return NULL;
7083 }
7084
7085
7086 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7087 PyObject *resultobj;
7088 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7089 long result;
7090 PyObject * obj0 = 0 ;
7091 char *kwnames[] = {
7092 (char *) "self", NULL
7093 };
7094
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7097 {
7098 PyThreadState* __tstate = wxPyBeginAllowThreads();
7099 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7100
7101 wxPyEndAllowThreads(__tstate);
7102 if (PyErr_Occurred()) SWIG_fail;
7103 }
7104 resultobj = SWIG_PyObj_FromLong((long)result);
7105 return resultobj;
7106 fail:
7107 return NULL;
7108 }
7109
7110
7111 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7112 PyObject *resultobj;
7113 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7114 long result;
7115 PyObject * obj0 = 0 ;
7116 char *kwnames[] = {
7117 (char *) "self", NULL
7118 };
7119
7120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7122 {
7123 PyThreadState* __tstate = wxPyBeginAllowThreads();
7124 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7125
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 resultobj = SWIG_PyObj_FromLong((long)result);
7130 return resultobj;
7131 fail:
7132 return NULL;
7133 }
7134
7135
7136 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj;
7138 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7139 long result;
7140 PyObject * obj0 = 0 ;
7141 char *kwnames[] = {
7142 (char *) "self", NULL
7143 };
7144
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7147 {
7148 PyThreadState* __tstate = wxPyBeginAllowThreads();
7149 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7150
7151 wxPyEndAllowThreads(__tstate);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 }
7154 resultobj = SWIG_PyObj_FromLong((long)result);
7155 return resultobj;
7156 fail:
7157 return NULL;
7158 }
7159
7160
7161 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7162 PyObject *resultobj;
7163 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7164 bool result;
7165 PyObject * obj0 = 0 ;
7166 char *kwnames[] = {
7167 (char *) "self", NULL
7168 };
7169
7170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7172 {
7173 PyThreadState* __tstate = wxPyBeginAllowThreads();
7174 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7175
7176 wxPyEndAllowThreads(__tstate);
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
7179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7187 PyObject *resultobj;
7188 wxTextAttr *arg1 = 0 ;
7189 wxTextAttr *arg2 = 0 ;
7190 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7191 wxTextAttr result;
7192 PyObject * obj0 = 0 ;
7193 PyObject * obj1 = 0 ;
7194 PyObject * obj2 = 0 ;
7195 char *kwnames[] = {
7196 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7197 };
7198
7199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7201 if (arg1 == NULL) {
7202 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7203 }
7204 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7205 if (arg2 == NULL) {
7206 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7207 }
7208 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7212
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 {
7217 wxTextAttr * resultptr;
7218 resultptr = new wxTextAttr((wxTextAttr &) result);
7219 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1);
7220 }
7221 return resultobj;
7222 fail:
7223 return NULL;
7224 }
7225
7226
7227 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7228 PyObject *obj;
7229 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7230 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7231 Py_INCREF(obj);
7232 return Py_BuildValue((char *)"");
7233 }
7234 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject *resultobj;
7236 wxWindow *arg1 = (wxWindow *) 0 ;
7237 int arg2 ;
7238 wxString const &arg3_defvalue = wxPyEmptyString ;
7239 wxString *arg3 = (wxString *) &arg3_defvalue ;
7240 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7241 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7242 wxSize const &arg5_defvalue = wxDefaultSize ;
7243 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7244 long arg6 = (long) 0 ;
7245 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7246 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7247 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7248 wxString *arg8 = (wxString *) &arg8_defvalue ;
7249 wxTextCtrl *result;
7250 bool temp3 = False ;
7251 wxPoint temp4 ;
7252 wxSize temp5 ;
7253 bool temp8 = False ;
7254 PyObject * obj0 = 0 ;
7255 PyObject * obj1 = 0 ;
7256 PyObject * obj2 = 0 ;
7257 PyObject * obj3 = 0 ;
7258 PyObject * obj4 = 0 ;
7259 PyObject * obj5 = 0 ;
7260 PyObject * obj6 = 0 ;
7261 PyObject * obj7 = 0 ;
7262 char *kwnames[] = {
7263 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7264 };
7265
7266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7268 {
7269 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7270 if (PyErr_Occurred()) SWIG_fail;
7271 }
7272 if (obj2) {
7273 {
7274 arg3 = wxString_in_helper(obj2);
7275 if (arg3 == NULL) SWIG_fail;
7276 temp3 = True;
7277 }
7278 }
7279 if (obj3) {
7280 {
7281 arg4 = &temp4;
7282 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7283 }
7284 }
7285 if (obj4) {
7286 {
7287 arg5 = &temp5;
7288 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7289 }
7290 }
7291 if (obj5) {
7292 {
7293 arg6 = (long) SWIG_PyObj_AsLong(obj5);
7294 if (PyErr_Occurred()) SWIG_fail;
7295 }
7296 }
7297 if (obj6) {
7298 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7299 if (arg7 == NULL) {
7300 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7301 }
7302 }
7303 if (obj7) {
7304 {
7305 arg8 = wxString_in_helper(obj7);
7306 if (arg8 == NULL) SWIG_fail;
7307 temp8 = True;
7308 }
7309 }
7310 {
7311 PyThreadState* __tstate = wxPyBeginAllowThreads();
7312 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7313
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 {
7318 resultobj = wxPyMake_wxObject(result);
7319 }
7320 {
7321 if (temp3)
7322 delete arg3;
7323 }
7324 {
7325 if (temp8)
7326 delete arg8;
7327 }
7328 return resultobj;
7329 fail:
7330 {
7331 if (temp3)
7332 delete arg3;
7333 }
7334 {
7335 if (temp8)
7336 delete arg8;
7337 }
7338 return NULL;
7339 }
7340
7341
7342 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7343 PyObject *resultobj;
7344 wxTextCtrl *result;
7345 char *kwnames[] = {
7346 NULL
7347 };
7348
7349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
7350 {
7351 PyThreadState* __tstate = wxPyBeginAllowThreads();
7352 result = (wxTextCtrl *)new wxTextCtrl();
7353
7354 wxPyEndAllowThreads(__tstate);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 {
7358 resultobj = wxPyMake_wxObject(result);
7359 }
7360 return resultobj;
7361 fail:
7362 return NULL;
7363 }
7364
7365
7366 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7367 PyObject *resultobj;
7368 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7369 wxWindow *arg2 = (wxWindow *) 0 ;
7370 int arg3 ;
7371 wxString const &arg4_defvalue = wxPyEmptyString ;
7372 wxString *arg4 = (wxString *) &arg4_defvalue ;
7373 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7374 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7375 wxSize const &arg6_defvalue = wxDefaultSize ;
7376 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7377 long arg7 = (long) 0 ;
7378 wxValidator const &arg8_defvalue = wxDefaultValidator ;
7379 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
7380 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
7381 wxString *arg9 = (wxString *) &arg9_defvalue ;
7382 bool result;
7383 bool temp4 = False ;
7384 wxPoint temp5 ;
7385 wxSize temp6 ;
7386 bool temp9 = False ;
7387 PyObject * obj0 = 0 ;
7388 PyObject * obj1 = 0 ;
7389 PyObject * obj2 = 0 ;
7390 PyObject * obj3 = 0 ;
7391 PyObject * obj4 = 0 ;
7392 PyObject * obj5 = 0 ;
7393 PyObject * obj6 = 0 ;
7394 PyObject * obj7 = 0 ;
7395 PyObject * obj8 = 0 ;
7396 char *kwnames[] = {
7397 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7398 };
7399
7400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
7401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7402 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7403 {
7404 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 if (obj3) {
7408 {
7409 arg4 = wxString_in_helper(obj3);
7410 if (arg4 == NULL) SWIG_fail;
7411 temp4 = True;
7412 }
7413 }
7414 if (obj4) {
7415 {
7416 arg5 = &temp5;
7417 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7418 }
7419 }
7420 if (obj5) {
7421 {
7422 arg6 = &temp6;
7423 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7424 }
7425 }
7426 if (obj6) {
7427 {
7428 arg7 = (long) SWIG_PyObj_AsLong(obj6);
7429 if (PyErr_Occurred()) SWIG_fail;
7430 }
7431 }
7432 if (obj7) {
7433 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7434 if (arg8 == NULL) {
7435 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7436 }
7437 }
7438 if (obj8) {
7439 {
7440 arg9 = wxString_in_helper(obj8);
7441 if (arg9 == NULL) SWIG_fail;
7442 temp9 = True;
7443 }
7444 }
7445 {
7446 PyThreadState* __tstate = wxPyBeginAllowThreads();
7447 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7448
7449 wxPyEndAllowThreads(__tstate);
7450 if (PyErr_Occurred()) SWIG_fail;
7451 }
7452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7453 {
7454 if (temp4)
7455 delete arg4;
7456 }
7457 {
7458 if (temp9)
7459 delete arg9;
7460 }
7461 return resultobj;
7462 fail:
7463 {
7464 if (temp4)
7465 delete arg4;
7466 }
7467 {
7468 if (temp9)
7469 delete arg9;
7470 }
7471 return NULL;
7472 }
7473
7474
7475 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7476 PyObject *resultobj;
7477 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7478 wxString result;
7479 PyObject * obj0 = 0 ;
7480 char *kwnames[] = {
7481 (char *) "self", NULL
7482 };
7483
7484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
7485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7486 {
7487 PyThreadState* __tstate = wxPyBeginAllowThreads();
7488 result = ((wxTextCtrl const *)arg1)->GetValue();
7489
7490 wxPyEndAllowThreads(__tstate);
7491 if (PyErr_Occurred()) SWIG_fail;
7492 }
7493 {
7494 #if wxUSE_UNICODE
7495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7496 #else
7497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7498 #endif
7499 }
7500 return resultobj;
7501 fail:
7502 return NULL;
7503 }
7504
7505
7506 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7507 PyObject *resultobj;
7508 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7509 wxString *arg2 = 0 ;
7510 bool temp2 = False ;
7511 PyObject * obj0 = 0 ;
7512 PyObject * obj1 = 0 ;
7513 char *kwnames[] = {
7514 (char *) "self",(char *) "value", NULL
7515 };
7516
7517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
7518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7519 {
7520 arg2 = wxString_in_helper(obj1);
7521 if (arg2 == NULL) SWIG_fail;
7522 temp2 = True;
7523 }
7524 {
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 (arg1)->SetValue((wxString const &)*arg2);
7527
7528 wxPyEndAllowThreads(__tstate);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 Py_INCREF(Py_None); resultobj = Py_None;
7532 {
7533 if (temp2)
7534 delete arg2;
7535 }
7536 return resultobj;
7537 fail:
7538 {
7539 if (temp2)
7540 delete arg2;
7541 }
7542 return NULL;
7543 }
7544
7545
7546 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
7547 PyObject *resultobj;
7548 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7549 long arg2 ;
7550 long arg3 ;
7551 wxString result;
7552 PyObject * obj0 = 0 ;
7553 PyObject * obj1 = 0 ;
7554 PyObject * obj2 = 0 ;
7555 char *kwnames[] = {
7556 (char *) "self",(char *) "from",(char *) "to", NULL
7557 };
7558
7559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
7560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7561 {
7562 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 {
7566 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
7572
7573 wxPyEndAllowThreads(__tstate);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 {
7577 #if wxUSE_UNICODE
7578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7579 #else
7580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7581 #endif
7582 }
7583 return resultobj;
7584 fail:
7585 return NULL;
7586 }
7587
7588
7589 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj;
7591 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7592 long arg2 ;
7593 int result;
7594 PyObject * obj0 = 0 ;
7595 PyObject * obj1 = 0 ;
7596 char *kwnames[] = {
7597 (char *) "self",(char *) "lineNo", NULL
7598 };
7599
7600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
7601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7602 {
7603 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 }
7606 {
7607 PyThreadState* __tstate = wxPyBeginAllowThreads();
7608 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
7609
7610 wxPyEndAllowThreads(__tstate);
7611 if (PyErr_Occurred()) SWIG_fail;
7612 }
7613 resultobj = SWIG_PyObj_FromInt((int)result);
7614 return resultobj;
7615 fail:
7616 return NULL;
7617 }
7618
7619
7620 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
7621 PyObject *resultobj;
7622 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7623 long arg2 ;
7624 wxString result;
7625 PyObject * obj0 = 0 ;
7626 PyObject * obj1 = 0 ;
7627 char *kwnames[] = {
7628 (char *) "self",(char *) "lineNo", NULL
7629 };
7630
7631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
7632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7633 {
7634 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 }
7637 {
7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
7639 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
7640
7641 wxPyEndAllowThreads(__tstate);
7642 if (PyErr_Occurred()) SWIG_fail;
7643 }
7644 {
7645 #if wxUSE_UNICODE
7646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7647 #else
7648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7649 #endif
7650 }
7651 return resultobj;
7652 fail:
7653 return NULL;
7654 }
7655
7656
7657 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7658 PyObject *resultobj;
7659 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7660 int result;
7661 PyObject * obj0 = 0 ;
7662 char *kwnames[] = {
7663 (char *) "self", NULL
7664 };
7665
7666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
7667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7668 {
7669 PyThreadState* __tstate = wxPyBeginAllowThreads();
7670 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
7671
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 resultobj = SWIG_PyObj_FromInt((int)result);
7676 return resultobj;
7677 fail:
7678 return NULL;
7679 }
7680
7681
7682 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
7683 PyObject *resultobj;
7684 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7685 bool result;
7686 PyObject * obj0 = 0 ;
7687 char *kwnames[] = {
7688 (char *) "self", NULL
7689 };
7690
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
7692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7693 {
7694 PyThreadState* __tstate = wxPyBeginAllowThreads();
7695 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
7696
7697 wxPyEndAllowThreads(__tstate);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 }
7700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7701 return resultobj;
7702 fail:
7703 return NULL;
7704 }
7705
7706
7707 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7708 PyObject *resultobj;
7709 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7710 bool result;
7711 PyObject * obj0 = 0 ;
7712 char *kwnames[] = {
7713 (char *) "self", NULL
7714 };
7715
7716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
7717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7718 {
7719 PyThreadState* __tstate = wxPyBeginAllowThreads();
7720 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
7721
7722 wxPyEndAllowThreads(__tstate);
7723 if (PyErr_Occurred()) SWIG_fail;
7724 }
7725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7726 return resultobj;
7727 fail:
7728 return NULL;
7729 }
7730
7731
7732 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7733 PyObject *resultobj;
7734 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7735 bool result;
7736 PyObject * obj0 = 0 ;
7737 char *kwnames[] = {
7738 (char *) "self", NULL
7739 };
7740
7741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
7742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7743 {
7744 PyThreadState* __tstate = wxPyBeginAllowThreads();
7745 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
7746
7747 wxPyEndAllowThreads(__tstate);
7748 if (PyErr_Occurred()) SWIG_fail;
7749 }
7750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7751 return resultobj;
7752 fail:
7753 return NULL;
7754 }
7755
7756
7757 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj;
7759 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7760 bool result;
7761 PyObject * obj0 = 0 ;
7762 char *kwnames[] = {
7763 (char *) "self", NULL
7764 };
7765
7766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
7767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7768 {
7769 PyThreadState* __tstate = wxPyBeginAllowThreads();
7770 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
7771
7772 wxPyEndAllowThreads(__tstate);
7773 if (PyErr_Occurred()) SWIG_fail;
7774 }
7775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7776 return resultobj;
7777 fail:
7778 return NULL;
7779 }
7780
7781
7782 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject *resultobj;
7784 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7785 long *arg2 = (long *) 0 ;
7786 long *arg3 = (long *) 0 ;
7787 long temp2 ;
7788 long temp3 ;
7789 PyObject * obj0 = 0 ;
7790 char *kwnames[] = {
7791 (char *) "self", NULL
7792 };
7793
7794 arg2 = &temp2;
7795 arg3 = &temp3;
7796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
7797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7798 {
7799 PyThreadState* __tstate = wxPyBeginAllowThreads();
7800 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
7801
7802 wxPyEndAllowThreads(__tstate);
7803 if (PyErr_Occurred()) SWIG_fail;
7804 }
7805 Py_INCREF(Py_None); resultobj = Py_None;
7806 {
7807 PyObject *o = PyInt_FromLong((long) (*arg2));
7808 resultobj = t_output_helper(resultobj,o);
7809 }
7810 {
7811 PyObject *o = PyInt_FromLong((long) (*arg3));
7812 resultobj = t_output_helper(resultobj,o);
7813 }
7814 return resultobj;
7815 fail:
7816 return NULL;
7817 }
7818
7819
7820 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7821 PyObject *resultobj;
7822 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7823 wxString result;
7824 PyObject * obj0 = 0 ;
7825 char *kwnames[] = {
7826 (char *) "self", NULL
7827 };
7828
7829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
7830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7831 {
7832 PyThreadState* __tstate = wxPyBeginAllowThreads();
7833 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
7834
7835 wxPyEndAllowThreads(__tstate);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 {
7839 #if wxUSE_UNICODE
7840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7841 #else
7842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7843 #endif
7844 }
7845 return resultobj;
7846 fail:
7847 return NULL;
7848 }
7849
7850
7851 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
7852 PyObject *resultobj;
7853 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7854 PyObject * obj0 = 0 ;
7855 char *kwnames[] = {
7856 (char *) "self", NULL
7857 };
7858
7859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
7860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7861 {
7862 PyThreadState* __tstate = wxPyBeginAllowThreads();
7863 (arg1)->Clear();
7864
7865 wxPyEndAllowThreads(__tstate);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 Py_INCREF(Py_None); resultobj = Py_None;
7869 return resultobj;
7870 fail:
7871 return NULL;
7872 }
7873
7874
7875 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
7876 PyObject *resultobj;
7877 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7878 long arg2 ;
7879 long arg3 ;
7880 wxString *arg4 = 0 ;
7881 bool temp4 = False ;
7882 PyObject * obj0 = 0 ;
7883 PyObject * obj1 = 0 ;
7884 PyObject * obj2 = 0 ;
7885 PyObject * obj3 = 0 ;
7886 char *kwnames[] = {
7887 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
7888 };
7889
7890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7892 {
7893 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 {
7897 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 {
7901 arg4 = wxString_in_helper(obj3);
7902 if (arg4 == NULL) SWIG_fail;
7903 temp4 = True;
7904 }
7905 {
7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
7907 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
7908
7909 wxPyEndAllowThreads(__tstate);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 Py_INCREF(Py_None); resultobj = Py_None;
7913 {
7914 if (temp4)
7915 delete arg4;
7916 }
7917 return resultobj;
7918 fail:
7919 {
7920 if (temp4)
7921 delete arg4;
7922 }
7923 return NULL;
7924 }
7925
7926
7927 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj;
7929 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7930 long arg2 ;
7931 long arg3 ;
7932 PyObject * obj0 = 0 ;
7933 PyObject * obj1 = 0 ;
7934 PyObject * obj2 = 0 ;
7935 char *kwnames[] = {
7936 (char *) "self",(char *) "from",(char *) "to", NULL
7937 };
7938
7939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
7940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7941 {
7942 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 {
7946 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 {
7950 PyThreadState* __tstate = wxPyBeginAllowThreads();
7951 (arg1)->Remove(arg2,arg3);
7952
7953 wxPyEndAllowThreads(__tstate);
7954 if (PyErr_Occurred()) SWIG_fail;
7955 }
7956 Py_INCREF(Py_None); resultobj = Py_None;
7957 return resultobj;
7958 fail:
7959 return NULL;
7960 }
7961
7962
7963 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7964 PyObject *resultobj;
7965 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7966 wxString *arg2 = 0 ;
7967 bool result;
7968 bool temp2 = False ;
7969 PyObject * obj0 = 0 ;
7970 PyObject * obj1 = 0 ;
7971 char *kwnames[] = {
7972 (char *) "self",(char *) "file", NULL
7973 };
7974
7975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
7976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7977 {
7978 arg2 = wxString_in_helper(obj1);
7979 if (arg2 == NULL) SWIG_fail;
7980 temp2 = True;
7981 }
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7990 {
7991 if (temp2)
7992 delete arg2;
7993 }
7994 return resultobj;
7995 fail:
7996 {
7997 if (temp2)
7998 delete arg2;
7999 }
8000 return NULL;
8001 }
8002
8003
8004 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8005 PyObject *resultobj;
8006 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8007 wxString const &arg2_defvalue = wxPyEmptyString ;
8008 wxString *arg2 = (wxString *) &arg2_defvalue ;
8009 bool result;
8010 bool temp2 = False ;
8011 PyObject * obj0 = 0 ;
8012 PyObject * obj1 = 0 ;
8013 char *kwnames[] = {
8014 (char *) "self",(char *) "file", NULL
8015 };
8016
8017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8019 if (obj1) {
8020 {
8021 arg2 = wxString_in_helper(obj1);
8022 if (arg2 == NULL) SWIG_fail;
8023 temp2 = True;
8024 }
8025 }
8026 {
8027 PyThreadState* __tstate = wxPyBeginAllowThreads();
8028 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8029
8030 wxPyEndAllowThreads(__tstate);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 }
8033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8034 {
8035 if (temp2)
8036 delete arg2;
8037 }
8038 return resultobj;
8039 fail:
8040 {
8041 if (temp2)
8042 delete arg2;
8043 }
8044 return NULL;
8045 }
8046
8047
8048 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj;
8050 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8051 PyObject * obj0 = 0 ;
8052 char *kwnames[] = {
8053 (char *) "self", NULL
8054 };
8055
8056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8058 {
8059 PyThreadState* __tstate = wxPyBeginAllowThreads();
8060 (arg1)->MarkDirty();
8061
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 Py_INCREF(Py_None); resultobj = Py_None;
8066 return resultobj;
8067 fail:
8068 return NULL;
8069 }
8070
8071
8072 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8073 PyObject *resultobj;
8074 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8075 PyObject * obj0 = 0 ;
8076 char *kwnames[] = {
8077 (char *) "self", NULL
8078 };
8079
8080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8082 {
8083 PyThreadState* __tstate = wxPyBeginAllowThreads();
8084 (arg1)->DiscardEdits();
8085
8086 wxPyEndAllowThreads(__tstate);
8087 if (PyErr_Occurred()) SWIG_fail;
8088 }
8089 Py_INCREF(Py_None); resultobj = Py_None;
8090 return resultobj;
8091 fail:
8092 return NULL;
8093 }
8094
8095
8096 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8097 PyObject *resultobj;
8098 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8099 unsigned long arg2 ;
8100 PyObject * obj0 = 0 ;
8101 PyObject * obj1 = 0 ;
8102 char *kwnames[] = {
8103 (char *) "self",(char *) "len", NULL
8104 };
8105
8106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8108 {
8109 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 }
8112 {
8113 PyThreadState* __tstate = wxPyBeginAllowThreads();
8114 (arg1)->SetMaxLength(arg2);
8115
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 Py_INCREF(Py_None); resultobj = Py_None;
8120 return resultobj;
8121 fail:
8122 return NULL;
8123 }
8124
8125
8126 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8127 PyObject *resultobj;
8128 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8129 wxString *arg2 = 0 ;
8130 bool temp2 = False ;
8131 PyObject * obj0 = 0 ;
8132 PyObject * obj1 = 0 ;
8133 char *kwnames[] = {
8134 (char *) "self",(char *) "text", NULL
8135 };
8136
8137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8139 {
8140 arg2 = wxString_in_helper(obj1);
8141 if (arg2 == NULL) SWIG_fail;
8142 temp2 = True;
8143 }
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 (arg1)->WriteText((wxString const &)*arg2);
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 Py_INCREF(Py_None); resultobj = Py_None;
8152 {
8153 if (temp2)
8154 delete arg2;
8155 }
8156 return resultobj;
8157 fail:
8158 {
8159 if (temp2)
8160 delete arg2;
8161 }
8162 return NULL;
8163 }
8164
8165
8166 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8167 PyObject *resultobj;
8168 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8169 wxString *arg2 = 0 ;
8170 bool temp2 = False ;
8171 PyObject * obj0 = 0 ;
8172 PyObject * obj1 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "self",(char *) "text", NULL
8175 };
8176
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8179 {
8180 arg2 = wxString_in_helper(obj1);
8181 if (arg2 == NULL) SWIG_fail;
8182 temp2 = True;
8183 }
8184 {
8185 PyThreadState* __tstate = wxPyBeginAllowThreads();
8186 (arg1)->AppendText((wxString const &)*arg2);
8187
8188 wxPyEndAllowThreads(__tstate);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 Py_INCREF(Py_None); resultobj = Py_None;
8192 {
8193 if (temp2)
8194 delete arg2;
8195 }
8196 return resultobj;
8197 fail:
8198 {
8199 if (temp2)
8200 delete arg2;
8201 }
8202 return NULL;
8203 }
8204
8205
8206 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8207 PyObject *resultobj;
8208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8209 wxKeyEvent *arg2 = 0 ;
8210 bool result;
8211 PyObject * obj0 = 0 ;
8212 PyObject * obj1 = 0 ;
8213 char *kwnames[] = {
8214 (char *) "self",(char *) "event", NULL
8215 };
8216
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8219 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8220 if (arg2 == NULL) {
8221 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8222 }
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8226
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
8230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8231 return resultobj;
8232 fail:
8233 return NULL;
8234 }
8235
8236
8237 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8238 PyObject *resultobj;
8239 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8240 long arg2 ;
8241 long arg3 ;
8242 wxTextAttr *arg4 = 0 ;
8243 bool result;
8244 PyObject * obj0 = 0 ;
8245 PyObject * obj1 = 0 ;
8246 PyObject * obj2 = 0 ;
8247 PyObject * obj3 = 0 ;
8248 char *kwnames[] = {
8249 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8250 };
8251
8252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8254 {
8255 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 {
8259 arg3 = (long) SWIG_PyObj_AsLong(obj2);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8263 if (arg4 == NULL) {
8264 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8265 }
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8274 return resultobj;
8275 fail:
8276 return NULL;
8277 }
8278
8279
8280 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj;
8282 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8283 long arg2 ;
8284 wxTextAttr *arg3 = 0 ;
8285 bool result;
8286 PyObject * obj0 = 0 ;
8287 PyObject * obj1 = 0 ;
8288 PyObject * obj2 = 0 ;
8289 char *kwnames[] = {
8290 (char *) "self",(char *) "position",(char *) "style", NULL
8291 };
8292
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8295 {
8296 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 }
8299 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8300 if (arg3 == NULL) {
8301 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8302 }
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8311 return resultobj;
8312 fail:
8313 return NULL;
8314 }
8315
8316
8317 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8318 PyObject *resultobj;
8319 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8320 wxTextAttr *arg2 = 0 ;
8321 bool result;
8322 PyObject * obj0 = 0 ;
8323 PyObject * obj1 = 0 ;
8324 char *kwnames[] = {
8325 (char *) "self",(char *) "style", NULL
8326 };
8327
8328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
8329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8330 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8331 if (arg2 == NULL) {
8332 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8333 }
8334 {
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
8337
8338 wxPyEndAllowThreads(__tstate);
8339 if (PyErr_Occurred()) SWIG_fail;
8340 }
8341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8342 return resultobj;
8343 fail:
8344 return NULL;
8345 }
8346
8347
8348 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8349 PyObject *resultobj;
8350 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8351 wxTextAttr *result;
8352 PyObject * obj0 = 0 ;
8353 char *kwnames[] = {
8354 (char *) "self", NULL
8355 };
8356
8357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
8358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8359 {
8360 PyThreadState* __tstate = wxPyBeginAllowThreads();
8361 {
8362 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
8363 result = (wxTextAttr *) &_result_ref;
8364 }
8365
8366 wxPyEndAllowThreads(__tstate);
8367 if (PyErr_Occurred()) SWIG_fail;
8368 }
8369 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0);
8370 return resultobj;
8371 fail:
8372 return NULL;
8373 }
8374
8375
8376 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8377 PyObject *resultobj;
8378 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8379 long arg2 ;
8380 long arg3 ;
8381 long result;
8382 PyObject * obj0 = 0 ;
8383 PyObject * obj1 = 0 ;
8384 PyObject * obj2 = 0 ;
8385 char *kwnames[] = {
8386 (char *) "self",(char *) "x",(char *) "y", NULL
8387 };
8388
8389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
8390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8391 {
8392 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 {
8396 arg3 = (long) SWIG_PyObj_AsLong(obj2);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 }
8399 {
8400 PyThreadState* __tstate = wxPyBeginAllowThreads();
8401 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
8402
8403 wxPyEndAllowThreads(__tstate);
8404 if (PyErr_Occurred()) SWIG_fail;
8405 }
8406 resultobj = SWIG_PyObj_FromLong((long)result);
8407 return resultobj;
8408 fail:
8409 return NULL;
8410 }
8411
8412
8413 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8414 PyObject *resultobj;
8415 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8416 long arg2 ;
8417 long *arg3 = (long *) 0 ;
8418 long *arg4 = (long *) 0 ;
8419 long temp3 ;
8420 long temp4 ;
8421 PyObject * obj0 = 0 ;
8422 PyObject * obj1 = 0 ;
8423 char *kwnames[] = {
8424 (char *) "self",(char *) "pos", NULL
8425 };
8426
8427 arg3 = &temp3;
8428 arg4 = &temp4;
8429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
8430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8431 {
8432 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8433 if (PyErr_Occurred()) SWIG_fail;
8434 }
8435 {
8436 PyThreadState* __tstate = wxPyBeginAllowThreads();
8437 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
8438
8439 wxPyEndAllowThreads(__tstate);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 Py_INCREF(Py_None); resultobj = Py_None;
8443 {
8444 PyObject *o = PyInt_FromLong((long) (*arg3));
8445 resultobj = t_output_helper(resultobj,o);
8446 }
8447 {
8448 PyObject *o = PyInt_FromLong((long) (*arg4));
8449 resultobj = t_output_helper(resultobj,o);
8450 }
8451 return resultobj;
8452 fail:
8453 return NULL;
8454 }
8455
8456
8457 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8458 PyObject *resultobj;
8459 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8460 long arg2 ;
8461 PyObject * obj0 = 0 ;
8462 PyObject * obj1 = 0 ;
8463 char *kwnames[] = {
8464 (char *) "self",(char *) "pos", NULL
8465 };
8466
8467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
8468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8469 {
8470 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8471 if (PyErr_Occurred()) SWIG_fail;
8472 }
8473 {
8474 PyThreadState* __tstate = wxPyBeginAllowThreads();
8475 (arg1)->ShowPosition(arg2);
8476
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 Py_INCREF(Py_None); resultobj = Py_None;
8481 return resultobj;
8482 fail:
8483 return NULL;
8484 }
8485
8486
8487 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
8488 PyObject *resultobj;
8489 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8490 wxPoint *arg2 = 0 ;
8491 long *arg3 = (long *) 0 ;
8492 long *arg4 = (long *) 0 ;
8493 int result;
8494 wxPoint temp2 ;
8495 long temp3 ;
8496 long temp4 ;
8497 PyObject * obj0 = 0 ;
8498 PyObject * obj1 = 0 ;
8499 char *kwnames[] = {
8500 (char *) "self",(char *) "pt", NULL
8501 };
8502
8503 arg3 = &temp3;
8504 arg4 = &temp4;
8505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
8506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8507 {
8508 arg2 = &temp2;
8509 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8510 }
8511 {
8512 PyThreadState* __tstate = wxPyBeginAllowThreads();
8513 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
8514
8515 wxPyEndAllowThreads(__tstate);
8516 if (PyErr_Occurred()) SWIG_fail;
8517 }
8518 resultobj = SWIG_PyObj_FromInt((int)result);
8519 {
8520 PyObject *o = PyInt_FromLong((long) (*arg3));
8521 resultobj = t_output_helper(resultobj,o);
8522 }
8523 {
8524 PyObject *o = PyInt_FromLong((long) (*arg4));
8525 resultobj = t_output_helper(resultobj,o);
8526 }
8527 return resultobj;
8528 fail:
8529 return NULL;
8530 }
8531
8532
8533 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
8534 PyObject *resultobj;
8535 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8536 PyObject * obj0 = 0 ;
8537 char *kwnames[] = {
8538 (char *) "self", NULL
8539 };
8540
8541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
8542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 (arg1)->Copy();
8546
8547 wxPyEndAllowThreads(__tstate);
8548 if (PyErr_Occurred()) SWIG_fail;
8549 }
8550 Py_INCREF(Py_None); resultobj = Py_None;
8551 return resultobj;
8552 fail:
8553 return NULL;
8554 }
8555
8556
8557 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
8558 PyObject *resultobj;
8559 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8560 PyObject * obj0 = 0 ;
8561 char *kwnames[] = {
8562 (char *) "self", NULL
8563 };
8564
8565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
8566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8567 {
8568 PyThreadState* __tstate = wxPyBeginAllowThreads();
8569 (arg1)->Cut();
8570
8571 wxPyEndAllowThreads(__tstate);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 }
8574 Py_INCREF(Py_None); resultobj = Py_None;
8575 return resultobj;
8576 fail:
8577 return NULL;
8578 }
8579
8580
8581 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
8582 PyObject *resultobj;
8583 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8584 PyObject * obj0 = 0 ;
8585 char *kwnames[] = {
8586 (char *) "self", NULL
8587 };
8588
8589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
8590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 (arg1)->Paste();
8594
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) SWIG_fail;
8597 }
8598 Py_INCREF(Py_None); resultobj = Py_None;
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8608 bool result;
8609 PyObject * obj0 = 0 ;
8610 char *kwnames[] = {
8611 (char *) "self", NULL
8612 };
8613
8614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
8615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8624 return resultobj;
8625 fail:
8626 return NULL;
8627 }
8628
8629
8630 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
8631 PyObject *resultobj;
8632 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8633 bool result;
8634 PyObject * obj0 = 0 ;
8635 char *kwnames[] = {
8636 (char *) "self", NULL
8637 };
8638
8639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
8640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
8644
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8649 return resultobj;
8650 fail:
8651 return NULL;
8652 }
8653
8654
8655 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj;
8657 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8658 bool result;
8659 PyObject * obj0 = 0 ;
8660 char *kwnames[] = {
8661 (char *) "self", NULL
8662 };
8663
8664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
8665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8666 {
8667 PyThreadState* __tstate = wxPyBeginAllowThreads();
8668 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
8669
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8674 return resultobj;
8675 fail:
8676 return NULL;
8677 }
8678
8679
8680 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
8681 PyObject *resultobj;
8682 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8683 PyObject * obj0 = 0 ;
8684 char *kwnames[] = {
8685 (char *) "self", NULL
8686 };
8687
8688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
8689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8690 {
8691 PyThreadState* __tstate = wxPyBeginAllowThreads();
8692 (arg1)->Undo();
8693
8694 wxPyEndAllowThreads(__tstate);
8695 if (PyErr_Occurred()) SWIG_fail;
8696 }
8697 Py_INCREF(Py_None); resultobj = Py_None;
8698 return resultobj;
8699 fail:
8700 return NULL;
8701 }
8702
8703
8704 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
8705 PyObject *resultobj;
8706 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8707 PyObject * obj0 = 0 ;
8708 char *kwnames[] = {
8709 (char *) "self", NULL
8710 };
8711
8712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
8713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8714 {
8715 PyThreadState* __tstate = wxPyBeginAllowThreads();
8716 (arg1)->Redo();
8717
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 Py_INCREF(Py_None); resultobj = Py_None;
8722 return resultobj;
8723 fail:
8724 return NULL;
8725 }
8726
8727
8728 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj;
8730 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8731 bool result;
8732 PyObject * obj0 = 0 ;
8733 char *kwnames[] = {
8734 (char *) "self", NULL
8735 };
8736
8737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
8738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8739 {
8740 PyThreadState* __tstate = wxPyBeginAllowThreads();
8741 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
8742
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8747 return resultobj;
8748 fail:
8749 return NULL;
8750 }
8751
8752
8753 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj;
8755 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8756 bool result;
8757 PyObject * obj0 = 0 ;
8758 char *kwnames[] = {
8759 (char *) "self", NULL
8760 };
8761
8762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
8763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8764 {
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
8767
8768 wxPyEndAllowThreads(__tstate);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
8771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8772 return resultobj;
8773 fail:
8774 return NULL;
8775 }
8776
8777
8778 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8779 PyObject *resultobj;
8780 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8781 long arg2 ;
8782 PyObject * obj0 = 0 ;
8783 PyObject * obj1 = 0 ;
8784 char *kwnames[] = {
8785 (char *) "self",(char *) "pos", NULL
8786 };
8787
8788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
8789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8790 {
8791 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 (arg1)->SetInsertionPoint(arg2);
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 Py_INCREF(Py_None); resultobj = Py_None;
8802 return resultobj;
8803 fail:
8804 return NULL;
8805 }
8806
8807
8808 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj;
8810 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8811 PyObject * obj0 = 0 ;
8812 char *kwnames[] = {
8813 (char *) "self", NULL
8814 };
8815
8816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
8817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8818 {
8819 PyThreadState* __tstate = wxPyBeginAllowThreads();
8820 (arg1)->SetInsertionPointEnd();
8821
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 Py_INCREF(Py_None); resultobj = Py_None;
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8835 long result;
8836 PyObject * obj0 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8843 {
8844 PyThreadState* __tstate = wxPyBeginAllowThreads();
8845 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
8846
8847 wxPyEndAllowThreads(__tstate);
8848 if (PyErr_Occurred()) SWIG_fail;
8849 }
8850 resultobj = SWIG_PyObj_FromLong((long)result);
8851 return resultobj;
8852 fail:
8853 return NULL;
8854 }
8855
8856
8857 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8858 PyObject *resultobj;
8859 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8860 long result;
8861 PyObject * obj0 = 0 ;
8862 char *kwnames[] = {
8863 (char *) "self", NULL
8864 };
8865
8866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
8867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8868 {
8869 PyThreadState* __tstate = wxPyBeginAllowThreads();
8870 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
8871
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 resultobj = SWIG_PyObj_FromLong((long)result);
8876 return resultobj;
8877 fail:
8878 return NULL;
8879 }
8880
8881
8882 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8883 PyObject *resultobj;
8884 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8885 long arg2 ;
8886 long arg3 ;
8887 PyObject * obj0 = 0 ;
8888 PyObject * obj1 = 0 ;
8889 PyObject * obj2 = 0 ;
8890 char *kwnames[] = {
8891 (char *) "self",(char *) "from",(char *) "to", NULL
8892 };
8893
8894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
8895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8896 {
8897 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 {
8901 arg3 = (long) SWIG_PyObj_AsLong(obj2);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 {
8905 PyThreadState* __tstate = wxPyBeginAllowThreads();
8906 (arg1)->SetSelection(arg2,arg3);
8907
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 Py_INCREF(Py_None); resultobj = Py_None;
8912 return resultobj;
8913 fail:
8914 return NULL;
8915 }
8916
8917
8918 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8919 PyObject *resultobj;
8920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8921 PyObject * obj0 = 0 ;
8922 char *kwnames[] = {
8923 (char *) "self", NULL
8924 };
8925
8926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
8927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8928 {
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 (arg1)->SelectAll();
8931
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 Py_INCREF(Py_None); resultobj = Py_None;
8936 return resultobj;
8937 fail:
8938 return NULL;
8939 }
8940
8941
8942 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8943 PyObject *resultobj;
8944 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8945 bool arg2 ;
8946 PyObject * obj0 = 0 ;
8947 PyObject * obj1 = 0 ;
8948 char *kwnames[] = {
8949 (char *) "self",(char *) "editable", NULL
8950 };
8951
8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
8953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8954 {
8955 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
8958 {
8959 PyThreadState* __tstate = wxPyBeginAllowThreads();
8960 (arg1)->SetEditable(arg2);
8961
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 Py_INCREF(Py_None); resultobj = Py_None;
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj;
8974 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8975 wxString *arg2 = 0 ;
8976 bool temp2 = False ;
8977 PyObject * obj0 = 0 ;
8978 PyObject * obj1 = 0 ;
8979 char *kwnames[] = {
8980 (char *) "self",(char *) "text", NULL
8981 };
8982
8983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
8984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8985 {
8986 arg2 = wxString_in_helper(obj1);
8987 if (arg2 == NULL) SWIG_fail;
8988 temp2 = True;
8989 }
8990 {
8991 PyThreadState* __tstate = wxPyBeginAllowThreads();
8992 wxTextCtrl_write(arg1,(wxString const &)*arg2);
8993
8994 wxPyEndAllowThreads(__tstate);
8995 if (PyErr_Occurred()) SWIG_fail;
8996 }
8997 Py_INCREF(Py_None); resultobj = Py_None;
8998 {
8999 if (temp2)
9000 delete arg2;
9001 }
9002 return resultobj;
9003 fail:
9004 {
9005 if (temp2)
9006 delete arg2;
9007 }
9008 return NULL;
9009 }
9010
9011
9012 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9013 PyObject *resultobj;
9014 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9015 long arg2 ;
9016 long arg3 ;
9017 wxString result;
9018 PyObject * obj0 = 0 ;
9019 PyObject * obj1 = 0 ;
9020 PyObject * obj2 = 0 ;
9021 char *kwnames[] = {
9022 (char *) "self",(char *) "from",(char *) "to", NULL
9023 };
9024
9025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9027 {
9028 arg2 = (long) SWIG_PyObj_AsLong(obj1);
9029 if (PyErr_Occurred()) SWIG_fail;
9030 }
9031 {
9032 arg3 = (long) SWIG_PyObj_AsLong(obj2);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 }
9035 {
9036 PyThreadState* __tstate = wxPyBeginAllowThreads();
9037 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9038
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) SWIG_fail;
9041 }
9042 {
9043 #if wxUSE_UNICODE
9044 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9045 #else
9046 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9047 #endif
9048 }
9049 return resultobj;
9050 fail:
9051 return NULL;
9052 }
9053
9054
9055 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9056 PyObject *obj;
9057 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9058 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9059 Py_INCREF(obj);
9060 return Py_BuildValue((char *)"");
9061 }
9062 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj;
9064 int arg1 ;
9065 wxMouseEvent *arg2 = 0 ;
9066 long arg3 ;
9067 long arg4 ;
9068 wxTextUrlEvent *result;
9069 PyObject * obj0 = 0 ;
9070 PyObject * obj1 = 0 ;
9071 PyObject * obj2 = 0 ;
9072 PyObject * obj3 = 0 ;
9073 char *kwnames[] = {
9074 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9075 };
9076
9077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9078 {
9079 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9080 if (PyErr_Occurred()) SWIG_fail;
9081 }
9082 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9083 if (arg2 == NULL) {
9084 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9085 }
9086 {
9087 arg3 = (long) SWIG_PyObj_AsLong(obj2);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 {
9091 arg4 = (long) SWIG_PyObj_AsLong(obj3);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 {
9095 PyThreadState* __tstate = wxPyBeginAllowThreads();
9096 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9097
9098 wxPyEndAllowThreads(__tstate);
9099 if (PyErr_Occurred()) SWIG_fail;
9100 }
9101 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1);
9102 return resultobj;
9103 fail:
9104 return NULL;
9105 }
9106
9107
9108 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9109 PyObject *resultobj;
9110 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9111 wxMouseEvent *result;
9112 PyObject * obj0 = 0 ;
9113 char *kwnames[] = {
9114 (char *) "self", NULL
9115 };
9116
9117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9119 {
9120 PyThreadState* __tstate = wxPyBeginAllowThreads();
9121 {
9122 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9123 result = (wxMouseEvent *) &_result_ref;
9124 }
9125
9126 wxPyEndAllowThreads(__tstate);
9127 if (PyErr_Occurred()) SWIG_fail;
9128 }
9129 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0);
9130 return resultobj;
9131 fail:
9132 return NULL;
9133 }
9134
9135
9136 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9137 PyObject *resultobj;
9138 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9139 long result;
9140 PyObject * obj0 = 0 ;
9141 char *kwnames[] = {
9142 (char *) "self", NULL
9143 };
9144
9145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9150
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_PyObj_FromLong((long)result);
9155 return resultobj;
9156 fail:
9157 return NULL;
9158 }
9159
9160
9161 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9162 PyObject *resultobj;
9163 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9164 long result;
9165 PyObject * obj0 = 0 ;
9166 char *kwnames[] = {
9167 (char *) "self", NULL
9168 };
9169
9170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9172 {
9173 PyThreadState* __tstate = wxPyBeginAllowThreads();
9174 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9175
9176 wxPyEndAllowThreads(__tstate);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 }
9179 resultobj = SWIG_PyObj_FromLong((long)result);
9180 return resultobj;
9181 fail:
9182 return NULL;
9183 }
9184
9185
9186 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9187 PyObject *obj;
9188 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9189 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9190 Py_INCREF(obj);
9191 return Py_BuildValue((char *)"");
9192 }
9193 static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9194 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9195 return 1;
9196 }
9197
9198
9199 static PyObject *_wrap_ScrollBarNameStr_get() {
9200 PyObject *pyobj;
9201
9202 {
9203 #if wxUSE_UNICODE
9204 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9205 #else
9206 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9207 #endif
9208 }
9209 return pyobj;
9210 }
9211
9212
9213 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj;
9215 wxWindow *arg1 = (wxWindow *) 0 ;
9216 int arg2 = (int) -1 ;
9217 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9218 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9219 wxSize const &arg4_defvalue = wxDefaultSize ;
9220 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9221 long arg5 = (long) wxSB_HORIZONTAL ;
9222 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9223 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9224 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9225 wxString *arg7 = (wxString *) &arg7_defvalue ;
9226 wxScrollBar *result;
9227 wxPoint temp3 ;
9228 wxSize temp4 ;
9229 bool temp7 = False ;
9230 PyObject * obj0 = 0 ;
9231 PyObject * obj1 = 0 ;
9232 PyObject * obj2 = 0 ;
9233 PyObject * obj3 = 0 ;
9234 PyObject * obj4 = 0 ;
9235 PyObject * obj5 = 0 ;
9236 PyObject * obj6 = 0 ;
9237 char *kwnames[] = {
9238 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9239 };
9240
9241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9243 if (obj1) {
9244 {
9245 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 }
9249 if (obj2) {
9250 {
9251 arg3 = &temp3;
9252 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9253 }
9254 }
9255 if (obj3) {
9256 {
9257 arg4 = &temp4;
9258 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9259 }
9260 }
9261 if (obj4) {
9262 {
9263 arg5 = (long) SWIG_PyObj_AsLong(obj4);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
9266 }
9267 if (obj5) {
9268 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9269 if (arg6 == NULL) {
9270 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9271 }
9272 }
9273 if (obj6) {
9274 {
9275 arg7 = wxString_in_helper(obj6);
9276 if (arg7 == NULL) SWIG_fail;
9277 temp7 = True;
9278 }
9279 }
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
9283
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1);
9288 {
9289 if (temp7)
9290 delete arg7;
9291 }
9292 return resultobj;
9293 fail:
9294 {
9295 if (temp7)
9296 delete arg7;
9297 }
9298 return NULL;
9299 }
9300
9301
9302 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9303 PyObject *resultobj;
9304 wxScrollBar *result;
9305 char *kwnames[] = {
9306 NULL
9307 };
9308
9309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 result = (wxScrollBar *)new wxScrollBar();
9313
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1);
9318 return resultobj;
9319 fail:
9320 return NULL;
9321 }
9322
9323
9324 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj;
9326 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9327 wxWindow *arg2 = (wxWindow *) 0 ;
9328 int arg3 = (int) -1 ;
9329 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9330 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9331 wxSize const &arg5_defvalue = wxDefaultSize ;
9332 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9333 long arg6 = (long) wxSB_HORIZONTAL ;
9334 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9335 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9336 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
9337 wxString *arg8 = (wxString *) &arg8_defvalue ;
9338 bool result;
9339 wxPoint temp4 ;
9340 wxSize temp5 ;
9341 bool temp8 = False ;
9342 PyObject * obj0 = 0 ;
9343 PyObject * obj1 = 0 ;
9344 PyObject * obj2 = 0 ;
9345 PyObject * obj3 = 0 ;
9346 PyObject * obj4 = 0 ;
9347 PyObject * obj5 = 0 ;
9348 PyObject * obj6 = 0 ;
9349 PyObject * obj7 = 0 ;
9350 char *kwnames[] = {
9351 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9352 };
9353
9354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
9355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9356 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9357 if (obj2) {
9358 {
9359 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9360 if (PyErr_Occurred()) SWIG_fail;
9361 }
9362 }
9363 if (obj3) {
9364 {
9365 arg4 = &temp4;
9366 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9367 }
9368 }
9369 if (obj4) {
9370 {
9371 arg5 = &temp5;
9372 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9373 }
9374 }
9375 if (obj5) {
9376 {
9377 arg6 = (long) SWIG_PyObj_AsLong(obj5);
9378 if (PyErr_Occurred()) SWIG_fail;
9379 }
9380 }
9381 if (obj6) {
9382 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9383 if (arg7 == NULL) {
9384 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9385 }
9386 }
9387 if (obj7) {
9388 {
9389 arg8 = wxString_in_helper(obj7);
9390 if (arg8 == NULL) SWIG_fail;
9391 temp8 = True;
9392 }
9393 }
9394 {
9395 PyThreadState* __tstate = wxPyBeginAllowThreads();
9396 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9397
9398 wxPyEndAllowThreads(__tstate);
9399 if (PyErr_Occurred()) SWIG_fail;
9400 }
9401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9402 {
9403 if (temp8)
9404 delete arg8;
9405 }
9406 return resultobj;
9407 fail:
9408 {
9409 if (temp8)
9410 delete arg8;
9411 }
9412 return NULL;
9413 }
9414
9415
9416 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj;
9418 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9419 int result;
9420 PyObject * obj0 = 0 ;
9421 char *kwnames[] = {
9422 (char *) "self", NULL
9423 };
9424
9425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
9426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9427 {
9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
9429 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
9430
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 resultobj = SWIG_PyObj_FromInt((int)result);
9435 return resultobj;
9436 fail:
9437 return NULL;
9438 }
9439
9440
9441 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9442 PyObject *resultobj;
9443 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9444 int result;
9445 PyObject * obj0 = 0 ;
9446 char *kwnames[] = {
9447 (char *) "self", NULL
9448 };
9449
9450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
9451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9452 {
9453 PyThreadState* __tstate = wxPyBeginAllowThreads();
9454 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
9455
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 resultobj = SWIG_PyObj_FromInt((int)result);
9460 return resultobj;
9461 fail:
9462 return NULL;
9463 }
9464
9465
9466 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj;
9468 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9469 int result;
9470 PyObject * obj0 = 0 ;
9471 char *kwnames[] = {
9472 (char *) "self", NULL
9473 };
9474
9475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
9476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
9480
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 resultobj = SWIG_PyObj_FromInt((int)result);
9485 return resultobj;
9486 fail:
9487 return NULL;
9488 }
9489
9490
9491 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
9492 PyObject *resultobj;
9493 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9494 int result;
9495 PyObject * obj0 = 0 ;
9496 char *kwnames[] = {
9497 (char *) "self", NULL
9498 };
9499
9500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
9501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9502 {
9503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9504 result = (int)((wxScrollBar const *)arg1)->GetRange();
9505
9506 wxPyEndAllowThreads(__tstate);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 resultobj = SWIG_PyObj_FromInt((int)result);
9510 return resultobj;
9511 fail:
9512 return NULL;
9513 }
9514
9515
9516 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
9517 PyObject *resultobj;
9518 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9519 bool result;
9520 PyObject * obj0 = 0 ;
9521 char *kwnames[] = {
9522 (char *) "self", NULL
9523 };
9524
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
9526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
9530
9531 wxPyEndAllowThreads(__tstate);
9532 if (PyErr_Occurred()) SWIG_fail;
9533 }
9534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9535 return resultobj;
9536 fail:
9537 return NULL;
9538 }
9539
9540
9541 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9542 PyObject *resultobj;
9543 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9544 int arg2 ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9547 char *kwnames[] = {
9548 (char *) "self",(char *) "viewStart", NULL
9549 };
9550
9551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
9552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9553 {
9554 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 {
9558 PyThreadState* __tstate = wxPyBeginAllowThreads();
9559 (arg1)->SetThumbPosition(arg2);
9560
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 Py_INCREF(Py_None); resultobj = Py_None;
9565 return resultobj;
9566 fail:
9567 return NULL;
9568 }
9569
9570
9571 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
9572 PyObject *resultobj;
9573 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9574 int arg2 ;
9575 int arg3 ;
9576 int arg4 ;
9577 int arg5 ;
9578 bool arg6 = (bool) True ;
9579 PyObject * obj0 = 0 ;
9580 PyObject * obj1 = 0 ;
9581 PyObject * obj2 = 0 ;
9582 PyObject * obj3 = 0 ;
9583 PyObject * obj4 = 0 ;
9584 PyObject * obj5 = 0 ;
9585 char *kwnames[] = {
9586 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
9587 };
9588
9589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9591 {
9592 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 {
9596 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9597 if (PyErr_Occurred()) SWIG_fail;
9598 }
9599 {
9600 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9601 if (PyErr_Occurred()) SWIG_fail;
9602 }
9603 {
9604 arg5 = (int) SWIG_PyObj_AsInt(obj4);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 if (obj5) {
9608 {
9609 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 }
9612 }
9613 {
9614 PyThreadState* __tstate = wxPyBeginAllowThreads();
9615 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
9616
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 Py_INCREF(Py_None); resultobj = Py_None;
9621 return resultobj;
9622 fail:
9623 return NULL;
9624 }
9625
9626
9627 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
9628 PyObject *obj;
9629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9630 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
9631 Py_INCREF(obj);
9632 return Py_BuildValue((char *)"");
9633 }
9634 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
9635 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
9636 return 1;
9637 }
9638
9639
9640 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
9641 PyObject *pyobj;
9642
9643 {
9644 #if wxUSE_UNICODE
9645 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9646 #else
9647 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9648 #endif
9649 }
9650 return pyobj;
9651 }
9652
9653
9654 static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
9655 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
9656 return 1;
9657 }
9658
9659
9660 static PyObject *_wrap_SpinCtrlNameStr_get() {
9661 PyObject *pyobj;
9662
9663 {
9664 #if wxUSE_UNICODE
9665 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9666 #else
9667 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9668 #endif
9669 }
9670 return pyobj;
9671 }
9672
9673
9674 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9675 PyObject *resultobj;
9676 wxWindow *arg1 = (wxWindow *) 0 ;
9677 int arg2 = (int) -1 ;
9678 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9679 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9680 wxSize const &arg4_defvalue = wxDefaultSize ;
9681 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9682 long arg5 = (long) wxSP_HORIZONTAL ;
9683 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
9684 wxString *arg6 = (wxString *) &arg6_defvalue ;
9685 wxSpinButton *result;
9686 wxPoint temp3 ;
9687 wxSize temp4 ;
9688 bool temp6 = False ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 PyObject * obj2 = 0 ;
9692 PyObject * obj3 = 0 ;
9693 PyObject * obj4 = 0 ;
9694 PyObject * obj5 = 0 ;
9695 char *kwnames[] = {
9696 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
9697 };
9698
9699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9701 if (obj1) {
9702 {
9703 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9704 if (PyErr_Occurred()) SWIG_fail;
9705 }
9706 }
9707 if (obj2) {
9708 {
9709 arg3 = &temp3;
9710 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9711 }
9712 }
9713 if (obj3) {
9714 {
9715 arg4 = &temp4;
9716 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9717 }
9718 }
9719 if (obj4) {
9720 {
9721 arg5 = (long) SWIG_PyObj_AsLong(obj4);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
9724 }
9725 if (obj5) {
9726 {
9727 arg6 = wxString_in_helper(obj5);
9728 if (arg6 == NULL) SWIG_fail;
9729 temp6 = True;
9730 }
9731 }
9732 {
9733 PyThreadState* __tstate = wxPyBeginAllowThreads();
9734 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
9735
9736 wxPyEndAllowThreads(__tstate);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1);
9740 {
9741 if (temp6)
9742 delete arg6;
9743 }
9744 return resultobj;
9745 fail:
9746 {
9747 if (temp6)
9748 delete arg6;
9749 }
9750 return NULL;
9751 }
9752
9753
9754 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9755 PyObject *resultobj;
9756 wxSpinButton *result;
9757 char *kwnames[] = {
9758 NULL
9759 };
9760
9761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 result = (wxSpinButton *)new wxSpinButton();
9765
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) SWIG_fail;
9768 }
9769 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1);
9770 return resultobj;
9771 fail:
9772 return NULL;
9773 }
9774
9775
9776 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9777 PyObject *resultobj;
9778 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9779 wxWindow *arg2 = (wxWindow *) 0 ;
9780 int arg3 = (int) -1 ;
9781 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9782 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9783 wxSize const &arg5_defvalue = wxDefaultSize ;
9784 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9785 long arg6 = (long) wxSP_HORIZONTAL ;
9786 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
9787 wxString *arg7 = (wxString *) &arg7_defvalue ;
9788 bool result;
9789 wxPoint temp4 ;
9790 wxSize temp5 ;
9791 bool temp7 = False ;
9792 PyObject * obj0 = 0 ;
9793 PyObject * obj1 = 0 ;
9794 PyObject * obj2 = 0 ;
9795 PyObject * obj3 = 0 ;
9796 PyObject * obj4 = 0 ;
9797 PyObject * obj5 = 0 ;
9798 PyObject * obj6 = 0 ;
9799 char *kwnames[] = {
9800 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
9801 };
9802
9803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9805 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9806 if (obj2) {
9807 {
9808 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 }
9812 if (obj3) {
9813 {
9814 arg4 = &temp4;
9815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9816 }
9817 }
9818 if (obj4) {
9819 {
9820 arg5 = &temp5;
9821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9822 }
9823 }
9824 if (obj5) {
9825 {
9826 arg6 = (long) SWIG_PyObj_AsLong(obj5);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 }
9830 if (obj6) {
9831 {
9832 arg7 = wxString_in_helper(obj6);
9833 if (arg7 == NULL) SWIG_fail;
9834 temp7 = True;
9835 }
9836 }
9837 {
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
9840
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9845 {
9846 if (temp7)
9847 delete arg7;
9848 }
9849 return resultobj;
9850 fail:
9851 {
9852 if (temp7)
9853 delete arg7;
9854 }
9855 return NULL;
9856 }
9857
9858
9859 static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9860 PyObject *resultobj;
9861 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9862 int result;
9863 PyObject * obj0 = 0 ;
9864 char *kwnames[] = {
9865 (char *) "self", NULL
9866 };
9867
9868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
9869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 result = (int)((wxSpinButton const *)arg1)->GetValue();
9873
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 }
9877 resultobj = SWIG_PyObj_FromInt((int)result);
9878 return resultobj;
9879 fail:
9880 return NULL;
9881 }
9882
9883
9884 static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9885 PyObject *resultobj;
9886 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9887 int result;
9888 PyObject * obj0 = 0 ;
9889 char *kwnames[] = {
9890 (char *) "self", NULL
9891 };
9892
9893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
9894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 result = (int)((wxSpinButton const *)arg1)->GetMin();
9898
9899 wxPyEndAllowThreads(__tstate);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 }
9902 resultobj = SWIG_PyObj_FromInt((int)result);
9903 return resultobj;
9904 fail:
9905 return NULL;
9906 }
9907
9908
9909 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9910 PyObject *resultobj;
9911 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9912 int result;
9913 PyObject * obj0 = 0 ;
9914 char *kwnames[] = {
9915 (char *) "self", NULL
9916 };
9917
9918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
9919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 result = (int)((wxSpinButton const *)arg1)->GetMax();
9923
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_PyObj_FromInt((int)result);
9928 return resultobj;
9929 fail:
9930 return NULL;
9931 }
9932
9933
9934 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj;
9936 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9937 int arg2 ;
9938 PyObject * obj0 = 0 ;
9939 PyObject * obj1 = 0 ;
9940 char *kwnames[] = {
9941 (char *) "self",(char *) "val", NULL
9942 };
9943
9944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
9945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9946 {
9947 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 (arg1)->SetValue(arg2);
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 Py_INCREF(Py_None); resultobj = Py_None;
9958 return resultobj;
9959 fail:
9960 return NULL;
9961 }
9962
9963
9964 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9965 PyObject *resultobj;
9966 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9967 int arg2 ;
9968 PyObject * obj0 = 0 ;
9969 PyObject * obj1 = 0 ;
9970 char *kwnames[] = {
9971 (char *) "self",(char *) "minVal", NULL
9972 };
9973
9974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
9975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9976 {
9977 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9978 if (PyErr_Occurred()) SWIG_fail;
9979 }
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 (arg1)->SetMin(arg2);
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 Py_INCREF(Py_None); resultobj = Py_None;
9988 return resultobj;
9989 fail:
9990 return NULL;
9991 }
9992
9993
9994 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9995 PyObject *resultobj;
9996 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9997 int arg2 ;
9998 PyObject * obj0 = 0 ;
9999 PyObject * obj1 = 0 ;
10000 char *kwnames[] = {
10001 (char *) "self",(char *) "maxVal", NULL
10002 };
10003
10004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10006 {
10007 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 {
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 (arg1)->SetMax(arg2);
10013
10014 wxPyEndAllowThreads(__tstate);
10015 if (PyErr_Occurred()) SWIG_fail;
10016 }
10017 Py_INCREF(Py_None); resultobj = Py_None;
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10025 PyObject *resultobj;
10026 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10027 int arg2 ;
10028 int arg3 ;
10029 PyObject * obj0 = 0 ;
10030 PyObject * obj1 = 0 ;
10031 PyObject * obj2 = 0 ;
10032 char *kwnames[] = {
10033 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10034 };
10035
10036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10038 {
10039 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 }
10042 {
10043 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 {
10047 PyThreadState* __tstate = wxPyBeginAllowThreads();
10048 (arg1)->SetRange(arg2,arg3);
10049
10050 wxPyEndAllowThreads(__tstate);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 }
10053 Py_INCREF(Py_None); resultobj = Py_None;
10054 return resultobj;
10055 fail:
10056 return NULL;
10057 }
10058
10059
10060 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10061 PyObject *resultobj;
10062 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10063 bool result;
10064 PyObject * obj0 = 0 ;
10065 char *kwnames[] = {
10066 (char *) "self", NULL
10067 };
10068
10069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10074
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10079 return resultobj;
10080 fail:
10081 return NULL;
10082 }
10083
10084
10085 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10086 PyObject *obj;
10087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10088 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10089 Py_INCREF(obj);
10090 return Py_BuildValue((char *)"");
10091 }
10092 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10093 PyObject *resultobj;
10094 wxWindow *arg1 = (wxWindow *) 0 ;
10095 int arg2 = (int) -1 ;
10096 wxString const &arg3_defvalue = wxPyEmptyString ;
10097 wxString *arg3 = (wxString *) &arg3_defvalue ;
10098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10100 wxSize const &arg5_defvalue = wxDefaultSize ;
10101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10102 long arg6 = (long) wxSP_ARROW_KEYS ;
10103 int arg7 = (int) 0 ;
10104 int arg8 = (int) 100 ;
10105 int arg9 = (int) 0 ;
10106 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10107 wxString *arg10 = (wxString *) &arg10_defvalue ;
10108 wxSpinCtrl *result;
10109 bool temp3 = False ;
10110 wxPoint temp4 ;
10111 wxSize temp5 ;
10112 bool temp10 = False ;
10113 PyObject * obj0 = 0 ;
10114 PyObject * obj1 = 0 ;
10115 PyObject * obj2 = 0 ;
10116 PyObject * obj3 = 0 ;
10117 PyObject * obj4 = 0 ;
10118 PyObject * obj5 = 0 ;
10119 PyObject * obj6 = 0 ;
10120 PyObject * obj7 = 0 ;
10121 PyObject * obj8 = 0 ;
10122 PyObject * obj9 = 0 ;
10123 char *kwnames[] = {
10124 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10125 };
10126
10127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10129 if (obj1) {
10130 {
10131 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 }
10135 if (obj2) {
10136 {
10137 arg3 = wxString_in_helper(obj2);
10138 if (arg3 == NULL) SWIG_fail;
10139 temp3 = True;
10140 }
10141 }
10142 if (obj3) {
10143 {
10144 arg4 = &temp4;
10145 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10146 }
10147 }
10148 if (obj4) {
10149 {
10150 arg5 = &temp5;
10151 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10152 }
10153 }
10154 if (obj5) {
10155 {
10156 arg6 = (long) SWIG_PyObj_AsLong(obj5);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
10159 }
10160 if (obj6) {
10161 {
10162 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 }
10166 if (obj7) {
10167 {
10168 arg8 = (int) SWIG_PyObj_AsInt(obj7);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 }
10171 }
10172 if (obj8) {
10173 {
10174 arg9 = (int) SWIG_PyObj_AsInt(obj8);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 }
10177 }
10178 if (obj9) {
10179 {
10180 arg10 = wxString_in_helper(obj9);
10181 if (arg10 == NULL) SWIG_fail;
10182 temp10 = True;
10183 }
10184 }
10185 {
10186 PyThreadState* __tstate = wxPyBeginAllowThreads();
10187 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10188
10189 wxPyEndAllowThreads(__tstate);
10190 if (PyErr_Occurred()) SWIG_fail;
10191 }
10192 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1);
10193 {
10194 if (temp3)
10195 delete arg3;
10196 }
10197 {
10198 if (temp10)
10199 delete arg10;
10200 }
10201 return resultobj;
10202 fail:
10203 {
10204 if (temp3)
10205 delete arg3;
10206 }
10207 {
10208 if (temp10)
10209 delete arg10;
10210 }
10211 return NULL;
10212 }
10213
10214
10215 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj;
10217 wxSpinCtrl *result;
10218 char *kwnames[] = {
10219 NULL
10220 };
10221
10222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 result = (wxSpinCtrl *)new wxSpinCtrl();
10226
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1);
10231 return resultobj;
10232 fail:
10233 return NULL;
10234 }
10235
10236
10237 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10238 PyObject *resultobj;
10239 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10240 wxWindow *arg2 = (wxWindow *) 0 ;
10241 int arg3 = (int) -1 ;
10242 wxString const &arg4_defvalue = wxPyEmptyString ;
10243 wxString *arg4 = (wxString *) &arg4_defvalue ;
10244 wxPoint const &arg5_defvalue = wxDefaultPosition ;
10245 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
10246 wxSize const &arg6_defvalue = wxDefaultSize ;
10247 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
10248 long arg7 = (long) wxSP_ARROW_KEYS ;
10249 int arg8 = (int) 0 ;
10250 int arg9 = (int) 100 ;
10251 int arg10 = (int) 0 ;
10252 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
10253 wxString *arg11 = (wxString *) &arg11_defvalue ;
10254 bool result;
10255 bool temp4 = False ;
10256 wxPoint temp5 ;
10257 wxSize temp6 ;
10258 bool temp11 = False ;
10259 PyObject * obj0 = 0 ;
10260 PyObject * obj1 = 0 ;
10261 PyObject * obj2 = 0 ;
10262 PyObject * obj3 = 0 ;
10263 PyObject * obj4 = 0 ;
10264 PyObject * obj5 = 0 ;
10265 PyObject * obj6 = 0 ;
10266 PyObject * obj7 = 0 ;
10267 PyObject * obj8 = 0 ;
10268 PyObject * obj9 = 0 ;
10269 PyObject * obj10 = 0 ;
10270 char *kwnames[] = {
10271 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10272 };
10273
10274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
10275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10276 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10277 if (obj2) {
10278 {
10279 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
10282 }
10283 if (obj3) {
10284 {
10285 arg4 = wxString_in_helper(obj3);
10286 if (arg4 == NULL) SWIG_fail;
10287 temp4 = True;
10288 }
10289 }
10290 if (obj4) {
10291 {
10292 arg5 = &temp5;
10293 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10294 }
10295 }
10296 if (obj5) {
10297 {
10298 arg6 = &temp6;
10299 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
10300 }
10301 }
10302 if (obj6) {
10303 {
10304 arg7 = (long) SWIG_PyObj_AsLong(obj6);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 }
10308 if (obj7) {
10309 {
10310 arg8 = (int) SWIG_PyObj_AsInt(obj7);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 }
10314 if (obj8) {
10315 {
10316 arg9 = (int) SWIG_PyObj_AsInt(obj8);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 }
10319 }
10320 if (obj9) {
10321 {
10322 arg10 = (int) SWIG_PyObj_AsInt(obj9);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 }
10326 if (obj10) {
10327 {
10328 arg11 = wxString_in_helper(obj10);
10329 if (arg11 == NULL) SWIG_fail;
10330 temp11 = True;
10331 }
10332 }
10333 {
10334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10335 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
10336
10337 wxPyEndAllowThreads(__tstate);
10338 if (PyErr_Occurred()) SWIG_fail;
10339 }
10340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10341 {
10342 if (temp4)
10343 delete arg4;
10344 }
10345 {
10346 if (temp11)
10347 delete arg11;
10348 }
10349 return resultobj;
10350 fail:
10351 {
10352 if (temp4)
10353 delete arg4;
10354 }
10355 {
10356 if (temp11)
10357 delete arg11;
10358 }
10359 return NULL;
10360 }
10361
10362
10363 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10364 PyObject *resultobj;
10365 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10366 int result;
10367 PyObject * obj0 = 0 ;
10368 char *kwnames[] = {
10369 (char *) "self", NULL
10370 };
10371
10372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
10373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10374 {
10375 PyThreadState* __tstate = wxPyBeginAllowThreads();
10376 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
10377
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 resultobj = SWIG_PyObj_FromInt((int)result);
10382 return resultobj;
10383 fail:
10384 return NULL;
10385 }
10386
10387
10388 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10389 PyObject *resultobj;
10390 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10391 int arg2 ;
10392 PyObject * obj0 = 0 ;
10393 PyObject * obj1 = 0 ;
10394 char *kwnames[] = {
10395 (char *) "self",(char *) "value", NULL
10396 };
10397
10398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
10399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10400 {
10401 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 {
10405 PyThreadState* __tstate = wxPyBeginAllowThreads();
10406 (arg1)->SetValue(arg2);
10407
10408 wxPyEndAllowThreads(__tstate);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 }
10411 Py_INCREF(Py_None); resultobj = Py_None;
10412 return resultobj;
10413 fail:
10414 return NULL;
10415 }
10416
10417
10418 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
10419 PyObject *resultobj;
10420 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10421 wxString *arg2 = 0 ;
10422 bool temp2 = False ;
10423 PyObject * obj0 = 0 ;
10424 PyObject * obj1 = 0 ;
10425 char *kwnames[] = {
10426 (char *) "self",(char *) "text", NULL
10427 };
10428
10429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
10430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10431 {
10432 arg2 = wxString_in_helper(obj1);
10433 if (arg2 == NULL) SWIG_fail;
10434 temp2 = True;
10435 }
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 (arg1)->SetValue((wxString const &)*arg2);
10439
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 Py_INCREF(Py_None); resultobj = Py_None;
10444 {
10445 if (temp2)
10446 delete arg2;
10447 }
10448 return resultobj;
10449 fail:
10450 {
10451 if (temp2)
10452 delete arg2;
10453 }
10454 return NULL;
10455 }
10456
10457
10458 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10459 PyObject *resultobj;
10460 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10461 int arg2 ;
10462 int arg3 ;
10463 PyObject * obj0 = 0 ;
10464 PyObject * obj1 = 0 ;
10465 PyObject * obj2 = 0 ;
10466 char *kwnames[] = {
10467 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10468 };
10469
10470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10472 {
10473 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 {
10477 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 {
10481 PyThreadState* __tstate = wxPyBeginAllowThreads();
10482 (arg1)->SetRange(arg2,arg3);
10483
10484 wxPyEndAllowThreads(__tstate);
10485 if (PyErr_Occurred()) SWIG_fail;
10486 }
10487 Py_INCREF(Py_None); resultobj = Py_None;
10488 return resultobj;
10489 fail:
10490 return NULL;
10491 }
10492
10493
10494 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10495 PyObject *resultobj;
10496 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10497 int result;
10498 PyObject * obj0 = 0 ;
10499 char *kwnames[] = {
10500 (char *) "self", NULL
10501 };
10502
10503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
10504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
10508
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 resultobj = SWIG_PyObj_FromInt((int)result);
10513 return resultobj;
10514 fail:
10515 return NULL;
10516 }
10517
10518
10519 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10520 PyObject *resultobj;
10521 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10522 int result;
10523 PyObject * obj0 = 0 ;
10524 char *kwnames[] = {
10525 (char *) "self", NULL
10526 };
10527
10528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
10529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
10533
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 resultobj = SWIG_PyObj_FromInt((int)result);
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj;
10546 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10547 long arg2 ;
10548 long arg3 ;
10549 PyObject * obj0 = 0 ;
10550 PyObject * obj1 = 0 ;
10551 PyObject * obj2 = 0 ;
10552 char *kwnames[] = {
10553 (char *) "self",(char *) "from",(char *) "to", NULL
10554 };
10555
10556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
10557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10558 {
10559 arg2 = (long) SWIG_PyObj_AsLong(obj1);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 {
10563 arg3 = (long) SWIG_PyObj_AsLong(obj2);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 (arg1)->SetSelection(arg2,arg3);
10569
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) SWIG_fail;
10572 }
10573 Py_INCREF(Py_None); resultobj = Py_None;
10574 return resultobj;
10575 fail:
10576 return NULL;
10577 }
10578
10579
10580 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
10581 PyObject *obj;
10582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10583 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
10584 Py_INCREF(obj);
10585 return Py_BuildValue((char *)"");
10586 }
10587 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10588 PyObject *resultobj;
10589 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10590 int arg2 = (int) 0 ;
10591 wxSpinEvent *result;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 char *kwnames[] = {
10595 (char *) "commandType",(char *) "winid", NULL
10596 };
10597
10598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
10599 if (obj0) {
10600 {
10601 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 }
10604 }
10605 if (obj1) {
10606 {
10607 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 }
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
10614
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1);
10619 return resultobj;
10620 fail:
10621 return NULL;
10622 }
10623
10624
10625 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject *resultobj;
10627 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10628 int result;
10629 PyObject * obj0 = 0 ;
10630 char *kwnames[] = {
10631 (char *) "self", NULL
10632 };
10633
10634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
10635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10636 {
10637 PyThreadState* __tstate = wxPyBeginAllowThreads();
10638 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
10639
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 resultobj = SWIG_PyObj_FromInt((int)result);
10644 return resultobj;
10645 fail:
10646 return NULL;
10647 }
10648
10649
10650 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10651 PyObject *resultobj;
10652 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10653 int arg2 ;
10654 PyObject * obj0 = 0 ;
10655 PyObject * obj1 = 0 ;
10656 char *kwnames[] = {
10657 (char *) "self",(char *) "pos", NULL
10658 };
10659
10660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
10661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10662 {
10663 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 (arg1)->SetPosition(arg2);
10669
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 Py_INCREF(Py_None); resultobj = Py_None;
10674 return resultobj;
10675 fail:
10676 return NULL;
10677 }
10678
10679
10680 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
10681 PyObject *obj;
10682 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10683 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
10684 Py_INCREF(obj);
10685 return Py_BuildValue((char *)"");
10686 }
10687 static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
10688 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
10689 return 1;
10690 }
10691
10692
10693 static PyObject *_wrap_RadioBoxNameStr_get() {
10694 PyObject *pyobj;
10695
10696 {
10697 #if wxUSE_UNICODE
10698 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10699 #else
10700 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10701 #endif
10702 }
10703 return pyobj;
10704 }
10705
10706
10707 static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
10708 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
10709 return 1;
10710 }
10711
10712
10713 static PyObject *_wrap_RadioButtonNameStr_get() {
10714 PyObject *pyobj;
10715
10716 {
10717 #if wxUSE_UNICODE
10718 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10719 #else
10720 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10721 #endif
10722 }
10723 return pyobj;
10724 }
10725
10726
10727 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10728 PyObject *resultobj;
10729 wxWindow *arg1 = (wxWindow *) 0 ;
10730 int arg2 ;
10731 wxString *arg3 = 0 ;
10732 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10733 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10734 wxSize const &arg5_defvalue = wxDefaultSize ;
10735 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10736 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10737 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10738 int arg7 = (int) 0 ;
10739 long arg8 = (long) wxRA_HORIZONTAL ;
10740 wxValidator const &arg9_defvalue = wxDefaultValidator ;
10741 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
10742 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
10743 wxString *arg10 = (wxString *) &arg10_defvalue ;
10744 wxRadioBox *result;
10745 bool temp3 = False ;
10746 wxPoint temp4 ;
10747 wxSize temp5 ;
10748 bool temp6 = False ;
10749 bool temp10 = False ;
10750 PyObject * obj0 = 0 ;
10751 PyObject * obj1 = 0 ;
10752 PyObject * obj2 = 0 ;
10753 PyObject * obj3 = 0 ;
10754 PyObject * obj4 = 0 ;
10755 PyObject * obj5 = 0 ;
10756 PyObject * obj6 = 0 ;
10757 PyObject * obj7 = 0 ;
10758 PyObject * obj8 = 0 ;
10759 PyObject * obj9 = 0 ;
10760 char *kwnames[] = {
10761 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
10762 };
10763
10764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10766 {
10767 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 }
10770 {
10771 arg3 = wxString_in_helper(obj2);
10772 if (arg3 == NULL) SWIG_fail;
10773 temp3 = True;
10774 }
10775 if (obj3) {
10776 {
10777 arg4 = &temp4;
10778 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10779 }
10780 }
10781 if (obj4) {
10782 {
10783 arg5 = &temp5;
10784 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10785 }
10786 }
10787 if (obj5) {
10788 {
10789 if (! PySequence_Check(obj5)) {
10790 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10791 SWIG_fail;
10792 }
10793 arg6 = new wxArrayString;
10794 temp6 = True;
10795 int i, len=PySequence_Length(obj5);
10796 for (i=0; i<len; i++) {
10797 PyObject* item = PySequence_GetItem(obj5, i);
10798 #if wxUSE_UNICODE
10799 PyObject* str = PyObject_Unicode(item);
10800 #else
10801 PyObject* str = PyObject_Str(item);
10802 #endif
10803 arg6->Add(Py2wxString(str));
10804 Py_DECREF(item);
10805 Py_DECREF(str);
10806 }
10807 }
10808 }
10809 if (obj6) {
10810 {
10811 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 }
10815 if (obj7) {
10816 {
10817 arg8 = (long) SWIG_PyObj_AsLong(obj7);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 }
10821 if (obj8) {
10822 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10823 if (arg9 == NULL) {
10824 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10825 }
10826 }
10827 if (obj9) {
10828 {
10829 arg10 = wxString_in_helper(obj9);
10830 if (arg10 == NULL) SWIG_fail;
10831 temp10 = True;
10832 }
10833 }
10834 {
10835 PyThreadState* __tstate = wxPyBeginAllowThreads();
10836 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);
10837
10838 wxPyEndAllowThreads(__tstate);
10839 if (PyErr_Occurred()) SWIG_fail;
10840 }
10841 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1);
10842 {
10843 if (temp3)
10844 delete arg3;
10845 }
10846 {
10847 if (temp6) delete arg6;
10848 }
10849 {
10850 if (temp10)
10851 delete arg10;
10852 }
10853 return resultobj;
10854 fail:
10855 {
10856 if (temp3)
10857 delete arg3;
10858 }
10859 {
10860 if (temp6) delete arg6;
10861 }
10862 {
10863 if (temp10)
10864 delete arg10;
10865 }
10866 return NULL;
10867 }
10868
10869
10870 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10871 PyObject *resultobj;
10872 wxRadioBox *result;
10873 char *kwnames[] = {
10874 NULL
10875 };
10876
10877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
10878 {
10879 PyThreadState* __tstate = wxPyBeginAllowThreads();
10880 result = (wxRadioBox *)new wxRadioBox();
10881
10882 wxPyEndAllowThreads(__tstate);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
10885 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1);
10886 return resultobj;
10887 fail:
10888 return NULL;
10889 }
10890
10891
10892 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10893 PyObject *resultobj;
10894 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
10895 wxWindow *arg2 = (wxWindow *) 0 ;
10896 int arg3 ;
10897 wxString *arg4 = 0 ;
10898 wxPoint const &arg5_defvalue = wxDefaultPosition ;
10899 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
10900 wxSize const &arg6_defvalue = wxDefaultSize ;
10901 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
10902 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
10903 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
10904 int arg8 = (int) 0 ;
10905 long arg9 = (long) wxRA_HORIZONTAL ;
10906 wxValidator const &arg10_defvalue = wxDefaultValidator ;
10907 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
10908 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
10909 wxString *arg11 = (wxString *) &arg11_defvalue ;
10910 bool result;
10911 bool temp4 = False ;
10912 wxPoint temp5 ;
10913 wxSize temp6 ;
10914 bool temp7 = False ;
10915 bool temp11 = False ;
10916 PyObject * obj0 = 0 ;
10917 PyObject * obj1 = 0 ;
10918 PyObject * obj2 = 0 ;
10919 PyObject * obj3 = 0 ;
10920 PyObject * obj4 = 0 ;
10921 PyObject * obj5 = 0 ;
10922 PyObject * obj6 = 0 ;
10923 PyObject * obj7 = 0 ;
10924 PyObject * obj8 = 0 ;
10925 PyObject * obj9 = 0 ;
10926 PyObject * obj10 = 0 ;
10927 char *kwnames[] = {
10928 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
10929 };
10930
10931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
10932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10933 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10934 {
10935 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10936 if (PyErr_Occurred()) SWIG_fail;
10937 }
10938 {
10939 arg4 = wxString_in_helper(obj3);
10940 if (arg4 == NULL) SWIG_fail;
10941 temp4 = True;
10942 }
10943 if (obj4) {
10944 {
10945 arg5 = &temp5;
10946 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10947 }
10948 }
10949 if (obj5) {
10950 {
10951 arg6 = &temp6;
10952 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
10953 }
10954 }
10955 if (obj6) {
10956 {
10957 if (! PySequence_Check(obj6)) {
10958 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10959 SWIG_fail;
10960 }
10961 arg7 = new wxArrayString;
10962 temp7 = True;
10963 int i, len=PySequence_Length(obj6);
10964 for (i=0; i<len; i++) {
10965 PyObject* item = PySequence_GetItem(obj6, i);
10966 #if wxUSE_UNICODE
10967 PyObject* str = PyObject_Unicode(item);
10968 #else
10969 PyObject* str = PyObject_Str(item);
10970 #endif
10971 arg7->Add(Py2wxString(str));
10972 Py_DECREF(item);
10973 Py_DECREF(str);
10974 }
10975 }
10976 }
10977 if (obj7) {
10978 {
10979 arg8 = (int) SWIG_PyObj_AsInt(obj7);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 }
10982 }
10983 if (obj8) {
10984 {
10985 arg9 = (long) SWIG_PyObj_AsLong(obj8);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 }
10989 if (obj9) {
10990 if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10991 if (arg10 == NULL) {
10992 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10993 }
10994 }
10995 if (obj10) {
10996 {
10997 arg11 = wxString_in_helper(obj10);
10998 if (arg11 == NULL) SWIG_fail;
10999 temp11 = True;
11000 }
11001 }
11002 {
11003 PyThreadState* __tstate = wxPyBeginAllowThreads();
11004 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);
11005
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11010 {
11011 if (temp4)
11012 delete arg4;
11013 }
11014 {
11015 if (temp7) delete arg7;
11016 }
11017 {
11018 if (temp11)
11019 delete arg11;
11020 }
11021 return resultobj;
11022 fail:
11023 {
11024 if (temp4)
11025 delete arg4;
11026 }
11027 {
11028 if (temp7) delete arg7;
11029 }
11030 {
11031 if (temp11)
11032 delete arg11;
11033 }
11034 return NULL;
11035 }
11036
11037
11038 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj;
11040 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11041 int arg2 ;
11042 PyObject * obj0 = 0 ;
11043 PyObject * obj1 = 0 ;
11044 char *kwnames[] = {
11045 (char *) "self",(char *) "n", NULL
11046 };
11047
11048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11050 {
11051 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 (arg1)->SetSelection(arg2);
11057
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 Py_INCREF(Py_None); resultobj = Py_None;
11062 return resultobj;
11063 fail:
11064 return NULL;
11065 }
11066
11067
11068 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj;
11070 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11071 int result;
11072 PyObject * obj0 = 0 ;
11073 char *kwnames[] = {
11074 (char *) "self", NULL
11075 };
11076
11077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11082
11083 wxPyEndAllowThreads(__tstate);
11084 if (PyErr_Occurred()) SWIG_fail;
11085 }
11086 resultobj = SWIG_PyObj_FromInt((int)result);
11087 return resultobj;
11088 fail:
11089 return NULL;
11090 }
11091
11092
11093 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11094 PyObject *resultobj;
11095 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11096 wxString result;
11097 PyObject * obj0 = 0 ;
11098 char *kwnames[] = {
11099 (char *) "self", NULL
11100 };
11101
11102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11107
11108 wxPyEndAllowThreads(__tstate);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
11111 {
11112 #if wxUSE_UNICODE
11113 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11114 #else
11115 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11116 #endif
11117 }
11118 return resultobj;
11119 fail:
11120 return NULL;
11121 }
11122
11123
11124 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11125 PyObject *resultobj;
11126 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11127 wxString *arg2 = 0 ;
11128 bool result;
11129 bool temp2 = False ;
11130 PyObject * obj0 = 0 ;
11131 PyObject * obj1 = 0 ;
11132 char *kwnames[] = {
11133 (char *) "self",(char *) "s", NULL
11134 };
11135
11136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11138 {
11139 arg2 = wxString_in_helper(obj1);
11140 if (arg2 == NULL) SWIG_fail;
11141 temp2 = True;
11142 }
11143 {
11144 PyThreadState* __tstate = wxPyBeginAllowThreads();
11145 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11146
11147 wxPyEndAllowThreads(__tstate);
11148 if (PyErr_Occurred()) SWIG_fail;
11149 }
11150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11151 {
11152 if (temp2)
11153 delete arg2;
11154 }
11155 return resultobj;
11156 fail:
11157 {
11158 if (temp2)
11159 delete arg2;
11160 }
11161 return NULL;
11162 }
11163
11164
11165 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11166 PyObject *resultobj;
11167 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11168 int result;
11169 PyObject * obj0 = 0 ;
11170 char *kwnames[] = {
11171 (char *) "self", NULL
11172 };
11173
11174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11176 {
11177 PyThreadState* __tstate = wxPyBeginAllowThreads();
11178 result = (int)((wxRadioBox const *)arg1)->GetCount();
11179
11180 wxPyEndAllowThreads(__tstate);
11181 if (PyErr_Occurred()) SWIG_fail;
11182 }
11183 resultobj = SWIG_PyObj_FromInt((int)result);
11184 return resultobj;
11185 fail:
11186 return NULL;
11187 }
11188
11189
11190 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
11191 PyObject *resultobj;
11192 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11193 wxString *arg2 = 0 ;
11194 int result;
11195 bool temp2 = False ;
11196 PyObject * obj0 = 0 ;
11197 PyObject * obj1 = 0 ;
11198 char *kwnames[] = {
11199 (char *) "self",(char *) "s", NULL
11200 };
11201
11202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
11203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11204 {
11205 arg2 = wxString_in_helper(obj1);
11206 if (arg2 == NULL) SWIG_fail;
11207 temp2 = True;
11208 }
11209 {
11210 PyThreadState* __tstate = wxPyBeginAllowThreads();
11211 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
11212
11213 wxPyEndAllowThreads(__tstate);
11214 if (PyErr_Occurred()) SWIG_fail;
11215 }
11216 resultobj = SWIG_PyObj_FromInt((int)result);
11217 {
11218 if (temp2)
11219 delete arg2;
11220 }
11221 return resultobj;
11222 fail:
11223 {
11224 if (temp2)
11225 delete arg2;
11226 }
11227 return NULL;
11228 }
11229
11230
11231 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11232 PyObject *resultobj;
11233 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11234 int arg2 ;
11235 wxString result;
11236 PyObject * obj0 = 0 ;
11237 PyObject * obj1 = 0 ;
11238 char *kwnames[] = {
11239 (char *) "self",(char *) "n", NULL
11240 };
11241
11242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
11243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11244 {
11245 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 result = ((wxRadioBox const *)arg1)->GetString(arg2);
11251
11252 wxPyEndAllowThreads(__tstate);
11253 if (PyErr_Occurred()) SWIG_fail;
11254 }
11255 {
11256 #if wxUSE_UNICODE
11257 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11258 #else
11259 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11260 #endif
11261 }
11262 return resultobj;
11263 fail:
11264 return NULL;
11265 }
11266
11267
11268 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11269 PyObject *resultobj;
11270 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11271 int arg2 ;
11272 wxString *arg3 = 0 ;
11273 bool temp3 = False ;
11274 PyObject * obj0 = 0 ;
11275 PyObject * obj1 = 0 ;
11276 PyObject * obj2 = 0 ;
11277 char *kwnames[] = {
11278 (char *) "self",(char *) "n",(char *) "label", NULL
11279 };
11280
11281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11283 {
11284 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 {
11288 arg3 = wxString_in_helper(obj2);
11289 if (arg3 == NULL) SWIG_fail;
11290 temp3 = True;
11291 }
11292 {
11293 PyThreadState* __tstate = wxPyBeginAllowThreads();
11294 (arg1)->SetString(arg2,(wxString const &)*arg3);
11295
11296 wxPyEndAllowThreads(__tstate);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 }
11299 Py_INCREF(Py_None); resultobj = Py_None;
11300 {
11301 if (temp3)
11302 delete arg3;
11303 }
11304 return resultobj;
11305 fail:
11306 {
11307 if (temp3)
11308 delete arg3;
11309 }
11310 return NULL;
11311 }
11312
11313
11314 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11315 PyObject *resultobj;
11316 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11317 int arg2 ;
11318 bool arg3 = (bool) True ;
11319 PyObject * obj0 = 0 ;
11320 PyObject * obj1 = 0 ;
11321 PyObject * obj2 = 0 ;
11322 char *kwnames[] = {
11323 (char *) "self",(char *) "n",(char *) "enable", NULL
11324 };
11325
11326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11328 {
11329 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11330 if (PyErr_Occurred()) SWIG_fail;
11331 }
11332 if (obj2) {
11333 {
11334 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11335 if (PyErr_Occurred()) SWIG_fail;
11336 }
11337 }
11338 {
11339 PyThreadState* __tstate = wxPyBeginAllowThreads();
11340 (arg1)->Enable(arg2,arg3);
11341
11342 wxPyEndAllowThreads(__tstate);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 }
11345 Py_INCREF(Py_None); resultobj = Py_None;
11346 return resultobj;
11347 fail:
11348 return NULL;
11349 }
11350
11351
11352 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11353 PyObject *resultobj;
11354 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11355 int arg2 ;
11356 bool arg3 = (bool) True ;
11357 PyObject * obj0 = 0 ;
11358 PyObject * obj1 = 0 ;
11359 PyObject * obj2 = 0 ;
11360 char *kwnames[] = {
11361 (char *) "self",(char *) "n",(char *) "show", NULL
11362 };
11363
11364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11366 {
11367 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11368 if (PyErr_Occurred()) SWIG_fail;
11369 }
11370 if (obj2) {
11371 {
11372 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
11375 }
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 (arg1)->Show(arg2,arg3);
11379
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 Py_INCREF(Py_None); resultobj = Py_None;
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj;
11392 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11393 int result;
11394 PyObject * obj0 = 0 ;
11395 char *kwnames[] = {
11396 (char *) "self", NULL
11397 };
11398
11399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
11400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11401 {
11402 PyThreadState* __tstate = wxPyBeginAllowThreads();
11403 result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1);
11404
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 resultobj = SWIG_PyObj_FromInt((int)result);
11409 return resultobj;
11410 fail:
11411 return NULL;
11412 }
11413
11414
11415 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11416 PyObject *resultobj;
11417 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11418 int result;
11419 PyObject * obj0 = 0 ;
11420 char *kwnames[] = {
11421 (char *) "self", NULL
11422 };
11423
11424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
11425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11426 {
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1);
11429
11430 wxPyEndAllowThreads(__tstate);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 resultobj = SWIG_PyObj_FromInt((int)result);
11434 return resultobj;
11435 fail:
11436 return NULL;
11437 }
11438
11439
11440 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11441 PyObject *resultobj;
11442 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11443 int arg2 ;
11444 int arg3 ;
11445 long arg4 ;
11446 int result;
11447 PyObject * obj0 = 0 ;
11448 PyObject * obj1 = 0 ;
11449 PyObject * obj2 = 0 ;
11450 PyObject * obj3 = 0 ;
11451 char *kwnames[] = {
11452 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
11453 };
11454
11455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11457 {
11458 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 {
11462 arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 }
11465 {
11466 arg4 = (long) SWIG_PyObj_AsLong(obj3);
11467 if (PyErr_Occurred()) SWIG_fail;
11468 }
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4);
11472
11473 wxPyEndAllowThreads(__tstate);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 }
11476 resultobj = SWIG_PyObj_FromInt((int)result);
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
11484 PyObject *obj;
11485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11486 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
11487 Py_INCREF(obj);
11488 return Py_BuildValue((char *)"");
11489 }
11490 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11491 PyObject *resultobj;
11492 wxWindow *arg1 = (wxWindow *) 0 ;
11493 int arg2 ;
11494 wxString *arg3 = 0 ;
11495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11497 wxSize const &arg5_defvalue = wxDefaultSize ;
11498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11499 long arg6 = (long) 0 ;
11500 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11501 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11502 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
11503 wxString *arg8 = (wxString *) &arg8_defvalue ;
11504 wxRadioButton *result;
11505 bool temp3 = False ;
11506 wxPoint temp4 ;
11507 wxSize temp5 ;
11508 bool temp8 = False ;
11509 PyObject * obj0 = 0 ;
11510 PyObject * obj1 = 0 ;
11511 PyObject * obj2 = 0 ;
11512 PyObject * obj3 = 0 ;
11513 PyObject * obj4 = 0 ;
11514 PyObject * obj5 = 0 ;
11515 PyObject * obj6 = 0 ;
11516 PyObject * obj7 = 0 ;
11517 char *kwnames[] = {
11518 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11519 };
11520
11521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11523 {
11524 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 {
11528 arg3 = wxString_in_helper(obj2);
11529 if (arg3 == NULL) SWIG_fail;
11530 temp3 = True;
11531 }
11532 if (obj3) {
11533 {
11534 arg4 = &temp4;
11535 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11536 }
11537 }
11538 if (obj4) {
11539 {
11540 arg5 = &temp5;
11541 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11542 }
11543 }
11544 if (obj5) {
11545 {
11546 arg6 = (long) SWIG_PyObj_AsLong(obj5);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 }
11550 if (obj6) {
11551 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11552 if (arg7 == NULL) {
11553 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11554 }
11555 }
11556 if (obj7) {
11557 {
11558 arg8 = wxString_in_helper(obj7);
11559 if (arg8 == NULL) SWIG_fail;
11560 temp8 = True;
11561 }
11562 }
11563 {
11564 PyThreadState* __tstate = wxPyBeginAllowThreads();
11565 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11566
11567 wxPyEndAllowThreads(__tstate);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 }
11570 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1);
11571 {
11572 if (temp3)
11573 delete arg3;
11574 }
11575 {
11576 if (temp8)
11577 delete arg8;
11578 }
11579 return resultobj;
11580 fail:
11581 {
11582 if (temp3)
11583 delete arg3;
11584 }
11585 {
11586 if (temp8)
11587 delete arg8;
11588 }
11589 return NULL;
11590 }
11591
11592
11593 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11594 PyObject *resultobj;
11595 wxRadioButton *result;
11596 char *kwnames[] = {
11597 NULL
11598 };
11599
11600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 result = (wxRadioButton *)new wxRadioButton();
11604
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1);
11609 return resultobj;
11610 fail:
11611 return NULL;
11612 }
11613
11614
11615 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11616 PyObject *resultobj;
11617 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11618 wxWindow *arg2 = (wxWindow *) 0 ;
11619 int arg3 ;
11620 wxString *arg4 = 0 ;
11621 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11622 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11623 wxSize const &arg6_defvalue = wxDefaultSize ;
11624 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11625 long arg7 = (long) 0 ;
11626 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11627 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11628 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
11629 wxString *arg9 = (wxString *) &arg9_defvalue ;
11630 bool result;
11631 bool temp4 = False ;
11632 wxPoint temp5 ;
11633 wxSize temp6 ;
11634 bool temp9 = False ;
11635 PyObject * obj0 = 0 ;
11636 PyObject * obj1 = 0 ;
11637 PyObject * obj2 = 0 ;
11638 PyObject * obj3 = 0 ;
11639 PyObject * obj4 = 0 ;
11640 PyObject * obj5 = 0 ;
11641 PyObject * obj6 = 0 ;
11642 PyObject * obj7 = 0 ;
11643 PyObject * obj8 = 0 ;
11644 char *kwnames[] = {
11645 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11646 };
11647
11648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
11649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11650 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11651 {
11652 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11653 if (PyErr_Occurred()) SWIG_fail;
11654 }
11655 {
11656 arg4 = wxString_in_helper(obj3);
11657 if (arg4 == NULL) SWIG_fail;
11658 temp4 = True;
11659 }
11660 if (obj4) {
11661 {
11662 arg5 = &temp5;
11663 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11664 }
11665 }
11666 if (obj5) {
11667 {
11668 arg6 = &temp6;
11669 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11670 }
11671 }
11672 if (obj6) {
11673 {
11674 arg7 = (long) SWIG_PyObj_AsLong(obj6);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 }
11678 if (obj7) {
11679 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11680 if (arg8 == NULL) {
11681 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11682 }
11683 }
11684 if (obj8) {
11685 {
11686 arg9 = wxString_in_helper(obj8);
11687 if (arg9 == NULL) SWIG_fail;
11688 temp9 = True;
11689 }
11690 }
11691 {
11692 PyThreadState* __tstate = wxPyBeginAllowThreads();
11693 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11694
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11699 {
11700 if (temp4)
11701 delete arg4;
11702 }
11703 {
11704 if (temp9)
11705 delete arg9;
11706 }
11707 return resultobj;
11708 fail:
11709 {
11710 if (temp4)
11711 delete arg4;
11712 }
11713 {
11714 if (temp9)
11715 delete arg9;
11716 }
11717 return NULL;
11718 }
11719
11720
11721 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj;
11723 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11724 bool result;
11725 PyObject * obj0 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "self", NULL
11728 };
11729
11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
11731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11732 {
11733 PyThreadState* __tstate = wxPyBeginAllowThreads();
11734 result = (bool)(arg1)->GetValue();
11735
11736 wxPyEndAllowThreads(__tstate);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11740 return resultobj;
11741 fail:
11742 return NULL;
11743 }
11744
11745
11746 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11747 PyObject *resultobj;
11748 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11749 bool arg2 ;
11750 PyObject * obj0 = 0 ;
11751 PyObject * obj1 = 0 ;
11752 char *kwnames[] = {
11753 (char *) "self",(char *) "value", NULL
11754 };
11755
11756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11758 {
11759 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
11760 if (PyErr_Occurred()) SWIG_fail;
11761 }
11762 {
11763 PyThreadState* __tstate = wxPyBeginAllowThreads();
11764 (arg1)->SetValue(arg2);
11765
11766 wxPyEndAllowThreads(__tstate);
11767 if (PyErr_Occurred()) SWIG_fail;
11768 }
11769 Py_INCREF(Py_None); resultobj = Py_None;
11770 return resultobj;
11771 fail:
11772 return NULL;
11773 }
11774
11775
11776 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
11777 PyObject *obj;
11778 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11779 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
11780 Py_INCREF(obj);
11781 return Py_BuildValue((char *)"");
11782 }
11783 static int _wrap_SliderNameStr_set(PyObject *_val) {
11784 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
11785 return 1;
11786 }
11787
11788
11789 static PyObject *_wrap_SliderNameStr_get() {
11790 PyObject *pyobj;
11791
11792 {
11793 #if wxUSE_UNICODE
11794 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
11795 #else
11796 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
11797 #endif
11798 }
11799 return pyobj;
11800 }
11801
11802
11803 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
11804 PyObject *resultobj;
11805 wxWindow *arg1 = (wxWindow *) 0 ;
11806 int arg2 ;
11807 int arg3 ;
11808 int arg4 ;
11809 int arg5 ;
11810 wxPoint const &arg6_defvalue = wxDefaultPosition ;
11811 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
11812 wxSize const &arg7_defvalue = wxDefaultSize ;
11813 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
11814 long arg8 = (long) wxSL_HORIZONTAL ;
11815 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11816 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11817 wxString const &arg10_defvalue = wxPySliderNameStr ;
11818 wxString *arg10 = (wxString *) &arg10_defvalue ;
11819 wxSlider *result;
11820 wxPoint temp6 ;
11821 wxSize temp7 ;
11822 bool temp10 = False ;
11823 PyObject * obj0 = 0 ;
11824 PyObject * obj1 = 0 ;
11825 PyObject * obj2 = 0 ;
11826 PyObject * obj3 = 0 ;
11827 PyObject * obj4 = 0 ;
11828 PyObject * obj5 = 0 ;
11829 PyObject * obj6 = 0 ;
11830 PyObject * obj7 = 0 ;
11831 PyObject * obj8 = 0 ;
11832 PyObject * obj9 = 0 ;
11833 char *kwnames[] = {
11834 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11835 };
11836
11837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11839 {
11840 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 {
11844 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 {
11848 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 }
11851 {
11852 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 if (obj5) {
11856 {
11857 arg6 = &temp6;
11858 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
11859 }
11860 }
11861 if (obj6) {
11862 {
11863 arg7 = &temp7;
11864 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
11865 }
11866 }
11867 if (obj7) {
11868 {
11869 arg8 = (long) SWIG_PyObj_AsLong(obj7);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 }
11873 if (obj8) {
11874 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11875 if (arg9 == NULL) {
11876 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11877 }
11878 }
11879 if (obj9) {
11880 {
11881 arg10 = wxString_in_helper(obj9);
11882 if (arg10 == NULL) SWIG_fail;
11883 temp10 = True;
11884 }
11885 }
11886 {
11887 PyThreadState* __tstate = wxPyBeginAllowThreads();
11888 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
11889
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1);
11894 {
11895 if (temp10)
11896 delete arg10;
11897 }
11898 return resultobj;
11899 fail:
11900 {
11901 if (temp10)
11902 delete arg10;
11903 }
11904 return NULL;
11905 }
11906
11907
11908 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
11909 PyObject *resultobj;
11910 wxSlider *result;
11911 char *kwnames[] = {
11912 NULL
11913 };
11914
11915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
11916 {
11917 PyThreadState* __tstate = wxPyBeginAllowThreads();
11918 result = (wxSlider *)new wxSlider();
11919
11920 wxPyEndAllowThreads(__tstate);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 }
11923 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1);
11924 return resultobj;
11925 fail:
11926 return NULL;
11927 }
11928
11929
11930 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11931 PyObject *resultobj;
11932 wxSlider *arg1 = (wxSlider *) 0 ;
11933 wxWindow *arg2 = (wxWindow *) 0 ;
11934 int arg3 ;
11935 int arg4 ;
11936 int arg5 ;
11937 int arg6 ;
11938 wxPoint const &arg7_defvalue = wxDefaultPosition ;
11939 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
11940 wxSize const &arg8_defvalue = wxDefaultSize ;
11941 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
11942 long arg9 = (long) wxSL_HORIZONTAL ;
11943 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11944 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11945 wxString const &arg11_defvalue = wxPySliderNameStr ;
11946 wxString *arg11 = (wxString *) &arg11_defvalue ;
11947 bool result;
11948 wxPoint temp7 ;
11949 wxSize temp8 ;
11950 bool temp11 = False ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 PyObject * obj2 = 0 ;
11954 PyObject * obj3 = 0 ;
11955 PyObject * obj4 = 0 ;
11956 PyObject * obj5 = 0 ;
11957 PyObject * obj6 = 0 ;
11958 PyObject * obj7 = 0 ;
11959 PyObject * obj8 = 0 ;
11960 PyObject * obj9 = 0 ;
11961 PyObject * obj10 = 0 ;
11962 char *kwnames[] = {
11963 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11964 };
11965
11966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11968 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11969 {
11970 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 }
11973 {
11974 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 {
11978 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 if (obj6) {
11986 {
11987 arg7 = &temp7;
11988 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
11989 }
11990 }
11991 if (obj7) {
11992 {
11993 arg8 = &temp8;
11994 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
11995 }
11996 }
11997 if (obj8) {
11998 {
11999 arg9 = (long) SWIG_PyObj_AsLong(obj8);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 }
12003 if (obj9) {
12004 if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12005 if (arg10 == NULL) {
12006 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12007 }
12008 }
12009 if (obj10) {
12010 {
12011 arg11 = wxString_in_helper(obj10);
12012 if (arg11 == NULL) SWIG_fail;
12013 temp11 = True;
12014 }
12015 }
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12019
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12024 {
12025 if (temp11)
12026 delete arg11;
12027 }
12028 return resultobj;
12029 fail:
12030 {
12031 if (temp11)
12032 delete arg11;
12033 }
12034 return NULL;
12035 }
12036
12037
12038 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12039 PyObject *resultobj;
12040 wxSlider *arg1 = (wxSlider *) 0 ;
12041 int result;
12042 PyObject * obj0 = 0 ;
12043 char *kwnames[] = {
12044 (char *) "self", NULL
12045 };
12046
12047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 result = (int)((wxSlider const *)arg1)->GetValue();
12052
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 resultobj = SWIG_PyObj_FromInt((int)result);
12057 return resultobj;
12058 fail:
12059 return NULL;
12060 }
12061
12062
12063 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12064 PyObject *resultobj;
12065 wxSlider *arg1 = (wxSlider *) 0 ;
12066 int arg2 ;
12067 PyObject * obj0 = 0 ;
12068 PyObject * obj1 = 0 ;
12069 char *kwnames[] = {
12070 (char *) "self",(char *) "value", NULL
12071 };
12072
12073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12075 {
12076 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->SetValue(arg2);
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 Py_INCREF(Py_None); resultobj = Py_None;
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxSlider *arg1 = (wxSlider *) 0 ;
12096 int arg2 ;
12097 int arg3 ;
12098 PyObject * obj0 = 0 ;
12099 PyObject * obj1 = 0 ;
12100 PyObject * obj2 = 0 ;
12101 char *kwnames[] = {
12102 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12103 };
12104
12105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12107 {
12108 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 {
12116 PyThreadState* __tstate = wxPyBeginAllowThreads();
12117 (arg1)->SetRange(arg2,arg3);
12118
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 Py_INCREF(Py_None); resultobj = Py_None;
12123 return resultobj;
12124 fail:
12125 return NULL;
12126 }
12127
12128
12129 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj;
12131 wxSlider *arg1 = (wxSlider *) 0 ;
12132 int result;
12133 PyObject * obj0 = 0 ;
12134 char *kwnames[] = {
12135 (char *) "self", NULL
12136 };
12137
12138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
12139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 result = (int)((wxSlider const *)arg1)->GetMin();
12143
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 resultobj = SWIG_PyObj_FromInt((int)result);
12148 return resultobj;
12149 fail:
12150 return NULL;
12151 }
12152
12153
12154 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12155 PyObject *resultobj;
12156 wxSlider *arg1 = (wxSlider *) 0 ;
12157 int result;
12158 PyObject * obj0 = 0 ;
12159 char *kwnames[] = {
12160 (char *) "self", NULL
12161 };
12162
12163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
12164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12165 {
12166 PyThreadState* __tstate = wxPyBeginAllowThreads();
12167 result = (int)((wxSlider const *)arg1)->GetMax();
12168
12169 wxPyEndAllowThreads(__tstate);
12170 if (PyErr_Occurred()) SWIG_fail;
12171 }
12172 resultobj = SWIG_PyObj_FromInt((int)result);
12173 return resultobj;
12174 fail:
12175 return NULL;
12176 }
12177
12178
12179 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12180 PyObject *resultobj;
12181 wxSlider *arg1 = (wxSlider *) 0 ;
12182 int arg2 ;
12183 PyObject * obj0 = 0 ;
12184 PyObject * obj1 = 0 ;
12185 char *kwnames[] = {
12186 (char *) "self",(char *) "minValue", NULL
12187 };
12188
12189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
12190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12191 {
12192 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 {
12196 PyThreadState* __tstate = wxPyBeginAllowThreads();
12197 (arg1)->SetMin(arg2);
12198
12199 wxPyEndAllowThreads(__tstate);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 Py_INCREF(Py_None); resultobj = Py_None;
12203 return resultobj;
12204 fail:
12205 return NULL;
12206 }
12207
12208
12209 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12210 PyObject *resultobj;
12211 wxSlider *arg1 = (wxSlider *) 0 ;
12212 int arg2 ;
12213 PyObject * obj0 = 0 ;
12214 PyObject * obj1 = 0 ;
12215 char *kwnames[] = {
12216 (char *) "self",(char *) "maxValue", NULL
12217 };
12218
12219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
12220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12221 {
12222 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 {
12226 PyThreadState* __tstate = wxPyBeginAllowThreads();
12227 (arg1)->SetMax(arg2);
12228
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 Py_INCREF(Py_None); resultobj = Py_None;
12233 return resultobj;
12234 fail:
12235 return NULL;
12236 }
12237
12238
12239 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12240 PyObject *resultobj;
12241 wxSlider *arg1 = (wxSlider *) 0 ;
12242 int arg2 ;
12243 PyObject * obj0 = 0 ;
12244 PyObject * obj1 = 0 ;
12245 char *kwnames[] = {
12246 (char *) "self",(char *) "lineSize", NULL
12247 };
12248
12249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
12250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12251 {
12252 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12253 if (PyErr_Occurred()) SWIG_fail;
12254 }
12255 {
12256 PyThreadState* __tstate = wxPyBeginAllowThreads();
12257 (arg1)->SetLineSize(arg2);
12258
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 Py_INCREF(Py_None); resultobj = Py_None;
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12270 PyObject *resultobj;
12271 wxSlider *arg1 = (wxSlider *) 0 ;
12272 int arg2 ;
12273 PyObject * obj0 = 0 ;
12274 PyObject * obj1 = 0 ;
12275 char *kwnames[] = {
12276 (char *) "self",(char *) "pageSize", NULL
12277 };
12278
12279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
12280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12281 {
12282 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12283 if (PyErr_Occurred()) SWIG_fail;
12284 }
12285 {
12286 PyThreadState* __tstate = wxPyBeginAllowThreads();
12287 (arg1)->SetPageSize(arg2);
12288
12289 wxPyEndAllowThreads(__tstate);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 }
12292 Py_INCREF(Py_None); resultobj = Py_None;
12293 return resultobj;
12294 fail:
12295 return NULL;
12296 }
12297
12298
12299 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj;
12301 wxSlider *arg1 = (wxSlider *) 0 ;
12302 int result;
12303 PyObject * obj0 = 0 ;
12304 char *kwnames[] = {
12305 (char *) "self", NULL
12306 };
12307
12308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
12309 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 result = (int)((wxSlider const *)arg1)->GetLineSize();
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 resultobj = SWIG_PyObj_FromInt((int)result);
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12325 PyObject *resultobj;
12326 wxSlider *arg1 = (wxSlider *) 0 ;
12327 int result;
12328 PyObject * obj0 = 0 ;
12329 char *kwnames[] = {
12330 (char *) "self", NULL
12331 };
12332
12333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
12334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12335 {
12336 PyThreadState* __tstate = wxPyBeginAllowThreads();
12337 result = (int)((wxSlider const *)arg1)->GetPageSize();
12338
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 }
12342 resultobj = SWIG_PyObj_FromInt((int)result);
12343 return resultobj;
12344 fail:
12345 return NULL;
12346 }
12347
12348
12349 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj;
12351 wxSlider *arg1 = (wxSlider *) 0 ;
12352 int arg2 ;
12353 PyObject * obj0 = 0 ;
12354 PyObject * obj1 = 0 ;
12355 char *kwnames[] = {
12356 (char *) "self",(char *) "lenPixels", NULL
12357 };
12358
12359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
12360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12361 {
12362 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12363 if (PyErr_Occurred()) SWIG_fail;
12364 }
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 (arg1)->SetThumbLength(arg2);
12368
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 Py_INCREF(Py_None); resultobj = Py_None;
12373 return resultobj;
12374 fail:
12375 return NULL;
12376 }
12377
12378
12379 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12380 PyObject *resultobj;
12381 wxSlider *arg1 = (wxSlider *) 0 ;
12382 int result;
12383 PyObject * obj0 = 0 ;
12384 char *kwnames[] = {
12385 (char *) "self", NULL
12386 };
12387
12388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
12389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12390 {
12391 PyThreadState* __tstate = wxPyBeginAllowThreads();
12392 result = (int)((wxSlider const *)arg1)->GetThumbLength();
12393
12394 wxPyEndAllowThreads(__tstate);
12395 if (PyErr_Occurred()) SWIG_fail;
12396 }
12397 resultobj = SWIG_PyObj_FromInt((int)result);
12398 return resultobj;
12399 fail:
12400 return NULL;
12401 }
12402
12403
12404 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12405 PyObject *resultobj;
12406 wxSlider *arg1 = (wxSlider *) 0 ;
12407 int arg2 ;
12408 int arg3 = (int) 1 ;
12409 PyObject * obj0 = 0 ;
12410 PyObject * obj1 = 0 ;
12411 PyObject * obj2 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "self",(char *) "n",(char *) "pos", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12418 {
12419 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 if (obj2) {
12423 {
12424 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 }
12428 {
12429 PyThreadState* __tstate = wxPyBeginAllowThreads();
12430 (arg1)->SetTickFreq(arg2,arg3);
12431
12432 wxPyEndAllowThreads(__tstate);
12433 if (PyErr_Occurred()) SWIG_fail;
12434 }
12435 Py_INCREF(Py_None); resultobj = Py_None;
12436 return resultobj;
12437 fail:
12438 return NULL;
12439 }
12440
12441
12442 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12443 PyObject *resultobj;
12444 wxSlider *arg1 = (wxSlider *) 0 ;
12445 int result;
12446 PyObject * obj0 = 0 ;
12447 char *kwnames[] = {
12448 (char *) "self", NULL
12449 };
12450
12451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
12452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12453 {
12454 PyThreadState* __tstate = wxPyBeginAllowThreads();
12455 result = (int)((wxSlider const *)arg1)->GetTickFreq();
12456
12457 wxPyEndAllowThreads(__tstate);
12458 if (PyErr_Occurred()) SWIG_fail;
12459 }
12460 resultobj = SWIG_PyObj_FromInt((int)result);
12461 return resultobj;
12462 fail:
12463 return NULL;
12464 }
12465
12466
12467 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
12468 PyObject *resultobj;
12469 wxSlider *arg1 = (wxSlider *) 0 ;
12470 PyObject * obj0 = 0 ;
12471 char *kwnames[] = {
12472 (char *) "self", NULL
12473 };
12474
12475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
12476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 (arg1)->ClearTicks();
12480
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 Py_INCREF(Py_None); resultobj = Py_None;
12485 return resultobj;
12486 fail:
12487 return NULL;
12488 }
12489
12490
12491 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
12492 PyObject *resultobj;
12493 wxSlider *arg1 = (wxSlider *) 0 ;
12494 int arg2 ;
12495 PyObject * obj0 = 0 ;
12496 PyObject * obj1 = 0 ;
12497 char *kwnames[] = {
12498 (char *) "self",(char *) "tickPos", NULL
12499 };
12500
12501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
12502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12503 {
12504 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 {
12508 PyThreadState* __tstate = wxPyBeginAllowThreads();
12509 (arg1)->SetTick(arg2);
12510
12511 wxPyEndAllowThreads(__tstate);
12512 if (PyErr_Occurred()) SWIG_fail;
12513 }
12514 Py_INCREF(Py_None); resultobj = Py_None;
12515 return resultobj;
12516 fail:
12517 return NULL;
12518 }
12519
12520
12521 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
12522 PyObject *resultobj;
12523 wxSlider *arg1 = (wxSlider *) 0 ;
12524 PyObject * obj0 = 0 ;
12525 char *kwnames[] = {
12526 (char *) "self", NULL
12527 };
12528
12529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
12530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->ClearSel();
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_GetSelEnd(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_GetSelEnd",kwnames,&obj0)) goto fail;
12555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 result = (int)((wxSlider const *)arg1)->GetSelEnd();
12559
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_PyObj_FromInt((int)result);
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj;
12572 wxSlider *arg1 = (wxSlider *) 0 ;
12573 int result;
12574 PyObject * obj0 = 0 ;
12575 char *kwnames[] = {
12576 (char *) "self", NULL
12577 };
12578
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
12580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12581 {
12582 PyThreadState* __tstate = wxPyBeginAllowThreads();
12583 result = (int)((wxSlider const *)arg1)->GetSelStart();
12584
12585 wxPyEndAllowThreads(__tstate);
12586 if (PyErr_Occurred()) SWIG_fail;
12587 }
12588 resultobj = SWIG_PyObj_FromInt((int)result);
12589 return resultobj;
12590 fail:
12591 return NULL;
12592 }
12593
12594
12595 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj;
12597 wxSlider *arg1 = (wxSlider *) 0 ;
12598 int arg2 ;
12599 int arg3 ;
12600 PyObject * obj0 = 0 ;
12601 PyObject * obj1 = 0 ;
12602 PyObject * obj2 = 0 ;
12603 char *kwnames[] = {
12604 (char *) "self",(char *) "min",(char *) "max", NULL
12605 };
12606
12607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
12608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12609 {
12610 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12611 if (PyErr_Occurred()) SWIG_fail;
12612 }
12613 {
12614 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 (arg1)->SetSelection(arg2,arg3);
12620
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 Py_INCREF(Py_None); resultobj = Py_None;
12625 return resultobj;
12626 fail:
12627 return NULL;
12628 }
12629
12630
12631 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
12632 PyObject *obj;
12633 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12634 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
12635 Py_INCREF(obj);
12636 return Py_BuildValue((char *)"");
12637 }
12638 static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
12639 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
12640 return 1;
12641 }
12642
12643
12644 static PyObject *_wrap_ToggleButtonNameStr_get() {
12645 PyObject *pyobj;
12646
12647 {
12648 #if wxUSE_UNICODE
12649 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12650 #else
12651 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12652 #endif
12653 }
12654 return pyobj;
12655 }
12656
12657
12658 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12659 PyObject *resultobj;
12660 wxWindow *arg1 = (wxWindow *) 0 ;
12661 int arg2 ;
12662 wxString *arg3 = 0 ;
12663 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12664 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12665 wxSize const &arg5_defvalue = wxDefaultSize ;
12666 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12667 long arg6 = (long) 0 ;
12668 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12669 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12670 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
12671 wxString *arg8 = (wxString *) &arg8_defvalue ;
12672 wxToggleButton *result;
12673 bool temp3 = False ;
12674 wxPoint temp4 ;
12675 wxSize temp5 ;
12676 bool temp8 = False ;
12677 PyObject * obj0 = 0 ;
12678 PyObject * obj1 = 0 ;
12679 PyObject * obj2 = 0 ;
12680 PyObject * obj3 = 0 ;
12681 PyObject * obj4 = 0 ;
12682 PyObject * obj5 = 0 ;
12683 PyObject * obj6 = 0 ;
12684 PyObject * obj7 = 0 ;
12685 char *kwnames[] = {
12686 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12687 };
12688
12689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12691 {
12692 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 {
12696 arg3 = wxString_in_helper(obj2);
12697 if (arg3 == NULL) SWIG_fail;
12698 temp3 = True;
12699 }
12700 if (obj3) {
12701 {
12702 arg4 = &temp4;
12703 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12704 }
12705 }
12706 if (obj4) {
12707 {
12708 arg5 = &temp5;
12709 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12710 }
12711 }
12712 if (obj5) {
12713 {
12714 arg6 = (long) SWIG_PyObj_AsLong(obj5);
12715 if (PyErr_Occurred()) SWIG_fail;
12716 }
12717 }
12718 if (obj6) {
12719 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12720 if (arg7 == NULL) {
12721 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12722 }
12723 }
12724 if (obj7) {
12725 {
12726 arg8 = wxString_in_helper(obj7);
12727 if (arg8 == NULL) SWIG_fail;
12728 temp8 = True;
12729 }
12730 }
12731 {
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12734
12735 wxPyEndAllowThreads(__tstate);
12736 if (PyErr_Occurred()) SWIG_fail;
12737 }
12738 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1);
12739 {
12740 if (temp3)
12741 delete arg3;
12742 }
12743 {
12744 if (temp8)
12745 delete arg8;
12746 }
12747 return resultobj;
12748 fail:
12749 {
12750 if (temp3)
12751 delete arg3;
12752 }
12753 {
12754 if (temp8)
12755 delete arg8;
12756 }
12757 return NULL;
12758 }
12759
12760
12761 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12762 PyObject *resultobj;
12763 wxToggleButton *result;
12764 char *kwnames[] = {
12765 NULL
12766 };
12767
12768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = (wxToggleButton *)new wxToggleButton();
12772
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1);
12777 return resultobj;
12778 fail:
12779 return NULL;
12780 }
12781
12782
12783 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj;
12785 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12786 wxWindow *arg2 = (wxWindow *) 0 ;
12787 int arg3 ;
12788 wxString *arg4 = 0 ;
12789 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12790 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12791 wxSize const &arg6_defvalue = wxDefaultSize ;
12792 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12793 long arg7 = (long) 0 ;
12794 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12795 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12796 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
12797 wxString *arg9 = (wxString *) &arg9_defvalue ;
12798 bool result;
12799 bool temp4 = False ;
12800 wxPoint temp5 ;
12801 wxSize temp6 ;
12802 bool temp9 = False ;
12803 PyObject * obj0 = 0 ;
12804 PyObject * obj1 = 0 ;
12805 PyObject * obj2 = 0 ;
12806 PyObject * obj3 = 0 ;
12807 PyObject * obj4 = 0 ;
12808 PyObject * obj5 = 0 ;
12809 PyObject * obj6 = 0 ;
12810 PyObject * obj7 = 0 ;
12811 PyObject * obj8 = 0 ;
12812 char *kwnames[] = {
12813 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12814 };
12815
12816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12818 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12819 {
12820 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 }
12823 {
12824 arg4 = wxString_in_helper(obj3);
12825 if (arg4 == NULL) SWIG_fail;
12826 temp4 = True;
12827 }
12828 if (obj4) {
12829 {
12830 arg5 = &temp5;
12831 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12832 }
12833 }
12834 if (obj5) {
12835 {
12836 arg6 = &temp6;
12837 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12838 }
12839 }
12840 if (obj6) {
12841 {
12842 arg7 = (long) SWIG_PyObj_AsLong(obj6);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 }
12846 if (obj7) {
12847 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12848 if (arg8 == NULL) {
12849 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12850 }
12851 }
12852 if (obj8) {
12853 {
12854 arg9 = wxString_in_helper(obj8);
12855 if (arg9 == NULL) SWIG_fail;
12856 temp9 = True;
12857 }
12858 }
12859 {
12860 PyThreadState* __tstate = wxPyBeginAllowThreads();
12861 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12862
12863 wxPyEndAllowThreads(__tstate);
12864 if (PyErr_Occurred()) SWIG_fail;
12865 }
12866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12867 {
12868 if (temp4)
12869 delete arg4;
12870 }
12871 {
12872 if (temp9)
12873 delete arg9;
12874 }
12875 return resultobj;
12876 fail:
12877 {
12878 if (temp4)
12879 delete arg4;
12880 }
12881 {
12882 if (temp9)
12883 delete arg9;
12884 }
12885 return NULL;
12886 }
12887
12888
12889 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12890 PyObject *resultobj;
12891 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12892 bool arg2 ;
12893 PyObject * obj0 = 0 ;
12894 PyObject * obj1 = 0 ;
12895 char *kwnames[] = {
12896 (char *) "self",(char *) "value", NULL
12897 };
12898
12899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12901 {
12902 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 (arg1)->SetValue(arg2);
12908
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 Py_INCREF(Py_None); resultobj = Py_None;
12913 return resultobj;
12914 fail:
12915 return NULL;
12916 }
12917
12918
12919 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12920 PyObject *resultobj;
12921 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12922 bool result;
12923 PyObject * obj0 = 0 ;
12924 char *kwnames[] = {
12925 (char *) "self", NULL
12926 };
12927
12928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
12929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 result = (bool)((wxToggleButton const *)arg1)->GetValue();
12933
12934 wxPyEndAllowThreads(__tstate);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
12937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12938 return resultobj;
12939 fail:
12940 return NULL;
12941 }
12942
12943
12944 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12945 PyObject *resultobj;
12946 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12947 wxString *arg2 = 0 ;
12948 bool temp2 = False ;
12949 PyObject * obj0 = 0 ;
12950 PyObject * obj1 = 0 ;
12951 char *kwnames[] = {
12952 (char *) "self",(char *) "label", NULL
12953 };
12954
12955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
12956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12957 {
12958 arg2 = wxString_in_helper(obj1);
12959 if (arg2 == NULL) SWIG_fail;
12960 temp2 = True;
12961 }
12962 {
12963 PyThreadState* __tstate = wxPyBeginAllowThreads();
12964 (arg1)->SetLabel((wxString const &)*arg2);
12965
12966 wxPyEndAllowThreads(__tstate);
12967 if (PyErr_Occurred()) SWIG_fail;
12968 }
12969 Py_INCREF(Py_None); resultobj = Py_None;
12970 {
12971 if (temp2)
12972 delete arg2;
12973 }
12974 return resultobj;
12975 fail:
12976 {
12977 if (temp2)
12978 delete arg2;
12979 }
12980 return NULL;
12981 }
12982
12983
12984 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
12985 PyObject *obj;
12986 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12987 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
12988 Py_INCREF(obj);
12989 return Py_BuildValue((char *)"");
12990 }
12991 static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
12992 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
12993 return 1;
12994 }
12995
12996
12997 static PyObject *_wrap_NOTEBOOK_NAME_get() {
12998 PyObject *pyobj;
12999
13000 {
13001 #if wxUSE_UNICODE
13002 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13003 #else
13004 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13005 #endif
13006 }
13007 return pyobj;
13008 }
13009
13010
13011 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13012 PyObject *resultobj;
13013 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13014 size_t result;
13015 PyObject * obj0 = 0 ;
13016 char *kwnames[] = {
13017 (char *) "self", NULL
13018 };
13019
13020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13022 {
13023 PyThreadState* __tstate = wxPyBeginAllowThreads();
13024 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13025
13026 wxPyEndAllowThreads(__tstate);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 }
13029 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
13030 return resultobj;
13031 fail:
13032 return NULL;
13033 }
13034
13035
13036 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13037 PyObject *resultobj;
13038 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13039 size_t arg2 ;
13040 wxWindow *result;
13041 PyObject * obj0 = 0 ;
13042 PyObject * obj1 = 0 ;
13043 char *kwnames[] = {
13044 (char *) "self",(char *) "n", NULL
13045 };
13046
13047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13049 {
13050 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13051 if (PyErr_Occurred()) SWIG_fail;
13052 }
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 result = (wxWindow *)(arg1)->GetPage(arg2);
13056
13057 wxPyEndAllowThreads(__tstate);
13058 if (PyErr_Occurred()) SWIG_fail;
13059 }
13060 {
13061 resultobj = wxPyMake_wxObject(result);
13062 }
13063 return resultobj;
13064 fail:
13065 return NULL;
13066 }
13067
13068
13069 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13070 PyObject *resultobj;
13071 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13072 int result;
13073 PyObject * obj0 = 0 ;
13074 char *kwnames[] = {
13075 (char *) "self", NULL
13076 };
13077
13078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
13079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13080 {
13081 PyThreadState* __tstate = wxPyBeginAllowThreads();
13082 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
13083
13084 wxPyEndAllowThreads(__tstate);
13085 if (PyErr_Occurred()) SWIG_fail;
13086 }
13087 resultobj = SWIG_PyObj_FromInt((int)result);
13088 return resultobj;
13089 fail:
13090 return NULL;
13091 }
13092
13093
13094 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13095 PyObject *resultobj;
13096 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13097 size_t arg2 ;
13098 wxString *arg3 = 0 ;
13099 bool result;
13100 bool temp3 = False ;
13101 PyObject * obj0 = 0 ;
13102 PyObject * obj1 = 0 ;
13103 PyObject * obj2 = 0 ;
13104 char *kwnames[] = {
13105 (char *) "self",(char *) "n",(char *) "strText", NULL
13106 };
13107
13108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
13109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13110 {
13111 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13112 if (PyErr_Occurred()) SWIG_fail;
13113 }
13114 {
13115 arg3 = wxString_in_helper(obj2);
13116 if (arg3 == NULL) SWIG_fail;
13117 temp3 = True;
13118 }
13119 {
13120 PyThreadState* __tstate = wxPyBeginAllowThreads();
13121 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
13122
13123 wxPyEndAllowThreads(__tstate);
13124 if (PyErr_Occurred()) SWIG_fail;
13125 }
13126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13127 {
13128 if (temp3)
13129 delete arg3;
13130 }
13131 return resultobj;
13132 fail:
13133 {
13134 if (temp3)
13135 delete arg3;
13136 }
13137 return NULL;
13138 }
13139
13140
13141 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj;
13143 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13144 size_t arg2 ;
13145 wxString result;
13146 PyObject * obj0 = 0 ;
13147 PyObject * obj1 = 0 ;
13148 char *kwnames[] = {
13149 (char *) "self",(char *) "n", NULL
13150 };
13151
13152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
13153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13154 {
13155 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
13161
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 {
13166 #if wxUSE_UNICODE
13167 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13168 #else
13169 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13170 #endif
13171 }
13172 return resultobj;
13173 fail:
13174 return NULL;
13175 }
13176
13177
13178 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13179 PyObject *resultobj;
13180 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13181 wxImageList *arg2 = (wxImageList *) 0 ;
13182 PyObject * obj0 = 0 ;
13183 PyObject * obj1 = 0 ;
13184 char *kwnames[] = {
13185 (char *) "self",(char *) "imageList", NULL
13186 };
13187
13188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
13189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13190 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13191 {
13192 PyThreadState* __tstate = wxPyBeginAllowThreads();
13193 (arg1)->SetImageList(arg2);
13194
13195 wxPyEndAllowThreads(__tstate);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 Py_INCREF(Py_None); resultobj = Py_None;
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13206 PyObject *resultobj;
13207 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13208 wxImageList *arg2 = (wxImageList *) 0 ;
13209 PyObject * obj0 = 0 ;
13210 PyObject * obj1 = 0 ;
13211 char *kwnames[] = {
13212 (char *) "self",(char *) "imageList", NULL
13213 };
13214
13215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
13216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13217 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
13218 {
13219 PyThreadState* __tstate = wxPyBeginAllowThreads();
13220 (arg1)->AssignImageList(arg2);
13221
13222 wxPyEndAllowThreads(__tstate);
13223 if (PyErr_Occurred()) SWIG_fail;
13224 }
13225 Py_INCREF(Py_None); resultobj = Py_None;
13226 return resultobj;
13227 fail:
13228 return NULL;
13229 }
13230
13231
13232 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13233 PyObject *resultobj;
13234 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13235 wxImageList *result;
13236 PyObject * obj0 = 0 ;
13237 char *kwnames[] = {
13238 (char *) "self", NULL
13239 };
13240
13241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
13242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13243 {
13244 PyThreadState* __tstate = wxPyBeginAllowThreads();
13245 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
13246
13247 wxPyEndAllowThreads(__tstate);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 {
13251 resultobj = wxPyMake_wxObject(result);
13252 }
13253 return resultobj;
13254 fail:
13255 return NULL;
13256 }
13257
13258
13259 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13260 PyObject *resultobj;
13261 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13262 size_t arg2 ;
13263 int result;
13264 PyObject * obj0 = 0 ;
13265 PyObject * obj1 = 0 ;
13266 char *kwnames[] = {
13267 (char *) "self",(char *) "n", NULL
13268 };
13269
13270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
13271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13272 {
13273 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
13279
13280 wxPyEndAllowThreads(__tstate);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 resultobj = SWIG_PyObj_FromInt((int)result);
13284 return resultobj;
13285 fail:
13286 return NULL;
13287 }
13288
13289
13290 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13291 PyObject *resultobj;
13292 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13293 size_t arg2 ;
13294 int arg3 ;
13295 bool result;
13296 PyObject * obj0 = 0 ;
13297 PyObject * obj1 = 0 ;
13298 PyObject * obj2 = 0 ;
13299 char *kwnames[] = {
13300 (char *) "self",(char *) "n",(char *) "imageId", NULL
13301 };
13302
13303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
13304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13305 {
13306 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13307 if (PyErr_Occurred()) SWIG_fail;
13308 }
13309 {
13310 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 result = (bool)(arg1)->SetPageImage(arg2,arg3);
13316
13317 wxPyEndAllowThreads(__tstate);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 }
13320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13321 return resultobj;
13322 fail:
13323 return NULL;
13324 }
13325
13326
13327 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13328 PyObject *resultobj;
13329 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13330 wxSize *arg2 = 0 ;
13331 wxSize temp2 ;
13332 PyObject * obj0 = 0 ;
13333 PyObject * obj1 = 0 ;
13334 char *kwnames[] = {
13335 (char *) "self",(char *) "size", NULL
13336 };
13337
13338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13340 {
13341 arg2 = &temp2;
13342 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13343 }
13344 {
13345 PyThreadState* __tstate = wxPyBeginAllowThreads();
13346 (arg1)->SetPageSize((wxSize const &)*arg2);
13347
13348 wxPyEndAllowThreads(__tstate);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 Py_INCREF(Py_None); resultobj = Py_None;
13352 return resultobj;
13353 fail:
13354 return NULL;
13355 }
13356
13357
13358 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13359 PyObject *resultobj;
13360 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13361 wxSize *arg2 = 0 ;
13362 wxSize result;
13363 wxSize temp2 ;
13364 PyObject * obj0 = 0 ;
13365 PyObject * obj1 = 0 ;
13366 char *kwnames[] = {
13367 (char *) "self",(char *) "sizePage", NULL
13368 };
13369
13370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
13371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13372 {
13373 arg2 = &temp2;
13374 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13375 }
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
13378 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
13379
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 {
13384 wxSize * resultptr;
13385 resultptr = new wxSize((wxSize &) result);
13386 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13387 }
13388 return resultobj;
13389 fail:
13390 return NULL;
13391 }
13392
13393
13394 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj;
13396 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13397 size_t arg2 ;
13398 bool result;
13399 PyObject * obj0 = 0 ;
13400 PyObject * obj1 = 0 ;
13401 char *kwnames[] = {
13402 (char *) "self",(char *) "n", NULL
13403 };
13404
13405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
13406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13407 {
13408 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 }
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = (bool)(arg1)->DeletePage(arg2);
13414
13415 wxPyEndAllowThreads(__tstate);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 }
13418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13419 return resultobj;
13420 fail:
13421 return NULL;
13422 }
13423
13424
13425 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13426 PyObject *resultobj;
13427 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13428 size_t arg2 ;
13429 bool result;
13430 PyObject * obj0 = 0 ;
13431 PyObject * obj1 = 0 ;
13432 char *kwnames[] = {
13433 (char *) "self",(char *) "n", NULL
13434 };
13435
13436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
13437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13438 {
13439 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 }
13442 {
13443 PyThreadState* __tstate = wxPyBeginAllowThreads();
13444 result = (bool)(arg1)->RemovePage(arg2);
13445
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13450 return resultobj;
13451 fail:
13452 return NULL;
13453 }
13454
13455
13456 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
13457 PyObject *resultobj;
13458 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13459 bool result;
13460 PyObject * obj0 = 0 ;
13461 char *kwnames[] = {
13462 (char *) "self", NULL
13463 };
13464
13465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
13466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 result = (bool)(arg1)->DeleteAllPages();
13470
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13475 return resultobj;
13476 fail:
13477 return NULL;
13478 }
13479
13480
13481 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13484 wxWindow *arg2 = (wxWindow *) 0 ;
13485 wxString *arg3 = 0 ;
13486 bool arg4 = (bool) False ;
13487 int arg5 = (int) -1 ;
13488 bool result;
13489 bool temp3 = False ;
13490 PyObject * obj0 = 0 ;
13491 PyObject * obj1 = 0 ;
13492 PyObject * obj2 = 0 ;
13493 PyObject * obj3 = 0 ;
13494 PyObject * obj4 = 0 ;
13495 char *kwnames[] = {
13496 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13497 };
13498
13499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13501 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13502 {
13503 arg3 = wxString_in_helper(obj2);
13504 if (arg3 == NULL) SWIG_fail;
13505 temp3 = True;
13506 }
13507 if (obj3) {
13508 {
13509 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 }
13513 if (obj4) {
13514 {
13515 arg5 = (int) SWIG_PyObj_AsInt(obj4);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 }
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
13522
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13527 {
13528 if (temp3)
13529 delete arg3;
13530 }
13531 return resultobj;
13532 fail:
13533 {
13534 if (temp3)
13535 delete arg3;
13536 }
13537 return NULL;
13538 }
13539
13540
13541 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13542 PyObject *resultobj;
13543 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13544 size_t arg2 ;
13545 wxWindow *arg3 = (wxWindow *) 0 ;
13546 wxString *arg4 = 0 ;
13547 bool arg5 = (bool) False ;
13548 int arg6 = (int) -1 ;
13549 bool result;
13550 bool temp4 = False ;
13551 PyObject * obj0 = 0 ;
13552 PyObject * obj1 = 0 ;
13553 PyObject * obj2 = 0 ;
13554 PyObject * obj3 = 0 ;
13555 PyObject * obj4 = 0 ;
13556 PyObject * obj5 = 0 ;
13557 char *kwnames[] = {
13558 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13559 };
13560
13561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13563 {
13564 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13565 if (PyErr_Occurred()) SWIG_fail;
13566 }
13567 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13568 {
13569 arg4 = wxString_in_helper(obj3);
13570 if (arg4 == NULL) SWIG_fail;
13571 temp4 = True;
13572 }
13573 if (obj4) {
13574 {
13575 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 }
13579 if (obj5) {
13580 {
13581 arg6 = (int) SWIG_PyObj_AsInt(obj5);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 }
13585 {
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
13588
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13593 {
13594 if (temp4)
13595 delete arg4;
13596 }
13597 return resultobj;
13598 fail:
13599 {
13600 if (temp4)
13601 delete arg4;
13602 }
13603 return NULL;
13604 }
13605
13606
13607 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13608 PyObject *resultobj;
13609 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13610 size_t arg2 ;
13611 int result;
13612 PyObject * obj0 = 0 ;
13613 PyObject * obj1 = 0 ;
13614 char *kwnames[] = {
13615 (char *) "self",(char *) "n", NULL
13616 };
13617
13618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13620 {
13621 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13622 if (PyErr_Occurred()) SWIG_fail;
13623 }
13624 {
13625 PyThreadState* __tstate = wxPyBeginAllowThreads();
13626 result = (int)(arg1)->SetSelection(arg2);
13627
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 resultobj = SWIG_PyObj_FromInt((int)result);
13632 return resultobj;
13633 fail:
13634 return NULL;
13635 }
13636
13637
13638 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13639 PyObject *resultobj;
13640 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13641 bool arg2 = (bool) True ;
13642 PyObject * obj0 = 0 ;
13643 PyObject * obj1 = 0 ;
13644 char *kwnames[] = {
13645 (char *) "self",(char *) "forward", NULL
13646 };
13647
13648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
13649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13650 if (obj1) {
13651 {
13652 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13653 if (PyErr_Occurred()) SWIG_fail;
13654 }
13655 }
13656 {
13657 PyThreadState* __tstate = wxPyBeginAllowThreads();
13658 (arg1)->AdvanceSelection(arg2);
13659
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 Py_INCREF(Py_None); resultobj = Py_None;
13664 return resultobj;
13665 fail:
13666 return NULL;
13667 }
13668
13669
13670 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
13671 PyObject *obj;
13672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13673 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
13674 Py_INCREF(obj);
13675 return Py_BuildValue((char *)"");
13676 }
13677 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13678 PyObject *resultobj;
13679 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13680 int arg2 = (int) 0 ;
13681 int arg3 = (int) -1 ;
13682 int arg4 = (int) -1 ;
13683 wxBookCtrlEvent *result;
13684 PyObject * obj0 = 0 ;
13685 PyObject * obj1 = 0 ;
13686 PyObject * obj2 = 0 ;
13687 PyObject * obj3 = 0 ;
13688 char *kwnames[] = {
13689 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
13690 };
13691
13692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13693 if (obj0) {
13694 {
13695 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 }
13699 if (obj1) {
13700 {
13701 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 }
13705 if (obj2) {
13706 {
13707 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13708 if (PyErr_Occurred()) SWIG_fail;
13709 }
13710 }
13711 if (obj3) {
13712 {
13713 arg4 = (int) SWIG_PyObj_AsInt(obj3);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 }
13717 {
13718 PyThreadState* __tstate = wxPyBeginAllowThreads();
13719 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
13720
13721 wxPyEndAllowThreads(__tstate);
13722 if (PyErr_Occurred()) SWIG_fail;
13723 }
13724 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1);
13725 return resultobj;
13726 fail:
13727 return NULL;
13728 }
13729
13730
13731 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13732 PyObject *resultobj;
13733 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13734 int result;
13735 PyObject * obj0 = 0 ;
13736 char *kwnames[] = {
13737 (char *) "self", NULL
13738 };
13739
13740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
13741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13742 {
13743 PyThreadState* __tstate = wxPyBeginAllowThreads();
13744 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
13745
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 resultobj = SWIG_PyObj_FromInt((int)result);
13750 return resultobj;
13751 fail:
13752 return NULL;
13753 }
13754
13755
13756 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13757 PyObject *resultobj;
13758 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13759 int arg2 ;
13760 PyObject * obj0 = 0 ;
13761 PyObject * obj1 = 0 ;
13762 char *kwnames[] = {
13763 (char *) "self",(char *) "nSel", NULL
13764 };
13765
13766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13768 {
13769 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13770 if (PyErr_Occurred()) SWIG_fail;
13771 }
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 (arg1)->SetSelection(arg2);
13775
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 Py_INCREF(Py_None); resultobj = Py_None;
13780 return resultobj;
13781 fail:
13782 return NULL;
13783 }
13784
13785
13786 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13787 PyObject *resultobj;
13788 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13789 int result;
13790 PyObject * obj0 = 0 ;
13791 char *kwnames[] = {
13792 (char *) "self", NULL
13793 };
13794
13795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
13796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13797 {
13798 PyThreadState* __tstate = wxPyBeginAllowThreads();
13799 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
13800
13801 wxPyEndAllowThreads(__tstate);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 }
13804 resultobj = SWIG_PyObj_FromInt((int)result);
13805 return resultobj;
13806 fail:
13807 return NULL;
13808 }
13809
13810
13811 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13812 PyObject *resultobj;
13813 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13814 int arg2 ;
13815 PyObject * obj0 = 0 ;
13816 PyObject * obj1 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self",(char *) "nOldSel", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13823 {
13824 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 {
13828 PyThreadState* __tstate = wxPyBeginAllowThreads();
13829 (arg1)->SetOldSelection(arg2);
13830
13831 wxPyEndAllowThreads(__tstate);
13832 if (PyErr_Occurred()) SWIG_fail;
13833 }
13834 Py_INCREF(Py_None); resultobj = Py_None;
13835 return resultobj;
13836 fail:
13837 return NULL;
13838 }
13839
13840
13841 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
13842 PyObject *obj;
13843 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13844 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
13845 Py_INCREF(obj);
13846 return Py_BuildValue((char *)"");
13847 }
13848 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj;
13850 wxWindow *arg1 = (wxWindow *) 0 ;
13851 int arg2 ;
13852 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13853 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13854 wxSize const &arg4_defvalue = wxDefaultSize ;
13855 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13856 long arg5 = (long) 0 ;
13857 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
13858 wxString *arg6 = (wxString *) &arg6_defvalue ;
13859 wxNotebook *result;
13860 wxPoint temp3 ;
13861 wxSize temp4 ;
13862 bool temp6 = False ;
13863 PyObject * obj0 = 0 ;
13864 PyObject * obj1 = 0 ;
13865 PyObject * obj2 = 0 ;
13866 PyObject * obj3 = 0 ;
13867 PyObject * obj4 = 0 ;
13868 PyObject * obj5 = 0 ;
13869 char *kwnames[] = {
13870 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
13871 };
13872
13873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13875 {
13876 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 if (obj2) {
13880 {
13881 arg3 = &temp3;
13882 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13883 }
13884 }
13885 if (obj3) {
13886 {
13887 arg4 = &temp4;
13888 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
13889 }
13890 }
13891 if (obj4) {
13892 {
13893 arg5 = (long) SWIG_PyObj_AsLong(obj4);
13894 if (PyErr_Occurred()) SWIG_fail;
13895 }
13896 }
13897 if (obj5) {
13898 {
13899 arg6 = wxString_in_helper(obj5);
13900 if (arg6 == NULL) SWIG_fail;
13901 temp6 = True;
13902 }
13903 }
13904 {
13905 PyThreadState* __tstate = wxPyBeginAllowThreads();
13906 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
13907
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 {
13912 resultobj = wxPyMake_wxObject(result);
13913 }
13914 {
13915 if (temp6)
13916 delete arg6;
13917 }
13918 return resultobj;
13919 fail:
13920 {
13921 if (temp6)
13922 delete arg6;
13923 }
13924 return NULL;
13925 }
13926
13927
13928 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
13929 PyObject *resultobj;
13930 wxNotebook *result;
13931 char *kwnames[] = {
13932 NULL
13933 };
13934
13935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
13936 {
13937 PyThreadState* __tstate = wxPyBeginAllowThreads();
13938 result = (wxNotebook *)new wxNotebook();
13939
13940 wxPyEndAllowThreads(__tstate);
13941 if (PyErr_Occurred()) SWIG_fail;
13942 }
13943 {
13944 resultobj = wxPyMake_wxObject(result);
13945 }
13946 return resultobj;
13947 fail:
13948 return NULL;
13949 }
13950
13951
13952 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13953 PyObject *resultobj;
13954 wxNotebook *arg1 = (wxNotebook *) 0 ;
13955 wxWindow *arg2 = (wxWindow *) 0 ;
13956 int arg3 ;
13957 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13958 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13959 wxSize const &arg5_defvalue = wxDefaultSize ;
13960 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13961 long arg6 = (long) 0 ;
13962 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
13963 wxString *arg7 = (wxString *) &arg7_defvalue ;
13964 bool result;
13965 wxPoint temp4 ;
13966 wxSize temp5 ;
13967 bool temp7 = False ;
13968 PyObject * obj0 = 0 ;
13969 PyObject * obj1 = 0 ;
13970 PyObject * obj2 = 0 ;
13971 PyObject * obj3 = 0 ;
13972 PyObject * obj4 = 0 ;
13973 PyObject * obj5 = 0 ;
13974 PyObject * obj6 = 0 ;
13975 char *kwnames[] = {
13976 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
13977 };
13978
13979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13981 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13982 {
13983 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 if (obj3) {
13987 {
13988 arg4 = &temp4;
13989 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13990 }
13991 }
13992 if (obj4) {
13993 {
13994 arg5 = &temp5;
13995 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13996 }
13997 }
13998 if (obj5) {
13999 {
14000 arg6 = (long) SWIG_PyObj_AsLong(obj5);
14001 if (PyErr_Occurred()) SWIG_fail;
14002 }
14003 }
14004 if (obj6) {
14005 {
14006 arg7 = wxString_in_helper(obj6);
14007 if (arg7 == NULL) SWIG_fail;
14008 temp7 = True;
14009 }
14010 }
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14014
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14019 {
14020 if (temp7)
14021 delete arg7;
14022 }
14023 return resultobj;
14024 fail:
14025 {
14026 if (temp7)
14027 delete arg7;
14028 }
14029 return NULL;
14030 }
14031
14032
14033 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14034 PyObject *resultobj;
14035 wxNotebook *arg1 = (wxNotebook *) 0 ;
14036 int result;
14037 PyObject * obj0 = 0 ;
14038 char *kwnames[] = {
14039 (char *) "self", NULL
14040 };
14041
14042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
14043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14044 {
14045 PyThreadState* __tstate = wxPyBeginAllowThreads();
14046 result = (int)((wxNotebook const *)arg1)->GetRowCount();
14047
14048 wxPyEndAllowThreads(__tstate);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 }
14051 resultobj = SWIG_PyObj_FromInt((int)result);
14052 return resultobj;
14053 fail:
14054 return NULL;
14055 }
14056
14057
14058 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj;
14060 wxNotebook *arg1 = (wxNotebook *) 0 ;
14061 wxSize *arg2 = 0 ;
14062 wxSize temp2 ;
14063 PyObject * obj0 = 0 ;
14064 PyObject * obj1 = 0 ;
14065 char *kwnames[] = {
14066 (char *) "self",(char *) "padding", NULL
14067 };
14068
14069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
14070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14071 {
14072 arg2 = &temp2;
14073 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14074 }
14075 {
14076 PyThreadState* __tstate = wxPyBeginAllowThreads();
14077 (arg1)->SetPadding((wxSize const &)*arg2);
14078
14079 wxPyEndAllowThreads(__tstate);
14080 if (PyErr_Occurred()) SWIG_fail;
14081 }
14082 Py_INCREF(Py_None); resultobj = Py_None;
14083 return resultobj;
14084 fail:
14085 return NULL;
14086 }
14087
14088
14089 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj;
14091 wxNotebook *arg1 = (wxNotebook *) 0 ;
14092 wxSize *arg2 = 0 ;
14093 wxSize temp2 ;
14094 PyObject * obj0 = 0 ;
14095 PyObject * obj1 = 0 ;
14096 char *kwnames[] = {
14097 (char *) "self",(char *) "sz", NULL
14098 };
14099
14100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
14101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14102 {
14103 arg2 = &temp2;
14104 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14105 }
14106 {
14107 PyThreadState* __tstate = wxPyBeginAllowThreads();
14108 (arg1)->SetTabSize((wxSize const &)*arg2);
14109
14110 wxPyEndAllowThreads(__tstate);
14111 if (PyErr_Occurred()) SWIG_fail;
14112 }
14113 Py_INCREF(Py_None); resultobj = Py_None;
14114 return resultobj;
14115 fail:
14116 return NULL;
14117 }
14118
14119
14120 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
14121 PyObject *resultobj;
14122 wxNotebook *arg1 = (wxNotebook *) 0 ;
14123 wxPoint *arg2 = 0 ;
14124 long *arg3 = (long *) 0 ;
14125 int result;
14126 wxPoint temp2 ;
14127 long temp3 ;
14128 PyObject * obj0 = 0 ;
14129 PyObject * obj1 = 0 ;
14130 char *kwnames[] = {
14131 (char *) "self",(char *) "pt", NULL
14132 };
14133
14134 arg3 = &temp3;
14135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
14136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14137 {
14138 arg2 = &temp2;
14139 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14140 }
14141 {
14142 PyThreadState* __tstate = wxPyBeginAllowThreads();
14143 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
14144
14145 wxPyEndAllowThreads(__tstate);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 }
14148 resultobj = SWIG_PyObj_FromInt((int)result);
14149 {
14150 PyObject *o = PyInt_FromLong((long) (*arg3));
14151 resultobj = t_output_helper(resultobj,o);
14152 }
14153 return resultobj;
14154 fail:
14155 return NULL;
14156 }
14157
14158
14159 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14160 PyObject *resultobj;
14161 wxNotebook *arg1 = (wxNotebook *) 0 ;
14162 wxSize *arg2 = 0 ;
14163 wxSize result;
14164 wxSize temp2 ;
14165 PyObject * obj0 = 0 ;
14166 PyObject * obj1 = 0 ;
14167 char *kwnames[] = {
14168 (char *) "self",(char *) "sizePage", NULL
14169 };
14170
14171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14173 {
14174 arg2 = &temp2;
14175 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14176 }
14177 {
14178 PyThreadState* __tstate = wxPyBeginAllowThreads();
14179 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14180
14181 wxPyEndAllowThreads(__tstate);
14182 if (PyErr_Occurred()) SWIG_fail;
14183 }
14184 {
14185 wxSize * resultptr;
14186 resultptr = new wxSize((wxSize &) result);
14187 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
14188 }
14189 return resultobj;
14190 fail:
14191 return NULL;
14192 }
14193
14194
14195 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
14196 PyObject *obj;
14197 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14198 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
14199 Py_INCREF(obj);
14200 return Py_BuildValue((char *)"");
14201 }
14202 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14203 PyObject *resultobj;
14204 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14205 int arg2 = (int) 0 ;
14206 int arg3 = (int) -1 ;
14207 int arg4 = (int) -1 ;
14208 wxNotebookEvent *result;
14209 PyObject * obj0 = 0 ;
14210 PyObject * obj1 = 0 ;
14211 PyObject * obj2 = 0 ;
14212 PyObject * obj3 = 0 ;
14213 char *kwnames[] = {
14214 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14215 };
14216
14217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14218 if (obj0) {
14219 {
14220 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 }
14224 if (obj1) {
14225 {
14226 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14227 if (PyErr_Occurred()) SWIG_fail;
14228 }
14229 }
14230 if (obj2) {
14231 {
14232 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14233 if (PyErr_Occurred()) SWIG_fail;
14234 }
14235 }
14236 if (obj3) {
14237 {
14238 arg4 = (int) SWIG_PyObj_AsInt(obj3);
14239 if (PyErr_Occurred()) SWIG_fail;
14240 }
14241 }
14242 {
14243 PyThreadState* __tstate = wxPyBeginAllowThreads();
14244 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
14245
14246 wxPyEndAllowThreads(__tstate);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 }
14249 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1);
14250 return resultobj;
14251 fail:
14252 return NULL;
14253 }
14254
14255
14256 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
14257 PyObject *obj;
14258 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14259 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
14260 Py_INCREF(obj);
14261 return Py_BuildValue((char *)"");
14262 }
14263 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14264 PyObject *resultobj;
14265 wxWindow *arg1 = (wxWindow *) 0 ;
14266 int arg2 ;
14267 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14268 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14269 wxSize const &arg4_defvalue = wxDefaultSize ;
14270 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14271 long arg5 = (long) 0 ;
14272 wxString const &arg6_defvalue = wxPyEmptyString ;
14273 wxString *arg6 = (wxString *) &arg6_defvalue ;
14274 wxListbook *result;
14275 wxPoint temp3 ;
14276 wxSize temp4 ;
14277 bool temp6 = False ;
14278 PyObject * obj0 = 0 ;
14279 PyObject * obj1 = 0 ;
14280 PyObject * obj2 = 0 ;
14281 PyObject * obj3 = 0 ;
14282 PyObject * obj4 = 0 ;
14283 PyObject * obj5 = 0 ;
14284 char *kwnames[] = {
14285 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14286 };
14287
14288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14290 {
14291 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 if (obj2) {
14295 {
14296 arg3 = &temp3;
14297 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14298 }
14299 }
14300 if (obj3) {
14301 {
14302 arg4 = &temp4;
14303 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14304 }
14305 }
14306 if (obj4) {
14307 {
14308 arg5 = (long) SWIG_PyObj_AsLong(obj4);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 }
14312 if (obj5) {
14313 {
14314 arg6 = wxString_in_helper(obj5);
14315 if (arg6 == NULL) SWIG_fail;
14316 temp6 = True;
14317 }
14318 }
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14322
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1);
14327 {
14328 if (temp6)
14329 delete arg6;
14330 }
14331 return resultobj;
14332 fail:
14333 {
14334 if (temp6)
14335 delete arg6;
14336 }
14337 return NULL;
14338 }
14339
14340
14341 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14342 PyObject *resultobj;
14343 wxListbook *result;
14344 char *kwnames[] = {
14345 NULL
14346 };
14347
14348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
14349 {
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 result = (wxListbook *)new wxListbook();
14352
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1);
14357 return resultobj;
14358 fail:
14359 return NULL;
14360 }
14361
14362
14363 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14364 PyObject *resultobj;
14365 wxListbook *arg1 = (wxListbook *) 0 ;
14366 wxWindow *arg2 = (wxWindow *) 0 ;
14367 int arg3 ;
14368 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14369 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14370 wxSize const &arg5_defvalue = wxDefaultSize ;
14371 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14372 long arg6 = (long) 0 ;
14373 wxString const &arg7_defvalue = wxPyEmptyString ;
14374 wxString *arg7 = (wxString *) &arg7_defvalue ;
14375 bool result;
14376 wxPoint temp4 ;
14377 wxSize temp5 ;
14378 bool temp7 = False ;
14379 PyObject * obj0 = 0 ;
14380 PyObject * obj1 = 0 ;
14381 PyObject * obj2 = 0 ;
14382 PyObject * obj3 = 0 ;
14383 PyObject * obj4 = 0 ;
14384 PyObject * obj5 = 0 ;
14385 PyObject * obj6 = 0 ;
14386 char *kwnames[] = {
14387 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14388 };
14389
14390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14392 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14393 {
14394 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 if (obj3) {
14398 {
14399 arg4 = &temp4;
14400 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14401 }
14402 }
14403 if (obj4) {
14404 {
14405 arg5 = &temp5;
14406 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14407 }
14408 }
14409 if (obj5) {
14410 {
14411 arg6 = (long) SWIG_PyObj_AsLong(obj5);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 }
14415 if (obj6) {
14416 {
14417 arg7 = wxString_in_helper(obj6);
14418 if (arg7 == NULL) SWIG_fail;
14419 temp7 = True;
14420 }
14421 }
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14425
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14430 {
14431 if (temp7)
14432 delete arg7;
14433 }
14434 return resultobj;
14435 fail:
14436 {
14437 if (temp7)
14438 delete arg7;
14439 }
14440 return NULL;
14441 }
14442
14443
14444 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
14445 PyObject *resultobj;
14446 wxListbook *arg1 = (wxListbook *) 0 ;
14447 bool result;
14448 PyObject * obj0 = 0 ;
14449 char *kwnames[] = {
14450 (char *) "self", NULL
14451 };
14452
14453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
14454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14455 {
14456 PyThreadState* __tstate = wxPyBeginAllowThreads();
14457 result = (bool)((wxListbook const *)arg1)->IsVertical();
14458
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
14470 PyObject *obj;
14471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14472 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
14473 Py_INCREF(obj);
14474 return Py_BuildValue((char *)"");
14475 }
14476 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14477 PyObject *resultobj;
14478 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14479 int arg2 = (int) 0 ;
14480 int arg3 = (int) -1 ;
14481 int arg4 = (int) -1 ;
14482 wxListbookEvent *result;
14483 PyObject * obj0 = 0 ;
14484 PyObject * obj1 = 0 ;
14485 PyObject * obj2 = 0 ;
14486 PyObject * obj3 = 0 ;
14487 char *kwnames[] = {
14488 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14489 };
14490
14491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14492 if (obj0) {
14493 {
14494 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 }
14498 if (obj1) {
14499 {
14500 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14501 if (PyErr_Occurred()) SWIG_fail;
14502 }
14503 }
14504 if (obj2) {
14505 {
14506 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14507 if (PyErr_Occurred()) SWIG_fail;
14508 }
14509 }
14510 if (obj3) {
14511 {
14512 arg4 = (int) SWIG_PyObj_AsInt(obj3);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 }
14516 {
14517 PyThreadState* __tstate = wxPyBeginAllowThreads();
14518 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
14519
14520 wxPyEndAllowThreads(__tstate);
14521 if (PyErr_Occurred()) SWIG_fail;
14522 }
14523 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1);
14524 return resultobj;
14525 fail:
14526 return NULL;
14527 }
14528
14529
14530 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
14531 PyObject *obj;
14532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14533 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
14534 Py_INCREF(obj);
14535 return Py_BuildValue((char *)"");
14536 }
14537 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14538 PyObject *resultobj;
14539 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14540 wxBookCtrlSizer *result;
14541 PyObject * obj0 = 0 ;
14542 char *kwnames[] = {
14543 (char *) "nb", NULL
14544 };
14545
14546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
14547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14548 {
14549 PyThreadState* __tstate = wxPyBeginAllowThreads();
14550 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
14551
14552 wxPyEndAllowThreads(__tstate);
14553 if (PyErr_Occurred()) SWIG_fail;
14554 }
14555 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1);
14556 return resultobj;
14557 fail:
14558 return NULL;
14559 }
14560
14561
14562 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14563 PyObject *resultobj;
14564 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14565 PyObject * obj0 = 0 ;
14566 char *kwnames[] = {
14567 (char *) "self", NULL
14568 };
14569
14570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14572 {
14573 PyThreadState* __tstate = wxPyBeginAllowThreads();
14574 (arg1)->RecalcSizes();
14575
14576 wxPyEndAllowThreads(__tstate);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 Py_INCREF(Py_None); resultobj = Py_None;
14580 return resultobj;
14581 fail:
14582 return NULL;
14583 }
14584
14585
14586 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14587 PyObject *resultobj;
14588 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14589 wxSize result;
14590 PyObject * obj0 = 0 ;
14591 char *kwnames[] = {
14592 (char *) "self", NULL
14593 };
14594
14595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
14596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 result = (arg1)->CalcMin();
14600
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 {
14605 wxSize * resultptr;
14606 resultptr = new wxSize((wxSize &) result);
14607 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
14608 }
14609 return resultobj;
14610 fail:
14611 return NULL;
14612 }
14613
14614
14615 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14616 PyObject *resultobj;
14617 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14618 wxBookCtrl *result;
14619 PyObject * obj0 = 0 ;
14620 char *kwnames[] = {
14621 (char *) "self", NULL
14622 };
14623
14624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
14625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14626 {
14627 PyThreadState* __tstate = wxPyBeginAllowThreads();
14628 result = (wxBookCtrl *)(arg1)->GetControl();
14629
14630 wxPyEndAllowThreads(__tstate);
14631 if (PyErr_Occurred()) SWIG_fail;
14632 }
14633 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0);
14634 return resultobj;
14635 fail:
14636 return NULL;
14637 }
14638
14639
14640 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
14641 PyObject *obj;
14642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14643 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
14644 Py_INCREF(obj);
14645 return Py_BuildValue((char *)"");
14646 }
14647 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14648 PyObject *resultobj;
14649 wxNotebook *arg1 = (wxNotebook *) 0 ;
14650 wxNotebookSizer *result;
14651 PyObject * obj0 = 0 ;
14652 char *kwnames[] = {
14653 (char *) "nb", NULL
14654 };
14655
14656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
14657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14658 {
14659 PyThreadState* __tstate = wxPyBeginAllowThreads();
14660 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
14661
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1);
14666 return resultobj;
14667 fail:
14668 return NULL;
14669 }
14670
14671
14672 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14673 PyObject *resultobj;
14674 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14675 PyObject * obj0 = 0 ;
14676 char *kwnames[] = {
14677 (char *) "self", NULL
14678 };
14679
14680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 (arg1)->RecalcSizes();
14685
14686 wxPyEndAllowThreads(__tstate);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 }
14689 Py_INCREF(Py_None); resultobj = Py_None;
14690 return resultobj;
14691 fail:
14692 return NULL;
14693 }
14694
14695
14696 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14697 PyObject *resultobj;
14698 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14699 wxSize result;
14700 PyObject * obj0 = 0 ;
14701 char *kwnames[] = {
14702 (char *) "self", NULL
14703 };
14704
14705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
14706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 result = (arg1)->CalcMin();
14710
14711 wxPyEndAllowThreads(__tstate);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 }
14714 {
14715 wxSize * resultptr;
14716 resultptr = new wxSize((wxSize &) result);
14717 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
14718 }
14719 return resultobj;
14720 fail:
14721 return NULL;
14722 }
14723
14724
14725 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj;
14727 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14728 wxNotebook *result;
14729 PyObject * obj0 = 0 ;
14730 char *kwnames[] = {
14731 (char *) "self", NULL
14732 };
14733
14734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
14735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 result = (wxNotebook *)(arg1)->GetNotebook();
14739
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 {
14744 resultobj = wxPyMake_wxObject(result);
14745 }
14746 return resultobj;
14747 fail:
14748 return NULL;
14749 }
14750
14751
14752 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
14753 PyObject *obj;
14754 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14755 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
14756 Py_INCREF(obj);
14757 return Py_BuildValue((char *)"");
14758 }
14759 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
14760 PyObject *resultobj;
14761 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14762 int result;
14763 PyObject * obj0 = 0 ;
14764 char *kwnames[] = {
14765 (char *) "self", NULL
14766 };
14767
14768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
14769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14770 {
14771 PyThreadState* __tstate = wxPyBeginAllowThreads();
14772 result = (int)(arg1)->GetId();
14773
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 resultobj = SWIG_PyObj_FromInt((int)result);
14778 return resultobj;
14779 fail:
14780 return NULL;
14781 }
14782
14783
14784 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14785 PyObject *resultobj;
14786 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14787 wxControl *result;
14788 PyObject * obj0 = 0 ;
14789 char *kwnames[] = {
14790 (char *) "self", NULL
14791 };
14792
14793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
14794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14795 {
14796 PyThreadState* __tstate = wxPyBeginAllowThreads();
14797 result = (wxControl *)(arg1)->GetControl();
14798
14799 wxPyEndAllowThreads(__tstate);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 {
14803 resultobj = wxPyMake_wxObject(result);
14804 }
14805 return resultobj;
14806 fail:
14807 return NULL;
14808 }
14809
14810
14811 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
14812 PyObject *resultobj;
14813 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14814 wxToolBarBase *result;
14815 PyObject * obj0 = 0 ;
14816 char *kwnames[] = {
14817 (char *) "self", NULL
14818 };
14819
14820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
14821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14822 {
14823 PyThreadState* __tstate = wxPyBeginAllowThreads();
14824 result = (wxToolBarBase *)(arg1)->GetToolBar();
14825
14826 wxPyEndAllowThreads(__tstate);
14827 if (PyErr_Occurred()) SWIG_fail;
14828 }
14829 {
14830 resultobj = wxPyMake_wxObject(result);
14831 }
14832 return resultobj;
14833 fail:
14834 return NULL;
14835 }
14836
14837
14838 static PyObject *_wrap_ToolBarToolBase_IsButton(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_IsButton",kwnames,&obj0)) goto fail;
14848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 result = (int)(arg1)->IsButton();
14852
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 resultobj = SWIG_PyObj_FromInt((int)result);
14857 return resultobj;
14858 fail:
14859 return NULL;
14860 }
14861
14862
14863 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14864 PyObject *resultobj;
14865 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14866 int result;
14867 PyObject * obj0 = 0 ;
14868 char *kwnames[] = {
14869 (char *) "self", NULL
14870 };
14871
14872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
14873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14874 {
14875 PyThreadState* __tstate = wxPyBeginAllowThreads();
14876 result = (int)(arg1)->IsControl();
14877
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 resultobj = SWIG_PyObj_FromInt((int)result);
14882 return resultobj;
14883 fail:
14884 return NULL;
14885 }
14886
14887
14888 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj;
14890 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14891 int result;
14892 PyObject * obj0 = 0 ;
14893 char *kwnames[] = {
14894 (char *) "self", NULL
14895 };
14896
14897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
14898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14899 {
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 result = (int)(arg1)->IsSeparator();
14902
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 resultobj = SWIG_PyObj_FromInt((int)result);
14907 return resultobj;
14908 fail:
14909 return NULL;
14910 }
14911
14912
14913 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
14914 PyObject *resultobj;
14915 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14916 int result;
14917 PyObject * obj0 = 0 ;
14918 char *kwnames[] = {
14919 (char *) "self", NULL
14920 };
14921
14922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
14923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14924 {
14925 PyThreadState* __tstate = wxPyBeginAllowThreads();
14926 result = (int)(arg1)->GetStyle();
14927
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 resultobj = SWIG_PyObj_FromInt((int)result);
14932 return resultobj;
14933 fail:
14934 return NULL;
14935 }
14936
14937
14938 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
14939 PyObject *resultobj;
14940 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14941 int result;
14942 PyObject * obj0 = 0 ;
14943 char *kwnames[] = {
14944 (char *) "self", NULL
14945 };
14946
14947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
14948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (int)(arg1)->GetKind();
14952
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 resultobj = SWIG_PyObj_FromInt((int)result);
14957 return resultobj;
14958 fail:
14959 return NULL;
14960 }
14961
14962
14963 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj;
14965 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14966 bool result;
14967 PyObject * obj0 = 0 ;
14968 char *kwnames[] = {
14969 (char *) "self", NULL
14970 };
14971
14972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
14973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 result = (bool)(arg1)->IsEnabled();
14977
14978 wxPyEndAllowThreads(__tstate);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14982 return resultobj;
14983 fail:
14984 return NULL;
14985 }
14986
14987
14988 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
14989 PyObject *resultobj;
14990 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14991 bool result;
14992 PyObject * obj0 = 0 ;
14993 char *kwnames[] = {
14994 (char *) "self", NULL
14995 };
14996
14997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
14998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 result = (bool)(arg1)->IsToggled();
15002
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15007 return resultobj;
15008 fail:
15009 return NULL;
15010 }
15011
15012
15013 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj;
15015 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15016 bool result;
15017 PyObject * obj0 = 0 ;
15018 char *kwnames[] = {
15019 (char *) "self", NULL
15020 };
15021
15022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
15023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15024 {
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 result = (bool)(arg1)->CanBeToggled();
15027
15028 wxPyEndAllowThreads(__tstate);
15029 if (PyErr_Occurred()) SWIG_fail;
15030 }
15031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15032 return resultobj;
15033 fail:
15034 return NULL;
15035 }
15036
15037
15038 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15039 PyObject *resultobj;
15040 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15041 wxBitmap *result;
15042 PyObject * obj0 = 0 ;
15043 char *kwnames[] = {
15044 (char *) "self", NULL
15045 };
15046
15047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
15048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15049 {
15050 PyThreadState* __tstate = wxPyBeginAllowThreads();
15051 {
15052 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
15053 result = (wxBitmap *) &_result_ref;
15054 }
15055
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
15060 return resultobj;
15061 fail:
15062 return NULL;
15063 }
15064
15065
15066 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15067 PyObject *resultobj;
15068 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15069 wxBitmap *result;
15070 PyObject * obj0 = 0 ;
15071 char *kwnames[] = {
15072 (char *) "self", NULL
15073 };
15074
15075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
15076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 {
15080 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
15081 result = (wxBitmap *) &_result_ref;
15082 }
15083
15084 wxPyEndAllowThreads(__tstate);
15085 if (PyErr_Occurred()) SWIG_fail;
15086 }
15087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
15088 return resultobj;
15089 fail:
15090 return NULL;
15091 }
15092
15093
15094 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15095 PyObject *resultobj;
15096 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15097 wxBitmap result;
15098 PyObject * obj0 = 0 ;
15099 char *kwnames[] = {
15100 (char *) "self", NULL
15101 };
15102
15103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
15104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (arg1)->GetBitmap();
15108
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 {
15113 wxBitmap * resultptr;
15114 resultptr = new wxBitmap((wxBitmap &) result);
15115 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
15116 }
15117 return resultobj;
15118 fail:
15119 return NULL;
15120 }
15121
15122
15123 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15124 PyObject *resultobj;
15125 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15126 wxString result;
15127 PyObject * obj0 = 0 ;
15128 char *kwnames[] = {
15129 (char *) "self", NULL
15130 };
15131
15132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
15133 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15134 {
15135 PyThreadState* __tstate = wxPyBeginAllowThreads();
15136 result = (arg1)->GetLabel();
15137
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 {
15142 #if wxUSE_UNICODE
15143 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15144 #else
15145 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15146 #endif
15147 }
15148 return resultobj;
15149 fail:
15150 return NULL;
15151 }
15152
15153
15154 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15155 PyObject *resultobj;
15156 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15157 wxString result;
15158 PyObject * obj0 = 0 ;
15159 char *kwnames[] = {
15160 (char *) "self", NULL
15161 };
15162
15163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
15164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15165 {
15166 PyThreadState* __tstate = wxPyBeginAllowThreads();
15167 result = (arg1)->GetShortHelp();
15168
15169 wxPyEndAllowThreads(__tstate);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 }
15172 {
15173 #if wxUSE_UNICODE
15174 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15175 #else
15176 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15177 #endif
15178 }
15179 return resultobj;
15180 fail:
15181 return NULL;
15182 }
15183
15184
15185 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15186 PyObject *resultobj;
15187 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15188 wxString result;
15189 PyObject * obj0 = 0 ;
15190 char *kwnames[] = {
15191 (char *) "self", NULL
15192 };
15193
15194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
15195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15196 {
15197 PyThreadState* __tstate = wxPyBeginAllowThreads();
15198 result = (arg1)->GetLongHelp();
15199
15200 wxPyEndAllowThreads(__tstate);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 {
15204 #if wxUSE_UNICODE
15205 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15206 #else
15207 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15208 #endif
15209 }
15210 return resultobj;
15211 fail:
15212 return NULL;
15213 }
15214
15215
15216 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
15217 PyObject *resultobj;
15218 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15219 bool arg2 ;
15220 bool result;
15221 PyObject * obj0 = 0 ;
15222 PyObject * obj1 = 0 ;
15223 char *kwnames[] = {
15224 (char *) "self",(char *) "enable", NULL
15225 };
15226
15227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
15228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15229 {
15230 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 {
15234 PyThreadState* __tstate = wxPyBeginAllowThreads();
15235 result = (bool)(arg1)->Enable(arg2);
15236
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15241 return resultobj;
15242 fail:
15243 return NULL;
15244 }
15245
15246
15247 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15248 PyObject *resultobj;
15249 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15250 PyObject * obj0 = 0 ;
15251 char *kwnames[] = {
15252 (char *) "self", NULL
15253 };
15254
15255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
15256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15257 {
15258 PyThreadState* __tstate = wxPyBeginAllowThreads();
15259 (arg1)->Toggle();
15260
15261 wxPyEndAllowThreads(__tstate);
15262 if (PyErr_Occurred()) SWIG_fail;
15263 }
15264 Py_INCREF(Py_None); resultobj = Py_None;
15265 return resultobj;
15266 fail:
15267 return NULL;
15268 }
15269
15270
15271 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15272 PyObject *resultobj;
15273 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15274 bool arg2 ;
15275 bool result;
15276 PyObject * obj0 = 0 ;
15277 PyObject * obj1 = 0 ;
15278 char *kwnames[] = {
15279 (char *) "self",(char *) "toggle", NULL
15280 };
15281
15282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
15283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15284 {
15285 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15286 if (PyErr_Occurred()) SWIG_fail;
15287 }
15288 {
15289 PyThreadState* __tstate = wxPyBeginAllowThreads();
15290 result = (bool)(arg1)->SetToggle(arg2);
15291
15292 wxPyEndAllowThreads(__tstate);
15293 if (PyErr_Occurred()) SWIG_fail;
15294 }
15295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15296 return resultobj;
15297 fail:
15298 return NULL;
15299 }
15300
15301
15302 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15303 PyObject *resultobj;
15304 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15305 wxString *arg2 = 0 ;
15306 bool result;
15307 bool temp2 = False ;
15308 PyObject * obj0 = 0 ;
15309 PyObject * obj1 = 0 ;
15310 char *kwnames[] = {
15311 (char *) "self",(char *) "help", NULL
15312 };
15313
15314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
15315 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15316 {
15317 arg2 = wxString_in_helper(obj1);
15318 if (arg2 == NULL) SWIG_fail;
15319 temp2 = True;
15320 }
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
15324
15325 wxPyEndAllowThreads(__tstate);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15329 {
15330 if (temp2)
15331 delete arg2;
15332 }
15333 return resultobj;
15334 fail:
15335 {
15336 if (temp2)
15337 delete arg2;
15338 }
15339 return NULL;
15340 }
15341
15342
15343 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15344 PyObject *resultobj;
15345 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15346 wxString *arg2 = 0 ;
15347 bool result;
15348 bool temp2 = False ;
15349 PyObject * obj0 = 0 ;
15350 PyObject * obj1 = 0 ;
15351 char *kwnames[] = {
15352 (char *) "self",(char *) "help", NULL
15353 };
15354
15355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
15356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15357 {
15358 arg2 = wxString_in_helper(obj1);
15359 if (arg2 == NULL) SWIG_fail;
15360 temp2 = True;
15361 }
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
15365
15366 wxPyEndAllowThreads(__tstate);
15367 if (PyErr_Occurred()) SWIG_fail;
15368 }
15369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15370 {
15371 if (temp2)
15372 delete arg2;
15373 }
15374 return resultobj;
15375 fail:
15376 {
15377 if (temp2)
15378 delete arg2;
15379 }
15380 return NULL;
15381 }
15382
15383
15384 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj;
15386 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15387 wxBitmap *arg2 = 0 ;
15388 PyObject * obj0 = 0 ;
15389 PyObject * obj1 = 0 ;
15390 char *kwnames[] = {
15391 (char *) "self",(char *) "bmp", NULL
15392 };
15393
15394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
15395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15396 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15397 if (arg2 == NULL) {
15398 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15399 }
15400 {
15401 PyThreadState* __tstate = wxPyBeginAllowThreads();
15402 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
15403
15404 wxPyEndAllowThreads(__tstate);
15405 if (PyErr_Occurred()) SWIG_fail;
15406 }
15407 Py_INCREF(Py_None); resultobj = Py_None;
15408 return resultobj;
15409 fail:
15410 return NULL;
15411 }
15412
15413
15414 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15415 PyObject *resultobj;
15416 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15417 wxBitmap *arg2 = 0 ;
15418 PyObject * obj0 = 0 ;
15419 PyObject * obj1 = 0 ;
15420 char *kwnames[] = {
15421 (char *) "self",(char *) "bmp", NULL
15422 };
15423
15424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
15425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15426 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15427 if (arg2 == NULL) {
15428 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15429 }
15430 {
15431 PyThreadState* __tstate = wxPyBeginAllowThreads();
15432 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
15433
15434 wxPyEndAllowThreads(__tstate);
15435 if (PyErr_Occurred()) SWIG_fail;
15436 }
15437 Py_INCREF(Py_None); resultobj = Py_None;
15438 return resultobj;
15439 fail:
15440 return NULL;
15441 }
15442
15443
15444 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15445 PyObject *resultobj;
15446 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15447 wxString *arg2 = 0 ;
15448 bool temp2 = False ;
15449 PyObject * obj0 = 0 ;
15450 PyObject * obj1 = 0 ;
15451 char *kwnames[] = {
15452 (char *) "self",(char *) "label", NULL
15453 };
15454
15455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
15456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15457 {
15458 arg2 = wxString_in_helper(obj1);
15459 if (arg2 == NULL) SWIG_fail;
15460 temp2 = True;
15461 }
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
15464 (arg1)->SetLabel((wxString const &)*arg2);
15465
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 Py_INCREF(Py_None); resultobj = Py_None;
15470 {
15471 if (temp2)
15472 delete arg2;
15473 }
15474 return resultobj;
15475 fail:
15476 {
15477 if (temp2)
15478 delete arg2;
15479 }
15480 return NULL;
15481 }
15482
15483
15484 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
15485 PyObject *resultobj;
15486 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15487 PyObject * obj0 = 0 ;
15488 char *kwnames[] = {
15489 (char *) "self", NULL
15490 };
15491
15492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
15493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15494 {
15495 PyThreadState* __tstate = wxPyBeginAllowThreads();
15496 (arg1)->Detach();
15497
15498 wxPyEndAllowThreads(__tstate);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 Py_INCREF(Py_None); resultobj = Py_None;
15502 return resultobj;
15503 fail:
15504 return NULL;
15505 }
15506
15507
15508 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
15509 PyObject *resultobj;
15510 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15511 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
15512 PyObject * obj0 = 0 ;
15513 PyObject * obj1 = 0 ;
15514 char *kwnames[] = {
15515 (char *) "self",(char *) "tbar", NULL
15516 };
15517
15518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
15519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15520 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15521 {
15522 PyThreadState* __tstate = wxPyBeginAllowThreads();
15523 (arg1)->Attach(arg2);
15524
15525 wxPyEndAllowThreads(__tstate);
15526 if (PyErr_Occurred()) SWIG_fail;
15527 }
15528 Py_INCREF(Py_None); resultobj = Py_None;
15529 return resultobj;
15530 fail:
15531 return NULL;
15532 }
15533
15534
15535 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15536 PyObject *resultobj;
15537 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15538 PyObject *result;
15539 PyObject * obj0 = 0 ;
15540 char *kwnames[] = {
15541 (char *) "self", NULL
15542 };
15543
15544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
15545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
15549
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 resultobj = result;
15554 return resultobj;
15555 fail:
15556 return NULL;
15557 }
15558
15559
15560 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15561 PyObject *resultobj;
15562 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15563 PyObject *arg2 = (PyObject *) 0 ;
15564 PyObject * obj0 = 0 ;
15565 PyObject * obj1 = 0 ;
15566 char *kwnames[] = {
15567 (char *) "self",(char *) "clientData", NULL
15568 };
15569
15570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
15571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15572 arg2 = obj1;
15573 {
15574 PyThreadState* __tstate = wxPyBeginAllowThreads();
15575 wxToolBarToolBase_SetClientData(arg1,arg2);
15576
15577 wxPyEndAllowThreads(__tstate);
15578 if (PyErr_Occurred()) SWIG_fail;
15579 }
15580 Py_INCREF(Py_None); resultobj = Py_None;
15581 return resultobj;
15582 fail:
15583 return NULL;
15584 }
15585
15586
15587 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
15588 PyObject *obj;
15589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15590 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
15591 Py_INCREF(obj);
15592 return Py_BuildValue((char *)"");
15593 }
15594 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
15595 PyObject *resultobj;
15596 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15597 int arg2 ;
15598 wxString *arg3 = 0 ;
15599 wxBitmap *arg4 = 0 ;
15600 wxBitmap const &arg5_defvalue = wxNullBitmap ;
15601 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
15602 int arg6 = (int) wxITEM_NORMAL ;
15603 wxString const &arg7_defvalue = wxPyEmptyString ;
15604 wxString *arg7 = (wxString *) &arg7_defvalue ;
15605 wxString const &arg8_defvalue = wxPyEmptyString ;
15606 wxString *arg8 = (wxString *) &arg8_defvalue ;
15607 PyObject *arg9 = (PyObject *) NULL ;
15608 wxToolBarToolBase *result;
15609 bool temp3 = False ;
15610 bool temp7 = False ;
15611 bool temp8 = False ;
15612 PyObject * obj0 = 0 ;
15613 PyObject * obj1 = 0 ;
15614 PyObject * obj2 = 0 ;
15615 PyObject * obj3 = 0 ;
15616 PyObject * obj4 = 0 ;
15617 PyObject * obj5 = 0 ;
15618 PyObject * obj6 = 0 ;
15619 PyObject * obj7 = 0 ;
15620 PyObject * obj8 = 0 ;
15621 char *kwnames[] = {
15622 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15623 };
15624
15625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
15626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15627 {
15628 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
15631 {
15632 arg3 = wxString_in_helper(obj2);
15633 if (arg3 == NULL) SWIG_fail;
15634 temp3 = True;
15635 }
15636 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15637 if (arg4 == NULL) {
15638 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15639 }
15640 if (obj4) {
15641 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15642 if (arg5 == NULL) {
15643 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15644 }
15645 }
15646 if (obj5) {
15647 {
15648 arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 }
15652 if (obj6) {
15653 {
15654 arg7 = wxString_in_helper(obj6);
15655 if (arg7 == NULL) SWIG_fail;
15656 temp7 = True;
15657 }
15658 }
15659 if (obj7) {
15660 {
15661 arg8 = wxString_in_helper(obj7);
15662 if (arg8 == NULL) SWIG_fail;
15663 temp8 = True;
15664 }
15665 }
15666 if (obj8) {
15667 arg9 = obj8;
15668 }
15669 {
15670 PyThreadState* __tstate = wxPyBeginAllowThreads();
15671 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
15672
15673 wxPyEndAllowThreads(__tstate);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 {
15677 resultobj = wxPyMake_wxObject(result);
15678 }
15679 {
15680 if (temp3)
15681 delete arg3;
15682 }
15683 {
15684 if (temp7)
15685 delete arg7;
15686 }
15687 {
15688 if (temp8)
15689 delete arg8;
15690 }
15691 return resultobj;
15692 fail:
15693 {
15694 if (temp3)
15695 delete arg3;
15696 }
15697 {
15698 if (temp7)
15699 delete arg7;
15700 }
15701 {
15702 if (temp8)
15703 delete arg8;
15704 }
15705 return NULL;
15706 }
15707
15708
15709 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
15710 PyObject *resultobj;
15711 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15712 size_t arg2 ;
15713 int arg3 ;
15714 wxString *arg4 = 0 ;
15715 wxBitmap *arg5 = 0 ;
15716 wxBitmap const &arg6_defvalue = wxNullBitmap ;
15717 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
15718 int arg7 = (int) wxITEM_NORMAL ;
15719 wxString const &arg8_defvalue = wxPyEmptyString ;
15720 wxString *arg8 = (wxString *) &arg8_defvalue ;
15721 wxString const &arg9_defvalue = wxPyEmptyString ;
15722 wxString *arg9 = (wxString *) &arg9_defvalue ;
15723 PyObject *arg10 = (PyObject *) NULL ;
15724 wxToolBarToolBase *result;
15725 bool temp4 = False ;
15726 bool temp8 = False ;
15727 bool temp9 = False ;
15728 PyObject * obj0 = 0 ;
15729 PyObject * obj1 = 0 ;
15730 PyObject * obj2 = 0 ;
15731 PyObject * obj3 = 0 ;
15732 PyObject * obj4 = 0 ;
15733 PyObject * obj5 = 0 ;
15734 PyObject * obj6 = 0 ;
15735 PyObject * obj7 = 0 ;
15736 PyObject * obj8 = 0 ;
15737 PyObject * obj9 = 0 ;
15738 char *kwnames[] = {
15739 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15740 };
15741
15742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
15743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15744 {
15745 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 {
15749 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 {
15753 arg4 = wxString_in_helper(obj3);
15754 if (arg4 == NULL) SWIG_fail;
15755 temp4 = True;
15756 }
15757 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15758 if (arg5 == NULL) {
15759 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15760 }
15761 if (obj5) {
15762 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15763 if (arg6 == NULL) {
15764 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15765 }
15766 }
15767 if (obj6) {
15768 {
15769 arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6);
15770 if (PyErr_Occurred()) SWIG_fail;
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 {
15782 arg9 = wxString_in_helper(obj8);
15783 if (arg9 == NULL) SWIG_fail;
15784 temp9 = True;
15785 }
15786 }
15787 if (obj9) {
15788 arg10 = obj9;
15789 }
15790 {
15791 PyThreadState* __tstate = wxPyBeginAllowThreads();
15792 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);
15793
15794 wxPyEndAllowThreads(__tstate);
15795 if (PyErr_Occurred()) SWIG_fail;
15796 }
15797 {
15798 resultobj = wxPyMake_wxObject(result);
15799 }
15800 {
15801 if (temp4)
15802 delete arg4;
15803 }
15804 {
15805 if (temp8)
15806 delete arg8;
15807 }
15808 {
15809 if (temp9)
15810 delete arg9;
15811 }
15812 return resultobj;
15813 fail:
15814 {
15815 if (temp4)
15816 delete arg4;
15817 }
15818 {
15819 if (temp8)
15820 delete arg8;
15821 }
15822 {
15823 if (temp9)
15824 delete arg9;
15825 }
15826 return NULL;
15827 }
15828
15829
15830 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj;
15832 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15833 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
15834 wxToolBarToolBase *result;
15835 PyObject * obj0 = 0 ;
15836 PyObject * obj1 = 0 ;
15837 char *kwnames[] = {
15838 (char *) "self",(char *) "tool", NULL
15839 };
15840
15841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
15842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15843 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15844 {
15845 PyThreadState* __tstate = wxPyBeginAllowThreads();
15846 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
15847
15848 wxPyEndAllowThreads(__tstate);
15849 if (PyErr_Occurred()) SWIG_fail;
15850 }
15851 {
15852 resultobj = wxPyMake_wxObject(result);
15853 }
15854 return resultobj;
15855 fail:
15856 return NULL;
15857 }
15858
15859
15860 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
15861 PyObject *resultobj;
15862 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15863 size_t arg2 ;
15864 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
15865 wxToolBarToolBase *result;
15866 PyObject * obj0 = 0 ;
15867 PyObject * obj1 = 0 ;
15868 PyObject * obj2 = 0 ;
15869 char *kwnames[] = {
15870 (char *) "self",(char *) "pos",(char *) "tool", NULL
15871 };
15872
15873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
15874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15875 {
15876 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
15877 if (PyErr_Occurred()) SWIG_fail;
15878 }
15879 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15880 {
15881 PyThreadState* __tstate = wxPyBeginAllowThreads();
15882 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
15883
15884 wxPyEndAllowThreads(__tstate);
15885 if (PyErr_Occurred()) SWIG_fail;
15886 }
15887 {
15888 resultobj = wxPyMake_wxObject(result);
15889 }
15890 return resultobj;
15891 fail:
15892 return NULL;
15893 }
15894
15895
15896 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15897 PyObject *resultobj;
15898 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15899 wxControl *arg2 = (wxControl *) 0 ;
15900 wxToolBarToolBase *result;
15901 PyObject * obj0 = 0 ;
15902 PyObject * obj1 = 0 ;
15903 char *kwnames[] = {
15904 (char *) "self",(char *) "control", NULL
15905 };
15906
15907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
15908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15909 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15910 {
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
15913
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 {
15918 resultobj = wxPyMake_wxObject(result);
15919 }
15920 return resultobj;
15921 fail:
15922 return NULL;
15923 }
15924
15925
15926 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj;
15928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15929 size_t arg2 ;
15930 wxControl *arg3 = (wxControl *) 0 ;
15931 wxToolBarToolBase *result;
15932 PyObject * obj0 = 0 ;
15933 PyObject * obj1 = 0 ;
15934 PyObject * obj2 = 0 ;
15935 char *kwnames[] = {
15936 (char *) "self",(char *) "pos",(char *) "control", NULL
15937 };
15938
15939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
15940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15941 {
15942 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15946 {
15947 PyThreadState* __tstate = wxPyBeginAllowThreads();
15948 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
15949
15950 wxPyEndAllowThreads(__tstate);
15951 if (PyErr_Occurred()) SWIG_fail;
15952 }
15953 {
15954 resultobj = wxPyMake_wxObject(result);
15955 }
15956 return resultobj;
15957 fail:
15958 return NULL;
15959 }
15960
15961
15962 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15963 PyObject *resultobj;
15964 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15965 int arg2 ;
15966 wxControl *result;
15967 PyObject * obj0 = 0 ;
15968 PyObject * obj1 = 0 ;
15969 char *kwnames[] = {
15970 (char *) "self",(char *) "id", NULL
15971 };
15972
15973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
15974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15975 {
15976 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15977 if (PyErr_Occurred()) SWIG_fail;
15978 }
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 result = (wxControl *)(arg1)->FindControl(arg2);
15982
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 {
15987 resultobj = wxPyMake_wxObject(result);
15988 }
15989 return resultobj;
15990 fail:
15991 return NULL;
15992 }
15993
15994
15995 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj;
15997 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15998 wxToolBarToolBase *result;
15999 PyObject * obj0 = 0 ;
16000 char *kwnames[] = {
16001 (char *) "self", NULL
16002 };
16003
16004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
16005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16006 {
16007 PyThreadState* __tstate = wxPyBeginAllowThreads();
16008 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
16009
16010 wxPyEndAllowThreads(__tstate);
16011 if (PyErr_Occurred()) SWIG_fail;
16012 }
16013 {
16014 resultobj = wxPyMake_wxObject(result);
16015 }
16016 return resultobj;
16017 fail:
16018 return NULL;
16019 }
16020
16021
16022 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16023 PyObject *resultobj;
16024 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16025 size_t arg2 ;
16026 wxToolBarToolBase *result;
16027 PyObject * obj0 = 0 ;
16028 PyObject * obj1 = 0 ;
16029 char *kwnames[] = {
16030 (char *) "self",(char *) "pos", NULL
16031 };
16032
16033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
16034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16035 {
16036 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
16037 if (PyErr_Occurred()) SWIG_fail;
16038 }
16039 {
16040 PyThreadState* __tstate = wxPyBeginAllowThreads();
16041 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
16042
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 {
16047 resultobj = wxPyMake_wxObject(result);
16048 }
16049 return resultobj;
16050 fail:
16051 return NULL;
16052 }
16053
16054
16055 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj;
16057 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16058 int arg2 ;
16059 wxToolBarToolBase *result;
16060 PyObject * obj0 = 0 ;
16061 PyObject * obj1 = 0 ;
16062 char *kwnames[] = {
16063 (char *) "self",(char *) "id", NULL
16064 };
16065
16066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
16067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16068 {
16069 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 }
16072 {
16073 PyThreadState* __tstate = wxPyBeginAllowThreads();
16074 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
16075
16076 wxPyEndAllowThreads(__tstate);
16077 if (PyErr_Occurred()) SWIG_fail;
16078 }
16079 {
16080 resultobj = wxPyMake_wxObject(result);
16081 }
16082 return resultobj;
16083 fail:
16084 return NULL;
16085 }
16086
16087
16088 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16089 PyObject *resultobj;
16090 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16091 size_t arg2 ;
16092 bool result;
16093 PyObject * obj0 = 0 ;
16094 PyObject * obj1 = 0 ;
16095 char *kwnames[] = {
16096 (char *) "self",(char *) "pos", NULL
16097 };
16098
16099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
16100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16101 {
16102 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
16103 if (PyErr_Occurred()) SWIG_fail;
16104 }
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 result = (bool)(arg1)->DeleteToolByPos(arg2);
16108
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16113 return resultobj;
16114 fail:
16115 return NULL;
16116 }
16117
16118
16119 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16120 PyObject *resultobj;
16121 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16122 int arg2 ;
16123 bool result;
16124 PyObject * obj0 = 0 ;
16125 PyObject * obj1 = 0 ;
16126 char *kwnames[] = {
16127 (char *) "self",(char *) "id", NULL
16128 };
16129
16130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
16131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16132 {
16133 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 }
16136 {
16137 PyThreadState* __tstate = wxPyBeginAllowThreads();
16138 result = (bool)(arg1)->DeleteTool(arg2);
16139
16140 wxPyEndAllowThreads(__tstate);
16141 if (PyErr_Occurred()) SWIG_fail;
16142 }
16143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16144 return resultobj;
16145 fail:
16146 return NULL;
16147 }
16148
16149
16150 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
16151 PyObject *resultobj;
16152 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16153 PyObject * obj0 = 0 ;
16154 char *kwnames[] = {
16155 (char *) "self", NULL
16156 };
16157
16158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
16159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 (arg1)->ClearTools();
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 Py_INCREF(Py_None); resultobj = Py_None;
16168 return resultobj;
16169 fail:
16170 return NULL;
16171 }
16172
16173
16174 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
16175 PyObject *resultobj;
16176 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16177 bool result;
16178 PyObject * obj0 = 0 ;
16179 char *kwnames[] = {
16180 (char *) "self", NULL
16181 };
16182
16183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
16184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16185 {
16186 PyThreadState* __tstate = wxPyBeginAllowThreads();
16187 result = (bool)(arg1)->Realize();
16188
16189 wxPyEndAllowThreads(__tstate);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 }
16192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16200 PyObject *resultobj;
16201 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16202 int arg2 ;
16203 bool arg3 ;
16204 PyObject * obj0 = 0 ;
16205 PyObject * obj1 = 0 ;
16206 PyObject * obj2 = 0 ;
16207 char *kwnames[] = {
16208 (char *) "self",(char *) "id",(char *) "enable", NULL
16209 };
16210
16211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16213 {
16214 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 {
16218 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
16219 if (PyErr_Occurred()) SWIG_fail;
16220 }
16221 {
16222 PyThreadState* __tstate = wxPyBeginAllowThreads();
16223 (arg1)->EnableTool(arg2,arg3);
16224
16225 wxPyEndAllowThreads(__tstate);
16226 if (PyErr_Occurred()) SWIG_fail;
16227 }
16228 Py_INCREF(Py_None); resultobj = Py_None;
16229 return resultobj;
16230 fail:
16231 return NULL;
16232 }
16233
16234
16235 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16236 PyObject *resultobj;
16237 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16238 int arg2 ;
16239 bool arg3 ;
16240 PyObject * obj0 = 0 ;
16241 PyObject * obj1 = 0 ;
16242 PyObject * obj2 = 0 ;
16243 char *kwnames[] = {
16244 (char *) "self",(char *) "id",(char *) "toggle", NULL
16245 };
16246
16247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16249 {
16250 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 {
16254 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 (arg1)->ToggleTool(arg2,arg3);
16260
16261 wxPyEndAllowThreads(__tstate);
16262 if (PyErr_Occurred()) SWIG_fail;
16263 }
16264 Py_INCREF(Py_None); resultobj = Py_None;
16265 return resultobj;
16266 fail:
16267 return NULL;
16268 }
16269
16270
16271 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj;
16273 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16274 int arg2 ;
16275 bool arg3 ;
16276 PyObject * obj0 = 0 ;
16277 PyObject * obj1 = 0 ;
16278 PyObject * obj2 = 0 ;
16279 char *kwnames[] = {
16280 (char *) "self",(char *) "id",(char *) "toggle", NULL
16281 };
16282
16283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
16284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16285 {
16286 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 {
16290 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
16291 if (PyErr_Occurred()) SWIG_fail;
16292 }
16293 {
16294 PyThreadState* __tstate = wxPyBeginAllowThreads();
16295 (arg1)->SetToggle(arg2,arg3);
16296
16297 wxPyEndAllowThreads(__tstate);
16298 if (PyErr_Occurred()) SWIG_fail;
16299 }
16300 Py_INCREF(Py_None); resultobj = Py_None;
16301 return resultobj;
16302 fail:
16303 return NULL;
16304 }
16305
16306
16307 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16308 PyObject *resultobj;
16309 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16310 int arg2 ;
16311 PyObject *result;
16312 PyObject * obj0 = 0 ;
16313 PyObject * obj1 = 0 ;
16314 char *kwnames[] = {
16315 (char *) "self",(char *) "id", NULL
16316 };
16317
16318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
16319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16320 {
16321 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16322 if (PyErr_Occurred()) SWIG_fail;
16323 }
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
16327
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 resultobj = result;
16332 return resultobj;
16333 fail:
16334 return NULL;
16335 }
16336
16337
16338 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16339 PyObject *resultobj;
16340 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16341 int arg2 ;
16342 PyObject *arg3 = (PyObject *) 0 ;
16343 PyObject * obj0 = 0 ;
16344 PyObject * obj1 = 0 ;
16345 PyObject * obj2 = 0 ;
16346 char *kwnames[] = {
16347 (char *) "self",(char *) "id",(char *) "clientData", NULL
16348 };
16349
16350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
16351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16352 {
16353 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
16356 arg3 = obj2;
16357 {
16358 PyThreadState* __tstate = wxPyBeginAllowThreads();
16359 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
16360
16361 wxPyEndAllowThreads(__tstate);
16362 if (PyErr_Occurred()) SWIG_fail;
16363 }
16364 Py_INCREF(Py_None); resultobj = Py_None;
16365 return resultobj;
16366 fail:
16367 return NULL;
16368 }
16369
16370
16371 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16372 PyObject *resultobj;
16373 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16374 int arg2 ;
16375 int result;
16376 PyObject * obj0 = 0 ;
16377 PyObject * obj1 = 0 ;
16378 char *kwnames[] = {
16379 (char *) "self",(char *) "id", NULL
16380 };
16381
16382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
16383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16384 {
16385 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
16391
16392 wxPyEndAllowThreads(__tstate);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 resultobj = SWIG_PyObj_FromInt((int)result);
16396 return resultobj;
16397 fail:
16398 return NULL;
16399 }
16400
16401
16402 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj;
16404 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16405 int arg2 ;
16406 bool result;
16407 PyObject * obj0 = 0 ;
16408 PyObject * obj1 = 0 ;
16409 char *kwnames[] = {
16410 (char *) "self",(char *) "id", NULL
16411 };
16412
16413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
16414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16415 {
16416 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16417 if (PyErr_Occurred()) SWIG_fail;
16418 }
16419 {
16420 PyThreadState* __tstate = wxPyBeginAllowThreads();
16421 result = (bool)(arg1)->GetToolState(arg2);
16422
16423 wxPyEndAllowThreads(__tstate);
16424 if (PyErr_Occurred()) SWIG_fail;
16425 }
16426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16427 return resultobj;
16428 fail:
16429 return NULL;
16430 }
16431
16432
16433 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
16434 PyObject *resultobj;
16435 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16436 int arg2 ;
16437 bool result;
16438 PyObject * obj0 = 0 ;
16439 PyObject * obj1 = 0 ;
16440 char *kwnames[] = {
16441 (char *) "self",(char *) "id", NULL
16442 };
16443
16444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
16445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16446 {
16447 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16448 if (PyErr_Occurred()) SWIG_fail;
16449 }
16450 {
16451 PyThreadState* __tstate = wxPyBeginAllowThreads();
16452 result = (bool)(arg1)->GetToolEnabled(arg2);
16453
16454 wxPyEndAllowThreads(__tstate);
16455 if (PyErr_Occurred()) SWIG_fail;
16456 }
16457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16458 return resultobj;
16459 fail:
16460 return NULL;
16461 }
16462
16463
16464 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16465 PyObject *resultobj;
16466 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16467 int arg2 ;
16468 wxString *arg3 = 0 ;
16469 bool temp3 = False ;
16470 PyObject * obj0 = 0 ;
16471 PyObject * obj1 = 0 ;
16472 PyObject * obj2 = 0 ;
16473 char *kwnames[] = {
16474 (char *) "self",(char *) "id",(char *) "helpString", NULL
16475 };
16476
16477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16479 {
16480 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 {
16484 arg3 = wxString_in_helper(obj2);
16485 if (arg3 == NULL) SWIG_fail;
16486 temp3 = True;
16487 }
16488 {
16489 PyThreadState* __tstate = wxPyBeginAllowThreads();
16490 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
16491
16492 wxPyEndAllowThreads(__tstate);
16493 if (PyErr_Occurred()) SWIG_fail;
16494 }
16495 Py_INCREF(Py_None); resultobj = Py_None;
16496 {
16497 if (temp3)
16498 delete arg3;
16499 }
16500 return resultobj;
16501 fail:
16502 {
16503 if (temp3)
16504 delete arg3;
16505 }
16506 return NULL;
16507 }
16508
16509
16510 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16511 PyObject *resultobj;
16512 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16513 int arg2 ;
16514 wxString result;
16515 PyObject * obj0 = 0 ;
16516 PyObject * obj1 = 0 ;
16517 char *kwnames[] = {
16518 (char *) "self",(char *) "id", NULL
16519 };
16520
16521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
16522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16523 {
16524 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 {
16528 PyThreadState* __tstate = wxPyBeginAllowThreads();
16529 result = (arg1)->GetToolShortHelp(arg2);
16530
16531 wxPyEndAllowThreads(__tstate);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 {
16535 #if wxUSE_UNICODE
16536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16537 #else
16538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16539 #endif
16540 }
16541 return resultobj;
16542 fail:
16543 return NULL;
16544 }
16545
16546
16547 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16548 PyObject *resultobj;
16549 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16550 int arg2 ;
16551 wxString *arg3 = 0 ;
16552 bool temp3 = False ;
16553 PyObject * obj0 = 0 ;
16554 PyObject * obj1 = 0 ;
16555 PyObject * obj2 = 0 ;
16556 char *kwnames[] = {
16557 (char *) "self",(char *) "id",(char *) "helpString", NULL
16558 };
16559
16560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16562 {
16563 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16564 if (PyErr_Occurred()) SWIG_fail;
16565 }
16566 {
16567 arg3 = wxString_in_helper(obj2);
16568 if (arg3 == NULL) SWIG_fail;
16569 temp3 = True;
16570 }
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
16574
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 Py_INCREF(Py_None); resultobj = Py_None;
16579 {
16580 if (temp3)
16581 delete arg3;
16582 }
16583 return resultobj;
16584 fail:
16585 {
16586 if (temp3)
16587 delete arg3;
16588 }
16589 return NULL;
16590 }
16591
16592
16593 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16594 PyObject *resultobj;
16595 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16596 int arg2 ;
16597 wxString result;
16598 PyObject * obj0 = 0 ;
16599 PyObject * obj1 = 0 ;
16600 char *kwnames[] = {
16601 (char *) "self",(char *) "id", NULL
16602 };
16603
16604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
16605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16606 {
16607 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16608 if (PyErr_Occurred()) SWIG_fail;
16609 }
16610 {
16611 PyThreadState* __tstate = wxPyBeginAllowThreads();
16612 result = (arg1)->GetToolLongHelp(arg2);
16613
16614 wxPyEndAllowThreads(__tstate);
16615 if (PyErr_Occurred()) SWIG_fail;
16616 }
16617 {
16618 #if wxUSE_UNICODE
16619 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16620 #else
16621 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16622 #endif
16623 }
16624 return resultobj;
16625 fail:
16626 return NULL;
16627 }
16628
16629
16630 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
16631 PyObject *resultobj;
16632 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16633 int arg2 ;
16634 int arg3 ;
16635 PyObject * obj0 = 0 ;
16636 PyObject * obj1 = 0 ;
16637 PyObject * obj2 = 0 ;
16638 char *kwnames[] = {
16639 (char *) "self",(char *) "x",(char *) "y", NULL
16640 };
16641
16642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
16643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16644 {
16645 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16646 if (PyErr_Occurred()) SWIG_fail;
16647 }
16648 {
16649 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16650 if (PyErr_Occurred()) SWIG_fail;
16651 }
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 (arg1)->SetMargins(arg2,arg3);
16655
16656 wxPyEndAllowThreads(__tstate);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 }
16659 Py_INCREF(Py_None); resultobj = Py_None;
16660 return resultobj;
16661 fail:
16662 return NULL;
16663 }
16664
16665
16666 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16667 PyObject *resultobj;
16668 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16669 wxSize *arg2 = 0 ;
16670 wxSize temp2 ;
16671 PyObject * obj0 = 0 ;
16672 PyObject * obj1 = 0 ;
16673 char *kwnames[] = {
16674 (char *) "self",(char *) "size", NULL
16675 };
16676
16677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
16678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16679 {
16680 arg2 = &temp2;
16681 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16682 }
16683 {
16684 PyThreadState* __tstate = wxPyBeginAllowThreads();
16685 (arg1)->SetMargins((wxSize const &)*arg2);
16686
16687 wxPyEndAllowThreads(__tstate);
16688 if (PyErr_Occurred()) SWIG_fail;
16689 }
16690 Py_INCREF(Py_None); resultobj = Py_None;
16691 return resultobj;
16692 fail:
16693 return NULL;
16694 }
16695
16696
16697 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
16698 PyObject *resultobj;
16699 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16700 int arg2 ;
16701 PyObject * obj0 = 0 ;
16702 PyObject * obj1 = 0 ;
16703 char *kwnames[] = {
16704 (char *) "self",(char *) "packing", NULL
16705 };
16706
16707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
16708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16709 {
16710 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16711 if (PyErr_Occurred()) SWIG_fail;
16712 }
16713 {
16714 PyThreadState* __tstate = wxPyBeginAllowThreads();
16715 (arg1)->SetToolPacking(arg2);
16716
16717 wxPyEndAllowThreads(__tstate);
16718 if (PyErr_Occurred()) SWIG_fail;
16719 }
16720 Py_INCREF(Py_None); resultobj = Py_None;
16721 return resultobj;
16722 fail:
16723 return NULL;
16724 }
16725
16726
16727 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
16728 PyObject *resultobj;
16729 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16730 int arg2 ;
16731 PyObject * obj0 = 0 ;
16732 PyObject * obj1 = 0 ;
16733 char *kwnames[] = {
16734 (char *) "self",(char *) "separation", NULL
16735 };
16736
16737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
16738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16739 {
16740 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16741 if (PyErr_Occurred()) SWIG_fail;
16742 }
16743 {
16744 PyThreadState* __tstate = wxPyBeginAllowThreads();
16745 (arg1)->SetToolSeparation(arg2);
16746
16747 wxPyEndAllowThreads(__tstate);
16748 if (PyErr_Occurred()) SWIG_fail;
16749 }
16750 Py_INCREF(Py_None); resultobj = Py_None;
16751 return resultobj;
16752 fail:
16753 return NULL;
16754 }
16755
16756
16757 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16758 PyObject *resultobj;
16759 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16760 wxSize result;
16761 PyObject * obj0 = 0 ;
16762 char *kwnames[] = {
16763 (char *) "self", NULL
16764 };
16765
16766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
16767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16768 {
16769 PyThreadState* __tstate = wxPyBeginAllowThreads();
16770 result = (arg1)->GetToolMargins();
16771
16772 wxPyEndAllowThreads(__tstate);
16773 if (PyErr_Occurred()) SWIG_fail;
16774 }
16775 {
16776 wxSize * resultptr;
16777 resultptr = new wxSize((wxSize &) result);
16778 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
16779 }
16780 return resultobj;
16781 fail:
16782 return NULL;
16783 }
16784
16785
16786 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16787 PyObject *resultobj;
16788 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16789 wxSize result;
16790 PyObject * obj0 = 0 ;
16791 char *kwnames[] = {
16792 (char *) "self", NULL
16793 };
16794
16795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
16796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16797 {
16798 PyThreadState* __tstate = wxPyBeginAllowThreads();
16799 result = (arg1)->GetMargins();
16800
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 {
16805 wxSize * resultptr;
16806 resultptr = new wxSize((wxSize &) result);
16807 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
16808 }
16809 return resultobj;
16810 fail:
16811 return NULL;
16812 }
16813
16814
16815 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
16816 PyObject *resultobj;
16817 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16818 int result;
16819 PyObject * obj0 = 0 ;
16820 char *kwnames[] = {
16821 (char *) "self", NULL
16822 };
16823
16824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
16825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16826 {
16827 PyThreadState* __tstate = wxPyBeginAllowThreads();
16828 result = (int)(arg1)->GetToolPacking();
16829
16830 wxPyEndAllowThreads(__tstate);
16831 if (PyErr_Occurred()) SWIG_fail;
16832 }
16833 resultobj = SWIG_PyObj_FromInt((int)result);
16834 return resultobj;
16835 fail:
16836 return NULL;
16837 }
16838
16839
16840 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
16841 PyObject *resultobj;
16842 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16843 int result;
16844 PyObject * obj0 = 0 ;
16845 char *kwnames[] = {
16846 (char *) "self", NULL
16847 };
16848
16849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
16850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 result = (int)(arg1)->GetToolSeparation();
16854
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 resultobj = SWIG_PyObj_FromInt((int)result);
16859 return resultobj;
16860 fail:
16861 return NULL;
16862 }
16863
16864
16865 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
16866 PyObject *resultobj;
16867 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16868 int arg2 ;
16869 PyObject * obj0 = 0 ;
16870 PyObject * obj1 = 0 ;
16871 char *kwnames[] = {
16872 (char *) "self",(char *) "nRows", NULL
16873 };
16874
16875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
16876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16877 {
16878 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16879 if (PyErr_Occurred()) SWIG_fail;
16880 }
16881 {
16882 PyThreadState* __tstate = wxPyBeginAllowThreads();
16883 (arg1)->SetRows(arg2);
16884
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 Py_INCREF(Py_None); resultobj = Py_None;
16889 return resultobj;
16890 fail:
16891 return NULL;
16892 }
16893
16894
16895 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
16896 PyObject *resultobj;
16897 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16898 int arg2 ;
16899 int arg3 ;
16900 PyObject * obj0 = 0 ;
16901 PyObject * obj1 = 0 ;
16902 PyObject * obj2 = 0 ;
16903 char *kwnames[] = {
16904 (char *) "self",(char *) "rows",(char *) "cols", NULL
16905 };
16906
16907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
16908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16909 {
16910 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 }
16913 {
16914 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16915 if (PyErr_Occurred()) SWIG_fail;
16916 }
16917 {
16918 PyThreadState* __tstate = wxPyBeginAllowThreads();
16919 (arg1)->SetMaxRowsCols(arg2,arg3);
16920
16921 wxPyEndAllowThreads(__tstate);
16922 if (PyErr_Occurred()) SWIG_fail;
16923 }
16924 Py_INCREF(Py_None); resultobj = Py_None;
16925 return resultobj;
16926 fail:
16927 return NULL;
16928 }
16929
16930
16931 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
16932 PyObject *resultobj;
16933 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16934 int result;
16935 PyObject * obj0 = 0 ;
16936 char *kwnames[] = {
16937 (char *) "self", NULL
16938 };
16939
16940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
16941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16942 {
16943 PyThreadState* __tstate = wxPyBeginAllowThreads();
16944 result = (int)(arg1)->GetMaxRows();
16945
16946 wxPyEndAllowThreads(__tstate);
16947 if (PyErr_Occurred()) SWIG_fail;
16948 }
16949 resultobj = SWIG_PyObj_FromInt((int)result);
16950 return resultobj;
16951 fail:
16952 return NULL;
16953 }
16954
16955
16956 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
16957 PyObject *resultobj;
16958 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16959 int result;
16960 PyObject * obj0 = 0 ;
16961 char *kwnames[] = {
16962 (char *) "self", NULL
16963 };
16964
16965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
16966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16967 {
16968 PyThreadState* __tstate = wxPyBeginAllowThreads();
16969 result = (int)(arg1)->GetMaxCols();
16970
16971 wxPyEndAllowThreads(__tstate);
16972 if (PyErr_Occurred()) SWIG_fail;
16973 }
16974 resultobj = SWIG_PyObj_FromInt((int)result);
16975 return resultobj;
16976 fail:
16977 return NULL;
16978 }
16979
16980
16981 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16982 PyObject *resultobj;
16983 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16984 wxSize *arg2 = 0 ;
16985 wxSize temp2 ;
16986 PyObject * obj0 = 0 ;
16987 PyObject * obj1 = 0 ;
16988 char *kwnames[] = {
16989 (char *) "self",(char *) "size", NULL
16990 };
16991
16992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
16993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16994 {
16995 arg2 = &temp2;
16996 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16997 }
16998 {
16999 PyThreadState* __tstate = wxPyBeginAllowThreads();
17000 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
17001
17002 wxPyEndAllowThreads(__tstate);
17003 if (PyErr_Occurred()) SWIG_fail;
17004 }
17005 Py_INCREF(Py_None); resultobj = Py_None;
17006 return resultobj;
17007 fail:
17008 return NULL;
17009 }
17010
17011
17012 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17013 PyObject *resultobj;
17014 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17015 wxSize result;
17016 PyObject * obj0 = 0 ;
17017 char *kwnames[] = {
17018 (char *) "self", NULL
17019 };
17020
17021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
17022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17023 {
17024 PyThreadState* __tstate = wxPyBeginAllowThreads();
17025 result = (arg1)->GetToolBitmapSize();
17026
17027 wxPyEndAllowThreads(__tstate);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
17031 wxSize * resultptr;
17032 resultptr = new wxSize((wxSize &) result);
17033 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
17034 }
17035 return resultobj;
17036 fail:
17037 return NULL;
17038 }
17039
17040
17041 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17042 PyObject *resultobj;
17043 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17044 wxSize result;
17045 PyObject * obj0 = 0 ;
17046 char *kwnames[] = {
17047 (char *) "self", NULL
17048 };
17049
17050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
17051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17052 {
17053 PyThreadState* __tstate = wxPyBeginAllowThreads();
17054 result = (arg1)->GetToolSize();
17055
17056 wxPyEndAllowThreads(__tstate);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 }
17059 {
17060 wxSize * resultptr;
17061 resultptr = new wxSize((wxSize &) result);
17062 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
17063 }
17064 return resultobj;
17065 fail:
17066 return NULL;
17067 }
17068
17069
17070 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17071 PyObject *resultobj;
17072 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17073 int arg2 ;
17074 int arg3 ;
17075 wxToolBarToolBase *result;
17076 PyObject * obj0 = 0 ;
17077 PyObject * obj1 = 0 ;
17078 PyObject * obj2 = 0 ;
17079 char *kwnames[] = {
17080 (char *) "self",(char *) "x",(char *) "y", NULL
17081 };
17082
17083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17085 {
17086 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 {
17090 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17091 if (PyErr_Occurred()) SWIG_fail;
17092 }
17093 {
17094 PyThreadState* __tstate = wxPyBeginAllowThreads();
17095 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17096
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 {
17101 resultobj = wxPyMake_wxObject(result);
17102 }
17103 return resultobj;
17104 fail:
17105 return NULL;
17106 }
17107
17108
17109 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
17110 PyObject *resultobj;
17111 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17112 int arg2 ;
17113 wxToolBarToolBase *result;
17114 PyObject * obj0 = 0 ;
17115 PyObject * obj1 = 0 ;
17116 char *kwnames[] = {
17117 (char *) "self",(char *) "toolid", NULL
17118 };
17119
17120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
17121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17122 {
17123 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
17126 {
17127 PyThreadState* __tstate = wxPyBeginAllowThreads();
17128 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
17129
17130 wxPyEndAllowThreads(__tstate);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 }
17133 {
17134 resultobj = wxPyMake_wxObject(result);
17135 }
17136 return resultobj;
17137 fail:
17138 return NULL;
17139 }
17140
17141
17142 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
17143 PyObject *resultobj;
17144 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17145 bool result;
17146 PyObject * obj0 = 0 ;
17147 char *kwnames[] = {
17148 (char *) "self", NULL
17149 };
17150
17151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
17152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17153 {
17154 PyThreadState* __tstate = wxPyBeginAllowThreads();
17155 result = (bool)(arg1)->IsVertical();
17156
17157 wxPyEndAllowThreads(__tstate);
17158 if (PyErr_Occurred()) SWIG_fail;
17159 }
17160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17161 return resultobj;
17162 fail:
17163 return NULL;
17164 }
17165
17166
17167 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
17168 PyObject *obj;
17169 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17170 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
17171 Py_INCREF(obj);
17172 return Py_BuildValue((char *)"");
17173 }
17174 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17175 PyObject *resultobj;
17176 wxWindow *arg1 = (wxWindow *) 0 ;
17177 int arg2 ;
17178 wxPoint const &arg3_defvalue = wxDefaultPosition ;
17179 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
17180 wxSize const &arg4_defvalue = wxDefaultSize ;
17181 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
17182 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17183 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
17184 wxString *arg6 = (wxString *) &arg6_defvalue ;
17185 wxToolBar *result;
17186 wxPoint temp3 ;
17187 wxSize temp4 ;
17188 bool temp6 = False ;
17189 PyObject * obj0 = 0 ;
17190 PyObject * obj1 = 0 ;
17191 PyObject * obj2 = 0 ;
17192 PyObject * obj3 = 0 ;
17193 PyObject * obj4 = 0 ;
17194 PyObject * obj5 = 0 ;
17195 char *kwnames[] = {
17196 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17197 };
17198
17199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17201 {
17202 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17203 if (PyErr_Occurred()) SWIG_fail;
17204 }
17205 if (obj2) {
17206 {
17207 arg3 = &temp3;
17208 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17209 }
17210 }
17211 if (obj3) {
17212 {
17213 arg4 = &temp4;
17214 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
17215 }
17216 }
17217 if (obj4) {
17218 {
17219 arg5 = (long) SWIG_PyObj_AsLong(obj4);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 }
17223 if (obj5) {
17224 {
17225 arg6 = wxString_in_helper(obj5);
17226 if (arg6 == NULL) SWIG_fail;
17227 temp6 = True;
17228 }
17229 }
17230 {
17231 PyThreadState* __tstate = wxPyBeginAllowThreads();
17232 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
17233
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 {
17238 resultobj = wxPyMake_wxObject(result);
17239 }
17240 {
17241 if (temp6)
17242 delete arg6;
17243 }
17244 return resultobj;
17245 fail:
17246 {
17247 if (temp6)
17248 delete arg6;
17249 }
17250 return NULL;
17251 }
17252
17253
17254 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17255 PyObject *resultobj;
17256 wxToolBar *result;
17257 char *kwnames[] = {
17258 NULL
17259 };
17260
17261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
17262 {
17263 PyThreadState* __tstate = wxPyBeginAllowThreads();
17264 result = (wxToolBar *)new wxToolBar();
17265
17266 wxPyEndAllowThreads(__tstate);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 }
17269 {
17270 resultobj = wxPyMake_wxObject(result);
17271 }
17272 return resultobj;
17273 fail:
17274 return NULL;
17275 }
17276
17277
17278 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
17279 PyObject *resultobj;
17280 wxToolBar *arg1 = (wxToolBar *) 0 ;
17281 wxWindow *arg2 = (wxWindow *) 0 ;
17282 int arg3 ;
17283 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17284 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17285 wxSize const &arg5_defvalue = wxDefaultSize ;
17286 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17287 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17288 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
17289 wxString *arg7 = (wxString *) &arg7_defvalue ;
17290 bool result;
17291 wxPoint temp4 ;
17292 wxSize temp5 ;
17293 bool temp7 = False ;
17294 PyObject * obj0 = 0 ;
17295 PyObject * obj1 = 0 ;
17296 PyObject * obj2 = 0 ;
17297 PyObject * obj3 = 0 ;
17298 PyObject * obj4 = 0 ;
17299 PyObject * obj5 = 0 ;
17300 PyObject * obj6 = 0 ;
17301 char *kwnames[] = {
17302 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17303 };
17304
17305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17307 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17308 {
17309 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 if (obj3) {
17313 {
17314 arg4 = &temp4;
17315 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17316 }
17317 }
17318 if (obj4) {
17319 {
17320 arg5 = &temp5;
17321 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17322 }
17323 }
17324 if (obj5) {
17325 {
17326 arg6 = (long) SWIG_PyObj_AsLong(obj5);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 }
17330 if (obj6) {
17331 {
17332 arg7 = wxString_in_helper(obj6);
17333 if (arg7 == NULL) SWIG_fail;
17334 temp7 = True;
17335 }
17336 }
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
17340
17341 wxPyEndAllowThreads(__tstate);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 }
17344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17345 {
17346 if (temp7)
17347 delete arg7;
17348 }
17349 return resultobj;
17350 fail:
17351 {
17352 if (temp7)
17353 delete arg7;
17354 }
17355 return NULL;
17356 }
17357
17358
17359 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17360 PyObject *resultobj;
17361 wxToolBar *arg1 = (wxToolBar *) 0 ;
17362 int arg2 ;
17363 int arg3 ;
17364 wxToolBarToolBase *result;
17365 PyObject * obj0 = 0 ;
17366 PyObject * obj1 = 0 ;
17367 PyObject * obj2 = 0 ;
17368 char *kwnames[] = {
17369 (char *) "self",(char *) "x",(char *) "y", NULL
17370 };
17371
17372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17374 {
17375 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 {
17379 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 {
17383 PyThreadState* __tstate = wxPyBeginAllowThreads();
17384 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17385
17386 wxPyEndAllowThreads(__tstate);
17387 if (PyErr_Occurred()) SWIG_fail;
17388 }
17389 {
17390 resultobj = wxPyMake_wxObject(result);
17391 }
17392 return resultobj;
17393 fail:
17394 return NULL;
17395 }
17396
17397
17398 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
17399 PyObject *obj;
17400 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17401 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
17402 Py_INCREF(obj);
17403 return Py_BuildValue((char *)"");
17404 }
17405 static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
17406 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
17407 return 1;
17408 }
17409
17410
17411 static PyObject *_wrap_ListCtrlNameStr_get() {
17412 PyObject *pyobj;
17413
17414 {
17415 #if wxUSE_UNICODE
17416 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17417 #else
17418 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17419 #endif
17420 }
17421 return pyobj;
17422 }
17423
17424
17425 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
17426 PyObject *resultobj;
17427 wxColour const &arg1_defvalue = wxNullColour ;
17428 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
17429 wxColour const &arg2_defvalue = wxNullColour ;
17430 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
17431 wxFont const &arg3_defvalue = wxNullFont ;
17432 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
17433 wxListItemAttr *result;
17434 wxColour temp1 ;
17435 wxColour temp2 ;
17436 PyObject * obj0 = 0 ;
17437 PyObject * obj1 = 0 ;
17438 PyObject * obj2 = 0 ;
17439 char *kwnames[] = {
17440 (char *) "colText",(char *) "colBack",(char *) "font", NULL
17441 };
17442
17443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
17444 if (obj0) {
17445 {
17446 arg1 = &temp1;
17447 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
17448 }
17449 }
17450 if (obj1) {
17451 {
17452 arg2 = &temp2;
17453 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17454 }
17455 }
17456 if (obj2) {
17457 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17458 if (arg3 == NULL) {
17459 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17460 }
17461 }
17462 {
17463 PyThreadState* __tstate = wxPyBeginAllowThreads();
17464 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
17465
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1);
17470 return resultobj;
17471 fail:
17472 return NULL;
17473 }
17474
17475
17476 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17477 PyObject *resultobj;
17478 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17479 wxColour *arg2 = 0 ;
17480 wxColour temp2 ;
17481 PyObject * obj0 = 0 ;
17482 PyObject * obj1 = 0 ;
17483 char *kwnames[] = {
17484 (char *) "self",(char *) "colText", NULL
17485 };
17486
17487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
17488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17489 {
17490 arg2 = &temp2;
17491 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17492 }
17493 {
17494 PyThreadState* __tstate = wxPyBeginAllowThreads();
17495 (arg1)->SetTextColour((wxColour const &)*arg2);
17496
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
17500 Py_INCREF(Py_None); resultobj = Py_None;
17501 return resultobj;
17502 fail:
17503 return NULL;
17504 }
17505
17506
17507 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17508 PyObject *resultobj;
17509 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17510 wxColour *arg2 = 0 ;
17511 wxColour temp2 ;
17512 PyObject * obj0 = 0 ;
17513 PyObject * obj1 = 0 ;
17514 char *kwnames[] = {
17515 (char *) "self",(char *) "colBack", NULL
17516 };
17517
17518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
17519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17520 {
17521 arg2 = &temp2;
17522 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17523 }
17524 {
17525 PyThreadState* __tstate = wxPyBeginAllowThreads();
17526 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
17527
17528 wxPyEndAllowThreads(__tstate);
17529 if (PyErr_Occurred()) SWIG_fail;
17530 }
17531 Py_INCREF(Py_None); resultobj = Py_None;
17532 return resultobj;
17533 fail:
17534 return NULL;
17535 }
17536
17537
17538 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17539 PyObject *resultobj;
17540 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17541 wxFont *arg2 = 0 ;
17542 PyObject * obj0 = 0 ;
17543 PyObject * obj1 = 0 ;
17544 char *kwnames[] = {
17545 (char *) "self",(char *) "font", NULL
17546 };
17547
17548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
17549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17550 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17551 if (arg2 == NULL) {
17552 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17553 }
17554 {
17555 PyThreadState* __tstate = wxPyBeginAllowThreads();
17556 (arg1)->SetFont((wxFont const &)*arg2);
17557
17558 wxPyEndAllowThreads(__tstate);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 Py_INCREF(Py_None); resultobj = Py_None;
17562 return resultobj;
17563 fail:
17564 return NULL;
17565 }
17566
17567
17568 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17569 PyObject *resultobj;
17570 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17571 bool result;
17572 PyObject * obj0 = 0 ;
17573 char *kwnames[] = {
17574 (char *) "self", NULL
17575 };
17576
17577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
17578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17579 {
17580 PyThreadState* __tstate = wxPyBeginAllowThreads();
17581 result = (bool)(arg1)->HasTextColour();
17582
17583 wxPyEndAllowThreads(__tstate);
17584 if (PyErr_Occurred()) SWIG_fail;
17585 }
17586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17587 return resultobj;
17588 fail:
17589 return NULL;
17590 }
17591
17592
17593 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17594 PyObject *resultobj;
17595 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17596 bool result;
17597 PyObject * obj0 = 0 ;
17598 char *kwnames[] = {
17599 (char *) "self", NULL
17600 };
17601
17602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
17603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17604 {
17605 PyThreadState* __tstate = wxPyBeginAllowThreads();
17606 result = (bool)(arg1)->HasBackgroundColour();
17607
17608 wxPyEndAllowThreads(__tstate);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 }
17611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17612 return resultobj;
17613 fail:
17614 return NULL;
17615 }
17616
17617
17618 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17619 PyObject *resultobj;
17620 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17621 bool result;
17622 PyObject * obj0 = 0 ;
17623 char *kwnames[] = {
17624 (char *) "self", NULL
17625 };
17626
17627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
17628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17629 {
17630 PyThreadState* __tstate = wxPyBeginAllowThreads();
17631 result = (bool)(arg1)->HasFont();
17632
17633 wxPyEndAllowThreads(__tstate);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 }
17636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17637 return resultobj;
17638 fail:
17639 return NULL;
17640 }
17641
17642
17643 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17644 PyObject *resultobj;
17645 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17646 wxColour result;
17647 PyObject * obj0 = 0 ;
17648 char *kwnames[] = {
17649 (char *) "self", NULL
17650 };
17651
17652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
17653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17654 {
17655 PyThreadState* __tstate = wxPyBeginAllowThreads();
17656 result = (arg1)->GetTextColour();
17657
17658 wxPyEndAllowThreads(__tstate);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 }
17661 {
17662 wxColour * resultptr;
17663 resultptr = new wxColour((wxColour &) result);
17664 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17665 }
17666 return resultobj;
17667 fail:
17668 return NULL;
17669 }
17670
17671
17672 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17673 PyObject *resultobj;
17674 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17675 wxColour result;
17676 PyObject * obj0 = 0 ;
17677 char *kwnames[] = {
17678 (char *) "self", NULL
17679 };
17680
17681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
17682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17683 {
17684 PyThreadState* __tstate = wxPyBeginAllowThreads();
17685 result = (arg1)->GetBackgroundColour();
17686
17687 wxPyEndAllowThreads(__tstate);
17688 if (PyErr_Occurred()) SWIG_fail;
17689 }
17690 {
17691 wxColour * resultptr;
17692 resultptr = new wxColour((wxColour &) result);
17693 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17694 }
17695 return resultobj;
17696 fail:
17697 return NULL;
17698 }
17699
17700
17701 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17702 PyObject *resultobj;
17703 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17704 wxFont result;
17705 PyObject * obj0 = 0 ;
17706 char *kwnames[] = {
17707 (char *) "self", NULL
17708 };
17709
17710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
17711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17712 {
17713 PyThreadState* __tstate = wxPyBeginAllowThreads();
17714 result = (arg1)->GetFont();
17715
17716 wxPyEndAllowThreads(__tstate);
17717 if (PyErr_Occurred()) SWIG_fail;
17718 }
17719 {
17720 wxFont * resultptr;
17721 resultptr = new wxFont((wxFont &) result);
17722 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
17723 }
17724 return resultobj;
17725 fail:
17726 return NULL;
17727 }
17728
17729
17730 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
17731 PyObject *resultobj;
17732 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17733 PyObject * obj0 = 0 ;
17734 char *kwnames[] = {
17735 (char *) "self", NULL
17736 };
17737
17738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
17739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17740 {
17741 PyThreadState* __tstate = wxPyBeginAllowThreads();
17742 wxListItemAttr_Destroy(arg1);
17743
17744 wxPyEndAllowThreads(__tstate);
17745 if (PyErr_Occurred()) SWIG_fail;
17746 }
17747 Py_INCREF(Py_None); resultobj = Py_None;
17748 return resultobj;
17749 fail:
17750 return NULL;
17751 }
17752
17753
17754 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
17755 PyObject *obj;
17756 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17757 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
17758 Py_INCREF(obj);
17759 return Py_BuildValue((char *)"");
17760 }
17761 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17762 PyObject *resultobj;
17763 wxListItem *result;
17764 char *kwnames[] = {
17765 NULL
17766 };
17767
17768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 result = (wxListItem *)new wxListItem();
17772
17773 wxPyEndAllowThreads(__tstate);
17774 if (PyErr_Occurred()) SWIG_fail;
17775 }
17776 {
17777 resultobj = wxPyMake_wxObject(result);
17778 }
17779 return resultobj;
17780 fail:
17781 return NULL;
17782 }
17783
17784
17785 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17786 PyObject *resultobj;
17787 wxListItem *arg1 = (wxListItem *) 0 ;
17788 PyObject * obj0 = 0 ;
17789 char *kwnames[] = {
17790 (char *) "self", NULL
17791 };
17792
17793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
17794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17795 {
17796 PyThreadState* __tstate = wxPyBeginAllowThreads();
17797 delete arg1;
17798
17799 wxPyEndAllowThreads(__tstate);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 Py_INCREF(Py_None); resultobj = Py_None;
17803 return resultobj;
17804 fail:
17805 return NULL;
17806 }
17807
17808
17809 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
17810 PyObject *resultobj;
17811 wxListItem *arg1 = (wxListItem *) 0 ;
17812 PyObject * obj0 = 0 ;
17813 char *kwnames[] = {
17814 (char *) "self", NULL
17815 };
17816
17817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
17818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17819 {
17820 PyThreadState* __tstate = wxPyBeginAllowThreads();
17821 (arg1)->Clear();
17822
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 Py_INCREF(Py_None); resultobj = Py_None;
17827 return resultobj;
17828 fail:
17829 return NULL;
17830 }
17831
17832
17833 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj;
17835 wxListItem *arg1 = (wxListItem *) 0 ;
17836 PyObject * obj0 = 0 ;
17837 char *kwnames[] = {
17838 (char *) "self", NULL
17839 };
17840
17841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
17842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17843 {
17844 PyThreadState* __tstate = wxPyBeginAllowThreads();
17845 (arg1)->ClearAttributes();
17846
17847 wxPyEndAllowThreads(__tstate);
17848 if (PyErr_Occurred()) SWIG_fail;
17849 }
17850 Py_INCREF(Py_None); resultobj = Py_None;
17851 return resultobj;
17852 fail:
17853 return NULL;
17854 }
17855
17856
17857 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
17858 PyObject *resultobj;
17859 wxListItem *arg1 = (wxListItem *) 0 ;
17860 long arg2 ;
17861 PyObject * obj0 = 0 ;
17862 PyObject * obj1 = 0 ;
17863 char *kwnames[] = {
17864 (char *) "self",(char *) "mask", NULL
17865 };
17866
17867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
17868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17869 {
17870 arg2 = (long) SWIG_PyObj_AsLong(obj1);
17871 if (PyErr_Occurred()) SWIG_fail;
17872 }
17873 {
17874 PyThreadState* __tstate = wxPyBeginAllowThreads();
17875 (arg1)->SetMask(arg2);
17876
17877 wxPyEndAllowThreads(__tstate);
17878 if (PyErr_Occurred()) SWIG_fail;
17879 }
17880 Py_INCREF(Py_None); resultobj = Py_None;
17881 return resultobj;
17882 fail:
17883 return NULL;
17884 }
17885
17886
17887 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
17888 PyObject *resultobj;
17889 wxListItem *arg1 = (wxListItem *) 0 ;
17890 long arg2 ;
17891 PyObject * obj0 = 0 ;
17892 PyObject * obj1 = 0 ;
17893 char *kwnames[] = {
17894 (char *) "self",(char *) "id", NULL
17895 };
17896
17897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
17898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17899 {
17900 arg2 = (long) SWIG_PyObj_AsLong(obj1);
17901 if (PyErr_Occurred()) SWIG_fail;
17902 }
17903 {
17904 PyThreadState* __tstate = wxPyBeginAllowThreads();
17905 (arg1)->SetId(arg2);
17906
17907 wxPyEndAllowThreads(__tstate);
17908 if (PyErr_Occurred()) SWIG_fail;
17909 }
17910 Py_INCREF(Py_None); resultobj = Py_None;
17911 return resultobj;
17912 fail:
17913 return NULL;
17914 }
17915
17916
17917 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
17918 PyObject *resultobj;
17919 wxListItem *arg1 = (wxListItem *) 0 ;
17920 int arg2 ;
17921 PyObject * obj0 = 0 ;
17922 PyObject * obj1 = 0 ;
17923 char *kwnames[] = {
17924 (char *) "self",(char *) "col", NULL
17925 };
17926
17927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
17928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17929 {
17930 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 {
17934 PyThreadState* __tstate = wxPyBeginAllowThreads();
17935 (arg1)->SetColumn(arg2);
17936
17937 wxPyEndAllowThreads(__tstate);
17938 if (PyErr_Occurred()) SWIG_fail;
17939 }
17940 Py_INCREF(Py_None); resultobj = Py_None;
17941 return resultobj;
17942 fail:
17943 return NULL;
17944 }
17945
17946
17947 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
17948 PyObject *resultobj;
17949 wxListItem *arg1 = (wxListItem *) 0 ;
17950 long arg2 ;
17951 PyObject * obj0 = 0 ;
17952 PyObject * obj1 = 0 ;
17953 char *kwnames[] = {
17954 (char *) "self",(char *) "state", NULL
17955 };
17956
17957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
17958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17959 {
17960 arg2 = (long) SWIG_PyObj_AsLong(obj1);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 {
17964 PyThreadState* __tstate = wxPyBeginAllowThreads();
17965 (arg1)->SetState(arg2);
17966
17967 wxPyEndAllowThreads(__tstate);
17968 if (PyErr_Occurred()) SWIG_fail;
17969 }
17970 Py_INCREF(Py_None); resultobj = Py_None;
17971 return resultobj;
17972 fail:
17973 return NULL;
17974 }
17975
17976
17977 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
17978 PyObject *resultobj;
17979 wxListItem *arg1 = (wxListItem *) 0 ;
17980 long arg2 ;
17981 PyObject * obj0 = 0 ;
17982 PyObject * obj1 = 0 ;
17983 char *kwnames[] = {
17984 (char *) "self",(char *) "stateMask", NULL
17985 };
17986
17987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
17988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17989 {
17990 arg2 = (long) SWIG_PyObj_AsLong(obj1);
17991 if (PyErr_Occurred()) SWIG_fail;
17992 }
17993 {
17994 PyThreadState* __tstate = wxPyBeginAllowThreads();
17995 (arg1)->SetStateMask(arg2);
17996
17997 wxPyEndAllowThreads(__tstate);
17998 if (PyErr_Occurred()) SWIG_fail;
17999 }
18000 Py_INCREF(Py_None); resultobj = Py_None;
18001 return resultobj;
18002 fail:
18003 return NULL;
18004 }
18005
18006
18007 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18008 PyObject *resultobj;
18009 wxListItem *arg1 = (wxListItem *) 0 ;
18010 wxString *arg2 = 0 ;
18011 bool temp2 = False ;
18012 PyObject * obj0 = 0 ;
18013 PyObject * obj1 = 0 ;
18014 char *kwnames[] = {
18015 (char *) "self",(char *) "text", NULL
18016 };
18017
18018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
18019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18020 {
18021 arg2 = wxString_in_helper(obj1);
18022 if (arg2 == NULL) SWIG_fail;
18023 temp2 = True;
18024 }
18025 {
18026 PyThreadState* __tstate = wxPyBeginAllowThreads();
18027 (arg1)->SetText((wxString const &)*arg2);
18028
18029 wxPyEndAllowThreads(__tstate);
18030 if (PyErr_Occurred()) SWIG_fail;
18031 }
18032 Py_INCREF(Py_None); resultobj = Py_None;
18033 {
18034 if (temp2)
18035 delete arg2;
18036 }
18037 return resultobj;
18038 fail:
18039 {
18040 if (temp2)
18041 delete arg2;
18042 }
18043 return NULL;
18044 }
18045
18046
18047 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj;
18049 wxListItem *arg1 = (wxListItem *) 0 ;
18050 int arg2 ;
18051 PyObject * obj0 = 0 ;
18052 PyObject * obj1 = 0 ;
18053 char *kwnames[] = {
18054 (char *) "self",(char *) "image", NULL
18055 };
18056
18057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
18058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18059 {
18060 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18061 if (PyErr_Occurred()) SWIG_fail;
18062 }
18063 {
18064 PyThreadState* __tstate = wxPyBeginAllowThreads();
18065 (arg1)->SetImage(arg2);
18066
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 Py_INCREF(Py_None); resultobj = Py_None;
18071 return resultobj;
18072 fail:
18073 return NULL;
18074 }
18075
18076
18077 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18078 PyObject *resultobj;
18079 wxListItem *arg1 = (wxListItem *) 0 ;
18080 long arg2 ;
18081 PyObject * obj0 = 0 ;
18082 PyObject * obj1 = 0 ;
18083 char *kwnames[] = {
18084 (char *) "self",(char *) "data", NULL
18085 };
18086
18087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
18088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18089 {
18090 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 }
18093 {
18094 PyThreadState* __tstate = wxPyBeginAllowThreads();
18095 (arg1)->SetData(arg2);
18096
18097 wxPyEndAllowThreads(__tstate);
18098 if (PyErr_Occurred()) SWIG_fail;
18099 }
18100 Py_INCREF(Py_None); resultobj = Py_None;
18101 return resultobj;
18102 fail:
18103 return NULL;
18104 }
18105
18106
18107 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18108 PyObject *resultobj;
18109 wxListItem *arg1 = (wxListItem *) 0 ;
18110 int arg2 ;
18111 PyObject * obj0 = 0 ;
18112 PyObject * obj1 = 0 ;
18113 char *kwnames[] = {
18114 (char *) "self",(char *) "width", NULL
18115 };
18116
18117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
18118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18119 {
18120 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18121 if (PyErr_Occurred()) SWIG_fail;
18122 }
18123 {
18124 PyThreadState* __tstate = wxPyBeginAllowThreads();
18125 (arg1)->SetWidth(arg2);
18126
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 Py_INCREF(Py_None); resultobj = Py_None;
18131 return resultobj;
18132 fail:
18133 return NULL;
18134 }
18135
18136
18137 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18138 PyObject *resultobj;
18139 wxListItem *arg1 = (wxListItem *) 0 ;
18140 int arg2 ;
18141 PyObject * obj0 = 0 ;
18142 PyObject * obj1 = 0 ;
18143 char *kwnames[] = {
18144 (char *) "self",(char *) "align", NULL
18145 };
18146
18147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
18148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18149 {
18150 arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 }
18153 {
18154 PyThreadState* __tstate = wxPyBeginAllowThreads();
18155 (arg1)->SetAlign((wxListColumnFormat )arg2);
18156
18157 wxPyEndAllowThreads(__tstate);
18158 if (PyErr_Occurred()) SWIG_fail;
18159 }
18160 Py_INCREF(Py_None); resultobj = Py_None;
18161 return resultobj;
18162 fail:
18163 return NULL;
18164 }
18165
18166
18167 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18168 PyObject *resultobj;
18169 wxListItem *arg1 = (wxListItem *) 0 ;
18170 wxColour *arg2 = 0 ;
18171 wxColour temp2 ;
18172 PyObject * obj0 = 0 ;
18173 PyObject * obj1 = 0 ;
18174 char *kwnames[] = {
18175 (char *) "self",(char *) "colText", NULL
18176 };
18177
18178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18180 {
18181 arg2 = &temp2;
18182 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18183 }
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 (arg1)->SetTextColour((wxColour const &)*arg2);
18187
18188 wxPyEndAllowThreads(__tstate);
18189 if (PyErr_Occurred()) SWIG_fail;
18190 }
18191 Py_INCREF(Py_None); resultobj = Py_None;
18192 return resultobj;
18193 fail:
18194 return NULL;
18195 }
18196
18197
18198 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18199 PyObject *resultobj;
18200 wxListItem *arg1 = (wxListItem *) 0 ;
18201 wxColour *arg2 = 0 ;
18202 wxColour temp2 ;
18203 PyObject * obj0 = 0 ;
18204 PyObject * obj1 = 0 ;
18205 char *kwnames[] = {
18206 (char *) "self",(char *) "colBack", NULL
18207 };
18208
18209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18211 {
18212 arg2 = &temp2;
18213 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18214 }
18215 {
18216 PyThreadState* __tstate = wxPyBeginAllowThreads();
18217 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18218
18219 wxPyEndAllowThreads(__tstate);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 Py_INCREF(Py_None); resultobj = Py_None;
18223 return resultobj;
18224 fail:
18225 return NULL;
18226 }
18227
18228
18229 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18230 PyObject *resultobj;
18231 wxListItem *arg1 = (wxListItem *) 0 ;
18232 wxFont *arg2 = 0 ;
18233 PyObject * obj0 = 0 ;
18234 PyObject * obj1 = 0 ;
18235 char *kwnames[] = {
18236 (char *) "self",(char *) "font", NULL
18237 };
18238
18239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
18240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18241 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18242 if (arg2 == NULL) {
18243 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18244 }
18245 {
18246 PyThreadState* __tstate = wxPyBeginAllowThreads();
18247 (arg1)->SetFont((wxFont const &)*arg2);
18248
18249 wxPyEndAllowThreads(__tstate);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 Py_INCREF(Py_None); resultobj = Py_None;
18253 return resultobj;
18254 fail:
18255 return NULL;
18256 }
18257
18258
18259 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18260 PyObject *resultobj;
18261 wxListItem *arg1 = (wxListItem *) 0 ;
18262 long result;
18263 PyObject * obj0 = 0 ;
18264 char *kwnames[] = {
18265 (char *) "self", NULL
18266 };
18267
18268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
18269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18270 {
18271 PyThreadState* __tstate = wxPyBeginAllowThreads();
18272 result = (long)(arg1)->GetMask();
18273
18274 wxPyEndAllowThreads(__tstate);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 }
18277 resultobj = SWIG_PyObj_FromLong((long)result);
18278 return resultobj;
18279 fail:
18280 return NULL;
18281 }
18282
18283
18284 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18285 PyObject *resultobj;
18286 wxListItem *arg1 = (wxListItem *) 0 ;
18287 long result;
18288 PyObject * obj0 = 0 ;
18289 char *kwnames[] = {
18290 (char *) "self", NULL
18291 };
18292
18293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
18294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18295 {
18296 PyThreadState* __tstate = wxPyBeginAllowThreads();
18297 result = (long)(arg1)->GetId();
18298
18299 wxPyEndAllowThreads(__tstate);
18300 if (PyErr_Occurred()) SWIG_fail;
18301 }
18302 resultobj = SWIG_PyObj_FromLong((long)result);
18303 return resultobj;
18304 fail:
18305 return NULL;
18306 }
18307
18308
18309 static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18310 PyObject *resultobj;
18311 wxListItem *arg1 = (wxListItem *) 0 ;
18312 int result;
18313 PyObject * obj0 = 0 ;
18314 char *kwnames[] = {
18315 (char *) "self", NULL
18316 };
18317
18318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
18319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18320 {
18321 PyThreadState* __tstate = wxPyBeginAllowThreads();
18322 result = (int)(arg1)->GetColumn();
18323
18324 wxPyEndAllowThreads(__tstate);
18325 if (PyErr_Occurred()) SWIG_fail;
18326 }
18327 resultobj = SWIG_PyObj_FromInt((int)result);
18328 return resultobj;
18329 fail:
18330 return NULL;
18331 }
18332
18333
18334 static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
18335 PyObject *resultobj;
18336 wxListItem *arg1 = (wxListItem *) 0 ;
18337 long result;
18338 PyObject * obj0 = 0 ;
18339 char *kwnames[] = {
18340 (char *) "self", NULL
18341 };
18342
18343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
18344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18345 {
18346 PyThreadState* __tstate = wxPyBeginAllowThreads();
18347 result = (long)(arg1)->GetState();
18348
18349 wxPyEndAllowThreads(__tstate);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 }
18352 resultobj = SWIG_PyObj_FromLong((long)result);
18353 return resultobj;
18354 fail:
18355 return NULL;
18356 }
18357
18358
18359 static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18360 PyObject *resultobj;
18361 wxListItem *arg1 = (wxListItem *) 0 ;
18362 wxString *result;
18363 PyObject * obj0 = 0 ;
18364 char *kwnames[] = {
18365 (char *) "self", NULL
18366 };
18367
18368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
18369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18370 {
18371 PyThreadState* __tstate = wxPyBeginAllowThreads();
18372 {
18373 wxString const &_result_ref = (arg1)->GetText();
18374 result = (wxString *) &_result_ref;
18375 }
18376
18377 wxPyEndAllowThreads(__tstate);
18378 if (PyErr_Occurred()) SWIG_fail;
18379 }
18380 {
18381 #if wxUSE_UNICODE
18382 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18383 #else
18384 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18385 #endif
18386 }
18387 return resultobj;
18388 fail:
18389 return NULL;
18390 }
18391
18392
18393 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18394 PyObject *resultobj;
18395 wxListItem *arg1 = (wxListItem *) 0 ;
18396 int result;
18397 PyObject * obj0 = 0 ;
18398 char *kwnames[] = {
18399 (char *) "self", NULL
18400 };
18401
18402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
18403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18404 {
18405 PyThreadState* __tstate = wxPyBeginAllowThreads();
18406 result = (int)(arg1)->GetImage();
18407
18408 wxPyEndAllowThreads(__tstate);
18409 if (PyErr_Occurred()) SWIG_fail;
18410 }
18411 resultobj = SWIG_PyObj_FromInt((int)result);
18412 return resultobj;
18413 fail:
18414 return NULL;
18415 }
18416
18417
18418 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18419 PyObject *resultobj;
18420 wxListItem *arg1 = (wxListItem *) 0 ;
18421 long result;
18422 PyObject * obj0 = 0 ;
18423 char *kwnames[] = {
18424 (char *) "self", NULL
18425 };
18426
18427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
18428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18429 {
18430 PyThreadState* __tstate = wxPyBeginAllowThreads();
18431 result = (long)(arg1)->GetData();
18432
18433 wxPyEndAllowThreads(__tstate);
18434 if (PyErr_Occurred()) SWIG_fail;
18435 }
18436 resultobj = SWIG_PyObj_FromLong((long)result);
18437 return resultobj;
18438 fail:
18439 return NULL;
18440 }
18441
18442
18443 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18444 PyObject *resultobj;
18445 wxListItem *arg1 = (wxListItem *) 0 ;
18446 int result;
18447 PyObject * obj0 = 0 ;
18448 char *kwnames[] = {
18449 (char *) "self", NULL
18450 };
18451
18452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
18453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18454 {
18455 PyThreadState* __tstate = wxPyBeginAllowThreads();
18456 result = (int)(arg1)->GetWidth();
18457
18458 wxPyEndAllowThreads(__tstate);
18459 if (PyErr_Occurred()) SWIG_fail;
18460 }
18461 resultobj = SWIG_PyObj_FromInt((int)result);
18462 return resultobj;
18463 fail:
18464 return NULL;
18465 }
18466
18467
18468 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18469 PyObject *resultobj;
18470 wxListItem *arg1 = (wxListItem *) 0 ;
18471 int result;
18472 PyObject * obj0 = 0 ;
18473 char *kwnames[] = {
18474 (char *) "self", NULL
18475 };
18476
18477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
18478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 result = (int)(arg1)->GetAlign();
18482
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = SWIG_PyObj_FromInt((int)result);
18487 return resultobj;
18488 fail:
18489 return NULL;
18490 }
18491
18492
18493 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18494 PyObject *resultobj;
18495 wxListItem *arg1 = (wxListItem *) 0 ;
18496 wxListItemAttr *result;
18497 PyObject * obj0 = 0 ;
18498 char *kwnames[] = {
18499 (char *) "self", NULL
18500 };
18501
18502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
18503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 result = (wxListItemAttr *)(arg1)->GetAttributes();
18507
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0);
18512 return resultobj;
18513 fail:
18514 return NULL;
18515 }
18516
18517
18518 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18519 PyObject *resultobj;
18520 wxListItem *arg1 = (wxListItem *) 0 ;
18521 bool result;
18522 PyObject * obj0 = 0 ;
18523 char *kwnames[] = {
18524 (char *) "self", NULL
18525 };
18526
18527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
18528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 result = (bool)(arg1)->HasAttributes();
18532
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18537 return resultobj;
18538 fail:
18539 return NULL;
18540 }
18541
18542
18543 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj;
18545 wxListItem *arg1 = (wxListItem *) 0 ;
18546 wxColour result;
18547 PyObject * obj0 = 0 ;
18548 char *kwnames[] = {
18549 (char *) "self", NULL
18550 };
18551
18552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
18553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18554 {
18555 PyThreadState* __tstate = wxPyBeginAllowThreads();
18556 result = ((wxListItem const *)arg1)->GetTextColour();
18557
18558 wxPyEndAllowThreads(__tstate);
18559 if (PyErr_Occurred()) SWIG_fail;
18560 }
18561 {
18562 wxColour * resultptr;
18563 resultptr = new wxColour((wxColour &) result);
18564 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18565 }
18566 return resultobj;
18567 fail:
18568 return NULL;
18569 }
18570
18571
18572 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18573 PyObject *resultobj;
18574 wxListItem *arg1 = (wxListItem *) 0 ;
18575 wxColour result;
18576 PyObject * obj0 = 0 ;
18577 char *kwnames[] = {
18578 (char *) "self", NULL
18579 };
18580
18581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
18582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18583 {
18584 PyThreadState* __tstate = wxPyBeginAllowThreads();
18585 result = ((wxListItem const *)arg1)->GetBackgroundColour();
18586
18587 wxPyEndAllowThreads(__tstate);
18588 if (PyErr_Occurred()) SWIG_fail;
18589 }
18590 {
18591 wxColour * resultptr;
18592 resultptr = new wxColour((wxColour &) result);
18593 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18594 }
18595 return resultobj;
18596 fail:
18597 return NULL;
18598 }
18599
18600
18601 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18602 PyObject *resultobj;
18603 wxListItem *arg1 = (wxListItem *) 0 ;
18604 wxFont result;
18605 PyObject * obj0 = 0 ;
18606 char *kwnames[] = {
18607 (char *) "self", NULL
18608 };
18609
18610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
18611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18612 {
18613 PyThreadState* __tstate = wxPyBeginAllowThreads();
18614 result = ((wxListItem const *)arg1)->GetFont();
18615
18616 wxPyEndAllowThreads(__tstate);
18617 if (PyErr_Occurred()) SWIG_fail;
18618 }
18619 {
18620 wxFont * resultptr;
18621 resultptr = new wxFont((wxFont &) result);
18622 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
18623 }
18624 return resultobj;
18625 fail:
18626 return NULL;
18627 }
18628
18629
18630 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18631 PyObject *resultobj;
18632 wxListItem *arg1 = (wxListItem *) 0 ;
18633 long arg2 ;
18634 PyObject * obj0 = 0 ;
18635 PyObject * obj1 = 0 ;
18636 char *kwnames[] = {
18637 (char *) "self",(char *) "m_mask", NULL
18638 };
18639
18640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
18641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18642 {
18643 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18644 if (PyErr_Occurred()) SWIG_fail;
18645 }
18646 if (arg1) (arg1)->m_mask = arg2;
18647
18648 Py_INCREF(Py_None); resultobj = Py_None;
18649 return resultobj;
18650 fail:
18651 return NULL;
18652 }
18653
18654
18655 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18656 PyObject *resultobj;
18657 wxListItem *arg1 = (wxListItem *) 0 ;
18658 long result;
18659 PyObject * obj0 = 0 ;
18660 char *kwnames[] = {
18661 (char *) "self", NULL
18662 };
18663
18664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
18665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18666 result = (long) ((arg1)->m_mask);
18667
18668 resultobj = SWIG_PyObj_FromLong((long)result);
18669 return resultobj;
18670 fail:
18671 return NULL;
18672 }
18673
18674
18675 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18676 PyObject *resultobj;
18677 wxListItem *arg1 = (wxListItem *) 0 ;
18678 long arg2 ;
18679 PyObject * obj0 = 0 ;
18680 PyObject * obj1 = 0 ;
18681 char *kwnames[] = {
18682 (char *) "self",(char *) "m_itemId", NULL
18683 };
18684
18685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
18686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18687 {
18688 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18689 if (PyErr_Occurred()) SWIG_fail;
18690 }
18691 if (arg1) (arg1)->m_itemId = arg2;
18692
18693 Py_INCREF(Py_None); resultobj = Py_None;
18694 return resultobj;
18695 fail:
18696 return NULL;
18697 }
18698
18699
18700 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18701 PyObject *resultobj;
18702 wxListItem *arg1 = (wxListItem *) 0 ;
18703 long result;
18704 PyObject * obj0 = 0 ;
18705 char *kwnames[] = {
18706 (char *) "self", NULL
18707 };
18708
18709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
18710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18711 result = (long) ((arg1)->m_itemId);
18712
18713 resultobj = SWIG_PyObj_FromLong((long)result);
18714 return resultobj;
18715 fail:
18716 return NULL;
18717 }
18718
18719
18720 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18721 PyObject *resultobj;
18722 wxListItem *arg1 = (wxListItem *) 0 ;
18723 int arg2 ;
18724 PyObject * obj0 = 0 ;
18725 PyObject * obj1 = 0 ;
18726 char *kwnames[] = {
18727 (char *) "self",(char *) "m_col", NULL
18728 };
18729
18730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
18731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18732 {
18733 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18734 if (PyErr_Occurred()) SWIG_fail;
18735 }
18736 if (arg1) (arg1)->m_col = arg2;
18737
18738 Py_INCREF(Py_None); resultobj = Py_None;
18739 return resultobj;
18740 fail:
18741 return NULL;
18742 }
18743
18744
18745 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18746 PyObject *resultobj;
18747 wxListItem *arg1 = (wxListItem *) 0 ;
18748 int result;
18749 PyObject * obj0 = 0 ;
18750 char *kwnames[] = {
18751 (char *) "self", NULL
18752 };
18753
18754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
18755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18756 result = (int) ((arg1)->m_col);
18757
18758 resultobj = SWIG_PyObj_FromInt((int)result);
18759 return resultobj;
18760 fail:
18761 return NULL;
18762 }
18763
18764
18765 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18766 PyObject *resultobj;
18767 wxListItem *arg1 = (wxListItem *) 0 ;
18768 long arg2 ;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 char *kwnames[] = {
18772 (char *) "self",(char *) "m_state", NULL
18773 };
18774
18775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
18776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18777 {
18778 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 if (arg1) (arg1)->m_state = arg2;
18782
18783 Py_INCREF(Py_None); resultobj = Py_None;
18784 return resultobj;
18785 fail:
18786 return NULL;
18787 }
18788
18789
18790 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18791 PyObject *resultobj;
18792 wxListItem *arg1 = (wxListItem *) 0 ;
18793 long result;
18794 PyObject * obj0 = 0 ;
18795 char *kwnames[] = {
18796 (char *) "self", NULL
18797 };
18798
18799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
18800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18801 result = (long) ((arg1)->m_state);
18802
18803 resultobj = SWIG_PyObj_FromLong((long)result);
18804 return resultobj;
18805 fail:
18806 return NULL;
18807 }
18808
18809
18810 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18811 PyObject *resultobj;
18812 wxListItem *arg1 = (wxListItem *) 0 ;
18813 long arg2 ;
18814 PyObject * obj0 = 0 ;
18815 PyObject * obj1 = 0 ;
18816 char *kwnames[] = {
18817 (char *) "self",(char *) "m_stateMask", NULL
18818 };
18819
18820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
18821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18822 {
18823 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 }
18826 if (arg1) (arg1)->m_stateMask = arg2;
18827
18828 Py_INCREF(Py_None); resultobj = Py_None;
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj;
18837 wxListItem *arg1 = (wxListItem *) 0 ;
18838 long result;
18839 PyObject * obj0 = 0 ;
18840 char *kwnames[] = {
18841 (char *) "self", NULL
18842 };
18843
18844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
18845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18846 result = (long) ((arg1)->m_stateMask);
18847
18848 resultobj = SWIG_PyObj_FromLong((long)result);
18849 return resultobj;
18850 fail:
18851 return NULL;
18852 }
18853
18854
18855 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18856 PyObject *resultobj;
18857 wxListItem *arg1 = (wxListItem *) 0 ;
18858 wxString *arg2 = (wxString *) 0 ;
18859 bool temp2 = False ;
18860 PyObject * obj0 = 0 ;
18861 PyObject * obj1 = 0 ;
18862 char *kwnames[] = {
18863 (char *) "self",(char *) "m_text", NULL
18864 };
18865
18866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
18867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18868 {
18869 arg2 = wxString_in_helper(obj1);
18870 if (arg2 == NULL) SWIG_fail;
18871 temp2 = True;
18872 }
18873 if (arg1) (arg1)->m_text = *arg2;
18874
18875 Py_INCREF(Py_None); resultobj = Py_None;
18876 {
18877 if (temp2)
18878 delete arg2;
18879 }
18880 return resultobj;
18881 fail:
18882 {
18883 if (temp2)
18884 delete arg2;
18885 }
18886 return NULL;
18887 }
18888
18889
18890 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18891 PyObject *resultobj;
18892 wxListItem *arg1 = (wxListItem *) 0 ;
18893 wxString *result;
18894 PyObject * obj0 = 0 ;
18895 char *kwnames[] = {
18896 (char *) "self", NULL
18897 };
18898
18899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
18900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18901 result = (wxString *)& ((arg1)->m_text);
18902
18903 {
18904 #if wxUSE_UNICODE
18905 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18906 #else
18907 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18908 #endif
18909 }
18910 return resultobj;
18911 fail:
18912 return NULL;
18913 }
18914
18915
18916 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18917 PyObject *resultobj;
18918 wxListItem *arg1 = (wxListItem *) 0 ;
18919 int arg2 ;
18920 PyObject * obj0 = 0 ;
18921 PyObject * obj1 = 0 ;
18922 char *kwnames[] = {
18923 (char *) "self",(char *) "m_image", NULL
18924 };
18925
18926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
18927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18928 {
18929 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18930 if (PyErr_Occurred()) SWIG_fail;
18931 }
18932 if (arg1) (arg1)->m_image = arg2;
18933
18934 Py_INCREF(Py_None); resultobj = Py_None;
18935 return resultobj;
18936 fail:
18937 return NULL;
18938 }
18939
18940
18941 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18942 PyObject *resultobj;
18943 wxListItem *arg1 = (wxListItem *) 0 ;
18944 int result;
18945 PyObject * obj0 = 0 ;
18946 char *kwnames[] = {
18947 (char *) "self", NULL
18948 };
18949
18950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
18951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18952 result = (int) ((arg1)->m_image);
18953
18954 resultobj = SWIG_PyObj_FromInt((int)result);
18955 return resultobj;
18956 fail:
18957 return NULL;
18958 }
18959
18960
18961 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18962 PyObject *resultobj;
18963 wxListItem *arg1 = (wxListItem *) 0 ;
18964 long arg2 ;
18965 PyObject * obj0 = 0 ;
18966 PyObject * obj1 = 0 ;
18967 char *kwnames[] = {
18968 (char *) "self",(char *) "m_data", NULL
18969 };
18970
18971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
18972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18973 {
18974 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18975 if (PyErr_Occurred()) SWIG_fail;
18976 }
18977 if (arg1) (arg1)->m_data = arg2;
18978
18979 Py_INCREF(Py_None); resultobj = Py_None;
18980 return resultobj;
18981 fail:
18982 return NULL;
18983 }
18984
18985
18986 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18987 PyObject *resultobj;
18988 wxListItem *arg1 = (wxListItem *) 0 ;
18989 long result;
18990 PyObject * obj0 = 0 ;
18991 char *kwnames[] = {
18992 (char *) "self", NULL
18993 };
18994
18995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
18996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18997 result = (long) ((arg1)->m_data);
18998
18999 resultobj = SWIG_PyObj_FromLong((long)result);
19000 return resultobj;
19001 fail:
19002 return NULL;
19003 }
19004
19005
19006 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj;
19008 wxListItem *arg1 = (wxListItem *) 0 ;
19009 int arg2 ;
19010 PyObject * obj0 = 0 ;
19011 PyObject * obj1 = 0 ;
19012 char *kwnames[] = {
19013 (char *) "self",(char *) "m_format", NULL
19014 };
19015
19016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
19017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19018 {
19019 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19020 if (PyErr_Occurred()) SWIG_fail;
19021 }
19022 if (arg1) (arg1)->m_format = arg2;
19023
19024 Py_INCREF(Py_None); resultobj = Py_None;
19025 return resultobj;
19026 fail:
19027 return NULL;
19028 }
19029
19030
19031 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19032 PyObject *resultobj;
19033 wxListItem *arg1 = (wxListItem *) 0 ;
19034 int result;
19035 PyObject * obj0 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
19041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19042 result = (int) ((arg1)->m_format);
19043
19044 resultobj = SWIG_PyObj_FromInt((int)result);
19045 return resultobj;
19046 fail:
19047 return NULL;
19048 }
19049
19050
19051 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19052 PyObject *resultobj;
19053 wxListItem *arg1 = (wxListItem *) 0 ;
19054 int arg2 ;
19055 PyObject * obj0 = 0 ;
19056 PyObject * obj1 = 0 ;
19057 char *kwnames[] = {
19058 (char *) "self",(char *) "m_width", NULL
19059 };
19060
19061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
19062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19063 {
19064 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19065 if (PyErr_Occurred()) SWIG_fail;
19066 }
19067 if (arg1) (arg1)->m_width = arg2;
19068
19069 Py_INCREF(Py_None); resultobj = Py_None;
19070 return resultobj;
19071 fail:
19072 return NULL;
19073 }
19074
19075
19076 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19077 PyObject *resultobj;
19078 wxListItem *arg1 = (wxListItem *) 0 ;
19079 int result;
19080 PyObject * obj0 = 0 ;
19081 char *kwnames[] = {
19082 (char *) "self", NULL
19083 };
19084
19085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
19086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19087 result = (int) ((arg1)->m_width);
19088
19089 resultobj = SWIG_PyObj_FromInt((int)result);
19090 return resultobj;
19091 fail:
19092 return NULL;
19093 }
19094
19095
19096 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
19097 PyObject *obj;
19098 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19099 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
19100 Py_INCREF(obj);
19101 return Py_BuildValue((char *)"");
19102 }
19103 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19104 PyObject *resultobj;
19105 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19106 int arg2 = (int) 0 ;
19107 wxListEvent *result;
19108 PyObject * obj0 = 0 ;
19109 PyObject * obj1 = 0 ;
19110 char *kwnames[] = {
19111 (char *) "commandType",(char *) "id", NULL
19112 };
19113
19114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
19115 if (obj0) {
19116 {
19117 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
19118 if (PyErr_Occurred()) SWIG_fail;
19119 }
19120 }
19121 if (obj1) {
19122 {
19123 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19124 if (PyErr_Occurred()) SWIG_fail;
19125 }
19126 }
19127 {
19128 PyThreadState* __tstate = wxPyBeginAllowThreads();
19129 result = (wxListEvent *)new wxListEvent(arg1,arg2);
19130
19131 wxPyEndAllowThreads(__tstate);
19132 if (PyErr_Occurred()) SWIG_fail;
19133 }
19134 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1);
19135 return resultobj;
19136 fail:
19137 return NULL;
19138 }
19139
19140
19141 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19142 PyObject *resultobj;
19143 wxListEvent *arg1 = (wxListEvent *) 0 ;
19144 int arg2 ;
19145 PyObject * obj0 = 0 ;
19146 PyObject * obj1 = 0 ;
19147 char *kwnames[] = {
19148 (char *) "self",(char *) "m_code", NULL
19149 };
19150
19151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
19152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19153 {
19154 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 if (arg1) (arg1)->m_code = arg2;
19158
19159 Py_INCREF(Py_None); resultobj = Py_None;
19160 return resultobj;
19161 fail:
19162 return NULL;
19163 }
19164
19165
19166 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19167 PyObject *resultobj;
19168 wxListEvent *arg1 = (wxListEvent *) 0 ;
19169 int result;
19170 PyObject * obj0 = 0 ;
19171 char *kwnames[] = {
19172 (char *) "self", NULL
19173 };
19174
19175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
19176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19177 result = (int) ((arg1)->m_code);
19178
19179 resultobj = SWIG_PyObj_FromInt((int)result);
19180 return resultobj;
19181 fail:
19182 return NULL;
19183 }
19184
19185
19186 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj;
19188 wxListEvent *arg1 = (wxListEvent *) 0 ;
19189 long arg2 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 char *kwnames[] = {
19193 (char *) "self",(char *) "m_oldItemIndex", NULL
19194 };
19195
19196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19198 {
19199 arg2 = (long) SWIG_PyObj_AsLong(obj1);
19200 if (PyErr_Occurred()) SWIG_fail;
19201 }
19202 if (arg1) (arg1)->m_oldItemIndex = arg2;
19203
19204 Py_INCREF(Py_None); resultobj = Py_None;
19205 return resultobj;
19206 fail:
19207 return NULL;
19208 }
19209
19210
19211 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19212 PyObject *resultobj;
19213 wxListEvent *arg1 = (wxListEvent *) 0 ;
19214 long result;
19215 PyObject * obj0 = 0 ;
19216 char *kwnames[] = {
19217 (char *) "self", NULL
19218 };
19219
19220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
19221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19222 result = (long) ((arg1)->m_oldItemIndex);
19223
19224 resultobj = SWIG_PyObj_FromLong((long)result);
19225 return resultobj;
19226 fail:
19227 return NULL;
19228 }
19229
19230
19231 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19232 PyObject *resultobj;
19233 wxListEvent *arg1 = (wxListEvent *) 0 ;
19234 long arg2 ;
19235 PyObject * obj0 = 0 ;
19236 PyObject * obj1 = 0 ;
19237 char *kwnames[] = {
19238 (char *) "self",(char *) "m_itemIndex", NULL
19239 };
19240
19241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19243 {
19244 arg2 = (long) SWIG_PyObj_AsLong(obj1);
19245 if (PyErr_Occurred()) SWIG_fail;
19246 }
19247 if (arg1) (arg1)->m_itemIndex = arg2;
19248
19249 Py_INCREF(Py_None); resultobj = Py_None;
19250 return resultobj;
19251 fail:
19252 return NULL;
19253 }
19254
19255
19256 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19257 PyObject *resultobj;
19258 wxListEvent *arg1 = (wxListEvent *) 0 ;
19259 long result;
19260 PyObject * obj0 = 0 ;
19261 char *kwnames[] = {
19262 (char *) "self", NULL
19263 };
19264
19265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
19266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19267 result = (long) ((arg1)->m_itemIndex);
19268
19269 resultobj = SWIG_PyObj_FromLong((long)result);
19270 return resultobj;
19271 fail:
19272 return NULL;
19273 }
19274
19275
19276 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19277 PyObject *resultobj;
19278 wxListEvent *arg1 = (wxListEvent *) 0 ;
19279 int arg2 ;
19280 PyObject * obj0 = 0 ;
19281 PyObject * obj1 = 0 ;
19282 char *kwnames[] = {
19283 (char *) "self",(char *) "m_col", NULL
19284 };
19285
19286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19288 {
19289 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19290 if (PyErr_Occurred()) SWIG_fail;
19291 }
19292 if (arg1) (arg1)->m_col = arg2;
19293
19294 Py_INCREF(Py_None); resultobj = Py_None;
19295 return resultobj;
19296 fail:
19297 return NULL;
19298 }
19299
19300
19301 static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19302 PyObject *resultobj;
19303 wxListEvent *arg1 = (wxListEvent *) 0 ;
19304 int result;
19305 PyObject * obj0 = 0 ;
19306 char *kwnames[] = {
19307 (char *) "self", NULL
19308 };
19309
19310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
19311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19312 result = (int) ((arg1)->m_col);
19313
19314 resultobj = SWIG_PyObj_FromInt((int)result);
19315 return resultobj;
19316 fail:
19317 return NULL;
19318 }
19319
19320
19321 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19322 PyObject *resultobj;
19323 wxListEvent *arg1 = (wxListEvent *) 0 ;
19324 wxPoint *arg2 = (wxPoint *) 0 ;
19325 PyObject * obj0 = 0 ;
19326 PyObject * obj1 = 0 ;
19327 char *kwnames[] = {
19328 (char *) "self",(char *) "m_pointDrag", NULL
19329 };
19330
19331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
19332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19333 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19334 if (arg1) (arg1)->m_pointDrag = *arg2;
19335
19336 Py_INCREF(Py_None); resultobj = Py_None;
19337 return resultobj;
19338 fail:
19339 return NULL;
19340 }
19341
19342
19343 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19344 PyObject *resultobj;
19345 wxListEvent *arg1 = (wxListEvent *) 0 ;
19346 wxPoint *result;
19347 PyObject * obj0 = 0 ;
19348 char *kwnames[] = {
19349 (char *) "self", NULL
19350 };
19351
19352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
19353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19354 result = (wxPoint *)& ((arg1)->m_pointDrag);
19355
19356 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
19357 return resultobj;
19358 fail:
19359 return NULL;
19360 }
19361
19362
19363 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19364 PyObject *resultobj;
19365 wxListEvent *arg1 = (wxListEvent *) 0 ;
19366 wxListItem *result;
19367 PyObject * obj0 = 0 ;
19368 char *kwnames[] = {
19369 (char *) "self", NULL
19370 };
19371
19372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
19373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19374 result = (wxListItem *)& ((arg1)->m_item);
19375
19376 {
19377 resultobj = wxPyMake_wxObject(result);
19378 }
19379 return resultobj;
19380 fail:
19381 return NULL;
19382 }
19383
19384
19385 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
19386 PyObject *resultobj;
19387 wxListEvent *arg1 = (wxListEvent *) 0 ;
19388 int result;
19389 PyObject * obj0 = 0 ;
19390 char *kwnames[] = {
19391 (char *) "self", NULL
19392 };
19393
19394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
19395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19396 {
19397 PyThreadState* __tstate = wxPyBeginAllowThreads();
19398 result = (int)(arg1)->GetKeyCode();
19399
19400 wxPyEndAllowThreads(__tstate);
19401 if (PyErr_Occurred()) SWIG_fail;
19402 }
19403 resultobj = SWIG_PyObj_FromInt((int)result);
19404 return resultobj;
19405 fail:
19406 return NULL;
19407 }
19408
19409
19410 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
19411 PyObject *resultobj;
19412 wxListEvent *arg1 = (wxListEvent *) 0 ;
19413 long result;
19414 PyObject * obj0 = 0 ;
19415 char *kwnames[] = {
19416 (char *) "self", NULL
19417 };
19418
19419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
19420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19421 {
19422 PyThreadState* __tstate = wxPyBeginAllowThreads();
19423 result = (long)(arg1)->GetIndex();
19424
19425 wxPyEndAllowThreads(__tstate);
19426 if (PyErr_Occurred()) SWIG_fail;
19427 }
19428 resultobj = SWIG_PyObj_FromLong((long)result);
19429 return resultobj;
19430 fail:
19431 return NULL;
19432 }
19433
19434
19435 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19436 PyObject *resultobj;
19437 wxListEvent *arg1 = (wxListEvent *) 0 ;
19438 int result;
19439 PyObject * obj0 = 0 ;
19440 char *kwnames[] = {
19441 (char *) "self", NULL
19442 };
19443
19444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
19445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19446 {
19447 PyThreadState* __tstate = wxPyBeginAllowThreads();
19448 result = (int)(arg1)->GetColumn();
19449
19450 wxPyEndAllowThreads(__tstate);
19451 if (PyErr_Occurred()) SWIG_fail;
19452 }
19453 resultobj = SWIG_PyObj_FromInt((int)result);
19454 return resultobj;
19455 fail:
19456 return NULL;
19457 }
19458
19459
19460 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
19461 PyObject *resultobj;
19462 wxListEvent *arg1 = (wxListEvent *) 0 ;
19463 wxPoint result;
19464 PyObject * obj0 = 0 ;
19465 char *kwnames[] = {
19466 (char *) "self", NULL
19467 };
19468
19469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
19470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19471 {
19472 PyThreadState* __tstate = wxPyBeginAllowThreads();
19473 result = (arg1)->GetPoint();
19474
19475 wxPyEndAllowThreads(__tstate);
19476 if (PyErr_Occurred()) SWIG_fail;
19477 }
19478 {
19479 wxPoint * resultptr;
19480 resultptr = new wxPoint((wxPoint &) result);
19481 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
19482 }
19483 return resultobj;
19484 fail:
19485 return NULL;
19486 }
19487
19488
19489 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
19490 PyObject *resultobj;
19491 wxListEvent *arg1 = (wxListEvent *) 0 ;
19492 wxString *result;
19493 PyObject * obj0 = 0 ;
19494 char *kwnames[] = {
19495 (char *) "self", NULL
19496 };
19497
19498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
19499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19500 {
19501 PyThreadState* __tstate = wxPyBeginAllowThreads();
19502 {
19503 wxString const &_result_ref = (arg1)->GetLabel();
19504 result = (wxString *) &_result_ref;
19505 }
19506
19507 wxPyEndAllowThreads(__tstate);
19508 if (PyErr_Occurred()) SWIG_fail;
19509 }
19510 {
19511 #if wxUSE_UNICODE
19512 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19513 #else
19514 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19515 #endif
19516 }
19517 return resultobj;
19518 fail:
19519 return NULL;
19520 }
19521
19522
19523 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19524 PyObject *resultobj;
19525 wxListEvent *arg1 = (wxListEvent *) 0 ;
19526 wxString *result;
19527 PyObject * obj0 = 0 ;
19528 char *kwnames[] = {
19529 (char *) "self", NULL
19530 };
19531
19532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
19533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19534 {
19535 PyThreadState* __tstate = wxPyBeginAllowThreads();
19536 {
19537 wxString const &_result_ref = (arg1)->GetText();
19538 result = (wxString *) &_result_ref;
19539 }
19540
19541 wxPyEndAllowThreads(__tstate);
19542 if (PyErr_Occurred()) SWIG_fail;
19543 }
19544 {
19545 #if wxUSE_UNICODE
19546 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19547 #else
19548 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19549 #endif
19550 }
19551 return resultobj;
19552 fail:
19553 return NULL;
19554 }
19555
19556
19557 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19558 PyObject *resultobj;
19559 wxListEvent *arg1 = (wxListEvent *) 0 ;
19560 int result;
19561 PyObject * obj0 = 0 ;
19562 char *kwnames[] = {
19563 (char *) "self", NULL
19564 };
19565
19566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
19567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19568 {
19569 PyThreadState* __tstate = wxPyBeginAllowThreads();
19570 result = (int)(arg1)->GetImage();
19571
19572 wxPyEndAllowThreads(__tstate);
19573 if (PyErr_Occurred()) SWIG_fail;
19574 }
19575 resultobj = SWIG_PyObj_FromInt((int)result);
19576 return resultobj;
19577 fail:
19578 return NULL;
19579 }
19580
19581
19582 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19583 PyObject *resultobj;
19584 wxListEvent *arg1 = (wxListEvent *) 0 ;
19585 long result;
19586 PyObject * obj0 = 0 ;
19587 char *kwnames[] = {
19588 (char *) "self", NULL
19589 };
19590
19591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
19592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 result = (long)(arg1)->GetData();
19596
19597 wxPyEndAllowThreads(__tstate);
19598 if (PyErr_Occurred()) SWIG_fail;
19599 }
19600 resultobj = SWIG_PyObj_FromLong((long)result);
19601 return resultobj;
19602 fail:
19603 return NULL;
19604 }
19605
19606
19607 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19608 PyObject *resultobj;
19609 wxListEvent *arg1 = (wxListEvent *) 0 ;
19610 long result;
19611 PyObject * obj0 = 0 ;
19612 char *kwnames[] = {
19613 (char *) "self", NULL
19614 };
19615
19616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
19617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19618 {
19619 PyThreadState* __tstate = wxPyBeginAllowThreads();
19620 result = (long)(arg1)->GetMask();
19621
19622 wxPyEndAllowThreads(__tstate);
19623 if (PyErr_Occurred()) SWIG_fail;
19624 }
19625 resultobj = SWIG_PyObj_FromLong((long)result);
19626 return resultobj;
19627 fail:
19628 return NULL;
19629 }
19630
19631
19632 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
19633 PyObject *resultobj;
19634 wxListEvent *arg1 = (wxListEvent *) 0 ;
19635 wxListItem *result;
19636 PyObject * obj0 = 0 ;
19637 char *kwnames[] = {
19638 (char *) "self", NULL
19639 };
19640
19641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
19642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19643 {
19644 PyThreadState* __tstate = wxPyBeginAllowThreads();
19645 {
19646 wxListItem const &_result_ref = (arg1)->GetItem();
19647 result = (wxListItem *) &_result_ref;
19648 }
19649
19650 wxPyEndAllowThreads(__tstate);
19651 if (PyErr_Occurred()) SWIG_fail;
19652 }
19653 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0);
19654 return resultobj;
19655 fail:
19656 return NULL;
19657 }
19658
19659
19660 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
19661 PyObject *resultobj;
19662 wxListEvent *arg1 = (wxListEvent *) 0 ;
19663 long result;
19664 PyObject * obj0 = 0 ;
19665 char *kwnames[] = {
19666 (char *) "self", NULL
19667 };
19668
19669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
19670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19671 {
19672 PyThreadState* __tstate = wxPyBeginAllowThreads();
19673 result = (long)(arg1)->GetCacheFrom();
19674
19675 wxPyEndAllowThreads(__tstate);
19676 if (PyErr_Occurred()) SWIG_fail;
19677 }
19678 resultobj = SWIG_PyObj_FromLong((long)result);
19679 return resultobj;
19680 fail:
19681 return NULL;
19682 }
19683
19684
19685 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19686 PyObject *resultobj;
19687 wxListEvent *arg1 = (wxListEvent *) 0 ;
19688 long result;
19689 PyObject * obj0 = 0 ;
19690 char *kwnames[] = {
19691 (char *) "self", NULL
19692 };
19693
19694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
19695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19696 {
19697 PyThreadState* __tstate = wxPyBeginAllowThreads();
19698 result = (long)(arg1)->GetCacheTo();
19699
19700 wxPyEndAllowThreads(__tstate);
19701 if (PyErr_Occurred()) SWIG_fail;
19702 }
19703 resultobj = SWIG_PyObj_FromLong((long)result);
19704 return resultobj;
19705 fail:
19706 return NULL;
19707 }
19708
19709
19710 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
19711 PyObject *resultobj;
19712 wxListEvent *arg1 = (wxListEvent *) 0 ;
19713 bool result;
19714 PyObject * obj0 = 0 ;
19715 char *kwnames[] = {
19716 (char *) "self", NULL
19717 };
19718
19719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
19720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19721 {
19722 PyThreadState* __tstate = wxPyBeginAllowThreads();
19723 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
19724
19725 wxPyEndAllowThreads(__tstate);
19726 if (PyErr_Occurred()) SWIG_fail;
19727 }
19728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19729 return resultobj;
19730 fail:
19731 return NULL;
19732 }
19733
19734
19735 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
19736 PyObject *resultobj;
19737 wxListEvent *arg1 = (wxListEvent *) 0 ;
19738 bool arg2 ;
19739 PyObject * obj0 = 0 ;
19740 PyObject * obj1 = 0 ;
19741 char *kwnames[] = {
19742 (char *) "self",(char *) "editCancelled", NULL
19743 };
19744
19745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
19746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19747 {
19748 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
19751 {
19752 PyThreadState* __tstate = wxPyBeginAllowThreads();
19753 (arg1)->SetEditCanceled(arg2);
19754
19755 wxPyEndAllowThreads(__tstate);
19756 if (PyErr_Occurred()) SWIG_fail;
19757 }
19758 Py_INCREF(Py_None); resultobj = Py_None;
19759 return resultobj;
19760 fail:
19761 return NULL;
19762 }
19763
19764
19765 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
19766 PyObject *obj;
19767 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19768 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
19769 Py_INCREF(obj);
19770 return Py_BuildValue((char *)"");
19771 }
19772 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
19773 PyObject *resultobj;
19774 wxWindow *arg1 = (wxWindow *) 0 ;
19775 int arg2 = (int) -1 ;
19776 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19777 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19778 wxSize const &arg4_defvalue = wxDefaultSize ;
19779 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19780 long arg5 = (long) wxLC_ICON ;
19781 wxValidator const &arg6_defvalue = wxDefaultValidator ;
19782 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
19783 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
19784 wxString *arg7 = (wxString *) &arg7_defvalue ;
19785 wxPyListCtrl *result;
19786 wxPoint temp3 ;
19787 wxSize temp4 ;
19788 bool temp7 = False ;
19789 PyObject * obj0 = 0 ;
19790 PyObject * obj1 = 0 ;
19791 PyObject * obj2 = 0 ;
19792 PyObject * obj3 = 0 ;
19793 PyObject * obj4 = 0 ;
19794 PyObject * obj5 = 0 ;
19795 PyObject * obj6 = 0 ;
19796 char *kwnames[] = {
19797 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19798 };
19799
19800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19802 if (obj1) {
19803 {
19804 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19805 if (PyErr_Occurred()) SWIG_fail;
19806 }
19807 }
19808 if (obj2) {
19809 {
19810 arg3 = &temp3;
19811 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19812 }
19813 }
19814 if (obj3) {
19815 {
19816 arg4 = &temp4;
19817 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19818 }
19819 }
19820 if (obj4) {
19821 {
19822 arg5 = (long) SWIG_PyObj_AsLong(obj4);
19823 if (PyErr_Occurred()) SWIG_fail;
19824 }
19825 }
19826 if (obj5) {
19827 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19828 if (arg6 == NULL) {
19829 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19830 }
19831 }
19832 if (obj6) {
19833 {
19834 arg7 = wxString_in_helper(obj6);
19835 if (arg7 == NULL) SWIG_fail;
19836 temp7 = True;
19837 }
19838 }
19839 {
19840 PyThreadState* __tstate = wxPyBeginAllowThreads();
19841 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
19842
19843 wxPyEndAllowThreads(__tstate);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 }
19846 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1);
19847 {
19848 if (temp7)
19849 delete arg7;
19850 }
19851 return resultobj;
19852 fail:
19853 {
19854 if (temp7)
19855 delete arg7;
19856 }
19857 return NULL;
19858 }
19859
19860
19861 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
19862 PyObject *resultobj;
19863 wxPyListCtrl *result;
19864 char *kwnames[] = {
19865 NULL
19866 };
19867
19868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
19869 {
19870 PyThreadState* __tstate = wxPyBeginAllowThreads();
19871 result = (wxPyListCtrl *)new wxPyListCtrl();
19872
19873 wxPyEndAllowThreads(__tstate);
19874 if (PyErr_Occurred()) SWIG_fail;
19875 }
19876 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1);
19877 return resultobj;
19878 fail:
19879 return NULL;
19880 }
19881
19882
19883 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
19884 PyObject *resultobj;
19885 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
19886 wxWindow *arg2 = (wxWindow *) 0 ;
19887 int arg3 = (int) -1 ;
19888 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19889 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19890 wxSize const &arg5_defvalue = wxDefaultSize ;
19891 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19892 long arg6 = (long) wxLC_ICON ;
19893 wxValidator const &arg7_defvalue = wxDefaultValidator ;
19894 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
19895 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
19896 wxString *arg8 = (wxString *) &arg8_defvalue ;
19897 bool result;
19898 wxPoint temp4 ;
19899 wxSize temp5 ;
19900 bool temp8 = False ;
19901 PyObject * obj0 = 0 ;
19902 PyObject * obj1 = 0 ;
19903 PyObject * obj2 = 0 ;
19904 PyObject * obj3 = 0 ;
19905 PyObject * obj4 = 0 ;
19906 PyObject * obj5 = 0 ;
19907 PyObject * obj6 = 0 ;
19908 PyObject * obj7 = 0 ;
19909 char *kwnames[] = {
19910 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19911 };
19912
19913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
19914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19915 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19916 if (obj2) {
19917 {
19918 arg3 = (int) SWIG_PyObj_AsInt(obj2);
19919 if (PyErr_Occurred()) SWIG_fail;
19920 }
19921 }
19922 if (obj3) {
19923 {
19924 arg4 = &temp4;
19925 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19926 }
19927 }
19928 if (obj4) {
19929 {
19930 arg5 = &temp5;
19931 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
19932 }
19933 }
19934 if (obj5) {
19935 {
19936 arg6 = (long) SWIG_PyObj_AsLong(obj5);
19937 if (PyErr_Occurred()) SWIG_fail;
19938 }
19939 }
19940 if (obj6) {
19941 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19942 if (arg7 == NULL) {
19943 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19944 }
19945 }
19946 if (obj7) {
19947 {
19948 arg8 = wxString_in_helper(obj7);
19949 if (arg8 == NULL) SWIG_fail;
19950 temp8 = True;
19951 }
19952 }
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
19956
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19961 {
19962 if (temp8)
19963 delete arg8;
19964 }
19965 return resultobj;
19966 fail:
19967 {
19968 if (temp8)
19969 delete arg8;
19970 }
19971 return NULL;
19972 }
19973
19974
19975 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
19976 PyObject *resultobj;
19977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
19978 PyObject *arg2 = (PyObject *) 0 ;
19979 PyObject *arg3 = (PyObject *) 0 ;
19980 PyObject * obj0 = 0 ;
19981 PyObject * obj1 = 0 ;
19982 PyObject * obj2 = 0 ;
19983 char *kwnames[] = {
19984 (char *) "self",(char *) "self",(char *) "_class", NULL
19985 };
19986
19987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19989 arg2 = obj1;
19990 arg3 = obj2;
19991 {
19992 PyThreadState* __tstate = wxPyBeginAllowThreads();
19993 (arg1)->_setCallbackInfo(arg2,arg3);
19994
19995 wxPyEndAllowThreads(__tstate);
19996 if (PyErr_Occurred()) SWIG_fail;
19997 }
19998 Py_INCREF(Py_None); resultobj = Py_None;
19999 return resultobj;
20000 fail:
20001 return NULL;
20002 }
20003
20004
20005 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20006 PyObject *resultobj;
20007 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20008 wxColour *arg2 = 0 ;
20009 bool result;
20010 wxColour temp2 ;
20011 PyObject * obj0 = 0 ;
20012 PyObject * obj1 = 0 ;
20013 char *kwnames[] = {
20014 (char *) "self",(char *) "col", NULL
20015 };
20016
20017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
20018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20019 {
20020 arg2 = &temp2;
20021 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20022 }
20023 {
20024 PyThreadState* __tstate = wxPyBeginAllowThreads();
20025 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
20026
20027 wxPyEndAllowThreads(__tstate);
20028 if (PyErr_Occurred()) SWIG_fail;
20029 }
20030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20031 return resultobj;
20032 fail:
20033 return NULL;
20034 }
20035
20036
20037 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20038 PyObject *resultobj;
20039 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20040 wxColour *arg2 = 0 ;
20041 bool result;
20042 wxColour temp2 ;
20043 PyObject * obj0 = 0 ;
20044 PyObject * obj1 = 0 ;
20045 char *kwnames[] = {
20046 (char *) "self",(char *) "col", NULL
20047 };
20048
20049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20051 {
20052 arg2 = &temp2;
20053 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20054 }
20055 {
20056 PyThreadState* __tstate = wxPyBeginAllowThreads();
20057 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
20058
20059 wxPyEndAllowThreads(__tstate);
20060 if (PyErr_Occurred()) SWIG_fail;
20061 }
20062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20063 return resultobj;
20064 fail:
20065 return NULL;
20066 }
20067
20068
20069 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20070 PyObject *resultobj;
20071 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20072 int arg2 ;
20073 wxListItem *result;
20074 PyObject * obj0 = 0 ;
20075 PyObject * obj1 = 0 ;
20076 char *kwnames[] = {
20077 (char *) "self",(char *) "col", NULL
20078 };
20079
20080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
20081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20082 {
20083 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20084 if (PyErr_Occurred()) SWIG_fail;
20085 }
20086 {
20087 PyThreadState* __tstate = wxPyBeginAllowThreads();
20088 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
20089
20090 wxPyEndAllowThreads(__tstate);
20091 if (PyErr_Occurred()) SWIG_fail;
20092 }
20093 {
20094 resultobj = wxPyMake_wxObject(result);
20095 }
20096 return resultobj;
20097 fail:
20098 return NULL;
20099 }
20100
20101
20102 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20103 PyObject *resultobj;
20104 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20105 int arg2 ;
20106 wxListItem *arg3 = 0 ;
20107 bool result;
20108 PyObject * obj0 = 0 ;
20109 PyObject * obj1 = 0 ;
20110 PyObject * obj2 = 0 ;
20111 char *kwnames[] = {
20112 (char *) "self",(char *) "col",(char *) "item", NULL
20113 };
20114
20115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
20116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20117 {
20118 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20119 if (PyErr_Occurred()) SWIG_fail;
20120 }
20121 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20122 if (arg3 == NULL) {
20123 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20124 }
20125 {
20126 PyThreadState* __tstate = wxPyBeginAllowThreads();
20127 result = (bool)(arg1)->SetColumn(arg2,*arg3);
20128
20129 wxPyEndAllowThreads(__tstate);
20130 if (PyErr_Occurred()) SWIG_fail;
20131 }
20132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20133 return resultobj;
20134 fail:
20135 return NULL;
20136 }
20137
20138
20139 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20140 PyObject *resultobj;
20141 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20142 int arg2 ;
20143 int result;
20144 PyObject * obj0 = 0 ;
20145 PyObject * obj1 = 0 ;
20146 char *kwnames[] = {
20147 (char *) "self",(char *) "col", NULL
20148 };
20149
20150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
20151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20152 {
20153 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20154 if (PyErr_Occurred()) SWIG_fail;
20155 }
20156 {
20157 PyThreadState* __tstate = wxPyBeginAllowThreads();
20158 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
20159
20160 wxPyEndAllowThreads(__tstate);
20161 if (PyErr_Occurred()) SWIG_fail;
20162 }
20163 resultobj = SWIG_PyObj_FromInt((int)result);
20164 return resultobj;
20165 fail:
20166 return NULL;
20167 }
20168
20169
20170 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20171 PyObject *resultobj;
20172 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20173 int arg2 ;
20174 int arg3 ;
20175 bool result;
20176 PyObject * obj0 = 0 ;
20177 PyObject * obj1 = 0 ;
20178 PyObject * obj2 = 0 ;
20179 char *kwnames[] = {
20180 (char *) "self",(char *) "col",(char *) "width", NULL
20181 };
20182
20183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20185 {
20186 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20187 if (PyErr_Occurred()) SWIG_fail;
20188 }
20189 {
20190 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20191 if (PyErr_Occurred()) SWIG_fail;
20192 }
20193 {
20194 PyThreadState* __tstate = wxPyBeginAllowThreads();
20195 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
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_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
20208 PyObject *resultobj;
20209 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20210 int result;
20211 PyObject * obj0 = 0 ;
20212 char *kwnames[] = {
20213 (char *) "self", NULL
20214 };
20215
20216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
20217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20218 {
20219 PyThreadState* __tstate = wxPyBeginAllowThreads();
20220 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
20221
20222 wxPyEndAllowThreads(__tstate);
20223 if (PyErr_Occurred()) SWIG_fail;
20224 }
20225 resultobj = SWIG_PyObj_FromInt((int)result);
20226 return resultobj;
20227 fail:
20228 return NULL;
20229 }
20230
20231
20232 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj;
20234 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20235 wxRect result;
20236 PyObject * obj0 = 0 ;
20237 char *kwnames[] = {
20238 (char *) "self", NULL
20239 };
20240
20241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
20242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20243 {
20244 PyThreadState* __tstate = wxPyBeginAllowThreads();
20245 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
20246
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 {
20251 wxRect * resultptr;
20252 resultptr = new wxRect((wxRect &) result);
20253 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
20254 }
20255 return resultobj;
20256 fail:
20257 return NULL;
20258 }
20259
20260
20261 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20262 PyObject *resultobj;
20263 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20264 long arg2 ;
20265 int arg3 = (int) 0 ;
20266 wxListItem *result;
20267 PyObject * obj0 = 0 ;
20268 PyObject * obj1 = 0 ;
20269 PyObject * obj2 = 0 ;
20270 char *kwnames[] = {
20271 (char *) "self",(char *) "itemId",(char *) "col", NULL
20272 };
20273
20274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
20275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20276 {
20277 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20278 if (PyErr_Occurred()) SWIG_fail;
20279 }
20280 if (obj2) {
20281 {
20282 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20283 if (PyErr_Occurred()) SWIG_fail;
20284 }
20285 }
20286 {
20287 PyThreadState* __tstate = wxPyBeginAllowThreads();
20288 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
20289
20290 wxPyEndAllowThreads(__tstate);
20291 if (PyErr_Occurred()) SWIG_fail;
20292 }
20293 {
20294 resultobj = wxPyMake_wxObject(result);
20295 }
20296 return resultobj;
20297 fail:
20298 return NULL;
20299 }
20300
20301
20302 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20303 PyObject *resultobj;
20304 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20305 wxListItem *arg2 = 0 ;
20306 bool result;
20307 PyObject * obj0 = 0 ;
20308 PyObject * obj1 = 0 ;
20309 char *kwnames[] = {
20310 (char *) "self",(char *) "info", NULL
20311 };
20312
20313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
20314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20315 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20316 if (arg2 == NULL) {
20317 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20318 }
20319 {
20320 PyThreadState* __tstate = wxPyBeginAllowThreads();
20321 result = (bool)(arg1)->SetItem(*arg2);
20322
20323 wxPyEndAllowThreads(__tstate);
20324 if (PyErr_Occurred()) SWIG_fail;
20325 }
20326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20327 return resultobj;
20328 fail:
20329 return NULL;
20330 }
20331
20332
20333 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20334 PyObject *resultobj;
20335 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20336 long arg2 ;
20337 int arg3 ;
20338 wxString *arg4 = 0 ;
20339 int arg5 = (int) -1 ;
20340 long result;
20341 bool temp4 = False ;
20342 PyObject * obj0 = 0 ;
20343 PyObject * obj1 = 0 ;
20344 PyObject * obj2 = 0 ;
20345 PyObject * obj3 = 0 ;
20346 PyObject * obj4 = 0 ;
20347 char *kwnames[] = {
20348 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
20349 };
20350
20351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20353 {
20354 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20355 if (PyErr_Occurred()) SWIG_fail;
20356 }
20357 {
20358 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20359 if (PyErr_Occurred()) SWIG_fail;
20360 }
20361 {
20362 arg4 = wxString_in_helper(obj3);
20363 if (arg4 == NULL) SWIG_fail;
20364 temp4 = True;
20365 }
20366 if (obj4) {
20367 {
20368 arg5 = (int) SWIG_PyObj_AsInt(obj4);
20369 if (PyErr_Occurred()) SWIG_fail;
20370 }
20371 }
20372 {
20373 PyThreadState* __tstate = wxPyBeginAllowThreads();
20374 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
20375
20376 wxPyEndAllowThreads(__tstate);
20377 if (PyErr_Occurred()) SWIG_fail;
20378 }
20379 resultobj = SWIG_PyObj_FromLong((long)result);
20380 {
20381 if (temp4)
20382 delete arg4;
20383 }
20384 return resultobj;
20385 fail:
20386 {
20387 if (temp4)
20388 delete arg4;
20389 }
20390 return NULL;
20391 }
20392
20393
20394 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20395 PyObject *resultobj;
20396 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20397 long arg2 ;
20398 long arg3 ;
20399 int result;
20400 PyObject * obj0 = 0 ;
20401 PyObject * obj1 = 0 ;
20402 PyObject * obj2 = 0 ;
20403 char *kwnames[] = {
20404 (char *) "self",(char *) "item",(char *) "stateMask", NULL
20405 };
20406
20407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
20408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20409 {
20410 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20411 if (PyErr_Occurred()) SWIG_fail;
20412 }
20413 {
20414 arg3 = (long) SWIG_PyObj_AsLong(obj2);
20415 if (PyErr_Occurred()) SWIG_fail;
20416 }
20417 {
20418 PyThreadState* __tstate = wxPyBeginAllowThreads();
20419 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
20420
20421 wxPyEndAllowThreads(__tstate);
20422 if (PyErr_Occurred()) SWIG_fail;
20423 }
20424 resultobj = SWIG_PyObj_FromInt((int)result);
20425 return resultobj;
20426 fail:
20427 return NULL;
20428 }
20429
20430
20431 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20432 PyObject *resultobj;
20433 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20434 long arg2 ;
20435 long arg3 ;
20436 long arg4 ;
20437 bool result;
20438 PyObject * obj0 = 0 ;
20439 PyObject * obj1 = 0 ;
20440 PyObject * obj2 = 0 ;
20441 PyObject * obj3 = 0 ;
20442 char *kwnames[] = {
20443 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
20444 };
20445
20446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20448 {
20449 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20450 if (PyErr_Occurred()) SWIG_fail;
20451 }
20452 {
20453 arg3 = (long) SWIG_PyObj_AsLong(obj2);
20454 if (PyErr_Occurred()) SWIG_fail;
20455 }
20456 {
20457 arg4 = (long) SWIG_PyObj_AsLong(obj3);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 {
20461 PyThreadState* __tstate = wxPyBeginAllowThreads();
20462 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
20463
20464 wxPyEndAllowThreads(__tstate);
20465 if (PyErr_Occurred()) SWIG_fail;
20466 }
20467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20468 return resultobj;
20469 fail:
20470 return NULL;
20471 }
20472
20473
20474 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20475 PyObject *resultobj;
20476 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20477 long arg2 ;
20478 int arg3 ;
20479 int arg4 ;
20480 bool result;
20481 PyObject * obj0 = 0 ;
20482 PyObject * obj1 = 0 ;
20483 PyObject * obj2 = 0 ;
20484 PyObject * obj3 = 0 ;
20485 char *kwnames[] = {
20486 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
20487 };
20488
20489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20491 {
20492 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20493 if (PyErr_Occurred()) SWIG_fail;
20494 }
20495 {
20496 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20497 if (PyErr_Occurred()) SWIG_fail;
20498 }
20499 {
20500 arg4 = (int) SWIG_PyObj_AsInt(obj3);
20501 if (PyErr_Occurred()) SWIG_fail;
20502 }
20503 {
20504 PyThreadState* __tstate = wxPyBeginAllowThreads();
20505 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
20506
20507 wxPyEndAllowThreads(__tstate);
20508 if (PyErr_Occurred()) SWIG_fail;
20509 }
20510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20511 return resultobj;
20512 fail:
20513 return NULL;
20514 }
20515
20516
20517 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
20518 PyObject *resultobj;
20519 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20520 long arg2 ;
20521 wxString result;
20522 PyObject * obj0 = 0 ;
20523 PyObject * obj1 = 0 ;
20524 char *kwnames[] = {
20525 (char *) "self",(char *) "item", NULL
20526 };
20527
20528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
20529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20530 {
20531 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20532 if (PyErr_Occurred()) SWIG_fail;
20533 }
20534 {
20535 PyThreadState* __tstate = wxPyBeginAllowThreads();
20536 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
20537
20538 wxPyEndAllowThreads(__tstate);
20539 if (PyErr_Occurred()) SWIG_fail;
20540 }
20541 {
20542 #if wxUSE_UNICODE
20543 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20544 #else
20545 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20546 #endif
20547 }
20548 return resultobj;
20549 fail:
20550 return NULL;
20551 }
20552
20553
20554 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
20555 PyObject *resultobj;
20556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20557 long arg2 ;
20558 wxString *arg3 = 0 ;
20559 bool temp3 = False ;
20560 PyObject * obj0 = 0 ;
20561 PyObject * obj1 = 0 ;
20562 PyObject * obj2 = 0 ;
20563 char *kwnames[] = {
20564 (char *) "self",(char *) "item",(char *) "str", NULL
20565 };
20566
20567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
20568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20569 {
20570 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20571 if (PyErr_Occurred()) SWIG_fail;
20572 }
20573 {
20574 arg3 = wxString_in_helper(obj2);
20575 if (arg3 == NULL) SWIG_fail;
20576 temp3 = True;
20577 }
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
20581
20582 wxPyEndAllowThreads(__tstate);
20583 if (PyErr_Occurred()) SWIG_fail;
20584 }
20585 Py_INCREF(Py_None); resultobj = Py_None;
20586 {
20587 if (temp3)
20588 delete arg3;
20589 }
20590 return resultobj;
20591 fail:
20592 {
20593 if (temp3)
20594 delete arg3;
20595 }
20596 return NULL;
20597 }
20598
20599
20600 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
20601 PyObject *resultobj;
20602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20603 long arg2 ;
20604 long result;
20605 PyObject * obj0 = 0 ;
20606 PyObject * obj1 = 0 ;
20607 char *kwnames[] = {
20608 (char *) "self",(char *) "item", NULL
20609 };
20610
20611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
20612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20613 {
20614 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20615 if (PyErr_Occurred()) SWIG_fail;
20616 }
20617 {
20618 PyThreadState* __tstate = wxPyBeginAllowThreads();
20619 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
20620
20621 wxPyEndAllowThreads(__tstate);
20622 if (PyErr_Occurred()) SWIG_fail;
20623 }
20624 resultobj = SWIG_PyObj_FromLong((long)result);
20625 return resultobj;
20626 fail:
20627 return NULL;
20628 }
20629
20630
20631 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
20632 PyObject *resultobj;
20633 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20634 long arg2 ;
20635 long arg3 ;
20636 bool result;
20637 PyObject * obj0 = 0 ;
20638 PyObject * obj1 = 0 ;
20639 PyObject * obj2 = 0 ;
20640 char *kwnames[] = {
20641 (char *) "self",(char *) "item",(char *) "data", NULL
20642 };
20643
20644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
20645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20646 {
20647 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 {
20651 arg3 = (long) SWIG_PyObj_AsLong(obj2);
20652 if (PyErr_Occurred()) SWIG_fail;
20653 }
20654 {
20655 PyThreadState* __tstate = wxPyBeginAllowThreads();
20656 result = (bool)(arg1)->SetItemData(arg2,arg3);
20657
20658 wxPyEndAllowThreads(__tstate);
20659 if (PyErr_Occurred()) SWIG_fail;
20660 }
20661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20662 return resultobj;
20663 fail:
20664 return NULL;
20665 }
20666
20667
20668 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
20669 PyObject *resultobj;
20670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20671 long arg2 ;
20672 wxPoint result;
20673 PyObject * obj0 = 0 ;
20674 PyObject * obj1 = 0 ;
20675 char *kwnames[] = {
20676 (char *) "self",(char *) "item", NULL
20677 };
20678
20679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
20680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20681 {
20682 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20683 if (PyErr_Occurred()) SWIG_fail;
20684 }
20685 {
20686 PyThreadState* __tstate = wxPyBeginAllowThreads();
20687 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
20688
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 {
20693 wxPoint * resultptr;
20694 resultptr = new wxPoint((wxPoint &) result);
20695 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
20696 }
20697 return resultobj;
20698 fail:
20699 return NULL;
20700 }
20701
20702
20703 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20704 PyObject *resultobj;
20705 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20706 long arg2 ;
20707 int arg3 = (int) wxLIST_RECT_BOUNDS ;
20708 wxRect result;
20709 PyObject * obj0 = 0 ;
20710 PyObject * obj1 = 0 ;
20711 PyObject * obj2 = 0 ;
20712 char *kwnames[] = {
20713 (char *) "self",(char *) "item",(char *) "code", NULL
20714 };
20715
20716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
20717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20718 {
20719 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20720 if (PyErr_Occurred()) SWIG_fail;
20721 }
20722 if (obj2) {
20723 {
20724 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20725 if (PyErr_Occurred()) SWIG_fail;
20726 }
20727 }
20728 {
20729 PyThreadState* __tstate = wxPyBeginAllowThreads();
20730 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
20731
20732 wxPyEndAllowThreads(__tstate);
20733 if (PyErr_Occurred()) SWIG_fail;
20734 }
20735 {
20736 wxRect * resultptr;
20737 resultptr = new wxRect((wxRect &) result);
20738 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
20739 }
20740 return resultobj;
20741 fail:
20742 return NULL;
20743 }
20744
20745
20746 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
20747 PyObject *resultobj;
20748 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20749 long arg2 ;
20750 wxPoint *arg3 = 0 ;
20751 bool result;
20752 wxPoint temp3 ;
20753 PyObject * obj0 = 0 ;
20754 PyObject * obj1 = 0 ;
20755 PyObject * obj2 = 0 ;
20756 char *kwnames[] = {
20757 (char *) "self",(char *) "item",(char *) "pos", NULL
20758 };
20759
20760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
20761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20762 {
20763 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20764 if (PyErr_Occurred()) SWIG_fail;
20765 }
20766 {
20767 arg3 = &temp3;
20768 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20769 }
20770 {
20771 PyThreadState* __tstate = wxPyBeginAllowThreads();
20772 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
20773
20774 wxPyEndAllowThreads(__tstate);
20775 if (PyErr_Occurred()) SWIG_fail;
20776 }
20777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20778 return resultobj;
20779 fail:
20780 return NULL;
20781 }
20782
20783
20784 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
20785 PyObject *resultobj;
20786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20787 int result;
20788 PyObject * obj0 = 0 ;
20789 char *kwnames[] = {
20790 (char *) "self", NULL
20791 };
20792
20793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
20794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20795 {
20796 PyThreadState* __tstate = wxPyBeginAllowThreads();
20797 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
20798
20799 wxPyEndAllowThreads(__tstate);
20800 if (PyErr_Occurred()) SWIG_fail;
20801 }
20802 resultobj = SWIG_PyObj_FromInt((int)result);
20803 return resultobj;
20804 fail:
20805 return NULL;
20806 }
20807
20808
20809 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
20810 PyObject *resultobj;
20811 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20812 int result;
20813 PyObject * obj0 = 0 ;
20814 char *kwnames[] = {
20815 (char *) "self", NULL
20816 };
20817
20818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
20819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20820 {
20821 PyThreadState* __tstate = wxPyBeginAllowThreads();
20822 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
20823
20824 wxPyEndAllowThreads(__tstate);
20825 if (PyErr_Occurred()) SWIG_fail;
20826 }
20827 resultobj = SWIG_PyObj_FromInt((int)result);
20828 return resultobj;
20829 fail:
20830 return NULL;
20831 }
20832
20833
20834 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
20835 PyObject *resultobj;
20836 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20837 wxSize result;
20838 PyObject * obj0 = 0 ;
20839 char *kwnames[] = {
20840 (char *) "self", NULL
20841 };
20842
20843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
20844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20845 {
20846 PyThreadState* __tstate = wxPyBeginAllowThreads();
20847 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
20848
20849 wxPyEndAllowThreads(__tstate);
20850 if (PyErr_Occurred()) SWIG_fail;
20851 }
20852 {
20853 wxSize * resultptr;
20854 resultptr = new wxSize((wxSize &) result);
20855 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
20856 }
20857 return resultobj;
20858 fail:
20859 return NULL;
20860 }
20861
20862
20863 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
20864 PyObject *resultobj;
20865 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20866 int arg2 ;
20867 bool arg3 = (bool) False ;
20868 PyObject * obj0 = 0 ;
20869 PyObject * obj1 = 0 ;
20870 PyObject * obj2 = 0 ;
20871 char *kwnames[] = {
20872 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
20873 };
20874
20875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
20876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20877 {
20878 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20879 if (PyErr_Occurred()) SWIG_fail;
20880 }
20881 if (obj2) {
20882 {
20883 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
20884 if (PyErr_Occurred()) SWIG_fail;
20885 }
20886 }
20887 {
20888 PyThreadState* __tstate = wxPyBeginAllowThreads();
20889 (arg1)->SetItemSpacing(arg2,arg3);
20890
20891 wxPyEndAllowThreads(__tstate);
20892 if (PyErr_Occurred()) SWIG_fail;
20893 }
20894 Py_INCREF(Py_None); resultobj = Py_None;
20895 return resultobj;
20896 fail:
20897 return NULL;
20898 }
20899
20900
20901 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
20902 PyObject *resultobj;
20903 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20904 int result;
20905 PyObject * obj0 = 0 ;
20906 char *kwnames[] = {
20907 (char *) "self", NULL
20908 };
20909
20910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
20911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20912 {
20913 PyThreadState* __tstate = wxPyBeginAllowThreads();
20914 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
20915
20916 wxPyEndAllowThreads(__tstate);
20917 if (PyErr_Occurred()) SWIG_fail;
20918 }
20919 resultobj = SWIG_PyObj_FromInt((int)result);
20920 return resultobj;
20921 fail:
20922 return NULL;
20923 }
20924
20925
20926 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20927 PyObject *resultobj;
20928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20929 wxColour result;
20930 PyObject * obj0 = 0 ;
20931 char *kwnames[] = {
20932 (char *) "self", NULL
20933 };
20934
20935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
20936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20937 {
20938 PyThreadState* __tstate = wxPyBeginAllowThreads();
20939 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
20940
20941 wxPyEndAllowThreads(__tstate);
20942 if (PyErr_Occurred()) SWIG_fail;
20943 }
20944 {
20945 wxColour * resultptr;
20946 resultptr = new wxColour((wxColour &) result);
20947 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
20948 }
20949 return resultobj;
20950 fail:
20951 return NULL;
20952 }
20953
20954
20955 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20956 PyObject *resultobj;
20957 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20958 wxColour *arg2 = 0 ;
20959 wxColour temp2 ;
20960 PyObject * obj0 = 0 ;
20961 PyObject * obj1 = 0 ;
20962 char *kwnames[] = {
20963 (char *) "self",(char *) "col", NULL
20964 };
20965
20966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
20967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20968 {
20969 arg2 = &temp2;
20970 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20971 }
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 (arg1)->SetTextColour((wxColour const &)*arg2);
20975
20976 wxPyEndAllowThreads(__tstate);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 }
20979 Py_INCREF(Py_None); resultobj = Py_None;
20980 return resultobj;
20981 fail:
20982 return NULL;
20983 }
20984
20985
20986 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20987 PyObject *resultobj;
20988 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20989 long result;
20990 PyObject * obj0 = 0 ;
20991 char *kwnames[] = {
20992 (char *) "self", NULL
20993 };
20994
20995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
20996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
21000
21001 wxPyEndAllowThreads(__tstate);
21002 if (PyErr_Occurred()) SWIG_fail;
21003 }
21004 resultobj = SWIG_PyObj_FromLong((long)result);
21005 return resultobj;
21006 fail:
21007 return NULL;
21008 }
21009
21010
21011 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
21012 PyObject *resultobj;
21013 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21014 long arg2 ;
21015 bool arg3 = (bool) True ;
21016 PyObject * obj0 = 0 ;
21017 PyObject * obj1 = 0 ;
21018 PyObject * obj2 = 0 ;
21019 char *kwnames[] = {
21020 (char *) "self",(char *) "style",(char *) "add", NULL
21021 };
21022
21023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
21024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21025 {
21026 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21027 if (PyErr_Occurred()) SWIG_fail;
21028 }
21029 if (obj2) {
21030 {
21031 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
21032 if (PyErr_Occurred()) SWIG_fail;
21033 }
21034 }
21035 {
21036 PyThreadState* __tstate = wxPyBeginAllowThreads();
21037 (arg1)->SetSingleStyle(arg2,arg3);
21038
21039 wxPyEndAllowThreads(__tstate);
21040 if (PyErr_Occurred()) SWIG_fail;
21041 }
21042 Py_INCREF(Py_None); resultobj = Py_None;
21043 return resultobj;
21044 fail:
21045 return NULL;
21046 }
21047
21048
21049 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
21050 PyObject *resultobj;
21051 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21052 long arg2 ;
21053 PyObject * obj0 = 0 ;
21054 PyObject * obj1 = 0 ;
21055 char *kwnames[] = {
21056 (char *) "self",(char *) "style", NULL
21057 };
21058
21059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
21060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21061 {
21062 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21063 if (PyErr_Occurred()) SWIG_fail;
21064 }
21065 {
21066 PyThreadState* __tstate = wxPyBeginAllowThreads();
21067 (arg1)->SetWindowStyleFlag(arg2);
21068
21069 wxPyEndAllowThreads(__tstate);
21070 if (PyErr_Occurred()) SWIG_fail;
21071 }
21072 Py_INCREF(Py_None); resultobj = Py_None;
21073 return resultobj;
21074 fail:
21075 return NULL;
21076 }
21077
21078
21079 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21080 PyObject *resultobj;
21081 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21082 long arg2 ;
21083 int arg3 = (int) wxLIST_NEXT_ALL ;
21084 int arg4 = (int) wxLIST_STATE_DONTCARE ;
21085 long result;
21086 PyObject * obj0 = 0 ;
21087 PyObject * obj1 = 0 ;
21088 PyObject * obj2 = 0 ;
21089 PyObject * obj3 = 0 ;
21090 char *kwnames[] = {
21091 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
21092 };
21093
21094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21096 {
21097 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21098 if (PyErr_Occurred()) SWIG_fail;
21099 }
21100 if (obj2) {
21101 {
21102 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21103 if (PyErr_Occurred()) SWIG_fail;
21104 }
21105 }
21106 if (obj3) {
21107 {
21108 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21109 if (PyErr_Occurred()) SWIG_fail;
21110 }
21111 }
21112 {
21113 PyThreadState* __tstate = wxPyBeginAllowThreads();
21114 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
21115
21116 wxPyEndAllowThreads(__tstate);
21117 if (PyErr_Occurred()) SWIG_fail;
21118 }
21119 resultobj = SWIG_PyObj_FromLong((long)result);
21120 return resultobj;
21121 fail:
21122 return NULL;
21123 }
21124
21125
21126 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21127 PyObject *resultobj;
21128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21129 int arg2 ;
21130 wxImageList *result;
21131 PyObject * obj0 = 0 ;
21132 PyObject * obj1 = 0 ;
21133 char *kwnames[] = {
21134 (char *) "self",(char *) "which", NULL
21135 };
21136
21137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
21138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21139 {
21140 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21141 if (PyErr_Occurred()) SWIG_fail;
21142 }
21143 {
21144 PyThreadState* __tstate = wxPyBeginAllowThreads();
21145 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
21146
21147 wxPyEndAllowThreads(__tstate);
21148 if (PyErr_Occurred()) SWIG_fail;
21149 }
21150 {
21151 resultobj = wxPyMake_wxObject(result);
21152 }
21153 return resultobj;
21154 fail:
21155 return NULL;
21156 }
21157
21158
21159 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21160 PyObject *resultobj;
21161 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21162 wxImageList *arg2 = (wxImageList *) 0 ;
21163 int arg3 ;
21164 PyObject * obj0 = 0 ;
21165 PyObject * obj1 = 0 ;
21166 PyObject * obj2 = 0 ;
21167 char *kwnames[] = {
21168 (char *) "self",(char *) "imageList",(char *) "which", NULL
21169 };
21170
21171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21173 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21174 {
21175 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 {
21179 PyThreadState* __tstate = wxPyBeginAllowThreads();
21180 (arg1)->SetImageList(arg2,arg3);
21181
21182 wxPyEndAllowThreads(__tstate);
21183 if (PyErr_Occurred()) SWIG_fail;
21184 }
21185 Py_INCREF(Py_None); resultobj = Py_None;
21186 return resultobj;
21187 fail:
21188 return NULL;
21189 }
21190
21191
21192 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21193 PyObject *resultobj;
21194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21195 wxImageList *arg2 = (wxImageList *) 0 ;
21196 int arg3 ;
21197 PyObject * obj0 = 0 ;
21198 PyObject * obj1 = 0 ;
21199 PyObject * obj2 = 0 ;
21200 char *kwnames[] = {
21201 (char *) "self",(char *) "imageList",(char *) "which", NULL
21202 };
21203
21204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21206 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
21207 {
21208 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 {
21212 PyThreadState* __tstate = wxPyBeginAllowThreads();
21213 (arg1)->AssignImageList(arg2,arg3);
21214
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 Py_INCREF(Py_None); resultobj = Py_None;
21219 return resultobj;
21220 fail:
21221 return NULL;
21222 }
21223
21224
21225 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
21226 PyObject *resultobj;
21227 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21228 bool result;
21229 PyObject * obj0 = 0 ;
21230 char *kwnames[] = {
21231 (char *) "self", NULL
21232 };
21233
21234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
21235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21236 {
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
21239
21240 wxPyEndAllowThreads(__tstate);
21241 if (PyErr_Occurred()) SWIG_fail;
21242 }
21243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21244 return resultobj;
21245 fail:
21246 return NULL;
21247 }
21248
21249
21250 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21251 PyObject *resultobj;
21252 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21253 long arg2 ;
21254 PyObject * obj0 = 0 ;
21255 PyObject * obj1 = 0 ;
21256 char *kwnames[] = {
21257 (char *) "self",(char *) "item", NULL
21258 };
21259
21260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
21261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21262 {
21263 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21264 if (PyErr_Occurred()) SWIG_fail;
21265 }
21266 {
21267 PyThreadState* __tstate = wxPyBeginAllowThreads();
21268 (arg1)->RefreshItem(arg2);
21269
21270 wxPyEndAllowThreads(__tstate);
21271 if (PyErr_Occurred()) SWIG_fail;
21272 }
21273 Py_INCREF(Py_None); resultobj = Py_None;
21274 return resultobj;
21275 fail:
21276 return NULL;
21277 }
21278
21279
21280 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21281 PyObject *resultobj;
21282 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21283 long arg2 ;
21284 long arg3 ;
21285 PyObject * obj0 = 0 ;
21286 PyObject * obj1 = 0 ;
21287 PyObject * obj2 = 0 ;
21288 char *kwnames[] = {
21289 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
21290 };
21291
21292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
21293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21294 {
21295 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21296 if (PyErr_Occurred()) SWIG_fail;
21297 }
21298 {
21299 arg3 = (long) SWIG_PyObj_AsLong(obj2);
21300 if (PyErr_Occurred()) SWIG_fail;
21301 }
21302 {
21303 PyThreadState* __tstate = wxPyBeginAllowThreads();
21304 (arg1)->RefreshItems(arg2,arg3);
21305
21306 wxPyEndAllowThreads(__tstate);
21307 if (PyErr_Occurred()) SWIG_fail;
21308 }
21309 Py_INCREF(Py_None); resultobj = Py_None;
21310 return resultobj;
21311 fail:
21312 return NULL;
21313 }
21314
21315
21316 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
21317 PyObject *resultobj;
21318 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21319 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
21320 bool result;
21321 PyObject * obj0 = 0 ;
21322 PyObject * obj1 = 0 ;
21323 char *kwnames[] = {
21324 (char *) "self",(char *) "flag", NULL
21325 };
21326
21327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
21328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21329 if (obj1) {
21330 {
21331 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21332 if (PyErr_Occurred()) SWIG_fail;
21333 }
21334 }
21335 {
21336 PyThreadState* __tstate = wxPyBeginAllowThreads();
21337 result = (bool)(arg1)->Arrange(arg2);
21338
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21343 return resultobj;
21344 fail:
21345 return NULL;
21346 }
21347
21348
21349 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21350 PyObject *resultobj;
21351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21352 long arg2 ;
21353 bool result;
21354 PyObject * obj0 = 0 ;
21355 PyObject * obj1 = 0 ;
21356 char *kwnames[] = {
21357 (char *) "self",(char *) "item", NULL
21358 };
21359
21360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
21361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21362 {
21363 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21364 if (PyErr_Occurred()) SWIG_fail;
21365 }
21366 {
21367 PyThreadState* __tstate = wxPyBeginAllowThreads();
21368 result = (bool)(arg1)->DeleteItem(arg2);
21369
21370 wxPyEndAllowThreads(__tstate);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21374 return resultobj;
21375 fail:
21376 return NULL;
21377 }
21378
21379
21380 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21381 PyObject *resultobj;
21382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21383 bool result;
21384 PyObject * obj0 = 0 ;
21385 char *kwnames[] = {
21386 (char *) "self", NULL
21387 };
21388
21389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
21390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21391 {
21392 PyThreadState* __tstate = wxPyBeginAllowThreads();
21393 result = (bool)(arg1)->DeleteAllItems();
21394
21395 wxPyEndAllowThreads(__tstate);
21396 if (PyErr_Occurred()) SWIG_fail;
21397 }
21398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21399 return resultobj;
21400 fail:
21401 return NULL;
21402 }
21403
21404
21405 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21406 PyObject *resultobj;
21407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21408 int arg2 ;
21409 bool result;
21410 PyObject * obj0 = 0 ;
21411 PyObject * obj1 = 0 ;
21412 char *kwnames[] = {
21413 (char *) "self",(char *) "col", NULL
21414 };
21415
21416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
21417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21418 {
21419 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21420 if (PyErr_Occurred()) SWIG_fail;
21421 }
21422 {
21423 PyThreadState* __tstate = wxPyBeginAllowThreads();
21424 result = (bool)(arg1)->DeleteColumn(arg2);
21425
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21430 return resultobj;
21431 fail:
21432 return NULL;
21433 }
21434
21435
21436 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
21437 PyObject *resultobj;
21438 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21439 bool result;
21440 PyObject * obj0 = 0 ;
21441 char *kwnames[] = {
21442 (char *) "self", NULL
21443 };
21444
21445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
21446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21447 {
21448 PyThreadState* __tstate = wxPyBeginAllowThreads();
21449 result = (bool)(arg1)->DeleteAllColumns();
21450
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21455 return resultobj;
21456 fail:
21457 return NULL;
21458 }
21459
21460
21461 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21462 PyObject *resultobj;
21463 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21464 PyObject * obj0 = 0 ;
21465 char *kwnames[] = {
21466 (char *) "self", NULL
21467 };
21468
21469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
21470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21471 {
21472 PyThreadState* __tstate = wxPyBeginAllowThreads();
21473 (arg1)->ClearAll();
21474
21475 wxPyEndAllowThreads(__tstate);
21476 if (PyErr_Occurred()) SWIG_fail;
21477 }
21478 Py_INCREF(Py_None); resultobj = Py_None;
21479 return resultobj;
21480 fail:
21481 return NULL;
21482 }
21483
21484
21485 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21486 PyObject *resultobj;
21487 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21488 long arg2 ;
21489 PyObject * obj0 = 0 ;
21490 PyObject * obj1 = 0 ;
21491 char *kwnames[] = {
21492 (char *) "self",(char *) "item", NULL
21493 };
21494
21495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
21496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21497 {
21498 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21499 if (PyErr_Occurred()) SWIG_fail;
21500 }
21501 {
21502 PyThreadState* __tstate = wxPyBeginAllowThreads();
21503 (arg1)->EditLabel(arg2);
21504
21505 wxPyEndAllowThreads(__tstate);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 Py_INCREF(Py_None); resultobj = Py_None;
21509 return resultobj;
21510 fail:
21511 return NULL;
21512 }
21513
21514
21515 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
21516 PyObject *resultobj;
21517 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21518 long arg2 ;
21519 bool result;
21520 PyObject * obj0 = 0 ;
21521 PyObject * obj1 = 0 ;
21522 char *kwnames[] = {
21523 (char *) "self",(char *) "item", NULL
21524 };
21525
21526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
21527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21528 {
21529 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21530 if (PyErr_Occurred()) SWIG_fail;
21531 }
21532 {
21533 PyThreadState* __tstate = wxPyBeginAllowThreads();
21534 result = (bool)(arg1)->EnsureVisible(arg2);
21535
21536 wxPyEndAllowThreads(__tstate);
21537 if (PyErr_Occurred()) SWIG_fail;
21538 }
21539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21540 return resultobj;
21541 fail:
21542 return NULL;
21543 }
21544
21545
21546 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21547 PyObject *resultobj;
21548 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21549 long arg2 ;
21550 wxString *arg3 = 0 ;
21551 bool arg4 = (bool) False ;
21552 long result;
21553 bool temp3 = False ;
21554 PyObject * obj0 = 0 ;
21555 PyObject * obj1 = 0 ;
21556 PyObject * obj2 = 0 ;
21557 PyObject * obj3 = 0 ;
21558 char *kwnames[] = {
21559 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
21560 };
21561
21562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21564 {
21565 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21566 if (PyErr_Occurred()) SWIG_fail;
21567 }
21568 {
21569 arg3 = wxString_in_helper(obj2);
21570 if (arg3 == NULL) SWIG_fail;
21571 temp3 = True;
21572 }
21573 if (obj3) {
21574 {
21575 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
21578 }
21579 {
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
21582
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 resultobj = SWIG_PyObj_FromLong((long)result);
21587 {
21588 if (temp3)
21589 delete arg3;
21590 }
21591 return resultobj;
21592 fail:
21593 {
21594 if (temp3)
21595 delete arg3;
21596 }
21597 return NULL;
21598 }
21599
21600
21601 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21602 PyObject *resultobj;
21603 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21604 long arg2 ;
21605 long arg3 ;
21606 long result;
21607 PyObject * obj0 = 0 ;
21608 PyObject * obj1 = 0 ;
21609 PyObject * obj2 = 0 ;
21610 char *kwnames[] = {
21611 (char *) "self",(char *) "start",(char *) "data", NULL
21612 };
21613
21614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21616 {
21617 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 {
21621 arg3 = (long) SWIG_PyObj_AsLong(obj2);
21622 if (PyErr_Occurred()) SWIG_fail;
21623 }
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = (long)(arg1)->FindItem(arg2,arg3);
21627
21628 wxPyEndAllowThreads(__tstate);
21629 if (PyErr_Occurred()) SWIG_fail;
21630 }
21631 resultobj = SWIG_PyObj_FromLong((long)result);
21632 return resultobj;
21633 fail:
21634 return NULL;
21635 }
21636
21637
21638 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
21639 PyObject *resultobj;
21640 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21641 long arg2 ;
21642 wxPoint *arg3 = 0 ;
21643 int arg4 ;
21644 long result;
21645 wxPoint temp3 ;
21646 PyObject * obj0 = 0 ;
21647 PyObject * obj1 = 0 ;
21648 PyObject * obj2 = 0 ;
21649 PyObject * obj3 = 0 ;
21650 char *kwnames[] = {
21651 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
21652 };
21653
21654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21656 {
21657 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21658 if (PyErr_Occurred()) SWIG_fail;
21659 }
21660 {
21661 arg3 = &temp3;
21662 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21663 }
21664 {
21665 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21666 if (PyErr_Occurred()) SWIG_fail;
21667 }
21668 {
21669 PyThreadState* __tstate = wxPyBeginAllowThreads();
21670 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
21671
21672 wxPyEndAllowThreads(__tstate);
21673 if (PyErr_Occurred()) SWIG_fail;
21674 }
21675 resultobj = SWIG_PyObj_FromLong((long)result);
21676 return resultobj;
21677 fail:
21678 return NULL;
21679 }
21680
21681
21682 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
21683 PyObject *resultobj;
21684 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21685 wxPoint *arg2 = 0 ;
21686 int *arg3 = 0 ;
21687 long result;
21688 wxPoint temp2 ;
21689 int temp3 ;
21690 PyObject * obj0 = 0 ;
21691 PyObject * obj1 = 0 ;
21692 char *kwnames[] = {
21693 (char *) "self",(char *) "point", NULL
21694 };
21695
21696 arg3 = &temp3;
21697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
21698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21699 {
21700 arg2 = &temp2;
21701 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21702 }
21703 {
21704 PyThreadState* __tstate = wxPyBeginAllowThreads();
21705 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
21706
21707 wxPyEndAllowThreads(__tstate);
21708 if (PyErr_Occurred()) SWIG_fail;
21709 }
21710 resultobj = SWIG_PyObj_FromLong((long)result);
21711 {
21712 PyObject *o = PyInt_FromLong((long) (*arg3));
21713 resultobj = t_output_helper(resultobj,o);
21714 }
21715 return resultobj;
21716 fail:
21717 return NULL;
21718 }
21719
21720
21721 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21722 PyObject *resultobj;
21723 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21724 wxListItem *arg2 = 0 ;
21725 long result;
21726 PyObject * obj0 = 0 ;
21727 PyObject * obj1 = 0 ;
21728 char *kwnames[] = {
21729 (char *) "self",(char *) "info", NULL
21730 };
21731
21732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
21733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21734 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21735 if (arg2 == NULL) {
21736 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21737 }
21738 {
21739 PyThreadState* __tstate = wxPyBeginAllowThreads();
21740 result = (long)(arg1)->InsertItem(*arg2);
21741
21742 wxPyEndAllowThreads(__tstate);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 }
21745 resultobj = SWIG_PyObj_FromLong((long)result);
21746 return resultobj;
21747 fail:
21748 return NULL;
21749 }
21750
21751
21752 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21753 PyObject *resultobj;
21754 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21755 long arg2 ;
21756 wxString *arg3 = 0 ;
21757 long result;
21758 bool temp3 = False ;
21759 PyObject * obj0 = 0 ;
21760 PyObject * obj1 = 0 ;
21761 PyObject * obj2 = 0 ;
21762 char *kwnames[] = {
21763 (char *) "self",(char *) "index",(char *) "label", NULL
21764 };
21765
21766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21768 {
21769 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 {
21773 arg3 = wxString_in_helper(obj2);
21774 if (arg3 == NULL) SWIG_fail;
21775 temp3 = True;
21776 }
21777 {
21778 PyThreadState* __tstate = wxPyBeginAllowThreads();
21779 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
21780
21781 wxPyEndAllowThreads(__tstate);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 }
21784 resultobj = SWIG_PyObj_FromLong((long)result);
21785 {
21786 if (temp3)
21787 delete arg3;
21788 }
21789 return resultobj;
21790 fail:
21791 {
21792 if (temp3)
21793 delete arg3;
21794 }
21795 return NULL;
21796 }
21797
21798
21799 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21800 PyObject *resultobj;
21801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21802 long arg2 ;
21803 int arg3 ;
21804 long result;
21805 PyObject * obj0 = 0 ;
21806 PyObject * obj1 = 0 ;
21807 PyObject * obj2 = 0 ;
21808 char *kwnames[] = {
21809 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
21810 };
21811
21812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21814 {
21815 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 {
21819 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21820 if (PyErr_Occurred()) SWIG_fail;
21821 }
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 result = (long)(arg1)->InsertItem(arg2,arg3);
21825
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 resultobj = SWIG_PyObj_FromLong((long)result);
21830 return resultobj;
21831 fail:
21832 return NULL;
21833 }
21834
21835
21836 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21837 PyObject *resultobj;
21838 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21839 long arg2 ;
21840 wxString *arg3 = 0 ;
21841 int arg4 ;
21842 long result;
21843 bool temp3 = False ;
21844 PyObject * obj0 = 0 ;
21845 PyObject * obj1 = 0 ;
21846 PyObject * obj2 = 0 ;
21847 PyObject * obj3 = 0 ;
21848 char *kwnames[] = {
21849 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
21850 };
21851
21852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21854 {
21855 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21856 if (PyErr_Occurred()) SWIG_fail;
21857 }
21858 {
21859 arg3 = wxString_in_helper(obj2);
21860 if (arg3 == NULL) SWIG_fail;
21861 temp3 = True;
21862 }
21863 {
21864 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 {
21868 PyThreadState* __tstate = wxPyBeginAllowThreads();
21869 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
21870
21871 wxPyEndAllowThreads(__tstate);
21872 if (PyErr_Occurred()) SWIG_fail;
21873 }
21874 resultobj = SWIG_PyObj_FromLong((long)result);
21875 {
21876 if (temp3)
21877 delete arg3;
21878 }
21879 return resultobj;
21880 fail:
21881 {
21882 if (temp3)
21883 delete arg3;
21884 }
21885 return NULL;
21886 }
21887
21888
21889 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21890 PyObject *resultobj;
21891 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21892 long arg2 ;
21893 wxListItem *arg3 = 0 ;
21894 long result;
21895 PyObject * obj0 = 0 ;
21896 PyObject * obj1 = 0 ;
21897 PyObject * obj2 = 0 ;
21898 char *kwnames[] = {
21899 (char *) "self",(char *) "col",(char *) "info", NULL
21900 };
21901
21902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21904 {
21905 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21906 if (PyErr_Occurred()) SWIG_fail;
21907 }
21908 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21909 if (arg3 == NULL) {
21910 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21911 }
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 result = (long)(arg1)->InsertColumn(arg2,*arg3);
21915
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 resultobj = SWIG_PyObj_FromLong((long)result);
21920 return resultobj;
21921 fail:
21922 return NULL;
21923 }
21924
21925
21926 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21929 long arg2 ;
21930 wxString *arg3 = 0 ;
21931 int arg4 = (int) wxLIST_FORMAT_LEFT ;
21932 int arg5 = (int) -1 ;
21933 long result;
21934 bool temp3 = False ;
21935 PyObject * obj0 = 0 ;
21936 PyObject * obj1 = 0 ;
21937 PyObject * obj2 = 0 ;
21938 PyObject * obj3 = 0 ;
21939 PyObject * obj4 = 0 ;
21940 char *kwnames[] = {
21941 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
21942 };
21943
21944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21946 {
21947 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21948 if (PyErr_Occurred()) SWIG_fail;
21949 }
21950 {
21951 arg3 = wxString_in_helper(obj2);
21952 if (arg3 == NULL) SWIG_fail;
21953 temp3 = True;
21954 }
21955 if (obj3) {
21956 {
21957 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 }
21961 if (obj4) {
21962 {
21963 arg5 = (int) SWIG_PyObj_AsInt(obj4);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 }
21967 {
21968 PyThreadState* __tstate = wxPyBeginAllowThreads();
21969 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
21970
21971 wxPyEndAllowThreads(__tstate);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 }
21974 resultobj = SWIG_PyObj_FromLong((long)result);
21975 {
21976 if (temp3)
21977 delete arg3;
21978 }
21979 return resultobj;
21980 fail:
21981 {
21982 if (temp3)
21983 delete arg3;
21984 }
21985 return NULL;
21986 }
21987
21988
21989 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21990 PyObject *resultobj;
21991 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21992 long arg2 ;
21993 PyObject * obj0 = 0 ;
21994 PyObject * obj1 = 0 ;
21995 char *kwnames[] = {
21996 (char *) "self",(char *) "count", NULL
21997 };
21998
21999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
22000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22001 {
22002 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 }
22005 {
22006 PyThreadState* __tstate = wxPyBeginAllowThreads();
22007 (arg1)->SetItemCount(arg2);
22008
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 Py_INCREF(Py_None); resultobj = Py_None;
22013 return resultobj;
22014 fail:
22015 return NULL;
22016 }
22017
22018
22019 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
22020 PyObject *resultobj;
22021 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22022 int arg2 ;
22023 int arg3 ;
22024 bool result;
22025 PyObject * obj0 = 0 ;
22026 PyObject * obj1 = 0 ;
22027 PyObject * obj2 = 0 ;
22028 char *kwnames[] = {
22029 (char *) "self",(char *) "dx",(char *) "dy", NULL
22030 };
22031
22032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22034 {
22035 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22036 if (PyErr_Occurred()) SWIG_fail;
22037 }
22038 {
22039 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22040 if (PyErr_Occurred()) SWIG_fail;
22041 }
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 result = (bool)(arg1)->ScrollList(arg2,arg3);
22045
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22050 return resultobj;
22051 fail:
22052 return NULL;
22053 }
22054
22055
22056 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22057 PyObject *resultobj;
22058 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22059 long arg2 ;
22060 wxColour *arg3 = 0 ;
22061 wxColour temp3 ;
22062 PyObject * obj0 = 0 ;
22063 PyObject * obj1 = 0 ;
22064 PyObject * obj2 = 0 ;
22065 char *kwnames[] = {
22066 (char *) "self",(char *) "item",(char *) "col", NULL
22067 };
22068
22069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22071 {
22072 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22073 if (PyErr_Occurred()) SWIG_fail;
22074 }
22075 {
22076 arg3 = &temp3;
22077 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22078 }
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
22082
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 Py_INCREF(Py_None); resultobj = Py_None;
22087 return resultobj;
22088 fail:
22089 return NULL;
22090 }
22091
22092
22093 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22094 PyObject *resultobj;
22095 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22096 long arg2 ;
22097 wxColour result;
22098 PyObject * obj0 = 0 ;
22099 PyObject * obj1 = 0 ;
22100 char *kwnames[] = {
22101 (char *) "self",(char *) "item", NULL
22102 };
22103
22104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
22105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22106 {
22107 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22108 if (PyErr_Occurred()) SWIG_fail;
22109 }
22110 {
22111 PyThreadState* __tstate = wxPyBeginAllowThreads();
22112 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
22113
22114 wxPyEndAllowThreads(__tstate);
22115 if (PyErr_Occurred()) SWIG_fail;
22116 }
22117 {
22118 wxColour * resultptr;
22119 resultptr = new wxColour((wxColour &) result);
22120 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
22121 }
22122 return resultobj;
22123 fail:
22124 return NULL;
22125 }
22126
22127
22128 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22129 PyObject *resultobj;
22130 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22131 long arg2 ;
22132 wxColour *arg3 = 0 ;
22133 wxColour temp3 ;
22134 PyObject * obj0 = 0 ;
22135 PyObject * obj1 = 0 ;
22136 PyObject * obj2 = 0 ;
22137 char *kwnames[] = {
22138 (char *) "self",(char *) "item",(char *) "col", NULL
22139 };
22140
22141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22143 {
22144 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22145 if (PyErr_Occurred()) SWIG_fail;
22146 }
22147 {
22148 arg3 = &temp3;
22149 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22150 }
22151 {
22152 PyThreadState* __tstate = wxPyBeginAllowThreads();
22153 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
22154
22155 wxPyEndAllowThreads(__tstate);
22156 if (PyErr_Occurred()) SWIG_fail;
22157 }
22158 Py_INCREF(Py_None); resultobj = Py_None;
22159 return resultobj;
22160 fail:
22161 return NULL;
22162 }
22163
22164
22165 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22166 PyObject *resultobj;
22167 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22168 long arg2 ;
22169 wxColour result;
22170 PyObject * obj0 = 0 ;
22171 PyObject * obj1 = 0 ;
22172 char *kwnames[] = {
22173 (char *) "self",(char *) "item", NULL
22174 };
22175
22176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
22177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22178 {
22179 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22180 if (PyErr_Occurred()) SWIG_fail;
22181 }
22182 {
22183 PyThreadState* __tstate = wxPyBeginAllowThreads();
22184 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
22185
22186 wxPyEndAllowThreads(__tstate);
22187 if (PyErr_Occurred()) SWIG_fail;
22188 }
22189 {
22190 wxColour * resultptr;
22191 resultptr = new wxColour((wxColour &) result);
22192 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
22193 }
22194 return resultobj;
22195 fail:
22196 return NULL;
22197 }
22198
22199
22200 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22201 PyObject *resultobj;
22202 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22203 PyObject *arg2 = (PyObject *) 0 ;
22204 bool result;
22205 PyObject * obj0 = 0 ;
22206 PyObject * obj1 = 0 ;
22207 char *kwnames[] = {
22208 (char *) "self",(char *) "func", NULL
22209 };
22210
22211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
22212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22213 arg2 = obj1;
22214 {
22215 PyThreadState* __tstate = wxPyBeginAllowThreads();
22216 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
22217
22218 wxPyEndAllowThreads(__tstate);
22219 if (PyErr_Occurred()) SWIG_fail;
22220 }
22221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22222 return resultobj;
22223 fail:
22224 return NULL;
22225 }
22226
22227
22228 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
22229 PyObject *resultobj;
22230 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22231 wxWindow *result;
22232 PyObject * obj0 = 0 ;
22233 char *kwnames[] = {
22234 (char *) "self", NULL
22235 };
22236
22237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
22238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22239 {
22240 PyThreadState* __tstate = wxPyBeginAllowThreads();
22241 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
22242
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 {
22247 resultobj = wxPyMake_wxObject(result);
22248 }
22249 return resultobj;
22250 fail:
22251 return NULL;
22252 }
22253
22254
22255 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
22256 PyObject *obj;
22257 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22258 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
22259 Py_INCREF(obj);
22260 return Py_BuildValue((char *)"");
22261 }
22262 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22263 PyObject *resultobj;
22264 wxWindow *arg1 = (wxWindow *) 0 ;
22265 int arg2 = (int) -1 ;
22266 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22267 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22268 wxSize const &arg4_defvalue = wxDefaultSize ;
22269 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22270 long arg5 = (long) wxLC_REPORT ;
22271 wxValidator const &arg6_defvalue = wxDefaultValidator ;
22272 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
22273 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
22274 wxString *arg7 = (wxString *) &arg7_defvalue ;
22275 wxListView *result;
22276 wxPoint temp3 ;
22277 wxSize temp4 ;
22278 bool temp7 = False ;
22279 PyObject * obj0 = 0 ;
22280 PyObject * obj1 = 0 ;
22281 PyObject * obj2 = 0 ;
22282 PyObject * obj3 = 0 ;
22283 PyObject * obj4 = 0 ;
22284 PyObject * obj5 = 0 ;
22285 PyObject * obj6 = 0 ;
22286 char *kwnames[] = {
22287 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22288 };
22289
22290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22292 if (obj1) {
22293 {
22294 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22295 if (PyErr_Occurred()) SWIG_fail;
22296 }
22297 }
22298 if (obj2) {
22299 {
22300 arg3 = &temp3;
22301 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22302 }
22303 }
22304 if (obj3) {
22305 {
22306 arg4 = &temp4;
22307 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22308 }
22309 }
22310 if (obj4) {
22311 {
22312 arg5 = (long) SWIG_PyObj_AsLong(obj4);
22313 if (PyErr_Occurred()) SWIG_fail;
22314 }
22315 }
22316 if (obj5) {
22317 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22318 if (arg6 == NULL) {
22319 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22320 }
22321 }
22322 if (obj6) {
22323 {
22324 arg7 = wxString_in_helper(obj6);
22325 if (arg7 == NULL) SWIG_fail;
22326 temp7 = True;
22327 }
22328 }
22329 {
22330 PyThreadState* __tstate = wxPyBeginAllowThreads();
22331 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
22332
22333 wxPyEndAllowThreads(__tstate);
22334 if (PyErr_Occurred()) SWIG_fail;
22335 }
22336 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1);
22337 {
22338 if (temp7)
22339 delete arg7;
22340 }
22341 return resultobj;
22342 fail:
22343 {
22344 if (temp7)
22345 delete arg7;
22346 }
22347 return NULL;
22348 }
22349
22350
22351 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22352 PyObject *resultobj;
22353 wxListView *result;
22354 char *kwnames[] = {
22355 NULL
22356 };
22357
22358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
22359 {
22360 PyThreadState* __tstate = wxPyBeginAllowThreads();
22361 result = (wxListView *)new wxListView();
22362
22363 wxPyEndAllowThreads(__tstate);
22364 if (PyErr_Occurred()) SWIG_fail;
22365 }
22366 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1);
22367 return resultobj;
22368 fail:
22369 return NULL;
22370 }
22371
22372
22373 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
22374 PyObject *resultobj;
22375 wxListView *arg1 = (wxListView *) 0 ;
22376 wxWindow *arg2 = (wxWindow *) 0 ;
22377 int arg3 = (int) -1 ;
22378 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22379 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22380 wxSize const &arg5_defvalue = wxDefaultSize ;
22381 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22382 long arg6 = (long) wxLC_REPORT ;
22383 wxValidator const &arg7_defvalue = wxDefaultValidator ;
22384 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
22385 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
22386 wxString *arg8 = (wxString *) &arg8_defvalue ;
22387 bool result;
22388 wxPoint temp4 ;
22389 wxSize temp5 ;
22390 bool temp8 = False ;
22391 PyObject * obj0 = 0 ;
22392 PyObject * obj1 = 0 ;
22393 PyObject * obj2 = 0 ;
22394 PyObject * obj3 = 0 ;
22395 PyObject * obj4 = 0 ;
22396 PyObject * obj5 = 0 ;
22397 PyObject * obj6 = 0 ;
22398 PyObject * obj7 = 0 ;
22399 char *kwnames[] = {
22400 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22401 };
22402
22403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
22404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22405 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22406 if (obj2) {
22407 {
22408 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 }
22412 if (obj3) {
22413 {
22414 arg4 = &temp4;
22415 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22416 }
22417 }
22418 if (obj4) {
22419 {
22420 arg5 = &temp5;
22421 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22422 }
22423 }
22424 if (obj5) {
22425 {
22426 arg6 = (long) SWIG_PyObj_AsLong(obj5);
22427 if (PyErr_Occurred()) SWIG_fail;
22428 }
22429 }
22430 if (obj6) {
22431 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22432 if (arg7 == NULL) {
22433 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22434 }
22435 }
22436 if (obj7) {
22437 {
22438 arg8 = wxString_in_helper(obj7);
22439 if (arg8 == NULL) SWIG_fail;
22440 temp8 = True;
22441 }
22442 }
22443 {
22444 PyThreadState* __tstate = wxPyBeginAllowThreads();
22445 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
22446
22447 wxPyEndAllowThreads(__tstate);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 }
22450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22451 {
22452 if (temp8)
22453 delete arg8;
22454 }
22455 return resultobj;
22456 fail:
22457 {
22458 if (temp8)
22459 delete arg8;
22460 }
22461 return NULL;
22462 }
22463
22464
22465 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
22466 PyObject *resultobj;
22467 wxListView *arg1 = (wxListView *) 0 ;
22468 long arg2 ;
22469 bool arg3 = (bool) True ;
22470 PyObject * obj0 = 0 ;
22471 PyObject * obj1 = 0 ;
22472 PyObject * obj2 = 0 ;
22473 char *kwnames[] = {
22474 (char *) "self",(char *) "n",(char *) "on", NULL
22475 };
22476
22477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
22478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22479 {
22480 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22481 if (PyErr_Occurred()) SWIG_fail;
22482 }
22483 if (obj2) {
22484 {
22485 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
22486 if (PyErr_Occurred()) SWIG_fail;
22487 }
22488 }
22489 {
22490 PyThreadState* __tstate = wxPyBeginAllowThreads();
22491 (arg1)->Select(arg2,arg3);
22492
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 Py_INCREF(Py_None); resultobj = Py_None;
22497 return resultobj;
22498 fail:
22499 return NULL;
22500 }
22501
22502
22503 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
22504 PyObject *resultobj;
22505 wxListView *arg1 = (wxListView *) 0 ;
22506 long arg2 ;
22507 PyObject * obj0 = 0 ;
22508 PyObject * obj1 = 0 ;
22509 char *kwnames[] = {
22510 (char *) "self",(char *) "index", NULL
22511 };
22512
22513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
22514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22515 {
22516 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22517 if (PyErr_Occurred()) SWIG_fail;
22518 }
22519 {
22520 PyThreadState* __tstate = wxPyBeginAllowThreads();
22521 (arg1)->Focus(arg2);
22522
22523 wxPyEndAllowThreads(__tstate);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 }
22526 Py_INCREF(Py_None); resultobj = Py_None;
22527 return resultobj;
22528 fail:
22529 return NULL;
22530 }
22531
22532
22533 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22534 PyObject *resultobj;
22535 wxListView *arg1 = (wxListView *) 0 ;
22536 long result;
22537 PyObject * obj0 = 0 ;
22538 char *kwnames[] = {
22539 (char *) "self", NULL
22540 };
22541
22542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
22543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22544 {
22545 PyThreadState* __tstate = wxPyBeginAllowThreads();
22546 result = (long)((wxListView const *)arg1)->GetFocusedItem();
22547
22548 wxPyEndAllowThreads(__tstate);
22549 if (PyErr_Occurred()) SWIG_fail;
22550 }
22551 resultobj = SWIG_PyObj_FromLong((long)result);
22552 return resultobj;
22553 fail:
22554 return NULL;
22555 }
22556
22557
22558 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22559 PyObject *resultobj;
22560 wxListView *arg1 = (wxListView *) 0 ;
22561 long arg2 ;
22562 long result;
22563 PyObject * obj0 = 0 ;
22564 PyObject * obj1 = 0 ;
22565 char *kwnames[] = {
22566 (char *) "self",(char *) "item", NULL
22567 };
22568
22569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
22570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22571 {
22572 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22573 if (PyErr_Occurred()) SWIG_fail;
22574 }
22575 {
22576 PyThreadState* __tstate = wxPyBeginAllowThreads();
22577 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
22578
22579 wxPyEndAllowThreads(__tstate);
22580 if (PyErr_Occurred()) SWIG_fail;
22581 }
22582 resultobj = SWIG_PyObj_FromLong((long)result);
22583 return resultobj;
22584 fail:
22585 return NULL;
22586 }
22587
22588
22589 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22590 PyObject *resultobj;
22591 wxListView *arg1 = (wxListView *) 0 ;
22592 long result;
22593 PyObject * obj0 = 0 ;
22594 char *kwnames[] = {
22595 (char *) "self", NULL
22596 };
22597
22598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
22599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 result = (long)((wxListView const *)arg1)->GetFirstSelected();
22603
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 resultobj = SWIG_PyObj_FromLong((long)result);
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj;
22616 wxListView *arg1 = (wxListView *) 0 ;
22617 long arg2 ;
22618 bool result;
22619 PyObject * obj0 = 0 ;
22620 PyObject * obj1 = 0 ;
22621 char *kwnames[] = {
22622 (char *) "self",(char *) "index", NULL
22623 };
22624
22625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
22626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22627 {
22628 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22629 if (PyErr_Occurred()) SWIG_fail;
22630 }
22631 {
22632 PyThreadState* __tstate = wxPyBeginAllowThreads();
22633 result = (bool)(arg1)->IsSelected(arg2);
22634
22635 wxPyEndAllowThreads(__tstate);
22636 if (PyErr_Occurred()) SWIG_fail;
22637 }
22638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22639 return resultobj;
22640 fail:
22641 return NULL;
22642 }
22643
22644
22645 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
22646 PyObject *resultobj;
22647 wxListView *arg1 = (wxListView *) 0 ;
22648 int arg2 ;
22649 int arg3 ;
22650 PyObject * obj0 = 0 ;
22651 PyObject * obj1 = 0 ;
22652 PyObject * obj2 = 0 ;
22653 char *kwnames[] = {
22654 (char *) "self",(char *) "col",(char *) "image", NULL
22655 };
22656
22657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
22658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22659 {
22660 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22661 if (PyErr_Occurred()) SWIG_fail;
22662 }
22663 {
22664 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22665 if (PyErr_Occurred()) SWIG_fail;
22666 }
22667 {
22668 PyThreadState* __tstate = wxPyBeginAllowThreads();
22669 (arg1)->SetColumnImage(arg2,arg3);
22670
22671 wxPyEndAllowThreads(__tstate);
22672 if (PyErr_Occurred()) SWIG_fail;
22673 }
22674 Py_INCREF(Py_None); resultobj = Py_None;
22675 return resultobj;
22676 fail:
22677 return NULL;
22678 }
22679
22680
22681 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
22682 PyObject *resultobj;
22683 wxListView *arg1 = (wxListView *) 0 ;
22684 int arg2 ;
22685 PyObject * obj0 = 0 ;
22686 PyObject * obj1 = 0 ;
22687 char *kwnames[] = {
22688 (char *) "self",(char *) "col", NULL
22689 };
22690
22691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
22692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22693 {
22694 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22695 if (PyErr_Occurred()) SWIG_fail;
22696 }
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 (arg1)->ClearColumnImage(arg2);
22700
22701 wxPyEndAllowThreads(__tstate);
22702 if (PyErr_Occurred()) SWIG_fail;
22703 }
22704 Py_INCREF(Py_None); resultobj = Py_None;
22705 return resultobj;
22706 fail:
22707 return NULL;
22708 }
22709
22710
22711 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
22712 PyObject *obj;
22713 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22714 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
22715 Py_INCREF(obj);
22716 return Py_BuildValue((char *)"");
22717 }
22718 static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
22719 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
22720 return 1;
22721 }
22722
22723
22724 static PyObject *_wrap_TreeCtrlNameStr_get() {
22725 PyObject *pyobj;
22726
22727 {
22728 #if wxUSE_UNICODE
22729 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22730 #else
22731 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22732 #endif
22733 }
22734 return pyobj;
22735 }
22736
22737
22738 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
22739 PyObject *resultobj;
22740 wxTreeItemId *result;
22741 char *kwnames[] = {
22742 NULL
22743 };
22744
22745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
22746 {
22747 PyThreadState* __tstate = wxPyBeginAllowThreads();
22748 result = (wxTreeItemId *)new wxTreeItemId();
22749
22750 wxPyEndAllowThreads(__tstate);
22751 if (PyErr_Occurred()) SWIG_fail;
22752 }
22753 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1);
22754 return resultobj;
22755 fail:
22756 return NULL;
22757 }
22758
22759
22760 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
22761 PyObject *resultobj;
22762 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22763 PyObject * obj0 = 0 ;
22764 char *kwnames[] = {
22765 (char *) "self", NULL
22766 };
22767
22768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
22769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22770 {
22771 PyThreadState* __tstate = wxPyBeginAllowThreads();
22772 delete arg1;
22773
22774 wxPyEndAllowThreads(__tstate);
22775 if (PyErr_Occurred()) SWIG_fail;
22776 }
22777 Py_INCREF(Py_None); resultobj = Py_None;
22778 return resultobj;
22779 fail:
22780 return NULL;
22781 }
22782
22783
22784 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
22785 PyObject *resultobj;
22786 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22787 bool result;
22788 PyObject * obj0 = 0 ;
22789 char *kwnames[] = {
22790 (char *) "self", NULL
22791 };
22792
22793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
22794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22795 {
22796 PyThreadState* __tstate = wxPyBeginAllowThreads();
22797 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
22798
22799 wxPyEndAllowThreads(__tstate);
22800 if (PyErr_Occurred()) SWIG_fail;
22801 }
22802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22803 return resultobj;
22804 fail:
22805 return NULL;
22806 }
22807
22808
22809 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22810 PyObject *resultobj;
22811 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22812 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
22813 bool result;
22814 PyObject * obj0 = 0 ;
22815 PyObject * obj1 = 0 ;
22816 char *kwnames[] = {
22817 (char *) "self",(char *) "other", NULL
22818 };
22819
22820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
22821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22822 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22823 {
22824 PyThreadState* __tstate = wxPyBeginAllowThreads();
22825 result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2);
22826
22827 wxPyEndAllowThreads(__tstate);
22828 if (PyErr_Occurred()) SWIG_fail;
22829 }
22830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22831 return resultobj;
22832 fail:
22833 return NULL;
22834 }
22835
22836
22837 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22838 PyObject *resultobj;
22839 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22840 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
22841 bool result;
22842 PyObject * obj0 = 0 ;
22843 PyObject * obj1 = 0 ;
22844 char *kwnames[] = {
22845 (char *) "self",(char *) "other", NULL
22846 };
22847
22848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
22849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22850 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22851 {
22852 PyThreadState* __tstate = wxPyBeginAllowThreads();
22853 result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2);
22854
22855 wxPyEndAllowThreads(__tstate);
22856 if (PyErr_Occurred()) SWIG_fail;
22857 }
22858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22859 return resultobj;
22860 fail:
22861 return NULL;
22862 }
22863
22864
22865 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
22866 PyObject *resultobj;
22867 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22868 void *arg2 = (void *) 0 ;
22869 PyObject * obj0 = 0 ;
22870 PyObject * obj1 = 0 ;
22871 char *kwnames[] = {
22872 (char *) "self",(char *) "m_pItem", NULL
22873 };
22874
22875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
22876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22877 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
22878 if (arg1) (arg1)->m_pItem = arg2;
22879
22880 Py_INCREF(Py_None); resultobj = Py_None;
22881 return resultobj;
22882 fail:
22883 return NULL;
22884 }
22885
22886
22887 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
22888 PyObject *resultobj;
22889 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22890 void *result;
22891 PyObject * obj0 = 0 ;
22892 char *kwnames[] = {
22893 (char *) "self", NULL
22894 };
22895
22896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
22897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22898 result = (void *) ((arg1)->m_pItem);
22899
22900 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0);
22901 return resultobj;
22902 fail:
22903 return NULL;
22904 }
22905
22906
22907 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
22908 PyObject *obj;
22909 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22910 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
22911 Py_INCREF(obj);
22912 return Py_BuildValue((char *)"");
22913 }
22914 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22915 PyObject *resultobj;
22916 PyObject *arg1 = (PyObject *) NULL ;
22917 wxPyTreeItemData *result;
22918 PyObject * obj0 = 0 ;
22919 char *kwnames[] = {
22920 (char *) "obj", NULL
22921 };
22922
22923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
22924 if (obj0) {
22925 arg1 = obj0;
22926 }
22927 {
22928 PyThreadState* __tstate = wxPyBeginAllowThreads();
22929 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
22930
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1);
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
22942 PyObject *resultobj;
22943 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
22944 PyObject *result;
22945 PyObject * obj0 = 0 ;
22946 char *kwnames[] = {
22947 (char *) "self", NULL
22948 };
22949
22950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
22951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
22954 result = (PyObject *)(arg1)->GetData();
22955
22956 wxPyEndAllowThreads(__tstate);
22957 if (PyErr_Occurred()) SWIG_fail;
22958 }
22959 resultobj = result;
22960 return resultobj;
22961 fail:
22962 return NULL;
22963 }
22964
22965
22966 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
22967 PyObject *resultobj;
22968 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
22969 PyObject *arg2 = (PyObject *) 0 ;
22970 PyObject * obj0 = 0 ;
22971 PyObject * obj1 = 0 ;
22972 char *kwnames[] = {
22973 (char *) "self",(char *) "obj", NULL
22974 };
22975
22976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
22977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22978 arg2 = obj1;
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 (arg1)->SetData(arg2);
22982
22983 wxPyEndAllowThreads(__tstate);
22984 if (PyErr_Occurred()) SWIG_fail;
22985 }
22986 Py_INCREF(Py_None); resultobj = Py_None;
22987 return resultobj;
22988 fail:
22989 return NULL;
22990 }
22991
22992
22993 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
22994 PyObject *resultobj;
22995 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
22996 wxTreeItemId *result;
22997 PyObject * obj0 = 0 ;
22998 char *kwnames[] = {
22999 (char *) "self", NULL
23000 };
23001
23002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
23003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 {
23007 wxTreeItemId const &_result_ref = (arg1)->GetId();
23008 result = (wxTreeItemId *) &_result_ref;
23009 }
23010
23011 wxPyEndAllowThreads(__tstate);
23012 if (PyErr_Occurred()) SWIG_fail;
23013 }
23014 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0);
23015 return resultobj;
23016 fail:
23017 return NULL;
23018 }
23019
23020
23021 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23022 PyObject *resultobj;
23023 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23024 wxTreeItemId *arg2 = 0 ;
23025 PyObject * obj0 = 0 ;
23026 PyObject * obj1 = 0 ;
23027 char *kwnames[] = {
23028 (char *) "self",(char *) "id", NULL
23029 };
23030
23031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
23032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23033 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23034 if (arg2 == NULL) {
23035 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23036 }
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 (arg1)->SetId((wxTreeItemId const &)*arg2);
23040
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 Py_INCREF(Py_None); resultobj = Py_None;
23045 return resultobj;
23046 fail:
23047 return NULL;
23048 }
23049
23050
23051 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
23052 PyObject *resultobj;
23053 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23054 PyObject * obj0 = 0 ;
23055 char *kwnames[] = {
23056 (char *) "self", NULL
23057 };
23058
23059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
23060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 wxPyTreeItemData_Destroy(arg1);
23064
23065 wxPyEndAllowThreads(__tstate);
23066 if (PyErr_Occurred()) SWIG_fail;
23067 }
23068 Py_INCREF(Py_None); resultobj = Py_None;
23069 return resultobj;
23070 fail:
23071 return NULL;
23072 }
23073
23074
23075 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
23076 PyObject *obj;
23077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23078 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
23079 Py_INCREF(obj);
23080 return Py_BuildValue((char *)"");
23081 }
23082 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23083 PyObject *resultobj;
23084 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
23085 int arg2 = (int) 0 ;
23086 wxTreeEvent *result;
23087 PyObject * obj0 = 0 ;
23088 PyObject * obj1 = 0 ;
23089 char *kwnames[] = {
23090 (char *) "commandType",(char *) "id", NULL
23091 };
23092
23093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
23094 if (obj0) {
23095 {
23096 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
23097 if (PyErr_Occurred()) SWIG_fail;
23098 }
23099 }
23100 if (obj1) {
23101 {
23102 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 }
23106 {
23107 PyThreadState* __tstate = wxPyBeginAllowThreads();
23108 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
23109
23110 wxPyEndAllowThreads(__tstate);
23111 if (PyErr_Occurred()) SWIG_fail;
23112 }
23113 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1);
23114 return resultobj;
23115 fail:
23116 return NULL;
23117 }
23118
23119
23120 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23121 PyObject *resultobj;
23122 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23123 wxTreeItemId result;
23124 PyObject * obj0 = 0 ;
23125 char *kwnames[] = {
23126 (char *) "self", NULL
23127 };
23128
23129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
23130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23131 {
23132 PyThreadState* __tstate = wxPyBeginAllowThreads();
23133 result = ((wxTreeEvent const *)arg1)->GetItem();
23134
23135 wxPyEndAllowThreads(__tstate);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 }
23138 {
23139 wxTreeItemId * resultptr;
23140 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23141 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
23142 }
23143 return resultobj;
23144 fail:
23145 return NULL;
23146 }
23147
23148
23149 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23150 PyObject *resultobj;
23151 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23152 wxTreeItemId *arg2 = 0 ;
23153 PyObject * obj0 = 0 ;
23154 PyObject * obj1 = 0 ;
23155 char *kwnames[] = {
23156 (char *) "self",(char *) "item", NULL
23157 };
23158
23159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
23160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23161 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23162 if (arg2 == NULL) {
23163 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23164 }
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 (arg1)->SetItem((wxTreeItemId const &)*arg2);
23168
23169 wxPyEndAllowThreads(__tstate);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 }
23172 Py_INCREF(Py_None); resultobj = Py_None;
23173 return resultobj;
23174 fail:
23175 return NULL;
23176 }
23177
23178
23179 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23180 PyObject *resultobj;
23181 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23182 wxTreeItemId result;
23183 PyObject * obj0 = 0 ;
23184 char *kwnames[] = {
23185 (char *) "self", NULL
23186 };
23187
23188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
23189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23190 {
23191 PyThreadState* __tstate = wxPyBeginAllowThreads();
23192 result = ((wxTreeEvent const *)arg1)->GetOldItem();
23193
23194 wxPyEndAllowThreads(__tstate);
23195 if (PyErr_Occurred()) SWIG_fail;
23196 }
23197 {
23198 wxTreeItemId * resultptr;
23199 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23200 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
23201 }
23202 return resultobj;
23203 fail:
23204 return NULL;
23205 }
23206
23207
23208 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23209 PyObject *resultobj;
23210 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23211 wxTreeItemId *arg2 = 0 ;
23212 PyObject * obj0 = 0 ;
23213 PyObject * obj1 = 0 ;
23214 char *kwnames[] = {
23215 (char *) "self",(char *) "item", NULL
23216 };
23217
23218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
23219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23220 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23221 if (arg2 == NULL) {
23222 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23223 }
23224 {
23225 PyThreadState* __tstate = wxPyBeginAllowThreads();
23226 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
23227
23228 wxPyEndAllowThreads(__tstate);
23229 if (PyErr_Occurred()) SWIG_fail;
23230 }
23231 Py_INCREF(Py_None); resultobj = Py_None;
23232 return resultobj;
23233 fail:
23234 return NULL;
23235 }
23236
23237
23238 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23239 PyObject *resultobj;
23240 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23241 wxPoint result;
23242 PyObject * obj0 = 0 ;
23243 char *kwnames[] = {
23244 (char *) "self", NULL
23245 };
23246
23247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
23248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23249 {
23250 PyThreadState* __tstate = wxPyBeginAllowThreads();
23251 result = ((wxTreeEvent const *)arg1)->GetPoint();
23252
23253 wxPyEndAllowThreads(__tstate);
23254 if (PyErr_Occurred()) SWIG_fail;
23255 }
23256 {
23257 wxPoint * resultptr;
23258 resultptr = new wxPoint((wxPoint &) result);
23259 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
23260 }
23261 return resultobj;
23262 fail:
23263 return NULL;
23264 }
23265
23266
23267 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23268 PyObject *resultobj;
23269 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23270 wxPoint *arg2 = 0 ;
23271 wxPoint temp2 ;
23272 PyObject * obj0 = 0 ;
23273 PyObject * obj1 = 0 ;
23274 char *kwnames[] = {
23275 (char *) "self",(char *) "pt", NULL
23276 };
23277
23278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
23279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23280 {
23281 arg2 = &temp2;
23282 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23283 }
23284 {
23285 PyThreadState* __tstate = wxPyBeginAllowThreads();
23286 (arg1)->SetPoint((wxPoint const &)*arg2);
23287
23288 wxPyEndAllowThreads(__tstate);
23289 if (PyErr_Occurred()) SWIG_fail;
23290 }
23291 Py_INCREF(Py_None); resultobj = Py_None;
23292 return resultobj;
23293 fail:
23294 return NULL;
23295 }
23296
23297
23298 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23299 PyObject *resultobj;
23300 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23301 wxKeyEvent *result;
23302 PyObject * obj0 = 0 ;
23303 char *kwnames[] = {
23304 (char *) "self", NULL
23305 };
23306
23307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
23308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23309 {
23310 PyThreadState* __tstate = wxPyBeginAllowThreads();
23311 {
23312 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
23313 result = (wxKeyEvent *) &_result_ref;
23314 }
23315
23316 wxPyEndAllowThreads(__tstate);
23317 if (PyErr_Occurred()) SWIG_fail;
23318 }
23319 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0);
23320 return resultobj;
23321 fail:
23322 return NULL;
23323 }
23324
23325
23326 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
23327 PyObject *resultobj;
23328 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23329 int result;
23330 PyObject * obj0 = 0 ;
23331 char *kwnames[] = {
23332 (char *) "self", NULL
23333 };
23334
23335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
23336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23337 {
23338 PyThreadState* __tstate = wxPyBeginAllowThreads();
23339 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
23340
23341 wxPyEndAllowThreads(__tstate);
23342 if (PyErr_Occurred()) SWIG_fail;
23343 }
23344 resultobj = SWIG_PyObj_FromInt((int)result);
23345 return resultobj;
23346 fail:
23347 return NULL;
23348 }
23349
23350
23351 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23352 PyObject *resultobj;
23353 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23354 wxKeyEvent *arg2 = 0 ;
23355 PyObject * obj0 = 0 ;
23356 PyObject * obj1 = 0 ;
23357 char *kwnames[] = {
23358 (char *) "self",(char *) "evt", NULL
23359 };
23360
23361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
23362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23363 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23364 if (arg2 == NULL) {
23365 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23366 }
23367 {
23368 PyThreadState* __tstate = wxPyBeginAllowThreads();
23369 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
23370
23371 wxPyEndAllowThreads(__tstate);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 Py_INCREF(Py_None); resultobj = Py_None;
23375 return resultobj;
23376 fail:
23377 return NULL;
23378 }
23379
23380
23381 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23382 PyObject *resultobj;
23383 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23384 wxString *result;
23385 PyObject * obj0 = 0 ;
23386 char *kwnames[] = {
23387 (char *) "self", NULL
23388 };
23389
23390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
23391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 {
23395 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
23396 result = (wxString *) &_result_ref;
23397 }
23398
23399 wxPyEndAllowThreads(__tstate);
23400 if (PyErr_Occurred()) SWIG_fail;
23401 }
23402 {
23403 #if wxUSE_UNICODE
23404 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
23405 #else
23406 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
23407 #endif
23408 }
23409 return resultobj;
23410 fail:
23411 return NULL;
23412 }
23413
23414
23415 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23416 PyObject *resultobj;
23417 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23418 wxString *arg2 = 0 ;
23419 bool temp2 = False ;
23420 PyObject * obj0 = 0 ;
23421 PyObject * obj1 = 0 ;
23422 char *kwnames[] = {
23423 (char *) "self",(char *) "label", NULL
23424 };
23425
23426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
23427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23428 {
23429 arg2 = wxString_in_helper(obj1);
23430 if (arg2 == NULL) SWIG_fail;
23431 temp2 = True;
23432 }
23433 {
23434 PyThreadState* __tstate = wxPyBeginAllowThreads();
23435 (arg1)->SetLabel((wxString const &)*arg2);
23436
23437 wxPyEndAllowThreads(__tstate);
23438 if (PyErr_Occurred()) SWIG_fail;
23439 }
23440 Py_INCREF(Py_None); resultobj = Py_None;
23441 {
23442 if (temp2)
23443 delete arg2;
23444 }
23445 return resultobj;
23446 fail:
23447 {
23448 if (temp2)
23449 delete arg2;
23450 }
23451 return NULL;
23452 }
23453
23454
23455 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
23456 PyObject *resultobj;
23457 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23458 bool result;
23459 PyObject * obj0 = 0 ;
23460 char *kwnames[] = {
23461 (char *) "self", NULL
23462 };
23463
23464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
23465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23466 {
23467 PyThreadState* __tstate = wxPyBeginAllowThreads();
23468 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
23469
23470 wxPyEndAllowThreads(__tstate);
23471 if (PyErr_Occurred()) SWIG_fail;
23472 }
23473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23474 return resultobj;
23475 fail:
23476 return NULL;
23477 }
23478
23479
23480 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
23481 PyObject *resultobj;
23482 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23483 bool arg2 ;
23484 PyObject * obj0 = 0 ;
23485 PyObject * obj1 = 0 ;
23486 char *kwnames[] = {
23487 (char *) "self",(char *) "editCancelled", NULL
23488 };
23489
23490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
23491 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23492 {
23493 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
23494 if (PyErr_Occurred()) SWIG_fail;
23495 }
23496 {
23497 PyThreadState* __tstate = wxPyBeginAllowThreads();
23498 (arg1)->SetEditCanceled(arg2);
23499
23500 wxPyEndAllowThreads(__tstate);
23501 if (PyErr_Occurred()) SWIG_fail;
23502 }
23503 Py_INCREF(Py_None); resultobj = Py_None;
23504 return resultobj;
23505 fail:
23506 return NULL;
23507 }
23508
23509
23510 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
23511 PyObject *resultobj;
23512 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23513 wxString *arg2 = 0 ;
23514 bool temp2 = False ;
23515 PyObject * obj0 = 0 ;
23516 PyObject * obj1 = 0 ;
23517 char *kwnames[] = {
23518 (char *) "self",(char *) "toolTip", NULL
23519 };
23520
23521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
23522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23523 {
23524 arg2 = wxString_in_helper(obj1);
23525 if (arg2 == NULL) SWIG_fail;
23526 temp2 = True;
23527 }
23528 {
23529 PyThreadState* __tstate = wxPyBeginAllowThreads();
23530 (arg1)->SetToolTip((wxString const &)*arg2);
23531
23532 wxPyEndAllowThreads(__tstate);
23533 if (PyErr_Occurred()) SWIG_fail;
23534 }
23535 Py_INCREF(Py_None); resultobj = Py_None;
23536 {
23537 if (temp2)
23538 delete arg2;
23539 }
23540 return resultobj;
23541 fail:
23542 {
23543 if (temp2)
23544 delete arg2;
23545 }
23546 return NULL;
23547 }
23548
23549
23550 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
23551 PyObject *obj;
23552 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23553 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
23554 Py_INCREF(obj);
23555 return Py_BuildValue((char *)"");
23556 }
23557 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
23558 PyObject *resultobj;
23559 wxWindow *arg1 = (wxWindow *) 0 ;
23560 int arg2 = (int) -1 ;
23561 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23562 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23563 wxSize const &arg4_defvalue = wxDefaultSize ;
23564 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23565 long arg5 = (long) wxTR_DEFAULT_STYLE ;
23566 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23567 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23568 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
23569 wxString *arg7 = (wxString *) &arg7_defvalue ;
23570 wxPyTreeCtrl *result;
23571 wxPoint temp3 ;
23572 wxSize temp4 ;
23573 bool temp7 = False ;
23574 PyObject * obj0 = 0 ;
23575 PyObject * obj1 = 0 ;
23576 PyObject * obj2 = 0 ;
23577 PyObject * obj3 = 0 ;
23578 PyObject * obj4 = 0 ;
23579 PyObject * obj5 = 0 ;
23580 PyObject * obj6 = 0 ;
23581 char *kwnames[] = {
23582 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23583 };
23584
23585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23587 if (obj1) {
23588 {
23589 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23590 if (PyErr_Occurred()) SWIG_fail;
23591 }
23592 }
23593 if (obj2) {
23594 {
23595 arg3 = &temp3;
23596 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23597 }
23598 }
23599 if (obj3) {
23600 {
23601 arg4 = &temp4;
23602 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23603 }
23604 }
23605 if (obj4) {
23606 {
23607 arg5 = (long) SWIG_PyObj_AsLong(obj4);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 }
23611 if (obj5) {
23612 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23613 if (arg6 == NULL) {
23614 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23615 }
23616 }
23617 if (obj6) {
23618 {
23619 arg7 = wxString_in_helper(obj6);
23620 if (arg7 == NULL) SWIG_fail;
23621 temp7 = True;
23622 }
23623 }
23624 {
23625 PyThreadState* __tstate = wxPyBeginAllowThreads();
23626 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23627
23628 wxPyEndAllowThreads(__tstate);
23629 if (PyErr_Occurred()) SWIG_fail;
23630 }
23631 {
23632 resultobj = wxPyMake_wxObject(result);
23633 }
23634 {
23635 if (temp7)
23636 delete arg7;
23637 }
23638 return resultobj;
23639 fail:
23640 {
23641 if (temp7)
23642 delete arg7;
23643 }
23644 return NULL;
23645 }
23646
23647
23648 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
23649 PyObject *resultobj;
23650 wxPyTreeCtrl *result;
23651 char *kwnames[] = {
23652 NULL
23653 };
23654
23655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
23656 {
23657 PyThreadState* __tstate = wxPyBeginAllowThreads();
23658 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
23659
23660 wxPyEndAllowThreads(__tstate);
23661 if (PyErr_Occurred()) SWIG_fail;
23662 }
23663 {
23664 resultobj = wxPyMake_wxObject(result);
23665 }
23666 return resultobj;
23667 fail:
23668 return NULL;
23669 }
23670
23671
23672 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23673 PyObject *resultobj;
23674 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23675 wxWindow *arg2 = (wxWindow *) 0 ;
23676 int arg3 = (int) -1 ;
23677 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23678 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23679 wxSize const &arg5_defvalue = wxDefaultSize ;
23680 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23681 long arg6 = (long) wxTR_DEFAULT_STYLE ;
23682 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23683 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23684 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
23685 wxString *arg8 = (wxString *) &arg8_defvalue ;
23686 bool result;
23687 wxPoint temp4 ;
23688 wxSize temp5 ;
23689 bool temp8 = False ;
23690 PyObject * obj0 = 0 ;
23691 PyObject * obj1 = 0 ;
23692 PyObject * obj2 = 0 ;
23693 PyObject * obj3 = 0 ;
23694 PyObject * obj4 = 0 ;
23695 PyObject * obj5 = 0 ;
23696 PyObject * obj6 = 0 ;
23697 PyObject * obj7 = 0 ;
23698 char *kwnames[] = {
23699 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23700 };
23701
23702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23704 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23705 if (obj2) {
23706 {
23707 arg3 = (int) SWIG_PyObj_AsInt(obj2);
23708 if (PyErr_Occurred()) SWIG_fail;
23709 }
23710 }
23711 if (obj3) {
23712 {
23713 arg4 = &temp4;
23714 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23715 }
23716 }
23717 if (obj4) {
23718 {
23719 arg5 = &temp5;
23720 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23721 }
23722 }
23723 if (obj5) {
23724 {
23725 arg6 = (long) SWIG_PyObj_AsLong(obj5);
23726 if (PyErr_Occurred()) SWIG_fail;
23727 }
23728 }
23729 if (obj6) {
23730 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23731 if (arg7 == NULL) {
23732 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23733 }
23734 }
23735 if (obj7) {
23736 {
23737 arg8 = wxString_in_helper(obj7);
23738 if (arg8 == NULL) SWIG_fail;
23739 temp8 = True;
23740 }
23741 }
23742 {
23743 PyThreadState* __tstate = wxPyBeginAllowThreads();
23744 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23745
23746 wxPyEndAllowThreads(__tstate);
23747 if (PyErr_Occurred()) SWIG_fail;
23748 }
23749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23750 {
23751 if (temp8)
23752 delete arg8;
23753 }
23754 return resultobj;
23755 fail:
23756 {
23757 if (temp8)
23758 delete arg8;
23759 }
23760 return NULL;
23761 }
23762
23763
23764 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23765 PyObject *resultobj;
23766 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23767 PyObject *arg2 = (PyObject *) 0 ;
23768 PyObject *arg3 = (PyObject *) 0 ;
23769 PyObject * obj0 = 0 ;
23770 PyObject * obj1 = 0 ;
23771 PyObject * obj2 = 0 ;
23772 char *kwnames[] = {
23773 (char *) "self",(char *) "self",(char *) "_class", NULL
23774 };
23775
23776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23778 arg2 = obj1;
23779 arg3 = obj2;
23780 {
23781 PyThreadState* __tstate = wxPyBeginAllowThreads();
23782 (arg1)->_setCallbackInfo(arg2,arg3);
23783
23784 wxPyEndAllowThreads(__tstate);
23785 if (PyErr_Occurred()) SWIG_fail;
23786 }
23787 Py_INCREF(Py_None); resultobj = Py_None;
23788 return resultobj;
23789 fail:
23790 return NULL;
23791 }
23792
23793
23794 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23795 PyObject *resultobj;
23796 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23797 size_t result;
23798 PyObject * obj0 = 0 ;
23799 char *kwnames[] = {
23800 (char *) "self", NULL
23801 };
23802
23803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
23804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23805 {
23806 PyThreadState* __tstate = wxPyBeginAllowThreads();
23807 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
23808
23809 wxPyEndAllowThreads(__tstate);
23810 if (PyErr_Occurred()) SWIG_fail;
23811 }
23812 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
23813 return resultobj;
23814 fail:
23815 return NULL;
23816 }
23817
23818
23819 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
23820 PyObject *resultobj;
23821 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23822 unsigned int result;
23823 PyObject * obj0 = 0 ;
23824 char *kwnames[] = {
23825 (char *) "self", NULL
23826 };
23827
23828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
23829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23830 {
23831 PyThreadState* __tstate = wxPyBeginAllowThreads();
23832 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
23833
23834 wxPyEndAllowThreads(__tstate);
23835 if (PyErr_Occurred()) SWIG_fail;
23836 }
23837 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
23838 return resultobj;
23839 fail:
23840 return NULL;
23841 }
23842
23843
23844 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
23845 PyObject *resultobj;
23846 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23847 unsigned int arg2 ;
23848 PyObject * obj0 = 0 ;
23849 PyObject * obj1 = 0 ;
23850 char *kwnames[] = {
23851 (char *) "self",(char *) "indent", NULL
23852 };
23853
23854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
23855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23856 {
23857 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
23858 if (PyErr_Occurred()) SWIG_fail;
23859 }
23860 {
23861 PyThreadState* __tstate = wxPyBeginAllowThreads();
23862 (arg1)->SetIndent(arg2);
23863
23864 wxPyEndAllowThreads(__tstate);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 Py_INCREF(Py_None); resultobj = Py_None;
23868 return resultobj;
23869 fail:
23870 return NULL;
23871 }
23872
23873
23874 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
23875 PyObject *resultobj;
23876 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23877 unsigned int result;
23878 PyObject * obj0 = 0 ;
23879 char *kwnames[] = {
23880 (char *) "self", NULL
23881 };
23882
23883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
23884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23885 {
23886 PyThreadState* __tstate = wxPyBeginAllowThreads();
23887 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
23888
23889 wxPyEndAllowThreads(__tstate);
23890 if (PyErr_Occurred()) SWIG_fail;
23891 }
23892 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
23893 return resultobj;
23894 fail:
23895 return NULL;
23896 }
23897
23898
23899 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
23900 PyObject *resultobj;
23901 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23902 unsigned int arg2 ;
23903 PyObject * obj0 = 0 ;
23904 PyObject * obj1 = 0 ;
23905 char *kwnames[] = {
23906 (char *) "self",(char *) "spacing", NULL
23907 };
23908
23909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
23910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23911 {
23912 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 {
23916 PyThreadState* __tstate = wxPyBeginAllowThreads();
23917 (arg1)->SetSpacing(arg2);
23918
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 Py_INCREF(Py_None); resultobj = Py_None;
23923 return resultobj;
23924 fail:
23925 return NULL;
23926 }
23927
23928
23929 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
23930 PyObject *resultobj;
23931 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23932 wxImageList *result;
23933 PyObject * obj0 = 0 ;
23934 char *kwnames[] = {
23935 (char *) "self", NULL
23936 };
23937
23938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
23939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23940 {
23941 PyThreadState* __tstate = wxPyBeginAllowThreads();
23942 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
23943
23944 wxPyEndAllowThreads(__tstate);
23945 if (PyErr_Occurred()) SWIG_fail;
23946 }
23947 {
23948 resultobj = wxPyMake_wxObject(result);
23949 }
23950 return resultobj;
23951 fail:
23952 return NULL;
23953 }
23954
23955
23956 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
23957 PyObject *resultobj;
23958 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23959 wxImageList *result;
23960 PyObject * obj0 = 0 ;
23961 char *kwnames[] = {
23962 (char *) "self", NULL
23963 };
23964
23965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
23966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23967 {
23968 PyThreadState* __tstate = wxPyBeginAllowThreads();
23969 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
23970
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 {
23975 resultobj = wxPyMake_wxObject(result);
23976 }
23977 return resultobj;
23978 fail:
23979 return NULL;
23980 }
23981
23982
23983 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
23984 PyObject *resultobj;
23985 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23986 wxImageList *arg2 = (wxImageList *) 0 ;
23987 PyObject * obj0 = 0 ;
23988 PyObject * obj1 = 0 ;
23989 char *kwnames[] = {
23990 (char *) "self",(char *) "imageList", NULL
23991 };
23992
23993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
23994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23995 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 (arg1)->SetImageList(arg2);
23999
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 Py_INCREF(Py_None); resultobj = Py_None;
24004 return resultobj;
24005 fail:
24006 return NULL;
24007 }
24008
24009
24010 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24011 PyObject *resultobj;
24012 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24013 wxImageList *arg2 = (wxImageList *) 0 ;
24014 PyObject * obj0 = 0 ;
24015 PyObject * obj1 = 0 ;
24016 char *kwnames[] = {
24017 (char *) "self",(char *) "imageList", NULL
24018 };
24019
24020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
24021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24022 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 (arg1)->SetStateImageList(arg2);
24026
24027 wxPyEndAllowThreads(__tstate);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 }
24030 Py_INCREF(Py_None); resultobj = Py_None;
24031 return resultobj;
24032 fail:
24033 return NULL;
24034 }
24035
24036
24037 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24038 PyObject *resultobj;
24039 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24040 wxImageList *arg2 = (wxImageList *) 0 ;
24041 PyObject * obj0 = 0 ;
24042 PyObject * obj1 = 0 ;
24043 char *kwnames[] = {
24044 (char *) "self",(char *) "imageList", NULL
24045 };
24046
24047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
24048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24049 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
24050 {
24051 PyThreadState* __tstate = wxPyBeginAllowThreads();
24052 (arg1)->AssignImageList(arg2);
24053
24054 wxPyEndAllowThreads(__tstate);
24055 if (PyErr_Occurred()) SWIG_fail;
24056 }
24057 Py_INCREF(Py_None); resultobj = Py_None;
24058 return resultobj;
24059 fail:
24060 return NULL;
24061 }
24062
24063
24064 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24065 PyObject *resultobj;
24066 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24067 wxImageList *arg2 = (wxImageList *) 0 ;
24068 PyObject * obj0 = 0 ;
24069 PyObject * obj1 = 0 ;
24070 char *kwnames[] = {
24071 (char *) "self",(char *) "imageList", NULL
24072 };
24073
24074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
24075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24076 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
24077 {
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 (arg1)->AssignStateImageList(arg2);
24080
24081 wxPyEndAllowThreads(__tstate);
24082 if (PyErr_Occurred()) SWIG_fail;
24083 }
24084 Py_INCREF(Py_None); resultobj = Py_None;
24085 return resultobj;
24086 fail:
24087 return NULL;
24088 }
24089
24090
24091 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24092 PyObject *resultobj;
24093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24094 wxTreeItemId *arg2 = 0 ;
24095 wxString result;
24096 PyObject * obj0 = 0 ;
24097 PyObject * obj1 = 0 ;
24098 char *kwnames[] = {
24099 (char *) "self",(char *) "item", NULL
24100 };
24101
24102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
24103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24104 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24105 if (arg2 == NULL) {
24106 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24107 }
24108 {
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
24111
24112 wxPyEndAllowThreads(__tstate);
24113 if (PyErr_Occurred()) SWIG_fail;
24114 }
24115 {
24116 #if wxUSE_UNICODE
24117 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24118 #else
24119 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24120 #endif
24121 }
24122 return resultobj;
24123 fail:
24124 return NULL;
24125 }
24126
24127
24128 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24129 PyObject *resultobj;
24130 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24131 wxTreeItemId *arg2 = 0 ;
24132 int arg3 = (int) wxTreeItemIcon_Normal ;
24133 int result;
24134 PyObject * obj0 = 0 ;
24135 PyObject * obj1 = 0 ;
24136 PyObject * obj2 = 0 ;
24137 char *kwnames[] = {
24138 (char *) "self",(char *) "item",(char *) "which", NULL
24139 };
24140
24141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24143 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24144 if (arg2 == NULL) {
24145 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24146 }
24147 if (obj2) {
24148 {
24149 arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 }
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
24156
24157 wxPyEndAllowThreads(__tstate);
24158 if (PyErr_Occurred()) SWIG_fail;
24159 }
24160 resultobj = SWIG_PyObj_FromInt((int)result);
24161 return resultobj;
24162 fail:
24163 return NULL;
24164 }
24165
24166
24167 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24168 PyObject *resultobj;
24169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24170 wxTreeItemId *arg2 = 0 ;
24171 wxPyTreeItemData *result;
24172 PyObject * obj0 = 0 ;
24173 PyObject * obj1 = 0 ;
24174 char *kwnames[] = {
24175 (char *) "self",(char *) "item", NULL
24176 };
24177
24178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
24179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24180 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24181 if (arg2 == NULL) {
24182 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24183 }
24184 {
24185 PyThreadState* __tstate = wxPyBeginAllowThreads();
24186 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
24187
24188 wxPyEndAllowThreads(__tstate);
24189 if (PyErr_Occurred()) SWIG_fail;
24190 }
24191 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0);
24192 return resultobj;
24193 fail:
24194 return NULL;
24195 }
24196
24197
24198 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24199 PyObject *resultobj;
24200 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24201 wxTreeItemId *arg2 = 0 ;
24202 PyObject *result;
24203 PyObject * obj0 = 0 ;
24204 PyObject * obj1 = 0 ;
24205 char *kwnames[] = {
24206 (char *) "self",(char *) "item", NULL
24207 };
24208
24209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
24210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24211 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24212 if (arg2 == NULL) {
24213 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24214 }
24215 {
24216 PyThreadState* __tstate = wxPyBeginAllowThreads();
24217 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
24218
24219 wxPyEndAllowThreads(__tstate);
24220 if (PyErr_Occurred()) SWIG_fail;
24221 }
24222 resultobj = result;
24223 return resultobj;
24224 fail:
24225 return NULL;
24226 }
24227
24228
24229 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24230 PyObject *resultobj;
24231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24232 wxTreeItemId *arg2 = 0 ;
24233 wxColour result;
24234 PyObject * obj0 = 0 ;
24235 PyObject * obj1 = 0 ;
24236 char *kwnames[] = {
24237 (char *) "self",(char *) "item", NULL
24238 };
24239
24240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
24241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24242 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24243 if (arg2 == NULL) {
24244 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24245 }
24246 {
24247 PyThreadState* __tstate = wxPyBeginAllowThreads();
24248 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
24249
24250 wxPyEndAllowThreads(__tstate);
24251 if (PyErr_Occurred()) SWIG_fail;
24252 }
24253 {
24254 wxColour * resultptr;
24255 resultptr = new wxColour((wxColour &) result);
24256 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
24257 }
24258 return resultobj;
24259 fail:
24260 return NULL;
24261 }
24262
24263
24264 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj;
24266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24267 wxTreeItemId *arg2 = 0 ;
24268 wxColour result;
24269 PyObject * obj0 = 0 ;
24270 PyObject * obj1 = 0 ;
24271 char *kwnames[] = {
24272 (char *) "self",(char *) "item", NULL
24273 };
24274
24275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24277 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24278 if (arg2 == NULL) {
24279 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24280 }
24281 {
24282 PyThreadState* __tstate = wxPyBeginAllowThreads();
24283 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
24284
24285 wxPyEndAllowThreads(__tstate);
24286 if (PyErr_Occurred()) SWIG_fail;
24287 }
24288 {
24289 wxColour * resultptr;
24290 resultptr = new wxColour((wxColour &) result);
24291 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
24292 }
24293 return resultobj;
24294 fail:
24295 return NULL;
24296 }
24297
24298
24299 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24300 PyObject *resultobj;
24301 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24302 wxTreeItemId *arg2 = 0 ;
24303 wxFont result;
24304 PyObject * obj0 = 0 ;
24305 PyObject * obj1 = 0 ;
24306 char *kwnames[] = {
24307 (char *) "self",(char *) "item", NULL
24308 };
24309
24310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
24311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24312 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24313 if (arg2 == NULL) {
24314 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24315 }
24316 {
24317 PyThreadState* __tstate = wxPyBeginAllowThreads();
24318 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
24319
24320 wxPyEndAllowThreads(__tstate);
24321 if (PyErr_Occurred()) SWIG_fail;
24322 }
24323 {
24324 wxFont * resultptr;
24325 resultptr = new wxFont((wxFont &) result);
24326 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
24327 }
24328 return resultobj;
24329 fail:
24330 return NULL;
24331 }
24332
24333
24334 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24335 PyObject *resultobj;
24336 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24337 wxTreeItemId *arg2 = 0 ;
24338 wxString *arg3 = 0 ;
24339 bool temp3 = False ;
24340 PyObject * obj0 = 0 ;
24341 PyObject * obj1 = 0 ;
24342 PyObject * obj2 = 0 ;
24343 char *kwnames[] = {
24344 (char *) "self",(char *) "item",(char *) "text", NULL
24345 };
24346
24347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
24348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24349 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24350 if (arg2 == NULL) {
24351 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24352 }
24353 {
24354 arg3 = wxString_in_helper(obj2);
24355 if (arg3 == NULL) SWIG_fail;
24356 temp3 = True;
24357 }
24358 {
24359 PyThreadState* __tstate = wxPyBeginAllowThreads();
24360 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
24361
24362 wxPyEndAllowThreads(__tstate);
24363 if (PyErr_Occurred()) SWIG_fail;
24364 }
24365 Py_INCREF(Py_None); resultobj = Py_None;
24366 {
24367 if (temp3)
24368 delete arg3;
24369 }
24370 return resultobj;
24371 fail:
24372 {
24373 if (temp3)
24374 delete arg3;
24375 }
24376 return NULL;
24377 }
24378
24379
24380 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24381 PyObject *resultobj;
24382 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24383 wxTreeItemId *arg2 = 0 ;
24384 int arg3 ;
24385 int arg4 = (int) wxTreeItemIcon_Normal ;
24386 PyObject * obj0 = 0 ;
24387 PyObject * obj1 = 0 ;
24388 PyObject * obj2 = 0 ;
24389 PyObject * obj3 = 0 ;
24390 char *kwnames[] = {
24391 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
24392 };
24393
24394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24396 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24397 if (arg2 == NULL) {
24398 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24399 }
24400 {
24401 arg3 = (int) SWIG_PyObj_AsInt(obj2);
24402 if (PyErr_Occurred()) SWIG_fail;
24403 }
24404 if (obj3) {
24405 {
24406 arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3);
24407 if (PyErr_Occurred()) SWIG_fail;
24408 }
24409 }
24410 {
24411 PyThreadState* __tstate = wxPyBeginAllowThreads();
24412 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
24413
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 Py_INCREF(Py_None); resultobj = Py_None;
24418 return resultobj;
24419 fail:
24420 return NULL;
24421 }
24422
24423
24424 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24425 PyObject *resultobj;
24426 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24427 wxTreeItemId *arg2 = 0 ;
24428 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
24429 PyObject * obj0 = 0 ;
24430 PyObject * obj1 = 0 ;
24431 PyObject * obj2 = 0 ;
24432 char *kwnames[] = {
24433 (char *) "self",(char *) "item",(char *) "data", NULL
24434 };
24435
24436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24438 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24439 if (arg2 == NULL) {
24440 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24441 }
24442 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
24446
24447 wxPyEndAllowThreads(__tstate);
24448 if (PyErr_Occurred()) SWIG_fail;
24449 }
24450 Py_INCREF(Py_None); resultobj = Py_None;
24451 return resultobj;
24452 fail:
24453 return NULL;
24454 }
24455
24456
24457 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24458 PyObject *resultobj;
24459 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24460 wxTreeItemId *arg2 = 0 ;
24461 PyObject *arg3 = (PyObject *) 0 ;
24462 PyObject * obj0 = 0 ;
24463 PyObject * obj1 = 0 ;
24464 PyObject * obj2 = 0 ;
24465 char *kwnames[] = {
24466 (char *) "self",(char *) "item",(char *) "obj", NULL
24467 };
24468
24469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24471 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24472 if (arg2 == NULL) {
24473 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24474 }
24475 arg3 = obj2;
24476 {
24477 PyThreadState* __tstate = wxPyBeginAllowThreads();
24478 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
24479
24480 wxPyEndAllowThreads(__tstate);
24481 if (PyErr_Occurred()) SWIG_fail;
24482 }
24483 Py_INCREF(Py_None); resultobj = Py_None;
24484 return resultobj;
24485 fail:
24486 return NULL;
24487 }
24488
24489
24490 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24491 PyObject *resultobj;
24492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24493 wxTreeItemId *arg2 = 0 ;
24494 bool arg3 = (bool) True ;
24495 PyObject * obj0 = 0 ;
24496 PyObject * obj1 = 0 ;
24497 PyObject * obj2 = 0 ;
24498 char *kwnames[] = {
24499 (char *) "self",(char *) "item",(char *) "has", NULL
24500 };
24501
24502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
24503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24504 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24505 if (arg2 == NULL) {
24506 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24507 }
24508 if (obj2) {
24509 {
24510 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
24511 if (PyErr_Occurred()) SWIG_fail;
24512 }
24513 }
24514 {
24515 PyThreadState* __tstate = wxPyBeginAllowThreads();
24516 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
24517
24518 wxPyEndAllowThreads(__tstate);
24519 if (PyErr_Occurred()) SWIG_fail;
24520 }
24521 Py_INCREF(Py_None); resultobj = Py_None;
24522 return resultobj;
24523 fail:
24524 return NULL;
24525 }
24526
24527
24528 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
24529 PyObject *resultobj;
24530 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24531 wxTreeItemId *arg2 = 0 ;
24532 bool arg3 = (bool) True ;
24533 PyObject * obj0 = 0 ;
24534 PyObject * obj1 = 0 ;
24535 PyObject * obj2 = 0 ;
24536 char *kwnames[] = {
24537 (char *) "self",(char *) "item",(char *) "bold", NULL
24538 };
24539
24540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
24541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24542 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24543 if (arg2 == NULL) {
24544 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24545 }
24546 if (obj2) {
24547 {
24548 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
24549 if (PyErr_Occurred()) SWIG_fail;
24550 }
24551 }
24552 {
24553 PyThreadState* __tstate = wxPyBeginAllowThreads();
24554 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
24555
24556 wxPyEndAllowThreads(__tstate);
24557 if (PyErr_Occurred()) SWIG_fail;
24558 }
24559 Py_INCREF(Py_None); resultobj = Py_None;
24560 return resultobj;
24561 fail:
24562 return NULL;
24563 }
24564
24565
24566 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24567 PyObject *resultobj;
24568 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24569 wxTreeItemId *arg2 = 0 ;
24570 wxColour *arg3 = 0 ;
24571 wxColour temp3 ;
24572 PyObject * obj0 = 0 ;
24573 PyObject * obj1 = 0 ;
24574 PyObject * obj2 = 0 ;
24575 char *kwnames[] = {
24576 (char *) "self",(char *) "item",(char *) "col", NULL
24577 };
24578
24579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24581 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24582 if (arg2 == NULL) {
24583 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24584 }
24585 {
24586 arg3 = &temp3;
24587 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24588 }
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24592
24593 wxPyEndAllowThreads(__tstate);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 }
24596 Py_INCREF(Py_None); resultobj = Py_None;
24597 return resultobj;
24598 fail:
24599 return NULL;
24600 }
24601
24602
24603 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24604 PyObject *resultobj;
24605 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24606 wxTreeItemId *arg2 = 0 ;
24607 wxColour *arg3 = 0 ;
24608 wxColour temp3 ;
24609 PyObject * obj0 = 0 ;
24610 PyObject * obj1 = 0 ;
24611 PyObject * obj2 = 0 ;
24612 char *kwnames[] = {
24613 (char *) "self",(char *) "item",(char *) "col", NULL
24614 };
24615
24616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24618 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24619 if (arg2 == NULL) {
24620 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24621 }
24622 {
24623 arg3 = &temp3;
24624 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24625 }
24626 {
24627 PyThreadState* __tstate = wxPyBeginAllowThreads();
24628 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24629
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 Py_INCREF(Py_None); resultobj = Py_None;
24634 return resultobj;
24635 fail:
24636 return NULL;
24637 }
24638
24639
24640 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24641 PyObject *resultobj;
24642 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24643 wxTreeItemId *arg2 = 0 ;
24644 wxFont *arg3 = 0 ;
24645 PyObject * obj0 = 0 ;
24646 PyObject * obj1 = 0 ;
24647 PyObject * obj2 = 0 ;
24648 char *kwnames[] = {
24649 (char *) "self",(char *) "item",(char *) "font", NULL
24650 };
24651
24652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
24653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24654 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24655 if (arg2 == NULL) {
24656 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24657 }
24658 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24659 if (arg3 == NULL) {
24660 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24661 }
24662 {
24663 PyThreadState* __tstate = wxPyBeginAllowThreads();
24664 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
24665
24666 wxPyEndAllowThreads(__tstate);
24667 if (PyErr_Occurred()) SWIG_fail;
24668 }
24669 Py_INCREF(Py_None); resultobj = Py_None;
24670 return resultobj;
24671 fail:
24672 return NULL;
24673 }
24674
24675
24676 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
24677 PyObject *resultobj;
24678 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24679 wxTreeItemId *arg2 = 0 ;
24680 bool result;
24681 PyObject * obj0 = 0 ;
24682 PyObject * obj1 = 0 ;
24683 char *kwnames[] = {
24684 (char *) "self",(char *) "item", NULL
24685 };
24686
24687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
24688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24689 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24690 if (arg2 == NULL) {
24691 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24692 }
24693 {
24694 PyThreadState* __tstate = wxPyBeginAllowThreads();
24695 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
24696
24697 wxPyEndAllowThreads(__tstate);
24698 if (PyErr_Occurred()) SWIG_fail;
24699 }
24700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24701 return resultobj;
24702 fail:
24703 return NULL;
24704 }
24705
24706
24707 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24708 PyObject *resultobj;
24709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24710 wxTreeItemId *arg2 = 0 ;
24711 bool result;
24712 PyObject * obj0 = 0 ;
24713 PyObject * obj1 = 0 ;
24714 char *kwnames[] = {
24715 (char *) "self",(char *) "item", NULL
24716 };
24717
24718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
24719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24720 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24721 if (arg2 == NULL) {
24722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24723 }
24724 {
24725 PyThreadState* __tstate = wxPyBeginAllowThreads();
24726 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
24727
24728 wxPyEndAllowThreads(__tstate);
24729 if (PyErr_Occurred()) SWIG_fail;
24730 }
24731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24732 return resultobj;
24733 fail:
24734 return NULL;
24735 }
24736
24737
24738 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
24739 PyObject *resultobj;
24740 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24741 wxTreeItemId *arg2 = 0 ;
24742 bool result;
24743 PyObject * obj0 = 0 ;
24744 PyObject * obj1 = 0 ;
24745 char *kwnames[] = {
24746 (char *) "self",(char *) "item", NULL
24747 };
24748
24749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
24750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24751 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24752 if (arg2 == NULL) {
24753 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24754 }
24755 {
24756 PyThreadState* __tstate = wxPyBeginAllowThreads();
24757 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
24758
24759 wxPyEndAllowThreads(__tstate);
24760 if (PyErr_Occurred()) SWIG_fail;
24761 }
24762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24763 return resultobj;
24764 fail:
24765 return NULL;
24766 }
24767
24768
24769 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
24770 PyObject *resultobj;
24771 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24772 wxTreeItemId *arg2 = 0 ;
24773 bool result;
24774 PyObject * obj0 = 0 ;
24775 PyObject * obj1 = 0 ;
24776 char *kwnames[] = {
24777 (char *) "self",(char *) "item", NULL
24778 };
24779
24780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24782 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24783 if (arg2 == NULL) {
24784 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24785 }
24786 {
24787 PyThreadState* __tstate = wxPyBeginAllowThreads();
24788 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
24789
24790 wxPyEndAllowThreads(__tstate);
24791 if (PyErr_Occurred()) SWIG_fail;
24792 }
24793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24794 return resultobj;
24795 fail:
24796 return NULL;
24797 }
24798
24799
24800 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
24801 PyObject *resultobj;
24802 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24803 wxTreeItemId *arg2 = 0 ;
24804 bool result;
24805 PyObject * obj0 = 0 ;
24806 PyObject * obj1 = 0 ;
24807 char *kwnames[] = {
24808 (char *) "self",(char *) "item", NULL
24809 };
24810
24811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
24812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24813 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24814 if (arg2 == NULL) {
24815 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24816 }
24817 {
24818 PyThreadState* __tstate = wxPyBeginAllowThreads();
24819 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
24820
24821 wxPyEndAllowThreads(__tstate);
24822 if (PyErr_Occurred()) SWIG_fail;
24823 }
24824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24825 return resultobj;
24826 fail:
24827 return NULL;
24828 }
24829
24830
24831 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24832 PyObject *resultobj;
24833 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24834 wxTreeItemId *arg2 = 0 ;
24835 bool arg3 = (bool) True ;
24836 size_t result;
24837 PyObject * obj0 = 0 ;
24838 PyObject * obj1 = 0 ;
24839 PyObject * obj2 = 0 ;
24840 char *kwnames[] = {
24841 (char *) "self",(char *) "item",(char *) "recursively", NULL
24842 };
24843
24844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
24845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24846 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24847 if (arg2 == NULL) {
24848 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24849 }
24850 if (obj2) {
24851 {
24852 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
24853 if (PyErr_Occurred()) SWIG_fail;
24854 }
24855 }
24856 {
24857 PyThreadState* __tstate = wxPyBeginAllowThreads();
24858 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
24859
24860 wxPyEndAllowThreads(__tstate);
24861 if (PyErr_Occurred()) SWIG_fail;
24862 }
24863 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
24864 return resultobj;
24865 fail:
24866 return NULL;
24867 }
24868
24869
24870 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24871 PyObject *resultobj;
24872 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24873 wxTreeItemId result;
24874 PyObject * obj0 = 0 ;
24875 char *kwnames[] = {
24876 (char *) "self", NULL
24877 };
24878
24879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
24880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24881 {
24882 PyThreadState* __tstate = wxPyBeginAllowThreads();
24883 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
24884
24885 wxPyEndAllowThreads(__tstate);
24886 if (PyErr_Occurred()) SWIG_fail;
24887 }
24888 {
24889 wxTreeItemId * resultptr;
24890 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24891 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
24892 }
24893 return resultobj;
24894 fail:
24895 return NULL;
24896 }
24897
24898
24899 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
24900 PyObject *resultobj;
24901 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24902 wxTreeItemId result;
24903 PyObject * obj0 = 0 ;
24904 char *kwnames[] = {
24905 (char *) "self", NULL
24906 };
24907
24908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
24909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24910 {
24911 PyThreadState* __tstate = wxPyBeginAllowThreads();
24912 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
24913
24914 wxPyEndAllowThreads(__tstate);
24915 if (PyErr_Occurred()) SWIG_fail;
24916 }
24917 {
24918 wxTreeItemId * resultptr;
24919 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24920 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
24921 }
24922 return resultobj;
24923 fail:
24924 return NULL;
24925 }
24926
24927
24928 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
24929 PyObject *resultobj;
24930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24931 PyObject *result;
24932 PyObject * obj0 = 0 ;
24933 char *kwnames[] = {
24934 (char *) "self", NULL
24935 };
24936
24937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
24938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24939 {
24940 PyThreadState* __tstate = wxPyBeginAllowThreads();
24941 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
24942
24943 wxPyEndAllowThreads(__tstate);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = result;
24947 return resultobj;
24948 fail:
24949 return NULL;
24950 }
24951
24952
24953 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24954 PyObject *resultobj;
24955 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24956 wxTreeItemId *arg2 = 0 ;
24957 wxTreeItemId result;
24958 PyObject * obj0 = 0 ;
24959 PyObject * obj1 = 0 ;
24960 char *kwnames[] = {
24961 (char *) "self",(char *) "item", NULL
24962 };
24963
24964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
24965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24966 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24967 if (arg2 == NULL) {
24968 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24969 }
24970 {
24971 PyThreadState* __tstate = wxPyBeginAllowThreads();
24972 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
24973
24974 wxPyEndAllowThreads(__tstate);
24975 if (PyErr_Occurred()) SWIG_fail;
24976 }
24977 {
24978 wxTreeItemId * resultptr;
24979 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24980 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
24981 }
24982 return resultobj;
24983 fail:
24984 return NULL;
24985 }
24986
24987
24988 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24989 PyObject *resultobj;
24990 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24991 wxTreeItemId *arg2 = 0 ;
24992 PyObject *result;
24993 PyObject * obj0 = 0 ;
24994 PyObject * obj1 = 0 ;
24995 char *kwnames[] = {
24996 (char *) "self",(char *) "item", NULL
24997 };
24998
24999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
25000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25001 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25002 if (arg2 == NULL) {
25003 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25004 }
25005 {
25006 PyThreadState* __tstate = wxPyBeginAllowThreads();
25007 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
25008
25009 wxPyEndAllowThreads(__tstate);
25010 if (PyErr_Occurred()) SWIG_fail;
25011 }
25012 resultobj = result;
25013 return resultobj;
25014 fail:
25015 return NULL;
25016 }
25017
25018
25019 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25020 PyObject *resultobj;
25021 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25022 wxTreeItemId *arg2 = 0 ;
25023 void *arg3 = (void *) 0 ;
25024 PyObject *result;
25025 PyObject * obj0 = 0 ;
25026 PyObject * obj1 = 0 ;
25027 PyObject * obj2 = 0 ;
25028 char *kwnames[] = {
25029 (char *) "self",(char *) "item",(char *) "cookie", NULL
25030 };
25031
25032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
25033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25034 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25035 if (arg2 == NULL) {
25036 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25037 }
25038 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25039 {
25040 PyThreadState* __tstate = wxPyBeginAllowThreads();
25041 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
25042
25043 wxPyEndAllowThreads(__tstate);
25044 if (PyErr_Occurred()) SWIG_fail;
25045 }
25046 resultobj = result;
25047 return resultobj;
25048 fail:
25049 return NULL;
25050 }
25051
25052
25053 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25054 PyObject *resultobj;
25055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25056 wxTreeItemId *arg2 = 0 ;
25057 wxTreeItemId result;
25058 PyObject * obj0 = 0 ;
25059 PyObject * obj1 = 0 ;
25060 char *kwnames[] = {
25061 (char *) "self",(char *) "item", NULL
25062 };
25063
25064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
25065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25066 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25067 if (arg2 == NULL) {
25068 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25069 }
25070 {
25071 PyThreadState* __tstate = wxPyBeginAllowThreads();
25072 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
25073
25074 wxPyEndAllowThreads(__tstate);
25075 if (PyErr_Occurred()) SWIG_fail;
25076 }
25077 {
25078 wxTreeItemId * resultptr;
25079 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25080 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25081 }
25082 return resultobj;
25083 fail:
25084 return NULL;
25085 }
25086
25087
25088 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25089 PyObject *resultobj;
25090 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25091 wxTreeItemId *arg2 = 0 ;
25092 wxTreeItemId result;
25093 PyObject * obj0 = 0 ;
25094 PyObject * obj1 = 0 ;
25095 char *kwnames[] = {
25096 (char *) "self",(char *) "item", NULL
25097 };
25098
25099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
25100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25101 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25102 if (arg2 == NULL) {
25103 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25104 }
25105 {
25106 PyThreadState* __tstate = wxPyBeginAllowThreads();
25107 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
25108
25109 wxPyEndAllowThreads(__tstate);
25110 if (PyErr_Occurred()) SWIG_fail;
25111 }
25112 {
25113 wxTreeItemId * resultptr;
25114 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25115 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25116 }
25117 return resultobj;
25118 fail:
25119 return NULL;
25120 }
25121
25122
25123 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25124 PyObject *resultobj;
25125 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25126 wxTreeItemId *arg2 = 0 ;
25127 wxTreeItemId result;
25128 PyObject * obj0 = 0 ;
25129 PyObject * obj1 = 0 ;
25130 char *kwnames[] = {
25131 (char *) "self",(char *) "item", NULL
25132 };
25133
25134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
25135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25136 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25137 if (arg2 == NULL) {
25138 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25139 }
25140 {
25141 PyThreadState* __tstate = wxPyBeginAllowThreads();
25142 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
25143
25144 wxPyEndAllowThreads(__tstate);
25145 if (PyErr_Occurred()) SWIG_fail;
25146 }
25147 {
25148 wxTreeItemId * resultptr;
25149 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25150 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25151 }
25152 return resultobj;
25153 fail:
25154 return NULL;
25155 }
25156
25157
25158 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25159 PyObject *resultobj;
25160 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25161 wxTreeItemId result;
25162 PyObject * obj0 = 0 ;
25163 char *kwnames[] = {
25164 (char *) "self", NULL
25165 };
25166
25167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
25168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25169 {
25170 PyThreadState* __tstate = wxPyBeginAllowThreads();
25171 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
25172
25173 wxPyEndAllowThreads(__tstate);
25174 if (PyErr_Occurred()) SWIG_fail;
25175 }
25176 {
25177 wxTreeItemId * resultptr;
25178 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25179 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25180 }
25181 return resultobj;
25182 fail:
25183 return NULL;
25184 }
25185
25186
25187 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25188 PyObject *resultobj;
25189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25190 wxTreeItemId *arg2 = 0 ;
25191 wxTreeItemId result;
25192 PyObject * obj0 = 0 ;
25193 PyObject * obj1 = 0 ;
25194 char *kwnames[] = {
25195 (char *) "self",(char *) "item", NULL
25196 };
25197
25198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
25199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25200 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25201 if (arg2 == NULL) {
25202 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25203 }
25204 {
25205 PyThreadState* __tstate = wxPyBeginAllowThreads();
25206 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
25207
25208 wxPyEndAllowThreads(__tstate);
25209 if (PyErr_Occurred()) SWIG_fail;
25210 }
25211 {
25212 wxTreeItemId * resultptr;
25213 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25214 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25215 }
25216 return resultobj;
25217 fail:
25218 return NULL;
25219 }
25220
25221
25222 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25223 PyObject *resultobj;
25224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25225 wxTreeItemId *arg2 = 0 ;
25226 wxTreeItemId result;
25227 PyObject * obj0 = 0 ;
25228 PyObject * obj1 = 0 ;
25229 char *kwnames[] = {
25230 (char *) "self",(char *) "item", NULL
25231 };
25232
25233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
25234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25235 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25236 if (arg2 == NULL) {
25237 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25238 }
25239 {
25240 PyThreadState* __tstate = wxPyBeginAllowThreads();
25241 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
25242
25243 wxPyEndAllowThreads(__tstate);
25244 if (PyErr_Occurred()) SWIG_fail;
25245 }
25246 {
25247 wxTreeItemId * resultptr;
25248 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25249 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25250 }
25251 return resultobj;
25252 fail:
25253 return NULL;
25254 }
25255
25256
25257 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
25258 PyObject *resultobj;
25259 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25260 wxString *arg2 = 0 ;
25261 int arg3 = (int) -1 ;
25262 int arg4 = (int) -1 ;
25263 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
25264 wxTreeItemId result;
25265 bool temp2 = False ;
25266 PyObject * obj0 = 0 ;
25267 PyObject * obj1 = 0 ;
25268 PyObject * obj2 = 0 ;
25269 PyObject * obj3 = 0 ;
25270 PyObject * obj4 = 0 ;
25271 char *kwnames[] = {
25272 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25273 };
25274
25275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25277 {
25278 arg2 = wxString_in_helper(obj1);
25279 if (arg2 == NULL) SWIG_fail;
25280 temp2 = True;
25281 }
25282 if (obj2) {
25283 {
25284 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25285 if (PyErr_Occurred()) SWIG_fail;
25286 }
25287 }
25288 if (obj3) {
25289 {
25290 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
25293 }
25294 if (obj4) {
25295 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25296 }
25297 {
25298 PyThreadState* __tstate = wxPyBeginAllowThreads();
25299 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
25300
25301 wxPyEndAllowThreads(__tstate);
25302 if (PyErr_Occurred()) SWIG_fail;
25303 }
25304 {
25305 wxTreeItemId * resultptr;
25306 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25307 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25308 }
25309 {
25310 if (temp2)
25311 delete arg2;
25312 }
25313 return resultobj;
25314 fail:
25315 {
25316 if (temp2)
25317 delete arg2;
25318 }
25319 return NULL;
25320 }
25321
25322
25323 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25324 PyObject *resultobj;
25325 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25326 wxTreeItemId *arg2 = 0 ;
25327 wxString *arg3 = 0 ;
25328 int arg4 = (int) -1 ;
25329 int arg5 = (int) -1 ;
25330 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25331 wxTreeItemId result;
25332 bool temp3 = False ;
25333 PyObject * obj0 = 0 ;
25334 PyObject * obj1 = 0 ;
25335 PyObject * obj2 = 0 ;
25336 PyObject * obj3 = 0 ;
25337 PyObject * obj4 = 0 ;
25338 PyObject * obj5 = 0 ;
25339 char *kwnames[] = {
25340 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25341 };
25342
25343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25345 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25346 if (arg2 == NULL) {
25347 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25348 }
25349 {
25350 arg3 = wxString_in_helper(obj2);
25351 if (arg3 == NULL) SWIG_fail;
25352 temp3 = True;
25353 }
25354 if (obj3) {
25355 {
25356 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25357 if (PyErr_Occurred()) SWIG_fail;
25358 }
25359 }
25360 if (obj4) {
25361 {
25362 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25363 if (PyErr_Occurred()) SWIG_fail;
25364 }
25365 }
25366 if (obj5) {
25367 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25368 }
25369 {
25370 PyThreadState* __tstate = wxPyBeginAllowThreads();
25371 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25372
25373 wxPyEndAllowThreads(__tstate);
25374 if (PyErr_Occurred()) SWIG_fail;
25375 }
25376 {
25377 wxTreeItemId * resultptr;
25378 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25379 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25380 }
25381 {
25382 if (temp3)
25383 delete arg3;
25384 }
25385 return resultobj;
25386 fail:
25387 {
25388 if (temp3)
25389 delete arg3;
25390 }
25391 return NULL;
25392 }
25393
25394
25395 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25396 PyObject *resultobj;
25397 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25398 wxTreeItemId *arg2 = 0 ;
25399 wxTreeItemId *arg3 = 0 ;
25400 wxString *arg4 = 0 ;
25401 int arg5 = (int) -1 ;
25402 int arg6 = (int) -1 ;
25403 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25404 wxTreeItemId result;
25405 bool temp4 = False ;
25406 PyObject * obj0 = 0 ;
25407 PyObject * obj1 = 0 ;
25408 PyObject * obj2 = 0 ;
25409 PyObject * obj3 = 0 ;
25410 PyObject * obj4 = 0 ;
25411 PyObject * obj5 = 0 ;
25412 PyObject * obj6 = 0 ;
25413 char *kwnames[] = {
25414 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25415 };
25416
25417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25419 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25420 if (arg2 == NULL) {
25421 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25422 }
25423 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25424 if (arg3 == NULL) {
25425 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25426 }
25427 {
25428 arg4 = wxString_in_helper(obj3);
25429 if (arg4 == NULL) SWIG_fail;
25430 temp4 = True;
25431 }
25432 if (obj4) {
25433 {
25434 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25435 if (PyErr_Occurred()) SWIG_fail;
25436 }
25437 }
25438 if (obj5) {
25439 {
25440 arg6 = (int) SWIG_PyObj_AsInt(obj5);
25441 if (PyErr_Occurred()) SWIG_fail;
25442 }
25443 }
25444 if (obj6) {
25445 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25446 }
25447 {
25448 PyThreadState* __tstate = wxPyBeginAllowThreads();
25449 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25450
25451 wxPyEndAllowThreads(__tstate);
25452 if (PyErr_Occurred()) SWIG_fail;
25453 }
25454 {
25455 wxTreeItemId * resultptr;
25456 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25457 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25458 }
25459 {
25460 if (temp4)
25461 delete arg4;
25462 }
25463 return resultobj;
25464 fail:
25465 {
25466 if (temp4)
25467 delete arg4;
25468 }
25469 return NULL;
25470 }
25471
25472
25473 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
25474 PyObject *resultobj;
25475 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25476 wxTreeItemId *arg2 = 0 ;
25477 size_t arg3 ;
25478 wxString *arg4 = 0 ;
25479 int arg5 = (int) -1 ;
25480 int arg6 = (int) -1 ;
25481 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25482 wxTreeItemId result;
25483 bool temp4 = False ;
25484 PyObject * obj0 = 0 ;
25485 PyObject * obj1 = 0 ;
25486 PyObject * obj2 = 0 ;
25487 PyObject * obj3 = 0 ;
25488 PyObject * obj4 = 0 ;
25489 PyObject * obj5 = 0 ;
25490 PyObject * obj6 = 0 ;
25491 char *kwnames[] = {
25492 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25493 };
25494
25495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25497 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25498 if (arg2 == NULL) {
25499 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25500 }
25501 {
25502 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 {
25506 arg4 = wxString_in_helper(obj3);
25507 if (arg4 == NULL) SWIG_fail;
25508 temp4 = True;
25509 }
25510 if (obj4) {
25511 {
25512 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25513 if (PyErr_Occurred()) SWIG_fail;
25514 }
25515 }
25516 if (obj5) {
25517 {
25518 arg6 = (int) SWIG_PyObj_AsInt(obj5);
25519 if (PyErr_Occurred()) SWIG_fail;
25520 }
25521 }
25522 if (obj6) {
25523 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25524 }
25525 {
25526 PyThreadState* __tstate = wxPyBeginAllowThreads();
25527 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25528
25529 wxPyEndAllowThreads(__tstate);
25530 if (PyErr_Occurred()) SWIG_fail;
25531 }
25532 {
25533 wxTreeItemId * resultptr;
25534 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25535 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25536 }
25537 {
25538 if (temp4)
25539 delete arg4;
25540 }
25541 return resultobj;
25542 fail:
25543 {
25544 if (temp4)
25545 delete arg4;
25546 }
25547 return NULL;
25548 }
25549
25550
25551 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25552 PyObject *resultobj;
25553 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25554 wxTreeItemId *arg2 = 0 ;
25555 wxString *arg3 = 0 ;
25556 int arg4 = (int) -1 ;
25557 int arg5 = (int) -1 ;
25558 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25559 wxTreeItemId result;
25560 bool temp3 = False ;
25561 PyObject * obj0 = 0 ;
25562 PyObject * obj1 = 0 ;
25563 PyObject * obj2 = 0 ;
25564 PyObject * obj3 = 0 ;
25565 PyObject * obj4 = 0 ;
25566 PyObject * obj5 = 0 ;
25567 char *kwnames[] = {
25568 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25569 };
25570
25571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25573 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25574 if (arg2 == NULL) {
25575 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25576 }
25577 {
25578 arg3 = wxString_in_helper(obj2);
25579 if (arg3 == NULL) SWIG_fail;
25580 temp3 = True;
25581 }
25582 if (obj3) {
25583 {
25584 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25585 if (PyErr_Occurred()) SWIG_fail;
25586 }
25587 }
25588 if (obj4) {
25589 {
25590 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25591 if (PyErr_Occurred()) SWIG_fail;
25592 }
25593 }
25594 if (obj5) {
25595 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25596 }
25597 {
25598 PyThreadState* __tstate = wxPyBeginAllowThreads();
25599 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25600
25601 wxPyEndAllowThreads(__tstate);
25602 if (PyErr_Occurred()) SWIG_fail;
25603 }
25604 {
25605 wxTreeItemId * resultptr;
25606 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25607 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25608 }
25609 {
25610 if (temp3)
25611 delete arg3;
25612 }
25613 return resultobj;
25614 fail:
25615 {
25616 if (temp3)
25617 delete arg3;
25618 }
25619 return NULL;
25620 }
25621
25622
25623 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
25624 PyObject *resultobj;
25625 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25626 wxTreeItemId *arg2 = 0 ;
25627 PyObject * obj0 = 0 ;
25628 PyObject * obj1 = 0 ;
25629 char *kwnames[] = {
25630 (char *) "self",(char *) "item", NULL
25631 };
25632
25633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
25634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25635 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25636 if (arg2 == NULL) {
25637 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25638 }
25639 {
25640 PyThreadState* __tstate = wxPyBeginAllowThreads();
25641 (arg1)->Delete((wxTreeItemId const &)*arg2);
25642
25643 wxPyEndAllowThreads(__tstate);
25644 if (PyErr_Occurred()) SWIG_fail;
25645 }
25646 Py_INCREF(Py_None); resultobj = Py_None;
25647 return resultobj;
25648 fail:
25649 return NULL;
25650 }
25651
25652
25653 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25654 PyObject *resultobj;
25655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25656 wxTreeItemId *arg2 = 0 ;
25657 PyObject * obj0 = 0 ;
25658 PyObject * obj1 = 0 ;
25659 char *kwnames[] = {
25660 (char *) "self",(char *) "item", NULL
25661 };
25662
25663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
25664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25665 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25666 if (arg2 == NULL) {
25667 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25668 }
25669 {
25670 PyThreadState* __tstate = wxPyBeginAllowThreads();
25671 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
25672
25673 wxPyEndAllowThreads(__tstate);
25674 if (PyErr_Occurred()) SWIG_fail;
25675 }
25676 Py_INCREF(Py_None); resultobj = Py_None;
25677 return resultobj;
25678 fail:
25679 return NULL;
25680 }
25681
25682
25683 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
25684 PyObject *resultobj;
25685 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25686 PyObject * obj0 = 0 ;
25687 char *kwnames[] = {
25688 (char *) "self", NULL
25689 };
25690
25691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
25692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25693 {
25694 PyThreadState* __tstate = wxPyBeginAllowThreads();
25695 (arg1)->DeleteAllItems();
25696
25697 wxPyEndAllowThreads(__tstate);
25698 if (PyErr_Occurred()) SWIG_fail;
25699 }
25700 Py_INCREF(Py_None); resultobj = Py_None;
25701 return resultobj;
25702 fail:
25703 return NULL;
25704 }
25705
25706
25707 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
25708 PyObject *resultobj;
25709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25710 wxTreeItemId *arg2 = 0 ;
25711 PyObject * obj0 = 0 ;
25712 PyObject * obj1 = 0 ;
25713 char *kwnames[] = {
25714 (char *) "self",(char *) "item", NULL
25715 };
25716
25717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
25718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25719 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25720 if (arg2 == NULL) {
25721 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25722 }
25723 {
25724 PyThreadState* __tstate = wxPyBeginAllowThreads();
25725 (arg1)->Expand((wxTreeItemId const &)*arg2);
25726
25727 wxPyEndAllowThreads(__tstate);
25728 if (PyErr_Occurred()) SWIG_fail;
25729 }
25730 Py_INCREF(Py_None); resultobj = Py_None;
25731 return resultobj;
25732 fail:
25733 return NULL;
25734 }
25735
25736
25737 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
25738 PyObject *resultobj;
25739 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25740 wxTreeItemId *arg2 = 0 ;
25741 PyObject * obj0 = 0 ;
25742 PyObject * obj1 = 0 ;
25743 char *kwnames[] = {
25744 (char *) "self",(char *) "item", NULL
25745 };
25746
25747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
25748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25749 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25750 if (arg2 == NULL) {
25751 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25752 }
25753 {
25754 PyThreadState* __tstate = wxPyBeginAllowThreads();
25755 (arg1)->Collapse((wxTreeItemId const &)*arg2);
25756
25757 wxPyEndAllowThreads(__tstate);
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 Py_INCREF(Py_None); resultobj = Py_None;
25761 return resultobj;
25762 fail:
25763 return NULL;
25764 }
25765
25766
25767 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
25768 PyObject *resultobj;
25769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25770 wxTreeItemId *arg2 = 0 ;
25771 PyObject * obj0 = 0 ;
25772 PyObject * obj1 = 0 ;
25773 char *kwnames[] = {
25774 (char *) "self",(char *) "item", NULL
25775 };
25776
25777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
25778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25779 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25780 if (arg2 == NULL) {
25781 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25782 }
25783 {
25784 PyThreadState* __tstate = wxPyBeginAllowThreads();
25785 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
25786
25787 wxPyEndAllowThreads(__tstate);
25788 if (PyErr_Occurred()) SWIG_fail;
25789 }
25790 Py_INCREF(Py_None); resultobj = Py_None;
25791 return resultobj;
25792 fail:
25793 return NULL;
25794 }
25795
25796
25797 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
25798 PyObject *resultobj;
25799 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25800 wxTreeItemId *arg2 = 0 ;
25801 PyObject * obj0 = 0 ;
25802 PyObject * obj1 = 0 ;
25803 char *kwnames[] = {
25804 (char *) "self",(char *) "item", NULL
25805 };
25806
25807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
25808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25809 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25810 if (arg2 == NULL) {
25811 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25812 }
25813 {
25814 PyThreadState* __tstate = wxPyBeginAllowThreads();
25815 (arg1)->Toggle((wxTreeItemId const &)*arg2);
25816
25817 wxPyEndAllowThreads(__tstate);
25818 if (PyErr_Occurred()) SWIG_fail;
25819 }
25820 Py_INCREF(Py_None); resultobj = Py_None;
25821 return resultobj;
25822 fail:
25823 return NULL;
25824 }
25825
25826
25827 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
25828 PyObject *resultobj;
25829 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25830 PyObject * obj0 = 0 ;
25831 char *kwnames[] = {
25832 (char *) "self", NULL
25833 };
25834
25835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
25836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25837 {
25838 PyThreadState* __tstate = wxPyBeginAllowThreads();
25839 (arg1)->Unselect();
25840
25841 wxPyEndAllowThreads(__tstate);
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
25844 Py_INCREF(Py_None); resultobj = Py_None;
25845 return resultobj;
25846 fail:
25847 return NULL;
25848 }
25849
25850
25851 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25852 PyObject *resultobj;
25853 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25854 wxTreeItemId *arg2 = 0 ;
25855 PyObject * obj0 = 0 ;
25856 PyObject * obj1 = 0 ;
25857 char *kwnames[] = {
25858 (char *) "self",(char *) "item", NULL
25859 };
25860
25861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
25862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25863 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25864 if (arg2 == NULL) {
25865 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25866 }
25867 {
25868 PyThreadState* __tstate = wxPyBeginAllowThreads();
25869 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
25870
25871 wxPyEndAllowThreads(__tstate);
25872 if (PyErr_Occurred()) SWIG_fail;
25873 }
25874 Py_INCREF(Py_None); resultobj = Py_None;
25875 return resultobj;
25876 fail:
25877 return NULL;
25878 }
25879
25880
25881 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
25882 PyObject *resultobj;
25883 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25884 PyObject * obj0 = 0 ;
25885 char *kwnames[] = {
25886 (char *) "self", NULL
25887 };
25888
25889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
25890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25891 {
25892 PyThreadState* __tstate = wxPyBeginAllowThreads();
25893 (arg1)->UnselectAll();
25894
25895 wxPyEndAllowThreads(__tstate);
25896 if (PyErr_Occurred()) SWIG_fail;
25897 }
25898 Py_INCREF(Py_None); resultobj = Py_None;
25899 return resultobj;
25900 fail:
25901 return NULL;
25902 }
25903
25904
25905 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25906 PyObject *resultobj;
25907 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25908 wxTreeItemId *arg2 = 0 ;
25909 bool arg3 = (bool) True ;
25910 PyObject * obj0 = 0 ;
25911 PyObject * obj1 = 0 ;
25912 PyObject * obj2 = 0 ;
25913 char *kwnames[] = {
25914 (char *) "self",(char *) "item",(char *) "select", NULL
25915 };
25916
25917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
25918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25919 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25920 if (arg2 == NULL) {
25921 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25922 }
25923 if (obj2) {
25924 {
25925 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 }
25929 {
25930 PyThreadState* __tstate = wxPyBeginAllowThreads();
25931 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
25932
25933 wxPyEndAllowThreads(__tstate);
25934 if (PyErr_Occurred()) SWIG_fail;
25935 }
25936 Py_INCREF(Py_None); resultobj = Py_None;
25937 return resultobj;
25938 fail:
25939 return NULL;
25940 }
25941
25942
25943 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
25944 PyObject *resultobj;
25945 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25946 wxTreeItemId *arg2 = 0 ;
25947 PyObject * obj0 = 0 ;
25948 PyObject * obj1 = 0 ;
25949 char *kwnames[] = {
25950 (char *) "self",(char *) "item", NULL
25951 };
25952
25953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
25954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25955 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25956 if (arg2 == NULL) {
25957 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25958 }
25959 {
25960 PyThreadState* __tstate = wxPyBeginAllowThreads();
25961 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
25962
25963 wxPyEndAllowThreads(__tstate);
25964 if (PyErr_Occurred()) SWIG_fail;
25965 }
25966 Py_INCREF(Py_None); resultobj = Py_None;
25967 return resultobj;
25968 fail:
25969 return NULL;
25970 }
25971
25972
25973 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25974 PyObject *resultobj;
25975 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25976 wxTreeItemId *arg2 = 0 ;
25977 PyObject * obj0 = 0 ;
25978 PyObject * obj1 = 0 ;
25979 char *kwnames[] = {
25980 (char *) "self",(char *) "item", NULL
25981 };
25982
25983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
25984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25985 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25986 if (arg2 == NULL) {
25987 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25988 }
25989 {
25990 PyThreadState* __tstate = wxPyBeginAllowThreads();
25991 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
25992
25993 wxPyEndAllowThreads(__tstate);
25994 if (PyErr_Occurred()) SWIG_fail;
25995 }
25996 Py_INCREF(Py_None); resultobj = Py_None;
25997 return resultobj;
25998 fail:
25999 return NULL;
26000 }
26001
26002
26003 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
26004 PyObject *resultobj;
26005 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26006 wxTreeItemId *arg2 = 0 ;
26007 PyObject * obj0 = 0 ;
26008 PyObject * obj1 = 0 ;
26009 char *kwnames[] = {
26010 (char *) "self",(char *) "item", NULL
26011 };
26012
26013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
26014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26015 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26016 if (arg2 == NULL) {
26017 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26018 }
26019 {
26020 PyThreadState* __tstate = wxPyBeginAllowThreads();
26021 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
26022
26023 wxPyEndAllowThreads(__tstate);
26024 if (PyErr_Occurred()) SWIG_fail;
26025 }
26026 Py_INCREF(Py_None); resultobj = Py_None;
26027 return resultobj;
26028 fail:
26029 return NULL;
26030 }
26031
26032
26033 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26034 PyObject *resultobj;
26035 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26036 wxTreeItemId *arg2 = 0 ;
26037 PyObject * obj0 = 0 ;
26038 PyObject * obj1 = 0 ;
26039 char *kwnames[] = {
26040 (char *) "self",(char *) "item", NULL
26041 };
26042
26043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
26044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26045 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26046 if (arg2 == NULL) {
26047 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26048 }
26049 {
26050 PyThreadState* __tstate = wxPyBeginAllowThreads();
26051 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
26052
26053 wxPyEndAllowThreads(__tstate);
26054 if (PyErr_Occurred()) SWIG_fail;
26055 }
26056 Py_INCREF(Py_None); resultobj = Py_None;
26057 return resultobj;
26058 fail:
26059 return NULL;
26060 }
26061
26062
26063 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
26064 PyObject *resultobj;
26065 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26066 wxTextCtrl *result;
26067 PyObject * obj0 = 0 ;
26068 char *kwnames[] = {
26069 (char *) "self", NULL
26070 };
26071
26072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
26073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26074 {
26075 PyThreadState* __tstate = wxPyBeginAllowThreads();
26076 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
26077
26078 wxPyEndAllowThreads(__tstate);
26079 if (PyErr_Occurred()) SWIG_fail;
26080 }
26081 {
26082 resultobj = wxPyMake_wxObject(result);
26083 }
26084 return resultobj;
26085 fail:
26086 return NULL;
26087 }
26088
26089
26090 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26091 PyObject *resultobj;
26092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26093 wxTreeItemId *arg2 = 0 ;
26094 PyObject * obj0 = 0 ;
26095 PyObject * obj1 = 0 ;
26096 char *kwnames[] = {
26097 (char *) "self",(char *) "item", NULL
26098 };
26099
26100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
26101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26102 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26103 if (arg2 == NULL) {
26104 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26105 }
26106 {
26107 PyThreadState* __tstate = wxPyBeginAllowThreads();
26108 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
26109
26110 wxPyEndAllowThreads(__tstate);
26111 if (PyErr_Occurred()) SWIG_fail;
26112 }
26113 Py_INCREF(Py_None); resultobj = Py_None;
26114 return resultobj;
26115 fail:
26116 return NULL;
26117 }
26118
26119
26120 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
26121 PyObject *resultobj;
26122 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26123 wxPoint *arg2 = 0 ;
26124 int *arg3 = 0 ;
26125 wxTreeItemId result;
26126 wxPoint temp2 ;
26127 int temp3 ;
26128 PyObject * obj0 = 0 ;
26129 PyObject * obj1 = 0 ;
26130 char *kwnames[] = {
26131 (char *) "self",(char *) "point", NULL
26132 };
26133
26134 arg3 = &temp3;
26135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
26136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26137 {
26138 arg2 = &temp2;
26139 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26140 }
26141 {
26142 PyThreadState* __tstate = wxPyBeginAllowThreads();
26143 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
26144
26145 wxPyEndAllowThreads(__tstate);
26146 if (PyErr_Occurred()) SWIG_fail;
26147 }
26148 {
26149 wxTreeItemId * resultptr;
26150 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26151 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
26152 }
26153 {
26154 PyObject *o = PyInt_FromLong((long) (*arg3));
26155 resultobj = t_output_helper(resultobj,o);
26156 }
26157 return resultobj;
26158 fail:
26159 return NULL;
26160 }
26161
26162
26163 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
26164 PyObject *resultobj;
26165 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26166 wxTreeItemId *arg2 = 0 ;
26167 bool arg3 = (bool) False ;
26168 PyObject *result;
26169 PyObject * obj0 = 0 ;
26170 PyObject * obj1 = 0 ;
26171 PyObject * obj2 = 0 ;
26172 char *kwnames[] = {
26173 (char *) "self",(char *) "item",(char *) "textOnly", NULL
26174 };
26175
26176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
26177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26178 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26179 if (arg2 == NULL) {
26180 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26181 }
26182 if (obj2) {
26183 {
26184 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
26185 if (PyErr_Occurred()) SWIG_fail;
26186 }
26187 }
26188 {
26189 PyThreadState* __tstate = wxPyBeginAllowThreads();
26190 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
26191
26192 wxPyEndAllowThreads(__tstate);
26193 if (PyErr_Occurred()) SWIG_fail;
26194 }
26195 resultobj = result;
26196 return resultobj;
26197 fail:
26198 return NULL;
26199 }
26200
26201
26202 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
26203 PyObject *obj;
26204 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26205 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
26206 Py_INCREF(obj);
26207 return Py_BuildValue((char *)"");
26208 }
26209 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
26210 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
26211 return 1;
26212 }
26213
26214
26215 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
26216 PyObject *pyobj;
26217
26218 {
26219 #if wxUSE_UNICODE
26220 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26221 #else
26222 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26223 #endif
26224 }
26225 return pyobj;
26226 }
26227
26228
26229 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26230 PyObject *resultobj;
26231 wxWindow *arg1 = (wxWindow *) 0 ;
26232 int arg2 = (int) (int)-1 ;
26233 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
26234 wxString *arg3 = (wxString *) &arg3_defvalue ;
26235 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26236 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26237 wxSize const &arg5_defvalue = wxDefaultSize ;
26238 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26239 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26240 wxString const &arg7_defvalue = wxPyEmptyString ;
26241 wxString *arg7 = (wxString *) &arg7_defvalue ;
26242 int arg8 = (int) 0 ;
26243 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
26244 wxString *arg9 = (wxString *) &arg9_defvalue ;
26245 wxGenericDirCtrl *result;
26246 bool temp3 = False ;
26247 wxPoint temp4 ;
26248 wxSize temp5 ;
26249 bool temp7 = False ;
26250 bool temp9 = False ;
26251 PyObject * obj0 = 0 ;
26252 PyObject * obj1 = 0 ;
26253 PyObject * obj2 = 0 ;
26254 PyObject * obj3 = 0 ;
26255 PyObject * obj4 = 0 ;
26256 PyObject * obj5 = 0 ;
26257 PyObject * obj6 = 0 ;
26258 PyObject * obj7 = 0 ;
26259 PyObject * obj8 = 0 ;
26260 char *kwnames[] = {
26261 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26262 };
26263
26264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
26265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26266 if (obj1) {
26267 {
26268 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 }
26272 if (obj2) {
26273 {
26274 arg3 = wxString_in_helper(obj2);
26275 if (arg3 == NULL) SWIG_fail;
26276 temp3 = True;
26277 }
26278 }
26279 if (obj3) {
26280 {
26281 arg4 = &temp4;
26282 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26283 }
26284 }
26285 if (obj4) {
26286 {
26287 arg5 = &temp5;
26288 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26289 }
26290 }
26291 if (obj5) {
26292 {
26293 arg6 = (long) SWIG_PyObj_AsLong(obj5);
26294 if (PyErr_Occurred()) SWIG_fail;
26295 }
26296 }
26297 if (obj6) {
26298 {
26299 arg7 = wxString_in_helper(obj6);
26300 if (arg7 == NULL) SWIG_fail;
26301 temp7 = True;
26302 }
26303 }
26304 if (obj7) {
26305 {
26306 arg8 = (int) SWIG_PyObj_AsInt(obj7);
26307 if (PyErr_Occurred()) SWIG_fail;
26308 }
26309 }
26310 if (obj8) {
26311 {
26312 arg9 = wxString_in_helper(obj8);
26313 if (arg9 == NULL) SWIG_fail;
26314 temp9 = True;
26315 }
26316 }
26317 {
26318 PyThreadState* __tstate = wxPyBeginAllowThreads();
26319 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
26320
26321 wxPyEndAllowThreads(__tstate);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1);
26325 {
26326 if (temp3)
26327 delete arg3;
26328 }
26329 {
26330 if (temp7)
26331 delete arg7;
26332 }
26333 {
26334 if (temp9)
26335 delete arg9;
26336 }
26337 return resultobj;
26338 fail:
26339 {
26340 if (temp3)
26341 delete arg3;
26342 }
26343 {
26344 if (temp7)
26345 delete arg7;
26346 }
26347 {
26348 if (temp9)
26349 delete arg9;
26350 }
26351 return NULL;
26352 }
26353
26354
26355 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26356 PyObject *resultobj;
26357 wxGenericDirCtrl *result;
26358 char *kwnames[] = {
26359 NULL
26360 };
26361
26362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
26363 {
26364 PyThreadState* __tstate = wxPyBeginAllowThreads();
26365 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
26366
26367 wxPyEndAllowThreads(__tstate);
26368 if (PyErr_Occurred()) SWIG_fail;
26369 }
26370 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1);
26371 return resultobj;
26372 fail:
26373 return NULL;
26374 }
26375
26376
26377 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
26378 PyObject *resultobj;
26379 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26380 wxWindow *arg2 = (wxWindow *) 0 ;
26381 int arg3 = (int) (int)-1 ;
26382 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
26383 wxString *arg4 = (wxString *) &arg4_defvalue ;
26384 wxPoint const &arg5_defvalue = wxDefaultPosition ;
26385 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
26386 wxSize const &arg6_defvalue = wxDefaultSize ;
26387 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
26388 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26389 wxString const &arg8_defvalue = wxPyEmptyString ;
26390 wxString *arg8 = (wxString *) &arg8_defvalue ;
26391 int arg9 = (int) 0 ;
26392 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
26393 wxString *arg10 = (wxString *) &arg10_defvalue ;
26394 bool result;
26395 bool temp4 = False ;
26396 wxPoint temp5 ;
26397 wxSize temp6 ;
26398 bool temp8 = False ;
26399 bool temp10 = False ;
26400 PyObject * obj0 = 0 ;
26401 PyObject * obj1 = 0 ;
26402 PyObject * obj2 = 0 ;
26403 PyObject * obj3 = 0 ;
26404 PyObject * obj4 = 0 ;
26405 PyObject * obj5 = 0 ;
26406 PyObject * obj6 = 0 ;
26407 PyObject * obj7 = 0 ;
26408 PyObject * obj8 = 0 ;
26409 PyObject * obj9 = 0 ;
26410 char *kwnames[] = {
26411 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26412 };
26413
26414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
26415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26416 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26417 if (obj2) {
26418 {
26419 arg3 = (int const) SWIG_PyObj_AsInt(obj2);
26420 if (PyErr_Occurred()) SWIG_fail;
26421 }
26422 }
26423 if (obj3) {
26424 {
26425 arg4 = wxString_in_helper(obj3);
26426 if (arg4 == NULL) SWIG_fail;
26427 temp4 = True;
26428 }
26429 }
26430 if (obj4) {
26431 {
26432 arg5 = &temp5;
26433 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
26434 }
26435 }
26436 if (obj5) {
26437 {
26438 arg6 = &temp6;
26439 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
26440 }
26441 }
26442 if (obj6) {
26443 {
26444 arg7 = (long) SWIG_PyObj_AsLong(obj6);
26445 if (PyErr_Occurred()) SWIG_fail;
26446 }
26447 }
26448 if (obj7) {
26449 {
26450 arg8 = wxString_in_helper(obj7);
26451 if (arg8 == NULL) SWIG_fail;
26452 temp8 = True;
26453 }
26454 }
26455 if (obj8) {
26456 {
26457 arg9 = (int) SWIG_PyObj_AsInt(obj8);
26458 if (PyErr_Occurred()) SWIG_fail;
26459 }
26460 }
26461 if (obj9) {
26462 {
26463 arg10 = wxString_in_helper(obj9);
26464 if (arg10 == NULL) SWIG_fail;
26465 temp10 = True;
26466 }
26467 }
26468 {
26469 PyThreadState* __tstate = wxPyBeginAllowThreads();
26470 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
26471
26472 wxPyEndAllowThreads(__tstate);
26473 if (PyErr_Occurred()) SWIG_fail;
26474 }
26475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26476 {
26477 if (temp4)
26478 delete arg4;
26479 }
26480 {
26481 if (temp8)
26482 delete arg8;
26483 }
26484 {
26485 if (temp10)
26486 delete arg10;
26487 }
26488 return resultobj;
26489 fail:
26490 {
26491 if (temp4)
26492 delete arg4;
26493 }
26494 {
26495 if (temp8)
26496 delete arg8;
26497 }
26498 {
26499 if (temp10)
26500 delete arg10;
26501 }
26502 return NULL;
26503 }
26504
26505
26506 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26507 PyObject *resultobj;
26508 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26509 wxString *arg2 = 0 ;
26510 bool result;
26511 bool temp2 = False ;
26512 PyObject * obj0 = 0 ;
26513 PyObject * obj1 = 0 ;
26514 char *kwnames[] = {
26515 (char *) "self",(char *) "path", NULL
26516 };
26517
26518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
26519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26520 {
26521 arg2 = wxString_in_helper(obj1);
26522 if (arg2 == NULL) SWIG_fail;
26523 temp2 = True;
26524 }
26525 {
26526 PyThreadState* __tstate = wxPyBeginAllowThreads();
26527 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
26528
26529 wxPyEndAllowThreads(__tstate);
26530 if (PyErr_Occurred()) SWIG_fail;
26531 }
26532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26533 {
26534 if (temp2)
26535 delete arg2;
26536 }
26537 return resultobj;
26538 fail:
26539 {
26540 if (temp2)
26541 delete arg2;
26542 }
26543 return NULL;
26544 }
26545
26546
26547 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26548 PyObject *resultobj;
26549 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26550 wxString result;
26551 PyObject * obj0 = 0 ;
26552 char *kwnames[] = {
26553 (char *) "self", NULL
26554 };
26555
26556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
26557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26558 {
26559 PyThreadState* __tstate = wxPyBeginAllowThreads();
26560 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
26561
26562 wxPyEndAllowThreads(__tstate);
26563 if (PyErr_Occurred()) SWIG_fail;
26564 }
26565 {
26566 #if wxUSE_UNICODE
26567 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26568 #else
26569 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26570 #endif
26571 }
26572 return resultobj;
26573 fail:
26574 return NULL;
26575 }
26576
26577
26578 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26579 PyObject *resultobj;
26580 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26581 wxString *arg2 = 0 ;
26582 bool temp2 = False ;
26583 PyObject * obj0 = 0 ;
26584 PyObject * obj1 = 0 ;
26585 char *kwnames[] = {
26586 (char *) "self",(char *) "path", NULL
26587 };
26588
26589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
26590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26591 {
26592 arg2 = wxString_in_helper(obj1);
26593 if (arg2 == NULL) SWIG_fail;
26594 temp2 = True;
26595 }
26596 {
26597 PyThreadState* __tstate = wxPyBeginAllowThreads();
26598 (arg1)->SetDefaultPath((wxString const &)*arg2);
26599
26600 wxPyEndAllowThreads(__tstate);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 Py_INCREF(Py_None); resultobj = Py_None;
26604 {
26605 if (temp2)
26606 delete arg2;
26607 }
26608 return resultobj;
26609 fail:
26610 {
26611 if (temp2)
26612 delete arg2;
26613 }
26614 return NULL;
26615 }
26616
26617
26618 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26619 PyObject *resultobj;
26620 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26621 wxString result;
26622 PyObject * obj0 = 0 ;
26623 char *kwnames[] = {
26624 (char *) "self", NULL
26625 };
26626
26627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
26628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26629 {
26630 PyThreadState* __tstate = wxPyBeginAllowThreads();
26631 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
26632
26633 wxPyEndAllowThreads(__tstate);
26634 if (PyErr_Occurred()) SWIG_fail;
26635 }
26636 {
26637 #if wxUSE_UNICODE
26638 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26639 #else
26640 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26641 #endif
26642 }
26643 return resultobj;
26644 fail:
26645 return NULL;
26646 }
26647
26648
26649 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
26650 PyObject *resultobj;
26651 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26652 wxString result;
26653 PyObject * obj0 = 0 ;
26654 char *kwnames[] = {
26655 (char *) "self", NULL
26656 };
26657
26658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
26659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26660 {
26661 PyThreadState* __tstate = wxPyBeginAllowThreads();
26662 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
26663
26664 wxPyEndAllowThreads(__tstate);
26665 if (PyErr_Occurred()) SWIG_fail;
26666 }
26667 {
26668 #if wxUSE_UNICODE
26669 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26670 #else
26671 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26672 #endif
26673 }
26674 return resultobj;
26675 fail:
26676 return NULL;
26677 }
26678
26679
26680 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26681 PyObject *resultobj;
26682 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26683 wxString *arg2 = 0 ;
26684 bool temp2 = False ;
26685 PyObject * obj0 = 0 ;
26686 PyObject * obj1 = 0 ;
26687 char *kwnames[] = {
26688 (char *) "self",(char *) "path", NULL
26689 };
26690
26691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
26692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26693 {
26694 arg2 = wxString_in_helper(obj1);
26695 if (arg2 == NULL) SWIG_fail;
26696 temp2 = True;
26697 }
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 (arg1)->SetPath((wxString const &)*arg2);
26701
26702 wxPyEndAllowThreads(__tstate);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 Py_INCREF(Py_None); resultobj = Py_None;
26706 {
26707 if (temp2)
26708 delete arg2;
26709 }
26710 return resultobj;
26711 fail:
26712 {
26713 if (temp2)
26714 delete arg2;
26715 }
26716 return NULL;
26717 }
26718
26719
26720 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
26721 PyObject *resultobj;
26722 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26723 bool arg2 ;
26724 PyObject * obj0 = 0 ;
26725 PyObject * obj1 = 0 ;
26726 char *kwnames[] = {
26727 (char *) "self",(char *) "show", NULL
26728 };
26729
26730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
26731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26732 {
26733 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
26734 if (PyErr_Occurred()) SWIG_fail;
26735 }
26736 {
26737 PyThreadState* __tstate = wxPyBeginAllowThreads();
26738 (arg1)->ShowHidden(arg2);
26739
26740 wxPyEndAllowThreads(__tstate);
26741 if (PyErr_Occurred()) SWIG_fail;
26742 }
26743 Py_INCREF(Py_None); resultobj = Py_None;
26744 return resultobj;
26745 fail:
26746 return NULL;
26747 }
26748
26749
26750 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
26751 PyObject *resultobj;
26752 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26753 bool result;
26754 PyObject * obj0 = 0 ;
26755 char *kwnames[] = {
26756 (char *) "self", NULL
26757 };
26758
26759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
26760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26761 {
26762 PyThreadState* __tstate = wxPyBeginAllowThreads();
26763 result = (bool)(arg1)->GetShowHidden();
26764
26765 wxPyEndAllowThreads(__tstate);
26766 if (PyErr_Occurred()) SWIG_fail;
26767 }
26768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26769 return resultobj;
26770 fail:
26771 return NULL;
26772 }
26773
26774
26775 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
26776 PyObject *resultobj;
26777 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26778 wxString result;
26779 PyObject * obj0 = 0 ;
26780 char *kwnames[] = {
26781 (char *) "self", NULL
26782 };
26783
26784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
26785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26786 {
26787 PyThreadState* __tstate = wxPyBeginAllowThreads();
26788 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
26789
26790 wxPyEndAllowThreads(__tstate);
26791 if (PyErr_Occurred()) SWIG_fail;
26792 }
26793 {
26794 #if wxUSE_UNICODE
26795 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26796 #else
26797 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26798 #endif
26799 }
26800 return resultobj;
26801 fail:
26802 return NULL;
26803 }
26804
26805
26806 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
26807 PyObject *resultobj;
26808 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26809 wxString *arg2 = 0 ;
26810 bool temp2 = False ;
26811 PyObject * obj0 = 0 ;
26812 PyObject * obj1 = 0 ;
26813 char *kwnames[] = {
26814 (char *) "self",(char *) "filter", NULL
26815 };
26816
26817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
26818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26819 {
26820 arg2 = wxString_in_helper(obj1);
26821 if (arg2 == NULL) SWIG_fail;
26822 temp2 = True;
26823 }
26824 {
26825 PyThreadState* __tstate = wxPyBeginAllowThreads();
26826 (arg1)->SetFilter((wxString const &)*arg2);
26827
26828 wxPyEndAllowThreads(__tstate);
26829 if (PyErr_Occurred()) SWIG_fail;
26830 }
26831 Py_INCREF(Py_None); resultobj = Py_None;
26832 {
26833 if (temp2)
26834 delete arg2;
26835 }
26836 return resultobj;
26837 fail:
26838 {
26839 if (temp2)
26840 delete arg2;
26841 }
26842 return NULL;
26843 }
26844
26845
26846 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
26847 PyObject *resultobj;
26848 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26849 int result;
26850 PyObject * obj0 = 0 ;
26851 char *kwnames[] = {
26852 (char *) "self", NULL
26853 };
26854
26855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
26856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26857 {
26858 PyThreadState* __tstate = wxPyBeginAllowThreads();
26859 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
26860
26861 wxPyEndAllowThreads(__tstate);
26862 if (PyErr_Occurred()) SWIG_fail;
26863 }
26864 resultobj = SWIG_PyObj_FromInt((int)result);
26865 return resultobj;
26866 fail:
26867 return NULL;
26868 }
26869
26870
26871 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
26872 PyObject *resultobj;
26873 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26874 int arg2 ;
26875 PyObject * obj0 = 0 ;
26876 PyObject * obj1 = 0 ;
26877 char *kwnames[] = {
26878 (char *) "self",(char *) "n", NULL
26879 };
26880
26881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
26882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26883 {
26884 arg2 = (int) SWIG_PyObj_AsInt(obj1);
26885 if (PyErr_Occurred()) SWIG_fail;
26886 }
26887 {
26888 PyThreadState* __tstate = wxPyBeginAllowThreads();
26889 (arg1)->SetFilterIndex(arg2);
26890
26891 wxPyEndAllowThreads(__tstate);
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 Py_INCREF(Py_None); resultobj = Py_None;
26895 return resultobj;
26896 fail:
26897 return NULL;
26898 }
26899
26900
26901 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
26902 PyObject *resultobj;
26903 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26904 wxTreeItemId result;
26905 PyObject * obj0 = 0 ;
26906 char *kwnames[] = {
26907 (char *) "self", NULL
26908 };
26909
26910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
26911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26912 {
26913 PyThreadState* __tstate = wxPyBeginAllowThreads();
26914 result = (arg1)->GetRootId();
26915
26916 wxPyEndAllowThreads(__tstate);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 {
26920 wxTreeItemId * resultptr;
26921 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26922 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
26923 }
26924 return resultobj;
26925 fail:
26926 return NULL;
26927 }
26928
26929
26930 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26931 PyObject *resultobj;
26932 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26933 wxPyTreeCtrl *result;
26934 PyObject * obj0 = 0 ;
26935 char *kwnames[] = {
26936 (char *) "self", NULL
26937 };
26938
26939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
26940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26941 {
26942 PyThreadState* __tstate = wxPyBeginAllowThreads();
26943 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
26944
26945 wxPyEndAllowThreads(__tstate);
26946 if (PyErr_Occurred()) SWIG_fail;
26947 }
26948 {
26949 resultobj = wxPyMake_wxObject(result);
26950 }
26951 return resultobj;
26952 fail:
26953 return NULL;
26954 }
26955
26956
26957 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26958 PyObject *resultobj;
26959 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26960 wxDirFilterListCtrl *result;
26961 PyObject * obj0 = 0 ;
26962 char *kwnames[] = {
26963 (char *) "self", NULL
26964 };
26965
26966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
26967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26968 {
26969 PyThreadState* __tstate = wxPyBeginAllowThreads();
26970 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
26971
26972 wxPyEndAllowThreads(__tstate);
26973 if (PyErr_Occurred()) SWIG_fail;
26974 }
26975 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0);
26976 return resultobj;
26977 fail:
26978 return NULL;
26979 }
26980
26981
26982 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26983 PyObject *resultobj;
26984 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26985 wxTreeItemId arg2 ;
26986 wxString *arg3 = 0 ;
26987 bool *arg4 = 0 ;
26988 wxTreeItemId result;
26989 wxTreeItemId *argp2 ;
26990 bool temp3 = False ;
26991 bool temp4 ;
26992 PyObject * obj0 = 0 ;
26993 PyObject * obj1 = 0 ;
26994 PyObject * obj2 = 0 ;
26995 char *kwnames[] = {
26996 (char *) "self",(char *) "parentId",(char *) "path", NULL
26997 };
26998
26999 arg4 = &temp4;
27000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27002 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
27003 arg2 = *argp2;
27004 {
27005 arg3 = wxString_in_helper(obj2);
27006 if (arg3 == NULL) SWIG_fail;
27007 temp3 = True;
27008 }
27009 {
27010 PyThreadState* __tstate = wxPyBeginAllowThreads();
27011 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
27012
27013 wxPyEndAllowThreads(__tstate);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 {
27017 wxTreeItemId * resultptr;
27018 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27019 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
27020 }
27021 {
27022 PyObject *o = PyInt_FromLong((long) (*arg4));
27023 resultobj = t_output_helper(resultobj,o);
27024 }
27025 {
27026 if (temp3)
27027 delete arg3;
27028 }
27029 return resultobj;
27030 fail:
27031 {
27032 if (temp3)
27033 delete arg3;
27034 }
27035 return NULL;
27036 }
27037
27038
27039 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
27040 PyObject *resultobj;
27041 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27042 PyObject * obj0 = 0 ;
27043 char *kwnames[] = {
27044 (char *) "self", NULL
27045 };
27046
27047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
27048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27049 {
27050 PyThreadState* __tstate = wxPyBeginAllowThreads();
27051 (arg1)->DoResize();
27052
27053 wxPyEndAllowThreads(__tstate);
27054 if (PyErr_Occurred()) SWIG_fail;
27055 }
27056 Py_INCREF(Py_None); resultobj = Py_None;
27057 return resultobj;
27058 fail:
27059 return NULL;
27060 }
27061
27062
27063 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
27064 PyObject *resultobj;
27065 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27066 PyObject * obj0 = 0 ;
27067 char *kwnames[] = {
27068 (char *) "self", NULL
27069 };
27070
27071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
27072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27073 {
27074 PyThreadState* __tstate = wxPyBeginAllowThreads();
27075 (arg1)->ReCreateTree();
27076
27077 wxPyEndAllowThreads(__tstate);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 Py_INCREF(Py_None); resultobj = Py_None;
27081 return resultobj;
27082 fail:
27083 return NULL;
27084 }
27085
27086
27087 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
27088 PyObject *obj;
27089 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27090 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
27091 Py_INCREF(obj);
27092 return Py_BuildValue((char *)"");
27093 }
27094 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27095 PyObject *resultobj;
27096 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27097 int arg2 = (int) (int)-1 ;
27098 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27099 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27100 wxSize const &arg4_defvalue = wxDefaultSize ;
27101 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27102 long arg5 = (long) 0 ;
27103 wxDirFilterListCtrl *result;
27104 wxPoint temp3 ;
27105 wxSize temp4 ;
27106 PyObject * obj0 = 0 ;
27107 PyObject * obj1 = 0 ;
27108 PyObject * obj2 = 0 ;
27109 PyObject * obj3 = 0 ;
27110 PyObject * obj4 = 0 ;
27111 char *kwnames[] = {
27112 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27113 };
27114
27115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27117 if (obj1) {
27118 {
27119 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
27120 if (PyErr_Occurred()) SWIG_fail;
27121 }
27122 }
27123 if (obj2) {
27124 {
27125 arg3 = &temp3;
27126 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27127 }
27128 }
27129 if (obj3) {
27130 {
27131 arg4 = &temp4;
27132 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27133 }
27134 }
27135 if (obj4) {
27136 {
27137 arg5 = (long) SWIG_PyObj_AsLong(obj4);
27138 if (PyErr_Occurred()) SWIG_fail;
27139 }
27140 }
27141 {
27142 PyThreadState* __tstate = wxPyBeginAllowThreads();
27143 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
27144
27145 wxPyEndAllowThreads(__tstate);
27146 if (PyErr_Occurred()) SWIG_fail;
27147 }
27148 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1);
27149 return resultobj;
27150 fail:
27151 return NULL;
27152 }
27153
27154
27155 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27156 PyObject *resultobj;
27157 wxDirFilterListCtrl *result;
27158 char *kwnames[] = {
27159 NULL
27160 };
27161
27162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
27163 {
27164 PyThreadState* __tstate = wxPyBeginAllowThreads();
27165 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
27166
27167 wxPyEndAllowThreads(__tstate);
27168 if (PyErr_Occurred()) SWIG_fail;
27169 }
27170 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1);
27171 return resultobj;
27172 fail:
27173 return NULL;
27174 }
27175
27176
27177 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27178 PyObject *resultobj;
27179 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27180 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
27181 int arg3 = (int) (int)-1 ;
27182 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27183 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27184 wxSize const &arg5_defvalue = wxDefaultSize ;
27185 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27186 long arg6 = (long) 0 ;
27187 bool result;
27188 wxPoint temp4 ;
27189 wxSize temp5 ;
27190 PyObject * obj0 = 0 ;
27191 PyObject * obj1 = 0 ;
27192 PyObject * obj2 = 0 ;
27193 PyObject * obj3 = 0 ;
27194 PyObject * obj4 = 0 ;
27195 PyObject * obj5 = 0 ;
27196 char *kwnames[] = {
27197 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27198 };
27199
27200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27202 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27203 if (obj2) {
27204 {
27205 arg3 = (int const) SWIG_PyObj_AsInt(obj2);
27206 if (PyErr_Occurred()) SWIG_fail;
27207 }
27208 }
27209 if (obj3) {
27210 {
27211 arg4 = &temp4;
27212 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27213 }
27214 }
27215 if (obj4) {
27216 {
27217 arg5 = &temp5;
27218 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27219 }
27220 }
27221 if (obj5) {
27222 {
27223 arg6 = (long) SWIG_PyObj_AsLong(obj5);
27224 if (PyErr_Occurred()) SWIG_fail;
27225 }
27226 }
27227 {
27228 PyThreadState* __tstate = wxPyBeginAllowThreads();
27229 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
27230
27231 wxPyEndAllowThreads(__tstate);
27232 if (PyErr_Occurred()) SWIG_fail;
27233 }
27234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27235 return resultobj;
27236 fail:
27237 return NULL;
27238 }
27239
27240
27241 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
27242 PyObject *resultobj;
27243 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27244 wxString *arg2 = 0 ;
27245 int arg3 ;
27246 bool temp2 = False ;
27247 PyObject * obj0 = 0 ;
27248 PyObject * obj1 = 0 ;
27249 PyObject * obj2 = 0 ;
27250 char *kwnames[] = {
27251 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
27252 };
27253
27254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
27255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27256 {
27257 arg2 = wxString_in_helper(obj1);
27258 if (arg2 == NULL) SWIG_fail;
27259 temp2 = True;
27260 }
27261 {
27262 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27263 if (PyErr_Occurred()) SWIG_fail;
27264 }
27265 {
27266 PyThreadState* __tstate = wxPyBeginAllowThreads();
27267 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
27268
27269 wxPyEndAllowThreads(__tstate);
27270 if (PyErr_Occurred()) SWIG_fail;
27271 }
27272 Py_INCREF(Py_None); resultobj = Py_None;
27273 {
27274 if (temp2)
27275 delete arg2;
27276 }
27277 return resultobj;
27278 fail:
27279 {
27280 if (temp2)
27281 delete arg2;
27282 }
27283 return NULL;
27284 }
27285
27286
27287 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
27288 PyObject *obj;
27289 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27290 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
27291 Py_INCREF(obj);
27292 return Py_BuildValue((char *)"");
27293 }
27294 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27295 PyObject *resultobj;
27296 wxWindow *arg1 = (wxWindow *) 0 ;
27297 int arg2 ;
27298 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27299 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27300 wxSize const &arg4_defvalue = wxDefaultSize ;
27301 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27302 long arg5 = (long) 0 ;
27303 wxValidator const &arg6_defvalue = wxDefaultValidator ;
27304 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
27305 wxString const &arg7_defvalue = wxPyControlNameStr ;
27306 wxString *arg7 = (wxString *) &arg7_defvalue ;
27307 wxPyControl *result;
27308 wxPoint temp3 ;
27309 wxSize temp4 ;
27310 bool temp7 = False ;
27311 PyObject * obj0 = 0 ;
27312 PyObject * obj1 = 0 ;
27313 PyObject * obj2 = 0 ;
27314 PyObject * obj3 = 0 ;
27315 PyObject * obj4 = 0 ;
27316 PyObject * obj5 = 0 ;
27317 PyObject * obj6 = 0 ;
27318 char *kwnames[] = {
27319 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
27320 };
27321
27322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27324 {
27325 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
27326 if (PyErr_Occurred()) SWIG_fail;
27327 }
27328 if (obj2) {
27329 {
27330 arg3 = &temp3;
27331 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27332 }
27333 }
27334 if (obj3) {
27335 {
27336 arg4 = &temp4;
27337 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27338 }
27339 }
27340 if (obj4) {
27341 {
27342 arg5 = (long) SWIG_PyObj_AsLong(obj4);
27343 if (PyErr_Occurred()) SWIG_fail;
27344 }
27345 }
27346 if (obj5) {
27347 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27348 if (arg6 == NULL) {
27349 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
27350 }
27351 }
27352 if (obj6) {
27353 {
27354 arg7 = wxString_in_helper(obj6);
27355 if (arg7 == NULL) SWIG_fail;
27356 temp7 = True;
27357 }
27358 }
27359 {
27360 PyThreadState* __tstate = wxPyBeginAllowThreads();
27361 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
27362
27363 wxPyEndAllowThreads(__tstate);
27364 if (PyErr_Occurred()) SWIG_fail;
27365 }
27366 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1);
27367 {
27368 if (temp7)
27369 delete arg7;
27370 }
27371 return resultobj;
27372 fail:
27373 {
27374 if (temp7)
27375 delete arg7;
27376 }
27377 return NULL;
27378 }
27379
27380
27381 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
27382 PyObject *resultobj;
27383 wxPyControl *arg1 = (wxPyControl *) 0 ;
27384 PyObject *arg2 = (PyObject *) 0 ;
27385 PyObject *arg3 = (PyObject *) 0 ;
27386 PyObject * obj0 = 0 ;
27387 PyObject * obj1 = 0 ;
27388 PyObject * obj2 = 0 ;
27389 char *kwnames[] = {
27390 (char *) "self",(char *) "self",(char *) "_class", NULL
27391 };
27392
27393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27395 arg2 = obj1;
27396 arg3 = obj2;
27397 {
27398 PyThreadState* __tstate = wxPyBeginAllowThreads();
27399 (arg1)->_setCallbackInfo(arg2,arg3);
27400
27401 wxPyEndAllowThreads(__tstate);
27402 if (PyErr_Occurred()) SWIG_fail;
27403 }
27404 Py_INCREF(Py_None); resultobj = Py_None;
27405 return resultobj;
27406 fail:
27407 return NULL;
27408 }
27409
27410
27411 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27412 PyObject *resultobj;
27413 wxPyControl *arg1 = (wxPyControl *) 0 ;
27414 int arg2 ;
27415 int arg3 ;
27416 int arg4 ;
27417 int arg5 ;
27418 PyObject * obj0 = 0 ;
27419 PyObject * obj1 = 0 ;
27420 PyObject * obj2 = 0 ;
27421 PyObject * obj3 = 0 ;
27422 PyObject * obj4 = 0 ;
27423 char *kwnames[] = {
27424 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27425 };
27426
27427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27429 {
27430 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27431 if (PyErr_Occurred()) SWIG_fail;
27432 }
27433 {
27434 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27435 if (PyErr_Occurred()) SWIG_fail;
27436 }
27437 {
27438 arg4 = (int) SWIG_PyObj_AsInt(obj3);
27439 if (PyErr_Occurred()) SWIG_fail;
27440 }
27441 {
27442 arg5 = (int) SWIG_PyObj_AsInt(obj4);
27443 if (PyErr_Occurred()) SWIG_fail;
27444 }
27445 {
27446 PyThreadState* __tstate = wxPyBeginAllowThreads();
27447 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
27448
27449 wxPyEndAllowThreads(__tstate);
27450 if (PyErr_Occurred()) SWIG_fail;
27451 }
27452 Py_INCREF(Py_None); resultobj = Py_None;
27453 return resultobj;
27454 fail:
27455 return NULL;
27456 }
27457
27458
27459 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27460 PyObject *resultobj;
27461 wxPyControl *arg1 = (wxPyControl *) 0 ;
27462 int arg2 ;
27463 int arg3 ;
27464 int arg4 ;
27465 int arg5 ;
27466 int arg6 = (int) wxSIZE_AUTO ;
27467 PyObject * obj0 = 0 ;
27468 PyObject * obj1 = 0 ;
27469 PyObject * obj2 = 0 ;
27470 PyObject * obj3 = 0 ;
27471 PyObject * obj4 = 0 ;
27472 PyObject * obj5 = 0 ;
27473 char *kwnames[] = {
27474 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
27475 };
27476
27477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27479 {
27480 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27481 if (PyErr_Occurred()) SWIG_fail;
27482 }
27483 {
27484 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27485 if (PyErr_Occurred()) SWIG_fail;
27486 }
27487 {
27488 arg4 = (int) SWIG_PyObj_AsInt(obj3);
27489 if (PyErr_Occurred()) SWIG_fail;
27490 }
27491 {
27492 arg5 = (int) SWIG_PyObj_AsInt(obj4);
27493 if (PyErr_Occurred()) SWIG_fail;
27494 }
27495 if (obj5) {
27496 {
27497 arg6 = (int) SWIG_PyObj_AsInt(obj5);
27498 if (PyErr_Occurred()) SWIG_fail;
27499 }
27500 }
27501 {
27502 PyThreadState* __tstate = wxPyBeginAllowThreads();
27503 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
27504
27505 wxPyEndAllowThreads(__tstate);
27506 if (PyErr_Occurred()) SWIG_fail;
27507 }
27508 Py_INCREF(Py_None); resultobj = Py_None;
27509 return resultobj;
27510 fail:
27511 return NULL;
27512 }
27513
27514
27515 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27516 PyObject *resultobj;
27517 wxPyControl *arg1 = (wxPyControl *) 0 ;
27518 int arg2 ;
27519 int arg3 ;
27520 PyObject * obj0 = 0 ;
27521 PyObject * obj1 = 0 ;
27522 PyObject * obj2 = 0 ;
27523 char *kwnames[] = {
27524 (char *) "self",(char *) "width",(char *) "height", NULL
27525 };
27526
27527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
27528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27529 {
27530 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27531 if (PyErr_Occurred()) SWIG_fail;
27532 }
27533 {
27534 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27535 if (PyErr_Occurred()) SWIG_fail;
27536 }
27537 {
27538 PyThreadState* __tstate = wxPyBeginAllowThreads();
27539 (arg1)->base_DoSetClientSize(arg2,arg3);
27540
27541 wxPyEndAllowThreads(__tstate);
27542 if (PyErr_Occurred()) SWIG_fail;
27543 }
27544 Py_INCREF(Py_None); resultobj = Py_None;
27545 return resultobj;
27546 fail:
27547 return NULL;
27548 }
27549
27550
27551 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27552 PyObject *resultobj;
27553 wxPyControl *arg1 = (wxPyControl *) 0 ;
27554 int arg2 ;
27555 int arg3 ;
27556 PyObject * obj0 = 0 ;
27557 PyObject * obj1 = 0 ;
27558 PyObject * obj2 = 0 ;
27559 char *kwnames[] = {
27560 (char *) "self",(char *) "x",(char *) "y", NULL
27561 };
27562
27563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
27564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27565 {
27566 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27567 if (PyErr_Occurred()) SWIG_fail;
27568 }
27569 {
27570 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27571 if (PyErr_Occurred()) SWIG_fail;
27572 }
27573 {
27574 PyThreadState* __tstate = wxPyBeginAllowThreads();
27575 (arg1)->base_DoSetVirtualSize(arg2,arg3);
27576
27577 wxPyEndAllowThreads(__tstate);
27578 if (PyErr_Occurred()) SWIG_fail;
27579 }
27580 Py_INCREF(Py_None); resultobj = Py_None;
27581 return resultobj;
27582 fail:
27583 return NULL;
27584 }
27585
27586
27587 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27588 PyObject *resultobj;
27589 wxPyControl *arg1 = (wxPyControl *) 0 ;
27590 int *arg2 = (int *) 0 ;
27591 int *arg3 = (int *) 0 ;
27592 int temp2 ;
27593 int temp3 ;
27594 PyObject * obj0 = 0 ;
27595 char *kwnames[] = {
27596 (char *) "self", NULL
27597 };
27598
27599 arg2 = &temp2;
27600 arg3 = &temp3;
27601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
27602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27603 {
27604 PyThreadState* __tstate = wxPyBeginAllowThreads();
27605 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
27606
27607 wxPyEndAllowThreads(__tstate);
27608 if (PyErr_Occurred()) SWIG_fail;
27609 }
27610 Py_INCREF(Py_None); resultobj = Py_None;
27611 {
27612 PyObject *o = PyInt_FromLong((long) (*arg2));
27613 resultobj = t_output_helper(resultobj,o);
27614 }
27615 {
27616 PyObject *o = PyInt_FromLong((long) (*arg3));
27617 resultobj = t_output_helper(resultobj,o);
27618 }
27619 return resultobj;
27620 fail:
27621 return NULL;
27622 }
27623
27624
27625 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27626 PyObject *resultobj;
27627 wxPyControl *arg1 = (wxPyControl *) 0 ;
27628 int *arg2 = (int *) 0 ;
27629 int *arg3 = (int *) 0 ;
27630 int temp2 ;
27631 int temp3 ;
27632 PyObject * obj0 = 0 ;
27633 char *kwnames[] = {
27634 (char *) "self", NULL
27635 };
27636
27637 arg2 = &temp2;
27638 arg3 = &temp3;
27639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
27640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27641 {
27642 PyThreadState* __tstate = wxPyBeginAllowThreads();
27643 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
27644
27645 wxPyEndAllowThreads(__tstate);
27646 if (PyErr_Occurred()) SWIG_fail;
27647 }
27648 Py_INCREF(Py_None); resultobj = Py_None;
27649 {
27650 PyObject *o = PyInt_FromLong((long) (*arg2));
27651 resultobj = t_output_helper(resultobj,o);
27652 }
27653 {
27654 PyObject *o = PyInt_FromLong((long) (*arg3));
27655 resultobj = t_output_helper(resultobj,o);
27656 }
27657 return resultobj;
27658 fail:
27659 return NULL;
27660 }
27661
27662
27663 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
27664 PyObject *resultobj;
27665 wxPyControl *arg1 = (wxPyControl *) 0 ;
27666 int *arg2 = (int *) 0 ;
27667 int *arg3 = (int *) 0 ;
27668 int temp2 ;
27669 int temp3 ;
27670 PyObject * obj0 = 0 ;
27671 char *kwnames[] = {
27672 (char *) "self", NULL
27673 };
27674
27675 arg2 = &temp2;
27676 arg3 = &temp3;
27677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
27678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27679 {
27680 PyThreadState* __tstate = wxPyBeginAllowThreads();
27681 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
27682
27683 wxPyEndAllowThreads(__tstate);
27684 if (PyErr_Occurred()) SWIG_fail;
27685 }
27686 Py_INCREF(Py_None); resultobj = Py_None;
27687 {
27688 PyObject *o = PyInt_FromLong((long) (*arg2));
27689 resultobj = t_output_helper(resultobj,o);
27690 }
27691 {
27692 PyObject *o = PyInt_FromLong((long) (*arg3));
27693 resultobj = t_output_helper(resultobj,o);
27694 }
27695 return resultobj;
27696 fail:
27697 return NULL;
27698 }
27699
27700
27701 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27702 PyObject *resultobj;
27703 wxPyControl *arg1 = (wxPyControl *) 0 ;
27704 wxSize result;
27705 PyObject * obj0 = 0 ;
27706 char *kwnames[] = {
27707 (char *) "self", NULL
27708 };
27709
27710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
27711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27712 {
27713 PyThreadState* __tstate = wxPyBeginAllowThreads();
27714 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
27715
27716 wxPyEndAllowThreads(__tstate);
27717 if (PyErr_Occurred()) SWIG_fail;
27718 }
27719 {
27720 wxSize * resultptr;
27721 resultptr = new wxSize((wxSize &) result);
27722 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
27723 }
27724 return resultobj;
27725 fail:
27726 return NULL;
27727 }
27728
27729
27730 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27731 PyObject *resultobj;
27732 wxPyControl *arg1 = (wxPyControl *) 0 ;
27733 wxSize result;
27734 PyObject * obj0 = 0 ;
27735 char *kwnames[] = {
27736 (char *) "self", NULL
27737 };
27738
27739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
27740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27741 {
27742 PyThreadState* __tstate = wxPyBeginAllowThreads();
27743 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
27744
27745 wxPyEndAllowThreads(__tstate);
27746 if (PyErr_Occurred()) SWIG_fail;
27747 }
27748 {
27749 wxSize * resultptr;
27750 resultptr = new wxSize((wxSize &) result);
27751 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
27752 }
27753 return resultobj;
27754 fail:
27755 return NULL;
27756 }
27757
27758
27759 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
27760 PyObject *resultobj;
27761 wxPyControl *arg1 = (wxPyControl *) 0 ;
27762 PyObject * obj0 = 0 ;
27763 char *kwnames[] = {
27764 (char *) "self", NULL
27765 };
27766
27767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
27768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27769 {
27770 PyThreadState* __tstate = wxPyBeginAllowThreads();
27771 (arg1)->base_InitDialog();
27772
27773 wxPyEndAllowThreads(__tstate);
27774 if (PyErr_Occurred()) SWIG_fail;
27775 }
27776 Py_INCREF(Py_None); resultobj = Py_None;
27777 return resultobj;
27778 fail:
27779 return NULL;
27780 }
27781
27782
27783 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27784 PyObject *resultobj;
27785 wxPyControl *arg1 = (wxPyControl *) 0 ;
27786 bool result;
27787 PyObject * obj0 = 0 ;
27788 char *kwnames[] = {
27789 (char *) "self", NULL
27790 };
27791
27792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
27793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27794 {
27795 PyThreadState* __tstate = wxPyBeginAllowThreads();
27796 result = (bool)(arg1)->base_TransferDataToWindow();
27797
27798 wxPyEndAllowThreads(__tstate);
27799 if (PyErr_Occurred()) SWIG_fail;
27800 }
27801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27802 return resultobj;
27803 fail:
27804 return NULL;
27805 }
27806
27807
27808 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27809 PyObject *resultobj;
27810 wxPyControl *arg1 = (wxPyControl *) 0 ;
27811 bool result;
27812 PyObject * obj0 = 0 ;
27813 char *kwnames[] = {
27814 (char *) "self", NULL
27815 };
27816
27817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
27818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27819 {
27820 PyThreadState* __tstate = wxPyBeginAllowThreads();
27821 result = (bool)(arg1)->base_TransferDataFromWindow();
27822
27823 wxPyEndAllowThreads(__tstate);
27824 if (PyErr_Occurred()) SWIG_fail;
27825 }
27826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27827 return resultobj;
27828 fail:
27829 return NULL;
27830 }
27831
27832
27833 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
27834 PyObject *resultobj;
27835 wxPyControl *arg1 = (wxPyControl *) 0 ;
27836 bool result;
27837 PyObject * obj0 = 0 ;
27838 char *kwnames[] = {
27839 (char *) "self", NULL
27840 };
27841
27842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
27843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27844 {
27845 PyThreadState* __tstate = wxPyBeginAllowThreads();
27846 result = (bool)(arg1)->base_Validate();
27847
27848 wxPyEndAllowThreads(__tstate);
27849 if (PyErr_Occurred()) SWIG_fail;
27850 }
27851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27852 return resultobj;
27853 fail:
27854 return NULL;
27855 }
27856
27857
27858 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
27859 PyObject *resultobj;
27860 wxPyControl *arg1 = (wxPyControl *) 0 ;
27861 bool result;
27862 PyObject * obj0 = 0 ;
27863 char *kwnames[] = {
27864 (char *) "self", NULL
27865 };
27866
27867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
27868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27869 {
27870 PyThreadState* __tstate = wxPyBeginAllowThreads();
27871 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
27872
27873 wxPyEndAllowThreads(__tstate);
27874 if (PyErr_Occurred()) SWIG_fail;
27875 }
27876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27877 return resultobj;
27878 fail:
27879 return NULL;
27880 }
27881
27882
27883 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
27884 PyObject *resultobj;
27885 wxPyControl *arg1 = (wxPyControl *) 0 ;
27886 bool result;
27887 PyObject * obj0 = 0 ;
27888 char *kwnames[] = {
27889 (char *) "self", NULL
27890 };
27891
27892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
27893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27894 {
27895 PyThreadState* __tstate = wxPyBeginAllowThreads();
27896 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
27897
27898 wxPyEndAllowThreads(__tstate);
27899 if (PyErr_Occurred()) SWIG_fail;
27900 }
27901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27902 return resultobj;
27903 fail:
27904 return NULL;
27905 }
27906
27907
27908 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27909 PyObject *resultobj;
27910 wxPyControl *arg1 = (wxPyControl *) 0 ;
27911 wxSize result;
27912 PyObject * obj0 = 0 ;
27913 char *kwnames[] = {
27914 (char *) "self", NULL
27915 };
27916
27917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
27918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27919 {
27920 PyThreadState* __tstate = wxPyBeginAllowThreads();
27921 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
27922
27923 wxPyEndAllowThreads(__tstate);
27924 if (PyErr_Occurred()) SWIG_fail;
27925 }
27926 {
27927 wxSize * resultptr;
27928 resultptr = new wxSize((wxSize &) result);
27929 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
27930 }
27931 return resultobj;
27932 fail:
27933 return NULL;
27934 }
27935
27936
27937 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
27938 PyObject *resultobj;
27939 wxPyControl *arg1 = (wxPyControl *) 0 ;
27940 wxWindow *arg2 = (wxWindow *) 0 ;
27941 PyObject * obj0 = 0 ;
27942 PyObject * obj1 = 0 ;
27943 char *kwnames[] = {
27944 (char *) "self",(char *) "child", NULL
27945 };
27946
27947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
27948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27949 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27950 {
27951 PyThreadState* __tstate = wxPyBeginAllowThreads();
27952 (arg1)->base_AddChild(arg2);
27953
27954 wxPyEndAllowThreads(__tstate);
27955 if (PyErr_Occurred()) SWIG_fail;
27956 }
27957 Py_INCREF(Py_None); resultobj = Py_None;
27958 return resultobj;
27959 fail:
27960 return NULL;
27961 }
27962
27963
27964 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
27965 PyObject *resultobj;
27966 wxPyControl *arg1 = (wxPyControl *) 0 ;
27967 wxWindow *arg2 = (wxWindow *) 0 ;
27968 PyObject * obj0 = 0 ;
27969 PyObject * obj1 = 0 ;
27970 char *kwnames[] = {
27971 (char *) "self",(char *) "child", NULL
27972 };
27973
27974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
27975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27976 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27977 {
27978 PyThreadState* __tstate = wxPyBeginAllowThreads();
27979 (arg1)->base_RemoveChild(arg2);
27980
27981 wxPyEndAllowThreads(__tstate);
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
27984 Py_INCREF(Py_None); resultobj = Py_None;
27985 return resultobj;
27986 fail:
27987 return NULL;
27988 }
27989
27990
27991 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
27992 PyObject *obj;
27993 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27994 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
27995 Py_INCREF(obj);
27996 return Py_BuildValue((char *)"");
27997 }
27998 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
27999 PyObject *resultobj;
28000 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28001 int arg2 = (int) 0 ;
28002 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28003 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28004 wxHelpEvent *result;
28005 wxPoint temp3 ;
28006 PyObject * obj0 = 0 ;
28007 PyObject * obj1 = 0 ;
28008 PyObject * obj2 = 0 ;
28009 char *kwnames[] = {
28010 (char *) "type",(char *) "winid",(char *) "pt", NULL
28011 };
28012
28013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
28014 if (obj0) {
28015 {
28016 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
28019 }
28020 if (obj1) {
28021 {
28022 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28023 if (PyErr_Occurred()) SWIG_fail;
28024 }
28025 }
28026 if (obj2) {
28027 {
28028 arg3 = &temp3;
28029 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28030 }
28031 }
28032 {
28033 PyThreadState* __tstate = wxPyBeginAllowThreads();
28034 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
28035
28036 wxPyEndAllowThreads(__tstate);
28037 if (PyErr_Occurred()) SWIG_fail;
28038 }
28039 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1);
28040 return resultobj;
28041 fail:
28042 return NULL;
28043 }
28044
28045
28046 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28047 PyObject *resultobj;
28048 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28049 wxPoint *result;
28050 PyObject * obj0 = 0 ;
28051 char *kwnames[] = {
28052 (char *) "self", NULL
28053 };
28054
28055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
28056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28057 {
28058 PyThreadState* __tstate = wxPyBeginAllowThreads();
28059 {
28060 wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition();
28061 result = (wxPoint *) &_result_ref;
28062 }
28063
28064 wxPyEndAllowThreads(__tstate);
28065 if (PyErr_Occurred()) SWIG_fail;
28066 }
28067 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
28068 return resultobj;
28069 fail:
28070 return NULL;
28071 }
28072
28073
28074 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28075 PyObject *resultobj;
28076 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28077 wxPoint *arg2 = 0 ;
28078 wxPoint temp2 ;
28079 PyObject * obj0 = 0 ;
28080 PyObject * obj1 = 0 ;
28081 char *kwnames[] = {
28082 (char *) "self",(char *) "pos", NULL
28083 };
28084
28085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
28086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28087 {
28088 arg2 = &temp2;
28089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28090 }
28091 {
28092 PyThreadState* __tstate = wxPyBeginAllowThreads();
28093 (arg1)->SetPosition((wxPoint const &)*arg2);
28094
28095 wxPyEndAllowThreads(__tstate);
28096 if (PyErr_Occurred()) SWIG_fail;
28097 }
28098 Py_INCREF(Py_None); resultobj = Py_None;
28099 return resultobj;
28100 fail:
28101 return NULL;
28102 }
28103
28104
28105 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
28106 PyObject *resultobj;
28107 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28108 wxString *result;
28109 PyObject * obj0 = 0 ;
28110 char *kwnames[] = {
28111 (char *) "self", NULL
28112 };
28113
28114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
28115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28116 {
28117 PyThreadState* __tstate = wxPyBeginAllowThreads();
28118 {
28119 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
28120 result = (wxString *) &_result_ref;
28121 }
28122
28123 wxPyEndAllowThreads(__tstate);
28124 if (PyErr_Occurred()) SWIG_fail;
28125 }
28126 {
28127 #if wxUSE_UNICODE
28128 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28129 #else
28130 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28131 #endif
28132 }
28133 return resultobj;
28134 fail:
28135 return NULL;
28136 }
28137
28138
28139 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
28140 PyObject *resultobj;
28141 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28142 wxString *arg2 = 0 ;
28143 bool temp2 = False ;
28144 PyObject * obj0 = 0 ;
28145 PyObject * obj1 = 0 ;
28146 char *kwnames[] = {
28147 (char *) "self",(char *) "link", NULL
28148 };
28149
28150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
28151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28152 {
28153 arg2 = wxString_in_helper(obj1);
28154 if (arg2 == NULL) SWIG_fail;
28155 temp2 = True;
28156 }
28157 {
28158 PyThreadState* __tstate = wxPyBeginAllowThreads();
28159 (arg1)->SetLink((wxString const &)*arg2);
28160
28161 wxPyEndAllowThreads(__tstate);
28162 if (PyErr_Occurred()) SWIG_fail;
28163 }
28164 Py_INCREF(Py_None); resultobj = Py_None;
28165 {
28166 if (temp2)
28167 delete arg2;
28168 }
28169 return resultobj;
28170 fail:
28171 {
28172 if (temp2)
28173 delete arg2;
28174 }
28175 return NULL;
28176 }
28177
28178
28179 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
28180 PyObject *resultobj;
28181 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28182 wxString *result;
28183 PyObject * obj0 = 0 ;
28184 char *kwnames[] = {
28185 (char *) "self", NULL
28186 };
28187
28188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
28189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28190 {
28191 PyThreadState* __tstate = wxPyBeginAllowThreads();
28192 {
28193 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
28194 result = (wxString *) &_result_ref;
28195 }
28196
28197 wxPyEndAllowThreads(__tstate);
28198 if (PyErr_Occurred()) SWIG_fail;
28199 }
28200 {
28201 #if wxUSE_UNICODE
28202 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28203 #else
28204 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28205 #endif
28206 }
28207 return resultobj;
28208 fail:
28209 return NULL;
28210 }
28211
28212
28213 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
28214 PyObject *resultobj;
28215 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28216 wxString *arg2 = 0 ;
28217 bool temp2 = False ;
28218 PyObject * obj0 = 0 ;
28219 PyObject * obj1 = 0 ;
28220 char *kwnames[] = {
28221 (char *) "self",(char *) "target", NULL
28222 };
28223
28224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
28225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28226 {
28227 arg2 = wxString_in_helper(obj1);
28228 if (arg2 == NULL) SWIG_fail;
28229 temp2 = True;
28230 }
28231 {
28232 PyThreadState* __tstate = wxPyBeginAllowThreads();
28233 (arg1)->SetTarget((wxString const &)*arg2);
28234
28235 wxPyEndAllowThreads(__tstate);
28236 if (PyErr_Occurred()) SWIG_fail;
28237 }
28238 Py_INCREF(Py_None); resultobj = Py_None;
28239 {
28240 if (temp2)
28241 delete arg2;
28242 }
28243 return resultobj;
28244 fail:
28245 {
28246 if (temp2)
28247 delete arg2;
28248 }
28249 return NULL;
28250 }
28251
28252
28253 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
28254 PyObject *obj;
28255 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28256 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
28257 Py_INCREF(obj);
28258 return Py_BuildValue((char *)"");
28259 }
28260 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28261 PyObject *resultobj;
28262 wxWindow *arg1 = (wxWindow *) NULL ;
28263 bool arg2 = (bool) True ;
28264 wxContextHelp *result;
28265 PyObject * obj0 = 0 ;
28266 PyObject * obj1 = 0 ;
28267 char *kwnames[] = {
28268 (char *) "window",(char *) "doNow", NULL
28269 };
28270
28271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
28272 if (obj0) {
28273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28274 }
28275 if (obj1) {
28276 {
28277 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
28278 if (PyErr_Occurred()) SWIG_fail;
28279 }
28280 }
28281 {
28282 PyThreadState* __tstate = wxPyBeginAllowThreads();
28283 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
28284
28285 wxPyEndAllowThreads(__tstate);
28286 if (PyErr_Occurred()) SWIG_fail;
28287 }
28288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1);
28289 return resultobj;
28290 fail:
28291 return NULL;
28292 }
28293
28294
28295 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28296 PyObject *resultobj;
28297 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28298 PyObject * obj0 = 0 ;
28299 char *kwnames[] = {
28300 (char *) "self", NULL
28301 };
28302
28303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
28304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28305 {
28306 PyThreadState* __tstate = wxPyBeginAllowThreads();
28307 delete arg1;
28308
28309 wxPyEndAllowThreads(__tstate);
28310 if (PyErr_Occurred()) SWIG_fail;
28311 }
28312 Py_INCREF(Py_None); resultobj = Py_None;
28313 return resultobj;
28314 fail:
28315 return NULL;
28316 }
28317
28318
28319 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28320 PyObject *resultobj;
28321 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28322 wxWindow *arg2 = (wxWindow *) NULL ;
28323 bool result;
28324 PyObject * obj0 = 0 ;
28325 PyObject * obj1 = 0 ;
28326 char *kwnames[] = {
28327 (char *) "self",(char *) "window", NULL
28328 };
28329
28330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
28331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28332 if (obj1) {
28333 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28334 }
28335 {
28336 PyThreadState* __tstate = wxPyBeginAllowThreads();
28337 result = (bool)(arg1)->BeginContextHelp(arg2);
28338
28339 wxPyEndAllowThreads(__tstate);
28340 if (PyErr_Occurred()) SWIG_fail;
28341 }
28342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28343 return resultobj;
28344 fail:
28345 return NULL;
28346 }
28347
28348
28349 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28350 PyObject *resultobj;
28351 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28352 bool result;
28353 PyObject * obj0 = 0 ;
28354 char *kwnames[] = {
28355 (char *) "self", NULL
28356 };
28357
28358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
28359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28360 {
28361 PyThreadState* __tstate = wxPyBeginAllowThreads();
28362 result = (bool)(arg1)->EndContextHelp();
28363
28364 wxPyEndAllowThreads(__tstate);
28365 if (PyErr_Occurred()) SWIG_fail;
28366 }
28367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28368 return resultobj;
28369 fail:
28370 return NULL;
28371 }
28372
28373
28374 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
28375 PyObject *obj;
28376 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28377 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
28378 Py_INCREF(obj);
28379 return Py_BuildValue((char *)"");
28380 }
28381 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
28382 PyObject *resultobj;
28383 wxWindow *arg1 = (wxWindow *) 0 ;
28384 int arg2 = (int) wxID_CONTEXT_HELP ;
28385 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28386 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28387 wxSize const &arg4_defvalue = wxDefaultSize ;
28388 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28389 long arg5 = (long) wxBU_AUTODRAW ;
28390 wxContextHelpButton *result;
28391 wxPoint temp3 ;
28392 wxSize temp4 ;
28393 PyObject * obj0 = 0 ;
28394 PyObject * obj1 = 0 ;
28395 PyObject * obj2 = 0 ;
28396 PyObject * obj3 = 0 ;
28397 PyObject * obj4 = 0 ;
28398 char *kwnames[] = {
28399 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28400 };
28401
28402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28404 if (obj1) {
28405 {
28406 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28407 if (PyErr_Occurred()) SWIG_fail;
28408 }
28409 }
28410 if (obj2) {
28411 {
28412 arg3 = &temp3;
28413 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28414 }
28415 }
28416 if (obj3) {
28417 {
28418 arg4 = &temp4;
28419 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28420 }
28421 }
28422 if (obj4) {
28423 {
28424 arg5 = (long) SWIG_PyObj_AsLong(obj4);
28425 if (PyErr_Occurred()) SWIG_fail;
28426 }
28427 }
28428 {
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28431
28432 wxPyEndAllowThreads(__tstate);
28433 if (PyErr_Occurred()) SWIG_fail;
28434 }
28435 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1);
28436 return resultobj;
28437 fail:
28438 return NULL;
28439 }
28440
28441
28442 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
28443 PyObject *obj;
28444 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28445 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
28446 Py_INCREF(obj);
28447 return Py_BuildValue((char *)"");
28448 }
28449 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
28450 PyObject *resultobj;
28451 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28452 wxHelpProvider *result;
28453 PyObject * obj0 = 0 ;
28454 char *kwnames[] = {
28455 (char *) "helpProvider", NULL
28456 };
28457
28458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
28459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28460 {
28461 PyThreadState* __tstate = wxPyBeginAllowThreads();
28462 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
28463
28464 wxPyEndAllowThreads(__tstate);
28465 if (PyErr_Occurred()) SWIG_fail;
28466 }
28467 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0);
28468 return resultobj;
28469 fail:
28470 return NULL;
28471 }
28472
28473
28474 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
28475 PyObject *resultobj;
28476 wxHelpProvider *result;
28477 char *kwnames[] = {
28478 NULL
28479 };
28480
28481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
28482 {
28483 PyThreadState* __tstate = wxPyBeginAllowThreads();
28484 result = (wxHelpProvider *)wxHelpProvider::Get();
28485
28486 wxPyEndAllowThreads(__tstate);
28487 if (PyErr_Occurred()) SWIG_fail;
28488 }
28489 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0);
28490 return resultobj;
28491 fail:
28492 return NULL;
28493 }
28494
28495
28496 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28497 PyObject *resultobj;
28498 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28499 wxWindow *arg2 = (wxWindow *) 0 ;
28500 wxString result;
28501 PyObject * obj0 = 0 ;
28502 PyObject * obj1 = 0 ;
28503 char *kwnames[] = {
28504 (char *) "self",(char *) "window", NULL
28505 };
28506
28507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
28508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28509 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28510 {
28511 PyThreadState* __tstate = wxPyBeginAllowThreads();
28512 result = (arg1)->GetHelp((wxWindow const *)arg2);
28513
28514 wxPyEndAllowThreads(__tstate);
28515 if (PyErr_Occurred()) SWIG_fail;
28516 }
28517 {
28518 #if wxUSE_UNICODE
28519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28520 #else
28521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28522 #endif
28523 }
28524 return resultobj;
28525 fail:
28526 return NULL;
28527 }
28528
28529
28530 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28531 PyObject *resultobj;
28532 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28533 wxWindow *arg2 = (wxWindow *) 0 ;
28534 bool result;
28535 PyObject * obj0 = 0 ;
28536 PyObject * obj1 = 0 ;
28537 char *kwnames[] = {
28538 (char *) "self",(char *) "window", NULL
28539 };
28540
28541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
28542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28543 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28544 {
28545 PyThreadState* __tstate = wxPyBeginAllowThreads();
28546 result = (bool)(arg1)->ShowHelp(arg2);
28547
28548 wxPyEndAllowThreads(__tstate);
28549 if (PyErr_Occurred()) SWIG_fail;
28550 }
28551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28552 return resultobj;
28553 fail:
28554 return NULL;
28555 }
28556
28557
28558 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28559 PyObject *resultobj;
28560 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28561 wxWindow *arg2 = (wxWindow *) 0 ;
28562 wxString *arg3 = 0 ;
28563 bool temp3 = False ;
28564 PyObject * obj0 = 0 ;
28565 PyObject * obj1 = 0 ;
28566 PyObject * obj2 = 0 ;
28567 char *kwnames[] = {
28568 (char *) "self",(char *) "window",(char *) "text", NULL
28569 };
28570
28571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
28572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28573 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28574 {
28575 arg3 = wxString_in_helper(obj2);
28576 if (arg3 == NULL) SWIG_fail;
28577 temp3 = True;
28578 }
28579 {
28580 PyThreadState* __tstate = wxPyBeginAllowThreads();
28581 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
28582
28583 wxPyEndAllowThreads(__tstate);
28584 if (PyErr_Occurred()) SWIG_fail;
28585 }
28586 Py_INCREF(Py_None); resultobj = Py_None;
28587 {
28588 if (temp3)
28589 delete arg3;
28590 }
28591 return resultobj;
28592 fail:
28593 {
28594 if (temp3)
28595 delete arg3;
28596 }
28597 return NULL;
28598 }
28599
28600
28601 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
28602 PyObject *resultobj;
28603 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28604 int arg2 ;
28605 wxString *arg3 = 0 ;
28606 bool temp3 = False ;
28607 PyObject * obj0 = 0 ;
28608 PyObject * obj1 = 0 ;
28609 PyObject * obj2 = 0 ;
28610 char *kwnames[] = {
28611 (char *) "self",(char *) "id",(char *) "text", NULL
28612 };
28613
28614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
28615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28616 {
28617 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 {
28621 arg3 = wxString_in_helper(obj2);
28622 if (arg3 == NULL) SWIG_fail;
28623 temp3 = True;
28624 }
28625 {
28626 PyThreadState* __tstate = wxPyBeginAllowThreads();
28627 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
28628
28629 wxPyEndAllowThreads(__tstate);
28630 if (PyErr_Occurred()) SWIG_fail;
28631 }
28632 Py_INCREF(Py_None); resultobj = Py_None;
28633 {
28634 if (temp3)
28635 delete arg3;
28636 }
28637 return resultobj;
28638 fail:
28639 {
28640 if (temp3)
28641 delete arg3;
28642 }
28643 return NULL;
28644 }
28645
28646
28647 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
28648 PyObject *resultobj;
28649 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28650 PyObject * obj0 = 0 ;
28651 char *kwnames[] = {
28652 (char *) "self", NULL
28653 };
28654
28655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
28656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28657 {
28658 PyThreadState* __tstate = wxPyBeginAllowThreads();
28659 wxHelpProvider_Destroy(arg1);
28660
28661 wxPyEndAllowThreads(__tstate);
28662 if (PyErr_Occurred()) SWIG_fail;
28663 }
28664 Py_INCREF(Py_None); resultobj = Py_None;
28665 return resultobj;
28666 fail:
28667 return NULL;
28668 }
28669
28670
28671 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
28672 PyObject *obj;
28673 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28674 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
28675 Py_INCREF(obj);
28676 return Py_BuildValue((char *)"");
28677 }
28678 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
28679 PyObject *resultobj;
28680 wxSimpleHelpProvider *result;
28681 char *kwnames[] = {
28682 NULL
28683 };
28684
28685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
28686 {
28687 PyThreadState* __tstate = wxPyBeginAllowThreads();
28688 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
28689
28690 wxPyEndAllowThreads(__tstate);
28691 if (PyErr_Occurred()) SWIG_fail;
28692 }
28693 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1);
28694 return resultobj;
28695 fail:
28696 return NULL;
28697 }
28698
28699
28700 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
28701 PyObject *obj;
28702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28703 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
28704 Py_INCREF(obj);
28705 return Py_BuildValue((char *)"");
28706 }
28707 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
28708 PyObject *resultobj;
28709 wxBitmap *arg1 = 0 ;
28710 wxCursor const &arg2_defvalue = wxNullCursor ;
28711 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
28712 wxGenericDragImage *result;
28713 PyObject * obj0 = 0 ;
28714 PyObject * obj1 = 0 ;
28715 char *kwnames[] = {
28716 (char *) "image",(char *) "cursor", NULL
28717 };
28718
28719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
28720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28721 if (arg1 == NULL) {
28722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28723 }
28724 if (obj1) {
28725 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28726 if (arg2 == NULL) {
28727 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28728 }
28729 }
28730 {
28731 PyThreadState* __tstate = wxPyBeginAllowThreads();
28732 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
28733
28734 wxPyEndAllowThreads(__tstate);
28735 if (PyErr_Occurred()) SWIG_fail;
28736 }
28737 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
28738 return resultobj;
28739 fail:
28740 return NULL;
28741 }
28742
28743
28744 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
28745 PyObject *resultobj;
28746 wxIcon *arg1 = 0 ;
28747 wxCursor const &arg2_defvalue = wxNullCursor ;
28748 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
28749 wxGenericDragImage *result;
28750 PyObject * obj0 = 0 ;
28751 PyObject * obj1 = 0 ;
28752 char *kwnames[] = {
28753 (char *) "image",(char *) "cursor", NULL
28754 };
28755
28756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
28757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28758 if (arg1 == NULL) {
28759 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28760 }
28761 if (obj1) {
28762 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28763 if (arg2 == NULL) {
28764 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28765 }
28766 }
28767 {
28768 PyThreadState* __tstate = wxPyBeginAllowThreads();
28769 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
28770
28771 wxPyEndAllowThreads(__tstate);
28772 if (PyErr_Occurred()) SWIG_fail;
28773 }
28774 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
28775 return resultobj;
28776 fail:
28777 return NULL;
28778 }
28779
28780
28781 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
28782 PyObject *resultobj;
28783 wxString *arg1 = 0 ;
28784 wxCursor const &arg2_defvalue = wxNullCursor ;
28785 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
28786 wxGenericDragImage *result;
28787 bool temp1 = False ;
28788 PyObject * obj0 = 0 ;
28789 PyObject * obj1 = 0 ;
28790 char *kwnames[] = {
28791 (char *) "str",(char *) "cursor", NULL
28792 };
28793
28794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
28795 {
28796 arg1 = wxString_in_helper(obj0);
28797 if (arg1 == NULL) SWIG_fail;
28798 temp1 = True;
28799 }
28800 if (obj1) {
28801 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28802 if (arg2 == NULL) {
28803 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28804 }
28805 }
28806 {
28807 PyThreadState* __tstate = wxPyBeginAllowThreads();
28808 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
28809
28810 wxPyEndAllowThreads(__tstate);
28811 if (PyErr_Occurred()) SWIG_fail;
28812 }
28813 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
28814 {
28815 if (temp1)
28816 delete arg1;
28817 }
28818 return resultobj;
28819 fail:
28820 {
28821 if (temp1)
28822 delete arg1;
28823 }
28824 return NULL;
28825 }
28826
28827
28828 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28829 PyObject *resultobj;
28830 wxPyTreeCtrl *arg1 = 0 ;
28831 wxTreeItemId *arg2 = 0 ;
28832 wxGenericDragImage *result;
28833 PyObject * obj0 = 0 ;
28834 PyObject * obj1 = 0 ;
28835 char *kwnames[] = {
28836 (char *) "treeCtrl",(char *) "id", NULL
28837 };
28838
28839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
28840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28841 if (arg1 == NULL) {
28842 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28843 }
28844 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28845 if (arg2 == NULL) {
28846 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28847 }
28848 {
28849 PyThreadState* __tstate = wxPyBeginAllowThreads();
28850 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
28851
28852 wxPyEndAllowThreads(__tstate);
28853 if (PyErr_Occurred()) SWIG_fail;
28854 }
28855 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
28856 return resultobj;
28857 fail:
28858 return NULL;
28859 }
28860
28861
28862 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28863 PyObject *resultobj;
28864 wxPyListCtrl *arg1 = 0 ;
28865 long arg2 ;
28866 wxGenericDragImage *result;
28867 PyObject * obj0 = 0 ;
28868 PyObject * obj1 = 0 ;
28869 char *kwnames[] = {
28870 (char *) "listCtrl",(char *) "id", NULL
28871 };
28872
28873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
28874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28875 if (arg1 == NULL) {
28876 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28877 }
28878 {
28879 arg2 = (long) SWIG_PyObj_AsLong(obj1);
28880 if (PyErr_Occurred()) SWIG_fail;
28881 }
28882 {
28883 PyThreadState* __tstate = wxPyBeginAllowThreads();
28884 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
28885
28886 wxPyEndAllowThreads(__tstate);
28887 if (PyErr_Occurred()) SWIG_fail;
28888 }
28889 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
28890 return resultobj;
28891 fail:
28892 return NULL;
28893 }
28894
28895
28896 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
28897 PyObject *resultobj;
28898 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
28899 PyObject * obj0 = 0 ;
28900 char *kwnames[] = {
28901 (char *) "self", NULL
28902 };
28903
28904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
28905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28906 {
28907 PyThreadState* __tstate = wxPyBeginAllowThreads();
28908 delete arg1;
28909
28910 wxPyEndAllowThreads(__tstate);
28911 if (PyErr_Occurred()) SWIG_fail;
28912 }
28913 Py_INCREF(Py_None); resultobj = Py_None;
28914 return resultobj;
28915 fail:
28916 return NULL;
28917 }
28918
28919
28920 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
28921 PyObject *resultobj;
28922 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
28923 wxBitmap *arg2 = (wxBitmap *) 0 ;
28924 PyObject * obj0 = 0 ;
28925 PyObject * obj1 = 0 ;
28926 char *kwnames[] = {
28927 (char *) "self",(char *) "bitmap", NULL
28928 };
28929
28930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
28931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28932 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28933 {
28934 PyThreadState* __tstate = wxPyBeginAllowThreads();
28935 (arg1)->SetBackingBitmap(arg2);
28936
28937 wxPyEndAllowThreads(__tstate);
28938 if (PyErr_Occurred()) SWIG_fail;
28939 }
28940 Py_INCREF(Py_None); resultobj = Py_None;
28941 return resultobj;
28942 fail:
28943 return NULL;
28944 }
28945
28946
28947 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
28948 PyObject *resultobj;
28949 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
28950 wxPoint *arg2 = 0 ;
28951 wxWindow *arg3 = (wxWindow *) 0 ;
28952 bool arg4 = (bool) False ;
28953 wxRect *arg5 = (wxRect *) NULL ;
28954 bool result;
28955 wxPoint temp2 ;
28956 PyObject * obj0 = 0 ;
28957 PyObject * obj1 = 0 ;
28958 PyObject * obj2 = 0 ;
28959 PyObject * obj3 = 0 ;
28960 PyObject * obj4 = 0 ;
28961 char *kwnames[] = {
28962 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
28963 };
28964
28965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28967 {
28968 arg2 = &temp2;
28969 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28970 }
28971 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28972 if (obj3) {
28973 {
28974 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
28975 if (PyErr_Occurred()) SWIG_fail;
28976 }
28977 }
28978 if (obj4) {
28979 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28980 }
28981 {
28982 PyThreadState* __tstate = wxPyBeginAllowThreads();
28983 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
28984
28985 wxPyEndAllowThreads(__tstate);
28986 if (PyErr_Occurred()) SWIG_fail;
28987 }
28988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28989 return resultobj;
28990 fail:
28991 return NULL;
28992 }
28993
28994
28995 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
28996 PyObject *resultobj;
28997 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
28998 wxPoint *arg2 = 0 ;
28999 wxWindow *arg3 = (wxWindow *) 0 ;
29000 wxWindow *arg4 = (wxWindow *) 0 ;
29001 bool result;
29002 wxPoint temp2 ;
29003 PyObject * obj0 = 0 ;
29004 PyObject * obj1 = 0 ;
29005 PyObject * obj2 = 0 ;
29006 PyObject * obj3 = 0 ;
29007 char *kwnames[] = {
29008 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
29009 };
29010
29011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29013 {
29014 arg2 = &temp2;
29015 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29016 }
29017 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29018 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29019 {
29020 PyThreadState* __tstate = wxPyBeginAllowThreads();
29021 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
29022
29023 wxPyEndAllowThreads(__tstate);
29024 if (PyErr_Occurred()) SWIG_fail;
29025 }
29026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29027 return resultobj;
29028 fail:
29029 return NULL;
29030 }
29031
29032
29033 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
29034 PyObject *resultobj;
29035 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29036 bool result;
29037 PyObject * obj0 = 0 ;
29038 char *kwnames[] = {
29039 (char *) "self", NULL
29040 };
29041
29042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
29043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29044 {
29045 PyThreadState* __tstate = wxPyBeginAllowThreads();
29046 result = (bool)(arg1)->EndDrag();
29047
29048 wxPyEndAllowThreads(__tstate);
29049 if (PyErr_Occurred()) SWIG_fail;
29050 }
29051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29052 return resultobj;
29053 fail:
29054 return NULL;
29055 }
29056
29057
29058 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
29059 PyObject *resultobj;
29060 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29061 wxPoint *arg2 = 0 ;
29062 bool result;
29063 wxPoint temp2 ;
29064 PyObject * obj0 = 0 ;
29065 PyObject * obj1 = 0 ;
29066 char *kwnames[] = {
29067 (char *) "self",(char *) "pt", NULL
29068 };
29069
29070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
29071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29072 {
29073 arg2 = &temp2;
29074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29075 }
29076 {
29077 PyThreadState* __tstate = wxPyBeginAllowThreads();
29078 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
29079
29080 wxPyEndAllowThreads(__tstate);
29081 if (PyErr_Occurred()) SWIG_fail;
29082 }
29083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29084 return resultobj;
29085 fail:
29086 return NULL;
29087 }
29088
29089
29090 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
29091 PyObject *resultobj;
29092 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29093 bool result;
29094 PyObject * obj0 = 0 ;
29095 char *kwnames[] = {
29096 (char *) "self", NULL
29097 };
29098
29099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
29100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29101 {
29102 PyThreadState* __tstate = wxPyBeginAllowThreads();
29103 result = (bool)(arg1)->Show();
29104
29105 wxPyEndAllowThreads(__tstate);
29106 if (PyErr_Occurred()) SWIG_fail;
29107 }
29108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29109 return resultobj;
29110 fail:
29111 return NULL;
29112 }
29113
29114
29115 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
29116 PyObject *resultobj;
29117 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29118 bool result;
29119 PyObject * obj0 = 0 ;
29120 char *kwnames[] = {
29121 (char *) "self", NULL
29122 };
29123
29124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
29125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29126 {
29127 PyThreadState* __tstate = wxPyBeginAllowThreads();
29128 result = (bool)(arg1)->Hide();
29129
29130 wxPyEndAllowThreads(__tstate);
29131 if (PyErr_Occurred()) SWIG_fail;
29132 }
29133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29134 return resultobj;
29135 fail:
29136 return NULL;
29137 }
29138
29139
29140 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
29141 PyObject *resultobj;
29142 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29143 wxPoint *arg2 = 0 ;
29144 wxRect result;
29145 wxPoint temp2 ;
29146 PyObject * obj0 = 0 ;
29147 PyObject * obj1 = 0 ;
29148 char *kwnames[] = {
29149 (char *) "self",(char *) "pos", NULL
29150 };
29151
29152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
29153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29154 {
29155 arg2 = &temp2;
29156 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29157 }
29158 {
29159 PyThreadState* __tstate = wxPyBeginAllowThreads();
29160 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
29161
29162 wxPyEndAllowThreads(__tstate);
29163 if (PyErr_Occurred()) SWIG_fail;
29164 }
29165 {
29166 wxRect * resultptr;
29167 resultptr = new wxRect((wxRect &) result);
29168 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
29169 }
29170 return resultobj;
29171 fail:
29172 return NULL;
29173 }
29174
29175
29176 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29177 PyObject *resultobj;
29178 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29179 wxDC *arg2 = 0 ;
29180 wxPoint *arg3 = 0 ;
29181 bool result;
29182 wxPoint temp3 ;
29183 PyObject * obj0 = 0 ;
29184 PyObject * obj1 = 0 ;
29185 PyObject * obj2 = 0 ;
29186 char *kwnames[] = {
29187 (char *) "self",(char *) "dc",(char *) "pos", NULL
29188 };
29189
29190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
29191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29192 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29193 if (arg2 == NULL) {
29194 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29195 }
29196 {
29197 arg3 = &temp3;
29198 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29199 }
29200 {
29201 PyThreadState* __tstate = wxPyBeginAllowThreads();
29202 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
29203
29204 wxPyEndAllowThreads(__tstate);
29205 if (PyErr_Occurred()) SWIG_fail;
29206 }
29207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29208 return resultobj;
29209 fail:
29210 return NULL;
29211 }
29212
29213
29214 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29215 PyObject *resultobj;
29216 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29217 wxDC *arg2 = 0 ;
29218 wxMemoryDC *arg3 = 0 ;
29219 wxRect *arg4 = 0 ;
29220 wxRect *arg5 = 0 ;
29221 bool result;
29222 wxRect temp4 ;
29223 wxRect temp5 ;
29224 PyObject * obj0 = 0 ;
29225 PyObject * obj1 = 0 ;
29226 PyObject * obj2 = 0 ;
29227 PyObject * obj3 = 0 ;
29228 PyObject * obj4 = 0 ;
29229 char *kwnames[] = {
29230 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
29231 };
29232
29233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29235 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29236 if (arg2 == NULL) {
29237 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29238 }
29239 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29240 if (arg3 == NULL) {
29241 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29242 }
29243 {
29244 arg4 = &temp4;
29245 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29246 }
29247 {
29248 arg5 = &temp5;
29249 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
29250 }
29251 {
29252 PyThreadState* __tstate = wxPyBeginAllowThreads();
29253 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
29254
29255 wxPyEndAllowThreads(__tstate);
29256 if (PyErr_Occurred()) SWIG_fail;
29257 }
29258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29259 return resultobj;
29260 fail:
29261 return NULL;
29262 }
29263
29264
29265 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29266 PyObject *resultobj;
29267 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29268 wxPoint *arg2 = 0 ;
29269 wxPoint *arg3 = 0 ;
29270 bool arg4 ;
29271 bool arg5 ;
29272 bool result;
29273 wxPoint temp2 ;
29274 wxPoint temp3 ;
29275 PyObject * obj0 = 0 ;
29276 PyObject * obj1 = 0 ;
29277 PyObject * obj2 = 0 ;
29278 PyObject * obj3 = 0 ;
29279 PyObject * obj4 = 0 ;
29280 char *kwnames[] = {
29281 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
29282 };
29283
29284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29286 {
29287 arg2 = &temp2;
29288 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29289 }
29290 {
29291 arg3 = &temp3;
29292 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29293 }
29294 {
29295 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
29296 if (PyErr_Occurred()) SWIG_fail;
29297 }
29298 {
29299 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
29300 if (PyErr_Occurred()) SWIG_fail;
29301 }
29302 {
29303 PyThreadState* __tstate = wxPyBeginAllowThreads();
29304 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
29305
29306 wxPyEndAllowThreads(__tstate);
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29310 return resultobj;
29311 fail:
29312 return NULL;
29313 }
29314
29315
29316 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
29317 PyObject *obj;
29318 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29319 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
29320 Py_INCREF(obj);
29321 return Py_BuildValue((char *)"");
29322 }
29323 static PyMethodDef SwigMethods[] = {
29324 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
29325 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
29326 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
29327 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
29328 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
29329 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
29330 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
29331 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
29332 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
29333 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
29334 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
29335 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
29336 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
29337 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
29338 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
29339 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
29340 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
29341 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
29342 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
29343 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
29344 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
29345 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
29346 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
29347 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
29348 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
29349 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
29350 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
29351 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
29352 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
29353 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
29354 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
29355 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
29356 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
29357 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
29358 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
29359 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
29360 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29361 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
29362 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
29363 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
29364 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
29365 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
29366 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
29367 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
29368 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
29369 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
29370 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
29371 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29372 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29373 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
29374 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
29375 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29376 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
29377 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
29378 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
29379 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
29380 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
29381 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
29382 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
29383 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
29384 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
29385 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
29386 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
29387 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
29388 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
29389 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
29390 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
29391 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
29392 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
29393 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
29394 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
29395 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
29396 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
29397 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
29398 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
29399 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
29400 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
29401 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
29402 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
29403 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
29404 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
29405 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
29406 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
29407 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
29408 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
29409 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
29410 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
29411 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
29412 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
29413 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
29414 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
29415 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
29416 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
29417 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
29418 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
29419 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
29420 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
29421 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
29422 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29423 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
29424 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
29425 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
29426 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29427 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
29428 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
29429 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
29430 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
29431 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
29432 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
29433 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
29434 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29435 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
29436 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
29437 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
29438 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
29439 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
29440 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
29441 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
29442 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
29443 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
29444 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
29445 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
29446 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
29447 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
29448 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
29449 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
29450 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29451 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
29452 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
29453 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
29454 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
29455 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
29456 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
29457 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
29458 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29459 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
29460 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
29461 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
29462 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
29463 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
29464 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
29465 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
29466 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29467 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
29468 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
29469 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
29470 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
29471 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
29472 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
29473 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
29474 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
29475 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
29476 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
29477 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
29478 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
29479 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
29480 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
29481 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
29482 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
29483 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
29484 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
29485 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
29486 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
29487 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
29488 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
29489 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
29490 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
29491 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
29492 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
29493 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
29494 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
29495 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
29496 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
29497 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
29498 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
29499 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
29500 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
29501 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
29502 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
29503 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
29504 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
29505 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
29506 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
29507 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
29508 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
29509 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
29510 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
29511 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
29512 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
29513 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
29514 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
29515 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
29516 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
29517 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
29518 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
29519 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
29520 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29521 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
29522 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29523 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
29524 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
29525 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
29526 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
29527 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
29528 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
29529 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
29530 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
29531 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
29532 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
29533 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
29534 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
29535 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
29536 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
29537 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
29538 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
29539 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
29540 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
29541 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
29542 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
29543 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
29544 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
29545 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
29546 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
29547 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
29548 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
29549 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29550 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
29551 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
29552 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29553 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
29554 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
29555 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
29556 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
29557 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
29558 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
29559 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
29560 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
29561 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
29562 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
29563 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
29564 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
29565 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
29566 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
29567 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
29568 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
29569 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
29570 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
29571 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
29572 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
29573 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
29574 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
29575 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
29576 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29577 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
29578 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
29579 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29580 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
29581 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
29582 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
29583 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
29584 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
29585 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
29586 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
29587 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
29588 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
29589 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
29590 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
29591 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
29592 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
29593 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29594 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29595 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
29596 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
29597 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
29598 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
29599 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
29600 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
29601 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
29602 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
29603 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
29604 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
29605 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
29606 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
29607 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
29608 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
29609 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
29610 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
29611 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
29612 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
29613 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
29614 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
29615 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
29616 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
29617 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
29618 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
29619 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
29620 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
29621 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
29622 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
29623 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
29624 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29625 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29626 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
29627 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
29628 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
29629 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
29630 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
29631 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
29632 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
29633 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
29634 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
29635 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
29636 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
29637 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
29638 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
29639 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
29640 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
29641 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
29642 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
29643 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
29644 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
29645 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
29646 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
29647 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
29648 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
29649 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
29650 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
29651 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
29652 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
29653 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
29654 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
29655 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
29656 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
29657 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
29658 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
29659 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
29660 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
29661 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
29662 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
29663 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
29664 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
29665 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
29666 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
29667 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
29668 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
29669 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
29670 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
29671 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
29672 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
29673 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
29674 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
29675 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
29676 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
29677 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
29678 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
29679 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
29680 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
29681 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
29682 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
29683 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
29684 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
29685 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
29686 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
29687 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
29688 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
29689 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
29690 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
29691 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
29692 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
29693 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
29694 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
29695 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
29696 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
29697 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
29698 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
29699 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
29700 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
29701 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
29702 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
29703 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
29704 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
29705 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
29706 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
29707 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
29708 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
29709 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
29710 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
29711 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
29712 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
29713 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
29714 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
29715 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
29716 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
29717 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
29718 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
29719 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
29720 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
29721 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
29722 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
29723 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
29724 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
29725 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
29726 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
29727 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
29728 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
29729 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
29730 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
29731 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
29732 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
29733 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
29734 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
29735 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
29736 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
29737 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
29738 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
29739 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
29740 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
29741 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
29742 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
29743 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
29744 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
29745 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
29746 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
29747 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
29748 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
29749 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
29750 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
29751 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
29752 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
29753 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
29754 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
29755 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
29756 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
29757 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
29758 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
29759 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
29760 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
29761 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
29762 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
29763 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
29764 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29765 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
29766 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
29767 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29768 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
29769 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
29770 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29771 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
29772 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
29773 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
29774 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
29775 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
29776 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
29777 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
29778 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
29779 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
29780 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
29781 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
29782 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
29783 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
29784 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
29785 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
29786 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
29787 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
29788 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
29789 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29790 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
29791 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
29792 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
29793 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
29794 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
29795 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
29796 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
29797 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
29798 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
29799 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
29800 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
29801 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
29802 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
29803 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29804 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
29805 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
29806 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
29807 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
29808 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
29809 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
29810 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
29811 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
29812 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
29813 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
29814 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
29815 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
29816 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
29817 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
29818 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
29819 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
29820 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
29821 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
29822 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
29823 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
29824 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
29825 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
29826 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
29827 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
29828 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
29829 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
29830 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
29831 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
29832 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
29833 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
29834 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
29835 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
29836 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
29837 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
29838 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
29839 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
29840 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
29841 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
29842 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
29843 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
29844 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
29845 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
29846 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
29847 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
29848 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
29849 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
29850 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
29851 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
29852 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
29853 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
29854 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
29855 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
29856 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29857 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
29858 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29859 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
29860 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
29861 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
29862 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
29863 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
29864 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
29865 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
29866 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
29867 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
29868 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
29869 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
29870 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
29871 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
29872 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
29873 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
29874 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
29875 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
29876 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
29877 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
29878 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
29879 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
29880 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
29881 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS },
29882 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
29883 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
29884 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
29885 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
29886 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
29887 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
29888 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
29889 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
29890 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
29891 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
29892 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
29893 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
29894 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
29895 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
29896 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
29897 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
29898 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
29899 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
29900 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
29901 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
29902 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
29903 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
29904 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
29905 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
29906 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
29907 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
29908 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
29909 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
29910 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
29911 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
29912 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
29913 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
29914 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
29915 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
29916 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
29917 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29918 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29919 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
29920 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
29921 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
29922 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
29923 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
29924 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
29925 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
29926 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
29927 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
29928 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
29929 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
29930 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
29931 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
29932 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
29933 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
29934 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
29935 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
29936 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
29937 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
29938 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
29939 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
29940 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
29941 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
29942 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
29943 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
29944 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
29945 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
29946 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
29947 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
29948 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
29949 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
29950 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
29951 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
29952 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
29953 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
29954 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
29955 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
29956 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
29957 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
29958 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
29959 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
29960 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
29961 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
29962 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
29963 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
29964 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
29965 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
29966 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
29967 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
29968 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29969 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
29970 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
29971 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
29972 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
29973 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
29974 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
29975 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
29976 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
29977 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
29978 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
29979 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
29980 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
29981 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
29982 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
29983 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
29984 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
29985 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29986 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
29987 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
29988 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
29989 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
29990 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
29991 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
29992 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
29993 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
29994 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29995 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
29996 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
29997 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
29998 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
29999 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
30000 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
30001 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
30002 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
30003 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30004 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
30005 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
30006 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
30007 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
30008 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
30009 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
30010 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
30011 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
30012 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
30013 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
30014 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
30015 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
30016 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
30017 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
30018 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
30019 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
30020 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
30021 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
30022 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
30023 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
30024 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
30025 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
30026 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
30027 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
30028 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
30029 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
30030 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
30031 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30032 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
30033 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
30034 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
30035 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
30036 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30037 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
30038 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
30039 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
30040 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
30041 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30042 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
30043 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
30044 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
30045 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
30046 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
30047 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
30048 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
30049 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
30050 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
30051 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
30052 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
30053 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
30054 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
30055 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
30056 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30057 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
30058 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
30059 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
30060 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
30061 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30062 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30063 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30064 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
30065 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
30066 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
30067 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30068 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
30069 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
30070 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
30071 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
30072 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
30073 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
30074 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
30075 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
30076 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
30077 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
30078 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
30079 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
30080 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
30081 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
30082 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
30083 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
30084 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
30085 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
30086 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
30087 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
30088 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
30089 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
30090 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
30091 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
30092 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
30093 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
30094 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
30095 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
30096 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
30097 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
30098 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
30099 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
30100 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
30101 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
30102 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
30103 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
30104 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
30105 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
30106 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
30107 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
30108 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
30109 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
30110 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
30111 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
30112 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
30113 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
30114 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
30115 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
30116 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
30117 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
30118 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
30119 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
30120 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
30121 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
30122 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
30123 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
30124 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
30125 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
30126 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
30127 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
30128 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
30129 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
30130 { NULL, NULL }
30131 };
30132
30133
30134 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
30135
30136 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
30137 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30138 }
30139 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
30140 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
30141 }
30142 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
30143 return (void *)((wxSizer *) ((wxBoxSizer *) x));
30144 }
30145 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
30146 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
30147 }
30148 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
30149 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30150 }
30151 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
30152 return (void *)((wxSizer *) ((wxGridSizer *) x));
30153 }
30154 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
30155 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
30156 }
30157 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
30158 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
30159 }
30160 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
30161 return (void *)((wxSizer *) ((wxPySizer *) x));
30162 }
30163 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
30164 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
30165 }
30166 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
30167 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
30168 }
30169 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
30170 return (void *)((wxEvent *) ((wxMenuEvent *) x));
30171 }
30172 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
30173 return (void *)((wxEvent *) ((wxCloseEvent *) x));
30174 }
30175 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
30176 return (void *)((wxEvent *) ((wxMouseEvent *) x));
30177 }
30178 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
30179 return (void *)((wxEvent *) ((wxEraseEvent *) x));
30180 }
30181 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
30182 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
30183 }
30184 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
30185 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
30186 }
30187 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
30188 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
30189 }
30190 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
30191 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
30192 }
30193 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
30194 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
30195 }
30196 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
30197 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30198 }
30199 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
30200 return (void *)((wxEvent *) ((wxPyEvent *) x));
30201 }
30202 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
30203 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
30204 }
30205 static void *_p_wxListEventTo_p_wxEvent(void *x) {
30206 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
30207 }
30208 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
30209 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30210 }
30211 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
30212 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
30213 }
30214 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
30215 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
30216 }
30217 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
30218 return (void *)((wxEvent *) ((wxIdleEvent *) x));
30219 }
30220 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
30221 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
30222 }
30223 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
30224 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
30225 }
30226 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
30227 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
30228 }
30229 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
30230 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
30231 }
30232 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
30233 return (void *)((wxEvent *) ((wxActivateEvent *) x));
30234 }
30235 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
30236 return (void *)((wxEvent *) ((wxSizeEvent *) x));
30237 }
30238 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
30239 return (void *)((wxEvent *) ((wxMoveEvent *) x));
30240 }
30241 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
30242 return (void *)((wxEvent *) ((wxPaintEvent *) x));
30243 }
30244 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
30245 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
30246 }
30247 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
30248 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
30249 }
30250 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
30251 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
30252 }
30253 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
30254 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
30255 }
30256 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
30257 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30258 }
30259 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
30260 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
30261 }
30262 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
30263 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
30264 }
30265 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
30266 return (void *)((wxEvent *) ((wxFocusEvent *) x));
30267 }
30268 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
30269 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
30270 }
30271 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
30272 return (void *)((wxEvent *) ((wxShowEvent *) x));
30273 }
30274 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
30275 return (void *)((wxEvent *) ((wxCommandEvent *) x));
30276 }
30277 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
30278 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
30279 }
30280 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
30281 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30282 }
30283 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
30284 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
30285 }
30286 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
30287 return (void *)((wxEvent *) ((wxKeyEvent *) x));
30288 }
30289 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
30290 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
30291 }
30292 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
30293 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
30294 }
30295 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
30296 return (void *)((wxItemContainer *) ((wxComboBox *) x));
30297 }
30298 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
30299 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30300 }
30301 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
30302 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
30303 }
30304 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
30305 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
30306 }
30307 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
30308 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
30309 }
30310 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
30311 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30312 }
30313 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
30314 return (void *)((wxPyListCtrl *) ((wxListView *) x));
30315 }
30316 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
30317 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30318 }
30319 static void *_p_wxListBoxTo_p_wxControl(void *x) {
30320 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
30321 }
30322 static void *_p_wxChoiceTo_p_wxControl(void *x) {
30323 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
30324 }
30325 static void *_p_wxToolBarTo_p_wxControl(void *x) {
30326 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
30327 }
30328 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
30329 return (void *)((wxControl *) ((wxStaticBitmap *) x));
30330 }
30331 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
30332 return (void *)((wxControl *) ((wxComboBox *) x));
30333 }
30334 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
30335 return (void *)((wxControl *) ((wxSpinCtrl *) x));
30336 }
30337 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
30338 return (void *)((wxControl *) ((wxStaticBox *) x));
30339 }
30340 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
30341 return (void *)((wxControl *) ((wxPyListCtrl *) x));
30342 }
30343 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
30344 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
30345 }
30346 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
30347 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30348 }
30349 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
30350 return (void *)((wxControl *) ((wxScrollBar *) x));
30351 }
30352 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
30353 return (void *)((wxControl *) ((wxBookCtrl *) x));
30354 }
30355 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
30356 return (void *)((wxControl *) ((wxRadioButton *) x));
30357 }
30358 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
30359 return (void *)((wxControl *) ((wxToggleButton *) x));
30360 }
30361 static void *_p_wxGaugeTo_p_wxControl(void *x) {
30362 return (void *)((wxControl *) ((wxGauge *) x));
30363 }
30364 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
30365 return (void *)((wxControl *) ((wxToolBarBase *) x));
30366 }
30367 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
30368 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
30369 }
30370 static void *_p_wxButtonTo_p_wxControl(void *x) {
30371 return (void *)((wxControl *) ((wxButton *) x));
30372 }
30373 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
30374 return (void *)((wxControl *) ((wxSpinButton *) x));
30375 }
30376 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
30377 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30378 }
30379 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
30380 return (void *)((wxControl *) ((wxControlWithItems *) x));
30381 }
30382 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
30383 return (void *)((wxControl *) ((wxRadioBox *) x));
30384 }
30385 static void *_p_wxNotebookTo_p_wxControl(void *x) {
30386 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
30387 }
30388 static void *_p_wxListbookTo_p_wxControl(void *x) {
30389 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
30390 }
30391 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
30392 return (void *)((wxControl *) ((wxCheckBox *) x));
30393 }
30394 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
30395 return (void *)((wxControl *) ((wxTextCtrl *) x));
30396 }
30397 static void *_p_wxListViewTo_p_wxControl(void *x) {
30398 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
30399 }
30400 static void *_p_wxSliderTo_p_wxControl(void *x) {
30401 return (void *)((wxControl *) ((wxSlider *) x));
30402 }
30403 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
30404 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
30405 }
30406 static void *_p_wxPyControlTo_p_wxControl(void *x) {
30407 return (void *)((wxControl *) ((wxPyControl *) x));
30408 }
30409 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
30410 return (void *)((wxControl *) ((wxStaticLine *) x));
30411 }
30412 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
30413 return (void *)((wxControl *) ((wxStaticText *) x));
30414 }
30415 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
30416 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
30417 }
30418 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
30419 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
30420 }
30421 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
30422 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
30423 }
30424 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
30425 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30426 }
30427 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
30428 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
30429 }
30430 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
30431 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
30432 }
30433 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
30434 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30435 }
30436 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
30437 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
30438 }
30439 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
30440 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
30441 }
30442 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
30443 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
30444 }
30445 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
30446 return (void *)((wxEvtHandler *) ((wxValidator *) x));
30447 }
30448 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
30449 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
30450 }
30451 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
30452 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
30453 }
30454 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
30455 return (void *)((wxEvtHandler *) ((wxMenu *) x));
30456 }
30457 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
30458 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
30459 }
30460 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
30461 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
30462 }
30463 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
30464 return (void *)((wxEvtHandler *) ((wxWindow *) x));
30465 }
30466 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
30467 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
30468 }
30469 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
30470 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
30471 }
30472 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
30473 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
30474 }
30475 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
30476 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
30477 }
30478 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
30479 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30480 }
30481 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
30482 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
30483 }
30484 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
30485 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
30486 }
30487 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
30488 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
30489 }
30490 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
30491 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
30492 }
30493 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
30494 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30495 }
30496 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
30497 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
30498 }
30499 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
30500 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
30501 }
30502 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
30503 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
30504 }
30505 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
30506 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
30507 }
30508 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
30509 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
30510 }
30511 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
30512 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
30513 }
30514 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
30515 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30516 }
30517 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
30518 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
30519 }
30520 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
30521 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
30522 }
30523 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
30524 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
30525 }
30526 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
30527 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
30528 }
30529 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
30530 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
30531 }
30532 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
30533 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
30534 }
30535 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
30536 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
30537 }
30538 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
30539 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
30540 }
30541 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
30542 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
30543 }
30544 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
30545 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
30546 }
30547 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
30548 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
30549 }
30550 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
30551 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
30552 }
30553 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
30554 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30555 }
30556 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
30557 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
30558 }
30559 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
30560 return (void *)((wxListBox *) ((wxCheckListBox *) x));
30561 }
30562 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
30563 return (void *)((wxBookCtrl *) ((wxListbook *) x));
30564 }
30565 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
30566 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
30567 }
30568 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
30569 return (void *)((wxButton *) ((wxBitmapButton *) x));
30570 }
30571 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
30572 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
30573 }
30574 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
30575 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
30576 }
30577 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
30578 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
30579 }
30580 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
30581 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
30582 }
30583 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
30584 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
30585 }
30586 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
30587 return (void *)((wxObject *) ((wxSizerItem *) x));
30588 }
30589 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
30590 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
30591 }
30592 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
30593 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
30594 }
30595 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
30596 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
30597 }
30598 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
30599 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30600 }
30601 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
30602 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
30603 }
30604 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
30605 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
30606 }
30607 static void *_p_wxSizerTo_p_wxObject(void *x) {
30608 return (void *)((wxObject *) ((wxSizer *) x));
30609 }
30610 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
30611 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30612 }
30613 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
30614 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
30615 }
30616 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
30617 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
30618 }
30619 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
30620 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
30621 }
30622 static void *_p_wxEventTo_p_wxObject(void *x) {
30623 return (void *)((wxObject *) ((wxEvent *) x));
30624 }
30625 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
30626 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
30627 }
30628 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
30629 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
30630 }
30631 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
30632 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
30633 }
30634 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
30635 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
30636 }
30637 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
30638 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
30639 }
30640 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
30641 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30642 }
30643 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
30644 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
30645 }
30646 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
30647 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
30648 }
30649 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
30650 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
30651 }
30652 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
30653 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
30654 }
30655 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
30656 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30657 }
30658 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
30659 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
30660 }
30661 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
30662 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
30663 }
30664 static void *_p_wxControlTo_p_wxObject(void *x) {
30665 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
30666 }
30667 static void *_p_wxPyControlTo_p_wxObject(void *x) {
30668 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
30669 }
30670 static void *_p_wxGaugeTo_p_wxObject(void *x) {
30671 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
30672 }
30673 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
30674 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
30675 }
30676 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
30677 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
30678 }
30679 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
30680 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
30681 }
30682 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
30683 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
30684 }
30685 static void *_p_wxChoiceTo_p_wxObject(void *x) {
30686 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
30687 }
30688 static void *_p_wxFSFileTo_p_wxObject(void *x) {
30689 return (void *)((wxObject *) ((wxFSFile *) x));
30690 }
30691 static void *_p_wxPySizerTo_p_wxObject(void *x) {
30692 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
30693 }
30694 static void *_p_wxListViewTo_p_wxObject(void *x) {
30695 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
30696 }
30697 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
30698 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
30699 }
30700 static void *_p_wxNotebookTo_p_wxObject(void *x) {
30701 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
30702 }
30703 static void *_p_wxPyEventTo_p_wxObject(void *x) {
30704 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
30705 }
30706 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
30707 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
30708 }
30709 static void *_p_wxListbookTo_p_wxObject(void *x) {
30710 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
30711 }
30712 static void *_p_wxShowEventTo_p_wxObject(void *x) {
30713 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
30714 }
30715 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
30716 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
30717 }
30718 static void *_p_wxSliderTo_p_wxObject(void *x) {
30719 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
30720 }
30721 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
30722 return (void *)((wxObject *) ((wxMenuItem *) x));
30723 }
30724 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
30725 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
30726 }
30727 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
30728 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
30729 }
30730 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
30731 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
30732 }
30733 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
30734 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
30735 }
30736 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
30737 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
30738 }
30739 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
30740 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
30741 }
30742 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
30743 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
30744 }
30745 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
30746 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
30747 }
30748 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
30749 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
30750 }
30751 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
30752 return (void *)((wxObject *) ((wxContextHelp *) x));
30753 }
30754 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
30755 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
30756 }
30757 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
30758 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
30759 }
30760 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
30761 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
30762 }
30763 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
30764 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
30765 }
30766 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
30767 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
30768 }
30769 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
30770 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
30771 }
30772 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
30773 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
30774 }
30775 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
30776 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
30777 }
30778 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
30779 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
30780 }
30781 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
30782 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
30783 }
30784 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
30785 return (void *)((wxObject *) ((wxImageHandler *) x));
30786 }
30787 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
30788 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
30789 }
30790 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
30791 return (void *)((wxObject *) ((wxEvtHandler *) x));
30792 }
30793 static void *_p_wxListEventTo_p_wxObject(void *x) {
30794 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
30795 }
30796 static void *_p_wxListBoxTo_p_wxObject(void *x) {
30797 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
30798 }
30799 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
30800 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30801 }
30802 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
30803 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
30804 }
30805 static void *_p_wxButtonTo_p_wxObject(void *x) {
30806 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
30807 }
30808 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
30809 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
30810 }
30811 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
30812 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
30813 }
30814 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
30815 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30816 }
30817 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
30818 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
30819 }
30820 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
30821 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
30822 }
30823 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
30824 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
30825 }
30826 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
30827 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
30828 }
30829 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
30830 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
30831 }
30832 static void *_p_wxListItemTo_p_wxObject(void *x) {
30833 return (void *)((wxObject *) ((wxListItem *) x));
30834 }
30835 static void *_p_wxImageTo_p_wxObject(void *x) {
30836 return (void *)((wxObject *) ((wxImage *) x));
30837 }
30838 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
30839 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
30840 }
30841 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
30842 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
30843 }
30844 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
30845 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
30846 }
30847 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
30848 return (void *)((wxObject *) ((wxGenericDragImage *) x));
30849 }
30850 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
30851 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
30852 }
30853 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
30854 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30855 }
30856 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
30857 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
30858 }
30859 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
30860 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30861 }
30862 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
30863 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
30864 }
30865 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
30866 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
30867 }
30868 static void *_p_wxWindowTo_p_wxObject(void *x) {
30869 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
30870 }
30871 static void *_p_wxMenuTo_p_wxObject(void *x) {
30872 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
30873 }
30874 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
30875 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
30876 }
30877 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
30878 return (void *)((wxObject *) ((wxFileSystem *) x));
30879 }
30880 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
30881 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
30882 }
30883 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
30884 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
30885 }
30886 static void *_p_wxPyAppTo_p_wxObject(void *x) {
30887 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
30888 }
30889 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
30890 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
30891 }
30892 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
30893 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
30894 }
30895 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
30896 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
30897 }
30898 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
30899 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
30900 }
30901 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
30902 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
30903 }
30904 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
30905 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
30906 }
30907 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
30908 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
30909 }
30910 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
30911 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
30912 }
30913 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
30914 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
30915 }
30916 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
30917 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
30918 }
30919 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
30920 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30921 }
30922 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
30923 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
30924 }
30925 static void *_p_wxToolBarTo_p_wxObject(void *x) {
30926 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
30927 }
30928 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
30929 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
30930 }
30931 static void *_p_wxValidatorTo_p_wxObject(void *x) {
30932 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
30933 }
30934 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
30935 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
30936 }
30937 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
30938 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
30939 }
30940 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
30941 return (void *)((wxWindow *) ((wxMenuBar *) x));
30942 }
30943 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
30944 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
30945 }
30946 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
30947 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
30948 }
30949 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
30950 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
30951 }
30952 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
30953 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
30954 }
30955 static void *_p_wxControlTo_p_wxWindow(void *x) {
30956 return (void *)((wxWindow *) ((wxControl *) x));
30957 }
30958 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
30959 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
30960 }
30961 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
30962 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30963 }
30964 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
30965 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
30966 }
30967 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
30968 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
30969 }
30970 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
30971 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
30972 }
30973 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
30974 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
30975 }
30976 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
30977 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
30978 }
30979 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
30980 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
30981 }
30982 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
30983 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
30984 }
30985 static void *_p_wxListbookTo_p_wxWindow(void *x) {
30986 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
30987 }
30988 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
30989 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
30990 }
30991 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
30992 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
30993 }
30994 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
30995 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
30996 }
30997 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
30998 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30999 }
31000 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
31001 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31002 }
31003 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
31004 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31005 }
31006 static void *_p_wxListViewTo_p_wxWindow(void *x) {
31007 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31008 }
31009 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
31010 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31011 }
31012 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
31013 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
31014 }
31015 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
31016 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
31017 }
31018 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
31019 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
31020 }
31021 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
31022 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
31023 }
31024 static void *_p_wxSliderTo_p_wxWindow(void *x) {
31025 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
31026 }
31027 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
31028 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
31029 }
31030 static void *_p_wxButtonTo_p_wxWindow(void *x) {
31031 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
31032 }
31033 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
31034 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
31035 }
31036 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
31037 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31038 }
31039 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
31040 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
31041 }
31042 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
31043 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31044 }
31045 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
31046 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31047 }
31048 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
31049 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
31050 }
31051 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
31052 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
31053 }
31054 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
31055 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
31056 }
31057 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
31058 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
31059 }
31060 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
31061 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
31062 }
31063 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
31064 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31065 }
31066 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
31067 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31068 }
31069 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
31070 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
31071 }
31072 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
31073 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
31074 }
31075 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
31076 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
31077 }
31078 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
31079 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
31080 }
31081 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
31082 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
31083 }
31084 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
31085 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
31086 }
31087 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
31088 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
31089 }
31090 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
31091 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
31092 }
31093 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
31094 return (void *)((wxControlWithItems *) ((wxChoice *) x));
31095 }
31096 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
31097 return (void *)((wxControlWithItems *) ((wxListBox *) x));
31098 }
31099 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
31100 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
31101 }
31102 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
31103 return (void *)((wxValidator *) ((wxPyValidator *) x));
31104 }
31105 static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}};
31106 static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0},{"_p_wxBookCtrlEvent"},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent},{0}};
31107 static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer},{0}};
31108 static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}};
31109 static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}};
31110 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}};
31111 static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}};
31112 static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}};
31113 static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}};
31114 static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}};
31115 static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}};
31116 static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}};
31117 static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}};
31118 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl},{"_p_wxControl"},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl},{"_p_wxListbook", _p_wxListbookTo_p_wxControl},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl},{"_p_wxListView", _p_wxListViewTo_p_wxControl},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl},{"_p_wxSlider", _p_wxSliderTo_p_wxControl},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl},{"_p_wxButton", _p_wxButtonTo_p_wxControl},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl},{0}};
31119 static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}};
31120 static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}};
31121 static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}};
31122 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
31123 static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}};
31124 static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}};
31125 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}};
31126 static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}};
31127 static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}};
31128 static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}};
31129 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
31130 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
31131 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
31132 static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}};
31133 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
31134 static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}};
31135 static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}};
31136 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}};
31137 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
31138 static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}};
31139 static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}};
31140 static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}};
31141 static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}};
31142 static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}};
31143 static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}};
31144 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
31145 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler},{0}};
31146 static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}};
31147 static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}};
31148 static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}};
31149 static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl},{"_p_wxBookCtrl"},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl},{0}};
31150 static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}};
31151 static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0},{"_p_wxButton"},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton},{0}};
31152 static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}};
31153 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
31154 static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}};
31155 static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}};
31156 static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}};
31157 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
31158 static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}};
31159 static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}};
31160 static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}};
31161 static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}};
31162 static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}};
31163 static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}};
31164 static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}};
31165 static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}};
31166 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
31167 static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}};
31168 static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}};
31169 static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}};
31170 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
31171 static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}};
31172 static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}};
31173 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxListView", _p_wxListViewTo_p_wxObject},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxListbook", _p_wxListbookTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject},{"_p_wxSlider", _p_wxSliderTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject},{"_p_wxButton", _p_wxButtonTo_p_wxObject},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject},{"_p_wxListItem", _p_wxListItemTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}};
31174 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
31175 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}};
31176 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow},{"_p_wxListView", _p_wxListViewTo_p_wxWindow},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow},{"_p_wxButton", _p_wxButtonTo_p_wxWindow},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow},{0}};
31177 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
31178 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
31179 static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}};
31180 static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}};
31181 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{0}};
31182 static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}};
31183 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems},{"_p_wxControlWithItems"},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems},{0}};
31184 static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}};
31185 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
31186 static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}};
31187 static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}};
31188 static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}};
31189
31190 static swig_type_info *swig_types_initial[] = {
31191 _swigt__p_wxTextUrlEvent,
31192 _swigt__p_wxBookCtrlEvent,
31193 _swigt__p_wxSizer,
31194 _swigt__p_wxCheckBox,
31195 _swigt__p_wxPyTreeCtrl,
31196 _swigt__p_wxEvent,
31197 _swigt__p_wxGenericDirCtrl,
31198 _swigt__p_bool,
31199 _swigt__p_wxPyTreeItemData,
31200 _swigt__p_wxItemContainer,
31201 _swigt__p_wxDirFilterListCtrl,
31202 _swigt__p_wxPyListCtrl,
31203 _swigt__p_wxStaticLine,
31204 _swigt__p_wxControl,
31205 _swigt__p_wxPyControl,
31206 _swigt__p_wxGauge,
31207 _swigt__p_wxToolBarBase,
31208 _swigt__p_wxFont,
31209 _swigt__p_wxToggleButton,
31210 _swigt__p_wxRadioButton,
31211 _swigt__p_wxChoice,
31212 _swigt__p_wxMemoryDC,
31213 _swigt__p_wxListItemAttr,
31214 _swigt__p_void,
31215 _swigt__p_int,
31216 _swigt__p_wxSize,
31217 _swigt__p_wxDC,
31218 _swigt__p_wxListView,
31219 _swigt__p_wxIcon,
31220 _swigt__p_wxTextCtrl,
31221 _swigt__p_wxNotebook,
31222 _swigt__p_wxNotifyEvent,
31223 _swigt__p_wxArrayString,
31224 _swigt__p_wxListbook,
31225 _swigt__p_wxStaticBitmap,
31226 _swigt__p_wxSlider,
31227 _swigt__p_wxStaticBox,
31228 _swigt__p_wxArrayInt,
31229 _swigt__p_wxContextHelp,
31230 _swigt__p_long,
31231 _swigt__p_wxEvtHandler,
31232 _swigt__p_wxListEvent,
31233 _swigt__p_wxListBox,
31234 _swigt__p_wxCheckListBox,
31235 _swigt__p_wxBookCtrl,
31236 _swigt__p_wxSpinButton,
31237 _swigt__p_wxButton,
31238 _swigt__p_wxBitmapButton,
31239 _swigt__p_wxRect,
31240 _swigt__p_wxContextHelpButton,
31241 _swigt__p_wxRadioBox,
31242 _swigt__p_wxScrollBar,
31243 _swigt__p_char,
31244 _swigt__p_wxTreeItemId,
31245 _swigt__p_wxComboBox,
31246 _swigt__p_wxHelpEvent,
31247 _swigt__p_wxListItem,
31248 _swigt__p_wxNotebookSizer,
31249 _swigt__p_wxSpinEvent,
31250 _swigt__p_wxGenericDragImage,
31251 _swigt__p_wxSpinCtrl,
31252 _swigt__p_wxImageList,
31253 _swigt__p_wxHelpProvider,
31254 _swigt__p_wxTextAttr,
31255 _swigt__p_wxSimpleHelpProvider,
31256 _swigt__p_wxPoint,
31257 _swigt__p_wxListbookEvent,
31258 _swigt__p_wxNotebookEvent,
31259 _swigt__p_wxObject,
31260 _swigt__p_wxCursor,
31261 _swigt__p_wxKeyEvent,
31262 _swigt__p_wxWindow,
31263 _swigt__p_wxString,
31264 _swigt__p_wxBitmap,
31265 _swigt__p_wxTreeEvent,
31266 _swigt__p_wxMouseEvent,
31267 _swigt__p_wxCommandEvent,
31268 _swigt__p_wxStaticText,
31269 _swigt__p_wxControlWithItems,
31270 _swigt__p_wxToolBarToolBase,
31271 _swigt__p_wxColour,
31272 _swigt__p_wxToolBar,
31273 _swigt__p_wxBookCtrlSizer,
31274 _swigt__p_wxValidator,
31275 0
31276 };
31277
31278
31279 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
31280
31281 static swig_const_info swig_const_table[] = {
31282 {0}};
31283
31284 #ifdef __cplusplus
31285 }
31286 #endif
31287
31288 #ifdef __cplusplus
31289 extern "C"
31290 #endif
31291 SWIGEXPORT(void) SWIG_init(void) {
31292 static PyObject *SWIG_globals = 0;
31293 static int typeinit = 0;
31294 PyObject *m, *d;
31295 int i;
31296 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
31297 m = Py_InitModule((char *) SWIG_name, SwigMethods);
31298 d = PyModule_GetDict(m);
31299
31300 if (!typeinit) {
31301 for (i = 0; swig_types_initial[i]; i++) {
31302 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
31303 }
31304 typeinit = 1;
31305 }
31306 SWIG_InstallConstants(d,swig_const_table);
31307
31308 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
31309 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
31310 PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT));
31311 PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP));
31312 PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT));
31313 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM));
31314 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT));
31315 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW));
31316 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
31317 PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE));
31318 PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE));
31319 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
31320 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED));
31321 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED));
31322 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED));
31323 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
31324 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
31325 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
31326 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL));
31327 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL));
31328 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH));
31329 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR));
31330 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
31331 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
31332 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
31333 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
31334 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
31335 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL));
31336 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL));
31337 PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY));
31338 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE));
31339 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB));
31340 PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT));
31341 PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER));
31342 PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT));
31343 PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE));
31344 PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH));
31345 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER));
31346 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD));
31347 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL));
31348 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL));
31349 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP));
31350 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP));
31351 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP));
31352 PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2));
31353 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
31354 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
31355 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
31356 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
31357 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
31358 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
31359 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
31360 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
31361 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE));
31362 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
31363 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
31364 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
31365 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
31366 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT));
31367 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
31368 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
31369 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
31370 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS));
31371 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN));
31372 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE));
31373 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT));
31374 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW));
31375 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND));
31376 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
31377 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
31378 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
31379 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
31380 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
31381 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
31382 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
31383 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL));
31384 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL));
31385 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS));
31386 PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP));
31387 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
31388 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
31389 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
31390 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
31391 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
31392 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
31393 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
31394 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH));
31395 PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP));
31396 PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT));
31397 PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT));
31398 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM));
31399 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE));
31400 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE));
31401 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON));
31402 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL));
31403 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM));
31404 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
31405 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
31406 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT));
31407 PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP));
31408 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM));
31409 PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT));
31410 PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT));
31411 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK));
31412 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
31413 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
31414 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON));
31415 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR));
31416 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL));
31417 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL));
31418 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL));
31419 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS));
31420 PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT));
31421 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE));
31422 PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS));
31423 PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT));
31424 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER));
31425 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN));
31426 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT));
31427 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT));
31428 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
31429 PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES));
31430 PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES));
31431 PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON));
31432 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON));
31433 PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST));
31434 PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT));
31435 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP));
31436 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT));
31437 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE));
31438 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL));
31439 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS));
31440 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER));
31441 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER));
31442 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL));
31443 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING));
31444 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING));
31445 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE));
31446 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN));
31447 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT));
31448 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE));
31449 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT));
31450 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE));
31451 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA));
31452 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM));
31453 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH));
31454 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT));
31455 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE));
31456 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED));
31457 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED));
31458 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED));
31459 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT));
31460 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED));
31461 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED));
31462 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE));
31463 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED));
31464 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE));
31465 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE));
31466 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW));
31467 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE));
31468 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON));
31469 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
31470 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
31471 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
31472 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT));
31473 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT));
31474 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM));
31475 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE));
31476 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL));
31477 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW));
31478 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT));
31479 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT));
31480 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT));
31481 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT));
31482 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP));
31483 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
31484 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT));
31485 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT));
31486 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE));
31487 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER));
31488 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE));
31489 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
31490 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS));
31491 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON));
31492 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL));
31493 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP));
31494 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN));
31495 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT));
31496 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT));
31497 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
31498 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
31499 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
31500 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
31501 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
31502 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
31503 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
31504 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
31505 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
31506 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
31507 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
31508 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
31509 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
31510 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
31511 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
31512 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
31513 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
31514 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
31515 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
31516 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
31517 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
31518 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
31519
31520 // Map renamed classes back to their common name for OOR
31521 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
31522
31523 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
31524 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS));
31525 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS));
31526 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES));
31527 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT));
31528 PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE));
31529 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE));
31530 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED));
31531 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
31532 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS));
31533 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT));
31534 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES));
31535 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
31536 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE));
31537 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS));
31538 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS));
31539 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS));
31540 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal));
31541 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected));
31542 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded));
31543 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded));
31544 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max));
31545 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE));
31546 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW));
31547 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE));
31548 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
31549 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON));
31550 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
31551 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
31552 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
31553 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
31554 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT));
31555 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT));
31556 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
31557 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
31558 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM));
31559 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
31560 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
31561 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
31562 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
31563 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
31564 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
31565 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
31566 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
31567 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
31568 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
31569 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
31570 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
31571 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
31572 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
31573 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
31574 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
31575 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
31576 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
31577 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
31578 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
31579
31580 // Map renamed classes back to their common name for OOR
31581 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
31582 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
31583
31584 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
31585 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY));
31586 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST));
31587 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
31588 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL));
31589 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS));
31590 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP));
31591 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
31592 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
31593 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
31594
31595 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
31596
31597 }
31598