]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126
127 /***********************************************************************
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 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
428
429 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
430 PyObject* o2;
431 PyObject* o3;
432
433 if (!target) {
434 target = o;
435 } else if (target == Py_None) {
436 Py_DECREF(Py_None);
437 target = o;
438 } else {
439 if (!PyTuple_Check(target)) {
440 o2 = target;
441 target = PyTuple_New(1);
442 PyTuple_SetItem(target, 0, o2);
443 }
444 o3 = PyTuple_New(1);
445 PyTuple_SetItem(o3, 0, o);
446
447 o2 = target;
448 target = PySequence_Concat(o2, o3);
449 Py_DECREF(o2);
450 Py_DECREF(o3);
451 }
452 return target;
453 }
454
455 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
456 self->AppendText(text);
457 }
458 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
459 return self->GetValue().Mid(from, to - from);
460 }
461 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
462 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
463 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
464 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
465 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
466
467 #include <wx/slider.h>
468
469
470 static const wxString wxPySliderNameStr(wxSliderNameStr);
471 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
472
473 #if defined(__WXMAC__) || defined(__WXX11__)
474 // implement dummy classes and such for wxMac
475
476 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
477
478 class wxToggleButton : public wxControl
479 {
480 public:
481 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
482 const wxPoint&, const wxSize&, long,
483 const wxValidator&, const wxString&)
484 { wxPyRaiseNotImplemented(); }
485
486 wxToggleButton()
487 { wxPyRaiseNotImplemented(); }
488 };
489 #endif
490
491 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
492
493 SWIGSTATIC(PyObject* )
494 SWIG_PyObj_FromUnsignedLong(unsigned long value)
495 {
496 return (value > (unsigned long)(LONG_MAX)) ?
497 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
498 }
499
500 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
501 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
502 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
503 if (udata) {
504 Py_INCREF(udata->m_obj);
505 return udata->m_obj;
506 } else {
507 Py_INCREF(Py_None);
508 return Py_None;
509 }
510 }
511 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
512 self->SetClientData(new wxPyUserData(clientData));
513 }
514 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){
515 wxPyUserData* udata = NULL;
516 if (clientData && clientData != Py_None)
517 udata = new wxPyUserData(clientData);
518 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
519 shortHelp, longHelp, udata);
520 }
521 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){
522 wxPyUserData* udata = NULL;
523 if (clientData && clientData != Py_None)
524 udata = new wxPyUserData(clientData);
525 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
526 shortHelp, longHelp, udata);
527 }
528 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
529 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
530 if (udata) {
531 Py_INCREF(udata->m_obj);
532 return udata->m_obj;
533 } else {
534 Py_INCREF(Py_None);
535 return Py_None;
536 }
537 }
538 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
539 self->SetToolClientData(id, new wxPyUserData(clientData));
540 }
541
542 #include <wx/listctrl.h>
543
544
545 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
546 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
547 // Python aware sorting function for wxPyListCtrl
548 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
549 int retval = 0;
550 PyObject* func = (PyObject*)funcPtr;
551 wxPyBeginBlockThreads();
552
553 PyObject* args = Py_BuildValue("(ii)", item1, item2);
554 PyObject* result = PyEval_CallObject(func, args);
555 Py_DECREF(args);
556 if (result) {
557 retval = PyInt_AsLong(result);
558 Py_DECREF(result);
559 }
560
561 wxPyEndBlockThreads();
562 return retval;
563 }
564
565 // C++ Version of a Python aware class
566 class wxPyListCtrl : public wxListCtrl {
567 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
568 public:
569 wxPyListCtrl() : wxListCtrl() {}
570 wxPyListCtrl(wxWindow* parent, wxWindowID id,
571 const wxPoint& pos,
572 const wxSize& size,
573 long style,
574 const wxValidator& validator,
575 const wxString& name) :
576 wxListCtrl(parent, id, pos, size, style, validator, name) {}
577
578 bool Create(wxWindow* parent, wxWindowID id,
579 const wxPoint& pos,
580 const wxSize& size,
581 long style,
582 const wxValidator& validator,
583 const wxString& name) {
584 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
585 }
586
587 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
588 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
589 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
590
591 PYPRIVATE;
592 };
593
594 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
595
596 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
597 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
598 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
599
600 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
601 wxListItem item;
602 item.SetMask( wxLIST_MASK_STATE |
603 wxLIST_MASK_TEXT |
604 wxLIST_MASK_IMAGE |
605 wxLIST_MASK_DATA |
606 wxLIST_SET_ITEM |
607 wxLIST_MASK_WIDTH |
608 wxLIST_MASK_FORMAT
609 );
610 if (self->GetColumn(col, item))
611 return new wxListItem(item);
612 else
613 return NULL;
614 }
615 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
616 wxListItem* info = new wxListItem;
617 info->m_itemId = itemId;
618 info->m_col = col;
619 info->m_mask = 0xFFFF;
620 self->GetItem(*info);
621 return info;
622 }
623 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
624 wxPoint pos;
625 self->GetItemPosition(item, pos);
626 return pos;
627 }
628 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
629 wxRect rect;
630 self->GetItemRect(item, rect, code);
631 return rect;
632 }
633 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
634 if (!PyCallable_Check(func))
635 return False;
636 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
637 }
638 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
639
640 return self;
641
642
643
644 }
645
646 #include <wx/treectrl.h>
647 #include "wx/wxPython/pytree.h"
648
649 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
650 bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){
651 if (!other) return False;
652 return *self == *other;
653 }
654 bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){
655 if (!other) return True;
656 return *self != *other;
657 }
658 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
659 // C++ version of Python aware wxTreeCtrl
660 class wxPyTreeCtrl : public wxTreeCtrl {
661 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
662 public:
663 wxPyTreeCtrl() : wxTreeCtrl() {}
664 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
665 const wxPoint& pos,
666 const wxSize& size,
667 long style,
668 const wxValidator& validator,
669 const wxString& name) :
670 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
671
672 bool Create(wxWindow *parent, wxWindowID id,
673 const wxPoint& pos,
674 const wxSize& size,
675 long style,
676 const wxValidator& validator,
677 const wxString& name) {
678 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
679 }
680
681
682 int OnCompareItems(const wxTreeItemId& item1,
683 const wxTreeItemId& item2) {
684 int rval = 0;
685 bool found;
686 wxPyBeginBlockThreads();
687 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
688 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
689 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
690 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
691 Py_DECREF(o1);
692 Py_DECREF(o2);
693 }
694 wxPyEndBlockThreads();
695 if (! found)
696 rval = wxTreeCtrl::OnCompareItems(item1, item2);
697 return rval;
698 }
699 PYPRIVATE;
700 };
701
702 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
703
704
705
706 #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong
707
708
709 SWIGSTATIC(unsigned int)
710 SWIG_PyObj_AsUnsignedInt(PyObject *obj)
711 {
712 return numeric_cast(unsigned int,
713 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX));
714 }
715
716 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
717 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
718 if (data == NULL) {
719 data = new wxPyTreeItemData();
720 data->SetId(item); // set the id
721 self->SetItemData(item, data);
722 }
723 return data;
724 }
725 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
726 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
727 if (data == NULL) {
728 data = new wxPyTreeItemData();
729 data->SetId(item); // set the id
730 self->SetItemData(item, data);
731 }
732 return data->GetData();
733 }
734 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
735 data->SetId(item); // set the id
736 self->SetItemData(item, data);
737 }
738 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
739 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
740 if (data == NULL) {
741 data = new wxPyTreeItemData(obj);
742 data->SetId(item); // set the id
743 self->SetItemData(item, data);
744 } else
745 data->SetData(obj);
746 }
747 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
748 wxPyBeginBlockThreads();
749 PyObject* rval = PyList_New(0);
750 wxArrayTreeItemIds array;
751 size_t num, x;
752 num = self->GetSelections(array);
753 for (x=0; x < num; x++) {
754 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
755 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
756 PyList_Append(rval, item);
757 }
758 wxPyEndBlockThreads();
759 return rval;
760 }
761 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
762 void* cookie = 0;
763 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
764 wxPyBeginBlockThreads();
765 PyObject* tup = PyTuple_New(2);
766 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
767 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
768 wxPyEndBlockThreads();
769 return tup;
770 }
771 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
772 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
773 wxPyBeginBlockThreads();
774 PyObject* tup = PyTuple_New(2);
775 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
776 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
777 wxPyEndBlockThreads();
778 return tup;
779 }
780 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
781 wxRect rect;
782 if (self->GetBoundingRect(item, rect, textOnly)) {
783 wxPyBeginBlockThreads();
784 wxRect* r = new wxRect(rect);
785 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
786 wxPyEndBlockThreads();
787 return val;
788 }
789 else
790 RETURN_NONE();
791 }
792 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
793 // C++ version of Python aware wxControl
794 class wxPyControl : public wxControl
795 {
796 DECLARE_DYNAMIC_CLASS(wxPyControl)
797 public:
798 wxPyControl() : wxControl() {}
799 wxPyControl(wxWindow* parent, const wxWindowID id,
800 const wxPoint& pos = wxDefaultPosition,
801 const wxSize& size = wxDefaultSize,
802 long style = 0,
803 const wxValidator& validator=wxDefaultValidator,
804 const wxString& name = wxPyControlNameStr)
805 : wxControl(parent, id, pos, size, style, validator, name) {}
806
807
808 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
809 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
810 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
811 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
812
813 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
814 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
815 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
816
817 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
818 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
819
820 DEC_PYCALLBACK__(InitDialog);
821 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
822 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
823 DEC_PYCALLBACK_BOOL_(Validate);
824
825 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
826 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
827 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
828
829 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
830 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
831
832 PYPRIVATE;
833 };
834
835 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
836
837 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
838 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
839 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
840 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
841
842 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
843 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
844 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
845
846 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
847 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
848
849 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
850 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
851 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
852 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
853
854 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
855 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
856 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
857
858 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
859 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
860
861
862
863
864 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
865
866 #include <wx/generic/dragimgg.h>
867
868 #ifdef __cplusplus
869 extern "C" {
870 #endif
871 static int _wrap_ButtonNameStr_set(PyObject *) {
872 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
873 return 1;
874 }
875
876
877 static PyObject *_wrap_ButtonNameStr_get() {
878 PyObject *pyobj;
879
880 {
881 #if wxUSE_UNICODE
882 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
883 #else
884 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
885 #endif
886 }
887 return pyobj;
888 }
889
890
891 static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
892 PyObject *resultobj;
893 wxWindow *arg1 = (wxWindow *) 0 ;
894 int arg2 ;
895 wxString *arg3 = 0 ;
896 wxPoint const &arg4_defvalue = wxDefaultPosition ;
897 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
898 wxSize const &arg5_defvalue = wxDefaultSize ;
899 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
900 long arg6 = (long) 0 ;
901 wxValidator const &arg7_defvalue = wxDefaultValidator ;
902 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
903 wxString const &arg8_defvalue = wxPyButtonNameStr ;
904 wxString *arg8 = (wxString *) &arg8_defvalue ;
905 wxButton *result;
906 bool temp3 = False ;
907 wxPoint temp4 ;
908 wxSize temp5 ;
909 bool temp8 = False ;
910 PyObject * obj0 = 0 ;
911 PyObject * obj1 = 0 ;
912 PyObject * obj2 = 0 ;
913 PyObject * obj3 = 0 ;
914 PyObject * obj4 = 0 ;
915 PyObject * obj5 = 0 ;
916 PyObject * obj6 = 0 ;
917 PyObject * obj7 = 0 ;
918 char *kwnames[] = {
919 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
920 };
921
922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
924 {
925 arg2 = (int) SWIG_PyObj_AsInt(obj1);
926 if (PyErr_Occurred()) SWIG_fail;
927 }
928 {
929 arg3 = wxString_in_helper(obj2);
930 if (arg3 == NULL) SWIG_fail;
931 temp3 = True;
932 }
933 if (obj3) {
934 {
935 arg4 = &temp4;
936 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
937 }
938 }
939 if (obj4) {
940 {
941 arg5 = &temp5;
942 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
943 }
944 }
945 if (obj5) {
946 {
947 arg6 = (long) SWIG_PyObj_AsLong(obj5);
948 if (PyErr_Occurred()) SWIG_fail;
949 }
950 }
951 if (obj6) {
952 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
953 if (arg7 == NULL) {
954 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
955 }
956 }
957 if (obj7) {
958 {
959 arg8 = wxString_in_helper(obj7);
960 if (arg8 == NULL) SWIG_fail;
961 temp8 = True;
962 }
963 }
964 {
965 PyThreadState* __tstate = wxPyBeginAllowThreads();
966 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
967
968 wxPyEndAllowThreads(__tstate);
969 if (PyErr_Occurred()) SWIG_fail;
970 }
971 {
972 resultobj = wxPyMake_wxObject(result);
973 }
974 {
975 if (temp3)
976 delete arg3;
977 }
978 {
979 if (temp8)
980 delete arg8;
981 }
982 return resultobj;
983 fail:
984 {
985 if (temp3)
986 delete arg3;
987 }
988 {
989 if (temp8)
990 delete arg8;
991 }
992 return NULL;
993 }
994
995
996 static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
997 PyObject *resultobj;
998 wxButton *result;
999 char *kwnames[] = {
1000 NULL
1001 };
1002
1003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1004 {
1005 PyThreadState* __tstate = wxPyBeginAllowThreads();
1006 result = (wxButton *)new wxButton();
1007
1008 wxPyEndAllowThreads(__tstate);
1009 if (PyErr_Occurred()) SWIG_fail;
1010 }
1011 {
1012 resultobj = wxPyMake_wxObject(result);
1013 }
1014 return resultobj;
1015 fail:
1016 return NULL;
1017 }
1018
1019
1020 static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1021 PyObject *resultobj;
1022 wxButton *arg1 = (wxButton *) 0 ;
1023 wxWindow *arg2 = (wxWindow *) 0 ;
1024 int arg3 ;
1025 wxString *arg4 = 0 ;
1026 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1027 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1028 wxSize const &arg6_defvalue = wxDefaultSize ;
1029 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1030 long arg7 = (long) 0 ;
1031 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1032 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1033 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1034 wxString *arg9 = (wxString *) &arg9_defvalue ;
1035 bool result;
1036 bool temp4 = False ;
1037 wxPoint temp5 ;
1038 wxSize temp6 ;
1039 bool temp9 = False ;
1040 PyObject * obj0 = 0 ;
1041 PyObject * obj1 = 0 ;
1042 PyObject * obj2 = 0 ;
1043 PyObject * obj3 = 0 ;
1044 PyObject * obj4 = 0 ;
1045 PyObject * obj5 = 0 ;
1046 PyObject * obj6 = 0 ;
1047 PyObject * obj7 = 0 ;
1048 PyObject * obj8 = 0 ;
1049 char *kwnames[] = {
1050 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1055 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1056 {
1057 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1058 if (PyErr_Occurred()) SWIG_fail;
1059 }
1060 {
1061 arg4 = wxString_in_helper(obj3);
1062 if (arg4 == NULL) SWIG_fail;
1063 temp4 = True;
1064 }
1065 if (obj4) {
1066 {
1067 arg5 = &temp5;
1068 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1069 }
1070 }
1071 if (obj5) {
1072 {
1073 arg6 = &temp6;
1074 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1075 }
1076 }
1077 if (obj6) {
1078 {
1079 arg7 = (long) SWIG_PyObj_AsLong(obj6);
1080 if (PyErr_Occurred()) SWIG_fail;
1081 }
1082 }
1083 if (obj7) {
1084 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1085 if (arg8 == NULL) {
1086 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1087 }
1088 }
1089 if (obj8) {
1090 {
1091 arg9 = wxString_in_helper(obj8);
1092 if (arg9 == NULL) SWIG_fail;
1093 temp9 = True;
1094 }
1095 }
1096 {
1097 PyThreadState* __tstate = wxPyBeginAllowThreads();
1098 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1099
1100 wxPyEndAllowThreads(__tstate);
1101 if (PyErr_Occurred()) SWIG_fail;
1102 }
1103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1104 {
1105 if (temp4)
1106 delete arg4;
1107 }
1108 {
1109 if (temp9)
1110 delete arg9;
1111 }
1112 return resultobj;
1113 fail:
1114 {
1115 if (temp4)
1116 delete arg4;
1117 }
1118 {
1119 if (temp9)
1120 delete arg9;
1121 }
1122 return NULL;
1123 }
1124
1125
1126 static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1127 PyObject *resultobj;
1128 wxButton *arg1 = (wxButton *) 0 ;
1129 PyObject * obj0 = 0 ;
1130 char *kwnames[] = {
1131 (char *) "self", NULL
1132 };
1133
1134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1136 {
1137 PyThreadState* __tstate = wxPyBeginAllowThreads();
1138 (arg1)->SetDefault();
1139
1140 wxPyEndAllowThreads(__tstate);
1141 if (PyErr_Occurred()) SWIG_fail;
1142 }
1143 Py_INCREF(Py_None); resultobj = Py_None;
1144 return resultobj;
1145 fail:
1146 return NULL;
1147 }
1148
1149
1150 static PyObject *_wrap_Button_SetImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1151 PyObject *resultobj;
1152 wxButton *arg1 = (wxButton *) 0 ;
1153 wxBitmap *arg2 = 0 ;
1154 PyObject * obj0 = 0 ;
1155 PyObject * obj1 = 0 ;
1156 char *kwnames[] = {
1157 (char *) "self",(char *) "bitmap", NULL
1158 };
1159
1160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Button_SetImageLabel",kwnames,&obj0,&obj1)) goto fail;
1161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1162 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1163 if (arg2 == NULL) {
1164 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1165 }
1166 {
1167 PyThreadState* __tstate = wxPyBeginAllowThreads();
1168 (arg1)->SetImageLabel((wxBitmap const &)*arg2);
1169
1170 wxPyEndAllowThreads(__tstate);
1171 if (PyErr_Occurred()) SWIG_fail;
1172 }
1173 Py_INCREF(Py_None); resultobj = Py_None;
1174 return resultobj;
1175 fail:
1176 return NULL;
1177 }
1178
1179
1180 static PyObject *_wrap_Button_SetImageMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1181 PyObject *resultobj;
1182 wxButton *arg1 = (wxButton *) 0 ;
1183 int arg2 ;
1184 int arg3 ;
1185 PyObject * obj0 = 0 ;
1186 PyObject * obj1 = 0 ;
1187 PyObject * obj2 = 0 ;
1188 char *kwnames[] = {
1189 (char *) "self",(char *) "x",(char *) "y", NULL
1190 };
1191
1192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Button_SetImageMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1194 {
1195 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1196 if (PyErr_Occurred()) SWIG_fail;
1197 }
1198 {
1199 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1200 if (PyErr_Occurred()) SWIG_fail;
1201 }
1202 {
1203 PyThreadState* __tstate = wxPyBeginAllowThreads();
1204 (arg1)->SetImageMargins(arg2,arg3);
1205
1206 wxPyEndAllowThreads(__tstate);
1207 if (PyErr_Occurred()) SWIG_fail;
1208 }
1209 Py_INCREF(Py_None); resultobj = Py_None;
1210 return resultobj;
1211 fail:
1212 return NULL;
1213 }
1214
1215
1216 static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1217 PyObject *resultobj;
1218 wxSize result;
1219 char *kwnames[] = {
1220 NULL
1221 };
1222
1223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1224 {
1225 PyThreadState* __tstate = wxPyBeginAllowThreads();
1226 result = wxButton::GetDefaultSize();
1227
1228 wxPyEndAllowThreads(__tstate);
1229 if (PyErr_Occurred()) SWIG_fail;
1230 }
1231 {
1232 wxSize * resultptr;
1233 resultptr = new wxSize((wxSize &) result);
1234 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1235 }
1236 return resultobj;
1237 fail:
1238 return NULL;
1239 }
1240
1241
1242 static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1243 PyObject *obj;
1244 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1245 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1246 Py_INCREF(obj);
1247 return Py_BuildValue((char *)"");
1248 }
1249 static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1250 PyObject *resultobj;
1251 wxWindow *arg1 = (wxWindow *) 0 ;
1252 int arg2 ;
1253 wxBitmap *arg3 = 0 ;
1254 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1255 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1256 wxSize const &arg5_defvalue = wxDefaultSize ;
1257 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1258 long arg6 = (long) wxBU_AUTODRAW ;
1259 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1260 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1261 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1262 wxString *arg8 = (wxString *) &arg8_defvalue ;
1263 wxBitmapButton *result;
1264 wxPoint temp4 ;
1265 wxSize temp5 ;
1266 bool temp8 = False ;
1267 PyObject * obj0 = 0 ;
1268 PyObject * obj1 = 0 ;
1269 PyObject * obj2 = 0 ;
1270 PyObject * obj3 = 0 ;
1271 PyObject * obj4 = 0 ;
1272 PyObject * obj5 = 0 ;
1273 PyObject * obj6 = 0 ;
1274 PyObject * obj7 = 0 ;
1275 char *kwnames[] = {
1276 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1277 };
1278
1279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1281 {
1282 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1283 if (PyErr_Occurred()) SWIG_fail;
1284 }
1285 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1286 if (arg3 == NULL) {
1287 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1288 }
1289 if (obj3) {
1290 {
1291 arg4 = &temp4;
1292 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1293 }
1294 }
1295 if (obj4) {
1296 {
1297 arg5 = &temp5;
1298 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1299 }
1300 }
1301 if (obj5) {
1302 {
1303 arg6 = (long) SWIG_PyObj_AsLong(obj5);
1304 if (PyErr_Occurred()) SWIG_fail;
1305 }
1306 }
1307 if (obj6) {
1308 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1309 if (arg7 == NULL) {
1310 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1311 }
1312 }
1313 if (obj7) {
1314 {
1315 arg8 = wxString_in_helper(obj7);
1316 if (arg8 == NULL) SWIG_fail;
1317 temp8 = True;
1318 }
1319 }
1320 {
1321 PyThreadState* __tstate = wxPyBeginAllowThreads();
1322 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1323
1324 wxPyEndAllowThreads(__tstate);
1325 if (PyErr_Occurred()) SWIG_fail;
1326 }
1327 {
1328 resultobj = wxPyMake_wxObject(result);
1329 }
1330 {
1331 if (temp8)
1332 delete arg8;
1333 }
1334 return resultobj;
1335 fail:
1336 {
1337 if (temp8)
1338 delete arg8;
1339 }
1340 return NULL;
1341 }
1342
1343
1344 static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1345 PyObject *resultobj;
1346 wxBitmapButton *result;
1347 char *kwnames[] = {
1348 NULL
1349 };
1350
1351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1352 {
1353 PyThreadState* __tstate = wxPyBeginAllowThreads();
1354 result = (wxBitmapButton *)new wxBitmapButton();
1355
1356 wxPyEndAllowThreads(__tstate);
1357 if (PyErr_Occurred()) SWIG_fail;
1358 }
1359 {
1360 resultobj = wxPyMake_wxObject(result);
1361 }
1362 return resultobj;
1363 fail:
1364 return NULL;
1365 }
1366
1367
1368 static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1369 PyObject *resultobj;
1370 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1371 wxWindow *arg2 = (wxWindow *) 0 ;
1372 int arg3 ;
1373 wxBitmap *arg4 = 0 ;
1374 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1375 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1376 wxSize const &arg6_defvalue = wxDefaultSize ;
1377 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1378 long arg7 = (long) wxBU_AUTODRAW ;
1379 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1380 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1381 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1382 wxString *arg9 = (wxString *) &arg9_defvalue ;
1383 bool result;
1384 wxPoint temp5 ;
1385 wxSize temp6 ;
1386 bool temp9 = False ;
1387 PyObject * obj0 = 0 ;
1388 PyObject * obj1 = 0 ;
1389 PyObject * obj2 = 0 ;
1390 PyObject * obj3 = 0 ;
1391 PyObject * obj4 = 0 ;
1392 PyObject * obj5 = 0 ;
1393 PyObject * obj6 = 0 ;
1394 PyObject * obj7 = 0 ;
1395 PyObject * obj8 = 0 ;
1396 char *kwnames[] = {
1397 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1398 };
1399
1400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1402 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1403 {
1404 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
1407 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1408 if (arg4 == NULL) {
1409 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1410 }
1411 if (obj4) {
1412 {
1413 arg5 = &temp5;
1414 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1415 }
1416 }
1417 if (obj5) {
1418 {
1419 arg6 = &temp6;
1420 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1421 }
1422 }
1423 if (obj6) {
1424 {
1425 arg7 = (long) SWIG_PyObj_AsLong(obj6);
1426 if (PyErr_Occurred()) SWIG_fail;
1427 }
1428 }
1429 if (obj7) {
1430 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1431 if (arg8 == NULL) {
1432 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1433 }
1434 }
1435 if (obj8) {
1436 {
1437 arg9 = wxString_in_helper(obj8);
1438 if (arg9 == NULL) SWIG_fail;
1439 temp9 = True;
1440 }
1441 }
1442 {
1443 PyThreadState* __tstate = wxPyBeginAllowThreads();
1444 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1445
1446 wxPyEndAllowThreads(__tstate);
1447 if (PyErr_Occurred()) SWIG_fail;
1448 }
1449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1450 {
1451 if (temp9)
1452 delete arg9;
1453 }
1454 return resultobj;
1455 fail:
1456 {
1457 if (temp9)
1458 delete arg9;
1459 }
1460 return NULL;
1461 }
1462
1463
1464 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1465 PyObject *resultobj;
1466 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1467 wxBitmap result;
1468 PyObject * obj0 = 0 ;
1469 char *kwnames[] = {
1470 (char *) "self", NULL
1471 };
1472
1473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1475 {
1476 PyThreadState* __tstate = wxPyBeginAllowThreads();
1477 result = (arg1)->GetBitmapLabel();
1478
1479 wxPyEndAllowThreads(__tstate);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 }
1482 {
1483 wxBitmap * resultptr;
1484 resultptr = new wxBitmap((wxBitmap &) result);
1485 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
1486 }
1487 return resultobj;
1488 fail:
1489 return NULL;
1490 }
1491
1492
1493 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1494 PyObject *resultobj;
1495 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1496 wxBitmap result;
1497 PyObject * obj0 = 0 ;
1498 char *kwnames[] = {
1499 (char *) "self", NULL
1500 };
1501
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1504 {
1505 PyThreadState* __tstate = wxPyBeginAllowThreads();
1506 result = (arg1)->GetBitmapDisabled();
1507
1508 wxPyEndAllowThreads(__tstate);
1509 if (PyErr_Occurred()) SWIG_fail;
1510 }
1511 {
1512 wxBitmap * resultptr;
1513 resultptr = new wxBitmap((wxBitmap &) result);
1514 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
1515 }
1516 return resultobj;
1517 fail:
1518 return NULL;
1519 }
1520
1521
1522 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1523 PyObject *resultobj;
1524 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1525 wxBitmap result;
1526 PyObject * obj0 = 0 ;
1527 char *kwnames[] = {
1528 (char *) "self", NULL
1529 };
1530
1531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1533 {
1534 PyThreadState* __tstate = wxPyBeginAllowThreads();
1535 result = (arg1)->GetBitmapFocus();
1536
1537 wxPyEndAllowThreads(__tstate);
1538 if (PyErr_Occurred()) SWIG_fail;
1539 }
1540 {
1541 wxBitmap * resultptr;
1542 resultptr = new wxBitmap((wxBitmap &) result);
1543 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
1544 }
1545 return resultobj;
1546 fail:
1547 return NULL;
1548 }
1549
1550
1551 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1552 PyObject *resultobj;
1553 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1554 wxBitmap result;
1555 PyObject * obj0 = 0 ;
1556 char *kwnames[] = {
1557 (char *) "self", NULL
1558 };
1559
1560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1562 {
1563 PyThreadState* __tstate = wxPyBeginAllowThreads();
1564 result = (arg1)->GetBitmapSelected();
1565
1566 wxPyEndAllowThreads(__tstate);
1567 if (PyErr_Occurred()) SWIG_fail;
1568 }
1569 {
1570 wxBitmap * resultptr;
1571 resultptr = new wxBitmap((wxBitmap &) result);
1572 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
1573 }
1574 return resultobj;
1575 fail:
1576 return NULL;
1577 }
1578
1579
1580 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1581 PyObject *resultobj;
1582 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1583 wxBitmap *arg2 = 0 ;
1584 PyObject * obj0 = 0 ;
1585 PyObject * obj1 = 0 ;
1586 char *kwnames[] = {
1587 (char *) "self",(char *) "bitmap", NULL
1588 };
1589
1590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1592 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1593 if (arg2 == NULL) {
1594 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1595 }
1596 {
1597 PyThreadState* __tstate = wxPyBeginAllowThreads();
1598 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1599
1600 wxPyEndAllowThreads(__tstate);
1601 if (PyErr_Occurred()) SWIG_fail;
1602 }
1603 Py_INCREF(Py_None); resultobj = Py_None;
1604 return resultobj;
1605 fail:
1606 return NULL;
1607 }
1608
1609
1610 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1611 PyObject *resultobj;
1612 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1613 wxBitmap *arg2 = 0 ;
1614 PyObject * obj0 = 0 ;
1615 PyObject * obj1 = 0 ;
1616 char *kwnames[] = {
1617 (char *) "self",(char *) "bitmap", NULL
1618 };
1619
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1622 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1623 if (arg2 == NULL) {
1624 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1625 }
1626 {
1627 PyThreadState* __tstate = wxPyBeginAllowThreads();
1628 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1629
1630 wxPyEndAllowThreads(__tstate);
1631 if (PyErr_Occurred()) SWIG_fail;
1632 }
1633 Py_INCREF(Py_None); resultobj = Py_None;
1634 return resultobj;
1635 fail:
1636 return NULL;
1637 }
1638
1639
1640 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1641 PyObject *resultobj;
1642 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1643 wxBitmap *arg2 = 0 ;
1644 PyObject * obj0 = 0 ;
1645 PyObject * obj1 = 0 ;
1646 char *kwnames[] = {
1647 (char *) "self",(char *) "bitmap", NULL
1648 };
1649
1650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1652 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1653 if (arg2 == NULL) {
1654 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1655 }
1656 {
1657 PyThreadState* __tstate = wxPyBeginAllowThreads();
1658 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1659
1660 wxPyEndAllowThreads(__tstate);
1661 if (PyErr_Occurred()) SWIG_fail;
1662 }
1663 Py_INCREF(Py_None); resultobj = Py_None;
1664 return resultobj;
1665 fail:
1666 return NULL;
1667 }
1668
1669
1670 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1671 PyObject *resultobj;
1672 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1673 wxBitmap *arg2 = 0 ;
1674 PyObject * obj0 = 0 ;
1675 PyObject * obj1 = 0 ;
1676 char *kwnames[] = {
1677 (char *) "self",(char *) "bitmap", NULL
1678 };
1679
1680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1682 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1683 if (arg2 == NULL) {
1684 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1685 }
1686 {
1687 PyThreadState* __tstate = wxPyBeginAllowThreads();
1688 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1689
1690 wxPyEndAllowThreads(__tstate);
1691 if (PyErr_Occurred()) SWIG_fail;
1692 }
1693 Py_INCREF(Py_None); resultobj = Py_None;
1694 return resultobj;
1695 fail:
1696 return NULL;
1697 }
1698
1699
1700 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1701 PyObject *resultobj;
1702 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1703 int arg2 ;
1704 int arg3 ;
1705 PyObject * obj0 = 0 ;
1706 PyObject * obj1 = 0 ;
1707 PyObject * obj2 = 0 ;
1708 char *kwnames[] = {
1709 (char *) "self",(char *) "x",(char *) "y", NULL
1710 };
1711
1712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1714 {
1715 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 }
1718 {
1719 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1720 if (PyErr_Occurred()) SWIG_fail;
1721 }
1722 {
1723 PyThreadState* __tstate = wxPyBeginAllowThreads();
1724 (arg1)->SetMargins(arg2,arg3);
1725
1726 wxPyEndAllowThreads(__tstate);
1727 if (PyErr_Occurred()) SWIG_fail;
1728 }
1729 Py_INCREF(Py_None); resultobj = Py_None;
1730 return resultobj;
1731 fail:
1732 return NULL;
1733 }
1734
1735
1736 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1737 PyObject *resultobj;
1738 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1739 int result;
1740 PyObject * obj0 = 0 ;
1741 char *kwnames[] = {
1742 (char *) "self", NULL
1743 };
1744
1745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1747 {
1748 PyThreadState* __tstate = wxPyBeginAllowThreads();
1749 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1750
1751 wxPyEndAllowThreads(__tstate);
1752 if (PyErr_Occurred()) SWIG_fail;
1753 }
1754 resultobj = SWIG_PyObj_FromInt((int)result);
1755 return resultobj;
1756 fail:
1757 return NULL;
1758 }
1759
1760
1761 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1762 PyObject *resultobj;
1763 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1764 int result;
1765 PyObject * obj0 = 0 ;
1766 char *kwnames[] = {
1767 (char *) "self", NULL
1768 };
1769
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1772 {
1773 PyThreadState* __tstate = wxPyBeginAllowThreads();
1774 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1775
1776 wxPyEndAllowThreads(__tstate);
1777 if (PyErr_Occurred()) SWIG_fail;
1778 }
1779 resultobj = SWIG_PyObj_FromInt((int)result);
1780 return resultobj;
1781 fail:
1782 return NULL;
1783 }
1784
1785
1786 static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1787 PyObject *obj;
1788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1789 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1790 Py_INCREF(obj);
1791 return Py_BuildValue((char *)"");
1792 }
1793 static int _wrap_CheckBoxNameStr_set(PyObject *) {
1794 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1795 return 1;
1796 }
1797
1798
1799 static PyObject *_wrap_CheckBoxNameStr_get() {
1800 PyObject *pyobj;
1801
1802 {
1803 #if wxUSE_UNICODE
1804 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1805 #else
1806 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1807 #endif
1808 }
1809 return pyobj;
1810 }
1811
1812
1813 static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject *resultobj;
1815 wxWindow *arg1 = (wxWindow *) 0 ;
1816 int arg2 ;
1817 wxString *arg3 = 0 ;
1818 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1819 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1820 wxSize const &arg5_defvalue = wxDefaultSize ;
1821 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1822 long arg6 = (long) 0 ;
1823 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1824 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1825 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1826 wxString *arg8 = (wxString *) &arg8_defvalue ;
1827 wxCheckBox *result;
1828 bool temp3 = False ;
1829 wxPoint temp4 ;
1830 wxSize temp5 ;
1831 bool temp8 = False ;
1832 PyObject * obj0 = 0 ;
1833 PyObject * obj1 = 0 ;
1834 PyObject * obj2 = 0 ;
1835 PyObject * obj3 = 0 ;
1836 PyObject * obj4 = 0 ;
1837 PyObject * obj5 = 0 ;
1838 PyObject * obj6 = 0 ;
1839 PyObject * obj7 = 0 ;
1840 char *kwnames[] = {
1841 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1842 };
1843
1844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1846 {
1847 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1848 if (PyErr_Occurred()) SWIG_fail;
1849 }
1850 {
1851 arg3 = wxString_in_helper(obj2);
1852 if (arg3 == NULL) SWIG_fail;
1853 temp3 = True;
1854 }
1855 if (obj3) {
1856 {
1857 arg4 = &temp4;
1858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1859 }
1860 }
1861 if (obj4) {
1862 {
1863 arg5 = &temp5;
1864 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1865 }
1866 }
1867 if (obj5) {
1868 {
1869 arg6 = (long) SWIG_PyObj_AsLong(obj5);
1870 if (PyErr_Occurred()) SWIG_fail;
1871 }
1872 }
1873 if (obj6) {
1874 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1875 if (arg7 == NULL) {
1876 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1877 }
1878 }
1879 if (obj7) {
1880 {
1881 arg8 = wxString_in_helper(obj7);
1882 if (arg8 == NULL) SWIG_fail;
1883 temp8 = True;
1884 }
1885 }
1886 {
1887 PyThreadState* __tstate = wxPyBeginAllowThreads();
1888 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1889
1890 wxPyEndAllowThreads(__tstate);
1891 if (PyErr_Occurred()) SWIG_fail;
1892 }
1893 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1);
1894 {
1895 if (temp3)
1896 delete arg3;
1897 }
1898 {
1899 if (temp8)
1900 delete arg8;
1901 }
1902 return resultobj;
1903 fail:
1904 {
1905 if (temp3)
1906 delete arg3;
1907 }
1908 {
1909 if (temp8)
1910 delete arg8;
1911 }
1912 return NULL;
1913 }
1914
1915
1916 static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1917 PyObject *resultobj;
1918 wxCheckBox *result;
1919 char *kwnames[] = {
1920 NULL
1921 };
1922
1923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 result = (wxCheckBox *)new wxCheckBox();
1927
1928 wxPyEndAllowThreads(__tstate);
1929 if (PyErr_Occurred()) SWIG_fail;
1930 }
1931 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1);
1932 return resultobj;
1933 fail:
1934 return NULL;
1935 }
1936
1937
1938 static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1939 PyObject *resultobj;
1940 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
1941 wxWindow *arg2 = (wxWindow *) 0 ;
1942 int arg3 ;
1943 wxString *arg4 = 0 ;
1944 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1945 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1946 wxSize const &arg6_defvalue = wxDefaultSize ;
1947 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1948 long arg7 = (long) 0 ;
1949 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1950 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1951 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
1952 wxString *arg9 = (wxString *) &arg9_defvalue ;
1953 bool result;
1954 bool temp4 = False ;
1955 wxPoint temp5 ;
1956 wxSize temp6 ;
1957 bool temp9 = False ;
1958 PyObject * obj0 = 0 ;
1959 PyObject * obj1 = 0 ;
1960 PyObject * obj2 = 0 ;
1961 PyObject * obj3 = 0 ;
1962 PyObject * obj4 = 0 ;
1963 PyObject * obj5 = 0 ;
1964 PyObject * obj6 = 0 ;
1965 PyObject * obj7 = 0 ;
1966 PyObject * obj8 = 0 ;
1967 char *kwnames[] = {
1968 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1969 };
1970
1971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1973 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1974 {
1975 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 {
1979 arg4 = wxString_in_helper(obj3);
1980 if (arg4 == NULL) SWIG_fail;
1981 temp4 = True;
1982 }
1983 if (obj4) {
1984 {
1985 arg5 = &temp5;
1986 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1987 }
1988 }
1989 if (obj5) {
1990 {
1991 arg6 = &temp6;
1992 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1993 }
1994 }
1995 if (obj6) {
1996 {
1997 arg7 = (long) SWIG_PyObj_AsLong(obj6);
1998 if (PyErr_Occurred()) SWIG_fail;
1999 }
2000 }
2001 if (obj7) {
2002 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2003 if (arg8 == NULL) {
2004 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2005 }
2006 }
2007 if (obj8) {
2008 {
2009 arg9 = wxString_in_helper(obj8);
2010 if (arg9 == NULL) SWIG_fail;
2011 temp9 = True;
2012 }
2013 }
2014 {
2015 PyThreadState* __tstate = wxPyBeginAllowThreads();
2016 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2017
2018 wxPyEndAllowThreads(__tstate);
2019 if (PyErr_Occurred()) SWIG_fail;
2020 }
2021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2022 {
2023 if (temp4)
2024 delete arg4;
2025 }
2026 {
2027 if (temp9)
2028 delete arg9;
2029 }
2030 return resultobj;
2031 fail:
2032 {
2033 if (temp4)
2034 delete arg4;
2035 }
2036 {
2037 if (temp9)
2038 delete arg9;
2039 }
2040 return NULL;
2041 }
2042
2043
2044 static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2045 PyObject *resultobj;
2046 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2047 bool result;
2048 PyObject * obj0 = 0 ;
2049 char *kwnames[] = {
2050 (char *) "self", NULL
2051 };
2052
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2055 {
2056 PyThreadState* __tstate = wxPyBeginAllowThreads();
2057 result = (bool)(arg1)->GetValue();
2058
2059 wxPyEndAllowThreads(__tstate);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 }
2062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2063 return resultobj;
2064 fail:
2065 return NULL;
2066 }
2067
2068
2069 static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2070 PyObject *resultobj;
2071 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2072 bool result;
2073 PyObject * obj0 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 result = (bool)(arg1)->IsChecked();
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2088 return resultobj;
2089 fail:
2090 return NULL;
2091 }
2092
2093
2094 static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2095 PyObject *resultobj;
2096 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2097 bool arg2 ;
2098 PyObject * obj0 = 0 ;
2099 PyObject * obj1 = 0 ;
2100 char *kwnames[] = {
2101 (char *) "self",(char *) "state", NULL
2102 };
2103
2104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2106 {
2107 arg2 = (bool const) SWIG_PyObj_AsBool(obj1);
2108 if (PyErr_Occurred()) SWIG_fail;
2109 }
2110 {
2111 PyThreadState* __tstate = wxPyBeginAllowThreads();
2112 (arg1)->SetValue(arg2);
2113
2114 wxPyEndAllowThreads(__tstate);
2115 if (PyErr_Occurred()) SWIG_fail;
2116 }
2117 Py_INCREF(Py_None); resultobj = Py_None;
2118 return resultobj;
2119 fail:
2120 return NULL;
2121 }
2122
2123
2124 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2125 PyObject *resultobj;
2126 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2127 int result;
2128 PyObject * obj0 = 0 ;
2129 char *kwnames[] = {
2130 (char *) "self", NULL
2131 };
2132
2133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2135 {
2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
2137 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2138
2139 wxPyEndAllowThreads(__tstate);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 }
2142 resultobj = SWIG_PyObj_FromInt((int)result);
2143 return resultobj;
2144 fail:
2145 return NULL;
2146 }
2147
2148
2149 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2150 PyObject *resultobj;
2151 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2152 int arg2 ;
2153 PyObject * obj0 = 0 ;
2154 PyObject * obj1 = 0 ;
2155 char *kwnames[] = {
2156 (char *) "self",(char *) "state", NULL
2157 };
2158
2159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2161 {
2162 arg2 = (wxCheckBoxState) SWIG_PyObj_AsInt(obj1);
2163 if (PyErr_Occurred()) SWIG_fail;
2164 }
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 Py_INCREF(Py_None); resultobj = Py_None;
2173 return resultobj;
2174 fail:
2175 return NULL;
2176 }
2177
2178
2179 static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2180 PyObject *resultobj;
2181 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2182 bool result;
2183 PyObject * obj0 = 0 ;
2184 char *kwnames[] = {
2185 (char *) "self", NULL
2186 };
2187
2188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2190 {
2191 PyThreadState* __tstate = wxPyBeginAllowThreads();
2192 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2193
2194 wxPyEndAllowThreads(__tstate);
2195 if (PyErr_Occurred()) SWIG_fail;
2196 }
2197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2198 return resultobj;
2199 fail:
2200 return NULL;
2201 }
2202
2203
2204 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2205 PyObject *resultobj;
2206 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2207 bool result;
2208 PyObject * obj0 = 0 ;
2209 char *kwnames[] = {
2210 (char *) "self", NULL
2211 };
2212
2213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2215 {
2216 PyThreadState* __tstate = wxPyBeginAllowThreads();
2217 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2218
2219 wxPyEndAllowThreads(__tstate);
2220 if (PyErr_Occurred()) SWIG_fail;
2221 }
2222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2223 return resultobj;
2224 fail:
2225 return NULL;
2226 }
2227
2228
2229 static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2230 PyObject *obj;
2231 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2232 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2233 Py_INCREF(obj);
2234 return Py_BuildValue((char *)"");
2235 }
2236 static int _wrap_ChoiceNameStr_set(PyObject *) {
2237 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2238 return 1;
2239 }
2240
2241
2242 static PyObject *_wrap_ChoiceNameStr_get() {
2243 PyObject *pyobj;
2244
2245 {
2246 #if wxUSE_UNICODE
2247 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2248 #else
2249 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2250 #endif
2251 }
2252 return pyobj;
2253 }
2254
2255
2256 static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2257 PyObject *resultobj;
2258 wxWindow *arg1 = (wxWindow *) 0 ;
2259 int arg2 ;
2260 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2261 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2262 wxSize const &arg4_defvalue = wxDefaultSize ;
2263 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2264 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2265 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2266 long arg6 = (long) 0 ;
2267 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2268 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2269 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2270 wxString *arg8 = (wxString *) &arg8_defvalue ;
2271 wxChoice *result;
2272 wxPoint temp3 ;
2273 wxSize temp4 ;
2274 bool temp5 = False ;
2275 bool temp8 = False ;
2276 PyObject * obj0 = 0 ;
2277 PyObject * obj1 = 0 ;
2278 PyObject * obj2 = 0 ;
2279 PyObject * obj3 = 0 ;
2280 PyObject * obj4 = 0 ;
2281 PyObject * obj5 = 0 ;
2282 PyObject * obj6 = 0 ;
2283 PyObject * obj7 = 0 ;
2284 char *kwnames[] = {
2285 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2290 {
2291 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2292 if (PyErr_Occurred()) SWIG_fail;
2293 }
2294 if (obj2) {
2295 {
2296 arg3 = &temp3;
2297 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2298 }
2299 }
2300 if (obj3) {
2301 {
2302 arg4 = &temp4;
2303 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2304 }
2305 }
2306 if (obj4) {
2307 {
2308 if (! PySequence_Check(obj4)) {
2309 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2310 SWIG_fail;
2311 }
2312 arg5 = new wxArrayString;
2313 temp5 = True;
2314 int i, len=PySequence_Length(obj4);
2315 for (i=0; i<len; i++) {
2316 PyObject* item = PySequence_GetItem(obj4, i);
2317 #if wxUSE_UNICODE
2318 PyObject* str = PyObject_Unicode(item);
2319 #else
2320 PyObject* str = PyObject_Str(item);
2321 #endif
2322 arg5->Add(Py2wxString(str));
2323 Py_DECREF(item);
2324 Py_DECREF(str);
2325 }
2326 }
2327 }
2328 if (obj5) {
2329 {
2330 arg6 = (long) SWIG_PyObj_AsLong(obj5);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 }
2333 }
2334 if (obj6) {
2335 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2336 if (arg7 == NULL) {
2337 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2338 }
2339 }
2340 if (obj7) {
2341 {
2342 arg8 = wxString_in_helper(obj7);
2343 if (arg8 == NULL) SWIG_fail;
2344 temp8 = True;
2345 }
2346 }
2347 {
2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
2349 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2350
2351 wxPyEndAllowThreads(__tstate);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
2354 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1);
2355 {
2356 if (temp5) delete arg5;
2357 }
2358 {
2359 if (temp8)
2360 delete arg8;
2361 }
2362 return resultobj;
2363 fail:
2364 {
2365 if (temp5) delete arg5;
2366 }
2367 {
2368 if (temp8)
2369 delete arg8;
2370 }
2371 return NULL;
2372 }
2373
2374
2375 static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2376 PyObject *resultobj;
2377 wxChoice *result;
2378 char *kwnames[] = {
2379 NULL
2380 };
2381
2382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2383 {
2384 PyThreadState* __tstate = wxPyBeginAllowThreads();
2385 result = (wxChoice *)new wxChoice();
2386
2387 wxPyEndAllowThreads(__tstate);
2388 if (PyErr_Occurred()) SWIG_fail;
2389 }
2390 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1);
2391 return resultobj;
2392 fail:
2393 return NULL;
2394 }
2395
2396
2397 static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2398 PyObject *resultobj;
2399 wxChoice *arg1 = (wxChoice *) 0 ;
2400 wxWindow *arg2 = (wxWindow *) 0 ;
2401 int arg3 ;
2402 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2403 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2404 wxSize const &arg5_defvalue = wxDefaultSize ;
2405 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2406 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2407 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2408 long arg7 = (long) 0 ;
2409 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2410 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2411 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2412 wxString *arg9 = (wxString *) &arg9_defvalue ;
2413 bool result;
2414 wxPoint temp4 ;
2415 wxSize temp5 ;
2416 bool temp6 = False ;
2417 bool temp9 = False ;
2418 PyObject * obj0 = 0 ;
2419 PyObject * obj1 = 0 ;
2420 PyObject * obj2 = 0 ;
2421 PyObject * obj3 = 0 ;
2422 PyObject * obj4 = 0 ;
2423 PyObject * obj5 = 0 ;
2424 PyObject * obj6 = 0 ;
2425 PyObject * obj7 = 0 ;
2426 PyObject * obj8 = 0 ;
2427 char *kwnames[] = {
2428 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2429 };
2430
2431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2433 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2434 {
2435 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2436 if (PyErr_Occurred()) SWIG_fail;
2437 }
2438 if (obj3) {
2439 {
2440 arg4 = &temp4;
2441 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2442 }
2443 }
2444 if (obj4) {
2445 {
2446 arg5 = &temp5;
2447 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2448 }
2449 }
2450 if (obj5) {
2451 {
2452 if (! PySequence_Check(obj5)) {
2453 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2454 SWIG_fail;
2455 }
2456 arg6 = new wxArrayString;
2457 temp6 = True;
2458 int i, len=PySequence_Length(obj5);
2459 for (i=0; i<len; i++) {
2460 PyObject* item = PySequence_GetItem(obj5, i);
2461 #if wxUSE_UNICODE
2462 PyObject* str = PyObject_Unicode(item);
2463 #else
2464 PyObject* str = PyObject_Str(item);
2465 #endif
2466 arg6->Add(Py2wxString(str));
2467 Py_DECREF(item);
2468 Py_DECREF(str);
2469 }
2470 }
2471 }
2472 if (obj6) {
2473 {
2474 arg7 = (long) SWIG_PyObj_AsLong(obj6);
2475 if (PyErr_Occurred()) SWIG_fail;
2476 }
2477 }
2478 if (obj7) {
2479 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2480 if (arg8 == NULL) {
2481 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2482 }
2483 }
2484 if (obj8) {
2485 {
2486 arg9 = wxString_in_helper(obj8);
2487 if (arg9 == NULL) SWIG_fail;
2488 temp9 = True;
2489 }
2490 }
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
2498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2499 {
2500 if (temp6) delete arg6;
2501 }
2502 {
2503 if (temp9)
2504 delete arg9;
2505 }
2506 return resultobj;
2507 fail:
2508 {
2509 if (temp6) delete arg6;
2510 }
2511 {
2512 if (temp9)
2513 delete arg9;
2514 }
2515 return NULL;
2516 }
2517
2518
2519 static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
2520 PyObject *resultobj;
2521 wxChoice *arg1 = (wxChoice *) 0 ;
2522 int result;
2523 PyObject * obj0 = 0 ;
2524 char *kwnames[] = {
2525 (char *) "self", NULL
2526 };
2527
2528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail;
2529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2530 {
2531 PyThreadState* __tstate = wxPyBeginAllowThreads();
2532 result = (int)(arg1)->GetColumns();
2533
2534 wxPyEndAllowThreads(__tstate);
2535 if (PyErr_Occurred()) SWIG_fail;
2536 }
2537 resultobj = SWIG_PyObj_FromInt((int)result);
2538 return resultobj;
2539 fail:
2540 return NULL;
2541 }
2542
2543
2544 static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
2545 PyObject *resultobj;
2546 wxChoice *arg1 = (wxChoice *) 0 ;
2547 int arg2 = (int) (int)1 ;
2548 PyObject * obj0 = 0 ;
2549 PyObject * obj1 = 0 ;
2550 char *kwnames[] = {
2551 (char *) "self",(char *) "n", NULL
2552 };
2553
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Choice_SetColumns",kwnames,&obj0,&obj1)) goto fail;
2555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2556 if (obj1) {
2557 {
2558 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
2559 if (PyErr_Occurred()) SWIG_fail;
2560 }
2561 }
2562 {
2563 PyThreadState* __tstate = wxPyBeginAllowThreads();
2564 (arg1)->SetColumns(arg2);
2565
2566 wxPyEndAllowThreads(__tstate);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 Py_INCREF(Py_None); resultobj = Py_None;
2570 return resultobj;
2571 fail:
2572 return NULL;
2573 }
2574
2575
2576 static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2577 PyObject *resultobj;
2578 wxChoice *arg1 = (wxChoice *) 0 ;
2579 int arg2 ;
2580 PyObject * obj0 = 0 ;
2581 PyObject * obj1 = 0 ;
2582 char *kwnames[] = {
2583 (char *) "self",(char *) "n", NULL
2584 };
2585
2586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2588 {
2589 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
2590 if (PyErr_Occurred()) SWIG_fail;
2591 }
2592 {
2593 PyThreadState* __tstate = wxPyBeginAllowThreads();
2594 (arg1)->SetSelection(arg2);
2595
2596 wxPyEndAllowThreads(__tstate);
2597 if (PyErr_Occurred()) SWIG_fail;
2598 }
2599 Py_INCREF(Py_None); resultobj = Py_None;
2600 return resultobj;
2601 fail:
2602 return NULL;
2603 }
2604
2605
2606 static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2607 PyObject *resultobj;
2608 wxChoice *arg1 = (wxChoice *) 0 ;
2609 wxString *arg2 = 0 ;
2610 bool temp2 = False ;
2611 PyObject * obj0 = 0 ;
2612 PyObject * obj1 = 0 ;
2613 char *kwnames[] = {
2614 (char *) "self",(char *) "string", NULL
2615 };
2616
2617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2619 {
2620 arg2 = wxString_in_helper(obj1);
2621 if (arg2 == NULL) SWIG_fail;
2622 temp2 = True;
2623 }
2624 {
2625 PyThreadState* __tstate = wxPyBeginAllowThreads();
2626 (arg1)->SetStringSelection((wxString const &)*arg2);
2627
2628 wxPyEndAllowThreads(__tstate);
2629 if (PyErr_Occurred()) SWIG_fail;
2630 }
2631 Py_INCREF(Py_None); resultobj = Py_None;
2632 {
2633 if (temp2)
2634 delete arg2;
2635 }
2636 return resultobj;
2637 fail:
2638 {
2639 if (temp2)
2640 delete arg2;
2641 }
2642 return NULL;
2643 }
2644
2645
2646 static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2647 PyObject *resultobj;
2648 wxChoice *arg1 = (wxChoice *) 0 ;
2649 int arg2 ;
2650 wxString *arg3 = 0 ;
2651 bool temp3 = False ;
2652 PyObject * obj0 = 0 ;
2653 PyObject * obj1 = 0 ;
2654 PyObject * obj2 = 0 ;
2655 char *kwnames[] = {
2656 (char *) "self",(char *) "n",(char *) "s", NULL
2657 };
2658
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2661 {
2662 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 {
2666 arg3 = wxString_in_helper(obj2);
2667 if (arg3 == NULL) SWIG_fail;
2668 temp3 = True;
2669 }
2670 {
2671 PyThreadState* __tstate = wxPyBeginAllowThreads();
2672 (arg1)->SetString(arg2,(wxString const &)*arg3);
2673
2674 wxPyEndAllowThreads(__tstate);
2675 if (PyErr_Occurred()) SWIG_fail;
2676 }
2677 Py_INCREF(Py_None); resultobj = Py_None;
2678 {
2679 if (temp3)
2680 delete arg3;
2681 }
2682 return resultobj;
2683 fail:
2684 {
2685 if (temp3)
2686 delete arg3;
2687 }
2688 return NULL;
2689 }
2690
2691
2692 static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2693 PyObject *obj;
2694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2695 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2696 Py_INCREF(obj);
2697 return Py_BuildValue((char *)"");
2698 }
2699 static int _wrap_ComboBoxNameStr_set(PyObject *) {
2700 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2701 return 1;
2702 }
2703
2704
2705 static PyObject *_wrap_ComboBoxNameStr_get() {
2706 PyObject *pyobj;
2707
2708 {
2709 #if wxUSE_UNICODE
2710 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2711 #else
2712 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2713 #endif
2714 }
2715 return pyobj;
2716 }
2717
2718
2719 static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2720 PyObject *resultobj;
2721 wxWindow *arg1 = (wxWindow *) 0 ;
2722 int arg2 ;
2723 wxString const &arg3_defvalue = wxPyEmptyString ;
2724 wxString *arg3 = (wxString *) &arg3_defvalue ;
2725 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2726 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2727 wxSize const &arg5_defvalue = wxDefaultSize ;
2728 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2729 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2730 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2731 long arg7 = (long) 0 ;
2732 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2733 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2734 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2735 wxString *arg9 = (wxString *) &arg9_defvalue ;
2736 wxComboBox *result;
2737 bool temp3 = False ;
2738 wxPoint temp4 ;
2739 wxSize temp5 ;
2740 bool temp6 = False ;
2741 bool temp9 = False ;
2742 PyObject * obj0 = 0 ;
2743 PyObject * obj1 = 0 ;
2744 PyObject * obj2 = 0 ;
2745 PyObject * obj3 = 0 ;
2746 PyObject * obj4 = 0 ;
2747 PyObject * obj5 = 0 ;
2748 PyObject * obj6 = 0 ;
2749 PyObject * obj7 = 0 ;
2750 PyObject * obj8 = 0 ;
2751 char *kwnames[] = {
2752 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2753 };
2754
2755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2757 {
2758 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2759 if (PyErr_Occurred()) SWIG_fail;
2760 }
2761 if (obj2) {
2762 {
2763 arg3 = wxString_in_helper(obj2);
2764 if (arg3 == NULL) SWIG_fail;
2765 temp3 = True;
2766 }
2767 }
2768 if (obj3) {
2769 {
2770 arg4 = &temp4;
2771 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2772 }
2773 }
2774 if (obj4) {
2775 {
2776 arg5 = &temp5;
2777 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2778 }
2779 }
2780 if (obj5) {
2781 {
2782 if (! PySequence_Check(obj5)) {
2783 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2784 SWIG_fail;
2785 }
2786 arg6 = new wxArrayString;
2787 temp6 = True;
2788 int i, len=PySequence_Length(obj5);
2789 for (i=0; i<len; i++) {
2790 PyObject* item = PySequence_GetItem(obj5, i);
2791 #if wxUSE_UNICODE
2792 PyObject* str = PyObject_Unicode(item);
2793 #else
2794 PyObject* str = PyObject_Str(item);
2795 #endif
2796 arg6->Add(Py2wxString(str));
2797 Py_DECREF(item);
2798 Py_DECREF(str);
2799 }
2800 }
2801 }
2802 if (obj6) {
2803 {
2804 arg7 = (long) SWIG_PyObj_AsLong(obj6);
2805 if (PyErr_Occurred()) SWIG_fail;
2806 }
2807 }
2808 if (obj7) {
2809 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2810 if (arg8 == NULL) {
2811 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2812 }
2813 }
2814 if (obj8) {
2815 {
2816 arg9 = wxString_in_helper(obj8);
2817 if (arg9 == NULL) SWIG_fail;
2818 temp9 = True;
2819 }
2820 }
2821 {
2822 PyThreadState* __tstate = wxPyBeginAllowThreads();
2823 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);
2824
2825 wxPyEndAllowThreads(__tstate);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
2828 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1);
2829 {
2830 if (temp3)
2831 delete arg3;
2832 }
2833 {
2834 if (temp6) delete arg6;
2835 }
2836 {
2837 if (temp9)
2838 delete arg9;
2839 }
2840 return resultobj;
2841 fail:
2842 {
2843 if (temp3)
2844 delete arg3;
2845 }
2846 {
2847 if (temp6) delete arg6;
2848 }
2849 {
2850 if (temp9)
2851 delete arg9;
2852 }
2853 return NULL;
2854 }
2855
2856
2857 static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2858 PyObject *resultobj;
2859 wxComboBox *result;
2860 char *kwnames[] = {
2861 NULL
2862 };
2863
2864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
2865 {
2866 PyThreadState* __tstate = wxPyBeginAllowThreads();
2867 result = (wxComboBox *)new wxComboBox();
2868
2869 wxPyEndAllowThreads(__tstate);
2870 if (PyErr_Occurred()) SWIG_fail;
2871 }
2872 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1);
2873 return resultobj;
2874 fail:
2875 return NULL;
2876 }
2877
2878
2879 static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2880 PyObject *resultobj;
2881 wxComboBox *arg1 = (wxComboBox *) 0 ;
2882 wxWindow *arg2 = (wxWindow *) 0 ;
2883 int arg3 ;
2884 wxString const &arg4_defvalue = wxPyEmptyString ;
2885 wxString *arg4 = (wxString *) &arg4_defvalue ;
2886 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2887 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2888 wxSize const &arg6_defvalue = wxDefaultSize ;
2889 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2890 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
2891 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
2892 long arg8 = (long) 0 ;
2893 wxValidator const &arg9_defvalue = wxDefaultValidator ;
2894 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
2895 wxString const &arg10_defvalue = wxPyComboBoxNameStr ;
2896 wxString *arg10 = (wxString *) &arg10_defvalue ;
2897 bool result;
2898 bool temp4 = False ;
2899 wxPoint temp5 ;
2900 wxSize temp6 ;
2901 bool temp7 = False ;
2902 bool temp10 = False ;
2903 PyObject * obj0 = 0 ;
2904 PyObject * obj1 = 0 ;
2905 PyObject * obj2 = 0 ;
2906 PyObject * obj3 = 0 ;
2907 PyObject * obj4 = 0 ;
2908 PyObject * obj5 = 0 ;
2909 PyObject * obj6 = 0 ;
2910 PyObject * obj7 = 0 ;
2911 PyObject * obj8 = 0 ;
2912 PyObject * obj9 = 0 ;
2913 char *kwnames[] = {
2914 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2915 };
2916
2917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2919 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2920 {
2921 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2922 if (PyErr_Occurred()) SWIG_fail;
2923 }
2924 if (obj3) {
2925 {
2926 arg4 = wxString_in_helper(obj3);
2927 if (arg4 == NULL) SWIG_fail;
2928 temp4 = True;
2929 }
2930 }
2931 if (obj4) {
2932 {
2933 arg5 = &temp5;
2934 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2935 }
2936 }
2937 if (obj5) {
2938 {
2939 arg6 = &temp6;
2940 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2941 }
2942 }
2943 if (obj6) {
2944 {
2945 if (! PySequence_Check(obj6)) {
2946 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2947 SWIG_fail;
2948 }
2949 arg7 = new wxArrayString;
2950 temp7 = True;
2951 int i, len=PySequence_Length(obj6);
2952 for (i=0; i<len; i++) {
2953 PyObject* item = PySequence_GetItem(obj6, i);
2954 #if wxUSE_UNICODE
2955 PyObject* str = PyObject_Unicode(item);
2956 #else
2957 PyObject* str = PyObject_Str(item);
2958 #endif
2959 arg7->Add(Py2wxString(str));
2960 Py_DECREF(item);
2961 Py_DECREF(str);
2962 }
2963 }
2964 }
2965 if (obj7) {
2966 {
2967 arg8 = (long) SWIG_PyObj_AsLong(obj7);
2968 if (PyErr_Occurred()) SWIG_fail;
2969 }
2970 }
2971 if (obj8) {
2972 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2973 if (arg9 == NULL) {
2974 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2975 }
2976 }
2977 if (obj9) {
2978 {
2979 arg10 = wxString_in_helper(obj9);
2980 if (arg10 == NULL) SWIG_fail;
2981 temp10 = True;
2982 }
2983 }
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 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);
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2992 {
2993 if (temp4)
2994 delete arg4;
2995 }
2996 {
2997 if (temp7) delete arg7;
2998 }
2999 {
3000 if (temp10)
3001 delete arg10;
3002 }
3003 return resultobj;
3004 fail:
3005 {
3006 if (temp4)
3007 delete arg4;
3008 }
3009 {
3010 if (temp7) delete arg7;
3011 }
3012 {
3013 if (temp10)
3014 delete arg10;
3015 }
3016 return NULL;
3017 }
3018
3019
3020 static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3021 PyObject *resultobj;
3022 wxComboBox *arg1 = (wxComboBox *) 0 ;
3023 wxString result;
3024 PyObject * obj0 = 0 ;
3025 char *kwnames[] = {
3026 (char *) "self", NULL
3027 };
3028
3029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3031 {
3032 PyThreadState* __tstate = wxPyBeginAllowThreads();
3033 result = ((wxComboBox const *)arg1)->GetValue();
3034
3035 wxPyEndAllowThreads(__tstate);
3036 if (PyErr_Occurred()) SWIG_fail;
3037 }
3038 {
3039 #if wxUSE_UNICODE
3040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3041 #else
3042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3043 #endif
3044 }
3045 return resultobj;
3046 fail:
3047 return NULL;
3048 }
3049
3050
3051 static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3052 PyObject *resultobj;
3053 wxComboBox *arg1 = (wxComboBox *) 0 ;
3054 wxString *arg2 = 0 ;
3055 bool temp2 = False ;
3056 PyObject * obj0 = 0 ;
3057 PyObject * obj1 = 0 ;
3058 char *kwnames[] = {
3059 (char *) "self",(char *) "value", NULL
3060 };
3061
3062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3064 {
3065 arg2 = wxString_in_helper(obj1);
3066 if (arg2 == NULL) SWIG_fail;
3067 temp2 = True;
3068 }
3069 {
3070 PyThreadState* __tstate = wxPyBeginAllowThreads();
3071 (arg1)->SetValue((wxString const &)*arg2);
3072
3073 wxPyEndAllowThreads(__tstate);
3074 if (PyErr_Occurred()) SWIG_fail;
3075 }
3076 Py_INCREF(Py_None); resultobj = Py_None;
3077 {
3078 if (temp2)
3079 delete arg2;
3080 }
3081 return resultobj;
3082 fail:
3083 {
3084 if (temp2)
3085 delete arg2;
3086 }
3087 return NULL;
3088 }
3089
3090
3091 static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3092 PyObject *resultobj;
3093 wxComboBox *arg1 = (wxComboBox *) 0 ;
3094 PyObject * obj0 = 0 ;
3095 char *kwnames[] = {
3096 (char *) "self", NULL
3097 };
3098
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3101 {
3102 PyThreadState* __tstate = wxPyBeginAllowThreads();
3103 (arg1)->Copy();
3104
3105 wxPyEndAllowThreads(__tstate);
3106 if (PyErr_Occurred()) SWIG_fail;
3107 }
3108 Py_INCREF(Py_None); resultobj = Py_None;
3109 return resultobj;
3110 fail:
3111 return NULL;
3112 }
3113
3114
3115 static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3116 PyObject *resultobj;
3117 wxComboBox *arg1 = (wxComboBox *) 0 ;
3118 PyObject * obj0 = 0 ;
3119 char *kwnames[] = {
3120 (char *) "self", NULL
3121 };
3122
3123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3125 {
3126 PyThreadState* __tstate = wxPyBeginAllowThreads();
3127 (arg1)->Cut();
3128
3129 wxPyEndAllowThreads(__tstate);
3130 if (PyErr_Occurred()) SWIG_fail;
3131 }
3132 Py_INCREF(Py_None); resultobj = Py_None;
3133 return resultobj;
3134 fail:
3135 return NULL;
3136 }
3137
3138
3139 static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3140 PyObject *resultobj;
3141 wxComboBox *arg1 = (wxComboBox *) 0 ;
3142 PyObject * obj0 = 0 ;
3143 char *kwnames[] = {
3144 (char *) "self", NULL
3145 };
3146
3147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3149 {
3150 PyThreadState* __tstate = wxPyBeginAllowThreads();
3151 (arg1)->Paste();
3152
3153 wxPyEndAllowThreads(__tstate);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 Py_INCREF(Py_None); resultobj = Py_None;
3157 return resultobj;
3158 fail:
3159 return NULL;
3160 }
3161
3162
3163 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3164 PyObject *resultobj;
3165 wxComboBox *arg1 = (wxComboBox *) 0 ;
3166 long arg2 ;
3167 PyObject * obj0 = 0 ;
3168 PyObject * obj1 = 0 ;
3169 char *kwnames[] = {
3170 (char *) "self",(char *) "pos", NULL
3171 };
3172
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3175 {
3176 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 {
3180 PyThreadState* __tstate = wxPyBeginAllowThreads();
3181 (arg1)->SetInsertionPoint(arg2);
3182
3183 wxPyEndAllowThreads(__tstate);
3184 if (PyErr_Occurred()) SWIG_fail;
3185 }
3186 Py_INCREF(Py_None); resultobj = Py_None;
3187 return resultobj;
3188 fail:
3189 return NULL;
3190 }
3191
3192
3193 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3194 PyObject *resultobj;
3195 wxComboBox *arg1 = (wxComboBox *) 0 ;
3196 long result;
3197 PyObject * obj0 = 0 ;
3198 char *kwnames[] = {
3199 (char *) "self", NULL
3200 };
3201
3202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3204 {
3205 PyThreadState* __tstate = wxPyBeginAllowThreads();
3206 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3207
3208 wxPyEndAllowThreads(__tstate);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 }
3211 resultobj = SWIG_PyObj_FromLong((long)result);
3212 return resultobj;
3213 fail:
3214 return NULL;
3215 }
3216
3217
3218 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3219 PyObject *resultobj;
3220 wxComboBox *arg1 = (wxComboBox *) 0 ;
3221 long result;
3222 PyObject * obj0 = 0 ;
3223 char *kwnames[] = {
3224 (char *) "self", NULL
3225 };
3226
3227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3229 {
3230 PyThreadState* __tstate = wxPyBeginAllowThreads();
3231 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3232
3233 wxPyEndAllowThreads(__tstate);
3234 if (PyErr_Occurred()) SWIG_fail;
3235 }
3236 resultobj = SWIG_PyObj_FromLong((long)result);
3237 return resultobj;
3238 fail:
3239 return NULL;
3240 }
3241
3242
3243 static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3244 PyObject *resultobj;
3245 wxComboBox *arg1 = (wxComboBox *) 0 ;
3246 long arg2 ;
3247 long arg3 ;
3248 wxString *arg4 = 0 ;
3249 bool temp4 = False ;
3250 PyObject * obj0 = 0 ;
3251 PyObject * obj1 = 0 ;
3252 PyObject * obj2 = 0 ;
3253 PyObject * obj3 = 0 ;
3254 char *kwnames[] = {
3255 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3256 };
3257
3258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3260 {
3261 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3262 if (PyErr_Occurred()) SWIG_fail;
3263 }
3264 {
3265 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3266 if (PyErr_Occurred()) SWIG_fail;
3267 }
3268 {
3269 arg4 = wxString_in_helper(obj3);
3270 if (arg4 == NULL) SWIG_fail;
3271 temp4 = True;
3272 }
3273 {
3274 PyThreadState* __tstate = wxPyBeginAllowThreads();
3275 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3276
3277 wxPyEndAllowThreads(__tstate);
3278 if (PyErr_Occurred()) SWIG_fail;
3279 }
3280 Py_INCREF(Py_None); resultobj = Py_None;
3281 {
3282 if (temp4)
3283 delete arg4;
3284 }
3285 return resultobj;
3286 fail:
3287 {
3288 if (temp4)
3289 delete arg4;
3290 }
3291 return NULL;
3292 }
3293
3294
3295 static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3296 PyObject *resultobj;
3297 wxComboBox *arg1 = (wxComboBox *) 0 ;
3298 int arg2 ;
3299 PyObject * obj0 = 0 ;
3300 PyObject * obj1 = 0 ;
3301 char *kwnames[] = {
3302 (char *) "self",(char *) "n", NULL
3303 };
3304
3305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3307 {
3308 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3309 if (PyErr_Occurred()) SWIG_fail;
3310 }
3311 {
3312 PyThreadState* __tstate = wxPyBeginAllowThreads();
3313 (arg1)->SetSelection(arg2);
3314
3315 wxPyEndAllowThreads(__tstate);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 Py_INCREF(Py_None); resultobj = Py_None;
3319 return resultobj;
3320 fail:
3321 return NULL;
3322 }
3323
3324
3325 static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3326 PyObject *resultobj;
3327 wxComboBox *arg1 = (wxComboBox *) 0 ;
3328 long arg2 ;
3329 long arg3 ;
3330 PyObject * obj0 = 0 ;
3331 PyObject * obj1 = 0 ;
3332 PyObject * obj2 = 0 ;
3333 char *kwnames[] = {
3334 (char *) "self",(char *) "from",(char *) "to", NULL
3335 };
3336
3337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3339 {
3340 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3341 if (PyErr_Occurred()) SWIG_fail;
3342 }
3343 {
3344 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3345 if (PyErr_Occurred()) SWIG_fail;
3346 }
3347 {
3348 PyThreadState* __tstate = wxPyBeginAllowThreads();
3349 (arg1)->SetSelection(arg2,arg3);
3350
3351 wxPyEndAllowThreads(__tstate);
3352 if (PyErr_Occurred()) SWIG_fail;
3353 }
3354 Py_INCREF(Py_None); resultobj = Py_None;
3355 return resultobj;
3356 fail:
3357 return NULL;
3358 }
3359
3360
3361 static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3362 PyObject *resultobj;
3363 wxComboBox *arg1 = (wxComboBox *) 0 ;
3364 bool arg2 ;
3365 PyObject * obj0 = 0 ;
3366 PyObject * obj1 = 0 ;
3367 char *kwnames[] = {
3368 (char *) "self",(char *) "editable", NULL
3369 };
3370
3371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3373 {
3374 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
3375 if (PyErr_Occurred()) SWIG_fail;
3376 }
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 (arg1)->SetEditable(arg2);
3380
3381 wxPyEndAllowThreads(__tstate);
3382 if (PyErr_Occurred()) SWIG_fail;
3383 }
3384 Py_INCREF(Py_None); resultobj = Py_None;
3385 return resultobj;
3386 fail:
3387 return NULL;
3388 }
3389
3390
3391 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3392 PyObject *resultobj;
3393 wxComboBox *arg1 = (wxComboBox *) 0 ;
3394 PyObject * obj0 = 0 ;
3395 char *kwnames[] = {
3396 (char *) "self", NULL
3397 };
3398
3399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3401 {
3402 PyThreadState* __tstate = wxPyBeginAllowThreads();
3403 (arg1)->SetInsertionPointEnd();
3404
3405 wxPyEndAllowThreads(__tstate);
3406 if (PyErr_Occurred()) SWIG_fail;
3407 }
3408 Py_INCREF(Py_None); resultobj = Py_None;
3409 return resultobj;
3410 fail:
3411 return NULL;
3412 }
3413
3414
3415 static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3416 PyObject *resultobj;
3417 wxComboBox *arg1 = (wxComboBox *) 0 ;
3418 long arg2 ;
3419 long arg3 ;
3420 PyObject * obj0 = 0 ;
3421 PyObject * obj1 = 0 ;
3422 PyObject * obj2 = 0 ;
3423 char *kwnames[] = {
3424 (char *) "self",(char *) "from",(char *) "to", NULL
3425 };
3426
3427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3429 {
3430 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3431 if (PyErr_Occurred()) SWIG_fail;
3432 }
3433 {
3434 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3435 if (PyErr_Occurred()) SWIG_fail;
3436 }
3437 {
3438 PyThreadState* __tstate = wxPyBeginAllowThreads();
3439 (arg1)->Remove(arg2,arg3);
3440
3441 wxPyEndAllowThreads(__tstate);
3442 if (PyErr_Occurred()) SWIG_fail;
3443 }
3444 Py_INCREF(Py_None); resultobj = Py_None;
3445 return resultobj;
3446 fail:
3447 return NULL;
3448 }
3449
3450
3451 static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3452 PyObject *obj;
3453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3454 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3455 Py_INCREF(obj);
3456 return Py_BuildValue((char *)"");
3457 }
3458 static int _wrap_GaugeNameStr_set(PyObject *) {
3459 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3460 return 1;
3461 }
3462
3463
3464 static PyObject *_wrap_GaugeNameStr_get() {
3465 PyObject *pyobj;
3466
3467 {
3468 #if wxUSE_UNICODE
3469 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3470 #else
3471 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3472 #endif
3473 }
3474 return pyobj;
3475 }
3476
3477
3478 static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3479 PyObject *resultobj;
3480 wxWindow *arg1 = (wxWindow *) 0 ;
3481 int arg2 ;
3482 int arg3 ;
3483 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3484 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3485 wxSize const &arg5_defvalue = wxDefaultSize ;
3486 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3487 long arg6 = (long) wxGA_HORIZONTAL ;
3488 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3489 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3490 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3491 wxString *arg8 = (wxString *) &arg8_defvalue ;
3492 wxGauge *result;
3493 wxPoint temp4 ;
3494 wxSize temp5 ;
3495 bool temp8 = False ;
3496 PyObject * obj0 = 0 ;
3497 PyObject * obj1 = 0 ;
3498 PyObject * obj2 = 0 ;
3499 PyObject * obj3 = 0 ;
3500 PyObject * obj4 = 0 ;
3501 PyObject * obj5 = 0 ;
3502 PyObject * obj6 = 0 ;
3503 PyObject * obj7 = 0 ;
3504 char *kwnames[] = {
3505 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3506 };
3507
3508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3510 {
3511 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 {
3515 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 }
3518 if (obj3) {
3519 {
3520 arg4 = &temp4;
3521 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3522 }
3523 }
3524 if (obj4) {
3525 {
3526 arg5 = &temp5;
3527 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3528 }
3529 }
3530 if (obj5) {
3531 {
3532 arg6 = (long) SWIG_PyObj_AsLong(obj5);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 }
3536 if (obj6) {
3537 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3538 if (arg7 == NULL) {
3539 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3540 }
3541 }
3542 if (obj7) {
3543 {
3544 arg8 = wxString_in_helper(obj7);
3545 if (arg8 == NULL) SWIG_fail;
3546 temp8 = True;
3547 }
3548 }
3549 {
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3552
3553 wxPyEndAllowThreads(__tstate);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 }
3556 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1);
3557 {
3558 if (temp8)
3559 delete arg8;
3560 }
3561 return resultobj;
3562 fail:
3563 {
3564 if (temp8)
3565 delete arg8;
3566 }
3567 return NULL;
3568 }
3569
3570
3571 static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3572 PyObject *resultobj;
3573 wxGauge *result;
3574 char *kwnames[] = {
3575 NULL
3576 };
3577
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3579 {
3580 PyThreadState* __tstate = wxPyBeginAllowThreads();
3581 result = (wxGauge *)new wxGauge();
3582
3583 wxPyEndAllowThreads(__tstate);
3584 if (PyErr_Occurred()) SWIG_fail;
3585 }
3586 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1);
3587 return resultobj;
3588 fail:
3589 return NULL;
3590 }
3591
3592
3593 static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3594 PyObject *resultobj;
3595 wxGauge *arg1 = (wxGauge *) 0 ;
3596 wxWindow *arg2 = (wxWindow *) 0 ;
3597 int arg3 ;
3598 int arg4 ;
3599 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3600 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3601 wxSize const &arg6_defvalue = wxDefaultSize ;
3602 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3603 long arg7 = (long) wxGA_HORIZONTAL ;
3604 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3605 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3606 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3607 wxString *arg9 = (wxString *) &arg9_defvalue ;
3608 bool result;
3609 wxPoint temp5 ;
3610 wxSize temp6 ;
3611 bool temp9 = False ;
3612 PyObject * obj0 = 0 ;
3613 PyObject * obj1 = 0 ;
3614 PyObject * obj2 = 0 ;
3615 PyObject * obj3 = 0 ;
3616 PyObject * obj4 = 0 ;
3617 PyObject * obj5 = 0 ;
3618 PyObject * obj6 = 0 ;
3619 PyObject * obj7 = 0 ;
3620 PyObject * obj8 = 0 ;
3621 char *kwnames[] = {
3622 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3623 };
3624
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3627 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3628 {
3629 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3630 if (PyErr_Occurred()) SWIG_fail;
3631 }
3632 {
3633 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 }
3636 if (obj4) {
3637 {
3638 arg5 = &temp5;
3639 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3640 }
3641 }
3642 if (obj5) {
3643 {
3644 arg6 = &temp6;
3645 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3646 }
3647 }
3648 if (obj6) {
3649 {
3650 arg7 = (long) SWIG_PyObj_AsLong(obj6);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 }
3653 }
3654 if (obj7) {
3655 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3656 if (arg8 == NULL) {
3657 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3658 }
3659 }
3660 if (obj8) {
3661 {
3662 arg9 = wxString_in_helper(obj8);
3663 if (arg9 == NULL) SWIG_fail;
3664 temp9 = True;
3665 }
3666 }
3667 {
3668 PyThreadState* __tstate = wxPyBeginAllowThreads();
3669 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3670
3671 wxPyEndAllowThreads(__tstate);
3672 if (PyErr_Occurred()) SWIG_fail;
3673 }
3674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3675 {
3676 if (temp9)
3677 delete arg9;
3678 }
3679 return resultobj;
3680 fail:
3681 {
3682 if (temp9)
3683 delete arg9;
3684 }
3685 return NULL;
3686 }
3687
3688
3689 static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3690 PyObject *resultobj;
3691 wxGauge *arg1 = (wxGauge *) 0 ;
3692 int arg2 ;
3693 PyObject * obj0 = 0 ;
3694 PyObject * obj1 = 0 ;
3695 char *kwnames[] = {
3696 (char *) "self",(char *) "range", NULL
3697 };
3698
3699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
3700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3701 {
3702 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 }
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 (arg1)->SetRange(arg2);
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 }
3712 Py_INCREF(Py_None); resultobj = Py_None;
3713 return resultobj;
3714 fail:
3715 return NULL;
3716 }
3717
3718
3719 static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3720 PyObject *resultobj;
3721 wxGauge *arg1 = (wxGauge *) 0 ;
3722 int result;
3723 PyObject * obj0 = 0 ;
3724 char *kwnames[] = {
3725 (char *) "self", NULL
3726 };
3727
3728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
3729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3730 {
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 result = (int)((wxGauge const *)arg1)->GetRange();
3733
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 resultobj = SWIG_PyObj_FromInt((int)result);
3738 return resultobj;
3739 fail:
3740 return NULL;
3741 }
3742
3743
3744 static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3745 PyObject *resultobj;
3746 wxGauge *arg1 = (wxGauge *) 0 ;
3747 int arg2 ;
3748 PyObject * obj0 = 0 ;
3749 PyObject * obj1 = 0 ;
3750 char *kwnames[] = {
3751 (char *) "self",(char *) "pos", NULL
3752 };
3753
3754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
3755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3756 {
3757 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3758 if (PyErr_Occurred()) SWIG_fail;
3759 }
3760 {
3761 PyThreadState* __tstate = wxPyBeginAllowThreads();
3762 (arg1)->SetValue(arg2);
3763
3764 wxPyEndAllowThreads(__tstate);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 Py_INCREF(Py_None); resultobj = Py_None;
3768 return resultobj;
3769 fail:
3770 return NULL;
3771 }
3772
3773
3774 static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj;
3776 wxGauge *arg1 = (wxGauge *) 0 ;
3777 int result;
3778 PyObject * obj0 = 0 ;
3779 char *kwnames[] = {
3780 (char *) "self", NULL
3781 };
3782
3783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
3784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3785 {
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 result = (int)((wxGauge const *)arg1)->GetValue();
3788
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 resultobj = SWIG_PyObj_FromInt((int)result);
3793 return resultobj;
3794 fail:
3795 return NULL;
3796 }
3797
3798
3799 static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
3800 PyObject *resultobj;
3801 wxGauge *arg1 = (wxGauge *) 0 ;
3802 bool result;
3803 PyObject * obj0 = 0 ;
3804 char *kwnames[] = {
3805 (char *) "self", NULL
3806 };
3807
3808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
3809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 result = (bool)((wxGauge const *)arg1)->IsVertical();
3813
3814 wxPyEndAllowThreads(__tstate);
3815 if (PyErr_Occurred()) SWIG_fail;
3816 }
3817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3818 return resultobj;
3819 fail:
3820 return NULL;
3821 }
3822
3823
3824 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3825 PyObject *resultobj;
3826 wxGauge *arg1 = (wxGauge *) 0 ;
3827 int arg2 ;
3828 PyObject * obj0 = 0 ;
3829 PyObject * obj1 = 0 ;
3830 char *kwnames[] = {
3831 (char *) "self",(char *) "w", NULL
3832 };
3833
3834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
3835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3836 {
3837 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3838 if (PyErr_Occurred()) SWIG_fail;
3839 }
3840 {
3841 PyThreadState* __tstate = wxPyBeginAllowThreads();
3842 (arg1)->SetShadowWidth(arg2);
3843
3844 wxPyEndAllowThreads(__tstate);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 Py_INCREF(Py_None); resultobj = Py_None;
3848 return resultobj;
3849 fail:
3850 return NULL;
3851 }
3852
3853
3854 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3855 PyObject *resultobj;
3856 wxGauge *arg1 = (wxGauge *) 0 ;
3857 int result;
3858 PyObject * obj0 = 0 ;
3859 char *kwnames[] = {
3860 (char *) "self", NULL
3861 };
3862
3863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
3864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3865 {
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
3868
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 resultobj = SWIG_PyObj_FromInt((int)result);
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject *resultobj;
3881 wxGauge *arg1 = (wxGauge *) 0 ;
3882 int arg2 ;
3883 PyObject * obj0 = 0 ;
3884 PyObject * obj1 = 0 ;
3885 char *kwnames[] = {
3886 (char *) "self",(char *) "w", NULL
3887 };
3888
3889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
3890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3891 {
3892 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3893 if (PyErr_Occurred()) SWIG_fail;
3894 }
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 (arg1)->SetBezelFace(arg2);
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 Py_INCREF(Py_None); resultobj = Py_None;
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj;
3911 wxGauge *arg1 = (wxGauge *) 0 ;
3912 int result;
3913 PyObject * obj0 = 0 ;
3914 char *kwnames[] = {
3915 (char *) "self", NULL
3916 };
3917
3918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
3919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3920 {
3921 PyThreadState* __tstate = wxPyBeginAllowThreads();
3922 result = (int)((wxGauge const *)arg1)->GetBezelFace();
3923
3924 wxPyEndAllowThreads(__tstate);
3925 if (PyErr_Occurred()) SWIG_fail;
3926 }
3927 resultobj = SWIG_PyObj_FromInt((int)result);
3928 return resultobj;
3929 fail:
3930 return NULL;
3931 }
3932
3933
3934 static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
3935 PyObject *obj;
3936 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3937 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
3938 Py_INCREF(obj);
3939 return Py_BuildValue((char *)"");
3940 }
3941 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
3942 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
3943 return 1;
3944 }
3945
3946
3947 static PyObject *_wrap_StaticBitmapNameStr_get() {
3948 PyObject *pyobj;
3949
3950 {
3951 #if wxUSE_UNICODE
3952 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
3953 #else
3954 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
3955 #endif
3956 }
3957 return pyobj;
3958 }
3959
3960
3961 static int _wrap_StaticBoxNameStr_set(PyObject *) {
3962 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
3963 return 1;
3964 }
3965
3966
3967 static PyObject *_wrap_StaticBoxNameStr_get() {
3968 PyObject *pyobj;
3969
3970 {
3971 #if wxUSE_UNICODE
3972 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
3973 #else
3974 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
3975 #endif
3976 }
3977 return pyobj;
3978 }
3979
3980
3981 static int _wrap_StaticTextNameStr_set(PyObject *) {
3982 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
3983 return 1;
3984 }
3985
3986
3987 static PyObject *_wrap_StaticTextNameStr_get() {
3988 PyObject *pyobj;
3989
3990 {
3991 #if wxUSE_UNICODE
3992 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
3993 #else
3994 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
3995 #endif
3996 }
3997 return pyobj;
3998 }
3999
4000
4001 static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4002 PyObject *resultobj;
4003 wxWindow *arg1 = (wxWindow *) 0 ;
4004 int arg2 ;
4005 wxString *arg3 = 0 ;
4006 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4007 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4008 wxSize const &arg5_defvalue = wxDefaultSize ;
4009 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4010 long arg6 = (long) 0 ;
4011 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4012 wxString *arg7 = (wxString *) &arg7_defvalue ;
4013 wxStaticBox *result;
4014 bool temp3 = False ;
4015 wxPoint temp4 ;
4016 wxSize temp5 ;
4017 bool temp7 = False ;
4018 PyObject * obj0 = 0 ;
4019 PyObject * obj1 = 0 ;
4020 PyObject * obj2 = 0 ;
4021 PyObject * obj3 = 0 ;
4022 PyObject * obj4 = 0 ;
4023 PyObject * obj5 = 0 ;
4024 PyObject * obj6 = 0 ;
4025 char *kwnames[] = {
4026 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4027 };
4028
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4031 {
4032 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 {
4036 arg3 = wxString_in_helper(obj2);
4037 if (arg3 == NULL) SWIG_fail;
4038 temp3 = True;
4039 }
4040 if (obj3) {
4041 {
4042 arg4 = &temp4;
4043 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4044 }
4045 }
4046 if (obj4) {
4047 {
4048 arg5 = &temp5;
4049 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4050 }
4051 }
4052 if (obj5) {
4053 {
4054 arg6 = (long) SWIG_PyObj_AsLong(obj5);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 }
4058 if (obj6) {
4059 {
4060 arg7 = wxString_in_helper(obj6);
4061 if (arg7 == NULL) SWIG_fail;
4062 temp7 = True;
4063 }
4064 }
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4068
4069 wxPyEndAllowThreads(__tstate);
4070 if (PyErr_Occurred()) SWIG_fail;
4071 }
4072 {
4073 resultobj = wxPyMake_wxObject(result);
4074 }
4075 {
4076 if (temp3)
4077 delete arg3;
4078 }
4079 {
4080 if (temp7)
4081 delete arg7;
4082 }
4083 return resultobj;
4084 fail:
4085 {
4086 if (temp3)
4087 delete arg3;
4088 }
4089 {
4090 if (temp7)
4091 delete arg7;
4092 }
4093 return NULL;
4094 }
4095
4096
4097 static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4098 PyObject *resultobj;
4099 wxStaticBox *result;
4100 char *kwnames[] = {
4101 NULL
4102 };
4103
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4105 {
4106 PyThreadState* __tstate = wxPyBeginAllowThreads();
4107 result = (wxStaticBox *)new wxStaticBox();
4108
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 {
4113 resultobj = wxPyMake_wxObject(result);
4114 }
4115 return resultobj;
4116 fail:
4117 return NULL;
4118 }
4119
4120
4121 static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4122 PyObject *resultobj;
4123 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4124 wxWindow *arg2 = (wxWindow *) 0 ;
4125 int arg3 ;
4126 wxString *arg4 = 0 ;
4127 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4128 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4129 wxSize const &arg6_defvalue = wxDefaultSize ;
4130 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4131 long arg7 = (long) 0 ;
4132 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4133 wxString *arg8 = (wxString *) &arg8_defvalue ;
4134 bool result;
4135 bool temp4 = False ;
4136 wxPoint temp5 ;
4137 wxSize temp6 ;
4138 bool temp8 = False ;
4139 PyObject * obj0 = 0 ;
4140 PyObject * obj1 = 0 ;
4141 PyObject * obj2 = 0 ;
4142 PyObject * obj3 = 0 ;
4143 PyObject * obj4 = 0 ;
4144 PyObject * obj5 = 0 ;
4145 PyObject * obj6 = 0 ;
4146 PyObject * obj7 = 0 ;
4147 char *kwnames[] = {
4148 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4149 };
4150
4151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4153 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4154 {
4155 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 {
4159 arg4 = wxString_in_helper(obj3);
4160 if (arg4 == NULL) SWIG_fail;
4161 temp4 = True;
4162 }
4163 if (obj4) {
4164 {
4165 arg5 = &temp5;
4166 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4167 }
4168 }
4169 if (obj5) {
4170 {
4171 arg6 = &temp6;
4172 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4173 }
4174 }
4175 if (obj6) {
4176 {
4177 arg7 = (long) SWIG_PyObj_AsLong(obj6);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 }
4181 if (obj7) {
4182 {
4183 arg8 = wxString_in_helper(obj7);
4184 if (arg8 == NULL) SWIG_fail;
4185 temp8 = True;
4186 }
4187 }
4188 {
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4191
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4196 {
4197 if (temp4)
4198 delete arg4;
4199 }
4200 {
4201 if (temp8)
4202 delete arg8;
4203 }
4204 return resultobj;
4205 fail:
4206 {
4207 if (temp4)
4208 delete arg4;
4209 }
4210 {
4211 if (temp8)
4212 delete arg8;
4213 }
4214 return NULL;
4215 }
4216
4217
4218 static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4219 PyObject *obj;
4220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4221 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4222 Py_INCREF(obj);
4223 return Py_BuildValue((char *)"");
4224 }
4225 static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj;
4227 wxWindow *arg1 = (wxWindow *) 0 ;
4228 int arg2 ;
4229 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4230 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4231 wxSize const &arg4_defvalue = wxDefaultSize ;
4232 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4233 long arg5 = (long) wxLI_HORIZONTAL ;
4234 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4235 wxString *arg6 = (wxString *) &arg6_defvalue ;
4236 wxStaticLine *result;
4237 wxPoint temp3 ;
4238 wxSize temp4 ;
4239 bool temp6 = False ;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 PyObject * obj2 = 0 ;
4243 PyObject * obj3 = 0 ;
4244 PyObject * obj4 = 0 ;
4245 PyObject * obj5 = 0 ;
4246 char *kwnames[] = {
4247 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4248 };
4249
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4252 {
4253 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 if (obj2) {
4257 {
4258 arg3 = &temp3;
4259 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4260 }
4261 }
4262 if (obj3) {
4263 {
4264 arg4 = &temp4;
4265 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4266 }
4267 }
4268 if (obj4) {
4269 {
4270 arg5 = (long) SWIG_PyObj_AsLong(obj4);
4271 if (PyErr_Occurred()) SWIG_fail;
4272 }
4273 }
4274 if (obj5) {
4275 {
4276 arg6 = wxString_in_helper(obj5);
4277 if (arg6 == NULL) SWIG_fail;
4278 temp6 = True;
4279 }
4280 }
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4284
4285 wxPyEndAllowThreads(__tstate);
4286 if (PyErr_Occurred()) SWIG_fail;
4287 }
4288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1);
4289 {
4290 if (temp6)
4291 delete arg6;
4292 }
4293 return resultobj;
4294 fail:
4295 {
4296 if (temp6)
4297 delete arg6;
4298 }
4299 return NULL;
4300 }
4301
4302
4303 static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4304 PyObject *resultobj;
4305 wxStaticLine *result;
4306 char *kwnames[] = {
4307 NULL
4308 };
4309
4310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4311 {
4312 PyThreadState* __tstate = wxPyBeginAllowThreads();
4313 result = (wxStaticLine *)new wxStaticLine();
4314
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1);
4319 return resultobj;
4320 fail:
4321 return NULL;
4322 }
4323
4324
4325 static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4326 PyObject *resultobj;
4327 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4328 wxWindow *arg2 = (wxWindow *) 0 ;
4329 int arg3 ;
4330 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4331 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4332 wxSize const &arg5_defvalue = wxDefaultSize ;
4333 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4334 long arg6 = (long) wxLI_HORIZONTAL ;
4335 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4336 wxString *arg7 = (wxString *) &arg7_defvalue ;
4337 bool result;
4338 wxPoint temp4 ;
4339 wxSize temp5 ;
4340 bool temp7 = False ;
4341 PyObject * obj0 = 0 ;
4342 PyObject * obj1 = 0 ;
4343 PyObject * obj2 = 0 ;
4344 PyObject * obj3 = 0 ;
4345 PyObject * obj4 = 0 ;
4346 PyObject * obj5 = 0 ;
4347 PyObject * obj6 = 0 ;
4348 char *kwnames[] = {
4349 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4350 };
4351
4352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4354 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4355 {
4356 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 if (obj3) {
4360 {
4361 arg4 = &temp4;
4362 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4363 }
4364 }
4365 if (obj4) {
4366 {
4367 arg5 = &temp5;
4368 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4369 }
4370 }
4371 if (obj5) {
4372 {
4373 arg6 = (long) SWIG_PyObj_AsLong(obj5);
4374 if (PyErr_Occurred()) SWIG_fail;
4375 }
4376 }
4377 if (obj6) {
4378 {
4379 arg7 = wxString_in_helper(obj6);
4380 if (arg7 == NULL) SWIG_fail;
4381 temp7 = True;
4382 }
4383 }
4384 {
4385 PyThreadState* __tstate = wxPyBeginAllowThreads();
4386 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4387
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4392 {
4393 if (temp7)
4394 delete arg7;
4395 }
4396 return resultobj;
4397 fail:
4398 {
4399 if (temp7)
4400 delete arg7;
4401 }
4402 return NULL;
4403 }
4404
4405
4406 static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4407 PyObject *resultobj;
4408 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4409 bool result;
4410 PyObject * obj0 = 0 ;
4411 char *kwnames[] = {
4412 (char *) "self", NULL
4413 };
4414
4415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4420
4421 wxPyEndAllowThreads(__tstate);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4425 return resultobj;
4426 fail:
4427 return NULL;
4428 }
4429
4430
4431 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4432 PyObject *resultobj;
4433 int result;
4434 char *kwnames[] = {
4435 NULL
4436 };
4437
4438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4439 {
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
4441 result = (int)wxStaticLine::GetDefaultSize();
4442
4443 wxPyEndAllowThreads(__tstate);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 resultobj = SWIG_PyObj_FromInt((int)result);
4447 return resultobj;
4448 fail:
4449 return NULL;
4450 }
4451
4452
4453 static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4454 PyObject *obj;
4455 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4456 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4457 Py_INCREF(obj);
4458 return Py_BuildValue((char *)"");
4459 }
4460 static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4461 PyObject *resultobj;
4462 wxWindow *arg1 = (wxWindow *) 0 ;
4463 int arg2 ;
4464 wxString *arg3 = 0 ;
4465 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4466 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4467 wxSize const &arg5_defvalue = wxDefaultSize ;
4468 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4469 long arg6 = (long) 0 ;
4470 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4471 wxString *arg7 = (wxString *) &arg7_defvalue ;
4472 wxStaticText *result;
4473 bool temp3 = False ;
4474 wxPoint temp4 ;
4475 wxSize temp5 ;
4476 bool temp7 = False ;
4477 PyObject * obj0 = 0 ;
4478 PyObject * obj1 = 0 ;
4479 PyObject * obj2 = 0 ;
4480 PyObject * obj3 = 0 ;
4481 PyObject * obj4 = 0 ;
4482 PyObject * obj5 = 0 ;
4483 PyObject * obj6 = 0 ;
4484 char *kwnames[] = {
4485 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4486 };
4487
4488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4490 {
4491 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4492 if (PyErr_Occurred()) SWIG_fail;
4493 }
4494 {
4495 arg3 = wxString_in_helper(obj2);
4496 if (arg3 == NULL) SWIG_fail;
4497 temp3 = True;
4498 }
4499 if (obj3) {
4500 {
4501 arg4 = &temp4;
4502 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4503 }
4504 }
4505 if (obj4) {
4506 {
4507 arg5 = &temp5;
4508 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4509 }
4510 }
4511 if (obj5) {
4512 {
4513 arg6 = (long) SWIG_PyObj_AsLong(obj5);
4514 if (PyErr_Occurred()) SWIG_fail;
4515 }
4516 }
4517 if (obj6) {
4518 {
4519 arg7 = wxString_in_helper(obj6);
4520 if (arg7 == NULL) SWIG_fail;
4521 temp7 = True;
4522 }
4523 }
4524 {
4525 PyThreadState* __tstate = wxPyBeginAllowThreads();
4526 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4527
4528 wxPyEndAllowThreads(__tstate);
4529 if (PyErr_Occurred()) SWIG_fail;
4530 }
4531 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1);
4532 {
4533 if (temp3)
4534 delete arg3;
4535 }
4536 {
4537 if (temp7)
4538 delete arg7;
4539 }
4540 return resultobj;
4541 fail:
4542 {
4543 if (temp3)
4544 delete arg3;
4545 }
4546 {
4547 if (temp7)
4548 delete arg7;
4549 }
4550 return NULL;
4551 }
4552
4553
4554 static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj;
4556 wxStaticText *result;
4557 char *kwnames[] = {
4558 NULL
4559 };
4560
4561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4562 {
4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4564 result = (wxStaticText *)new wxStaticText();
4565
4566 wxPyEndAllowThreads(__tstate);
4567 if (PyErr_Occurred()) SWIG_fail;
4568 }
4569 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1);
4570 return resultobj;
4571 fail:
4572 return NULL;
4573 }
4574
4575
4576 static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4577 PyObject *resultobj;
4578 wxStaticText *arg1 = (wxStaticText *) 0 ;
4579 wxWindow *arg2 = (wxWindow *) 0 ;
4580 int arg3 ;
4581 wxString *arg4 = 0 ;
4582 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4583 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4584 wxSize const &arg6_defvalue = wxDefaultSize ;
4585 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4586 long arg7 = (long) 0 ;
4587 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4588 wxString *arg8 = (wxString *) &arg8_defvalue ;
4589 bool result;
4590 bool temp4 = False ;
4591 wxPoint temp5 ;
4592 wxSize temp6 ;
4593 bool temp8 = 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 PyObject * obj7 = 0 ;
4602 char *kwnames[] = {
4603 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4604 };
4605
4606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4608 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4609 {
4610 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 {
4614 arg4 = wxString_in_helper(obj3);
4615 if (arg4 == NULL) SWIG_fail;
4616 temp4 = True;
4617 }
4618 if (obj4) {
4619 {
4620 arg5 = &temp5;
4621 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4622 }
4623 }
4624 if (obj5) {
4625 {
4626 arg6 = &temp6;
4627 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4628 }
4629 }
4630 if (obj6) {
4631 {
4632 arg7 = (long) SWIG_PyObj_AsLong(obj6);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 }
4636 if (obj7) {
4637 {
4638 arg8 = wxString_in_helper(obj7);
4639 if (arg8 == NULL) SWIG_fail;
4640 temp8 = True;
4641 }
4642 }
4643 {
4644 PyThreadState* __tstate = wxPyBeginAllowThreads();
4645 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4646
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4651 {
4652 if (temp4)
4653 delete arg4;
4654 }
4655 {
4656 if (temp8)
4657 delete arg8;
4658 }
4659 return resultobj;
4660 fail:
4661 {
4662 if (temp4)
4663 delete arg4;
4664 }
4665 {
4666 if (temp8)
4667 delete arg8;
4668 }
4669 return NULL;
4670 }
4671
4672
4673 static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
4674 PyObject *obj;
4675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4676 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
4677 Py_INCREF(obj);
4678 return Py_BuildValue((char *)"");
4679 }
4680 static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4681 PyObject *resultobj;
4682 wxWindow *arg1 = (wxWindow *) 0 ;
4683 int arg2 ;
4684 wxBitmap *arg3 = 0 ;
4685 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4686 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4687 wxSize const &arg5_defvalue = wxDefaultSize ;
4688 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4689 long arg6 = (long) 0 ;
4690 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
4691 wxString *arg7 = (wxString *) &arg7_defvalue ;
4692 wxStaticBitmap *result;
4693 wxPoint temp4 ;
4694 wxSize temp5 ;
4695 bool temp7 = False ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 char *kwnames[] = {
4704 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4705 };
4706
4707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4709 {
4710 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4714 if (arg3 == NULL) {
4715 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4716 }
4717 if (obj3) {
4718 {
4719 arg4 = &temp4;
4720 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4721 }
4722 }
4723 if (obj4) {
4724 {
4725 arg5 = &temp5;
4726 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4727 }
4728 }
4729 if (obj5) {
4730 {
4731 arg6 = (long) SWIG_PyObj_AsLong(obj5);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 }
4735 if (obj6) {
4736 {
4737 arg7 = wxString_in_helper(obj6);
4738 if (arg7 == NULL) SWIG_fail;
4739 temp7 = True;
4740 }
4741 }
4742 {
4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
4744 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4745
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1);
4750 {
4751 if (temp7)
4752 delete arg7;
4753 }
4754 return resultobj;
4755 fail:
4756 {
4757 if (temp7)
4758 delete arg7;
4759 }
4760 return NULL;
4761 }
4762
4763
4764 static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4765 PyObject *resultobj;
4766 wxStaticBitmap *result;
4767 char *kwnames[] = {
4768 NULL
4769 };
4770
4771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
4772 {
4773 PyThreadState* __tstate = wxPyBeginAllowThreads();
4774 result = (wxStaticBitmap *)new wxStaticBitmap();
4775
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1);
4780 return resultobj;
4781 fail:
4782 return NULL;
4783 }
4784
4785
4786 static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4787 PyObject *resultobj;
4788 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4789 wxWindow *arg2 = (wxWindow *) 0 ;
4790 int arg3 ;
4791 wxBitmap *arg4 = 0 ;
4792 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4793 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4794 wxSize const &arg6_defvalue = wxDefaultSize ;
4795 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4796 long arg7 = (long) 0 ;
4797 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
4798 wxString *arg8 = (wxString *) &arg8_defvalue ;
4799 bool result;
4800 wxPoint temp5 ;
4801 wxSize temp6 ;
4802 bool temp8 = False ;
4803 PyObject * obj0 = 0 ;
4804 PyObject * obj1 = 0 ;
4805 PyObject * obj2 = 0 ;
4806 PyObject * obj3 = 0 ;
4807 PyObject * obj4 = 0 ;
4808 PyObject * obj5 = 0 ;
4809 PyObject * obj6 = 0 ;
4810 PyObject * obj7 = 0 ;
4811 char *kwnames[] = {
4812 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4813 };
4814
4815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4817 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4818 {
4819 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4823 if (arg4 == NULL) {
4824 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4825 }
4826 if (obj4) {
4827 {
4828 arg5 = &temp5;
4829 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4830 }
4831 }
4832 if (obj5) {
4833 {
4834 arg6 = &temp6;
4835 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4836 }
4837 }
4838 if (obj6) {
4839 {
4840 arg7 = (long) SWIG_PyObj_AsLong(obj6);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 }
4844 if (obj7) {
4845 {
4846 arg8 = wxString_in_helper(obj7);
4847 if (arg8 == NULL) SWIG_fail;
4848 temp8 = True;
4849 }
4850 }
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4859 {
4860 if (temp8)
4861 delete arg8;
4862 }
4863 return resultobj;
4864 fail:
4865 {
4866 if (temp8)
4867 delete arg8;
4868 }
4869 return NULL;
4870 }
4871
4872
4873 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4874 PyObject *resultobj;
4875 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4876 wxBitmap result;
4877 PyObject * obj0 = 0 ;
4878 char *kwnames[] = {
4879 (char *) "self", NULL
4880 };
4881
4882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
4883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4884 {
4885 PyThreadState* __tstate = wxPyBeginAllowThreads();
4886 result = (arg1)->GetBitmap();
4887
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 {
4892 wxBitmap * resultptr;
4893 resultptr = new wxBitmap((wxBitmap &) result);
4894 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4895 }
4896 return resultobj;
4897 fail:
4898 return NULL;
4899 }
4900
4901
4902 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4903 PyObject *resultobj;
4904 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4905 wxBitmap *arg2 = 0 ;
4906 PyObject * obj0 = 0 ;
4907 PyObject * obj1 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "bitmap", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4914 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4915 if (arg2 == NULL) {
4916 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4917 }
4918 {
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 (arg1)->SetBitmap((wxBitmap const &)*arg2);
4921
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 Py_INCREF(Py_None); resultobj = Py_None;
4926 return resultobj;
4927 fail:
4928 return NULL;
4929 }
4930
4931
4932 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4933 PyObject *resultobj;
4934 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
4935 wxIcon *arg2 = 0 ;
4936 PyObject * obj0 = 0 ;
4937 PyObject * obj1 = 0 ;
4938 char *kwnames[] = {
4939 (char *) "self",(char *) "icon", NULL
4940 };
4941
4942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
4943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4944 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4945 if (arg2 == NULL) {
4946 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4947 }
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 (arg1)->SetIcon((wxIcon const &)*arg2);
4951
4952 wxPyEndAllowThreads(__tstate);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 }
4955 Py_INCREF(Py_None); resultobj = Py_None;
4956 return resultobj;
4957 fail:
4958 return NULL;
4959 }
4960
4961
4962 static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
4963 PyObject *obj;
4964 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4965 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
4966 Py_INCREF(obj);
4967 return Py_BuildValue((char *)"");
4968 }
4969 static int _wrap_ListBoxNameStr_set(PyObject *) {
4970 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
4971 return 1;
4972 }
4973
4974
4975 static PyObject *_wrap_ListBoxNameStr_get() {
4976 PyObject *pyobj;
4977
4978 {
4979 #if wxUSE_UNICODE
4980 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
4981 #else
4982 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
4983 #endif
4984 }
4985 return pyobj;
4986 }
4987
4988
4989 static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4990 PyObject *resultobj;
4991 wxWindow *arg1 = (wxWindow *) 0 ;
4992 int arg2 ;
4993 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4994 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4995 wxSize const &arg4_defvalue = wxDefaultSize ;
4996 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4997 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
4998 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
4999 long arg6 = (long) 0 ;
5000 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5001 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5002 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5003 wxString *arg8 = (wxString *) &arg8_defvalue ;
5004 wxListBox *result;
5005 wxPoint temp3 ;
5006 wxSize temp4 ;
5007 bool temp5 = False ;
5008 bool temp8 = False ;
5009 PyObject * obj0 = 0 ;
5010 PyObject * obj1 = 0 ;
5011 PyObject * obj2 = 0 ;
5012 PyObject * obj3 = 0 ;
5013 PyObject * obj4 = 0 ;
5014 PyObject * obj5 = 0 ;
5015 PyObject * obj6 = 0 ;
5016 PyObject * obj7 = 0 ;
5017 char *kwnames[] = {
5018 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5019 };
5020
5021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5023 {
5024 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 if (obj2) {
5028 {
5029 arg3 = &temp3;
5030 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5031 }
5032 }
5033 if (obj3) {
5034 {
5035 arg4 = &temp4;
5036 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5037 }
5038 }
5039 if (obj4) {
5040 {
5041 if (! PySequence_Check(obj4)) {
5042 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5043 SWIG_fail;
5044 }
5045 arg5 = new wxArrayString;
5046 temp5 = True;
5047 int i, len=PySequence_Length(obj4);
5048 for (i=0; i<len; i++) {
5049 PyObject* item = PySequence_GetItem(obj4, i);
5050 #if wxUSE_UNICODE
5051 PyObject* str = PyObject_Unicode(item);
5052 #else
5053 PyObject* str = PyObject_Str(item);
5054 #endif
5055 arg5->Add(Py2wxString(str));
5056 Py_DECREF(item);
5057 Py_DECREF(str);
5058 }
5059 }
5060 }
5061 if (obj5) {
5062 {
5063 arg6 = (long) SWIG_PyObj_AsLong(obj5);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 }
5067 if (obj6) {
5068 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5069 if (arg7 == NULL) {
5070 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5071 }
5072 }
5073 if (obj7) {
5074 {
5075 arg8 = wxString_in_helper(obj7);
5076 if (arg8 == NULL) SWIG_fail;
5077 temp8 = True;
5078 }
5079 }
5080 {
5081 PyThreadState* __tstate = wxPyBeginAllowThreads();
5082 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5083
5084 wxPyEndAllowThreads(__tstate);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 }
5087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1);
5088 {
5089 if (temp5) delete arg5;
5090 }
5091 {
5092 if (temp8)
5093 delete arg8;
5094 }
5095 return resultobj;
5096 fail:
5097 {
5098 if (temp5) delete arg5;
5099 }
5100 {
5101 if (temp8)
5102 delete arg8;
5103 }
5104 return NULL;
5105 }
5106
5107
5108 static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5109 PyObject *resultobj;
5110 wxListBox *result;
5111 char *kwnames[] = {
5112 NULL
5113 };
5114
5115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 result = (wxListBox *)new wxListBox();
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1);
5124 return resultobj;
5125 fail:
5126 return NULL;
5127 }
5128
5129
5130 static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj;
5132 wxListBox *arg1 = (wxListBox *) 0 ;
5133 wxWindow *arg2 = (wxWindow *) 0 ;
5134 int arg3 ;
5135 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5136 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5137 wxSize const &arg5_defvalue = wxDefaultSize ;
5138 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5139 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5140 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5141 long arg7 = (long) 0 ;
5142 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5143 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5144 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5145 wxString *arg9 = (wxString *) &arg9_defvalue ;
5146 bool result;
5147 wxPoint temp4 ;
5148 wxSize temp5 ;
5149 bool temp6 = False ;
5150 bool temp9 = False ;
5151 PyObject * obj0 = 0 ;
5152 PyObject * obj1 = 0 ;
5153 PyObject * obj2 = 0 ;
5154 PyObject * obj3 = 0 ;
5155 PyObject * obj4 = 0 ;
5156 PyObject * obj5 = 0 ;
5157 PyObject * obj6 = 0 ;
5158 PyObject * obj7 = 0 ;
5159 PyObject * obj8 = 0 ;
5160 char *kwnames[] = {
5161 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5162 };
5163
5164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5166 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5167 {
5168 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 if (obj3) {
5172 {
5173 arg4 = &temp4;
5174 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5175 }
5176 }
5177 if (obj4) {
5178 {
5179 arg5 = &temp5;
5180 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5181 }
5182 }
5183 if (obj5) {
5184 {
5185 if (! PySequence_Check(obj5)) {
5186 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5187 SWIG_fail;
5188 }
5189 arg6 = new wxArrayString;
5190 temp6 = True;
5191 int i, len=PySequence_Length(obj5);
5192 for (i=0; i<len; i++) {
5193 PyObject* item = PySequence_GetItem(obj5, i);
5194 #if wxUSE_UNICODE
5195 PyObject* str = PyObject_Unicode(item);
5196 #else
5197 PyObject* str = PyObject_Str(item);
5198 #endif
5199 arg6->Add(Py2wxString(str));
5200 Py_DECREF(item);
5201 Py_DECREF(str);
5202 }
5203 }
5204 }
5205 if (obj6) {
5206 {
5207 arg7 = (long) SWIG_PyObj_AsLong(obj6);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 }
5211 if (obj7) {
5212 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5213 if (arg8 == NULL) {
5214 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5215 }
5216 }
5217 if (obj8) {
5218 {
5219 arg9 = wxString_in_helper(obj8);
5220 if (arg9 == NULL) SWIG_fail;
5221 temp9 = True;
5222 }
5223 }
5224 {
5225 PyThreadState* __tstate = wxPyBeginAllowThreads();
5226 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5227
5228 wxPyEndAllowThreads(__tstate);
5229 if (PyErr_Occurred()) SWIG_fail;
5230 }
5231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5232 {
5233 if (temp6) delete arg6;
5234 }
5235 {
5236 if (temp9)
5237 delete arg9;
5238 }
5239 return resultobj;
5240 fail:
5241 {
5242 if (temp6) delete arg6;
5243 }
5244 {
5245 if (temp9)
5246 delete arg9;
5247 }
5248 return NULL;
5249 }
5250
5251
5252 static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5253 PyObject *resultobj;
5254 wxListBox *arg1 = (wxListBox *) 0 ;
5255 wxString *arg2 = 0 ;
5256 int arg3 ;
5257 PyObject *arg4 = (PyObject *) NULL ;
5258 bool temp2 = False ;
5259 PyObject * obj0 = 0 ;
5260 PyObject * obj1 = 0 ;
5261 PyObject * obj2 = 0 ;
5262 PyObject * obj3 = 0 ;
5263 char *kwnames[] = {
5264 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5265 };
5266
5267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5269 {
5270 arg2 = wxString_in_helper(obj1);
5271 if (arg2 == NULL) SWIG_fail;
5272 temp2 = True;
5273 }
5274 {
5275 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 if (obj3) {
5279 arg4 = obj3;
5280 }
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 Py_INCREF(Py_None); resultobj = Py_None;
5289 {
5290 if (temp2)
5291 delete arg2;
5292 }
5293 return resultobj;
5294 fail:
5295 {
5296 if (temp2)
5297 delete arg2;
5298 }
5299 return NULL;
5300 }
5301
5302
5303 static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5304 PyObject *resultobj;
5305 wxListBox *arg1 = (wxListBox *) 0 ;
5306 wxArrayString *arg2 = 0 ;
5307 int arg3 ;
5308 bool temp2 = False ;
5309 PyObject * obj0 = 0 ;
5310 PyObject * obj1 = 0 ;
5311 PyObject * obj2 = 0 ;
5312 char *kwnames[] = {
5313 (char *) "self",(char *) "items",(char *) "pos", NULL
5314 };
5315
5316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5318 {
5319 if (! PySequence_Check(obj1)) {
5320 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5321 SWIG_fail;
5322 }
5323 arg2 = new wxArrayString;
5324 temp2 = True;
5325 int i, len=PySequence_Length(obj1);
5326 for (i=0; i<len; i++) {
5327 PyObject* item = PySequence_GetItem(obj1, i);
5328 #if wxUSE_UNICODE
5329 PyObject* str = PyObject_Unicode(item);
5330 #else
5331 PyObject* str = PyObject_Str(item);
5332 #endif
5333 arg2->Add(Py2wxString(str));
5334 Py_DECREF(item);
5335 Py_DECREF(str);
5336 }
5337 }
5338 {
5339 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 {
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5345
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 Py_INCREF(Py_None); resultobj = Py_None;
5350 {
5351 if (temp2) delete arg2;
5352 }
5353 return resultobj;
5354 fail:
5355 {
5356 if (temp2) delete arg2;
5357 }
5358 return NULL;
5359 }
5360
5361
5362 static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5363 PyObject *resultobj;
5364 wxListBox *arg1 = (wxListBox *) 0 ;
5365 wxArrayString *arg2 = 0 ;
5366 bool temp2 = False ;
5367 PyObject * obj0 = 0 ;
5368 PyObject * obj1 = 0 ;
5369 char *kwnames[] = {
5370 (char *) "self",(char *) "items", NULL
5371 };
5372
5373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5375 {
5376 if (! PySequence_Check(obj1)) {
5377 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5378 SWIG_fail;
5379 }
5380 arg2 = new wxArrayString;
5381 temp2 = True;
5382 int i, len=PySequence_Length(obj1);
5383 for (i=0; i<len; i++) {
5384 PyObject* item = PySequence_GetItem(obj1, i);
5385 #if wxUSE_UNICODE
5386 PyObject* str = PyObject_Unicode(item);
5387 #else
5388 PyObject* str = PyObject_Str(item);
5389 #endif
5390 arg2->Add(Py2wxString(str));
5391 Py_DECREF(item);
5392 Py_DECREF(str);
5393 }
5394 }
5395 {
5396 PyThreadState* __tstate = wxPyBeginAllowThreads();
5397 (arg1)->Set((wxArrayString const &)*arg2);
5398
5399 wxPyEndAllowThreads(__tstate);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 }
5402 Py_INCREF(Py_None); resultobj = Py_None;
5403 {
5404 if (temp2) delete arg2;
5405 }
5406 return resultobj;
5407 fail:
5408 {
5409 if (temp2) delete arg2;
5410 }
5411 return NULL;
5412 }
5413
5414
5415 static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5416 PyObject *resultobj;
5417 wxListBox *arg1 = (wxListBox *) 0 ;
5418 int arg2 ;
5419 bool result;
5420 PyObject * obj0 = 0 ;
5421 PyObject * obj1 = 0 ;
5422 char *kwnames[] = {
5423 (char *) "self",(char *) "n", NULL
5424 };
5425
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5428 {
5429 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 {
5433 PyThreadState* __tstate = wxPyBeginAllowThreads();
5434 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5435
5436 wxPyEndAllowThreads(__tstate);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 }
5439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5440 return resultobj;
5441 fail:
5442 return NULL;
5443 }
5444
5445
5446 static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5447 PyObject *resultobj;
5448 wxListBox *arg1 = (wxListBox *) 0 ;
5449 int arg2 ;
5450 bool arg3 = (bool) True ;
5451 PyObject * obj0 = 0 ;
5452 PyObject * obj1 = 0 ;
5453 PyObject * obj2 = 0 ;
5454 char *kwnames[] = {
5455 (char *) "self",(char *) "n",(char *) "select", NULL
5456 };
5457
5458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5460 {
5461 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 if (obj2) {
5465 {
5466 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 }
5470 {
5471 PyThreadState* __tstate = wxPyBeginAllowThreads();
5472 (arg1)->SetSelection(arg2,arg3);
5473
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 Py_INCREF(Py_None); resultobj = Py_None;
5478 return resultobj;
5479 fail:
5480 return NULL;
5481 }
5482
5483
5484 static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5485 PyObject *resultobj;
5486 wxListBox *arg1 = (wxListBox *) 0 ;
5487 int arg2 ;
5488 PyObject * obj0 = 0 ;
5489 PyObject * obj1 = 0 ;
5490 char *kwnames[] = {
5491 (char *) "self",(char *) "n", NULL
5492 };
5493
5494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5496 {
5497 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 (arg1)->Select(arg2);
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 Py_INCREF(Py_None); resultobj = Py_None;
5508 return resultobj;
5509 fail:
5510 return NULL;
5511 }
5512
5513
5514 static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj;
5516 wxListBox *arg1 = (wxListBox *) 0 ;
5517 int arg2 ;
5518 PyObject * obj0 = 0 ;
5519 PyObject * obj1 = 0 ;
5520 char *kwnames[] = {
5521 (char *) "self",(char *) "n", NULL
5522 };
5523
5524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
5525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5526 {
5527 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 (arg1)->Deselect(arg2);
5533
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 Py_INCREF(Py_None); resultobj = Py_None;
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj;
5546 wxListBox *arg1 = (wxListBox *) 0 ;
5547 int arg2 = (int) -1 ;
5548 PyObject * obj0 = 0 ;
5549 PyObject * obj1 = 0 ;
5550 char *kwnames[] = {
5551 (char *) "self",(char *) "itemToLeaveSelected", NULL
5552 };
5553
5554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
5555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5556 if (obj1) {
5557 {
5558 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 }
5562 {
5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
5564 (arg1)->DeselectAll(arg2);
5565
5566 wxPyEndAllowThreads(__tstate);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 }
5569 Py_INCREF(Py_None); resultobj = Py_None;
5570 return resultobj;
5571 fail:
5572 return NULL;
5573 }
5574
5575
5576 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5577 PyObject *resultobj;
5578 wxListBox *arg1 = (wxListBox *) 0 ;
5579 wxString *arg2 = 0 ;
5580 bool arg3 = (bool) True ;
5581 bool result;
5582 bool temp2 = False ;
5583 PyObject * obj0 = 0 ;
5584 PyObject * obj1 = 0 ;
5585 PyObject * obj2 = 0 ;
5586 char *kwnames[] = {
5587 (char *) "self",(char *) "s",(char *) "select", NULL
5588 };
5589
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5592 {
5593 arg2 = wxString_in_helper(obj1);
5594 if (arg2 == NULL) SWIG_fail;
5595 temp2 = True;
5596 }
5597 if (obj2) {
5598 {
5599 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
5602 }
5603 {
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
5606
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) SWIG_fail;
5609 }
5610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5611 {
5612 if (temp2)
5613 delete arg2;
5614 }
5615 return resultobj;
5616 fail:
5617 {
5618 if (temp2)
5619 delete arg2;
5620 }
5621 return NULL;
5622 }
5623
5624
5625 static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj;
5627 wxListBox *arg1 = (wxListBox *) 0 ;
5628 PyObject *result;
5629 PyObject * obj0 = 0 ;
5630 char *kwnames[] = {
5631 (char *) "self", NULL
5632 };
5633
5634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
5635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5636 {
5637 PyThreadState* __tstate = wxPyBeginAllowThreads();
5638 result = (PyObject *)wxListBox_GetSelections(arg1);
5639
5640 wxPyEndAllowThreads(__tstate);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 }
5643 resultobj = result;
5644 return resultobj;
5645 fail:
5646 return NULL;
5647 }
5648
5649
5650 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5651 PyObject *resultobj;
5652 wxListBox *arg1 = (wxListBox *) 0 ;
5653 int arg2 ;
5654 PyObject * obj0 = 0 ;
5655 PyObject * obj1 = 0 ;
5656 char *kwnames[] = {
5657 (char *) "self",(char *) "n", NULL
5658 };
5659
5660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
5661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5662 {
5663 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 (arg1)->SetFirstItem(arg2);
5669
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 Py_INCREF(Py_None); resultobj = Py_None;
5674 return resultobj;
5675 fail:
5676 return NULL;
5677 }
5678
5679
5680 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj;
5682 wxListBox *arg1 = (wxListBox *) 0 ;
5683 wxString *arg2 = 0 ;
5684 bool temp2 = False ;
5685 PyObject * obj0 = 0 ;
5686 PyObject * obj1 = 0 ;
5687 char *kwnames[] = {
5688 (char *) "self",(char *) "s", NULL
5689 };
5690
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
5692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5693 {
5694 arg2 = wxString_in_helper(obj1);
5695 if (arg2 == NULL) SWIG_fail;
5696 temp2 = True;
5697 }
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 (arg1)->SetFirstItem((wxString const &)*arg2);
5701
5702 wxPyEndAllowThreads(__tstate);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 }
5705 Py_INCREF(Py_None); resultobj = Py_None;
5706 {
5707 if (temp2)
5708 delete arg2;
5709 }
5710 return resultobj;
5711 fail:
5712 {
5713 if (temp2)
5714 delete arg2;
5715 }
5716 return NULL;
5717 }
5718
5719
5720 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5721 PyObject *resultobj;
5722 wxListBox *arg1 = (wxListBox *) 0 ;
5723 int arg2 ;
5724 PyObject * obj0 = 0 ;
5725 PyObject * obj1 = 0 ;
5726 char *kwnames[] = {
5727 (char *) "self",(char *) "n", NULL
5728 };
5729
5730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5732 {
5733 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5734 if (PyErr_Occurred()) SWIG_fail;
5735 }
5736 {
5737 PyThreadState* __tstate = wxPyBeginAllowThreads();
5738 (arg1)->EnsureVisible(arg2);
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_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5751 PyObject *resultobj;
5752 wxListBox *arg1 = (wxListBox *) 0 ;
5753 wxString *arg2 = 0 ;
5754 bool temp2 = False ;
5755 PyObject * obj0 = 0 ;
5756 PyObject * obj1 = 0 ;
5757 char *kwnames[] = {
5758 (char *) "self",(char *) "s", NULL
5759 };
5760
5761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
5762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5763 {
5764 arg2 = wxString_in_helper(obj1);
5765 if (arg2 == NULL) SWIG_fail;
5766 temp2 = True;
5767 }
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
5771
5772 wxPyEndAllowThreads(__tstate);
5773 if (PyErr_Occurred()) SWIG_fail;
5774 }
5775 Py_INCREF(Py_None); resultobj = Py_None;
5776 {
5777 if (temp2)
5778 delete arg2;
5779 }
5780 return resultobj;
5781 fail:
5782 {
5783 if (temp2)
5784 delete arg2;
5785 }
5786 return NULL;
5787 }
5788
5789
5790 static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
5791 PyObject *resultobj;
5792 wxListBox *arg1 = (wxListBox *) 0 ;
5793 bool result;
5794 PyObject * obj0 = 0 ;
5795 char *kwnames[] = {
5796 (char *) "self", NULL
5797 };
5798
5799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
5800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5801 {
5802 PyThreadState* __tstate = wxPyBeginAllowThreads();
5803 result = (bool)((wxListBox const *)arg1)->IsSorted();
5804
5805 wxPyEndAllowThreads(__tstate);
5806 if (PyErr_Occurred()) SWIG_fail;
5807 }
5808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5809 return resultobj;
5810 fail:
5811 return NULL;
5812 }
5813
5814
5815 static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
5816 PyObject *obj;
5817 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5818 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
5819 Py_INCREF(obj);
5820 return Py_BuildValue((char *)"");
5821 }
5822 static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5823 PyObject *resultobj;
5824 wxWindow *arg1 = (wxWindow *) 0 ;
5825 int arg2 ;
5826 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5827 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5828 wxSize const &arg4_defvalue = wxDefaultSize ;
5829 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5830 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5831 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5832 long arg6 = (long) 0 ;
5833 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5834 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5835 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5836 wxString *arg8 = (wxString *) &arg8_defvalue ;
5837 wxCheckListBox *result;
5838 wxPoint temp3 ;
5839 wxSize temp4 ;
5840 bool temp5 = False ;
5841 bool temp8 = False ;
5842 PyObject * obj0 = 0 ;
5843 PyObject * obj1 = 0 ;
5844 PyObject * obj2 = 0 ;
5845 PyObject * obj3 = 0 ;
5846 PyObject * obj4 = 0 ;
5847 PyObject * obj5 = 0 ;
5848 PyObject * obj6 = 0 ;
5849 PyObject * obj7 = 0 ;
5850 char *kwnames[] = {
5851 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5852 };
5853
5854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5856 {
5857 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
5860 if (obj2) {
5861 {
5862 arg3 = &temp3;
5863 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5864 }
5865 }
5866 if (obj3) {
5867 {
5868 arg4 = &temp4;
5869 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5870 }
5871 }
5872 if (obj4) {
5873 {
5874 if (! PySequence_Check(obj4)) {
5875 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5876 SWIG_fail;
5877 }
5878 arg5 = new wxArrayString;
5879 temp5 = True;
5880 int i, len=PySequence_Length(obj4);
5881 for (i=0; i<len; i++) {
5882 PyObject* item = PySequence_GetItem(obj4, i);
5883 #if wxUSE_UNICODE
5884 PyObject* str = PyObject_Unicode(item);
5885 #else
5886 PyObject* str = PyObject_Str(item);
5887 #endif
5888 arg5->Add(Py2wxString(str));
5889 Py_DECREF(item);
5890 Py_DECREF(str);
5891 }
5892 }
5893 }
5894 if (obj5) {
5895 {
5896 arg6 = (long) SWIG_PyObj_AsLong(obj5);
5897 if (PyErr_Occurred()) SWIG_fail;
5898 }
5899 }
5900 if (obj6) {
5901 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5902 if (arg7 == NULL) {
5903 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5904 }
5905 }
5906 if (obj7) {
5907 {
5908 arg8 = wxString_in_helper(obj7);
5909 if (arg8 == NULL) SWIG_fail;
5910 temp8 = True;
5911 }
5912 }
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5916
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1);
5921 {
5922 if (temp5) delete arg5;
5923 }
5924 {
5925 if (temp8)
5926 delete arg8;
5927 }
5928 return resultobj;
5929 fail:
5930 {
5931 if (temp5) delete arg5;
5932 }
5933 {
5934 if (temp8)
5935 delete arg8;
5936 }
5937 return NULL;
5938 }
5939
5940
5941 static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5942 PyObject *resultobj;
5943 wxCheckListBox *result;
5944 char *kwnames[] = {
5945 NULL
5946 };
5947
5948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
5949 {
5950 PyThreadState* __tstate = wxPyBeginAllowThreads();
5951 result = (wxCheckListBox *)new wxCheckListBox();
5952
5953 wxPyEndAllowThreads(__tstate);
5954 if (PyErr_Occurred()) SWIG_fail;
5955 }
5956 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1);
5957 return resultobj;
5958 fail:
5959 return NULL;
5960 }
5961
5962
5963 static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5964 PyObject *resultobj;
5965 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
5966 wxWindow *arg2 = (wxWindow *) 0 ;
5967 int arg3 ;
5968 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5969 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5970 wxSize const &arg5_defvalue = wxDefaultSize ;
5971 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5972 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5973 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5974 long arg7 = (long) 0 ;
5975 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5976 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5977 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5978 wxString *arg9 = (wxString *) &arg9_defvalue ;
5979 bool result;
5980 wxPoint temp4 ;
5981 wxSize temp5 ;
5982 bool temp6 = False ;
5983 bool temp9 = False ;
5984 PyObject * obj0 = 0 ;
5985 PyObject * obj1 = 0 ;
5986 PyObject * obj2 = 0 ;
5987 PyObject * obj3 = 0 ;
5988 PyObject * obj4 = 0 ;
5989 PyObject * obj5 = 0 ;
5990 PyObject * obj6 = 0 ;
5991 PyObject * obj7 = 0 ;
5992 PyObject * obj8 = 0 ;
5993 char *kwnames[] = {
5994 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5995 };
5996
5997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5999 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6000 {
6001 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6002 if (PyErr_Occurred()) SWIG_fail;
6003 }
6004 if (obj3) {
6005 {
6006 arg4 = &temp4;
6007 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6008 }
6009 }
6010 if (obj4) {
6011 {
6012 arg5 = &temp5;
6013 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6014 }
6015 }
6016 if (obj5) {
6017 {
6018 if (! PySequence_Check(obj5)) {
6019 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6020 SWIG_fail;
6021 }
6022 arg6 = new wxArrayString;
6023 temp6 = True;
6024 int i, len=PySequence_Length(obj5);
6025 for (i=0; i<len; i++) {
6026 PyObject* item = PySequence_GetItem(obj5, i);
6027 #if wxUSE_UNICODE
6028 PyObject* str = PyObject_Unicode(item);
6029 #else
6030 PyObject* str = PyObject_Str(item);
6031 #endif
6032 arg6->Add(Py2wxString(str));
6033 Py_DECREF(item);
6034 Py_DECREF(str);
6035 }
6036 }
6037 }
6038 if (obj6) {
6039 {
6040 arg7 = (long) SWIG_PyObj_AsLong(obj6);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 }
6044 if (obj7) {
6045 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6046 if (arg8 == NULL) {
6047 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6048 }
6049 }
6050 if (obj8) {
6051 {
6052 arg9 = wxString_in_helper(obj8);
6053 if (arg9 == NULL) SWIG_fail;
6054 temp9 = True;
6055 }
6056 }
6057 {
6058 PyThreadState* __tstate = wxPyBeginAllowThreads();
6059 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6060
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6065 {
6066 if (temp6) delete arg6;
6067 }
6068 {
6069 if (temp9)
6070 delete arg9;
6071 }
6072 return resultobj;
6073 fail:
6074 {
6075 if (temp6) delete arg6;
6076 }
6077 {
6078 if (temp9)
6079 delete arg9;
6080 }
6081 return NULL;
6082 }
6083
6084
6085 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj;
6087 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6088 int arg2 ;
6089 bool result;
6090 PyObject * obj0 = 0 ;
6091 PyObject * obj1 = 0 ;
6092 char *kwnames[] = {
6093 (char *) "self",(char *) "index", NULL
6094 };
6095
6096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6098 {
6099 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 {
6103 PyThreadState* __tstate = wxPyBeginAllowThreads();
6104 result = (bool)(arg1)->IsChecked(arg2);
6105
6106 wxPyEndAllowThreads(__tstate);
6107 if (PyErr_Occurred()) SWIG_fail;
6108 }
6109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6110 return resultobj;
6111 fail:
6112 return NULL;
6113 }
6114
6115
6116 static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6117 PyObject *resultobj;
6118 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6119 int arg2 ;
6120 int arg3 = (int) True ;
6121 PyObject * obj0 = 0 ;
6122 PyObject * obj1 = 0 ;
6123 PyObject * obj2 = 0 ;
6124 char *kwnames[] = {
6125 (char *) "self",(char *) "index",(char *) "check", NULL
6126 };
6127
6128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6130 {
6131 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 if (obj2) {
6135 {
6136 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 }
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 (arg1)->Check(arg2,arg3);
6143
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 Py_INCREF(Py_None); resultobj = Py_None;
6148 return resultobj;
6149 fail:
6150 return NULL;
6151 }
6152
6153
6154 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6155 PyObject *resultobj;
6156 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6157 int result;
6158 PyObject * obj0 = 0 ;
6159 char *kwnames[] = {
6160 (char *) "self", NULL
6161 };
6162
6163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
6164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6165 {
6166 PyThreadState* __tstate = wxPyBeginAllowThreads();
6167 result = (int)(arg1)->GetItemHeight();
6168
6169 wxPyEndAllowThreads(__tstate);
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = SWIG_PyObj_FromInt((int)result);
6173 return resultobj;
6174 fail:
6175 return NULL;
6176 }
6177
6178
6179 static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj;
6181 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6182 wxPoint *arg2 = 0 ;
6183 int result;
6184 wxPoint temp2 ;
6185 PyObject * obj0 = 0 ;
6186 PyObject * obj1 = 0 ;
6187 char *kwnames[] = {
6188 (char *) "self",(char *) "pt", NULL
6189 };
6190
6191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6193 {
6194 arg2 = &temp2;
6195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6196 }
6197 {
6198 PyThreadState* __tstate = wxPyBeginAllowThreads();
6199 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6200
6201 wxPyEndAllowThreads(__tstate);
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = SWIG_PyObj_FromInt((int)result);
6205 return resultobj;
6206 fail:
6207 return NULL;
6208 }
6209
6210
6211 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6212 PyObject *resultobj;
6213 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6214 int arg2 ;
6215 int arg3 ;
6216 int result;
6217 PyObject * obj0 = 0 ;
6218 PyObject * obj1 = 0 ;
6219 PyObject * obj2 = 0 ;
6220 char *kwnames[] = {
6221 (char *) "self",(char *) "x",(char *) "y", NULL
6222 };
6223
6224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6226 {
6227 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 {
6231 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 {
6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
6236 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6237
6238 wxPyEndAllowThreads(__tstate);
6239 if (PyErr_Occurred()) SWIG_fail;
6240 }
6241 resultobj = SWIG_PyObj_FromInt((int)result);
6242 return resultobj;
6243 fail:
6244 return NULL;
6245 }
6246
6247
6248 static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6249 PyObject *obj;
6250 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6251 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6252 Py_INCREF(obj);
6253 return Py_BuildValue((char *)"");
6254 }
6255 static int _wrap_TextCtrlNameStr_set(PyObject *) {
6256 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6257 return 1;
6258 }
6259
6260
6261 static PyObject *_wrap_TextCtrlNameStr_get() {
6262 PyObject *pyobj;
6263
6264 {
6265 #if wxUSE_UNICODE
6266 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6267 #else
6268 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6269 #endif
6270 }
6271 return pyobj;
6272 }
6273
6274
6275 static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6276 PyObject *resultobj;
6277 wxTextAttr *result;
6278
6279 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 result = (wxTextAttr *)new wxTextAttr();
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1);
6288 return resultobj;
6289 fail:
6290 return NULL;
6291 }
6292
6293
6294 static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6295 PyObject *resultobj;
6296 wxColour *arg1 = 0 ;
6297 wxColour const &arg2_defvalue = wxNullColour ;
6298 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6299 wxFont const &arg3_defvalue = wxNullFont ;
6300 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6301 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6302 wxTextAttr *result;
6303 wxColour temp1 ;
6304 wxColour temp2 ;
6305 PyObject * obj0 = 0 ;
6306 PyObject * obj1 = 0 ;
6307 PyObject * obj2 = 0 ;
6308 PyObject * obj3 = 0 ;
6309
6310 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6311 {
6312 arg1 = &temp1;
6313 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6314 }
6315 if (obj1) {
6316 {
6317 arg2 = &temp2;
6318 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6319 }
6320 }
6321 if (obj2) {
6322 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6323 if (arg3 == NULL) {
6324 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6325 }
6326 }
6327 if (obj3) {
6328 {
6329 arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3);
6330 if (PyErr_Occurred()) SWIG_fail;
6331 }
6332 }
6333 {
6334 PyThreadState* __tstate = wxPyBeginAllowThreads();
6335 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6336
6337 wxPyEndAllowThreads(__tstate);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1);
6341 return resultobj;
6342 fail:
6343 return NULL;
6344 }
6345
6346
6347 static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6348 int argc;
6349 PyObject *argv[5];
6350 int ii;
6351
6352 argc = PyObject_Length(args);
6353 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6354 argv[ii] = PyTuple_GetItem(args,ii);
6355 }
6356 if (argc == 0) {
6357 return _wrap_new_TextAttr__SWIG_0(self,args);
6358 }
6359 if ((argc >= 1) && (argc <= 4)) {
6360 int _v;
6361 {
6362 _v = wxColour_typecheck(argv[0]);
6363 }
6364 if (_v) {
6365 if (argc <= 1) {
6366 return _wrap_new_TextAttr__SWIG_1(self,args);
6367 }
6368 {
6369 _v = wxColour_typecheck(argv[1]);
6370 }
6371 if (_v) {
6372 if (argc <= 2) {
6373 return _wrap_new_TextAttr__SWIG_1(self,args);
6374 }
6375 {
6376 void *ptr;
6377 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6378 _v = 0;
6379 PyErr_Clear();
6380 } else {
6381 _v = 1;
6382 }
6383 }
6384 if (_v) {
6385 if (argc <= 3) {
6386 return _wrap_new_TextAttr__SWIG_1(self,args);
6387 }
6388 {
6389 SWIG_PyObj_AsInt(argv[3]);
6390 if (PyErr_Occurred()) {
6391 _v = 0;
6392 PyErr_Clear();
6393 } else {
6394 _v = 1;
6395 }
6396 }
6397 if (_v) {
6398 return _wrap_new_TextAttr__SWIG_1(self,args);
6399 }
6400 }
6401 }
6402 }
6403 }
6404
6405 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6406 return NULL;
6407 }
6408
6409
6410 static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6411 PyObject *resultobj;
6412 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6413 PyObject * obj0 = 0 ;
6414 char *kwnames[] = {
6415 (char *) "self", NULL
6416 };
6417
6418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
6419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 delete arg1;
6423
6424 wxPyEndAllowThreads(__tstate);
6425 if (PyErr_Occurred()) SWIG_fail;
6426 }
6427 Py_INCREF(Py_None); resultobj = Py_None;
6428 return resultobj;
6429 fail:
6430 return NULL;
6431 }
6432
6433
6434 static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6435 PyObject *resultobj;
6436 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6437 PyObject * obj0 = 0 ;
6438 char *kwnames[] = {
6439 (char *) "self", NULL
6440 };
6441
6442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
6443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6444 {
6445 PyThreadState* __tstate = wxPyBeginAllowThreads();
6446 (arg1)->Init();
6447
6448 wxPyEndAllowThreads(__tstate);
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 Py_INCREF(Py_None); resultobj = Py_None;
6452 return resultobj;
6453 fail:
6454 return NULL;
6455 }
6456
6457
6458 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6459 PyObject *resultobj;
6460 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6461 wxColour *arg2 = 0 ;
6462 wxColour temp2 ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char *kwnames[] = {
6466 (char *) "self",(char *) "colText", NULL
6467 };
6468
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
6470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6471 {
6472 arg2 = &temp2;
6473 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6474 }
6475 {
6476 PyThreadState* __tstate = wxPyBeginAllowThreads();
6477 (arg1)->SetTextColour((wxColour const &)*arg2);
6478
6479 wxPyEndAllowThreads(__tstate);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 Py_INCREF(Py_None); resultobj = Py_None;
6483 return resultobj;
6484 fail:
6485 return NULL;
6486 }
6487
6488
6489 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6490 PyObject *resultobj;
6491 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6492 wxColour *arg2 = 0 ;
6493 wxColour temp2 ;
6494 PyObject * obj0 = 0 ;
6495 PyObject * obj1 = 0 ;
6496 char *kwnames[] = {
6497 (char *) "self",(char *) "colBack", NULL
6498 };
6499
6500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
6501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6502 {
6503 arg2 = &temp2;
6504 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6505 }
6506 {
6507 PyThreadState* __tstate = wxPyBeginAllowThreads();
6508 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
6509
6510 wxPyEndAllowThreads(__tstate);
6511 if (PyErr_Occurred()) SWIG_fail;
6512 }
6513 Py_INCREF(Py_None); resultobj = Py_None;
6514 return resultobj;
6515 fail:
6516 return NULL;
6517 }
6518
6519
6520 static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6521 PyObject *resultobj;
6522 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6523 wxFont *arg2 = 0 ;
6524 long arg3 = (long) wxTEXT_ATTR_FONT ;
6525 PyObject * obj0 = 0 ;
6526 PyObject * obj1 = 0 ;
6527 PyObject * obj2 = 0 ;
6528 char *kwnames[] = {
6529 (char *) "self",(char *) "font",(char *) "flags", NULL
6530 };
6531
6532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6534 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6535 if (arg2 == NULL) {
6536 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6537 }
6538 if (obj2) {
6539 {
6540 arg3 = (long) SWIG_PyObj_AsLong(obj2);
6541 if (PyErr_Occurred()) SWIG_fail;
6542 }
6543 }
6544 {
6545 PyThreadState* __tstate = wxPyBeginAllowThreads();
6546 (arg1)->SetFont((wxFont const &)*arg2,arg3);
6547
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 Py_INCREF(Py_None); resultobj = Py_None;
6552 return resultobj;
6553 fail:
6554 return NULL;
6555 }
6556
6557
6558 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6559 PyObject *resultobj;
6560 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6561 int arg2 ;
6562 PyObject * obj0 = 0 ;
6563 PyObject * obj1 = 0 ;
6564 char *kwnames[] = {
6565 (char *) "self",(char *) "alignment", NULL
6566 };
6567
6568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
6569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6570 {
6571 arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 {
6575 PyThreadState* __tstate = wxPyBeginAllowThreads();
6576 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
6577
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 Py_INCREF(Py_None); resultobj = Py_None;
6582 return resultobj;
6583 fail:
6584 return NULL;
6585 }
6586
6587
6588 static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6589 PyObject *resultobj;
6590 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6591 wxArrayInt *arg2 = 0 ;
6592 bool temp2 = False ;
6593 PyObject * obj0 = 0 ;
6594 PyObject * obj1 = 0 ;
6595 char *kwnames[] = {
6596 (char *) "self",(char *) "tabs", NULL
6597 };
6598
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
6600 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6601 {
6602 if (! PySequence_Check(obj1)) {
6603 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
6604 SWIG_fail;
6605 }
6606 arg2 = new wxArrayInt;
6607 temp2 = True;
6608 int i, len=PySequence_Length(obj1);
6609 for (i=0; i<len; i++) {
6610 PyObject* item = PySequence_GetItem(obj1, i);
6611 PyObject* number = PyNumber_Int(item);
6612 arg2->Add(PyInt_AS_LONG(number));
6613 Py_DECREF(item);
6614 Py_DECREF(number);
6615 }
6616 }
6617 {
6618 PyThreadState* __tstate = wxPyBeginAllowThreads();
6619 (arg1)->SetTabs((wxArrayInt const &)*arg2);
6620
6621 wxPyEndAllowThreads(__tstate);
6622 if (PyErr_Occurred()) SWIG_fail;
6623 }
6624 Py_INCREF(Py_None); resultobj = Py_None;
6625 {
6626 if (temp2) delete arg2;
6627 }
6628 return resultobj;
6629 fail:
6630 {
6631 if (temp2) delete arg2;
6632 }
6633 return NULL;
6634 }
6635
6636
6637 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj;
6639 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6640 int arg2 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char *kwnames[] = {
6644 (char *) "self",(char *) "indent", NULL
6645 };
6646
6647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
6648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6649 {
6650 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6651 if (PyErr_Occurred()) SWIG_fail;
6652 }
6653 {
6654 PyThreadState* __tstate = wxPyBeginAllowThreads();
6655 (arg1)->SetLeftIndent(arg2);
6656
6657 wxPyEndAllowThreads(__tstate);
6658 if (PyErr_Occurred()) SWIG_fail;
6659 }
6660 Py_INCREF(Py_None); resultobj = Py_None;
6661 return resultobj;
6662 fail:
6663 return NULL;
6664 }
6665
6666
6667 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6668 PyObject *resultobj;
6669 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6670 int arg2 ;
6671 PyObject * obj0 = 0 ;
6672 PyObject * obj1 = 0 ;
6673 char *kwnames[] = {
6674 (char *) "self",(char *) "indent", NULL
6675 };
6676
6677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
6678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6679 {
6680 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6681 if (PyErr_Occurred()) SWIG_fail;
6682 }
6683 {
6684 PyThreadState* __tstate = wxPyBeginAllowThreads();
6685 (arg1)->SetRightIndent(arg2);
6686
6687 wxPyEndAllowThreads(__tstate);
6688 if (PyErr_Occurred()) SWIG_fail;
6689 }
6690 Py_INCREF(Py_None); resultobj = Py_None;
6691 return resultobj;
6692 fail:
6693 return NULL;
6694 }
6695
6696
6697 static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
6698 PyObject *resultobj;
6699 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6700 long arg2 ;
6701 PyObject * obj0 = 0 ;
6702 PyObject * obj1 = 0 ;
6703 char *kwnames[] = {
6704 (char *) "self",(char *) "flags", NULL
6705 };
6706
6707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
6708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6709 {
6710 arg2 = (long) SWIG_PyObj_AsLong(obj1);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 {
6714 PyThreadState* __tstate = wxPyBeginAllowThreads();
6715 (arg1)->SetFlags(arg2);
6716
6717 wxPyEndAllowThreads(__tstate);
6718 if (PyErr_Occurred()) SWIG_fail;
6719 }
6720 Py_INCREF(Py_None); resultobj = Py_None;
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj;
6729 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6730 bool result;
6731 PyObject * obj0 = 0 ;
6732 char *kwnames[] = {
6733 (char *) "self", NULL
6734 };
6735
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
6737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
6741
6742 wxPyEndAllowThreads(__tstate);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6746 return resultobj;
6747 fail:
6748 return NULL;
6749 }
6750
6751
6752 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj;
6754 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6755 bool result;
6756 PyObject * obj0 = 0 ;
6757 char *kwnames[] = {
6758 (char *) "self", NULL
6759 };
6760
6761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
6762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6763 {
6764 PyThreadState* __tstate = wxPyBeginAllowThreads();
6765 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
6766
6767 wxPyEndAllowThreads(__tstate);
6768 if (PyErr_Occurred()) SWIG_fail;
6769 }
6770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6771 return resultobj;
6772 fail:
6773 return NULL;
6774 }
6775
6776
6777 static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6778 PyObject *resultobj;
6779 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6780 bool result;
6781 PyObject * obj0 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
6787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6788 {
6789 PyThreadState* __tstate = wxPyBeginAllowThreads();
6790 result = (bool)((wxTextAttr const *)arg1)->HasFont();
6791
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6796 return resultobj;
6797 fail:
6798 return NULL;
6799 }
6800
6801
6802 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj;
6804 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6805 bool result;
6806 PyObject * obj0 = 0 ;
6807 char *kwnames[] = {
6808 (char *) "self", NULL
6809 };
6810
6811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
6812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6813 {
6814 PyThreadState* __tstate = wxPyBeginAllowThreads();
6815 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
6816
6817 wxPyEndAllowThreads(__tstate);
6818 if (PyErr_Occurred()) SWIG_fail;
6819 }
6820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6821 return resultobj;
6822 fail:
6823 return NULL;
6824 }
6825
6826
6827 static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6828 PyObject *resultobj;
6829 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6830 bool result;
6831 PyObject * obj0 = 0 ;
6832 char *kwnames[] = {
6833 (char *) "self", NULL
6834 };
6835
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
6837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6846 return resultobj;
6847 fail:
6848 return NULL;
6849 }
6850
6851
6852 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj;
6854 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6855 bool result;
6856 PyObject * obj0 = 0 ;
6857 char *kwnames[] = {
6858 (char *) "self", NULL
6859 };
6860
6861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
6862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6863 {
6864 PyThreadState* __tstate = wxPyBeginAllowThreads();
6865 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
6866
6867 wxPyEndAllowThreads(__tstate);
6868 if (PyErr_Occurred()) SWIG_fail;
6869 }
6870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6871 return resultobj;
6872 fail:
6873 return NULL;
6874 }
6875
6876
6877 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6878 PyObject *resultobj;
6879 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6880 bool result;
6881 PyObject * obj0 = 0 ;
6882 char *kwnames[] = {
6883 (char *) "self", NULL
6884 };
6885
6886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
6887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6888 {
6889 PyThreadState* __tstate = wxPyBeginAllowThreads();
6890 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
6891
6892 wxPyEndAllowThreads(__tstate);
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
6895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6896 return resultobj;
6897 fail:
6898 return NULL;
6899 }
6900
6901
6902 static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
6903 PyObject *resultobj;
6904 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6905 long arg2 ;
6906 bool result;
6907 PyObject * obj0 = 0 ;
6908 PyObject * obj1 = 0 ;
6909 char *kwnames[] = {
6910 (char *) "self",(char *) "flag", NULL
6911 };
6912
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
6914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6915 {
6916 arg2 = (long) SWIG_PyObj_AsLong(obj1);
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 {
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
6922
6923 wxPyEndAllowThreads(__tstate);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6927 return resultobj;
6928 fail:
6929 return NULL;
6930 }
6931
6932
6933 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6934 PyObject *resultobj;
6935 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6936 wxColour *result;
6937 PyObject * obj0 = 0 ;
6938 char *kwnames[] = {
6939 (char *) "self", NULL
6940 };
6941
6942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
6943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6944 {
6945 PyThreadState* __tstate = wxPyBeginAllowThreads();
6946 {
6947 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
6948 result = (wxColour *) &_result_ref;
6949 }
6950
6951 wxPyEndAllowThreads(__tstate);
6952 if (PyErr_Occurred()) SWIG_fail;
6953 }
6954 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
6955 return resultobj;
6956 fail:
6957 return NULL;
6958 }
6959
6960
6961 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6962 PyObject *resultobj;
6963 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6964 wxColour *result;
6965 PyObject * obj0 = 0 ;
6966 char *kwnames[] = {
6967 (char *) "self", NULL
6968 };
6969
6970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
6971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6972 {
6973 PyThreadState* __tstate = wxPyBeginAllowThreads();
6974 {
6975 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
6976 result = (wxColour *) &_result_ref;
6977 }
6978
6979 wxPyEndAllowThreads(__tstate);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
6983 return resultobj;
6984 fail:
6985 return NULL;
6986 }
6987
6988
6989 static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6990 PyObject *resultobj;
6991 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
6992 wxFont *result;
6993 PyObject * obj0 = 0 ;
6994 char *kwnames[] = {
6995 (char *) "self", NULL
6996 };
6997
6998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
6999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 {
7003 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7004 result = (wxFont *) &_result_ref;
7005 }
7006
7007 wxPyEndAllowThreads(__tstate);
7008 if (PyErr_Occurred()) SWIG_fail;
7009 }
7010 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
7011 return resultobj;
7012 fail:
7013 return NULL;
7014 }
7015
7016
7017 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj;
7019 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7020 int result;
7021 PyObject * obj0 = 0 ;
7022 char *kwnames[] = {
7023 (char *) "self", NULL
7024 };
7025
7026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7027 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
7030 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7031
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_PyObj_FromInt((int)result);
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj;
7044 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7045 wxArrayInt *result;
7046 PyObject * obj0 = 0 ;
7047 char *kwnames[] = {
7048 (char *) "self", NULL
7049 };
7050
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7053 {
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 {
7056 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7057 result = (wxArrayInt *) &_result_ref;
7058 }
7059
7060 wxPyEndAllowThreads(__tstate);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 {
7064 resultobj = PyList_New(0);
7065 size_t idx;
7066 for (idx = 0; idx < result->GetCount(); idx += 1) {
7067 PyObject* val = PyInt_FromLong( result->Item(idx) );
7068 PyList_Append(resultobj, val);
7069 Py_DECREF(val);
7070 }
7071 }
7072 return resultobj;
7073 fail:
7074 return NULL;
7075 }
7076
7077
7078 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7079 PyObject *resultobj;
7080 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7081 long result;
7082 PyObject * obj0 = 0 ;
7083 char *kwnames[] = {
7084 (char *) "self", NULL
7085 };
7086
7087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7092
7093 wxPyEndAllowThreads(__tstate);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 resultobj = SWIG_PyObj_FromLong((long)result);
7097 return resultobj;
7098 fail:
7099 return NULL;
7100 }
7101
7102
7103 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj;
7105 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7106 long result;
7107 PyObject * obj0 = 0 ;
7108 char *kwnames[] = {
7109 (char *) "self", NULL
7110 };
7111
7112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7114 {
7115 PyThreadState* __tstate = wxPyBeginAllowThreads();
7116 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7117
7118 wxPyEndAllowThreads(__tstate);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
7121 resultobj = SWIG_PyObj_FromLong((long)result);
7122 return resultobj;
7123 fail:
7124 return NULL;
7125 }
7126
7127
7128 static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7129 PyObject *resultobj;
7130 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7131 long result;
7132 PyObject * obj0 = 0 ;
7133 char *kwnames[] = {
7134 (char *) "self", NULL
7135 };
7136
7137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7139 {
7140 PyThreadState* __tstate = wxPyBeginAllowThreads();
7141 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7142
7143 wxPyEndAllowThreads(__tstate);
7144 if (PyErr_Occurred()) SWIG_fail;
7145 }
7146 resultobj = SWIG_PyObj_FromLong((long)result);
7147 return resultobj;
7148 fail:
7149 return NULL;
7150 }
7151
7152
7153 static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7154 PyObject *resultobj;
7155 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7156 bool result;
7157 PyObject * obj0 = 0 ;
7158 char *kwnames[] = {
7159 (char *) "self", NULL
7160 };
7161
7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7164 {
7165 PyThreadState* __tstate = wxPyBeginAllowThreads();
7166 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7167
7168 wxPyEndAllowThreads(__tstate);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
7171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7172 return resultobj;
7173 fail:
7174 return NULL;
7175 }
7176
7177
7178 static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj;
7180 wxTextAttr *arg1 = 0 ;
7181 wxTextAttr *arg2 = 0 ;
7182 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7183 wxTextAttr result;
7184 PyObject * obj0 = 0 ;
7185 PyObject * obj1 = 0 ;
7186 PyObject * obj2 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7193 if (arg1 == NULL) {
7194 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7195 }
7196 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7197 if (arg2 == NULL) {
7198 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7199 }
7200 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7201 {
7202 PyThreadState* __tstate = wxPyBeginAllowThreads();
7203 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7204
7205 wxPyEndAllowThreads(__tstate);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 {
7209 wxTextAttr * resultptr;
7210 resultptr = new wxTextAttr((wxTextAttr &) result);
7211 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1);
7212 }
7213 return resultobj;
7214 fail:
7215 return NULL;
7216 }
7217
7218
7219 static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7220 PyObject *obj;
7221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7222 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7223 Py_INCREF(obj);
7224 return Py_BuildValue((char *)"");
7225 }
7226 static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7227 PyObject *resultobj;
7228 wxWindow *arg1 = (wxWindow *) 0 ;
7229 int arg2 ;
7230 wxString const &arg3_defvalue = wxPyEmptyString ;
7231 wxString *arg3 = (wxString *) &arg3_defvalue ;
7232 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7233 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7234 wxSize const &arg5_defvalue = wxDefaultSize ;
7235 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7236 long arg6 = (long) 0 ;
7237 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7238 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7239 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7240 wxString *arg8 = (wxString *) &arg8_defvalue ;
7241 wxTextCtrl *result;
7242 bool temp3 = False ;
7243 wxPoint temp4 ;
7244 wxSize temp5 ;
7245 bool temp8 = False ;
7246 PyObject * obj0 = 0 ;
7247 PyObject * obj1 = 0 ;
7248 PyObject * obj2 = 0 ;
7249 PyObject * obj3 = 0 ;
7250 PyObject * obj4 = 0 ;
7251 PyObject * obj5 = 0 ;
7252 PyObject * obj6 = 0 ;
7253 PyObject * obj7 = 0 ;
7254 char *kwnames[] = {
7255 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7256 };
7257
7258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7260 {
7261 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 if (obj2) {
7265 {
7266 arg3 = wxString_in_helper(obj2);
7267 if (arg3 == NULL) SWIG_fail;
7268 temp3 = True;
7269 }
7270 }
7271 if (obj3) {
7272 {
7273 arg4 = &temp4;
7274 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7275 }
7276 }
7277 if (obj4) {
7278 {
7279 arg5 = &temp5;
7280 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7281 }
7282 }
7283 if (obj5) {
7284 {
7285 arg6 = (long) SWIG_PyObj_AsLong(obj5);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 }
7289 if (obj6) {
7290 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7291 if (arg7 == NULL) {
7292 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7293 }
7294 }
7295 if (obj7) {
7296 {
7297 arg8 = wxString_in_helper(obj7);
7298 if (arg8 == NULL) SWIG_fail;
7299 temp8 = True;
7300 }
7301 }
7302 {
7303 PyThreadState* __tstate = wxPyBeginAllowThreads();
7304 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7305
7306 wxPyEndAllowThreads(__tstate);
7307 if (PyErr_Occurred()) SWIG_fail;
7308 }
7309 {
7310 resultobj = wxPyMake_wxObject(result);
7311 }
7312 {
7313 if (temp3)
7314 delete arg3;
7315 }
7316 {
7317 if (temp8)
7318 delete arg8;
7319 }
7320 return resultobj;
7321 fail:
7322 {
7323 if (temp3)
7324 delete arg3;
7325 }
7326 {
7327 if (temp8)
7328 delete arg8;
7329 }
7330 return NULL;
7331 }
7332
7333
7334 static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7335 PyObject *resultobj;
7336 wxTextCtrl *result;
7337 char *kwnames[] = {
7338 NULL
7339 };
7340
7341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
7342 {
7343 PyThreadState* __tstate = wxPyBeginAllowThreads();
7344 result = (wxTextCtrl *)new wxTextCtrl();
7345
7346 wxPyEndAllowThreads(__tstate);
7347 if (PyErr_Occurred()) SWIG_fail;
7348 }
7349 {
7350 resultobj = wxPyMake_wxObject(result);
7351 }
7352 return resultobj;
7353 fail:
7354 return NULL;
7355 }
7356
7357
7358 static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj;
7360 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7361 wxWindow *arg2 = (wxWindow *) 0 ;
7362 int arg3 ;
7363 wxString const &arg4_defvalue = wxPyEmptyString ;
7364 wxString *arg4 = (wxString *) &arg4_defvalue ;
7365 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7366 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7367 wxSize const &arg6_defvalue = wxDefaultSize ;
7368 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7369 long arg7 = (long) 0 ;
7370 wxValidator const &arg8_defvalue = wxDefaultValidator ;
7371 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
7372 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
7373 wxString *arg9 = (wxString *) &arg9_defvalue ;
7374 bool result;
7375 bool temp4 = False ;
7376 wxPoint temp5 ;
7377 wxSize temp6 ;
7378 bool temp9 = False ;
7379 PyObject * obj0 = 0 ;
7380 PyObject * obj1 = 0 ;
7381 PyObject * obj2 = 0 ;
7382 PyObject * obj3 = 0 ;
7383 PyObject * obj4 = 0 ;
7384 PyObject * obj5 = 0 ;
7385 PyObject * obj6 = 0 ;
7386 PyObject * obj7 = 0 ;
7387 PyObject * obj8 = 0 ;
7388 char *kwnames[] = {
7389 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7390 };
7391
7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
7393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7394 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7395 {
7396 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 if (obj3) {
7400 {
7401 arg4 = wxString_in_helper(obj3);
7402 if (arg4 == NULL) SWIG_fail;
7403 temp4 = True;
7404 }
7405 }
7406 if (obj4) {
7407 {
7408 arg5 = &temp5;
7409 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7410 }
7411 }
7412 if (obj5) {
7413 {
7414 arg6 = &temp6;
7415 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7416 }
7417 }
7418 if (obj6) {
7419 {
7420 arg7 = (long) SWIG_PyObj_AsLong(obj6);
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 }
7424 if (obj7) {
7425 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7426 if (arg8 == NULL) {
7427 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7428 }
7429 }
7430 if (obj8) {
7431 {
7432 arg9 = wxString_in_helper(obj8);
7433 if (arg9 == NULL) SWIG_fail;
7434 temp9 = True;
7435 }
7436 }
7437 {
7438 PyThreadState* __tstate = wxPyBeginAllowThreads();
7439 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7440
7441 wxPyEndAllowThreads(__tstate);
7442 if (PyErr_Occurred()) SWIG_fail;
7443 }
7444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7445 {
7446 if (temp4)
7447 delete arg4;
7448 }
7449 {
7450 if (temp9)
7451 delete arg9;
7452 }
7453 return resultobj;
7454 fail:
7455 {
7456 if (temp4)
7457 delete arg4;
7458 }
7459 {
7460 if (temp9)
7461 delete arg9;
7462 }
7463 return NULL;
7464 }
7465
7466
7467 static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7468 PyObject *resultobj;
7469 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7470 wxString result;
7471 PyObject * obj0 = 0 ;
7472 char *kwnames[] = {
7473 (char *) "self", NULL
7474 };
7475
7476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
7477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7478 {
7479 PyThreadState* __tstate = wxPyBeginAllowThreads();
7480 result = ((wxTextCtrl const *)arg1)->GetValue();
7481
7482 wxPyEndAllowThreads(__tstate);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 {
7486 #if wxUSE_UNICODE
7487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7488 #else
7489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7490 #endif
7491 }
7492 return resultobj;
7493 fail:
7494 return NULL;
7495 }
7496
7497
7498 static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7499 PyObject *resultobj;
7500 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7501 wxString *arg2 = 0 ;
7502 bool temp2 = False ;
7503 PyObject * obj0 = 0 ;
7504 PyObject * obj1 = 0 ;
7505 char *kwnames[] = {
7506 (char *) "self",(char *) "value", NULL
7507 };
7508
7509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
7510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7511 {
7512 arg2 = wxString_in_helper(obj1);
7513 if (arg2 == NULL) SWIG_fail;
7514 temp2 = True;
7515 }
7516 {
7517 PyThreadState* __tstate = wxPyBeginAllowThreads();
7518 (arg1)->SetValue((wxString const &)*arg2);
7519
7520 wxPyEndAllowThreads(__tstate);
7521 if (PyErr_Occurred()) SWIG_fail;
7522 }
7523 Py_INCREF(Py_None); resultobj = Py_None;
7524 {
7525 if (temp2)
7526 delete arg2;
7527 }
7528 return resultobj;
7529 fail:
7530 {
7531 if (temp2)
7532 delete arg2;
7533 }
7534 return NULL;
7535 }
7536
7537
7538 static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
7539 PyObject *resultobj;
7540 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7541 long arg2 ;
7542 long arg3 ;
7543 wxString result;
7544 PyObject * obj0 = 0 ;
7545 PyObject * obj1 = 0 ;
7546 PyObject * obj2 = 0 ;
7547 char *kwnames[] = {
7548 (char *) "self",(char *) "from",(char *) "to", NULL
7549 };
7550
7551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
7552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7553 {
7554 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7555 if (PyErr_Occurred()) SWIG_fail;
7556 }
7557 {
7558 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7559 if (PyErr_Occurred()) SWIG_fail;
7560 }
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 {
7569 #if wxUSE_UNICODE
7570 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7571 #else
7572 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7573 #endif
7574 }
7575 return resultobj;
7576 fail:
7577 return NULL;
7578 }
7579
7580
7581 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
7582 PyObject *resultobj;
7583 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7584 long arg2 ;
7585 int result;
7586 PyObject * obj0 = 0 ;
7587 PyObject * obj1 = 0 ;
7588 char *kwnames[] = {
7589 (char *) "self",(char *) "lineNo", NULL
7590 };
7591
7592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
7593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7594 {
7595 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7596 if (PyErr_Occurred()) SWIG_fail;
7597 }
7598 {
7599 PyThreadState* __tstate = wxPyBeginAllowThreads();
7600 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
7601
7602 wxPyEndAllowThreads(__tstate);
7603 if (PyErr_Occurred()) SWIG_fail;
7604 }
7605 resultobj = SWIG_PyObj_FromInt((int)result);
7606 return resultobj;
7607 fail:
7608 return NULL;
7609 }
7610
7611
7612 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
7613 PyObject *resultobj;
7614 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7615 long arg2 ;
7616 wxString result;
7617 PyObject * obj0 = 0 ;
7618 PyObject * obj1 = 0 ;
7619 char *kwnames[] = {
7620 (char *) "self",(char *) "lineNo", NULL
7621 };
7622
7623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
7624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7625 {
7626 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 {
7637 #if wxUSE_UNICODE
7638 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7639 #else
7640 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7641 #endif
7642 }
7643 return resultobj;
7644 fail:
7645 return NULL;
7646 }
7647
7648
7649 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7650 PyObject *resultobj;
7651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7652 int result;
7653 PyObject * obj0 = 0 ;
7654 char *kwnames[] = {
7655 (char *) "self", NULL
7656 };
7657
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
7659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7660 {
7661 PyThreadState* __tstate = wxPyBeginAllowThreads();
7662 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
7663
7664 wxPyEndAllowThreads(__tstate);
7665 if (PyErr_Occurred()) SWIG_fail;
7666 }
7667 resultobj = SWIG_PyObj_FromInt((int)result);
7668 return resultobj;
7669 fail:
7670 return NULL;
7671 }
7672
7673
7674 static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
7675 PyObject *resultobj;
7676 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7677 bool result;
7678 PyObject * obj0 = 0 ;
7679 char *kwnames[] = {
7680 (char *) "self", NULL
7681 };
7682
7683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
7684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7685 {
7686 PyThreadState* __tstate = wxPyBeginAllowThreads();
7687 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
7688
7689 wxPyEndAllowThreads(__tstate);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7693 return resultobj;
7694 fail:
7695 return NULL;
7696 }
7697
7698
7699 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7700 PyObject *resultobj;
7701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7702 bool result;
7703 PyObject * obj0 = 0 ;
7704 char *kwnames[] = {
7705 (char *) "self", NULL
7706 };
7707
7708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
7709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7710 {
7711 PyThreadState* __tstate = wxPyBeginAllowThreads();
7712 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
7713
7714 wxPyEndAllowThreads(__tstate);
7715 if (PyErr_Occurred()) SWIG_fail;
7716 }
7717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7718 return resultobj;
7719 fail:
7720 return NULL;
7721 }
7722
7723
7724 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7725 PyObject *resultobj;
7726 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7727 bool result;
7728 PyObject * obj0 = 0 ;
7729 char *kwnames[] = {
7730 (char *) "self", NULL
7731 };
7732
7733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
7734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7735 {
7736 PyThreadState* __tstate = wxPyBeginAllowThreads();
7737 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
7738
7739 wxPyEndAllowThreads(__tstate);
7740 if (PyErr_Occurred()) SWIG_fail;
7741 }
7742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7743 return resultobj;
7744 fail:
7745 return NULL;
7746 }
7747
7748
7749 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
7750 PyObject *resultobj;
7751 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7752 bool result;
7753 PyObject * obj0 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7760 {
7761 PyThreadState* __tstate = wxPyBeginAllowThreads();
7762 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
7763
7764 wxPyEndAllowThreads(__tstate);
7765 if (PyErr_Occurred()) SWIG_fail;
7766 }
7767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7768 return resultobj;
7769 fail:
7770 return NULL;
7771 }
7772
7773
7774 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7775 PyObject *resultobj;
7776 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7777 long *arg2 = (long *) 0 ;
7778 long *arg3 = (long *) 0 ;
7779 long temp2 ;
7780 long temp3 ;
7781 PyObject * obj0 = 0 ;
7782 char *kwnames[] = {
7783 (char *) "self", NULL
7784 };
7785
7786 arg2 = &temp2;
7787 arg3 = &temp3;
7788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
7789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 Py_INCREF(Py_None); resultobj = Py_None;
7798 {
7799 PyObject *o = PyInt_FromLong((long) (*arg2));
7800 resultobj = t_output_helper(resultobj,o);
7801 }
7802 {
7803 PyObject *o = PyInt_FromLong((long) (*arg3));
7804 resultobj = t_output_helper(resultobj,o);
7805 }
7806 return resultobj;
7807 fail:
7808 return NULL;
7809 }
7810
7811
7812 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7813 PyObject *resultobj;
7814 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7815 wxString result;
7816 PyObject * obj0 = 0 ;
7817 char *kwnames[] = {
7818 (char *) "self", NULL
7819 };
7820
7821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
7822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7823 {
7824 PyThreadState* __tstate = wxPyBeginAllowThreads();
7825 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
7826
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 {
7831 #if wxUSE_UNICODE
7832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7833 #else
7834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7835 #endif
7836 }
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj;
7845 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7846 PyObject * obj0 = 0 ;
7847 char *kwnames[] = {
7848 (char *) "self", NULL
7849 };
7850
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
7852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7853 {
7854 PyThreadState* __tstate = wxPyBeginAllowThreads();
7855 (arg1)->Clear();
7856
7857 wxPyEndAllowThreads(__tstate);
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 Py_INCREF(Py_None); resultobj = Py_None;
7861 return resultobj;
7862 fail:
7863 return NULL;
7864 }
7865
7866
7867 static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
7868 PyObject *resultobj;
7869 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7870 long arg2 ;
7871 long arg3 ;
7872 wxString *arg4 = 0 ;
7873 bool temp4 = False ;
7874 PyObject * obj0 = 0 ;
7875 PyObject * obj1 = 0 ;
7876 PyObject * obj2 = 0 ;
7877 PyObject * obj3 = 0 ;
7878 char *kwnames[] = {
7879 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
7880 };
7881
7882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7884 {
7885 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 {
7889 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7890 if (PyErr_Occurred()) SWIG_fail;
7891 }
7892 {
7893 arg4 = wxString_in_helper(obj3);
7894 if (arg4 == NULL) SWIG_fail;
7895 temp4 = True;
7896 }
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
7900
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 Py_INCREF(Py_None); resultobj = Py_None;
7905 {
7906 if (temp4)
7907 delete arg4;
7908 }
7909 return resultobj;
7910 fail:
7911 {
7912 if (temp4)
7913 delete arg4;
7914 }
7915 return NULL;
7916 }
7917
7918
7919 static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
7920 PyObject *resultobj;
7921 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7922 long arg2 ;
7923 long arg3 ;
7924 PyObject * obj0 = 0 ;
7925 PyObject * obj1 = 0 ;
7926 PyObject * obj2 = 0 ;
7927 char *kwnames[] = {
7928 (char *) "self",(char *) "from",(char *) "to", NULL
7929 };
7930
7931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
7932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7933 {
7934 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7935 if (PyErr_Occurred()) SWIG_fail;
7936 }
7937 {
7938 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7939 if (PyErr_Occurred()) SWIG_fail;
7940 }
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 (arg1)->Remove(arg2,arg3);
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 Py_INCREF(Py_None); resultobj = Py_None;
7949 return resultobj;
7950 fail:
7951 return NULL;
7952 }
7953
7954
7955 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj;
7957 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7958 wxString *arg2 = 0 ;
7959 bool result;
7960 bool temp2 = False ;
7961 PyObject * obj0 = 0 ;
7962 PyObject * obj1 = 0 ;
7963 char *kwnames[] = {
7964 (char *) "self",(char *) "file", NULL
7965 };
7966
7967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
7968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7969 {
7970 arg2 = wxString_in_helper(obj1);
7971 if (arg2 == NULL) SWIG_fail;
7972 temp2 = True;
7973 }
7974 {
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
7977
7978 wxPyEndAllowThreads(__tstate);
7979 if (PyErr_Occurred()) SWIG_fail;
7980 }
7981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7982 {
7983 if (temp2)
7984 delete arg2;
7985 }
7986 return resultobj;
7987 fail:
7988 {
7989 if (temp2)
7990 delete arg2;
7991 }
7992 return NULL;
7993 }
7994
7995
7996 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7997 PyObject *resultobj;
7998 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7999 wxString const &arg2_defvalue = wxPyEmptyString ;
8000 wxString *arg2 = (wxString *) &arg2_defvalue ;
8001 bool result;
8002 bool temp2 = False ;
8003 PyObject * obj0 = 0 ;
8004 PyObject * obj1 = 0 ;
8005 char *kwnames[] = {
8006 (char *) "self",(char *) "file", NULL
8007 };
8008
8009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8011 if (obj1) {
8012 {
8013 arg2 = wxString_in_helper(obj1);
8014 if (arg2 == NULL) SWIG_fail;
8015 temp2 = True;
8016 }
8017 }
8018 {
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8021
8022 wxPyEndAllowThreads(__tstate);
8023 if (PyErr_Occurred()) SWIG_fail;
8024 }
8025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8026 {
8027 if (temp2)
8028 delete arg2;
8029 }
8030 return resultobj;
8031 fail:
8032 {
8033 if (temp2)
8034 delete arg2;
8035 }
8036 return NULL;
8037 }
8038
8039
8040 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8041 PyObject *resultobj;
8042 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8043 PyObject * obj0 = 0 ;
8044 char *kwnames[] = {
8045 (char *) "self", NULL
8046 };
8047
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8050 {
8051 PyThreadState* __tstate = wxPyBeginAllowThreads();
8052 (arg1)->MarkDirty();
8053
8054 wxPyEndAllowThreads(__tstate);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 Py_INCREF(Py_None); resultobj = Py_None;
8058 return resultobj;
8059 fail:
8060 return NULL;
8061 }
8062
8063
8064 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj;
8066 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8067 PyObject * obj0 = 0 ;
8068 char *kwnames[] = {
8069 (char *) "self", NULL
8070 };
8071
8072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8074 {
8075 PyThreadState* __tstate = wxPyBeginAllowThreads();
8076 (arg1)->DiscardEdits();
8077
8078 wxPyEndAllowThreads(__tstate);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 Py_INCREF(Py_None); resultobj = Py_None;
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8089 PyObject *resultobj;
8090 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8091 unsigned long arg2 ;
8092 PyObject * obj0 = 0 ;
8093 PyObject * obj1 = 0 ;
8094 char *kwnames[] = {
8095 (char *) "self",(char *) "len", NULL
8096 };
8097
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8100 {
8101 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
8102 if (PyErr_Occurred()) SWIG_fail;
8103 }
8104 {
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 (arg1)->SetMaxLength(arg2);
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 Py_INCREF(Py_None); resultobj = Py_None;
8112 return resultobj;
8113 fail:
8114 return NULL;
8115 }
8116
8117
8118 static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8119 PyObject *resultobj;
8120 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8121 wxString *arg2 = 0 ;
8122 bool temp2 = False ;
8123 PyObject * obj0 = 0 ;
8124 PyObject * obj1 = 0 ;
8125 char *kwnames[] = {
8126 (char *) "self",(char *) "text", NULL
8127 };
8128
8129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8131 {
8132 arg2 = wxString_in_helper(obj1);
8133 if (arg2 == NULL) SWIG_fail;
8134 temp2 = True;
8135 }
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 (arg1)->WriteText((wxString const &)*arg2);
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 Py_INCREF(Py_None); resultobj = Py_None;
8144 {
8145 if (temp2)
8146 delete arg2;
8147 }
8148 return resultobj;
8149 fail:
8150 {
8151 if (temp2)
8152 delete arg2;
8153 }
8154 return NULL;
8155 }
8156
8157
8158 static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8161 wxString *arg2 = 0 ;
8162 bool temp2 = False ;
8163 PyObject * obj0 = 0 ;
8164 PyObject * obj1 = 0 ;
8165 char *kwnames[] = {
8166 (char *) "self",(char *) "text", NULL
8167 };
8168
8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8171 {
8172 arg2 = wxString_in_helper(obj1);
8173 if (arg2 == NULL) SWIG_fail;
8174 temp2 = True;
8175 }
8176 {
8177 PyThreadState* __tstate = wxPyBeginAllowThreads();
8178 (arg1)->AppendText((wxString const &)*arg2);
8179
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 Py_INCREF(Py_None); resultobj = Py_None;
8184 {
8185 if (temp2)
8186 delete arg2;
8187 }
8188 return resultobj;
8189 fail:
8190 {
8191 if (temp2)
8192 delete arg2;
8193 }
8194 return NULL;
8195 }
8196
8197
8198 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj;
8200 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8201 wxKeyEvent *arg2 = 0 ;
8202 bool result;
8203 PyObject * obj0 = 0 ;
8204 PyObject * obj1 = 0 ;
8205 char *kwnames[] = {
8206 (char *) "self",(char *) "event", NULL
8207 };
8208
8209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8211 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8212 if (arg2 == NULL) {
8213 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8214 }
8215 {
8216 PyThreadState* __tstate = wxPyBeginAllowThreads();
8217 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8218
8219 wxPyEndAllowThreads(__tstate);
8220 if (PyErr_Occurred()) SWIG_fail;
8221 }
8222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8223 return resultobj;
8224 fail:
8225 return NULL;
8226 }
8227
8228
8229 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8230 PyObject *resultobj;
8231 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8232 long arg2 ;
8233 long arg3 ;
8234 wxTextAttr *arg4 = 0 ;
8235 bool result;
8236 PyObject * obj0 = 0 ;
8237 PyObject * obj1 = 0 ;
8238 PyObject * obj2 = 0 ;
8239 PyObject * obj3 = 0 ;
8240 char *kwnames[] = {
8241 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8242 };
8243
8244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8246 {
8247 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8248 if (PyErr_Occurred()) SWIG_fail;
8249 }
8250 {
8251 arg3 = (long) SWIG_PyObj_AsLong(obj2);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8255 if (arg4 == NULL) {
8256 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8257 }
8258 {
8259 PyThreadState* __tstate = wxPyBeginAllowThreads();
8260 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8261
8262 wxPyEndAllowThreads(__tstate);
8263 if (PyErr_Occurred()) SWIG_fail;
8264 }
8265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8266 return resultobj;
8267 fail:
8268 return NULL;
8269 }
8270
8271
8272 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8273 PyObject *resultobj;
8274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8275 long arg2 ;
8276 wxTextAttr *arg3 = 0 ;
8277 bool result;
8278 PyObject * obj0 = 0 ;
8279 PyObject * obj1 = 0 ;
8280 PyObject * obj2 = 0 ;
8281 char *kwnames[] = {
8282 (char *) "self",(char *) "position",(char *) "style", NULL
8283 };
8284
8285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8287 {
8288 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8292 if (arg3 == NULL) {
8293 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8294 }
8295 {
8296 PyThreadState* __tstate = wxPyBeginAllowThreads();
8297 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8298
8299 wxPyEndAllowThreads(__tstate);
8300 if (PyErr_Occurred()) SWIG_fail;
8301 }
8302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8303 return resultobj;
8304 fail:
8305 return NULL;
8306 }
8307
8308
8309 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj;
8311 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8312 wxTextAttr *arg2 = 0 ;
8313 bool result;
8314 PyObject * obj0 = 0 ;
8315 PyObject * obj1 = 0 ;
8316 char *kwnames[] = {
8317 (char *) "self",(char *) "style", NULL
8318 };
8319
8320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
8321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8322 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8323 if (arg2 == NULL) {
8324 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8325 }
8326 {
8327 PyThreadState* __tstate = wxPyBeginAllowThreads();
8328 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
8329
8330 wxPyEndAllowThreads(__tstate);
8331 if (PyErr_Occurred()) SWIG_fail;
8332 }
8333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8334 return resultobj;
8335 fail:
8336 return NULL;
8337 }
8338
8339
8340 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8341 PyObject *resultobj;
8342 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8343 wxTextAttr *result;
8344 PyObject * obj0 = 0 ;
8345 char *kwnames[] = {
8346 (char *) "self", NULL
8347 };
8348
8349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
8350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 {
8354 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
8355 result = (wxTextAttr *) &_result_ref;
8356 }
8357
8358 wxPyEndAllowThreads(__tstate);
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0);
8362 return resultobj;
8363 fail:
8364 return NULL;
8365 }
8366
8367
8368 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj;
8370 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8371 long arg2 ;
8372 long arg3 ;
8373 long result;
8374 PyObject * obj0 = 0 ;
8375 PyObject * obj1 = 0 ;
8376 PyObject * obj2 = 0 ;
8377 char *kwnames[] = {
8378 (char *) "self",(char *) "x",(char *) "y", NULL
8379 };
8380
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
8382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8383 {
8384 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 {
8388 arg3 = (long) SWIG_PyObj_AsLong(obj2);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 {
8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
8393 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
8394
8395 wxPyEndAllowThreads(__tstate);
8396 if (PyErr_Occurred()) SWIG_fail;
8397 }
8398 resultobj = SWIG_PyObj_FromLong((long)result);
8399 return resultobj;
8400 fail:
8401 return NULL;
8402 }
8403
8404
8405 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8406 PyObject *resultobj;
8407 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8408 long arg2 ;
8409 long *arg3 = (long *) 0 ;
8410 long *arg4 = (long *) 0 ;
8411 long temp3 ;
8412 long temp4 ;
8413 PyObject * obj0 = 0 ;
8414 PyObject * obj1 = 0 ;
8415 char *kwnames[] = {
8416 (char *) "self",(char *) "pos", NULL
8417 };
8418
8419 arg3 = &temp3;
8420 arg4 = &temp4;
8421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
8422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8423 {
8424 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8425 if (PyErr_Occurred()) SWIG_fail;
8426 }
8427 {
8428 PyThreadState* __tstate = wxPyBeginAllowThreads();
8429 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
8430
8431 wxPyEndAllowThreads(__tstate);
8432 if (PyErr_Occurred()) SWIG_fail;
8433 }
8434 Py_INCREF(Py_None); resultobj = Py_None;
8435 {
8436 PyObject *o = PyInt_FromLong((long) (*arg3));
8437 resultobj = t_output_helper(resultobj,o);
8438 }
8439 {
8440 PyObject *o = PyInt_FromLong((long) (*arg4));
8441 resultobj = t_output_helper(resultobj,o);
8442 }
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj;
8451 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8452 long arg2 ;
8453 PyObject * obj0 = 0 ;
8454 PyObject * obj1 = 0 ;
8455 char *kwnames[] = {
8456 (char *) "self",(char *) "pos", NULL
8457 };
8458
8459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
8460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8461 {
8462 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8463 if (PyErr_Occurred()) SWIG_fail;
8464 }
8465 {
8466 PyThreadState* __tstate = wxPyBeginAllowThreads();
8467 (arg1)->ShowPosition(arg2);
8468
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 Py_INCREF(Py_None); resultobj = Py_None;
8473 return resultobj;
8474 fail:
8475 return NULL;
8476 }
8477
8478
8479 static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
8480 PyObject *resultobj;
8481 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8482 wxPoint *arg2 = 0 ;
8483 long *arg3 = (long *) 0 ;
8484 long *arg4 = (long *) 0 ;
8485 int result;
8486 wxPoint temp2 ;
8487 long temp3 ;
8488 long temp4 ;
8489 PyObject * obj0 = 0 ;
8490 PyObject * obj1 = 0 ;
8491 char *kwnames[] = {
8492 (char *) "self",(char *) "pt", NULL
8493 };
8494
8495 arg3 = &temp3;
8496 arg4 = &temp4;
8497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
8498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8499 {
8500 arg2 = &temp2;
8501 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8502 }
8503 {
8504 PyThreadState* __tstate = wxPyBeginAllowThreads();
8505 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
8506
8507 wxPyEndAllowThreads(__tstate);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 }
8510 resultobj = SWIG_PyObj_FromInt((int)result);
8511 {
8512 PyObject *o = PyInt_FromLong((long) (*arg3));
8513 resultobj = t_output_helper(resultobj,o);
8514 }
8515 {
8516 PyObject *o = PyInt_FromLong((long) (*arg4));
8517 resultobj = t_output_helper(resultobj,o);
8518 }
8519 return resultobj;
8520 fail:
8521 return NULL;
8522 }
8523
8524
8525 static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
8526 PyObject *resultobj;
8527 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8528 PyObject * obj0 = 0 ;
8529 char *kwnames[] = {
8530 (char *) "self", NULL
8531 };
8532
8533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
8534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 (arg1)->Copy();
8538
8539 wxPyEndAllowThreads(__tstate);
8540 if (PyErr_Occurred()) SWIG_fail;
8541 }
8542 Py_INCREF(Py_None); resultobj = Py_None;
8543 return resultobj;
8544 fail:
8545 return NULL;
8546 }
8547
8548
8549 static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
8550 PyObject *resultobj;
8551 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8552 PyObject * obj0 = 0 ;
8553 char *kwnames[] = {
8554 (char *) "self", NULL
8555 };
8556
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
8558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8559 {
8560 PyThreadState* __tstate = wxPyBeginAllowThreads();
8561 (arg1)->Cut();
8562
8563 wxPyEndAllowThreads(__tstate);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 }
8566 Py_INCREF(Py_None); resultobj = Py_None;
8567 return resultobj;
8568 fail:
8569 return NULL;
8570 }
8571
8572
8573 static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
8574 PyObject *resultobj;
8575 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8576 PyObject * obj0 = 0 ;
8577 char *kwnames[] = {
8578 (char *) "self", NULL
8579 };
8580
8581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
8582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 (arg1)->Paste();
8586
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 Py_INCREF(Py_None); resultobj = Py_None;
8591 return resultobj;
8592 fail:
8593 return NULL;
8594 }
8595
8596
8597 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
8598 PyObject *resultobj;
8599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8600 bool result;
8601 PyObject * obj0 = 0 ;
8602 char *kwnames[] = {
8603 (char *) "self", NULL
8604 };
8605
8606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
8607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8608 {
8609 PyThreadState* __tstate = wxPyBeginAllowThreads();
8610 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
8611
8612 wxPyEndAllowThreads(__tstate);
8613 if (PyErr_Occurred()) SWIG_fail;
8614 }
8615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8616 return resultobj;
8617 fail:
8618 return NULL;
8619 }
8620
8621
8622 static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
8623 PyObject *resultobj;
8624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8625 bool result;
8626 PyObject * obj0 = 0 ;
8627 char *kwnames[] = {
8628 (char *) "self", NULL
8629 };
8630
8631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
8632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
8636
8637 wxPyEndAllowThreads(__tstate);
8638 if (PyErr_Occurred()) SWIG_fail;
8639 }
8640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8641 return resultobj;
8642 fail:
8643 return NULL;
8644 }
8645
8646
8647 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
8648 PyObject *resultobj;
8649 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8650 bool result;
8651 PyObject * obj0 = 0 ;
8652 char *kwnames[] = {
8653 (char *) "self", NULL
8654 };
8655
8656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
8657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8658 {
8659 PyThreadState* __tstate = wxPyBeginAllowThreads();
8660 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
8661
8662 wxPyEndAllowThreads(__tstate);
8663 if (PyErr_Occurred()) SWIG_fail;
8664 }
8665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8666 return resultobj;
8667 fail:
8668 return NULL;
8669 }
8670
8671
8672 static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
8673 PyObject *resultobj;
8674 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8675 PyObject * obj0 = 0 ;
8676 char *kwnames[] = {
8677 (char *) "self", NULL
8678 };
8679
8680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
8681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8682 {
8683 PyThreadState* __tstate = wxPyBeginAllowThreads();
8684 (arg1)->Undo();
8685
8686 wxPyEndAllowThreads(__tstate);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 Py_INCREF(Py_None); resultobj = Py_None;
8690 return resultobj;
8691 fail:
8692 return NULL;
8693 }
8694
8695
8696 static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj;
8698 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8699 PyObject * obj0 = 0 ;
8700 char *kwnames[] = {
8701 (char *) "self", NULL
8702 };
8703
8704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
8705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8706 {
8707 PyThreadState* __tstate = wxPyBeginAllowThreads();
8708 (arg1)->Redo();
8709
8710 wxPyEndAllowThreads(__tstate);
8711 if (PyErr_Occurred()) SWIG_fail;
8712 }
8713 Py_INCREF(Py_None); resultobj = Py_None;
8714 return resultobj;
8715 fail:
8716 return NULL;
8717 }
8718
8719
8720 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
8721 PyObject *resultobj;
8722 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8723 bool result;
8724 PyObject * obj0 = 0 ;
8725 char *kwnames[] = {
8726 (char *) "self", NULL
8727 };
8728
8729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
8730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8731 {
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
8734
8735 wxPyEndAllowThreads(__tstate);
8736 if (PyErr_Occurred()) SWIG_fail;
8737 }
8738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8739 return resultobj;
8740 fail:
8741 return NULL;
8742 }
8743
8744
8745 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
8746 PyObject *resultobj;
8747 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8748 bool result;
8749 PyObject * obj0 = 0 ;
8750 char *kwnames[] = {
8751 (char *) "self", NULL
8752 };
8753
8754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
8755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8756 {
8757 PyThreadState* __tstate = wxPyBeginAllowThreads();
8758 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
8759
8760 wxPyEndAllowThreads(__tstate);
8761 if (PyErr_Occurred()) SWIG_fail;
8762 }
8763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8764 return resultobj;
8765 fail:
8766 return NULL;
8767 }
8768
8769
8770 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8771 PyObject *resultobj;
8772 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8773 long arg2 ;
8774 PyObject * obj0 = 0 ;
8775 PyObject * obj1 = 0 ;
8776 char *kwnames[] = {
8777 (char *) "self",(char *) "pos", NULL
8778 };
8779
8780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
8781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8782 {
8783 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 {
8787 PyThreadState* __tstate = wxPyBeginAllowThreads();
8788 (arg1)->SetInsertionPoint(arg2);
8789
8790 wxPyEndAllowThreads(__tstate);
8791 if (PyErr_Occurred()) SWIG_fail;
8792 }
8793 Py_INCREF(Py_None); resultobj = Py_None;
8794 return resultobj;
8795 fail:
8796 return NULL;
8797 }
8798
8799
8800 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj;
8802 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8803 PyObject * obj0 = 0 ;
8804 char *kwnames[] = {
8805 (char *) "self", NULL
8806 };
8807
8808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
8809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8810 {
8811 PyThreadState* __tstate = wxPyBeginAllowThreads();
8812 (arg1)->SetInsertionPointEnd();
8813
8814 wxPyEndAllowThreads(__tstate);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
8817 Py_INCREF(Py_None); resultobj = Py_None;
8818 return resultobj;
8819 fail:
8820 return NULL;
8821 }
8822
8823
8824 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8825 PyObject *resultobj;
8826 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8827 long result;
8828 PyObject * obj0 = 0 ;
8829 char *kwnames[] = {
8830 (char *) "self", NULL
8831 };
8832
8833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
8834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8835 {
8836 PyThreadState* __tstate = wxPyBeginAllowThreads();
8837 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
8838
8839 wxPyEndAllowThreads(__tstate);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 resultobj = SWIG_PyObj_FromLong((long)result);
8843 return resultobj;
8844 fail:
8845 return NULL;
8846 }
8847
8848
8849 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8850 PyObject *resultobj;
8851 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8852 long result;
8853 PyObject * obj0 = 0 ;
8854 char *kwnames[] = {
8855 (char *) "self", NULL
8856 };
8857
8858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
8859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8860 {
8861 PyThreadState* __tstate = wxPyBeginAllowThreads();
8862 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
8863
8864 wxPyEndAllowThreads(__tstate);
8865 if (PyErr_Occurred()) SWIG_fail;
8866 }
8867 resultobj = SWIG_PyObj_FromLong((long)result);
8868 return resultobj;
8869 fail:
8870 return NULL;
8871 }
8872
8873
8874 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8875 PyObject *resultobj;
8876 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8877 long arg2 ;
8878 long arg3 ;
8879 PyObject * obj0 = 0 ;
8880 PyObject * obj1 = 0 ;
8881 PyObject * obj2 = 0 ;
8882 char *kwnames[] = {
8883 (char *) "self",(char *) "from",(char *) "to", NULL
8884 };
8885
8886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
8887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8888 {
8889 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 {
8893 arg3 = (long) SWIG_PyObj_AsLong(obj2);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 {
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 (arg1)->SetSelection(arg2,arg3);
8899
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 Py_INCREF(Py_None); resultobj = Py_None;
8904 return resultobj;
8905 fail:
8906 return NULL;
8907 }
8908
8909
8910 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8911 PyObject *resultobj;
8912 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8913 PyObject * obj0 = 0 ;
8914 char *kwnames[] = {
8915 (char *) "self", NULL
8916 };
8917
8918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
8919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8920 {
8921 PyThreadState* __tstate = wxPyBeginAllowThreads();
8922 (arg1)->SelectAll();
8923
8924 wxPyEndAllowThreads(__tstate);
8925 if (PyErr_Occurred()) SWIG_fail;
8926 }
8927 Py_INCREF(Py_None); resultobj = Py_None;
8928 return resultobj;
8929 fail:
8930 return NULL;
8931 }
8932
8933
8934 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8935 PyObject *resultobj;
8936 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8937 bool arg2 ;
8938 PyObject * obj0 = 0 ;
8939 PyObject * obj1 = 0 ;
8940 char *kwnames[] = {
8941 (char *) "self",(char *) "editable", NULL
8942 };
8943
8944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
8945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8946 {
8947 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 {
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 (arg1)->SetEditable(arg2);
8953
8954 wxPyEndAllowThreads(__tstate);
8955 if (PyErr_Occurred()) SWIG_fail;
8956 }
8957 Py_INCREF(Py_None); resultobj = Py_None;
8958 return resultobj;
8959 fail:
8960 return NULL;
8961 }
8962
8963
8964 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
8965 PyObject *resultobj;
8966 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8967 bool arg2 = (bool) True ;
8968 bool result;
8969 PyObject * obj0 = 0 ;
8970 PyObject * obj1 = 0 ;
8971 char *kwnames[] = {
8972 (char *) "self",(char *) "show", NULL
8973 };
8974
8975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
8976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8977 if (obj1) {
8978 {
8979 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 }
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 result = (bool)(arg1)->ShowNativeCaret(arg2);
8986
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8991 return resultobj;
8992 fail:
8993 return NULL;
8994 }
8995
8996
8997 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj;
8999 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9000 bool result;
9001 PyObject * obj0 = 0 ;
9002 char *kwnames[] = {
9003 (char *) "self", NULL
9004 };
9005
9006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9008 {
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 result = (bool)(arg1)->HideNativeCaret();
9011
9012 wxPyEndAllowThreads(__tstate);
9013 if (PyErr_Occurred()) SWIG_fail;
9014 }
9015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9016 return resultobj;
9017 fail:
9018 return NULL;
9019 }
9020
9021
9022 static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9023 PyObject *resultobj;
9024 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9025 wxString *arg2 = 0 ;
9026 bool temp2 = False ;
9027 PyObject * obj0 = 0 ;
9028 PyObject * obj1 = 0 ;
9029 char *kwnames[] = {
9030 (char *) "self",(char *) "text", NULL
9031 };
9032
9033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9035 {
9036 arg2 = wxString_in_helper(obj1);
9037 if (arg2 == NULL) SWIG_fail;
9038 temp2 = True;
9039 }
9040 {
9041 PyThreadState* __tstate = wxPyBeginAllowThreads();
9042 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9043
9044 wxPyEndAllowThreads(__tstate);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 }
9047 Py_INCREF(Py_None); resultobj = Py_None;
9048 {
9049 if (temp2)
9050 delete arg2;
9051 }
9052 return resultobj;
9053 fail:
9054 {
9055 if (temp2)
9056 delete arg2;
9057 }
9058 return NULL;
9059 }
9060
9061
9062 static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj;
9064 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9065 long arg2 ;
9066 long arg3 ;
9067 wxString result;
9068 PyObject * obj0 = 0 ;
9069 PyObject * obj1 = 0 ;
9070 PyObject * obj2 = 0 ;
9071 char *kwnames[] = {
9072 (char *) "self",(char *) "from",(char *) "to", NULL
9073 };
9074
9075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9077 {
9078 arg2 = (long) SWIG_PyObj_AsLong(obj1);
9079 if (PyErr_Occurred()) SWIG_fail;
9080 }
9081 {
9082 arg3 = (long) SWIG_PyObj_AsLong(obj2);
9083 if (PyErr_Occurred()) SWIG_fail;
9084 }
9085 {
9086 PyThreadState* __tstate = wxPyBeginAllowThreads();
9087 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9088
9089 wxPyEndAllowThreads(__tstate);
9090 if (PyErr_Occurred()) SWIG_fail;
9091 }
9092 {
9093 #if wxUSE_UNICODE
9094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9095 #else
9096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9097 #endif
9098 }
9099 return resultobj;
9100 fail:
9101 return NULL;
9102 }
9103
9104
9105 static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9106 PyObject *obj;
9107 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9108 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9109 Py_INCREF(obj);
9110 return Py_BuildValue((char *)"");
9111 }
9112 static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9113 PyObject *resultobj;
9114 int arg1 ;
9115 wxMouseEvent *arg2 = 0 ;
9116 long arg3 ;
9117 long arg4 ;
9118 wxTextUrlEvent *result;
9119 PyObject * obj0 = 0 ;
9120 PyObject * obj1 = 0 ;
9121 PyObject * obj2 = 0 ;
9122 PyObject * obj3 = 0 ;
9123 char *kwnames[] = {
9124 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9125 };
9126
9127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9128 {
9129 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9130 if (PyErr_Occurred()) SWIG_fail;
9131 }
9132 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9133 if (arg2 == NULL) {
9134 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9135 }
9136 {
9137 arg3 = (long) SWIG_PyObj_AsLong(obj2);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
9140 {
9141 arg4 = (long) SWIG_PyObj_AsLong(obj3);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 {
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9147
9148 wxPyEndAllowThreads(__tstate);
9149 if (PyErr_Occurred()) SWIG_fail;
9150 }
9151 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1);
9152 return resultobj;
9153 fail:
9154 return NULL;
9155 }
9156
9157
9158 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9159 PyObject *resultobj;
9160 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9161 wxMouseEvent *result;
9162 PyObject * obj0 = 0 ;
9163 char *kwnames[] = {
9164 (char *) "self", NULL
9165 };
9166
9167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9169 {
9170 PyThreadState* __tstate = wxPyBeginAllowThreads();
9171 {
9172 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9173 result = (wxMouseEvent *) &_result_ref;
9174 }
9175
9176 wxPyEndAllowThreads(__tstate);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 }
9179 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0);
9180 return resultobj;
9181 fail:
9182 return NULL;
9183 }
9184
9185
9186 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj;
9188 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9189 long result;
9190 PyObject * obj0 = 0 ;
9191 char *kwnames[] = {
9192 (char *) "self", NULL
9193 };
9194
9195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9200
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 resultobj = SWIG_PyObj_FromLong((long)result);
9205 return resultobj;
9206 fail:
9207 return NULL;
9208 }
9209
9210
9211 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9212 PyObject *resultobj;
9213 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9214 long result;
9215 PyObject * obj0 = 0 ;
9216 char *kwnames[] = {
9217 (char *) "self", NULL
9218 };
9219
9220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9222 {
9223 PyThreadState* __tstate = wxPyBeginAllowThreads();
9224 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9225
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 resultobj = SWIG_PyObj_FromLong((long)result);
9230 return resultobj;
9231 fail:
9232 return NULL;
9233 }
9234
9235
9236 static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9237 PyObject *obj;
9238 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9239 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9240 Py_INCREF(obj);
9241 return Py_BuildValue((char *)"");
9242 }
9243 static int _wrap_ScrollBarNameStr_set(PyObject *) {
9244 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9245 return 1;
9246 }
9247
9248
9249 static PyObject *_wrap_ScrollBarNameStr_get() {
9250 PyObject *pyobj;
9251
9252 {
9253 #if wxUSE_UNICODE
9254 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9255 #else
9256 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9257 #endif
9258 }
9259 return pyobj;
9260 }
9261
9262
9263 static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj;
9265 wxWindow *arg1 = (wxWindow *) 0 ;
9266 int arg2 = (int) -1 ;
9267 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9268 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9269 wxSize const &arg4_defvalue = wxDefaultSize ;
9270 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9271 long arg5 = (long) wxSB_HORIZONTAL ;
9272 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9273 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9274 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9275 wxString *arg7 = (wxString *) &arg7_defvalue ;
9276 wxScrollBar *result;
9277 wxPoint temp3 ;
9278 wxSize temp4 ;
9279 bool temp7 = False ;
9280 PyObject * obj0 = 0 ;
9281 PyObject * obj1 = 0 ;
9282 PyObject * obj2 = 0 ;
9283 PyObject * obj3 = 0 ;
9284 PyObject * obj4 = 0 ;
9285 PyObject * obj5 = 0 ;
9286 PyObject * obj6 = 0 ;
9287 char *kwnames[] = {
9288 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9289 };
9290
9291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9293 if (obj1) {
9294 {
9295 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9296 if (PyErr_Occurred()) SWIG_fail;
9297 }
9298 }
9299 if (obj2) {
9300 {
9301 arg3 = &temp3;
9302 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9303 }
9304 }
9305 if (obj3) {
9306 {
9307 arg4 = &temp4;
9308 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9309 }
9310 }
9311 if (obj4) {
9312 {
9313 arg5 = (long) SWIG_PyObj_AsLong(obj4);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 }
9317 if (obj5) {
9318 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9319 if (arg6 == NULL) {
9320 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9321 }
9322 }
9323 if (obj6) {
9324 {
9325 arg7 = wxString_in_helper(obj6);
9326 if (arg7 == NULL) SWIG_fail;
9327 temp7 = True;
9328 }
9329 }
9330 {
9331 PyThreadState* __tstate = wxPyBeginAllowThreads();
9332 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
9333
9334 wxPyEndAllowThreads(__tstate);
9335 if (PyErr_Occurred()) SWIG_fail;
9336 }
9337 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1);
9338 {
9339 if (temp7)
9340 delete arg7;
9341 }
9342 return resultobj;
9343 fail:
9344 {
9345 if (temp7)
9346 delete arg7;
9347 }
9348 return NULL;
9349 }
9350
9351
9352 static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj;
9354 wxScrollBar *result;
9355 char *kwnames[] = {
9356 NULL
9357 };
9358
9359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 result = (wxScrollBar *)new wxScrollBar();
9363
9364 wxPyEndAllowThreads(__tstate);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
9367 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1);
9368 return resultobj;
9369 fail:
9370 return NULL;
9371 }
9372
9373
9374 static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj;
9376 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9377 wxWindow *arg2 = (wxWindow *) 0 ;
9378 int arg3 = (int) -1 ;
9379 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9380 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9381 wxSize const &arg5_defvalue = wxDefaultSize ;
9382 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9383 long arg6 = (long) wxSB_HORIZONTAL ;
9384 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9385 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9386 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
9387 wxString *arg8 = (wxString *) &arg8_defvalue ;
9388 bool result;
9389 wxPoint temp4 ;
9390 wxSize temp5 ;
9391 bool temp8 = False ;
9392 PyObject * obj0 = 0 ;
9393 PyObject * obj1 = 0 ;
9394 PyObject * obj2 = 0 ;
9395 PyObject * obj3 = 0 ;
9396 PyObject * obj4 = 0 ;
9397 PyObject * obj5 = 0 ;
9398 PyObject * obj6 = 0 ;
9399 PyObject * obj7 = 0 ;
9400 char *kwnames[] = {
9401 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9402 };
9403
9404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
9405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9406 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9407 if (obj2) {
9408 {
9409 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 }
9413 if (obj3) {
9414 {
9415 arg4 = &temp4;
9416 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9417 }
9418 }
9419 if (obj4) {
9420 {
9421 arg5 = &temp5;
9422 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9423 }
9424 }
9425 if (obj5) {
9426 {
9427 arg6 = (long) SWIG_PyObj_AsLong(obj5);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 }
9431 if (obj6) {
9432 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9433 if (arg7 == NULL) {
9434 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9435 }
9436 }
9437 if (obj7) {
9438 {
9439 arg8 = wxString_in_helper(obj7);
9440 if (arg8 == NULL) SWIG_fail;
9441 temp8 = True;
9442 }
9443 }
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9452 {
9453 if (temp8)
9454 delete arg8;
9455 }
9456 return resultobj;
9457 fail:
9458 {
9459 if (temp8)
9460 delete arg8;
9461 }
9462 return NULL;
9463 }
9464
9465
9466 static PyObject *_wrap_ScrollBar_GetThumbPosition(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_GetThumbPosition",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)->GetThumbPosition();
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_GetThumbSize(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_GetThumbSize",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)->GetThumbSize();
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_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9517 PyObject *resultobj;
9518 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9519 int result;
9520 PyObject * obj0 = 0 ;
9521 char *kwnames[] = {
9522 (char *) "self", NULL
9523 };
9524
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",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 = (int)((wxScrollBar const *)arg1)->GetPageSize();
9530
9531 wxPyEndAllowThreads(__tstate);
9532 if (PyErr_Occurred()) SWIG_fail;
9533 }
9534 resultobj = SWIG_PyObj_FromInt((int)result);
9535 return resultobj;
9536 fail:
9537 return NULL;
9538 }
9539
9540
9541 static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
9542 PyObject *resultobj;
9543 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9544 int result;
9545 PyObject * obj0 = 0 ;
9546 char *kwnames[] = {
9547 (char *) "self", NULL
9548 };
9549
9550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
9551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 result = (int)((wxScrollBar const *)arg1)->GetRange();
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_PyObj_FromInt((int)result);
9560 return resultobj;
9561 fail:
9562 return NULL;
9563 }
9564
9565
9566 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
9567 PyObject *resultobj;
9568 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9569 bool result;
9570 PyObject * obj0 = 0 ;
9571 char *kwnames[] = {
9572 (char *) "self", NULL
9573 };
9574
9575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
9576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9577 {
9578 PyThreadState* __tstate = wxPyBeginAllowThreads();
9579 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
9580
9581 wxPyEndAllowThreads(__tstate);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 }
9584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9585 return resultobj;
9586 fail:
9587 return NULL;
9588 }
9589
9590
9591 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj;
9593 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9594 int arg2 ;
9595 PyObject * obj0 = 0 ;
9596 PyObject * obj1 = 0 ;
9597 char *kwnames[] = {
9598 (char *) "self",(char *) "viewStart", NULL
9599 };
9600
9601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
9602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9603 {
9604 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 (arg1)->SetThumbPosition(arg2);
9610
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 Py_INCREF(Py_None); resultobj = Py_None;
9615 return resultobj;
9616 fail:
9617 return NULL;
9618 }
9619
9620
9621 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
9622 PyObject *resultobj;
9623 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
9624 int arg2 ;
9625 int arg3 ;
9626 int arg4 ;
9627 int arg5 ;
9628 bool arg6 = (bool) True ;
9629 PyObject * obj0 = 0 ;
9630 PyObject * obj1 = 0 ;
9631 PyObject * obj2 = 0 ;
9632 PyObject * obj3 = 0 ;
9633 PyObject * obj4 = 0 ;
9634 PyObject * obj5 = 0 ;
9635 char *kwnames[] = {
9636 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
9637 };
9638
9639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9641 {
9642 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 {
9646 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9647 if (PyErr_Occurred()) SWIG_fail;
9648 }
9649 {
9650 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 {
9654 arg5 = (int) SWIG_PyObj_AsInt(obj4);
9655 if (PyErr_Occurred()) SWIG_fail;
9656 }
9657 if (obj5) {
9658 {
9659 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 }
9663 {
9664 PyThreadState* __tstate = wxPyBeginAllowThreads();
9665 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
9666
9667 wxPyEndAllowThreads(__tstate);
9668 if (PyErr_Occurred()) SWIG_fail;
9669 }
9670 Py_INCREF(Py_None); resultobj = Py_None;
9671 return resultobj;
9672 fail:
9673 return NULL;
9674 }
9675
9676
9677 static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
9678 PyObject *obj;
9679 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9680 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
9681 Py_INCREF(obj);
9682 return Py_BuildValue((char *)"");
9683 }
9684 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
9685 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
9686 return 1;
9687 }
9688
9689
9690 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
9691 PyObject *pyobj;
9692
9693 {
9694 #if wxUSE_UNICODE
9695 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9696 #else
9697 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
9698 #endif
9699 }
9700 return pyobj;
9701 }
9702
9703
9704 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
9705 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
9706 return 1;
9707 }
9708
9709
9710 static PyObject *_wrap_SpinCtrlNameStr_get() {
9711 PyObject *pyobj;
9712
9713 {
9714 #if wxUSE_UNICODE
9715 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9716 #else
9717 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
9718 #endif
9719 }
9720 return pyobj;
9721 }
9722
9723
9724 static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9725 PyObject *resultobj;
9726 wxWindow *arg1 = (wxWindow *) 0 ;
9727 int arg2 = (int) -1 ;
9728 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9729 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9730 wxSize const &arg4_defvalue = wxDefaultSize ;
9731 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9732 long arg5 = (long) wxSP_HORIZONTAL ;
9733 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
9734 wxString *arg6 = (wxString *) &arg6_defvalue ;
9735 wxSpinButton *result;
9736 wxPoint temp3 ;
9737 wxSize temp4 ;
9738 bool temp6 = False ;
9739 PyObject * obj0 = 0 ;
9740 PyObject * obj1 = 0 ;
9741 PyObject * obj2 = 0 ;
9742 PyObject * obj3 = 0 ;
9743 PyObject * obj4 = 0 ;
9744 PyObject * obj5 = 0 ;
9745 char *kwnames[] = {
9746 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
9747 };
9748
9749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9751 if (obj1) {
9752 {
9753 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 }
9757 if (obj2) {
9758 {
9759 arg3 = &temp3;
9760 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9761 }
9762 }
9763 if (obj3) {
9764 {
9765 arg4 = &temp4;
9766 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9767 }
9768 }
9769 if (obj4) {
9770 {
9771 arg5 = (long) SWIG_PyObj_AsLong(obj4);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 }
9775 if (obj5) {
9776 {
9777 arg6 = wxString_in_helper(obj5);
9778 if (arg6 == NULL) SWIG_fail;
9779 temp6 = True;
9780 }
9781 }
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
9785
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1);
9790 {
9791 if (temp6)
9792 delete arg6;
9793 }
9794 return resultobj;
9795 fail:
9796 {
9797 if (temp6)
9798 delete arg6;
9799 }
9800 return NULL;
9801 }
9802
9803
9804 static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9805 PyObject *resultobj;
9806 wxSpinButton *result;
9807 char *kwnames[] = {
9808 NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 result = (wxSpinButton *)new wxSpinButton();
9815
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1);
9820 return resultobj;
9821 fail:
9822 return NULL;
9823 }
9824
9825
9826 static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9827 PyObject *resultobj;
9828 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9829 wxWindow *arg2 = (wxWindow *) 0 ;
9830 int arg3 = (int) -1 ;
9831 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9832 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9833 wxSize const &arg5_defvalue = wxDefaultSize ;
9834 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9835 long arg6 = (long) wxSP_HORIZONTAL ;
9836 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
9837 wxString *arg7 = (wxString *) &arg7_defvalue ;
9838 bool result;
9839 wxPoint temp4 ;
9840 wxSize temp5 ;
9841 bool temp7 = False ;
9842 PyObject * obj0 = 0 ;
9843 PyObject * obj1 = 0 ;
9844 PyObject * obj2 = 0 ;
9845 PyObject * obj3 = 0 ;
9846 PyObject * obj4 = 0 ;
9847 PyObject * obj5 = 0 ;
9848 PyObject * obj6 = 0 ;
9849 char *kwnames[] = {
9850 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
9851 };
9852
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9855 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9856 if (obj2) {
9857 {
9858 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 }
9862 if (obj3) {
9863 {
9864 arg4 = &temp4;
9865 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9866 }
9867 }
9868 if (obj4) {
9869 {
9870 arg5 = &temp5;
9871 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9872 }
9873 }
9874 if (obj5) {
9875 {
9876 arg6 = (long) SWIG_PyObj_AsLong(obj5);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 }
9880 if (obj6) {
9881 {
9882 arg7 = wxString_in_helper(obj6);
9883 if (arg7 == NULL) SWIG_fail;
9884 temp7 = True;
9885 }
9886 }
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
9890
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9895 {
9896 if (temp7)
9897 delete arg7;
9898 }
9899 return resultobj;
9900 fail:
9901 {
9902 if (temp7)
9903 delete arg7;
9904 }
9905 return NULL;
9906 }
9907
9908
9909 static PyObject *_wrap_SpinButton_GetValue(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_GetValue",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)->GetValue();
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_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj;
9936 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9937 int result;
9938 PyObject * obj0 = 0 ;
9939 char *kwnames[] = {
9940 (char *) "self", NULL
9941 };
9942
9943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
9944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9945 {
9946 PyThreadState* __tstate = wxPyBeginAllowThreads();
9947 result = (int)((wxSpinButton const *)arg1)->GetMin();
9948
9949 wxPyEndAllowThreads(__tstate);
9950 if (PyErr_Occurred()) SWIG_fail;
9951 }
9952 resultobj = SWIG_PyObj_FromInt((int)result);
9953 return resultobj;
9954 fail:
9955 return NULL;
9956 }
9957
9958
9959 static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9960 PyObject *resultobj;
9961 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9962 int result;
9963 PyObject * obj0 = 0 ;
9964 char *kwnames[] = {
9965 (char *) "self", NULL
9966 };
9967
9968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
9969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 result = (int)((wxSpinButton const *)arg1)->GetMax();
9973
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_PyObj_FromInt((int)result);
9978 return resultobj;
9979 fail:
9980 return NULL;
9981 }
9982
9983
9984 static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj;
9986 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
9987 int arg2 ;
9988 PyObject * obj0 = 0 ;
9989 PyObject * obj1 = 0 ;
9990 char *kwnames[] = {
9991 (char *) "self",(char *) "val", NULL
9992 };
9993
9994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
9995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9996 {
9997 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9998 if (PyErr_Occurred()) SWIG_fail;
9999 }
10000 {
10001 PyThreadState* __tstate = wxPyBeginAllowThreads();
10002 (arg1)->SetValue(arg2);
10003
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 Py_INCREF(Py_None); resultobj = Py_None;
10008 return resultobj;
10009 fail:
10010 return NULL;
10011 }
10012
10013
10014 static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10015 PyObject *resultobj;
10016 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10017 int arg2 ;
10018 PyObject * obj0 = 0 ;
10019 PyObject * obj1 = 0 ;
10020 char *kwnames[] = {
10021 (char *) "self",(char *) "minVal", NULL
10022 };
10023
10024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10026 {
10027 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10028 if (PyErr_Occurred()) SWIG_fail;
10029 }
10030 {
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 (arg1)->SetMin(arg2);
10033
10034 wxPyEndAllowThreads(__tstate);
10035 if (PyErr_Occurred()) SWIG_fail;
10036 }
10037 Py_INCREF(Py_None); resultobj = Py_None;
10038 return resultobj;
10039 fail:
10040 return NULL;
10041 }
10042
10043
10044 static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10045 PyObject *resultobj;
10046 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10047 int arg2 ;
10048 PyObject * obj0 = 0 ;
10049 PyObject * obj1 = 0 ;
10050 char *kwnames[] = {
10051 (char *) "self",(char *) "maxVal", NULL
10052 };
10053
10054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10056 {
10057 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 }
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 (arg1)->SetMax(arg2);
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 Py_INCREF(Py_None); resultobj = Py_None;
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj;
10076 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10077 int arg2 ;
10078 int arg3 ;
10079 PyObject * obj0 = 0 ;
10080 PyObject * obj1 = 0 ;
10081 PyObject * obj2 = 0 ;
10082 char *kwnames[] = {
10083 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10084 };
10085
10086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10088 {
10089 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 {
10093 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 {
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 (arg1)->SetRange(arg2,arg3);
10099
10100 wxPyEndAllowThreads(__tstate);
10101 if (PyErr_Occurred()) SWIG_fail;
10102 }
10103 Py_INCREF(Py_None); resultobj = Py_None;
10104 return resultobj;
10105 fail:
10106 return NULL;
10107 }
10108
10109
10110 static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10111 PyObject *resultobj;
10112 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10113 bool result;
10114 PyObject * obj0 = 0 ;
10115 char *kwnames[] = {
10116 (char *) "self", NULL
10117 };
10118
10119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10121 {
10122 PyThreadState* __tstate = wxPyBeginAllowThreads();
10123 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10124
10125 wxPyEndAllowThreads(__tstate);
10126 if (PyErr_Occurred()) SWIG_fail;
10127 }
10128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10129 return resultobj;
10130 fail:
10131 return NULL;
10132 }
10133
10134
10135 static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10136 PyObject *obj;
10137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10138 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10139 Py_INCREF(obj);
10140 return Py_BuildValue((char *)"");
10141 }
10142 static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10143 PyObject *resultobj;
10144 wxWindow *arg1 = (wxWindow *) 0 ;
10145 int arg2 = (int) -1 ;
10146 wxString const &arg3_defvalue = wxPyEmptyString ;
10147 wxString *arg3 = (wxString *) &arg3_defvalue ;
10148 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10149 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10150 wxSize const &arg5_defvalue = wxDefaultSize ;
10151 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10152 long arg6 = (long) wxSP_ARROW_KEYS ;
10153 int arg7 = (int) 0 ;
10154 int arg8 = (int) 100 ;
10155 int arg9 = (int) 0 ;
10156 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10157 wxString *arg10 = (wxString *) &arg10_defvalue ;
10158 wxSpinCtrl *result;
10159 bool temp3 = False ;
10160 wxPoint temp4 ;
10161 wxSize temp5 ;
10162 bool temp10 = False ;
10163 PyObject * obj0 = 0 ;
10164 PyObject * obj1 = 0 ;
10165 PyObject * obj2 = 0 ;
10166 PyObject * obj3 = 0 ;
10167 PyObject * obj4 = 0 ;
10168 PyObject * obj5 = 0 ;
10169 PyObject * obj6 = 0 ;
10170 PyObject * obj7 = 0 ;
10171 PyObject * obj8 = 0 ;
10172 PyObject * obj9 = 0 ;
10173 char *kwnames[] = {
10174 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10175 };
10176
10177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10179 if (obj1) {
10180 {
10181 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10182 if (PyErr_Occurred()) SWIG_fail;
10183 }
10184 }
10185 if (obj2) {
10186 {
10187 arg3 = wxString_in_helper(obj2);
10188 if (arg3 == NULL) SWIG_fail;
10189 temp3 = True;
10190 }
10191 }
10192 if (obj3) {
10193 {
10194 arg4 = &temp4;
10195 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10196 }
10197 }
10198 if (obj4) {
10199 {
10200 arg5 = &temp5;
10201 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10202 }
10203 }
10204 if (obj5) {
10205 {
10206 arg6 = (long) SWIG_PyObj_AsLong(obj5);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 }
10209 }
10210 if (obj6) {
10211 {
10212 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10213 if (PyErr_Occurred()) SWIG_fail;
10214 }
10215 }
10216 if (obj7) {
10217 {
10218 arg8 = (int) SWIG_PyObj_AsInt(obj7);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 }
10222 if (obj8) {
10223 {
10224 arg9 = (int) SWIG_PyObj_AsInt(obj8);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 }
10227 }
10228 if (obj9) {
10229 {
10230 arg10 = wxString_in_helper(obj9);
10231 if (arg10 == NULL) SWIG_fail;
10232 temp10 = True;
10233 }
10234 }
10235 {
10236 PyThreadState* __tstate = wxPyBeginAllowThreads();
10237 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10238
10239 wxPyEndAllowThreads(__tstate);
10240 if (PyErr_Occurred()) SWIG_fail;
10241 }
10242 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1);
10243 {
10244 if (temp3)
10245 delete arg3;
10246 }
10247 {
10248 if (temp10)
10249 delete arg10;
10250 }
10251 return resultobj;
10252 fail:
10253 {
10254 if (temp3)
10255 delete arg3;
10256 }
10257 {
10258 if (temp10)
10259 delete arg10;
10260 }
10261 return NULL;
10262 }
10263
10264
10265 static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10266 PyObject *resultobj;
10267 wxSpinCtrl *result;
10268 char *kwnames[] = {
10269 NULL
10270 };
10271
10272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
10273 {
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (wxSpinCtrl *)new wxSpinCtrl();
10276
10277 wxPyEndAllowThreads(__tstate);
10278 if (PyErr_Occurred()) SWIG_fail;
10279 }
10280 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1);
10281 return resultobj;
10282 fail:
10283 return NULL;
10284 }
10285
10286
10287 static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10288 PyObject *resultobj;
10289 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10290 wxWindow *arg2 = (wxWindow *) 0 ;
10291 int arg3 = (int) -1 ;
10292 wxString const &arg4_defvalue = wxPyEmptyString ;
10293 wxString *arg4 = (wxString *) &arg4_defvalue ;
10294 wxPoint const &arg5_defvalue = wxDefaultPosition ;
10295 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
10296 wxSize const &arg6_defvalue = wxDefaultSize ;
10297 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
10298 long arg7 = (long) wxSP_ARROW_KEYS ;
10299 int arg8 = (int) 0 ;
10300 int arg9 = (int) 100 ;
10301 int arg10 = (int) 0 ;
10302 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
10303 wxString *arg11 = (wxString *) &arg11_defvalue ;
10304 bool result;
10305 bool temp4 = False ;
10306 wxPoint temp5 ;
10307 wxSize temp6 ;
10308 bool temp11 = False ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 PyObject * obj2 = 0 ;
10312 PyObject * obj3 = 0 ;
10313 PyObject * obj4 = 0 ;
10314 PyObject * obj5 = 0 ;
10315 PyObject * obj6 = 0 ;
10316 PyObject * obj7 = 0 ;
10317 PyObject * obj8 = 0 ;
10318 PyObject * obj9 = 0 ;
10319 PyObject * obj10 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10326 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10327 if (obj2) {
10328 {
10329 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10330 if (PyErr_Occurred()) SWIG_fail;
10331 }
10332 }
10333 if (obj3) {
10334 {
10335 arg4 = wxString_in_helper(obj3);
10336 if (arg4 == NULL) SWIG_fail;
10337 temp4 = True;
10338 }
10339 }
10340 if (obj4) {
10341 {
10342 arg5 = &temp5;
10343 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10344 }
10345 }
10346 if (obj5) {
10347 {
10348 arg6 = &temp6;
10349 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
10350 }
10351 }
10352 if (obj6) {
10353 {
10354 arg7 = (long) SWIG_PyObj_AsLong(obj6);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 }
10358 if (obj7) {
10359 {
10360 arg8 = (int) SWIG_PyObj_AsInt(obj7);
10361 if (PyErr_Occurred()) SWIG_fail;
10362 }
10363 }
10364 if (obj8) {
10365 {
10366 arg9 = (int) SWIG_PyObj_AsInt(obj8);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 }
10370 if (obj9) {
10371 {
10372 arg10 = (int) SWIG_PyObj_AsInt(obj9);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 }
10376 if (obj10) {
10377 {
10378 arg11 = wxString_in_helper(obj10);
10379 if (arg11 == NULL) SWIG_fail;
10380 temp11 = True;
10381 }
10382 }
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
10386
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10391 {
10392 if (temp4)
10393 delete arg4;
10394 }
10395 {
10396 if (temp11)
10397 delete arg11;
10398 }
10399 return resultobj;
10400 fail:
10401 {
10402 if (temp4)
10403 delete arg4;
10404 }
10405 {
10406 if (temp11)
10407 delete arg11;
10408 }
10409 return NULL;
10410 }
10411
10412
10413 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10414 PyObject *resultobj;
10415 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10416 int result;
10417 PyObject * obj0 = 0 ;
10418 char *kwnames[] = {
10419 (char *) "self", NULL
10420 };
10421
10422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
10423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
10427
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 resultobj = SWIG_PyObj_FromInt((int)result);
10432 return resultobj;
10433 fail:
10434 return NULL;
10435 }
10436
10437
10438 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10439 PyObject *resultobj;
10440 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10441 int arg2 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 char *kwnames[] = {
10445 (char *) "self",(char *) "value", NULL
10446 };
10447
10448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
10449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10450 {
10451 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 {
10455 PyThreadState* __tstate = wxPyBeginAllowThreads();
10456 (arg1)->SetValue(arg2);
10457
10458 wxPyEndAllowThreads(__tstate);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 Py_INCREF(Py_None); resultobj = Py_None;
10462 return resultobj;
10463 fail:
10464 return NULL;
10465 }
10466
10467
10468 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
10469 PyObject *resultobj;
10470 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10471 wxString *arg2 = 0 ;
10472 bool temp2 = False ;
10473 PyObject * obj0 = 0 ;
10474 PyObject * obj1 = 0 ;
10475 char *kwnames[] = {
10476 (char *) "self",(char *) "text", NULL
10477 };
10478
10479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
10480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10481 {
10482 arg2 = wxString_in_helper(obj1);
10483 if (arg2 == NULL) SWIG_fail;
10484 temp2 = True;
10485 }
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
10488 (arg1)->SetValue((wxString const &)*arg2);
10489
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 Py_INCREF(Py_None); resultobj = Py_None;
10494 {
10495 if (temp2)
10496 delete arg2;
10497 }
10498 return resultobj;
10499 fail:
10500 {
10501 if (temp2)
10502 delete arg2;
10503 }
10504 return NULL;
10505 }
10506
10507
10508 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10509 PyObject *resultobj;
10510 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10511 int arg2 ;
10512 int arg3 ;
10513 PyObject * obj0 = 0 ;
10514 PyObject * obj1 = 0 ;
10515 PyObject * obj2 = 0 ;
10516 char *kwnames[] = {
10517 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10518 };
10519
10520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10522 {
10523 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
10526 {
10527 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10528 if (PyErr_Occurred()) SWIG_fail;
10529 }
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 (arg1)->SetRange(arg2,arg3);
10533
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 Py_INCREF(Py_None); resultobj = Py_None;
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj;
10546 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10547 int result;
10548 PyObject * obj0 = 0 ;
10549 char *kwnames[] = {
10550 (char *) "self", NULL
10551 };
10552
10553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
10554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10555 {
10556 PyThreadState* __tstate = wxPyBeginAllowThreads();
10557 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
10558
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 resultobj = SWIG_PyObj_FromInt((int)result);
10563 return resultobj;
10564 fail:
10565 return NULL;
10566 }
10567
10568
10569 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj;
10571 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10572 int result;
10573 PyObject * obj0 = 0 ;
10574 char *kwnames[] = {
10575 (char *) "self", NULL
10576 };
10577
10578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
10579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10580 {
10581 PyThreadState* __tstate = wxPyBeginAllowThreads();
10582 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
10583
10584 wxPyEndAllowThreads(__tstate);
10585 if (PyErr_Occurred()) SWIG_fail;
10586 }
10587 resultobj = SWIG_PyObj_FromInt((int)result);
10588 return resultobj;
10589 fail:
10590 return NULL;
10591 }
10592
10593
10594 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10595 PyObject *resultobj;
10596 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
10597 long arg2 ;
10598 long arg3 ;
10599 PyObject * obj0 = 0 ;
10600 PyObject * obj1 = 0 ;
10601 PyObject * obj2 = 0 ;
10602 char *kwnames[] = {
10603 (char *) "self",(char *) "from",(char *) "to", NULL
10604 };
10605
10606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
10607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10608 {
10609 arg2 = (long) SWIG_PyObj_AsLong(obj1);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 {
10613 arg3 = (long) SWIG_PyObj_AsLong(obj2);
10614 if (PyErr_Occurred()) SWIG_fail;
10615 }
10616 {
10617 PyThreadState* __tstate = wxPyBeginAllowThreads();
10618 (arg1)->SetSelection(arg2,arg3);
10619
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 Py_INCREF(Py_None); resultobj = Py_None;
10624 return resultobj;
10625 fail:
10626 return NULL;
10627 }
10628
10629
10630 static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
10631 PyObject *obj;
10632 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10633 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
10634 Py_INCREF(obj);
10635 return Py_BuildValue((char *)"");
10636 }
10637 static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10638 PyObject *resultobj;
10639 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10640 int arg2 = (int) 0 ;
10641 wxSpinEvent *result;
10642 PyObject * obj0 = 0 ;
10643 PyObject * obj1 = 0 ;
10644 char *kwnames[] = {
10645 (char *) "commandType",(char *) "winid", NULL
10646 };
10647
10648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
10649 if (obj0) {
10650 {
10651 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 }
10655 if (obj1) {
10656 {
10657 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 }
10661 {
10662 PyThreadState* __tstate = wxPyBeginAllowThreads();
10663 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
10664
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1);
10669 return resultobj;
10670 fail:
10671 return NULL;
10672 }
10673
10674
10675 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10676 PyObject *resultobj;
10677 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10678 int result;
10679 PyObject * obj0 = 0 ;
10680 char *kwnames[] = {
10681 (char *) "self", NULL
10682 };
10683
10684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
10685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
10689
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 resultobj = SWIG_PyObj_FromInt((int)result);
10694 return resultobj;
10695 fail:
10696 return NULL;
10697 }
10698
10699
10700 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10701 PyObject *resultobj;
10702 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
10703 int arg2 ;
10704 PyObject * obj0 = 0 ;
10705 PyObject * obj1 = 0 ;
10706 char *kwnames[] = {
10707 (char *) "self",(char *) "pos", NULL
10708 };
10709
10710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
10711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10712 {
10713 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 (arg1)->SetPosition(arg2);
10719
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 Py_INCREF(Py_None); resultobj = Py_None;
10724 return resultobj;
10725 fail:
10726 return NULL;
10727 }
10728
10729
10730 static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
10731 PyObject *obj;
10732 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10733 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
10734 Py_INCREF(obj);
10735 return Py_BuildValue((char *)"");
10736 }
10737 static int _wrap_RadioBoxNameStr_set(PyObject *) {
10738 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
10739 return 1;
10740 }
10741
10742
10743 static PyObject *_wrap_RadioBoxNameStr_get() {
10744 PyObject *pyobj;
10745
10746 {
10747 #if wxUSE_UNICODE
10748 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10749 #else
10750 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
10751 #endif
10752 }
10753 return pyobj;
10754 }
10755
10756
10757 static int _wrap_RadioButtonNameStr_set(PyObject *) {
10758 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
10759 return 1;
10760 }
10761
10762
10763 static PyObject *_wrap_RadioButtonNameStr_get() {
10764 PyObject *pyobj;
10765
10766 {
10767 #if wxUSE_UNICODE
10768 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10769 #else
10770 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
10771 #endif
10772 }
10773 return pyobj;
10774 }
10775
10776
10777 static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10778 PyObject *resultobj;
10779 wxWindow *arg1 = (wxWindow *) 0 ;
10780 int arg2 ;
10781 wxString *arg3 = 0 ;
10782 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10783 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10784 wxSize const &arg5_defvalue = wxDefaultSize ;
10785 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10786 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10787 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10788 int arg7 = (int) 0 ;
10789 long arg8 = (long) wxRA_HORIZONTAL ;
10790 wxValidator const &arg9_defvalue = wxDefaultValidator ;
10791 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
10792 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
10793 wxString *arg10 = (wxString *) &arg10_defvalue ;
10794 wxRadioBox *result;
10795 bool temp3 = False ;
10796 wxPoint temp4 ;
10797 wxSize temp5 ;
10798 bool temp6 = False ;
10799 bool temp10 = False ;
10800 PyObject * obj0 = 0 ;
10801 PyObject * obj1 = 0 ;
10802 PyObject * obj2 = 0 ;
10803 PyObject * obj3 = 0 ;
10804 PyObject * obj4 = 0 ;
10805 PyObject * obj5 = 0 ;
10806 PyObject * obj6 = 0 ;
10807 PyObject * obj7 = 0 ;
10808 PyObject * obj8 = 0 ;
10809 PyObject * obj9 = 0 ;
10810 char *kwnames[] = {
10811 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
10812 };
10813
10814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10816 {
10817 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 {
10821 arg3 = wxString_in_helper(obj2);
10822 if (arg3 == NULL) SWIG_fail;
10823 temp3 = True;
10824 }
10825 if (obj3) {
10826 {
10827 arg4 = &temp4;
10828 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10829 }
10830 }
10831 if (obj4) {
10832 {
10833 arg5 = &temp5;
10834 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10835 }
10836 }
10837 if (obj5) {
10838 {
10839 if (! PySequence_Check(obj5)) {
10840 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10841 SWIG_fail;
10842 }
10843 arg6 = new wxArrayString;
10844 temp6 = True;
10845 int i, len=PySequence_Length(obj5);
10846 for (i=0; i<len; i++) {
10847 PyObject* item = PySequence_GetItem(obj5, i);
10848 #if wxUSE_UNICODE
10849 PyObject* str = PyObject_Unicode(item);
10850 #else
10851 PyObject* str = PyObject_Str(item);
10852 #endif
10853 arg6->Add(Py2wxString(str));
10854 Py_DECREF(item);
10855 Py_DECREF(str);
10856 }
10857 }
10858 }
10859 if (obj6) {
10860 {
10861 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 }
10864 }
10865 if (obj7) {
10866 {
10867 arg8 = (long) SWIG_PyObj_AsLong(obj7);
10868 if (PyErr_Occurred()) SWIG_fail;
10869 }
10870 }
10871 if (obj8) {
10872 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10873 if (arg9 == NULL) {
10874 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10875 }
10876 }
10877 if (obj9) {
10878 {
10879 arg10 = wxString_in_helper(obj9);
10880 if (arg10 == NULL) SWIG_fail;
10881 temp10 = True;
10882 }
10883 }
10884 {
10885 PyThreadState* __tstate = wxPyBeginAllowThreads();
10886 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);
10887
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
10891 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1);
10892 {
10893 if (temp3)
10894 delete arg3;
10895 }
10896 {
10897 if (temp6) delete arg6;
10898 }
10899 {
10900 if (temp10)
10901 delete arg10;
10902 }
10903 return resultobj;
10904 fail:
10905 {
10906 if (temp3)
10907 delete arg3;
10908 }
10909 {
10910 if (temp6) delete arg6;
10911 }
10912 {
10913 if (temp10)
10914 delete arg10;
10915 }
10916 return NULL;
10917 }
10918
10919
10920 static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj;
10922 wxRadioBox *result;
10923 char *kwnames[] = {
10924 NULL
10925 };
10926
10927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
10928 {
10929 PyThreadState* __tstate = wxPyBeginAllowThreads();
10930 result = (wxRadioBox *)new wxRadioBox();
10931
10932 wxPyEndAllowThreads(__tstate);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 }
10935 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1);
10936 return resultobj;
10937 fail:
10938 return NULL;
10939 }
10940
10941
10942 static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10943 PyObject *resultobj;
10944 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
10945 wxWindow *arg2 = (wxWindow *) 0 ;
10946 int arg3 ;
10947 wxString *arg4 = 0 ;
10948 wxPoint const &arg5_defvalue = wxDefaultPosition ;
10949 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
10950 wxSize const &arg6_defvalue = wxDefaultSize ;
10951 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
10952 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
10953 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
10954 int arg8 = (int) 0 ;
10955 long arg9 = (long) wxRA_HORIZONTAL ;
10956 wxValidator const &arg10_defvalue = wxDefaultValidator ;
10957 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
10958 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
10959 wxString *arg11 = (wxString *) &arg11_defvalue ;
10960 bool result;
10961 bool temp4 = False ;
10962 wxPoint temp5 ;
10963 wxSize temp6 ;
10964 bool temp7 = False ;
10965 bool temp11 = False ;
10966 PyObject * obj0 = 0 ;
10967 PyObject * obj1 = 0 ;
10968 PyObject * obj2 = 0 ;
10969 PyObject * obj3 = 0 ;
10970 PyObject * obj4 = 0 ;
10971 PyObject * obj5 = 0 ;
10972 PyObject * obj6 = 0 ;
10973 PyObject * obj7 = 0 ;
10974 PyObject * obj8 = 0 ;
10975 PyObject * obj9 = 0 ;
10976 PyObject * obj10 = 0 ;
10977 char *kwnames[] = {
10978 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
10979 };
10980
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
10982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10983 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10984 {
10985 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 {
10989 arg4 = wxString_in_helper(obj3);
10990 if (arg4 == NULL) SWIG_fail;
10991 temp4 = True;
10992 }
10993 if (obj4) {
10994 {
10995 arg5 = &temp5;
10996 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10997 }
10998 }
10999 if (obj5) {
11000 {
11001 arg6 = &temp6;
11002 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11003 }
11004 }
11005 if (obj6) {
11006 {
11007 if (! PySequence_Check(obj6)) {
11008 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11009 SWIG_fail;
11010 }
11011 arg7 = new wxArrayString;
11012 temp7 = True;
11013 int i, len=PySequence_Length(obj6);
11014 for (i=0; i<len; i++) {
11015 PyObject* item = PySequence_GetItem(obj6, i);
11016 #if wxUSE_UNICODE
11017 PyObject* str = PyObject_Unicode(item);
11018 #else
11019 PyObject* str = PyObject_Str(item);
11020 #endif
11021 arg7->Add(Py2wxString(str));
11022 Py_DECREF(item);
11023 Py_DECREF(str);
11024 }
11025 }
11026 }
11027 if (obj7) {
11028 {
11029 arg8 = (int) SWIG_PyObj_AsInt(obj7);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 }
11033 if (obj8) {
11034 {
11035 arg9 = (long) SWIG_PyObj_AsLong(obj8);
11036 if (PyErr_Occurred()) SWIG_fail;
11037 }
11038 }
11039 if (obj9) {
11040 if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11041 if (arg10 == NULL) {
11042 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11043 }
11044 }
11045 if (obj10) {
11046 {
11047 arg11 = wxString_in_helper(obj10);
11048 if (arg11 == NULL) SWIG_fail;
11049 temp11 = True;
11050 }
11051 }
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 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);
11055
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11060 {
11061 if (temp4)
11062 delete arg4;
11063 }
11064 {
11065 if (temp7) delete arg7;
11066 }
11067 {
11068 if (temp11)
11069 delete arg11;
11070 }
11071 return resultobj;
11072 fail:
11073 {
11074 if (temp4)
11075 delete arg4;
11076 }
11077 {
11078 if (temp7) delete arg7;
11079 }
11080 {
11081 if (temp11)
11082 delete arg11;
11083 }
11084 return NULL;
11085 }
11086
11087
11088 static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj;
11090 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11091 int arg2 ;
11092 PyObject * obj0 = 0 ;
11093 PyObject * obj1 = 0 ;
11094 char *kwnames[] = {
11095 (char *) "self",(char *) "n", NULL
11096 };
11097
11098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11100 {
11101 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 (arg1)->SetSelection(arg2);
11107
11108 wxPyEndAllowThreads(__tstate);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
11111 Py_INCREF(Py_None); resultobj = Py_None;
11112 return resultobj;
11113 fail:
11114 return NULL;
11115 }
11116
11117
11118 static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11119 PyObject *resultobj;
11120 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11121 int result;
11122 PyObject * obj0 = 0 ;
11123 char *kwnames[] = {
11124 (char *) "self", NULL
11125 };
11126
11127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11129 {
11130 PyThreadState* __tstate = wxPyBeginAllowThreads();
11131 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11132
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 resultobj = SWIG_PyObj_FromInt((int)result);
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj;
11145 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11146 wxString result;
11147 PyObject * obj0 = 0 ;
11148 char *kwnames[] = {
11149 (char *) "self", NULL
11150 };
11151
11152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11157
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 {
11162 #if wxUSE_UNICODE
11163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11164 #else
11165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11166 #endif
11167 }
11168 return resultobj;
11169 fail:
11170 return NULL;
11171 }
11172
11173
11174 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11175 PyObject *resultobj;
11176 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11177 wxString *arg2 = 0 ;
11178 bool result;
11179 bool temp2 = False ;
11180 PyObject * obj0 = 0 ;
11181 PyObject * obj1 = 0 ;
11182 char *kwnames[] = {
11183 (char *) "self",(char *) "s", NULL
11184 };
11185
11186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11188 {
11189 arg2 = wxString_in_helper(obj1);
11190 if (arg2 == NULL) SWIG_fail;
11191 temp2 = True;
11192 }
11193 {
11194 PyThreadState* __tstate = wxPyBeginAllowThreads();
11195 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11196
11197 wxPyEndAllowThreads(__tstate);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 }
11200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11201 {
11202 if (temp2)
11203 delete arg2;
11204 }
11205 return resultobj;
11206 fail:
11207 {
11208 if (temp2)
11209 delete arg2;
11210 }
11211 return NULL;
11212 }
11213
11214
11215 static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11216 PyObject *resultobj;
11217 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11218 int result;
11219 PyObject * obj0 = 0 ;
11220 char *kwnames[] = {
11221 (char *) "self", NULL
11222 };
11223
11224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
11228 result = (int)((wxRadioBox const *)arg1)->GetCount();
11229
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
11233 resultobj = SWIG_PyObj_FromInt((int)result);
11234 return resultobj;
11235 fail:
11236 return NULL;
11237 }
11238
11239
11240 static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
11241 PyObject *resultobj;
11242 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11243 wxString *arg2 = 0 ;
11244 int result;
11245 bool temp2 = False ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 char *kwnames[] = {
11249 (char *) "self",(char *) "s", NULL
11250 };
11251
11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
11253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11254 {
11255 arg2 = wxString_in_helper(obj1);
11256 if (arg2 == NULL) SWIG_fail;
11257 temp2 = True;
11258 }
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
11261 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
11262
11263 wxPyEndAllowThreads(__tstate);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 }
11266 resultobj = SWIG_PyObj_FromInt((int)result);
11267 {
11268 if (temp2)
11269 delete arg2;
11270 }
11271 return resultobj;
11272 fail:
11273 {
11274 if (temp2)
11275 delete arg2;
11276 }
11277 return NULL;
11278 }
11279
11280
11281 static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11282 PyObject *resultobj;
11283 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11284 int arg2 ;
11285 wxString result;
11286 PyObject * obj0 = 0 ;
11287 PyObject * obj1 = 0 ;
11288 char *kwnames[] = {
11289 (char *) "self",(char *) "n", NULL
11290 };
11291
11292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
11293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11294 {
11295 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11296 if (PyErr_Occurred()) SWIG_fail;
11297 }
11298 {
11299 PyThreadState* __tstate = wxPyBeginAllowThreads();
11300 result = ((wxRadioBox const *)arg1)->GetString(arg2);
11301
11302 wxPyEndAllowThreads(__tstate);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 }
11305 {
11306 #if wxUSE_UNICODE
11307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11308 #else
11309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11310 #endif
11311 }
11312 return resultobj;
11313 fail:
11314 return NULL;
11315 }
11316
11317
11318 static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
11319 PyObject *resultobj;
11320 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11321 int arg2 ;
11322 wxString *arg3 = 0 ;
11323 bool temp3 = False ;
11324 PyObject * obj0 = 0 ;
11325 PyObject * obj1 = 0 ;
11326 PyObject * obj2 = 0 ;
11327 char *kwnames[] = {
11328 (char *) "self",(char *) "n",(char *) "label", NULL
11329 };
11330
11331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11333 {
11334 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11335 if (PyErr_Occurred()) SWIG_fail;
11336 }
11337 {
11338 arg3 = wxString_in_helper(obj2);
11339 if (arg3 == NULL) SWIG_fail;
11340 temp3 = True;
11341 }
11342 {
11343 PyThreadState* __tstate = wxPyBeginAllowThreads();
11344 (arg1)->SetString(arg2,(wxString const &)*arg3);
11345
11346 wxPyEndAllowThreads(__tstate);
11347 if (PyErr_Occurred()) SWIG_fail;
11348 }
11349 Py_INCREF(Py_None); resultobj = Py_None;
11350 {
11351 if (temp3)
11352 delete arg3;
11353 }
11354 return resultobj;
11355 fail:
11356 {
11357 if (temp3)
11358 delete arg3;
11359 }
11360 return NULL;
11361 }
11362
11363
11364 static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj;
11366 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11367 int arg2 ;
11368 bool arg3 = (bool) True ;
11369 PyObject * obj0 = 0 ;
11370 PyObject * obj1 = 0 ;
11371 PyObject * obj2 = 0 ;
11372 char *kwnames[] = {
11373 (char *) "self",(char *) "n",(char *) "enable", NULL
11374 };
11375
11376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11378 {
11379 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11380 if (PyErr_Occurred()) SWIG_fail;
11381 }
11382 if (obj2) {
11383 {
11384 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11385 if (PyErr_Occurred()) SWIG_fail;
11386 }
11387 }
11388 {
11389 PyThreadState* __tstate = wxPyBeginAllowThreads();
11390 (arg1)->Enable(arg2,arg3);
11391
11392 wxPyEndAllowThreads(__tstate);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 }
11395 Py_INCREF(Py_None); resultobj = Py_None;
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11403 PyObject *resultobj;
11404 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11405 int arg2 ;
11406 bool arg3 = (bool) True ;
11407 PyObject * obj0 = 0 ;
11408 PyObject * obj1 = 0 ;
11409 PyObject * obj2 = 0 ;
11410 char *kwnames[] = {
11411 (char *) "self",(char *) "n",(char *) "show", NULL
11412 };
11413
11414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
11415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11416 {
11417 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 }
11420 if (obj2) {
11421 {
11422 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 }
11426 {
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 (arg1)->Show(arg2,arg3);
11429
11430 wxPyEndAllowThreads(__tstate);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 Py_INCREF(Py_None); resultobj = Py_None;
11434 return resultobj;
11435 fail:
11436 return NULL;
11437 }
11438
11439
11440 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11441 PyObject *resultobj;
11442 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11443 int result;
11444 PyObject * obj0 = 0 ;
11445 char *kwnames[] = {
11446 (char *) "self", NULL
11447 };
11448
11449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
11450 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11451 {
11452 PyThreadState* __tstate = wxPyBeginAllowThreads();
11453 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
11454
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 resultobj = SWIG_PyObj_FromInt((int)result);
11459 return resultobj;
11460 fail:
11461 return NULL;
11462 }
11463
11464
11465 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11466 PyObject *resultobj;
11467 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11468 int result;
11469 PyObject * obj0 = 0 ;
11470 char *kwnames[] = {
11471 (char *) "self", NULL
11472 };
11473
11474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
11475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11476 {
11477 PyThreadState* __tstate = wxPyBeginAllowThreads();
11478 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
11479
11480 wxPyEndAllowThreads(__tstate);
11481 if (PyErr_Occurred()) SWIG_fail;
11482 }
11483 resultobj = SWIG_PyObj_FromInt((int)result);
11484 return resultobj;
11485 fail:
11486 return NULL;
11487 }
11488
11489
11490 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
11491 PyObject *resultobj;
11492 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11493 int arg2 ;
11494 int arg3 ;
11495 long arg4 ;
11496 int result;
11497 PyObject * obj0 = 0 ;
11498 PyObject * obj1 = 0 ;
11499 PyObject * obj2 = 0 ;
11500 PyObject * obj3 = 0 ;
11501 char *kwnames[] = {
11502 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
11503 };
11504
11505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11507 {
11508 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 {
11512 arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2);
11513 if (PyErr_Occurred()) SWIG_fail;
11514 }
11515 {
11516 arg4 = (long) SWIG_PyObj_AsLong(obj3);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 {
11520 PyThreadState* __tstate = wxPyBeginAllowThreads();
11521 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
11522
11523 wxPyEndAllowThreads(__tstate);
11524 if (PyErr_Occurred()) SWIG_fail;
11525 }
11526 resultobj = SWIG_PyObj_FromInt((int)result);
11527 return resultobj;
11528 fail:
11529 return NULL;
11530 }
11531
11532
11533 static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
11534 PyObject *obj;
11535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11536 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
11537 Py_INCREF(obj);
11538 return Py_BuildValue((char *)"");
11539 }
11540 static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11541 PyObject *resultobj;
11542 wxWindow *arg1 = (wxWindow *) 0 ;
11543 int arg2 ;
11544 wxString *arg3 = 0 ;
11545 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11546 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11547 wxSize const &arg5_defvalue = wxDefaultSize ;
11548 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11549 long arg6 = (long) 0 ;
11550 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11551 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11552 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
11553 wxString *arg8 = (wxString *) &arg8_defvalue ;
11554 wxRadioButton *result;
11555 bool temp3 = False ;
11556 wxPoint temp4 ;
11557 wxSize temp5 ;
11558 bool temp8 = False ;
11559 PyObject * obj0 = 0 ;
11560 PyObject * obj1 = 0 ;
11561 PyObject * obj2 = 0 ;
11562 PyObject * obj3 = 0 ;
11563 PyObject * obj4 = 0 ;
11564 PyObject * obj5 = 0 ;
11565 PyObject * obj6 = 0 ;
11566 PyObject * obj7 = 0 ;
11567 char *kwnames[] = {
11568 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11569 };
11570
11571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11573 {
11574 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11575 if (PyErr_Occurred()) SWIG_fail;
11576 }
11577 {
11578 arg3 = wxString_in_helper(obj2);
11579 if (arg3 == NULL) SWIG_fail;
11580 temp3 = True;
11581 }
11582 if (obj3) {
11583 {
11584 arg4 = &temp4;
11585 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11586 }
11587 }
11588 if (obj4) {
11589 {
11590 arg5 = &temp5;
11591 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11592 }
11593 }
11594 if (obj5) {
11595 {
11596 arg6 = (long) SWIG_PyObj_AsLong(obj5);
11597 if (PyErr_Occurred()) SWIG_fail;
11598 }
11599 }
11600 if (obj6) {
11601 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11602 if (arg7 == NULL) {
11603 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11604 }
11605 }
11606 if (obj7) {
11607 {
11608 arg8 = wxString_in_helper(obj7);
11609 if (arg8 == NULL) SWIG_fail;
11610 temp8 = True;
11611 }
11612 }
11613 {
11614 PyThreadState* __tstate = wxPyBeginAllowThreads();
11615 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11616
11617 wxPyEndAllowThreads(__tstate);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 }
11620 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1);
11621 {
11622 if (temp3)
11623 delete arg3;
11624 }
11625 {
11626 if (temp8)
11627 delete arg8;
11628 }
11629 return resultobj;
11630 fail:
11631 {
11632 if (temp3)
11633 delete arg3;
11634 }
11635 {
11636 if (temp8)
11637 delete arg8;
11638 }
11639 return NULL;
11640 }
11641
11642
11643 static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11644 PyObject *resultobj;
11645 wxRadioButton *result;
11646 char *kwnames[] = {
11647 NULL
11648 };
11649
11650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (wxRadioButton *)new wxRadioButton();
11654
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1);
11659 return resultobj;
11660 fail:
11661 return NULL;
11662 }
11663
11664
11665 static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11666 PyObject *resultobj;
11667 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11668 wxWindow *arg2 = (wxWindow *) 0 ;
11669 int arg3 ;
11670 wxString *arg4 = 0 ;
11671 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11672 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11673 wxSize const &arg6_defvalue = wxDefaultSize ;
11674 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11675 long arg7 = (long) 0 ;
11676 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11677 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11678 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
11679 wxString *arg9 = (wxString *) &arg9_defvalue ;
11680 bool result;
11681 bool temp4 = False ;
11682 wxPoint temp5 ;
11683 wxSize temp6 ;
11684 bool temp9 = False ;
11685 PyObject * obj0 = 0 ;
11686 PyObject * obj1 = 0 ;
11687 PyObject * obj2 = 0 ;
11688 PyObject * obj3 = 0 ;
11689 PyObject * obj4 = 0 ;
11690 PyObject * obj5 = 0 ;
11691 PyObject * obj6 = 0 ;
11692 PyObject * obj7 = 0 ;
11693 PyObject * obj8 = 0 ;
11694 char *kwnames[] = {
11695 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11696 };
11697
11698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
11699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11700 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11701 {
11702 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11703 if (PyErr_Occurred()) SWIG_fail;
11704 }
11705 {
11706 arg4 = wxString_in_helper(obj3);
11707 if (arg4 == NULL) SWIG_fail;
11708 temp4 = True;
11709 }
11710 if (obj4) {
11711 {
11712 arg5 = &temp5;
11713 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11714 }
11715 }
11716 if (obj5) {
11717 {
11718 arg6 = &temp6;
11719 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11720 }
11721 }
11722 if (obj6) {
11723 {
11724 arg7 = (long) SWIG_PyObj_AsLong(obj6);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 }
11728 if (obj7) {
11729 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11730 if (arg8 == NULL) {
11731 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11732 }
11733 }
11734 if (obj8) {
11735 {
11736 arg9 = wxString_in_helper(obj8);
11737 if (arg9 == NULL) SWIG_fail;
11738 temp9 = True;
11739 }
11740 }
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11744
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11749 {
11750 if (temp4)
11751 delete arg4;
11752 }
11753 {
11754 if (temp9)
11755 delete arg9;
11756 }
11757 return resultobj;
11758 fail:
11759 {
11760 if (temp4)
11761 delete arg4;
11762 }
11763 {
11764 if (temp9)
11765 delete arg9;
11766 }
11767 return NULL;
11768 }
11769
11770
11771 static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11772 PyObject *resultobj;
11773 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11774 bool result;
11775 PyObject * obj0 = 0 ;
11776 char *kwnames[] = {
11777 (char *) "self", NULL
11778 };
11779
11780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
11781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (bool)(arg1)->GetValue();
11785
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11790 return resultobj;
11791 fail:
11792 return NULL;
11793 }
11794
11795
11796 static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11797 PyObject *resultobj;
11798 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
11799 bool arg2 ;
11800 PyObject * obj0 = 0 ;
11801 PyObject * obj1 = 0 ;
11802 char *kwnames[] = {
11803 (char *) "self",(char *) "value", NULL
11804 };
11805
11806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11808 {
11809 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
11810 if (PyErr_Occurred()) SWIG_fail;
11811 }
11812 {
11813 PyThreadState* __tstate = wxPyBeginAllowThreads();
11814 (arg1)->SetValue(arg2);
11815
11816 wxPyEndAllowThreads(__tstate);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 Py_INCREF(Py_None); resultobj = Py_None;
11820 return resultobj;
11821 fail:
11822 return NULL;
11823 }
11824
11825
11826 static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
11827 PyObject *obj;
11828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11829 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
11830 Py_INCREF(obj);
11831 return Py_BuildValue((char *)"");
11832 }
11833 static int _wrap_SliderNameStr_set(PyObject *) {
11834 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
11835 return 1;
11836 }
11837
11838
11839 static PyObject *_wrap_SliderNameStr_get() {
11840 PyObject *pyobj;
11841
11842 {
11843 #if wxUSE_UNICODE
11844 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
11845 #else
11846 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
11847 #endif
11848 }
11849 return pyobj;
11850 }
11851
11852
11853 static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
11854 PyObject *resultobj;
11855 wxWindow *arg1 = (wxWindow *) 0 ;
11856 int arg2 ;
11857 int arg3 ;
11858 int arg4 ;
11859 int arg5 ;
11860 wxPoint const &arg6_defvalue = wxDefaultPosition ;
11861 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
11862 wxSize const &arg7_defvalue = wxDefaultSize ;
11863 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
11864 long arg8 = (long) wxSL_HORIZONTAL ;
11865 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11866 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11867 wxString const &arg10_defvalue = wxPySliderNameStr ;
11868 wxString *arg10 = (wxString *) &arg10_defvalue ;
11869 wxSlider *result;
11870 wxPoint temp6 ;
11871 wxSize temp7 ;
11872 bool temp10 = False ;
11873 PyObject * obj0 = 0 ;
11874 PyObject * obj1 = 0 ;
11875 PyObject * obj2 = 0 ;
11876 PyObject * obj3 = 0 ;
11877 PyObject * obj4 = 0 ;
11878 PyObject * obj5 = 0 ;
11879 PyObject * obj6 = 0 ;
11880 PyObject * obj7 = 0 ;
11881 PyObject * obj8 = 0 ;
11882 PyObject * obj9 = 0 ;
11883 char *kwnames[] = {
11884 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11885 };
11886
11887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11889 {
11890 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 {
11894 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 }
11897 {
11898 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 {
11902 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 if (obj5) {
11906 {
11907 arg6 = &temp6;
11908 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
11909 }
11910 }
11911 if (obj6) {
11912 {
11913 arg7 = &temp7;
11914 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
11915 }
11916 }
11917 if (obj7) {
11918 {
11919 arg8 = (long) SWIG_PyObj_AsLong(obj7);
11920 if (PyErr_Occurred()) SWIG_fail;
11921 }
11922 }
11923 if (obj8) {
11924 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11925 if (arg9 == NULL) {
11926 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11927 }
11928 }
11929 if (obj9) {
11930 {
11931 arg10 = wxString_in_helper(obj9);
11932 if (arg10 == NULL) SWIG_fail;
11933 temp10 = True;
11934 }
11935 }
11936 {
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
11939
11940 wxPyEndAllowThreads(__tstate);
11941 if (PyErr_Occurred()) SWIG_fail;
11942 }
11943 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1);
11944 {
11945 if (temp10)
11946 delete arg10;
11947 }
11948 return resultobj;
11949 fail:
11950 {
11951 if (temp10)
11952 delete arg10;
11953 }
11954 return NULL;
11955 }
11956
11957
11958 static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj;
11960 wxSlider *result;
11961 char *kwnames[] = {
11962 NULL
11963 };
11964
11965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
11966 {
11967 PyThreadState* __tstate = wxPyBeginAllowThreads();
11968 result = (wxSlider *)new wxSlider();
11969
11970 wxPyEndAllowThreads(__tstate);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 }
11973 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1);
11974 return resultobj;
11975 fail:
11976 return NULL;
11977 }
11978
11979
11980 static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11981 PyObject *resultobj;
11982 wxSlider *arg1 = (wxSlider *) 0 ;
11983 wxWindow *arg2 = (wxWindow *) 0 ;
11984 int arg3 ;
11985 int arg4 ;
11986 int arg5 ;
11987 int arg6 ;
11988 wxPoint const &arg7_defvalue = wxDefaultPosition ;
11989 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
11990 wxSize const &arg8_defvalue = wxDefaultSize ;
11991 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
11992 long arg9 = (long) wxSL_HORIZONTAL ;
11993 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11994 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11995 wxString const &arg11_defvalue = wxPySliderNameStr ;
11996 wxString *arg11 = (wxString *) &arg11_defvalue ;
11997 bool result;
11998 wxPoint temp7 ;
11999 wxSize temp8 ;
12000 bool temp11 = False ;
12001 PyObject * obj0 = 0 ;
12002 PyObject * obj1 = 0 ;
12003 PyObject * obj2 = 0 ;
12004 PyObject * obj3 = 0 ;
12005 PyObject * obj4 = 0 ;
12006 PyObject * obj5 = 0 ;
12007 PyObject * obj6 = 0 ;
12008 PyObject * obj7 = 0 ;
12009 PyObject * obj8 = 0 ;
12010 PyObject * obj9 = 0 ;
12011 PyObject * obj10 = 0 ;
12012 char *kwnames[] = {
12013 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12014 };
12015
12016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12018 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12019 {
12020 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 {
12024 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12025 if (PyErr_Occurred()) SWIG_fail;
12026 }
12027 {
12028 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 {
12032 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12033 if (PyErr_Occurred()) SWIG_fail;
12034 }
12035 if (obj6) {
12036 {
12037 arg7 = &temp7;
12038 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12039 }
12040 }
12041 if (obj7) {
12042 {
12043 arg8 = &temp8;
12044 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12045 }
12046 }
12047 if (obj8) {
12048 {
12049 arg9 = (long) SWIG_PyObj_AsLong(obj8);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 }
12053 if (obj9) {
12054 if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12055 if (arg10 == NULL) {
12056 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12057 }
12058 }
12059 if (obj10) {
12060 {
12061 arg11 = wxString_in_helper(obj10);
12062 if (arg11 == NULL) SWIG_fail;
12063 temp11 = True;
12064 }
12065 }
12066 {
12067 PyThreadState* __tstate = wxPyBeginAllowThreads();
12068 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12069
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12074 {
12075 if (temp11)
12076 delete arg11;
12077 }
12078 return resultobj;
12079 fail:
12080 {
12081 if (temp11)
12082 delete arg11;
12083 }
12084 return NULL;
12085 }
12086
12087
12088 static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12089 PyObject *resultobj;
12090 wxSlider *arg1 = (wxSlider *) 0 ;
12091 int result;
12092 PyObject * obj0 = 0 ;
12093 char *kwnames[] = {
12094 (char *) "self", NULL
12095 };
12096
12097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 result = (int)((wxSlider const *)arg1)->GetValue();
12102
12103 wxPyEndAllowThreads(__tstate);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
12106 resultobj = SWIG_PyObj_FromInt((int)result);
12107 return resultobj;
12108 fail:
12109 return NULL;
12110 }
12111
12112
12113 static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12114 PyObject *resultobj;
12115 wxSlider *arg1 = (wxSlider *) 0 ;
12116 int arg2 ;
12117 PyObject * obj0 = 0 ;
12118 PyObject * obj1 = 0 ;
12119 char *kwnames[] = {
12120 (char *) "self",(char *) "value", NULL
12121 };
12122
12123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12125 {
12126 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 {
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 (arg1)->SetValue(arg2);
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 Py_INCREF(Py_None); resultobj = Py_None;
12137 return resultobj;
12138 fail:
12139 return NULL;
12140 }
12141
12142
12143 static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12144 PyObject *resultobj;
12145 wxSlider *arg1 = (wxSlider *) 0 ;
12146 int arg2 ;
12147 int arg3 ;
12148 PyObject * obj0 = 0 ;
12149 PyObject * obj1 = 0 ;
12150 PyObject * obj2 = 0 ;
12151 char *kwnames[] = {
12152 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12153 };
12154
12155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12157 {
12158 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 {
12162 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12163 if (PyErr_Occurred()) SWIG_fail;
12164 }
12165 {
12166 PyThreadState* __tstate = wxPyBeginAllowThreads();
12167 (arg1)->SetRange(arg2,arg3);
12168
12169 wxPyEndAllowThreads(__tstate);
12170 if (PyErr_Occurred()) SWIG_fail;
12171 }
12172 Py_INCREF(Py_None); resultobj = Py_None;
12173 return resultobj;
12174 fail:
12175 return NULL;
12176 }
12177
12178
12179 static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12180 PyObject *resultobj;
12181 wxSlider *arg1 = (wxSlider *) 0 ;
12182 int result;
12183 PyObject * obj0 = 0 ;
12184 char *kwnames[] = {
12185 (char *) "self", NULL
12186 };
12187
12188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
12189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12190 {
12191 PyThreadState* __tstate = wxPyBeginAllowThreads();
12192 result = (int)((wxSlider const *)arg1)->GetMin();
12193
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 resultobj = SWIG_PyObj_FromInt((int)result);
12198 return resultobj;
12199 fail:
12200 return NULL;
12201 }
12202
12203
12204 static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12205 PyObject *resultobj;
12206 wxSlider *arg1 = (wxSlider *) 0 ;
12207 int result;
12208 PyObject * obj0 = 0 ;
12209 char *kwnames[] = {
12210 (char *) "self", NULL
12211 };
12212
12213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
12214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12215 {
12216 PyThreadState* __tstate = wxPyBeginAllowThreads();
12217 result = (int)((wxSlider const *)arg1)->GetMax();
12218
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 }
12222 resultobj = SWIG_PyObj_FromInt((int)result);
12223 return resultobj;
12224 fail:
12225 return NULL;
12226 }
12227
12228
12229 static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12230 PyObject *resultobj;
12231 wxSlider *arg1 = (wxSlider *) 0 ;
12232 int arg2 ;
12233 PyObject * obj0 = 0 ;
12234 PyObject * obj1 = 0 ;
12235 char *kwnames[] = {
12236 (char *) "self",(char *) "minValue", NULL
12237 };
12238
12239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
12240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12241 {
12242 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 }
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 (arg1)->SetMin(arg2);
12248
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 Py_INCREF(Py_None); resultobj = Py_None;
12253 return resultobj;
12254 fail:
12255 return NULL;
12256 }
12257
12258
12259 static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12260 PyObject *resultobj;
12261 wxSlider *arg1 = (wxSlider *) 0 ;
12262 int arg2 ;
12263 PyObject * obj0 = 0 ;
12264 PyObject * obj1 = 0 ;
12265 char *kwnames[] = {
12266 (char *) "self",(char *) "maxValue", NULL
12267 };
12268
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
12270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12271 {
12272 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 (arg1)->SetMax(arg2);
12278
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 Py_INCREF(Py_None); resultobj = Py_None;
12283 return resultobj;
12284 fail:
12285 return NULL;
12286 }
12287
12288
12289 static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12290 PyObject *resultobj;
12291 wxSlider *arg1 = (wxSlider *) 0 ;
12292 int arg2 ;
12293 PyObject * obj0 = 0 ;
12294 PyObject * obj1 = 0 ;
12295 char *kwnames[] = {
12296 (char *) "self",(char *) "lineSize", NULL
12297 };
12298
12299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
12300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12301 {
12302 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12303 if (PyErr_Occurred()) SWIG_fail;
12304 }
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 (arg1)->SetLineSize(arg2);
12308
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 Py_INCREF(Py_None); resultobj = Py_None;
12313 return resultobj;
12314 fail:
12315 return NULL;
12316 }
12317
12318
12319 static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12320 PyObject *resultobj;
12321 wxSlider *arg1 = (wxSlider *) 0 ;
12322 int arg2 ;
12323 PyObject * obj0 = 0 ;
12324 PyObject * obj1 = 0 ;
12325 char *kwnames[] = {
12326 (char *) "self",(char *) "pageSize", NULL
12327 };
12328
12329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
12330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12331 {
12332 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12333 if (PyErr_Occurred()) SWIG_fail;
12334 }
12335 {
12336 PyThreadState* __tstate = wxPyBeginAllowThreads();
12337 (arg1)->SetPageSize(arg2);
12338
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 }
12342 Py_INCREF(Py_None); resultobj = Py_None;
12343 return resultobj;
12344 fail:
12345 return NULL;
12346 }
12347
12348
12349 static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj;
12351 wxSlider *arg1 = (wxSlider *) 0 ;
12352 int result;
12353 PyObject * obj0 = 0 ;
12354 char *kwnames[] = {
12355 (char *) "self", NULL
12356 };
12357
12358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
12359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12360 {
12361 PyThreadState* __tstate = wxPyBeginAllowThreads();
12362 result = (int)((wxSlider const *)arg1)->GetLineSize();
12363
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 resultobj = SWIG_PyObj_FromInt((int)result);
12368 return resultobj;
12369 fail:
12370 return NULL;
12371 }
12372
12373
12374 static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12375 PyObject *resultobj;
12376 wxSlider *arg1 = (wxSlider *) 0 ;
12377 int result;
12378 PyObject * obj0 = 0 ;
12379 char *kwnames[] = {
12380 (char *) "self", NULL
12381 };
12382
12383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
12384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 result = (int)((wxSlider const *)arg1)->GetPageSize();
12388
12389 wxPyEndAllowThreads(__tstate);
12390 if (PyErr_Occurred()) SWIG_fail;
12391 }
12392 resultobj = SWIG_PyObj_FromInt((int)result);
12393 return resultobj;
12394 fail:
12395 return NULL;
12396 }
12397
12398
12399 static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj;
12401 wxSlider *arg1 = (wxSlider *) 0 ;
12402 int arg2 ;
12403 PyObject * obj0 = 0 ;
12404 PyObject * obj1 = 0 ;
12405 char *kwnames[] = {
12406 (char *) "self",(char *) "lenPixels", NULL
12407 };
12408
12409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
12410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12411 {
12412 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 (arg1)->SetThumbLength(arg2);
12418
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 Py_INCREF(Py_None); resultobj = Py_None;
12423 return resultobj;
12424 fail:
12425 return NULL;
12426 }
12427
12428
12429 static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
12430 PyObject *resultobj;
12431 wxSlider *arg1 = (wxSlider *) 0 ;
12432 int result;
12433 PyObject * obj0 = 0 ;
12434 char *kwnames[] = {
12435 (char *) "self", NULL
12436 };
12437
12438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
12439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 result = (int)((wxSlider const *)arg1)->GetThumbLength();
12443
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 resultobj = SWIG_PyObj_FromInt((int)result);
12448 return resultobj;
12449 fail:
12450 return NULL;
12451 }
12452
12453
12454 static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj;
12456 wxSlider *arg1 = (wxSlider *) 0 ;
12457 int arg2 ;
12458 int arg3 = (int) 1 ;
12459 PyObject * obj0 = 0 ;
12460 PyObject * obj1 = 0 ;
12461 PyObject * obj2 = 0 ;
12462 char *kwnames[] = {
12463 (char *) "self",(char *) "n",(char *) "pos", NULL
12464 };
12465
12466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
12467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12468 {
12469 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12470 if (PyErr_Occurred()) SWIG_fail;
12471 }
12472 if (obj2) {
12473 {
12474 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 }
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 (arg1)->SetTickFreq(arg2,arg3);
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 Py_INCREF(Py_None); resultobj = Py_None;
12486 return resultobj;
12487 fail:
12488 return NULL;
12489 }
12490
12491
12492 static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
12493 PyObject *resultobj;
12494 wxSlider *arg1 = (wxSlider *) 0 ;
12495 int result;
12496 PyObject * obj0 = 0 ;
12497 char *kwnames[] = {
12498 (char *) "self", NULL
12499 };
12500
12501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
12502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 result = (int)((wxSlider const *)arg1)->GetTickFreq();
12506
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 resultobj = SWIG_PyObj_FromInt((int)result);
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxSlider *arg1 = (wxSlider *) 0 ;
12520 PyObject * obj0 = 0 ;
12521 char *kwnames[] = {
12522 (char *) "self", NULL
12523 };
12524
12525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
12526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12527 {
12528 PyThreadState* __tstate = wxPyBeginAllowThreads();
12529 (arg1)->ClearTicks();
12530
12531 wxPyEndAllowThreads(__tstate);
12532 if (PyErr_Occurred()) SWIG_fail;
12533 }
12534 Py_INCREF(Py_None); resultobj = Py_None;
12535 return resultobj;
12536 fail:
12537 return NULL;
12538 }
12539
12540
12541 static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
12542 PyObject *resultobj;
12543 wxSlider *arg1 = (wxSlider *) 0 ;
12544 int arg2 ;
12545 PyObject * obj0 = 0 ;
12546 PyObject * obj1 = 0 ;
12547 char *kwnames[] = {
12548 (char *) "self",(char *) "tickPos", NULL
12549 };
12550
12551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
12552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12553 {
12554 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->SetTick(arg2);
12560
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 Py_INCREF(Py_None); resultobj = Py_None;
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj;
12573 wxSlider *arg1 = (wxSlider *) 0 ;
12574 PyObject * obj0 = 0 ;
12575 char *kwnames[] = {
12576 (char *) "self", NULL
12577 };
12578
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",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 (arg1)->ClearSel();
12584
12585 wxPyEndAllowThreads(__tstate);
12586 if (PyErr_Occurred()) SWIG_fail;
12587 }
12588 Py_INCREF(Py_None); resultobj = Py_None;
12589 return resultobj;
12590 fail:
12591 return NULL;
12592 }
12593
12594
12595 static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj;
12597 wxSlider *arg1 = (wxSlider *) 0 ;
12598 int result;
12599 PyObject * obj0 = 0 ;
12600 char *kwnames[] = {
12601 (char *) "self", NULL
12602 };
12603
12604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
12605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 result = (int)((wxSlider const *)arg1)->GetSelEnd();
12609
12610 wxPyEndAllowThreads(__tstate);
12611 if (PyErr_Occurred()) SWIG_fail;
12612 }
12613 resultobj = SWIG_PyObj_FromInt((int)result);
12614 return resultobj;
12615 fail:
12616 return NULL;
12617 }
12618
12619
12620 static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
12621 PyObject *resultobj;
12622 wxSlider *arg1 = (wxSlider *) 0 ;
12623 int result;
12624 PyObject * obj0 = 0 ;
12625 char *kwnames[] = {
12626 (char *) "self", NULL
12627 };
12628
12629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
12630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (int)((wxSlider const *)arg1)->GetSelStart();
12634
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_PyObj_FromInt((int)result);
12639 return resultobj;
12640 fail:
12641 return NULL;
12642 }
12643
12644
12645 static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12646 PyObject *resultobj;
12647 wxSlider *arg1 = (wxSlider *) 0 ;
12648 int arg2 ;
12649 int arg3 ;
12650 PyObject * obj0 = 0 ;
12651 PyObject * obj1 = 0 ;
12652 PyObject * obj2 = 0 ;
12653 char *kwnames[] = {
12654 (char *) "self",(char *) "min",(char *) "max", NULL
12655 };
12656
12657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
12658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12659 {
12660 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12661 if (PyErr_Occurred()) SWIG_fail;
12662 }
12663 {
12664 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 (arg1)->SetSelection(arg2,arg3);
12670
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 Py_INCREF(Py_None); resultobj = Py_None;
12675 return resultobj;
12676 fail:
12677 return NULL;
12678 }
12679
12680
12681 static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
12682 PyObject *obj;
12683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12684 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
12685 Py_INCREF(obj);
12686 return Py_BuildValue((char *)"");
12687 }
12688 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
12689 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
12690 return 1;
12691 }
12692
12693
12694 static PyObject *_wrap_ToggleButtonNameStr_get() {
12695 PyObject *pyobj;
12696
12697 {
12698 #if wxUSE_UNICODE
12699 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12700 #else
12701 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
12702 #endif
12703 }
12704 return pyobj;
12705 }
12706
12707
12708 static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12709 PyObject *resultobj;
12710 wxWindow *arg1 = (wxWindow *) 0 ;
12711 int arg2 ;
12712 wxString *arg3 = 0 ;
12713 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12714 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12715 wxSize const &arg5_defvalue = wxDefaultSize ;
12716 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12717 long arg6 = (long) 0 ;
12718 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12719 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12720 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
12721 wxString *arg8 = (wxString *) &arg8_defvalue ;
12722 wxToggleButton *result;
12723 bool temp3 = False ;
12724 wxPoint temp4 ;
12725 wxSize temp5 ;
12726 bool temp8 = False ;
12727 PyObject * obj0 = 0 ;
12728 PyObject * obj1 = 0 ;
12729 PyObject * obj2 = 0 ;
12730 PyObject * obj3 = 0 ;
12731 PyObject * obj4 = 0 ;
12732 PyObject * obj5 = 0 ;
12733 PyObject * obj6 = 0 ;
12734 PyObject * obj7 = 0 ;
12735 char *kwnames[] = {
12736 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12737 };
12738
12739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12741 {
12742 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 {
12746 arg3 = wxString_in_helper(obj2);
12747 if (arg3 == NULL) SWIG_fail;
12748 temp3 = True;
12749 }
12750 if (obj3) {
12751 {
12752 arg4 = &temp4;
12753 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12754 }
12755 }
12756 if (obj4) {
12757 {
12758 arg5 = &temp5;
12759 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12760 }
12761 }
12762 if (obj5) {
12763 {
12764 arg6 = (long) SWIG_PyObj_AsLong(obj5);
12765 if (PyErr_Occurred()) SWIG_fail;
12766 }
12767 }
12768 if (obj6) {
12769 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12770 if (arg7 == NULL) {
12771 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12772 }
12773 }
12774 if (obj7) {
12775 {
12776 arg8 = wxString_in_helper(obj7);
12777 if (arg8 == NULL) SWIG_fail;
12778 temp8 = True;
12779 }
12780 }
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12784
12785 wxPyEndAllowThreads(__tstate);
12786 if (PyErr_Occurred()) SWIG_fail;
12787 }
12788 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1);
12789 {
12790 if (temp3)
12791 delete arg3;
12792 }
12793 {
12794 if (temp8)
12795 delete arg8;
12796 }
12797 return resultobj;
12798 fail:
12799 {
12800 if (temp3)
12801 delete arg3;
12802 }
12803 {
12804 if (temp8)
12805 delete arg8;
12806 }
12807 return NULL;
12808 }
12809
12810
12811 static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj;
12813 wxToggleButton *result;
12814 char *kwnames[] = {
12815 NULL
12816 };
12817
12818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 result = (wxToggleButton *)new wxToggleButton();
12822
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1);
12827 return resultobj;
12828 fail:
12829 return NULL;
12830 }
12831
12832
12833 static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12834 PyObject *resultobj;
12835 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12836 wxWindow *arg2 = (wxWindow *) 0 ;
12837 int arg3 ;
12838 wxString *arg4 = 0 ;
12839 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12840 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12841 wxSize const &arg6_defvalue = wxDefaultSize ;
12842 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12843 long arg7 = (long) 0 ;
12844 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12845 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12846 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
12847 wxString *arg9 = (wxString *) &arg9_defvalue ;
12848 bool result;
12849 bool temp4 = False ;
12850 wxPoint temp5 ;
12851 wxSize temp6 ;
12852 bool temp9 = False ;
12853 PyObject * obj0 = 0 ;
12854 PyObject * obj1 = 0 ;
12855 PyObject * obj2 = 0 ;
12856 PyObject * obj3 = 0 ;
12857 PyObject * obj4 = 0 ;
12858 PyObject * obj5 = 0 ;
12859 PyObject * obj6 = 0 ;
12860 PyObject * obj7 = 0 ;
12861 PyObject * obj8 = 0 ;
12862 char *kwnames[] = {
12863 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12864 };
12865
12866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12868 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12869 {
12870 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 {
12874 arg4 = wxString_in_helper(obj3);
12875 if (arg4 == NULL) SWIG_fail;
12876 temp4 = True;
12877 }
12878 if (obj4) {
12879 {
12880 arg5 = &temp5;
12881 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12882 }
12883 }
12884 if (obj5) {
12885 {
12886 arg6 = &temp6;
12887 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12888 }
12889 }
12890 if (obj6) {
12891 {
12892 arg7 = (long) SWIG_PyObj_AsLong(obj6);
12893 if (PyErr_Occurred()) SWIG_fail;
12894 }
12895 }
12896 if (obj7) {
12897 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12898 if (arg8 == NULL) {
12899 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12900 }
12901 }
12902 if (obj8) {
12903 {
12904 arg9 = wxString_in_helper(obj8);
12905 if (arg9 == NULL) SWIG_fail;
12906 temp9 = True;
12907 }
12908 }
12909 {
12910 PyThreadState* __tstate = wxPyBeginAllowThreads();
12911 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12912
12913 wxPyEndAllowThreads(__tstate);
12914 if (PyErr_Occurred()) SWIG_fail;
12915 }
12916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12917 {
12918 if (temp4)
12919 delete arg4;
12920 }
12921 {
12922 if (temp9)
12923 delete arg9;
12924 }
12925 return resultobj;
12926 fail:
12927 {
12928 if (temp4)
12929 delete arg4;
12930 }
12931 {
12932 if (temp9)
12933 delete arg9;
12934 }
12935 return NULL;
12936 }
12937
12938
12939 static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12940 PyObject *resultobj;
12941 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12942 bool arg2 ;
12943 PyObject * obj0 = 0 ;
12944 PyObject * obj1 = 0 ;
12945 char *kwnames[] = {
12946 (char *) "self",(char *) "value", NULL
12947 };
12948
12949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12951 {
12952 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
12953 if (PyErr_Occurred()) SWIG_fail;
12954 }
12955 {
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
12957 (arg1)->SetValue(arg2);
12958
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 Py_INCREF(Py_None); resultobj = Py_None;
12963 return resultobj;
12964 fail:
12965 return NULL;
12966 }
12967
12968
12969 static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj;
12971 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12972 bool result;
12973 PyObject * obj0 = 0 ;
12974 char *kwnames[] = {
12975 (char *) "self", NULL
12976 };
12977
12978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
12979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12980 {
12981 PyThreadState* __tstate = wxPyBeginAllowThreads();
12982 result = (bool)((wxToggleButton const *)arg1)->GetValue();
12983
12984 wxPyEndAllowThreads(__tstate);
12985 if (PyErr_Occurred()) SWIG_fail;
12986 }
12987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12988 return resultobj;
12989 fail:
12990 return NULL;
12991 }
12992
12993
12994 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12995 PyObject *resultobj;
12996 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
12997 wxString *arg2 = 0 ;
12998 bool temp2 = False ;
12999 PyObject * obj0 = 0 ;
13000 PyObject * obj1 = 0 ;
13001 char *kwnames[] = {
13002 (char *) "self",(char *) "label", NULL
13003 };
13004
13005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13007 {
13008 arg2 = wxString_in_helper(obj1);
13009 if (arg2 == NULL) SWIG_fail;
13010 temp2 = True;
13011 }
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 (arg1)->SetLabel((wxString const &)*arg2);
13015
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 Py_INCREF(Py_None); resultobj = Py_None;
13020 {
13021 if (temp2)
13022 delete arg2;
13023 }
13024 return resultobj;
13025 fail:
13026 {
13027 if (temp2)
13028 delete arg2;
13029 }
13030 return NULL;
13031 }
13032
13033
13034 static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13035 PyObject *obj;
13036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13037 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13038 Py_INCREF(obj);
13039 return Py_BuildValue((char *)"");
13040 }
13041 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
13042 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13043 return 1;
13044 }
13045
13046
13047 static PyObject *_wrap_NOTEBOOK_NAME_get() {
13048 PyObject *pyobj;
13049
13050 {
13051 #if wxUSE_UNICODE
13052 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13053 #else
13054 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13055 #endif
13056 }
13057 return pyobj;
13058 }
13059
13060
13061 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13062 PyObject *resultobj;
13063 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13064 size_t result;
13065 PyObject * obj0 = 0 ;
13066 char *kwnames[] = {
13067 (char *) "self", NULL
13068 };
13069
13070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13072 {
13073 PyThreadState* __tstate = wxPyBeginAllowThreads();
13074 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13075
13076 wxPyEndAllowThreads(__tstate);
13077 if (PyErr_Occurred()) SWIG_fail;
13078 }
13079 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
13080 return resultobj;
13081 fail:
13082 return NULL;
13083 }
13084
13085
13086 static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13087 PyObject *resultobj;
13088 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13089 size_t arg2 ;
13090 wxWindow *result;
13091 PyObject * obj0 = 0 ;
13092 PyObject * obj1 = 0 ;
13093 char *kwnames[] = {
13094 (char *) "self",(char *) "n", NULL
13095 };
13096
13097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13099 {
13100 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 {
13104 PyThreadState* __tstate = wxPyBeginAllowThreads();
13105 result = (wxWindow *)(arg1)->GetPage(arg2);
13106
13107 wxPyEndAllowThreads(__tstate);
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 {
13111 resultobj = wxPyMake_wxObject(result);
13112 }
13113 return resultobj;
13114 fail:
13115 return NULL;
13116 }
13117
13118
13119 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13120 PyObject *resultobj;
13121 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13122 int result;
13123 PyObject * obj0 = 0 ;
13124 char *kwnames[] = {
13125 (char *) "self", NULL
13126 };
13127
13128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
13129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
13133
13134 wxPyEndAllowThreads(__tstate);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 resultobj = SWIG_PyObj_FromInt((int)result);
13138 return resultobj;
13139 fail:
13140 return NULL;
13141 }
13142
13143
13144 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13145 PyObject *resultobj;
13146 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13147 size_t arg2 ;
13148 wxString *arg3 = 0 ;
13149 bool result;
13150 bool temp3 = False ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 PyObject * obj2 = 0 ;
13154 char *kwnames[] = {
13155 (char *) "self",(char *) "n",(char *) "strText", NULL
13156 };
13157
13158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
13159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13160 {
13161 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13162 if (PyErr_Occurred()) SWIG_fail;
13163 }
13164 {
13165 arg3 = wxString_in_helper(obj2);
13166 if (arg3 == NULL) SWIG_fail;
13167 temp3 = True;
13168 }
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
13172
13173 wxPyEndAllowThreads(__tstate);
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13177 {
13178 if (temp3)
13179 delete arg3;
13180 }
13181 return resultobj;
13182 fail:
13183 {
13184 if (temp3)
13185 delete arg3;
13186 }
13187 return NULL;
13188 }
13189
13190
13191 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13192 PyObject *resultobj;
13193 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13194 size_t arg2 ;
13195 wxString result;
13196 PyObject * obj0 = 0 ;
13197 PyObject * obj1 = 0 ;
13198 char *kwnames[] = {
13199 (char *) "self",(char *) "n", NULL
13200 };
13201
13202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
13203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13204 {
13205 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13206 if (PyErr_Occurred()) SWIG_fail;
13207 }
13208 {
13209 PyThreadState* __tstate = wxPyBeginAllowThreads();
13210 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
13211
13212 wxPyEndAllowThreads(__tstate);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 {
13216 #if wxUSE_UNICODE
13217 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13218 #else
13219 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13220 #endif
13221 }
13222 return resultobj;
13223 fail:
13224 return NULL;
13225 }
13226
13227
13228 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj;
13230 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13231 wxImageList *arg2 = (wxImageList *) 0 ;
13232 PyObject * obj0 = 0 ;
13233 PyObject * obj1 = 0 ;
13234 char *kwnames[] = {
13235 (char *) "self",(char *) "imageList", NULL
13236 };
13237
13238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
13239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13240 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13241 {
13242 PyThreadState* __tstate = wxPyBeginAllowThreads();
13243 (arg1)->SetImageList(arg2);
13244
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 Py_INCREF(Py_None); resultobj = Py_None;
13249 return resultobj;
13250 fail:
13251 return NULL;
13252 }
13253
13254
13255 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj;
13257 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13258 wxImageList *arg2 = (wxImageList *) 0 ;
13259 PyObject * obj0 = 0 ;
13260 PyObject * obj1 = 0 ;
13261 char *kwnames[] = {
13262 (char *) "self",(char *) "imageList", NULL
13263 };
13264
13265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
13266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13267 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
13268 {
13269 PyThreadState* __tstate = wxPyBeginAllowThreads();
13270 (arg1)->AssignImageList(arg2);
13271
13272 wxPyEndAllowThreads(__tstate);
13273 if (PyErr_Occurred()) SWIG_fail;
13274 }
13275 Py_INCREF(Py_None); resultobj = Py_None;
13276 return resultobj;
13277 fail:
13278 return NULL;
13279 }
13280
13281
13282 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13283 PyObject *resultobj;
13284 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13285 wxImageList *result;
13286 PyObject * obj0 = 0 ;
13287 char *kwnames[] = {
13288 (char *) "self", NULL
13289 };
13290
13291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
13292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
13296
13297 wxPyEndAllowThreads(__tstate);
13298 if (PyErr_Occurred()) SWIG_fail;
13299 }
13300 {
13301 resultobj = wxPyMake_wxObject(result);
13302 }
13303 return resultobj;
13304 fail:
13305 return NULL;
13306 }
13307
13308
13309 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13312 size_t arg2 ;
13313 int result;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 char *kwnames[] = {
13317 (char *) "self",(char *) "n", NULL
13318 };
13319
13320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
13321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13322 {
13323 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 {
13327 PyThreadState* __tstate = wxPyBeginAllowThreads();
13328 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
13329
13330 wxPyEndAllowThreads(__tstate);
13331 if (PyErr_Occurred()) SWIG_fail;
13332 }
13333 resultobj = SWIG_PyObj_FromInt((int)result);
13334 return resultobj;
13335 fail:
13336 return NULL;
13337 }
13338
13339
13340 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
13341 PyObject *resultobj;
13342 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13343 size_t arg2 ;
13344 int arg3 ;
13345 bool result;
13346 PyObject * obj0 = 0 ;
13347 PyObject * obj1 = 0 ;
13348 PyObject * obj2 = 0 ;
13349 char *kwnames[] = {
13350 (char *) "self",(char *) "n",(char *) "imageId", NULL
13351 };
13352
13353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
13354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13355 {
13356 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 {
13360 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 result = (bool)(arg1)->SetPageImage(arg2,arg3);
13366
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13371 return resultobj;
13372 fail:
13373 return NULL;
13374 }
13375
13376
13377 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13378 PyObject *resultobj;
13379 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13380 wxSize *arg2 = 0 ;
13381 wxSize temp2 ;
13382 PyObject * obj0 = 0 ;
13383 PyObject * obj1 = 0 ;
13384 char *kwnames[] = {
13385 (char *) "self",(char *) "size", NULL
13386 };
13387
13388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13390 {
13391 arg2 = &temp2;
13392 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13393 }
13394 {
13395 PyThreadState* __tstate = wxPyBeginAllowThreads();
13396 (arg1)->SetPageSize((wxSize const &)*arg2);
13397
13398 wxPyEndAllowThreads(__tstate);
13399 if (PyErr_Occurred()) SWIG_fail;
13400 }
13401 Py_INCREF(Py_None); resultobj = Py_None;
13402 return resultobj;
13403 fail:
13404 return NULL;
13405 }
13406
13407
13408 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13409 PyObject *resultobj;
13410 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13411 wxSize *arg2 = 0 ;
13412 wxSize result;
13413 wxSize temp2 ;
13414 PyObject * obj0 = 0 ;
13415 PyObject * obj1 = 0 ;
13416 char *kwnames[] = {
13417 (char *) "self",(char *) "sizePage", NULL
13418 };
13419
13420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
13421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13422 {
13423 arg2 = &temp2;
13424 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13425 }
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 {
13434 wxSize * resultptr;
13435 resultptr = new wxSize((wxSize &) result);
13436 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13437 }
13438 return resultobj;
13439 fail:
13440 return NULL;
13441 }
13442
13443
13444 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13445 PyObject *resultobj;
13446 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13447 size_t arg2 ;
13448 bool result;
13449 PyObject * obj0 = 0 ;
13450 PyObject * obj1 = 0 ;
13451 char *kwnames[] = {
13452 (char *) "self",(char *) "n", NULL
13453 };
13454
13455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
13456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13457 {
13458 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13459 if (PyErr_Occurred()) SWIG_fail;
13460 }
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (bool)(arg1)->DeletePage(arg2);
13464
13465 wxPyEndAllowThreads(__tstate);
13466 if (PyErr_Occurred()) SWIG_fail;
13467 }
13468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13469 return resultobj;
13470 fail:
13471 return NULL;
13472 }
13473
13474
13475 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
13476 PyObject *resultobj;
13477 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13478 size_t arg2 ;
13479 bool result;
13480 PyObject * obj0 = 0 ;
13481 PyObject * obj1 = 0 ;
13482 char *kwnames[] = {
13483 (char *) "self",(char *) "n", NULL
13484 };
13485
13486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
13487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13488 {
13489 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13490 if (PyErr_Occurred()) SWIG_fail;
13491 }
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 result = (bool)(arg1)->RemovePage(arg2);
13495
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13500 return resultobj;
13501 fail:
13502 return NULL;
13503 }
13504
13505
13506 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
13507 PyObject *resultobj;
13508 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13509 bool result;
13510 PyObject * obj0 = 0 ;
13511 char *kwnames[] = {
13512 (char *) "self", NULL
13513 };
13514
13515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
13516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 result = (bool)(arg1)->DeleteAllPages();
13520
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13532 PyObject *resultobj;
13533 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13534 wxWindow *arg2 = (wxWindow *) 0 ;
13535 wxString *arg3 = 0 ;
13536 bool arg4 = (bool) False ;
13537 int arg5 = (int) -1 ;
13538 bool result;
13539 bool temp3 = False ;
13540 PyObject * obj0 = 0 ;
13541 PyObject * obj1 = 0 ;
13542 PyObject * obj2 = 0 ;
13543 PyObject * obj3 = 0 ;
13544 PyObject * obj4 = 0 ;
13545 char *kwnames[] = {
13546 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13547 };
13548
13549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13551 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13552 {
13553 arg3 = wxString_in_helper(obj2);
13554 if (arg3 == NULL) SWIG_fail;
13555 temp3 = True;
13556 }
13557 if (obj3) {
13558 {
13559 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 }
13563 if (obj4) {
13564 {
13565 arg5 = (int) SWIG_PyObj_AsInt(obj4);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 }
13569 {
13570 PyThreadState* __tstate = wxPyBeginAllowThreads();
13571 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
13572
13573 wxPyEndAllowThreads(__tstate);
13574 if (PyErr_Occurred()) SWIG_fail;
13575 }
13576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13577 {
13578 if (temp3)
13579 delete arg3;
13580 }
13581 return resultobj;
13582 fail:
13583 {
13584 if (temp3)
13585 delete arg3;
13586 }
13587 return NULL;
13588 }
13589
13590
13591 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13592 PyObject *resultobj;
13593 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13594 size_t arg2 ;
13595 wxWindow *arg3 = (wxWindow *) 0 ;
13596 wxString *arg4 = 0 ;
13597 bool arg5 = (bool) False ;
13598 int arg6 = (int) -1 ;
13599 bool result;
13600 bool temp4 = False ;
13601 PyObject * obj0 = 0 ;
13602 PyObject * obj1 = 0 ;
13603 PyObject * obj2 = 0 ;
13604 PyObject * obj3 = 0 ;
13605 PyObject * obj4 = 0 ;
13606 PyObject * obj5 = 0 ;
13607 char *kwnames[] = {
13608 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
13609 };
13610
13611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13613 {
13614 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13615 if (PyErr_Occurred()) SWIG_fail;
13616 }
13617 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13618 {
13619 arg4 = wxString_in_helper(obj3);
13620 if (arg4 == NULL) SWIG_fail;
13621 temp4 = True;
13622 }
13623 if (obj4) {
13624 {
13625 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 }
13628 }
13629 if (obj5) {
13630 {
13631 arg6 = (int) SWIG_PyObj_AsInt(obj5);
13632 if (PyErr_Occurred()) SWIG_fail;
13633 }
13634 }
13635 {
13636 PyThreadState* __tstate = wxPyBeginAllowThreads();
13637 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
13638
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13643 {
13644 if (temp4)
13645 delete arg4;
13646 }
13647 return resultobj;
13648 fail:
13649 {
13650 if (temp4)
13651 delete arg4;
13652 }
13653 return NULL;
13654 }
13655
13656
13657 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13658 PyObject *resultobj;
13659 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13660 size_t arg2 ;
13661 int result;
13662 PyObject * obj0 = 0 ;
13663 PyObject * obj1 = 0 ;
13664 char *kwnames[] = {
13665 (char *) "self",(char *) "n", NULL
13666 };
13667
13668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13670 {
13671 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 {
13675 PyThreadState* __tstate = wxPyBeginAllowThreads();
13676 result = (int)(arg1)->SetSelection(arg2);
13677
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 resultobj = SWIG_PyObj_FromInt((int)result);
13682 return resultobj;
13683 fail:
13684 return NULL;
13685 }
13686
13687
13688 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13689 PyObject *resultobj;
13690 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13691 bool arg2 = (bool) True ;
13692 PyObject * obj0 = 0 ;
13693 PyObject * obj1 = 0 ;
13694 char *kwnames[] = {
13695 (char *) "self",(char *) "forward", NULL
13696 };
13697
13698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
13699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13700 if (obj1) {
13701 {
13702 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 }
13706 {
13707 PyThreadState* __tstate = wxPyBeginAllowThreads();
13708 (arg1)->AdvanceSelection(arg2);
13709
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 Py_INCREF(Py_None); resultobj = Py_None;
13714 return resultobj;
13715 fail:
13716 return NULL;
13717 }
13718
13719
13720 static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
13721 PyObject *obj;
13722 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13723 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
13724 Py_INCREF(obj);
13725 return Py_BuildValue((char *)"");
13726 }
13727 static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13728 PyObject *resultobj;
13729 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13730 int arg2 = (int) 0 ;
13731 int arg3 = (int) -1 ;
13732 int arg4 = (int) -1 ;
13733 wxBookCtrlEvent *result;
13734 PyObject * obj0 = 0 ;
13735 PyObject * obj1 = 0 ;
13736 PyObject * obj2 = 0 ;
13737 PyObject * obj3 = 0 ;
13738 char *kwnames[] = {
13739 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
13740 };
13741
13742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13743 if (obj0) {
13744 {
13745 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
13746 if (PyErr_Occurred()) SWIG_fail;
13747 }
13748 }
13749 if (obj1) {
13750 {
13751 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 }
13755 if (obj2) {
13756 {
13757 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13758 if (PyErr_Occurred()) SWIG_fail;
13759 }
13760 }
13761 if (obj3) {
13762 {
13763 arg4 = (int) SWIG_PyObj_AsInt(obj3);
13764 if (PyErr_Occurred()) SWIG_fail;
13765 }
13766 }
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
13770
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1);
13775 return resultobj;
13776 fail:
13777 return NULL;
13778 }
13779
13780
13781 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13782 PyObject *resultobj;
13783 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13784 int result;
13785 PyObject * obj0 = 0 ;
13786 char *kwnames[] = {
13787 (char *) "self", NULL
13788 };
13789
13790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
13791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13792 {
13793 PyThreadState* __tstate = wxPyBeginAllowThreads();
13794 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
13795
13796 wxPyEndAllowThreads(__tstate);
13797 if (PyErr_Occurred()) SWIG_fail;
13798 }
13799 resultobj = SWIG_PyObj_FromInt((int)result);
13800 return resultobj;
13801 fail:
13802 return NULL;
13803 }
13804
13805
13806 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13807 PyObject *resultobj;
13808 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13809 int arg2 ;
13810 PyObject * obj0 = 0 ;
13811 PyObject * obj1 = 0 ;
13812 char *kwnames[] = {
13813 (char *) "self",(char *) "nSel", NULL
13814 };
13815
13816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
13817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13818 {
13819 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 }
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 (arg1)->SetSelection(arg2);
13825
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 Py_INCREF(Py_None); resultobj = Py_None;
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj;
13838 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13839 int result;
13840 PyObject * obj0 = 0 ;
13841 char *kwnames[] = {
13842 (char *) "self", NULL
13843 };
13844
13845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
13846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_PyObj_FromInt((int)result);
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj;
13863 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
13864 int arg2 ;
13865 PyObject * obj0 = 0 ;
13866 PyObject * obj1 = 0 ;
13867 char *kwnames[] = {
13868 (char *) "self",(char *) "nOldSel", NULL
13869 };
13870
13871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
13872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13873 {
13874 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 (arg1)->SetOldSelection(arg2);
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 Py_INCREF(Py_None); resultobj = Py_None;
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
13892 PyObject *obj;
13893 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13894 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
13895 Py_INCREF(obj);
13896 return Py_BuildValue((char *)"");
13897 }
13898 static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
13899 PyObject *resultobj;
13900 wxWindow *arg1 = (wxWindow *) 0 ;
13901 int arg2 ;
13902 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13903 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13904 wxSize const &arg4_defvalue = wxDefaultSize ;
13905 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13906 long arg5 = (long) 0 ;
13907 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
13908 wxString *arg6 = (wxString *) &arg6_defvalue ;
13909 wxNotebook *result;
13910 wxPoint temp3 ;
13911 wxSize temp4 ;
13912 bool temp6 = False ;
13913 PyObject * obj0 = 0 ;
13914 PyObject * obj1 = 0 ;
13915 PyObject * obj2 = 0 ;
13916 PyObject * obj3 = 0 ;
13917 PyObject * obj4 = 0 ;
13918 PyObject * obj5 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13925 {
13926 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13927 if (PyErr_Occurred()) SWIG_fail;
13928 }
13929 if (obj2) {
13930 {
13931 arg3 = &temp3;
13932 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13933 }
13934 }
13935 if (obj3) {
13936 {
13937 arg4 = &temp4;
13938 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
13939 }
13940 }
13941 if (obj4) {
13942 {
13943 arg5 = (long) SWIG_PyObj_AsLong(obj4);
13944 if (PyErr_Occurred()) SWIG_fail;
13945 }
13946 }
13947 if (obj5) {
13948 {
13949 arg6 = wxString_in_helper(obj5);
13950 if (arg6 == NULL) SWIG_fail;
13951 temp6 = True;
13952 }
13953 }
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
13957
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 {
13962 resultobj = wxPyMake_wxObject(result);
13963 }
13964 {
13965 if (temp6)
13966 delete arg6;
13967 }
13968 return resultobj;
13969 fail:
13970 {
13971 if (temp6)
13972 delete arg6;
13973 }
13974 return NULL;
13975 }
13976
13977
13978 static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
13979 PyObject *resultobj;
13980 wxNotebook *result;
13981 char *kwnames[] = {
13982 NULL
13983 };
13984
13985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
13986 {
13987 PyThreadState* __tstate = wxPyBeginAllowThreads();
13988 result = (wxNotebook *)new wxNotebook();
13989
13990 wxPyEndAllowThreads(__tstate);
13991 if (PyErr_Occurred()) SWIG_fail;
13992 }
13993 {
13994 resultobj = wxPyMake_wxObject(result);
13995 }
13996 return resultobj;
13997 fail:
13998 return NULL;
13999 }
14000
14001
14002 static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14003 PyObject *resultobj;
14004 wxNotebook *arg1 = (wxNotebook *) 0 ;
14005 wxWindow *arg2 = (wxWindow *) 0 ;
14006 int arg3 ;
14007 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14008 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14009 wxSize const &arg5_defvalue = wxDefaultSize ;
14010 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14011 long arg6 = (long) 0 ;
14012 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14013 wxString *arg7 = (wxString *) &arg7_defvalue ;
14014 bool result;
14015 wxPoint temp4 ;
14016 wxSize temp5 ;
14017 bool temp7 = False ;
14018 PyObject * obj0 = 0 ;
14019 PyObject * obj1 = 0 ;
14020 PyObject * obj2 = 0 ;
14021 PyObject * obj3 = 0 ;
14022 PyObject * obj4 = 0 ;
14023 PyObject * obj5 = 0 ;
14024 PyObject * obj6 = 0 ;
14025 char *kwnames[] = {
14026 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14027 };
14028
14029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14031 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14032 {
14033 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14034 if (PyErr_Occurred()) SWIG_fail;
14035 }
14036 if (obj3) {
14037 {
14038 arg4 = &temp4;
14039 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14040 }
14041 }
14042 if (obj4) {
14043 {
14044 arg5 = &temp5;
14045 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14046 }
14047 }
14048 if (obj5) {
14049 {
14050 arg6 = (long) SWIG_PyObj_AsLong(obj5);
14051 if (PyErr_Occurred()) SWIG_fail;
14052 }
14053 }
14054 if (obj6) {
14055 {
14056 arg7 = wxString_in_helper(obj6);
14057 if (arg7 == NULL) SWIG_fail;
14058 temp7 = True;
14059 }
14060 }
14061 {
14062 PyThreadState* __tstate = wxPyBeginAllowThreads();
14063 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14064
14065 wxPyEndAllowThreads(__tstate);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
14068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14069 {
14070 if (temp7)
14071 delete arg7;
14072 }
14073 return resultobj;
14074 fail:
14075 {
14076 if (temp7)
14077 delete arg7;
14078 }
14079 return NULL;
14080 }
14081
14082
14083 static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14084 PyObject *resultobj;
14085 wxNotebook *arg1 = (wxNotebook *) 0 ;
14086 int result;
14087 PyObject * obj0 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (int)((wxNotebook const *)arg1)->GetRowCount();
14097
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 resultobj = SWIG_PyObj_FromInt((int)result);
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 wxNotebook *arg1 = (wxNotebook *) 0 ;
14111 wxSize *arg2 = 0 ;
14112 wxSize temp2 ;
14113 PyObject * obj0 = 0 ;
14114 PyObject * obj1 = 0 ;
14115 char *kwnames[] = {
14116 (char *) "self",(char *) "padding", NULL
14117 };
14118
14119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
14120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14121 {
14122 arg2 = &temp2;
14123 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14124 }
14125 {
14126 PyThreadState* __tstate = wxPyBeginAllowThreads();
14127 (arg1)->SetPadding((wxSize const &)*arg2);
14128
14129 wxPyEndAllowThreads(__tstate);
14130 if (PyErr_Occurred()) SWIG_fail;
14131 }
14132 Py_INCREF(Py_None); resultobj = Py_None;
14133 return resultobj;
14134 fail:
14135 return NULL;
14136 }
14137
14138
14139 static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14140 PyObject *resultobj;
14141 wxNotebook *arg1 = (wxNotebook *) 0 ;
14142 wxSize *arg2 = 0 ;
14143 wxSize temp2 ;
14144 PyObject * obj0 = 0 ;
14145 PyObject * obj1 = 0 ;
14146 char *kwnames[] = {
14147 (char *) "self",(char *) "sz", NULL
14148 };
14149
14150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
14151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14152 {
14153 arg2 = &temp2;
14154 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14155 }
14156 {
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 (arg1)->SetTabSize((wxSize const &)*arg2);
14159
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 Py_INCREF(Py_None); resultobj = Py_None;
14164 return resultobj;
14165 fail:
14166 return NULL;
14167 }
14168
14169
14170 static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
14171 PyObject *resultobj;
14172 wxNotebook *arg1 = (wxNotebook *) 0 ;
14173 wxPoint *arg2 = 0 ;
14174 long *arg3 = (long *) 0 ;
14175 int result;
14176 wxPoint temp2 ;
14177 long temp3 ;
14178 PyObject * obj0 = 0 ;
14179 PyObject * obj1 = 0 ;
14180 char *kwnames[] = {
14181 (char *) "self",(char *) "pt", NULL
14182 };
14183
14184 arg3 = &temp3;
14185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
14186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14187 {
14188 arg2 = &temp2;
14189 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14190 }
14191 {
14192 PyThreadState* __tstate = wxPyBeginAllowThreads();
14193 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
14194
14195 wxPyEndAllowThreads(__tstate);
14196 if (PyErr_Occurred()) SWIG_fail;
14197 }
14198 resultobj = SWIG_PyObj_FromInt((int)result);
14199 {
14200 PyObject *o = PyInt_FromLong((long) (*arg3));
14201 resultobj = t_output_helper(resultobj,o);
14202 }
14203 return resultobj;
14204 fail:
14205 return NULL;
14206 }
14207
14208
14209 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14210 PyObject *resultobj;
14211 wxNotebook *arg1 = (wxNotebook *) 0 ;
14212 wxSize *arg2 = 0 ;
14213 wxSize result;
14214 wxSize temp2 ;
14215 PyObject * obj0 = 0 ;
14216 PyObject * obj1 = 0 ;
14217 char *kwnames[] = {
14218 (char *) "self",(char *) "sizePage", NULL
14219 };
14220
14221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14223 {
14224 arg2 = &temp2;
14225 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14226 }
14227 {
14228 PyThreadState* __tstate = wxPyBeginAllowThreads();
14229 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14230
14231 wxPyEndAllowThreads(__tstate);
14232 if (PyErr_Occurred()) SWIG_fail;
14233 }
14234 {
14235 wxSize * resultptr;
14236 resultptr = new wxSize((wxSize &) result);
14237 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
14238 }
14239 return resultobj;
14240 fail:
14241 return NULL;
14242 }
14243
14244
14245 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14246 PyObject *resultobj;
14247 wxNotebook *arg1 = (wxNotebook *) 0 ;
14248 wxWindow *arg2 = (wxWindow *) 0 ;
14249 wxColour *arg3 = 0 ;
14250 wxColour temp3 ;
14251 PyObject * obj0 = 0 ;
14252 PyObject * obj1 = 0 ;
14253 PyObject * obj2 = 0 ;
14254 char *kwnames[] = {
14255 (char *) "self",(char *) "window",(char *) "colour", NULL
14256 };
14257
14258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
14259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14260 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14261 {
14262 arg3 = &temp3;
14263 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14264 }
14265 {
14266 PyThreadState* __tstate = wxPyBeginAllowThreads();
14267 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
14268
14269 wxPyEndAllowThreads(__tstate);
14270 if (PyErr_Occurred()) SWIG_fail;
14271 }
14272 Py_INCREF(Py_None); resultobj = Py_None;
14273 return resultobj;
14274 fail:
14275 return NULL;
14276 }
14277
14278
14279 static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
14280 PyObject *obj;
14281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14282 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
14283 Py_INCREF(obj);
14284 return Py_BuildValue((char *)"");
14285 }
14286 static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14287 PyObject *resultobj;
14288 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14289 int arg2 = (int) 0 ;
14290 int arg3 = (int) -1 ;
14291 int arg4 = (int) -1 ;
14292 wxNotebookEvent *result;
14293 PyObject * obj0 = 0 ;
14294 PyObject * obj1 = 0 ;
14295 PyObject * obj2 = 0 ;
14296 PyObject * obj3 = 0 ;
14297 char *kwnames[] = {
14298 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14299 };
14300
14301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14302 if (obj0) {
14303 {
14304 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
14305 if (PyErr_Occurred()) SWIG_fail;
14306 }
14307 }
14308 if (obj1) {
14309 {
14310 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14311 if (PyErr_Occurred()) SWIG_fail;
14312 }
14313 }
14314 if (obj2) {
14315 {
14316 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14317 if (PyErr_Occurred()) SWIG_fail;
14318 }
14319 }
14320 if (obj3) {
14321 {
14322 arg4 = (int) SWIG_PyObj_AsInt(obj3);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 }
14326 {
14327 PyThreadState* __tstate = wxPyBeginAllowThreads();
14328 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
14329
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1);
14334 return resultobj;
14335 fail:
14336 return NULL;
14337 }
14338
14339
14340 static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
14341 PyObject *obj;
14342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14343 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
14344 Py_INCREF(obj);
14345 return Py_BuildValue((char *)"");
14346 }
14347 static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14348 PyObject *resultobj;
14349 wxWindow *arg1 = (wxWindow *) 0 ;
14350 int arg2 ;
14351 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14352 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14353 wxSize const &arg4_defvalue = wxDefaultSize ;
14354 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14355 long arg5 = (long) 0 ;
14356 wxString const &arg6_defvalue = wxPyEmptyString ;
14357 wxString *arg6 = (wxString *) &arg6_defvalue ;
14358 wxListbook *result;
14359 wxPoint temp3 ;
14360 wxSize temp4 ;
14361 bool temp6 = False ;
14362 PyObject * obj0 = 0 ;
14363 PyObject * obj1 = 0 ;
14364 PyObject * obj2 = 0 ;
14365 PyObject * obj3 = 0 ;
14366 PyObject * obj4 = 0 ;
14367 PyObject * obj5 = 0 ;
14368 char *kwnames[] = {
14369 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14370 };
14371
14372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14374 {
14375 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 }
14378 if (obj2) {
14379 {
14380 arg3 = &temp3;
14381 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14382 }
14383 }
14384 if (obj3) {
14385 {
14386 arg4 = &temp4;
14387 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14388 }
14389 }
14390 if (obj4) {
14391 {
14392 arg5 = (long) SWIG_PyObj_AsLong(obj4);
14393 if (PyErr_Occurred()) SWIG_fail;
14394 }
14395 }
14396 if (obj5) {
14397 {
14398 arg6 = wxString_in_helper(obj5);
14399 if (arg6 == NULL) SWIG_fail;
14400 temp6 = True;
14401 }
14402 }
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14406
14407 wxPyEndAllowThreads(__tstate);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1);
14411 {
14412 if (temp6)
14413 delete arg6;
14414 }
14415 return resultobj;
14416 fail:
14417 {
14418 if (temp6)
14419 delete arg6;
14420 }
14421 return NULL;
14422 }
14423
14424
14425 static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
14426 PyObject *resultobj;
14427 wxListbook *result;
14428 char *kwnames[] = {
14429 NULL
14430 };
14431
14432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
14433 {
14434 PyThreadState* __tstate = wxPyBeginAllowThreads();
14435 result = (wxListbook *)new wxListbook();
14436
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1);
14441 return resultobj;
14442 fail:
14443 return NULL;
14444 }
14445
14446
14447 static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14448 PyObject *resultobj;
14449 wxListbook *arg1 = (wxListbook *) 0 ;
14450 wxWindow *arg2 = (wxWindow *) 0 ;
14451 int arg3 ;
14452 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14453 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14454 wxSize const &arg5_defvalue = wxDefaultSize ;
14455 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14456 long arg6 = (long) 0 ;
14457 wxString const &arg7_defvalue = wxPyEmptyString ;
14458 wxString *arg7 = (wxString *) &arg7_defvalue ;
14459 bool result;
14460 wxPoint temp4 ;
14461 wxSize temp5 ;
14462 bool temp7 = False ;
14463 PyObject * obj0 = 0 ;
14464 PyObject * obj1 = 0 ;
14465 PyObject * obj2 = 0 ;
14466 PyObject * obj3 = 0 ;
14467 PyObject * obj4 = 0 ;
14468 PyObject * obj5 = 0 ;
14469 PyObject * obj6 = 0 ;
14470 char *kwnames[] = {
14471 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14472 };
14473
14474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14476 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14477 {
14478 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 if (obj3) {
14482 {
14483 arg4 = &temp4;
14484 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14485 }
14486 }
14487 if (obj4) {
14488 {
14489 arg5 = &temp5;
14490 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14491 }
14492 }
14493 if (obj5) {
14494 {
14495 arg6 = (long) SWIG_PyObj_AsLong(obj5);
14496 if (PyErr_Occurred()) SWIG_fail;
14497 }
14498 }
14499 if (obj6) {
14500 {
14501 arg7 = wxString_in_helper(obj6);
14502 if (arg7 == NULL) SWIG_fail;
14503 temp7 = True;
14504 }
14505 }
14506 {
14507 PyThreadState* __tstate = wxPyBeginAllowThreads();
14508 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14509
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14514 {
14515 if (temp7)
14516 delete arg7;
14517 }
14518 return resultobj;
14519 fail:
14520 {
14521 if (temp7)
14522 delete arg7;
14523 }
14524 return NULL;
14525 }
14526
14527
14528 static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
14529 PyObject *resultobj;
14530 wxListbook *arg1 = (wxListbook *) 0 ;
14531 bool result;
14532 PyObject * obj0 = 0 ;
14533 char *kwnames[] = {
14534 (char *) "self", NULL
14535 };
14536
14537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
14538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14539 {
14540 PyThreadState* __tstate = wxPyBeginAllowThreads();
14541 result = (bool)((wxListbook const *)arg1)->IsVertical();
14542
14543 wxPyEndAllowThreads(__tstate);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 }
14546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14547 return resultobj;
14548 fail:
14549 return NULL;
14550 }
14551
14552
14553 static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
14554 PyObject *obj;
14555 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14556 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
14557 Py_INCREF(obj);
14558 return Py_BuildValue((char *)"");
14559 }
14560 static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14561 PyObject *resultobj;
14562 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14563 int arg2 = (int) 0 ;
14564 int arg3 = (int) -1 ;
14565 int arg4 = (int) -1 ;
14566 wxListbookEvent *result;
14567 PyObject * obj0 = 0 ;
14568 PyObject * obj1 = 0 ;
14569 PyObject * obj2 = 0 ;
14570 PyObject * obj3 = 0 ;
14571 char *kwnames[] = {
14572 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14573 };
14574
14575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14576 if (obj0) {
14577 {
14578 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
14579 if (PyErr_Occurred()) SWIG_fail;
14580 }
14581 }
14582 if (obj1) {
14583 {
14584 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 }
14588 if (obj2) {
14589 {
14590 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 }
14594 if (obj3) {
14595 {
14596 arg4 = (int) SWIG_PyObj_AsInt(obj3);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 }
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
14603
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1);
14608 return resultobj;
14609 fail:
14610 return NULL;
14611 }
14612
14613
14614 static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
14615 PyObject *obj;
14616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14617 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
14618 Py_INCREF(obj);
14619 return Py_BuildValue((char *)"");
14620 }
14621 static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14622 PyObject *resultobj;
14623 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14624 wxBookCtrlSizer *result;
14625 PyObject * obj0 = 0 ;
14626 char *kwnames[] = {
14627 (char *) "nb", NULL
14628 };
14629
14630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
14631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
14635
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1);
14640 return resultobj;
14641 fail:
14642 return NULL;
14643 }
14644
14645
14646 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14647 PyObject *resultobj;
14648 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14649 PyObject * obj0 = 0 ;
14650 char *kwnames[] = {
14651 (char *) "self", NULL
14652 };
14653
14654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 (arg1)->RecalcSizes();
14659
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 Py_INCREF(Py_None); resultobj = Py_None;
14664 return resultobj;
14665 fail:
14666 return NULL;
14667 }
14668
14669
14670 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14671 PyObject *resultobj;
14672 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14673 wxSize result;
14674 PyObject * obj0 = 0 ;
14675 char *kwnames[] = {
14676 (char *) "self", NULL
14677 };
14678
14679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
14680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 result = (arg1)->CalcMin();
14684
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 {
14689 wxSize * resultptr;
14690 resultptr = new wxSize((wxSize &) result);
14691 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
14692 }
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14700 PyObject *resultobj;
14701 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
14702 wxBookCtrl *result;
14703 PyObject * obj0 = 0 ;
14704 char *kwnames[] = {
14705 (char *) "self", NULL
14706 };
14707
14708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
14709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14710 {
14711 PyThreadState* __tstate = wxPyBeginAllowThreads();
14712 result = (wxBookCtrl *)(arg1)->GetControl();
14713
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0);
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
14725 PyObject *obj;
14726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14727 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
14728 Py_INCREF(obj);
14729 return Py_BuildValue((char *)"");
14730 }
14731 static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
14732 PyObject *resultobj;
14733 wxNotebook *arg1 = (wxNotebook *) 0 ;
14734 wxNotebookSizer *result;
14735 PyObject * obj0 = 0 ;
14736 char *kwnames[] = {
14737 (char *) "nb", NULL
14738 };
14739
14740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
14741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14742 {
14743 PyThreadState* __tstate = wxPyBeginAllowThreads();
14744 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
14745
14746 wxPyEndAllowThreads(__tstate);
14747 if (PyErr_Occurred()) SWIG_fail;
14748 }
14749 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1);
14750 return resultobj;
14751 fail:
14752 return NULL;
14753 }
14754
14755
14756 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
14757 PyObject *resultobj;
14758 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14759 PyObject * obj0 = 0 ;
14760 char *kwnames[] = {
14761 (char *) "self", NULL
14762 };
14763
14764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
14765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 (arg1)->RecalcSizes();
14769
14770 wxPyEndAllowThreads(__tstate);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 }
14773 Py_INCREF(Py_None); resultobj = Py_None;
14774 return resultobj;
14775 fail:
14776 return NULL;
14777 }
14778
14779
14780 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
14781 PyObject *resultobj;
14782 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14783 wxSize result;
14784 PyObject * obj0 = 0 ;
14785 char *kwnames[] = {
14786 (char *) "self", NULL
14787 };
14788
14789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
14790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 result = (arg1)->CalcMin();
14794
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 {
14799 wxSize * resultptr;
14800 resultptr = new wxSize((wxSize &) result);
14801 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
14802 }
14803 return resultobj;
14804 fail:
14805 return NULL;
14806 }
14807
14808
14809 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj;
14811 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
14812 wxNotebook *result;
14813 PyObject * obj0 = 0 ;
14814 char *kwnames[] = {
14815 (char *) "self", NULL
14816 };
14817
14818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
14819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 result = (wxNotebook *)(arg1)->GetNotebook();
14823
14824 wxPyEndAllowThreads(__tstate);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 {
14828 resultobj = wxPyMake_wxObject(result);
14829 }
14830 return resultobj;
14831 fail:
14832 return NULL;
14833 }
14834
14835
14836 static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
14837 PyObject *obj;
14838 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14839 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
14840 Py_INCREF(obj);
14841 return Py_BuildValue((char *)"");
14842 }
14843 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
14844 PyObject *resultobj;
14845 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14846 int result;
14847 PyObject * obj0 = 0 ;
14848 char *kwnames[] = {
14849 (char *) "self", NULL
14850 };
14851
14852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
14853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14854 {
14855 PyThreadState* __tstate = wxPyBeginAllowThreads();
14856 result = (int)(arg1)->GetId();
14857
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 resultobj = SWIG_PyObj_FromInt((int)result);
14862 return resultobj;
14863 fail:
14864 return NULL;
14865 }
14866
14867
14868 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14869 PyObject *resultobj;
14870 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14871 wxControl *result;
14872 PyObject * obj0 = 0 ;
14873 char *kwnames[] = {
14874 (char *) "self", NULL
14875 };
14876
14877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
14878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 result = (wxControl *)(arg1)->GetControl();
14882
14883 wxPyEndAllowThreads(__tstate);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 }
14886 {
14887 resultobj = wxPyMake_wxObject(result);
14888 }
14889 return resultobj;
14890 fail:
14891 return NULL;
14892 }
14893
14894
14895 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
14896 PyObject *resultobj;
14897 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14898 wxToolBarBase *result;
14899 PyObject * obj0 = 0 ;
14900 char *kwnames[] = {
14901 (char *) "self", NULL
14902 };
14903
14904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
14905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 result = (wxToolBarBase *)(arg1)->GetToolBar();
14909
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 {
14914 resultobj = wxPyMake_wxObject(result);
14915 }
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj;
14924 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14925 int result;
14926 PyObject * obj0 = 0 ;
14927 char *kwnames[] = {
14928 (char *) "self", NULL
14929 };
14930
14931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
14932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14933 {
14934 PyThreadState* __tstate = wxPyBeginAllowThreads();
14935 result = (int)(arg1)->IsButton();
14936
14937 wxPyEndAllowThreads(__tstate);
14938 if (PyErr_Occurred()) SWIG_fail;
14939 }
14940 resultobj = SWIG_PyObj_FromInt((int)result);
14941 return resultobj;
14942 fail:
14943 return NULL;
14944 }
14945
14946
14947 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14948 PyObject *resultobj;
14949 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14950 int result;
14951 PyObject * obj0 = 0 ;
14952 char *kwnames[] = {
14953 (char *) "self", NULL
14954 };
14955
14956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
14957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (int)(arg1)->IsControl();
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 resultobj = SWIG_PyObj_FromInt((int)result);
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj;
14974 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
14975 int result;
14976 PyObject * obj0 = 0 ;
14977 char *kwnames[] = {
14978 (char *) "self", NULL
14979 };
14980
14981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
14982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14983 {
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 result = (int)(arg1)->IsSeparator();
14986
14987 wxPyEndAllowThreads(__tstate);
14988 if (PyErr_Occurred()) SWIG_fail;
14989 }
14990 resultobj = SWIG_PyObj_FromInt((int)result);
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
14998 PyObject *resultobj;
14999 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15000 int result;
15001 PyObject * obj0 = 0 ;
15002 char *kwnames[] = {
15003 (char *) "self", NULL
15004 };
15005
15006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
15007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15008 {
15009 PyThreadState* __tstate = wxPyBeginAllowThreads();
15010 result = (int)(arg1)->GetStyle();
15011
15012 wxPyEndAllowThreads(__tstate);
15013 if (PyErr_Occurred()) SWIG_fail;
15014 }
15015 resultobj = SWIG_PyObj_FromInt((int)result);
15016 return resultobj;
15017 fail:
15018 return NULL;
15019 }
15020
15021
15022 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
15023 PyObject *resultobj;
15024 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15025 int result;
15026 PyObject * obj0 = 0 ;
15027 char *kwnames[] = {
15028 (char *) "self", NULL
15029 };
15030
15031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
15032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 result = (int)(arg1)->GetKind();
15036
15037 wxPyEndAllowThreads(__tstate);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 resultobj = SWIG_PyObj_FromInt((int)result);
15041 return resultobj;
15042 fail:
15043 return NULL;
15044 }
15045
15046
15047 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
15048 PyObject *resultobj;
15049 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15050 bool result;
15051 PyObject * obj0 = 0 ;
15052 char *kwnames[] = {
15053 (char *) "self", NULL
15054 };
15055
15056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
15057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = (bool)(arg1)->IsEnabled();
15061
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15066 return resultobj;
15067 fail:
15068 return NULL;
15069 }
15070
15071
15072 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15073 PyObject *resultobj;
15074 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15075 bool result;
15076 PyObject * obj0 = 0 ;
15077 char *kwnames[] = {
15078 (char *) "self", NULL
15079 };
15080
15081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
15082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15083 {
15084 PyThreadState* __tstate = wxPyBeginAllowThreads();
15085 result = (bool)(arg1)->IsToggled();
15086
15087 wxPyEndAllowThreads(__tstate);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15091 return resultobj;
15092 fail:
15093 return NULL;
15094 }
15095
15096
15097 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15098 PyObject *resultobj;
15099 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15100 bool result;
15101 PyObject * obj0 = 0 ;
15102 char *kwnames[] = {
15103 (char *) "self", NULL
15104 };
15105
15106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
15107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15108 {
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
15110 result = (bool)(arg1)->CanBeToggled();
15111
15112 wxPyEndAllowThreads(__tstate);
15113 if (PyErr_Occurred()) SWIG_fail;
15114 }
15115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15116 return resultobj;
15117 fail:
15118 return NULL;
15119 }
15120
15121
15122 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15123 PyObject *resultobj;
15124 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15125 wxBitmap *result;
15126 PyObject * obj0 = 0 ;
15127 char *kwnames[] = {
15128 (char *) "self", NULL
15129 };
15130
15131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
15132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15133 {
15134 PyThreadState* __tstate = wxPyBeginAllowThreads();
15135 {
15136 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
15137 result = (wxBitmap *) &_result_ref;
15138 }
15139
15140 wxPyEndAllowThreads(__tstate);
15141 if (PyErr_Occurred()) SWIG_fail;
15142 }
15143 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
15144 return resultobj;
15145 fail:
15146 return NULL;
15147 }
15148
15149
15150 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15151 PyObject *resultobj;
15152 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15153 wxBitmap *result;
15154 PyObject * obj0 = 0 ;
15155 char *kwnames[] = {
15156 (char *) "self", NULL
15157 };
15158
15159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
15160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15161 {
15162 PyThreadState* __tstate = wxPyBeginAllowThreads();
15163 {
15164 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
15165 result = (wxBitmap *) &_result_ref;
15166 }
15167
15168 wxPyEndAllowThreads(__tstate);
15169 if (PyErr_Occurred()) SWIG_fail;
15170 }
15171 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
15172 return resultobj;
15173 fail:
15174 return NULL;
15175 }
15176
15177
15178 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15179 PyObject *resultobj;
15180 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15181 wxBitmap result;
15182 PyObject * obj0 = 0 ;
15183 char *kwnames[] = {
15184 (char *) "self", NULL
15185 };
15186
15187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
15188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 result = (arg1)->GetBitmap();
15192
15193 wxPyEndAllowThreads(__tstate);
15194 if (PyErr_Occurred()) SWIG_fail;
15195 }
15196 {
15197 wxBitmap * resultptr;
15198 resultptr = new wxBitmap((wxBitmap &) result);
15199 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
15200 }
15201 return resultobj;
15202 fail:
15203 return NULL;
15204 }
15205
15206
15207 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15208 PyObject *resultobj;
15209 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15210 wxString result;
15211 PyObject * obj0 = 0 ;
15212 char *kwnames[] = {
15213 (char *) "self", NULL
15214 };
15215
15216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
15217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15218 {
15219 PyThreadState* __tstate = wxPyBeginAllowThreads();
15220 result = (arg1)->GetLabel();
15221
15222 wxPyEndAllowThreads(__tstate);
15223 if (PyErr_Occurred()) SWIG_fail;
15224 }
15225 {
15226 #if wxUSE_UNICODE
15227 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15228 #else
15229 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15230 #endif
15231 }
15232 return resultobj;
15233 fail:
15234 return NULL;
15235 }
15236
15237
15238 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15239 PyObject *resultobj;
15240 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15241 wxString result;
15242 PyObject * obj0 = 0 ;
15243 char *kwnames[] = {
15244 (char *) "self", NULL
15245 };
15246
15247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
15248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15249 {
15250 PyThreadState* __tstate = wxPyBeginAllowThreads();
15251 result = (arg1)->GetShortHelp();
15252
15253 wxPyEndAllowThreads(__tstate);
15254 if (PyErr_Occurred()) SWIG_fail;
15255 }
15256 {
15257 #if wxUSE_UNICODE
15258 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15259 #else
15260 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15261 #endif
15262 }
15263 return resultobj;
15264 fail:
15265 return NULL;
15266 }
15267
15268
15269 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15270 PyObject *resultobj;
15271 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15272 wxString result;
15273 PyObject * obj0 = 0 ;
15274 char *kwnames[] = {
15275 (char *) "self", NULL
15276 };
15277
15278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
15279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15280 {
15281 PyThreadState* __tstate = wxPyBeginAllowThreads();
15282 result = (arg1)->GetLongHelp();
15283
15284 wxPyEndAllowThreads(__tstate);
15285 if (PyErr_Occurred()) SWIG_fail;
15286 }
15287 {
15288 #if wxUSE_UNICODE
15289 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15290 #else
15291 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15292 #endif
15293 }
15294 return resultobj;
15295 fail:
15296 return NULL;
15297 }
15298
15299
15300 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
15301 PyObject *resultobj;
15302 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15303 bool arg2 ;
15304 bool result;
15305 PyObject * obj0 = 0 ;
15306 PyObject * obj1 = 0 ;
15307 char *kwnames[] = {
15308 (char *) "self",(char *) "enable", NULL
15309 };
15310
15311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
15312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15313 {
15314 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 result = (bool)(arg1)->Enable(arg2);
15320
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15325 return resultobj;
15326 fail:
15327 return NULL;
15328 }
15329
15330
15331 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15332 PyObject *resultobj;
15333 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15334 PyObject * obj0 = 0 ;
15335 char *kwnames[] = {
15336 (char *) "self", NULL
15337 };
15338
15339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
15340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15341 {
15342 PyThreadState* __tstate = wxPyBeginAllowThreads();
15343 (arg1)->Toggle();
15344
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 Py_INCREF(Py_None); resultobj = Py_None;
15349 return resultobj;
15350 fail:
15351 return NULL;
15352 }
15353
15354
15355 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj;
15357 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15358 bool arg2 ;
15359 bool result;
15360 PyObject * obj0 = 0 ;
15361 PyObject * obj1 = 0 ;
15362 char *kwnames[] = {
15363 (char *) "self",(char *) "toggle", NULL
15364 };
15365
15366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
15367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15368 {
15369 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15370 if (PyErr_Occurred()) SWIG_fail;
15371 }
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = (bool)(arg1)->SetToggle(arg2);
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15387 PyObject *resultobj;
15388 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15389 wxString *arg2 = 0 ;
15390 bool result;
15391 bool temp2 = False ;
15392 PyObject * obj0 = 0 ;
15393 PyObject * obj1 = 0 ;
15394 char *kwnames[] = {
15395 (char *) "self",(char *) "help", NULL
15396 };
15397
15398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
15399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15400 {
15401 arg2 = wxString_in_helper(obj1);
15402 if (arg2 == NULL) SWIG_fail;
15403 temp2 = True;
15404 }
15405 {
15406 PyThreadState* __tstate = wxPyBeginAllowThreads();
15407 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
15408
15409 wxPyEndAllowThreads(__tstate);
15410 if (PyErr_Occurred()) SWIG_fail;
15411 }
15412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15413 {
15414 if (temp2)
15415 delete arg2;
15416 }
15417 return resultobj;
15418 fail:
15419 {
15420 if (temp2)
15421 delete arg2;
15422 }
15423 return NULL;
15424 }
15425
15426
15427 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
15428 PyObject *resultobj;
15429 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15430 wxString *arg2 = 0 ;
15431 bool result;
15432 bool temp2 = False ;
15433 PyObject * obj0 = 0 ;
15434 PyObject * obj1 = 0 ;
15435 char *kwnames[] = {
15436 (char *) "self",(char *) "help", NULL
15437 };
15438
15439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
15440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15441 {
15442 arg2 = wxString_in_helper(obj1);
15443 if (arg2 == NULL) SWIG_fail;
15444 temp2 = True;
15445 }
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
15449
15450 wxPyEndAllowThreads(__tstate);
15451 if (PyErr_Occurred()) SWIG_fail;
15452 }
15453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15454 {
15455 if (temp2)
15456 delete arg2;
15457 }
15458 return resultobj;
15459 fail:
15460 {
15461 if (temp2)
15462 delete arg2;
15463 }
15464 return NULL;
15465 }
15466
15467
15468 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj;
15470 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15471 wxBitmap *arg2 = 0 ;
15472 PyObject * obj0 = 0 ;
15473 PyObject * obj1 = 0 ;
15474 char *kwnames[] = {
15475 (char *) "self",(char *) "bmp", NULL
15476 };
15477
15478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
15479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15480 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15481 if (arg2 == NULL) {
15482 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15483 }
15484 {
15485 PyThreadState* __tstate = wxPyBeginAllowThreads();
15486 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
15487
15488 wxPyEndAllowThreads(__tstate);
15489 if (PyErr_Occurred()) SWIG_fail;
15490 }
15491 Py_INCREF(Py_None); resultobj = Py_None;
15492 return resultobj;
15493 fail:
15494 return NULL;
15495 }
15496
15497
15498 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15499 PyObject *resultobj;
15500 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15501 wxBitmap *arg2 = 0 ;
15502 PyObject * obj0 = 0 ;
15503 PyObject * obj1 = 0 ;
15504 char *kwnames[] = {
15505 (char *) "self",(char *) "bmp", NULL
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
15509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15510 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15511 if (arg2 == NULL) {
15512 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15513 }
15514 {
15515 PyThreadState* __tstate = wxPyBeginAllowThreads();
15516 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
15517
15518 wxPyEndAllowThreads(__tstate);
15519 if (PyErr_Occurred()) SWIG_fail;
15520 }
15521 Py_INCREF(Py_None); resultobj = Py_None;
15522 return resultobj;
15523 fail:
15524 return NULL;
15525 }
15526
15527
15528 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj;
15530 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15531 wxString *arg2 = 0 ;
15532 bool temp2 = False ;
15533 PyObject * obj0 = 0 ;
15534 PyObject * obj1 = 0 ;
15535 char *kwnames[] = {
15536 (char *) "self",(char *) "label", NULL
15537 };
15538
15539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
15540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15541 {
15542 arg2 = wxString_in_helper(obj1);
15543 if (arg2 == NULL) SWIG_fail;
15544 temp2 = True;
15545 }
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 (arg1)->SetLabel((wxString const &)*arg2);
15549
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 Py_INCREF(Py_None); resultobj = Py_None;
15554 {
15555 if (temp2)
15556 delete arg2;
15557 }
15558 return resultobj;
15559 fail:
15560 {
15561 if (temp2)
15562 delete arg2;
15563 }
15564 return NULL;
15565 }
15566
15567
15568 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj;
15570 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15571 PyObject * obj0 = 0 ;
15572 char *kwnames[] = {
15573 (char *) "self", NULL
15574 };
15575
15576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
15577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 (arg1)->Detach();
15581
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 Py_INCREF(Py_None); resultobj = Py_None;
15586 return resultobj;
15587 fail:
15588 return NULL;
15589 }
15590
15591
15592 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
15593 PyObject *resultobj;
15594 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15595 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
15596 PyObject * obj0 = 0 ;
15597 PyObject * obj1 = 0 ;
15598 char *kwnames[] = {
15599 (char *) "self",(char *) "tbar", NULL
15600 };
15601
15602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
15603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15604 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
15607 (arg1)->Attach(arg2);
15608
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 Py_INCREF(Py_None); resultobj = Py_None;
15613 return resultobj;
15614 fail:
15615 return NULL;
15616 }
15617
15618
15619 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15620 PyObject *resultobj;
15621 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15622 PyObject *result;
15623 PyObject * obj0 = 0 ;
15624 char *kwnames[] = {
15625 (char *) "self", NULL
15626 };
15627
15628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
15629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
15632 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
15633
15634 wxPyEndAllowThreads(__tstate);
15635 if (PyErr_Occurred()) SWIG_fail;
15636 }
15637 resultobj = result;
15638 return resultobj;
15639 fail:
15640 return NULL;
15641 }
15642
15643
15644 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
15645 PyObject *resultobj;
15646 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15647 PyObject *arg2 = (PyObject *) 0 ;
15648 PyObject * obj0 = 0 ;
15649 PyObject * obj1 = 0 ;
15650 char *kwnames[] = {
15651 (char *) "self",(char *) "clientData", NULL
15652 };
15653
15654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
15655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15656 arg2 = obj1;
15657 {
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 wxToolBarToolBase_SetClientData(arg1,arg2);
15660
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 Py_INCREF(Py_None); resultobj = Py_None;
15665 return resultobj;
15666 fail:
15667 return NULL;
15668 }
15669
15670
15671 static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
15672 PyObject *obj;
15673 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15674 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
15675 Py_INCREF(obj);
15676 return Py_BuildValue((char *)"");
15677 }
15678 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
15679 PyObject *resultobj;
15680 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15681 int arg2 ;
15682 wxString *arg3 = 0 ;
15683 wxBitmap *arg4 = 0 ;
15684 wxBitmap const &arg5_defvalue = wxNullBitmap ;
15685 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
15686 int arg6 = (int) wxITEM_NORMAL ;
15687 wxString const &arg7_defvalue = wxPyEmptyString ;
15688 wxString *arg7 = (wxString *) &arg7_defvalue ;
15689 wxString const &arg8_defvalue = wxPyEmptyString ;
15690 wxString *arg8 = (wxString *) &arg8_defvalue ;
15691 PyObject *arg9 = (PyObject *) NULL ;
15692 wxToolBarToolBase *result;
15693 bool temp3 = False ;
15694 bool temp7 = False ;
15695 bool temp8 = False ;
15696 PyObject * obj0 = 0 ;
15697 PyObject * obj1 = 0 ;
15698 PyObject * obj2 = 0 ;
15699 PyObject * obj3 = 0 ;
15700 PyObject * obj4 = 0 ;
15701 PyObject * obj5 = 0 ;
15702 PyObject * obj6 = 0 ;
15703 PyObject * obj7 = 0 ;
15704 PyObject * obj8 = 0 ;
15705 char *kwnames[] = {
15706 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15707 };
15708
15709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
15710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15711 {
15712 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15713 if (PyErr_Occurred()) SWIG_fail;
15714 }
15715 {
15716 arg3 = wxString_in_helper(obj2);
15717 if (arg3 == NULL) SWIG_fail;
15718 temp3 = True;
15719 }
15720 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15721 if (arg4 == NULL) {
15722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15723 }
15724 if (obj4) {
15725 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15726 if (arg5 == NULL) {
15727 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15728 }
15729 }
15730 if (obj5) {
15731 {
15732 arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 }
15735 }
15736 if (obj6) {
15737 {
15738 arg7 = wxString_in_helper(obj6);
15739 if (arg7 == NULL) SWIG_fail;
15740 temp7 = True;
15741 }
15742 }
15743 if (obj7) {
15744 {
15745 arg8 = wxString_in_helper(obj7);
15746 if (arg8 == NULL) SWIG_fail;
15747 temp8 = True;
15748 }
15749 }
15750 if (obj8) {
15751 arg9 = obj8;
15752 }
15753 {
15754 PyThreadState* __tstate = wxPyBeginAllowThreads();
15755 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
15756
15757 wxPyEndAllowThreads(__tstate);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 {
15761 resultobj = wxPyMake_wxObject(result);
15762 }
15763 {
15764 if (temp3)
15765 delete arg3;
15766 }
15767 {
15768 if (temp7)
15769 delete arg7;
15770 }
15771 {
15772 if (temp8)
15773 delete arg8;
15774 }
15775 return resultobj;
15776 fail:
15777 {
15778 if (temp3)
15779 delete arg3;
15780 }
15781 {
15782 if (temp7)
15783 delete arg7;
15784 }
15785 {
15786 if (temp8)
15787 delete arg8;
15788 }
15789 return NULL;
15790 }
15791
15792
15793 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
15794 PyObject *resultobj;
15795 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15796 size_t arg2 ;
15797 int arg3 ;
15798 wxString *arg4 = 0 ;
15799 wxBitmap *arg5 = 0 ;
15800 wxBitmap const &arg6_defvalue = wxNullBitmap ;
15801 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
15802 int arg7 = (int) wxITEM_NORMAL ;
15803 wxString const &arg8_defvalue = wxPyEmptyString ;
15804 wxString *arg8 = (wxString *) &arg8_defvalue ;
15805 wxString const &arg9_defvalue = wxPyEmptyString ;
15806 wxString *arg9 = (wxString *) &arg9_defvalue ;
15807 PyObject *arg10 = (PyObject *) NULL ;
15808 wxToolBarToolBase *result;
15809 bool temp4 = False ;
15810 bool temp8 = False ;
15811 bool temp9 = False ;
15812 PyObject * obj0 = 0 ;
15813 PyObject * obj1 = 0 ;
15814 PyObject * obj2 = 0 ;
15815 PyObject * obj3 = 0 ;
15816 PyObject * obj4 = 0 ;
15817 PyObject * obj5 = 0 ;
15818 PyObject * obj6 = 0 ;
15819 PyObject * obj7 = 0 ;
15820 PyObject * obj8 = 0 ;
15821 PyObject * obj9 = 0 ;
15822 char *kwnames[] = {
15823 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
15824 };
15825
15826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
15827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15828 {
15829 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
15830 if (PyErr_Occurred()) SWIG_fail;
15831 }
15832 {
15833 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15834 if (PyErr_Occurred()) SWIG_fail;
15835 }
15836 {
15837 arg4 = wxString_in_helper(obj3);
15838 if (arg4 == NULL) SWIG_fail;
15839 temp4 = True;
15840 }
15841 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15842 if (arg5 == NULL) {
15843 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15844 }
15845 if (obj5) {
15846 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15847 if (arg6 == NULL) {
15848 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15849 }
15850 }
15851 if (obj6) {
15852 {
15853 arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 }
15857 if (obj7) {
15858 {
15859 arg8 = wxString_in_helper(obj7);
15860 if (arg8 == NULL) SWIG_fail;
15861 temp8 = True;
15862 }
15863 }
15864 if (obj8) {
15865 {
15866 arg9 = wxString_in_helper(obj8);
15867 if (arg9 == NULL) SWIG_fail;
15868 temp9 = True;
15869 }
15870 }
15871 if (obj9) {
15872 arg10 = obj9;
15873 }
15874 {
15875 PyThreadState* __tstate = wxPyBeginAllowThreads();
15876 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);
15877
15878 wxPyEndAllowThreads(__tstate);
15879 if (PyErr_Occurred()) SWIG_fail;
15880 }
15881 {
15882 resultobj = wxPyMake_wxObject(result);
15883 }
15884 {
15885 if (temp4)
15886 delete arg4;
15887 }
15888 {
15889 if (temp8)
15890 delete arg8;
15891 }
15892 {
15893 if (temp9)
15894 delete arg9;
15895 }
15896 return resultobj;
15897 fail:
15898 {
15899 if (temp4)
15900 delete arg4;
15901 }
15902 {
15903 if (temp8)
15904 delete arg8;
15905 }
15906 {
15907 if (temp9)
15908 delete arg9;
15909 }
15910 return NULL;
15911 }
15912
15913
15914 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj;
15916 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15917 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
15918 wxToolBarToolBase *result;
15919 PyObject * obj0 = 0 ;
15920 PyObject * obj1 = 0 ;
15921 char *kwnames[] = {
15922 (char *) "self",(char *) "tool", NULL
15923 };
15924
15925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
15926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15927 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15928 {
15929 PyThreadState* __tstate = wxPyBeginAllowThreads();
15930 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
15931
15932 wxPyEndAllowThreads(__tstate);
15933 if (PyErr_Occurred()) SWIG_fail;
15934 }
15935 {
15936 resultobj = wxPyMake_wxObject(result);
15937 }
15938 return resultobj;
15939 fail:
15940 return NULL;
15941 }
15942
15943
15944 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
15945 PyObject *resultobj;
15946 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15947 size_t arg2 ;
15948 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
15949 wxToolBarToolBase *result;
15950 PyObject * obj0 = 0 ;
15951 PyObject * obj1 = 0 ;
15952 PyObject * obj2 = 0 ;
15953 char *kwnames[] = {
15954 (char *) "self",(char *) "pos",(char *) "tool", NULL
15955 };
15956
15957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
15958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15959 {
15960 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
15961 if (PyErr_Occurred()) SWIG_fail;
15962 }
15963 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
15967
15968 wxPyEndAllowThreads(__tstate);
15969 if (PyErr_Occurred()) SWIG_fail;
15970 }
15971 {
15972 resultobj = wxPyMake_wxObject(result);
15973 }
15974 return resultobj;
15975 fail:
15976 return NULL;
15977 }
15978
15979
15980 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15981 PyObject *resultobj;
15982 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
15983 wxControl *arg2 = (wxControl *) 0 ;
15984 wxToolBarToolBase *result;
15985 PyObject * obj0 = 0 ;
15986 PyObject * obj1 = 0 ;
15987 char *kwnames[] = {
15988 (char *) "self",(char *) "control", NULL
15989 };
15990
15991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
15992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15993 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15994 {
15995 PyThreadState* __tstate = wxPyBeginAllowThreads();
15996 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
15997
15998 wxPyEndAllowThreads(__tstate);
15999 if (PyErr_Occurred()) SWIG_fail;
16000 }
16001 {
16002 resultobj = wxPyMake_wxObject(result);
16003 }
16004 return resultobj;
16005 fail:
16006 return NULL;
16007 }
16008
16009
16010 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16011 PyObject *resultobj;
16012 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16013 size_t arg2 ;
16014 wxControl *arg3 = (wxControl *) 0 ;
16015 wxToolBarToolBase *result;
16016 PyObject * obj0 = 0 ;
16017 PyObject * obj1 = 0 ;
16018 PyObject * obj2 = 0 ;
16019 char *kwnames[] = {
16020 (char *) "self",(char *) "pos",(char *) "control", NULL
16021 };
16022
16023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16025 {
16026 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
16027 if (PyErr_Occurred()) SWIG_fail;
16028 }
16029 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16030 {
16031 PyThreadState* __tstate = wxPyBeginAllowThreads();
16032 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
16033
16034 wxPyEndAllowThreads(__tstate);
16035 if (PyErr_Occurred()) SWIG_fail;
16036 }
16037 {
16038 resultobj = wxPyMake_wxObject(result);
16039 }
16040 return resultobj;
16041 fail:
16042 return NULL;
16043 }
16044
16045
16046 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16047 PyObject *resultobj;
16048 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16049 int arg2 ;
16050 wxControl *result;
16051 PyObject * obj0 = 0 ;
16052 PyObject * obj1 = 0 ;
16053 char *kwnames[] = {
16054 (char *) "self",(char *) "id", NULL
16055 };
16056
16057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
16058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16059 {
16060 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 {
16064 PyThreadState* __tstate = wxPyBeginAllowThreads();
16065 result = (wxControl *)(arg1)->FindControl(arg2);
16066
16067 wxPyEndAllowThreads(__tstate);
16068 if (PyErr_Occurred()) SWIG_fail;
16069 }
16070 {
16071 resultobj = wxPyMake_wxObject(result);
16072 }
16073 return resultobj;
16074 fail:
16075 return NULL;
16076 }
16077
16078
16079 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16080 PyObject *resultobj;
16081 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16082 wxToolBarToolBase *result;
16083 PyObject * obj0 = 0 ;
16084 char *kwnames[] = {
16085 (char *) "self", NULL
16086 };
16087
16088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
16089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16090 {
16091 PyThreadState* __tstate = wxPyBeginAllowThreads();
16092 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
16093
16094 wxPyEndAllowThreads(__tstate);
16095 if (PyErr_Occurred()) SWIG_fail;
16096 }
16097 {
16098 resultobj = wxPyMake_wxObject(result);
16099 }
16100 return resultobj;
16101 fail:
16102 return NULL;
16103 }
16104
16105
16106 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16107 PyObject *resultobj;
16108 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16109 size_t arg2 ;
16110 wxToolBarToolBase *result;
16111 PyObject * obj0 = 0 ;
16112 PyObject * obj1 = 0 ;
16113 char *kwnames[] = {
16114 (char *) "self",(char *) "pos", NULL
16115 };
16116
16117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
16118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16119 {
16120 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
16121 if (PyErr_Occurred()) SWIG_fail;
16122 }
16123 {
16124 PyThreadState* __tstate = wxPyBeginAllowThreads();
16125 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
16126
16127 wxPyEndAllowThreads(__tstate);
16128 if (PyErr_Occurred()) SWIG_fail;
16129 }
16130 {
16131 resultobj = wxPyMake_wxObject(result);
16132 }
16133 return resultobj;
16134 fail:
16135 return NULL;
16136 }
16137
16138
16139 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16140 PyObject *resultobj;
16141 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16142 int arg2 ;
16143 wxToolBarToolBase *result;
16144 PyObject * obj0 = 0 ;
16145 PyObject * obj1 = 0 ;
16146 char *kwnames[] = {
16147 (char *) "self",(char *) "id", NULL
16148 };
16149
16150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
16151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16152 {
16153 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 {
16157 PyThreadState* __tstate = wxPyBeginAllowThreads();
16158 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
16159
16160 wxPyEndAllowThreads(__tstate);
16161 if (PyErr_Occurred()) SWIG_fail;
16162 }
16163 {
16164 resultobj = wxPyMake_wxObject(result);
16165 }
16166 return resultobj;
16167 fail:
16168 return NULL;
16169 }
16170
16171
16172 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16173 PyObject *resultobj;
16174 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16175 size_t arg2 ;
16176 bool result;
16177 PyObject * obj0 = 0 ;
16178 PyObject * obj1 = 0 ;
16179 char *kwnames[] = {
16180 (char *) "self",(char *) "pos", NULL
16181 };
16182
16183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
16184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16185 {
16186 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
16187 if (PyErr_Occurred()) SWIG_fail;
16188 }
16189 {
16190 PyThreadState* __tstate = wxPyBeginAllowThreads();
16191 result = (bool)(arg1)->DeleteToolByPos(arg2);
16192
16193 wxPyEndAllowThreads(__tstate);
16194 if (PyErr_Occurred()) SWIG_fail;
16195 }
16196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16197 return resultobj;
16198 fail:
16199 return NULL;
16200 }
16201
16202
16203 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16204 PyObject *resultobj;
16205 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16206 int arg2 ;
16207 bool result;
16208 PyObject * obj0 = 0 ;
16209 PyObject * obj1 = 0 ;
16210 char *kwnames[] = {
16211 (char *) "self",(char *) "id", NULL
16212 };
16213
16214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
16215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16216 {
16217 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 result = (bool)(arg1)->DeleteTool(arg2);
16223
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16228 return resultobj;
16229 fail:
16230 return NULL;
16231 }
16232
16233
16234 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
16235 PyObject *resultobj;
16236 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16237 PyObject * obj0 = 0 ;
16238 char *kwnames[] = {
16239 (char *) "self", NULL
16240 };
16241
16242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
16243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 (arg1)->ClearTools();
16247
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 Py_INCREF(Py_None); resultobj = Py_None;
16252 return resultobj;
16253 fail:
16254 return NULL;
16255 }
16256
16257
16258 static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
16259 PyObject *resultobj;
16260 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16261 bool result;
16262 PyObject * obj0 = 0 ;
16263 char *kwnames[] = {
16264 (char *) "self", NULL
16265 };
16266
16267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
16268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16269 {
16270 PyThreadState* __tstate = wxPyBeginAllowThreads();
16271 result = (bool)(arg1)->Realize();
16272
16273 wxPyEndAllowThreads(__tstate);
16274 if (PyErr_Occurred()) SWIG_fail;
16275 }
16276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16277 return resultobj;
16278 fail:
16279 return NULL;
16280 }
16281
16282
16283 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16284 PyObject *resultobj;
16285 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16286 int arg2 ;
16287 bool arg3 ;
16288 PyObject * obj0 = 0 ;
16289 PyObject * obj1 = 0 ;
16290 PyObject * obj2 = 0 ;
16291 char *kwnames[] = {
16292 (char *) "self",(char *) "id",(char *) "enable", NULL
16293 };
16294
16295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16297 {
16298 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16299 if (PyErr_Occurred()) SWIG_fail;
16300 }
16301 {
16302 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 {
16306 PyThreadState* __tstate = wxPyBeginAllowThreads();
16307 (arg1)->EnableTool(arg2,arg3);
16308
16309 wxPyEndAllowThreads(__tstate);
16310 if (PyErr_Occurred()) SWIG_fail;
16311 }
16312 Py_INCREF(Py_None); resultobj = Py_None;
16313 return resultobj;
16314 fail:
16315 return NULL;
16316 }
16317
16318
16319 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16320 PyObject *resultobj;
16321 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16322 int arg2 ;
16323 bool arg3 ;
16324 PyObject * obj0 = 0 ;
16325 PyObject * obj1 = 0 ;
16326 PyObject * obj2 = 0 ;
16327 char *kwnames[] = {
16328 (char *) "self",(char *) "id",(char *) "toggle", NULL
16329 };
16330
16331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16333 {
16334 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 {
16338 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
16339 if (PyErr_Occurred()) SWIG_fail;
16340 }
16341 {
16342 PyThreadState* __tstate = wxPyBeginAllowThreads();
16343 (arg1)->ToggleTool(arg2,arg3);
16344
16345 wxPyEndAllowThreads(__tstate);
16346 if (PyErr_Occurred()) SWIG_fail;
16347 }
16348 Py_INCREF(Py_None); resultobj = Py_None;
16349 return resultobj;
16350 fail:
16351 return NULL;
16352 }
16353
16354
16355 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16356 PyObject *resultobj;
16357 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16358 int arg2 ;
16359 bool arg3 ;
16360 PyObject * obj0 = 0 ;
16361 PyObject * obj1 = 0 ;
16362 PyObject * obj2 = 0 ;
16363 char *kwnames[] = {
16364 (char *) "self",(char *) "id",(char *) "toggle", NULL
16365 };
16366
16367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
16368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16369 {
16370 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16371 if (PyErr_Occurred()) SWIG_fail;
16372 }
16373 {
16374 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
16375 if (PyErr_Occurred()) SWIG_fail;
16376 }
16377 {
16378 PyThreadState* __tstate = wxPyBeginAllowThreads();
16379 (arg1)->SetToggle(arg2,arg3);
16380
16381 wxPyEndAllowThreads(__tstate);
16382 if (PyErr_Occurred()) SWIG_fail;
16383 }
16384 Py_INCREF(Py_None); resultobj = Py_None;
16385 return resultobj;
16386 fail:
16387 return NULL;
16388 }
16389
16390
16391 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16392 PyObject *resultobj;
16393 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16394 int arg2 ;
16395 PyObject *result;
16396 PyObject * obj0 = 0 ;
16397 PyObject * obj1 = 0 ;
16398 char *kwnames[] = {
16399 (char *) "self",(char *) "id", NULL
16400 };
16401
16402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
16403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16404 {
16405 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
16411
16412 wxPyEndAllowThreads(__tstate);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 }
16415 resultobj = result;
16416 return resultobj;
16417 fail:
16418 return NULL;
16419 }
16420
16421
16422 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16423 PyObject *resultobj;
16424 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16425 int arg2 ;
16426 PyObject *arg3 = (PyObject *) 0 ;
16427 PyObject * obj0 = 0 ;
16428 PyObject * obj1 = 0 ;
16429 PyObject * obj2 = 0 ;
16430 char *kwnames[] = {
16431 (char *) "self",(char *) "id",(char *) "clientData", NULL
16432 };
16433
16434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
16435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16436 {
16437 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16438 if (PyErr_Occurred()) SWIG_fail;
16439 }
16440 arg3 = obj2;
16441 {
16442 PyThreadState* __tstate = wxPyBeginAllowThreads();
16443 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
16444
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 Py_INCREF(Py_None); resultobj = Py_None;
16449 return resultobj;
16450 fail:
16451 return NULL;
16452 }
16453
16454
16455 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
16456 PyObject *resultobj;
16457 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16458 int arg2 ;
16459 int result;
16460 PyObject * obj0 = 0 ;
16461 PyObject * obj1 = 0 ;
16462 char *kwnames[] = {
16463 (char *) "self",(char *) "id", NULL
16464 };
16465
16466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
16467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16468 {
16469 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 }
16472 {
16473 PyThreadState* __tstate = wxPyBeginAllowThreads();
16474 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
16475
16476 wxPyEndAllowThreads(__tstate);
16477 if (PyErr_Occurred()) SWIG_fail;
16478 }
16479 resultobj = SWIG_PyObj_FromInt((int)result);
16480 return resultobj;
16481 fail:
16482 return NULL;
16483 }
16484
16485
16486 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
16487 PyObject *resultobj;
16488 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16489 int arg2 ;
16490 bool result;
16491 PyObject * obj0 = 0 ;
16492 PyObject * obj1 = 0 ;
16493 char *kwnames[] = {
16494 (char *) "self",(char *) "id", NULL
16495 };
16496
16497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
16498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16499 {
16500 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 }
16503 {
16504 PyThreadState* __tstate = wxPyBeginAllowThreads();
16505 result = (bool)(arg1)->GetToolState(arg2);
16506
16507 wxPyEndAllowThreads(__tstate);
16508 if (PyErr_Occurred()) SWIG_fail;
16509 }
16510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16511 return resultobj;
16512 fail:
16513 return NULL;
16514 }
16515
16516
16517 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
16518 PyObject *resultobj;
16519 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16520 int arg2 ;
16521 bool result;
16522 PyObject * obj0 = 0 ;
16523 PyObject * obj1 = 0 ;
16524 char *kwnames[] = {
16525 (char *) "self",(char *) "id", NULL
16526 };
16527
16528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
16529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16530 {
16531 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 {
16535 PyThreadState* __tstate = wxPyBeginAllowThreads();
16536 result = (bool)(arg1)->GetToolEnabled(arg2);
16537
16538 wxPyEndAllowThreads(__tstate);
16539 if (PyErr_Occurred()) SWIG_fail;
16540 }
16541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj;
16550 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16551 int arg2 ;
16552 wxString *arg3 = 0 ;
16553 bool temp3 = False ;
16554 PyObject * obj0 = 0 ;
16555 PyObject * obj1 = 0 ;
16556 PyObject * obj2 = 0 ;
16557 char *kwnames[] = {
16558 (char *) "self",(char *) "id",(char *) "helpString", NULL
16559 };
16560
16561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16563 {
16564 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 {
16568 arg3 = wxString_in_helper(obj2);
16569 if (arg3 == NULL) SWIG_fail;
16570 temp3 = True;
16571 }
16572 {
16573 PyThreadState* __tstate = wxPyBeginAllowThreads();
16574 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
16575
16576 wxPyEndAllowThreads(__tstate);
16577 if (PyErr_Occurred()) SWIG_fail;
16578 }
16579 Py_INCREF(Py_None); resultobj = Py_None;
16580 {
16581 if (temp3)
16582 delete arg3;
16583 }
16584 return resultobj;
16585 fail:
16586 {
16587 if (temp3)
16588 delete arg3;
16589 }
16590 return NULL;
16591 }
16592
16593
16594 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj;
16596 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16597 int arg2 ;
16598 wxString result;
16599 PyObject * obj0 = 0 ;
16600 PyObject * obj1 = 0 ;
16601 char *kwnames[] = {
16602 (char *) "self",(char *) "id", NULL
16603 };
16604
16605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
16606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16607 {
16608 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16609 if (PyErr_Occurred()) SWIG_fail;
16610 }
16611 {
16612 PyThreadState* __tstate = wxPyBeginAllowThreads();
16613 result = (arg1)->GetToolShortHelp(arg2);
16614
16615 wxPyEndAllowThreads(__tstate);
16616 if (PyErr_Occurred()) SWIG_fail;
16617 }
16618 {
16619 #if wxUSE_UNICODE
16620 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16621 #else
16622 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16623 #endif
16624 }
16625 return resultobj;
16626 fail:
16627 return NULL;
16628 }
16629
16630
16631 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16632 PyObject *resultobj;
16633 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16634 int arg2 ;
16635 wxString *arg3 = 0 ;
16636 bool temp3 = False ;
16637 PyObject * obj0 = 0 ;
16638 PyObject * obj1 = 0 ;
16639 PyObject * obj2 = 0 ;
16640 char *kwnames[] = {
16641 (char *) "self",(char *) "id",(char *) "helpString", NULL
16642 };
16643
16644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
16645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16646 {
16647 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16648 if (PyErr_Occurred()) SWIG_fail;
16649 }
16650 {
16651 arg3 = wxString_in_helper(obj2);
16652 if (arg3 == NULL) SWIG_fail;
16653 temp3 = True;
16654 }
16655 {
16656 PyThreadState* __tstate = wxPyBeginAllowThreads();
16657 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
16658
16659 wxPyEndAllowThreads(__tstate);
16660 if (PyErr_Occurred()) SWIG_fail;
16661 }
16662 Py_INCREF(Py_None); resultobj = Py_None;
16663 {
16664 if (temp3)
16665 delete arg3;
16666 }
16667 return resultobj;
16668 fail:
16669 {
16670 if (temp3)
16671 delete arg3;
16672 }
16673 return NULL;
16674 }
16675
16676
16677 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16678 PyObject *resultobj;
16679 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16680 int arg2 ;
16681 wxString result;
16682 PyObject * obj0 = 0 ;
16683 PyObject * obj1 = 0 ;
16684 char *kwnames[] = {
16685 (char *) "self",(char *) "id", NULL
16686 };
16687
16688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
16689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16690 {
16691 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16692 if (PyErr_Occurred()) SWIG_fail;
16693 }
16694 {
16695 PyThreadState* __tstate = wxPyBeginAllowThreads();
16696 result = (arg1)->GetToolLongHelp(arg2);
16697
16698 wxPyEndAllowThreads(__tstate);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 }
16701 {
16702 #if wxUSE_UNICODE
16703 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16704 #else
16705 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16706 #endif
16707 }
16708 return resultobj;
16709 fail:
16710 return NULL;
16711 }
16712
16713
16714 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
16715 PyObject *resultobj;
16716 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16717 int arg2 ;
16718 int arg3 ;
16719 PyObject * obj0 = 0 ;
16720 PyObject * obj1 = 0 ;
16721 PyObject * obj2 = 0 ;
16722 char *kwnames[] = {
16723 (char *) "self",(char *) "x",(char *) "y", NULL
16724 };
16725
16726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
16727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16728 {
16729 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 {
16733 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16734 if (PyErr_Occurred()) SWIG_fail;
16735 }
16736 {
16737 PyThreadState* __tstate = wxPyBeginAllowThreads();
16738 (arg1)->SetMargins(arg2,arg3);
16739
16740 wxPyEndAllowThreads(__tstate);
16741 if (PyErr_Occurred()) SWIG_fail;
16742 }
16743 Py_INCREF(Py_None); resultobj = Py_None;
16744 return resultobj;
16745 fail:
16746 return NULL;
16747 }
16748
16749
16750 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16751 PyObject *resultobj;
16752 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16753 wxSize *arg2 = 0 ;
16754 wxSize temp2 ;
16755 PyObject * obj0 = 0 ;
16756 PyObject * obj1 = 0 ;
16757 char *kwnames[] = {
16758 (char *) "self",(char *) "size", NULL
16759 };
16760
16761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
16762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16763 {
16764 arg2 = &temp2;
16765 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16766 }
16767 {
16768 PyThreadState* __tstate = wxPyBeginAllowThreads();
16769 (arg1)->SetMargins((wxSize const &)*arg2);
16770
16771 wxPyEndAllowThreads(__tstate);
16772 if (PyErr_Occurred()) SWIG_fail;
16773 }
16774 Py_INCREF(Py_None); resultobj = Py_None;
16775 return resultobj;
16776 fail:
16777 return NULL;
16778 }
16779
16780
16781 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
16782 PyObject *resultobj;
16783 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16784 int arg2 ;
16785 PyObject * obj0 = 0 ;
16786 PyObject * obj1 = 0 ;
16787 char *kwnames[] = {
16788 (char *) "self",(char *) "packing", NULL
16789 };
16790
16791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
16792 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16793 {
16794 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 {
16798 PyThreadState* __tstate = wxPyBeginAllowThreads();
16799 (arg1)->SetToolPacking(arg2);
16800
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 Py_INCREF(Py_None); resultobj = Py_None;
16805 return resultobj;
16806 fail:
16807 return NULL;
16808 }
16809
16810
16811 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
16812 PyObject *resultobj;
16813 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16814 int arg2 ;
16815 PyObject * obj0 = 0 ;
16816 PyObject * obj1 = 0 ;
16817 char *kwnames[] = {
16818 (char *) "self",(char *) "separation", NULL
16819 };
16820
16821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
16822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16823 {
16824 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 {
16828 PyThreadState* __tstate = wxPyBeginAllowThreads();
16829 (arg1)->SetToolSeparation(arg2);
16830
16831 wxPyEndAllowThreads(__tstate);
16832 if (PyErr_Occurred()) SWIG_fail;
16833 }
16834 Py_INCREF(Py_None); resultobj = Py_None;
16835 return resultobj;
16836 fail:
16837 return NULL;
16838 }
16839
16840
16841 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16842 PyObject *resultobj;
16843 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16844 wxSize result;
16845 PyObject * obj0 = 0 ;
16846 char *kwnames[] = {
16847 (char *) "self", NULL
16848 };
16849
16850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
16851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
16854 result = (arg1)->GetToolMargins();
16855
16856 wxPyEndAllowThreads(__tstate);
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 {
16860 wxSize * resultptr;
16861 resultptr = new wxSize((wxSize &) result);
16862 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
16863 }
16864 return resultobj;
16865 fail:
16866 return NULL;
16867 }
16868
16869
16870 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
16871 PyObject *resultobj;
16872 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16873 wxSize result;
16874 PyObject * obj0 = 0 ;
16875 char *kwnames[] = {
16876 (char *) "self", NULL
16877 };
16878
16879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
16880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16881 {
16882 PyThreadState* __tstate = wxPyBeginAllowThreads();
16883 result = (arg1)->GetMargins();
16884
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 {
16889 wxSize * resultptr;
16890 resultptr = new wxSize((wxSize &) result);
16891 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
16892 }
16893 return resultobj;
16894 fail:
16895 return NULL;
16896 }
16897
16898
16899 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
16900 PyObject *resultobj;
16901 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16902 int result;
16903 PyObject * obj0 = 0 ;
16904 char *kwnames[] = {
16905 (char *) "self", NULL
16906 };
16907
16908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
16909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16910 {
16911 PyThreadState* __tstate = wxPyBeginAllowThreads();
16912 result = (int)(arg1)->GetToolPacking();
16913
16914 wxPyEndAllowThreads(__tstate);
16915 if (PyErr_Occurred()) SWIG_fail;
16916 }
16917 resultobj = SWIG_PyObj_FromInt((int)result);
16918 return resultobj;
16919 fail:
16920 return NULL;
16921 }
16922
16923
16924 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
16925 PyObject *resultobj;
16926 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16927 int result;
16928 PyObject * obj0 = 0 ;
16929 char *kwnames[] = {
16930 (char *) "self", NULL
16931 };
16932
16933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
16934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16935 {
16936 PyThreadState* __tstate = wxPyBeginAllowThreads();
16937 result = (int)(arg1)->GetToolSeparation();
16938
16939 wxPyEndAllowThreads(__tstate);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 }
16942 resultobj = SWIG_PyObj_FromInt((int)result);
16943 return resultobj;
16944 fail:
16945 return NULL;
16946 }
16947
16948
16949 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
16950 PyObject *resultobj;
16951 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16952 int arg2 ;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 char *kwnames[] = {
16956 (char *) "self",(char *) "nRows", NULL
16957 };
16958
16959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
16960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16961 {
16962 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16963 if (PyErr_Occurred()) SWIG_fail;
16964 }
16965 {
16966 PyThreadState* __tstate = wxPyBeginAllowThreads();
16967 (arg1)->SetRows(arg2);
16968
16969 wxPyEndAllowThreads(__tstate);
16970 if (PyErr_Occurred()) SWIG_fail;
16971 }
16972 Py_INCREF(Py_None); resultobj = Py_None;
16973 return resultobj;
16974 fail:
16975 return NULL;
16976 }
16977
16978
16979 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
16980 PyObject *resultobj;
16981 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16982 int arg2 ;
16983 int arg3 ;
16984 PyObject * obj0 = 0 ;
16985 PyObject * obj1 = 0 ;
16986 PyObject * obj2 = 0 ;
16987 char *kwnames[] = {
16988 (char *) "self",(char *) "rows",(char *) "cols", NULL
16989 };
16990
16991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
16992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16993 {
16994 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16995 if (PyErr_Occurred()) SWIG_fail;
16996 }
16997 {
16998 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16999 if (PyErr_Occurred()) SWIG_fail;
17000 }
17001 {
17002 PyThreadState* __tstate = wxPyBeginAllowThreads();
17003 (arg1)->SetMaxRowsCols(arg2,arg3);
17004
17005 wxPyEndAllowThreads(__tstate);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 }
17008 Py_INCREF(Py_None); resultobj = Py_None;
17009 return resultobj;
17010 fail:
17011 return NULL;
17012 }
17013
17014
17015 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17016 PyObject *resultobj;
17017 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17018 int result;
17019 PyObject * obj0 = 0 ;
17020 char *kwnames[] = {
17021 (char *) "self", NULL
17022 };
17023
17024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
17025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17026 {
17027 PyThreadState* __tstate = wxPyBeginAllowThreads();
17028 result = (int)(arg1)->GetMaxRows();
17029
17030 wxPyEndAllowThreads(__tstate);
17031 if (PyErr_Occurred()) SWIG_fail;
17032 }
17033 resultobj = SWIG_PyObj_FromInt((int)result);
17034 return resultobj;
17035 fail:
17036 return NULL;
17037 }
17038
17039
17040 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17041 PyObject *resultobj;
17042 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17043 int result;
17044 PyObject * obj0 = 0 ;
17045 char *kwnames[] = {
17046 (char *) "self", NULL
17047 };
17048
17049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
17050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17051 {
17052 PyThreadState* __tstate = wxPyBeginAllowThreads();
17053 result = (int)(arg1)->GetMaxCols();
17054
17055 wxPyEndAllowThreads(__tstate);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 }
17058 resultobj = SWIG_PyObj_FromInt((int)result);
17059 return resultobj;
17060 fail:
17061 return NULL;
17062 }
17063
17064
17065 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17066 PyObject *resultobj;
17067 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17068 wxSize *arg2 = 0 ;
17069 wxSize temp2 ;
17070 PyObject * obj0 = 0 ;
17071 PyObject * obj1 = 0 ;
17072 char *kwnames[] = {
17073 (char *) "self",(char *) "size", NULL
17074 };
17075
17076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
17077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17078 {
17079 arg2 = &temp2;
17080 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17081 }
17082 {
17083 PyThreadState* __tstate = wxPyBeginAllowThreads();
17084 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
17085
17086 wxPyEndAllowThreads(__tstate);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 Py_INCREF(Py_None); resultobj = Py_None;
17090 return resultobj;
17091 fail:
17092 return NULL;
17093 }
17094
17095
17096 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17097 PyObject *resultobj;
17098 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17099 wxSize result;
17100 PyObject * obj0 = 0 ;
17101 char *kwnames[] = {
17102 (char *) "self", NULL
17103 };
17104
17105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
17106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17107 {
17108 PyThreadState* __tstate = wxPyBeginAllowThreads();
17109 result = (arg1)->GetToolBitmapSize();
17110
17111 wxPyEndAllowThreads(__tstate);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 }
17114 {
17115 wxSize * resultptr;
17116 resultptr = new wxSize((wxSize &) result);
17117 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
17118 }
17119 return resultobj;
17120 fail:
17121 return NULL;
17122 }
17123
17124
17125 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17126 PyObject *resultobj;
17127 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17128 wxSize result;
17129 PyObject * obj0 = 0 ;
17130 char *kwnames[] = {
17131 (char *) "self", NULL
17132 };
17133
17134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
17135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17136 {
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 result = (arg1)->GetToolSize();
17139
17140 wxPyEndAllowThreads(__tstate);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 }
17143 {
17144 wxSize * resultptr;
17145 resultptr = new wxSize((wxSize &) result);
17146 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
17147 }
17148 return resultobj;
17149 fail:
17150 return NULL;
17151 }
17152
17153
17154 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17155 PyObject *resultobj;
17156 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17157 int arg2 ;
17158 int arg3 ;
17159 wxToolBarToolBase *result;
17160 PyObject * obj0 = 0 ;
17161 PyObject * obj1 = 0 ;
17162 PyObject * obj2 = 0 ;
17163 char *kwnames[] = {
17164 (char *) "self",(char *) "x",(char *) "y", NULL
17165 };
17166
17167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17169 {
17170 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 {
17174 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17175 if (PyErr_Occurred()) SWIG_fail;
17176 }
17177 {
17178 PyThreadState* __tstate = wxPyBeginAllowThreads();
17179 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17180
17181 wxPyEndAllowThreads(__tstate);
17182 if (PyErr_Occurred()) SWIG_fail;
17183 }
17184 {
17185 resultobj = wxPyMake_wxObject(result);
17186 }
17187 return resultobj;
17188 fail:
17189 return NULL;
17190 }
17191
17192
17193 static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
17194 PyObject *resultobj;
17195 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17196 int arg2 ;
17197 wxToolBarToolBase *result;
17198 PyObject * obj0 = 0 ;
17199 PyObject * obj1 = 0 ;
17200 char *kwnames[] = {
17201 (char *) "self",(char *) "toolid", NULL
17202 };
17203
17204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
17205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17206 {
17207 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 }
17210 {
17211 PyThreadState* __tstate = wxPyBeginAllowThreads();
17212 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
17213
17214 wxPyEndAllowThreads(__tstate);
17215 if (PyErr_Occurred()) SWIG_fail;
17216 }
17217 {
17218 resultobj = wxPyMake_wxObject(result);
17219 }
17220 return resultobj;
17221 fail:
17222 return NULL;
17223 }
17224
17225
17226 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
17227 PyObject *resultobj;
17228 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17229 bool result;
17230 PyObject * obj0 = 0 ;
17231 char *kwnames[] = {
17232 (char *) "self", NULL
17233 };
17234
17235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
17236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 result = (bool)(arg1)->IsVertical();
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17245 return resultobj;
17246 fail:
17247 return NULL;
17248 }
17249
17250
17251 static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
17252 PyObject *obj;
17253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17254 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
17255 Py_INCREF(obj);
17256 return Py_BuildValue((char *)"");
17257 }
17258 static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17259 PyObject *resultobj;
17260 wxWindow *arg1 = (wxWindow *) 0 ;
17261 int arg2 ;
17262 wxPoint const &arg3_defvalue = wxDefaultPosition ;
17263 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
17264 wxSize const &arg4_defvalue = wxDefaultSize ;
17265 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
17266 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17267 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
17268 wxString *arg6 = (wxString *) &arg6_defvalue ;
17269 wxToolBar *result;
17270 wxPoint temp3 ;
17271 wxSize temp4 ;
17272 bool temp6 = False ;
17273 PyObject * obj0 = 0 ;
17274 PyObject * obj1 = 0 ;
17275 PyObject * obj2 = 0 ;
17276 PyObject * obj3 = 0 ;
17277 PyObject * obj4 = 0 ;
17278 PyObject * obj5 = 0 ;
17279 char *kwnames[] = {
17280 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17281 };
17282
17283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17285 {
17286 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 }
17289 if (obj2) {
17290 {
17291 arg3 = &temp3;
17292 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17293 }
17294 }
17295 if (obj3) {
17296 {
17297 arg4 = &temp4;
17298 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
17299 }
17300 }
17301 if (obj4) {
17302 {
17303 arg5 = (long) SWIG_PyObj_AsLong(obj4);
17304 if (PyErr_Occurred()) SWIG_fail;
17305 }
17306 }
17307 if (obj5) {
17308 {
17309 arg6 = wxString_in_helper(obj5);
17310 if (arg6 == NULL) SWIG_fail;
17311 temp6 = True;
17312 }
17313 }
17314 {
17315 PyThreadState* __tstate = wxPyBeginAllowThreads();
17316 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
17317
17318 wxPyEndAllowThreads(__tstate);
17319 if (PyErr_Occurred()) SWIG_fail;
17320 }
17321 {
17322 resultobj = wxPyMake_wxObject(result);
17323 }
17324 {
17325 if (temp6)
17326 delete arg6;
17327 }
17328 return resultobj;
17329 fail:
17330 {
17331 if (temp6)
17332 delete arg6;
17333 }
17334 return NULL;
17335 }
17336
17337
17338 static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
17339 PyObject *resultobj;
17340 wxToolBar *result;
17341 char *kwnames[] = {
17342 NULL
17343 };
17344
17345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = (wxToolBar *)new wxToolBar();
17349
17350 wxPyEndAllowThreads(__tstate);
17351 if (PyErr_Occurred()) SWIG_fail;
17352 }
17353 {
17354 resultobj = wxPyMake_wxObject(result);
17355 }
17356 return resultobj;
17357 fail:
17358 return NULL;
17359 }
17360
17361
17362 static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
17363 PyObject *resultobj;
17364 wxToolBar *arg1 = (wxToolBar *) 0 ;
17365 wxWindow *arg2 = (wxWindow *) 0 ;
17366 int arg3 ;
17367 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17368 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17369 wxSize const &arg5_defvalue = wxDefaultSize ;
17370 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17371 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
17372 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
17373 wxString *arg7 = (wxString *) &arg7_defvalue ;
17374 bool result;
17375 wxPoint temp4 ;
17376 wxSize temp5 ;
17377 bool temp7 = False ;
17378 PyObject * obj0 = 0 ;
17379 PyObject * obj1 = 0 ;
17380 PyObject * obj2 = 0 ;
17381 PyObject * obj3 = 0 ;
17382 PyObject * obj4 = 0 ;
17383 PyObject * obj5 = 0 ;
17384 PyObject * obj6 = 0 ;
17385 char *kwnames[] = {
17386 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
17387 };
17388
17389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17391 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17392 {
17393 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17394 if (PyErr_Occurred()) SWIG_fail;
17395 }
17396 if (obj3) {
17397 {
17398 arg4 = &temp4;
17399 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17400 }
17401 }
17402 if (obj4) {
17403 {
17404 arg5 = &temp5;
17405 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17406 }
17407 }
17408 if (obj5) {
17409 {
17410 arg6 = (long) SWIG_PyObj_AsLong(obj5);
17411 if (PyErr_Occurred()) SWIG_fail;
17412 }
17413 }
17414 if (obj6) {
17415 {
17416 arg7 = wxString_in_helper(obj6);
17417 if (arg7 == NULL) SWIG_fail;
17418 temp7 = True;
17419 }
17420 }
17421 {
17422 PyThreadState* __tstate = wxPyBeginAllowThreads();
17423 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
17424
17425 wxPyEndAllowThreads(__tstate);
17426 if (PyErr_Occurred()) SWIG_fail;
17427 }
17428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17429 {
17430 if (temp7)
17431 delete arg7;
17432 }
17433 return resultobj;
17434 fail:
17435 {
17436 if (temp7)
17437 delete arg7;
17438 }
17439 return NULL;
17440 }
17441
17442
17443 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17444 PyObject *resultobj;
17445 wxToolBar *arg1 = (wxToolBar *) 0 ;
17446 int arg2 ;
17447 int arg3 ;
17448 wxToolBarToolBase *result;
17449 PyObject * obj0 = 0 ;
17450 PyObject * obj1 = 0 ;
17451 PyObject * obj2 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "self",(char *) "x",(char *) "y", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
17457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17458 {
17459 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17460 if (PyErr_Occurred()) SWIG_fail;
17461 }
17462 {
17463 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 {
17467 PyThreadState* __tstate = wxPyBeginAllowThreads();
17468 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
17469
17470 wxPyEndAllowThreads(__tstate);
17471 if (PyErr_Occurred()) SWIG_fail;
17472 }
17473 {
17474 resultobj = wxPyMake_wxObject(result);
17475 }
17476 return resultobj;
17477 fail:
17478 return NULL;
17479 }
17480
17481
17482 static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
17483 PyObject *obj;
17484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17485 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
17486 Py_INCREF(obj);
17487 return Py_BuildValue((char *)"");
17488 }
17489 static int _wrap_ListCtrlNameStr_set(PyObject *) {
17490 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
17491 return 1;
17492 }
17493
17494
17495 static PyObject *_wrap_ListCtrlNameStr_get() {
17496 PyObject *pyobj;
17497
17498 {
17499 #if wxUSE_UNICODE
17500 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17501 #else
17502 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
17503 #endif
17504 }
17505 return pyobj;
17506 }
17507
17508
17509 static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
17510 PyObject *resultobj;
17511 wxColour const &arg1_defvalue = wxNullColour ;
17512 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
17513 wxColour const &arg2_defvalue = wxNullColour ;
17514 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
17515 wxFont const &arg3_defvalue = wxNullFont ;
17516 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
17517 wxListItemAttr *result;
17518 wxColour temp1 ;
17519 wxColour temp2 ;
17520 PyObject * obj0 = 0 ;
17521 PyObject * obj1 = 0 ;
17522 PyObject * obj2 = 0 ;
17523 char *kwnames[] = {
17524 (char *) "colText",(char *) "colBack",(char *) "font", NULL
17525 };
17526
17527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
17528 if (obj0) {
17529 {
17530 arg1 = &temp1;
17531 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
17532 }
17533 }
17534 if (obj1) {
17535 {
17536 arg2 = &temp2;
17537 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17538 }
17539 }
17540 if (obj2) {
17541 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17542 if (arg3 == NULL) {
17543 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17544 }
17545 }
17546 {
17547 PyThreadState* __tstate = wxPyBeginAllowThreads();
17548 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
17549
17550 wxPyEndAllowThreads(__tstate);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1);
17554 return resultobj;
17555 fail:
17556 return NULL;
17557 }
17558
17559
17560 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17561 PyObject *resultobj;
17562 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17563 wxColour *arg2 = 0 ;
17564 wxColour temp2 ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 char *kwnames[] = {
17568 (char *) "self",(char *) "colText", NULL
17569 };
17570
17571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
17572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17573 {
17574 arg2 = &temp2;
17575 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17576 }
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 (arg1)->SetTextColour((wxColour const &)*arg2);
17580
17581 wxPyEndAllowThreads(__tstate);
17582 if (PyErr_Occurred()) SWIG_fail;
17583 }
17584 Py_INCREF(Py_None); resultobj = Py_None;
17585 return resultobj;
17586 fail:
17587 return NULL;
17588 }
17589
17590
17591 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17592 PyObject *resultobj;
17593 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17594 wxColour *arg2 = 0 ;
17595 wxColour temp2 ;
17596 PyObject * obj0 = 0 ;
17597 PyObject * obj1 = 0 ;
17598 char *kwnames[] = {
17599 (char *) "self",(char *) "colBack", NULL
17600 };
17601
17602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
17603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17604 {
17605 arg2 = &temp2;
17606 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17607 }
17608 {
17609 PyThreadState* __tstate = wxPyBeginAllowThreads();
17610 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
17611
17612 wxPyEndAllowThreads(__tstate);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 }
17615 Py_INCREF(Py_None); resultobj = Py_None;
17616 return resultobj;
17617 fail:
17618 return NULL;
17619 }
17620
17621
17622 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17623 PyObject *resultobj;
17624 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17625 wxFont *arg2 = 0 ;
17626 PyObject * obj0 = 0 ;
17627 PyObject * obj1 = 0 ;
17628 char *kwnames[] = {
17629 (char *) "self",(char *) "font", NULL
17630 };
17631
17632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
17633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17634 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17635 if (arg2 == NULL) {
17636 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17637 }
17638 {
17639 PyThreadState* __tstate = wxPyBeginAllowThreads();
17640 (arg1)->SetFont((wxFont const &)*arg2);
17641
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 Py_INCREF(Py_None); resultobj = Py_None;
17646 return resultobj;
17647 fail:
17648 return NULL;
17649 }
17650
17651
17652 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj;
17654 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17655 bool result;
17656 PyObject * obj0 = 0 ;
17657 char *kwnames[] = {
17658 (char *) "self", NULL
17659 };
17660
17661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
17662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17663 {
17664 PyThreadState* __tstate = wxPyBeginAllowThreads();
17665 result = (bool)(arg1)->HasTextColour();
17666
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17671 return resultobj;
17672 fail:
17673 return NULL;
17674 }
17675
17676
17677 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17678 PyObject *resultobj;
17679 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17680 bool result;
17681 PyObject * obj0 = 0 ;
17682 char *kwnames[] = {
17683 (char *) "self", NULL
17684 };
17685
17686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
17687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17688 {
17689 PyThreadState* __tstate = wxPyBeginAllowThreads();
17690 result = (bool)(arg1)->HasBackgroundColour();
17691
17692 wxPyEndAllowThreads(__tstate);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 }
17695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17696 return resultobj;
17697 fail:
17698 return NULL;
17699 }
17700
17701
17702 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17703 PyObject *resultobj;
17704 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17705 bool result;
17706 PyObject * obj0 = 0 ;
17707 char *kwnames[] = {
17708 (char *) "self", NULL
17709 };
17710
17711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
17712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17713 {
17714 PyThreadState* __tstate = wxPyBeginAllowThreads();
17715 result = (bool)(arg1)->HasFont();
17716
17717 wxPyEndAllowThreads(__tstate);
17718 if (PyErr_Occurred()) SWIG_fail;
17719 }
17720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17721 return resultobj;
17722 fail:
17723 return NULL;
17724 }
17725
17726
17727 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17728 PyObject *resultobj;
17729 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17730 wxColour result;
17731 PyObject * obj0 = 0 ;
17732 char *kwnames[] = {
17733 (char *) "self", NULL
17734 };
17735
17736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
17737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 result = (arg1)->GetTextColour();
17741
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 {
17746 wxColour * resultptr;
17747 resultptr = new wxColour((wxColour &) result);
17748 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17749 }
17750 return resultobj;
17751 fail:
17752 return NULL;
17753 }
17754
17755
17756 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17757 PyObject *resultobj;
17758 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17759 wxColour result;
17760 PyObject * obj0 = 0 ;
17761 char *kwnames[] = {
17762 (char *) "self", NULL
17763 };
17764
17765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
17766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17767 {
17768 PyThreadState* __tstate = wxPyBeginAllowThreads();
17769 result = (arg1)->GetBackgroundColour();
17770
17771 wxPyEndAllowThreads(__tstate);
17772 if (PyErr_Occurred()) SWIG_fail;
17773 }
17774 {
17775 wxColour * resultptr;
17776 resultptr = new wxColour((wxColour &) result);
17777 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17778 }
17779 return resultobj;
17780 fail:
17781 return NULL;
17782 }
17783
17784
17785 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17786 PyObject *resultobj;
17787 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17788 wxFont result;
17789 PyObject * obj0 = 0 ;
17790 char *kwnames[] = {
17791 (char *) "self", NULL
17792 };
17793
17794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
17795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17796 {
17797 PyThreadState* __tstate = wxPyBeginAllowThreads();
17798 result = (arg1)->GetFont();
17799
17800 wxPyEndAllowThreads(__tstate);
17801 if (PyErr_Occurred()) SWIG_fail;
17802 }
17803 {
17804 wxFont * resultptr;
17805 resultptr = new wxFont((wxFont &) result);
17806 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
17807 }
17808 return resultobj;
17809 fail:
17810 return NULL;
17811 }
17812
17813
17814 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
17815 PyObject *resultobj;
17816 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
17817 PyObject * obj0 = 0 ;
17818 char *kwnames[] = {
17819 (char *) "self", NULL
17820 };
17821
17822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
17823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17824 {
17825 PyThreadState* __tstate = wxPyBeginAllowThreads();
17826 wxListItemAttr_Destroy(arg1);
17827
17828 wxPyEndAllowThreads(__tstate);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 }
17831 Py_INCREF(Py_None); resultobj = Py_None;
17832 return resultobj;
17833 fail:
17834 return NULL;
17835 }
17836
17837
17838 static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
17839 PyObject *obj;
17840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17841 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
17842 Py_INCREF(obj);
17843 return Py_BuildValue((char *)"");
17844 }
17845 static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17846 PyObject *resultobj;
17847 wxListItem *result;
17848 char *kwnames[] = {
17849 NULL
17850 };
17851
17852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
17853 {
17854 PyThreadState* __tstate = wxPyBeginAllowThreads();
17855 result = (wxListItem *)new wxListItem();
17856
17857 wxPyEndAllowThreads(__tstate);
17858 if (PyErr_Occurred()) SWIG_fail;
17859 }
17860 {
17861 resultobj = wxPyMake_wxObject(result);
17862 }
17863 return resultobj;
17864 fail:
17865 return NULL;
17866 }
17867
17868
17869 static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17870 PyObject *resultobj;
17871 wxListItem *arg1 = (wxListItem *) 0 ;
17872 PyObject * obj0 = 0 ;
17873 char *kwnames[] = {
17874 (char *) "self", NULL
17875 };
17876
17877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
17878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17879 {
17880 PyThreadState* __tstate = wxPyBeginAllowThreads();
17881 delete arg1;
17882
17883 wxPyEndAllowThreads(__tstate);
17884 if (PyErr_Occurred()) SWIG_fail;
17885 }
17886 Py_INCREF(Py_None); resultobj = Py_None;
17887 return resultobj;
17888 fail:
17889 return NULL;
17890 }
17891
17892
17893 static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
17894 PyObject *resultobj;
17895 wxListItem *arg1 = (wxListItem *) 0 ;
17896 PyObject * obj0 = 0 ;
17897 char *kwnames[] = {
17898 (char *) "self", NULL
17899 };
17900
17901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
17902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17903 {
17904 PyThreadState* __tstate = wxPyBeginAllowThreads();
17905 (arg1)->Clear();
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_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
17918 PyObject *resultobj;
17919 wxListItem *arg1 = (wxListItem *) 0 ;
17920 PyObject * obj0 = 0 ;
17921 char *kwnames[] = {
17922 (char *) "self", NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
17926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 (arg1)->ClearAttributes();
17930
17931 wxPyEndAllowThreads(__tstate);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 Py_INCREF(Py_None); resultobj = Py_None;
17935 return resultobj;
17936 fail:
17937 return NULL;
17938 }
17939
17940
17941 static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj;
17943 wxListItem *arg1 = (wxListItem *) 0 ;
17944 long arg2 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 char *kwnames[] = {
17948 (char *) "self",(char *) "mask", NULL
17949 };
17950
17951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
17952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17953 {
17954 arg2 = (long) SWIG_PyObj_AsLong(obj1);
17955 if (PyErr_Occurred()) SWIG_fail;
17956 }
17957 {
17958 PyThreadState* __tstate = wxPyBeginAllowThreads();
17959 (arg1)->SetMask(arg2);
17960
17961 wxPyEndAllowThreads(__tstate);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 }
17964 Py_INCREF(Py_None); resultobj = Py_None;
17965 return resultobj;
17966 fail:
17967 return NULL;
17968 }
17969
17970
17971 static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
17972 PyObject *resultobj;
17973 wxListItem *arg1 = (wxListItem *) 0 ;
17974 long arg2 ;
17975 PyObject * obj0 = 0 ;
17976 PyObject * obj1 = 0 ;
17977 char *kwnames[] = {
17978 (char *) "self",(char *) "id", NULL
17979 };
17980
17981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
17982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17983 {
17984 arg2 = (long) SWIG_PyObj_AsLong(obj1);
17985 if (PyErr_Occurred()) SWIG_fail;
17986 }
17987 {
17988 PyThreadState* __tstate = wxPyBeginAllowThreads();
17989 (arg1)->SetId(arg2);
17990
17991 wxPyEndAllowThreads(__tstate);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 }
17994 Py_INCREF(Py_None); resultobj = Py_None;
17995 return resultobj;
17996 fail:
17997 return NULL;
17998 }
17999
18000
18001 static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18002 PyObject *resultobj;
18003 wxListItem *arg1 = (wxListItem *) 0 ;
18004 int arg2 ;
18005 PyObject * obj0 = 0 ;
18006 PyObject * obj1 = 0 ;
18007 char *kwnames[] = {
18008 (char *) "self",(char *) "col", NULL
18009 };
18010
18011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
18012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18013 {
18014 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 }
18017 {
18018 PyThreadState* __tstate = wxPyBeginAllowThreads();
18019 (arg1)->SetColumn(arg2);
18020
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 Py_INCREF(Py_None); resultobj = Py_None;
18025 return resultobj;
18026 fail:
18027 return NULL;
18028 }
18029
18030
18031 static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
18032 PyObject *resultobj;
18033 wxListItem *arg1 = (wxListItem *) 0 ;
18034 long arg2 ;
18035 PyObject * obj0 = 0 ;
18036 PyObject * obj1 = 0 ;
18037 char *kwnames[] = {
18038 (char *) "self",(char *) "state", NULL
18039 };
18040
18041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
18042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18043 {
18044 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 {
18048 PyThreadState* __tstate = wxPyBeginAllowThreads();
18049 (arg1)->SetState(arg2);
18050
18051 wxPyEndAllowThreads(__tstate);
18052 if (PyErr_Occurred()) SWIG_fail;
18053 }
18054 Py_INCREF(Py_None); resultobj = Py_None;
18055 return resultobj;
18056 fail:
18057 return NULL;
18058 }
18059
18060
18061 static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18062 PyObject *resultobj;
18063 wxListItem *arg1 = (wxListItem *) 0 ;
18064 long arg2 ;
18065 PyObject * obj0 = 0 ;
18066 PyObject * obj1 = 0 ;
18067 char *kwnames[] = {
18068 (char *) "self",(char *) "stateMask", NULL
18069 };
18070
18071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
18072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18073 {
18074 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 {
18078 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 (arg1)->SetStateMask(arg2);
18080
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 Py_INCREF(Py_None); resultobj = Py_None;
18085 return resultobj;
18086 fail:
18087 return NULL;
18088 }
18089
18090
18091 static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18092 PyObject *resultobj;
18093 wxListItem *arg1 = (wxListItem *) 0 ;
18094 wxString *arg2 = 0 ;
18095 bool temp2 = False ;
18096 PyObject * obj0 = 0 ;
18097 PyObject * obj1 = 0 ;
18098 char *kwnames[] = {
18099 (char *) "self",(char *) "text", NULL
18100 };
18101
18102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
18103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18104 {
18105 arg2 = wxString_in_helper(obj1);
18106 if (arg2 == NULL) SWIG_fail;
18107 temp2 = True;
18108 }
18109 {
18110 PyThreadState* __tstate = wxPyBeginAllowThreads();
18111 (arg1)->SetText((wxString const &)*arg2);
18112
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 Py_INCREF(Py_None); resultobj = Py_None;
18117 {
18118 if (temp2)
18119 delete arg2;
18120 }
18121 return resultobj;
18122 fail:
18123 {
18124 if (temp2)
18125 delete arg2;
18126 }
18127 return NULL;
18128 }
18129
18130
18131 static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18132 PyObject *resultobj;
18133 wxListItem *arg1 = (wxListItem *) 0 ;
18134 int arg2 ;
18135 PyObject * obj0 = 0 ;
18136 PyObject * obj1 = 0 ;
18137 char *kwnames[] = {
18138 (char *) "self",(char *) "image", NULL
18139 };
18140
18141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
18142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18143 {
18144 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 {
18148 PyThreadState* __tstate = wxPyBeginAllowThreads();
18149 (arg1)->SetImage(arg2);
18150
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 Py_INCREF(Py_None); resultobj = Py_None;
18155 return resultobj;
18156 fail:
18157 return NULL;
18158 }
18159
18160
18161 static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj;
18163 wxListItem *arg1 = (wxListItem *) 0 ;
18164 long arg2 ;
18165 PyObject * obj0 = 0 ;
18166 PyObject * obj1 = 0 ;
18167 char *kwnames[] = {
18168 (char *) "self",(char *) "data", NULL
18169 };
18170
18171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
18172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18173 {
18174 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 (arg1)->SetData(arg2);
18180
18181 wxPyEndAllowThreads(__tstate);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 }
18184 Py_INCREF(Py_None); resultobj = Py_None;
18185 return resultobj;
18186 fail:
18187 return NULL;
18188 }
18189
18190
18191 static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18192 PyObject *resultobj;
18193 wxListItem *arg1 = (wxListItem *) 0 ;
18194 int arg2 ;
18195 PyObject * obj0 = 0 ;
18196 PyObject * obj1 = 0 ;
18197 char *kwnames[] = {
18198 (char *) "self",(char *) "width", NULL
18199 };
18200
18201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
18202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18203 {
18204 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18205 if (PyErr_Occurred()) SWIG_fail;
18206 }
18207 {
18208 PyThreadState* __tstate = wxPyBeginAllowThreads();
18209 (arg1)->SetWidth(arg2);
18210
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 Py_INCREF(Py_None); resultobj = Py_None;
18215 return resultobj;
18216 fail:
18217 return NULL;
18218 }
18219
18220
18221 static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18222 PyObject *resultobj;
18223 wxListItem *arg1 = (wxListItem *) 0 ;
18224 int arg2 ;
18225 PyObject * obj0 = 0 ;
18226 PyObject * obj1 = 0 ;
18227 char *kwnames[] = {
18228 (char *) "self",(char *) "align", NULL
18229 };
18230
18231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
18232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18233 {
18234 arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1);
18235 if (PyErr_Occurred()) SWIG_fail;
18236 }
18237 {
18238 PyThreadState* __tstate = wxPyBeginAllowThreads();
18239 (arg1)->SetAlign((wxListColumnFormat )arg2);
18240
18241 wxPyEndAllowThreads(__tstate);
18242 if (PyErr_Occurred()) SWIG_fail;
18243 }
18244 Py_INCREF(Py_None); resultobj = Py_None;
18245 return resultobj;
18246 fail:
18247 return NULL;
18248 }
18249
18250
18251 static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18252 PyObject *resultobj;
18253 wxListItem *arg1 = (wxListItem *) 0 ;
18254 wxColour *arg2 = 0 ;
18255 wxColour temp2 ;
18256 PyObject * obj0 = 0 ;
18257 PyObject * obj1 = 0 ;
18258 char *kwnames[] = {
18259 (char *) "self",(char *) "colText", NULL
18260 };
18261
18262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18264 {
18265 arg2 = &temp2;
18266 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18267 }
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 (arg1)->SetTextColour((wxColour const &)*arg2);
18271
18272 wxPyEndAllowThreads(__tstate);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 }
18275 Py_INCREF(Py_None); resultobj = Py_None;
18276 return resultobj;
18277 fail:
18278 return NULL;
18279 }
18280
18281
18282 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18283 PyObject *resultobj;
18284 wxListItem *arg1 = (wxListItem *) 0 ;
18285 wxColour *arg2 = 0 ;
18286 wxColour temp2 ;
18287 PyObject * obj0 = 0 ;
18288 PyObject * obj1 = 0 ;
18289 char *kwnames[] = {
18290 (char *) "self",(char *) "colBack", NULL
18291 };
18292
18293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18295 {
18296 arg2 = &temp2;
18297 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18298 }
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 Py_INCREF(Py_None); resultobj = Py_None;
18307 return resultobj;
18308 fail:
18309 return NULL;
18310 }
18311
18312
18313 static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18314 PyObject *resultobj;
18315 wxListItem *arg1 = (wxListItem *) 0 ;
18316 wxFont *arg2 = 0 ;
18317 PyObject * obj0 = 0 ;
18318 PyObject * obj1 = 0 ;
18319 char *kwnames[] = {
18320 (char *) "self",(char *) "font", NULL
18321 };
18322
18323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
18324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18325 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18326 if (arg2 == NULL) {
18327 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18328 }
18329 {
18330 PyThreadState* __tstate = wxPyBeginAllowThreads();
18331 (arg1)->SetFont((wxFont const &)*arg2);
18332
18333 wxPyEndAllowThreads(__tstate);
18334 if (PyErr_Occurred()) SWIG_fail;
18335 }
18336 Py_INCREF(Py_None); resultobj = Py_None;
18337 return resultobj;
18338 fail:
18339 return NULL;
18340 }
18341
18342
18343 static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18344 PyObject *resultobj;
18345 wxListItem *arg1 = (wxListItem *) 0 ;
18346 long result;
18347 PyObject * obj0 = 0 ;
18348 char *kwnames[] = {
18349 (char *) "self", NULL
18350 };
18351
18352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
18353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18354 {
18355 PyThreadState* __tstate = wxPyBeginAllowThreads();
18356 result = (long)(arg1)->GetMask();
18357
18358 wxPyEndAllowThreads(__tstate);
18359 if (PyErr_Occurred()) SWIG_fail;
18360 }
18361 resultobj = SWIG_PyObj_FromLong((long)result);
18362 return resultobj;
18363 fail:
18364 return NULL;
18365 }
18366
18367
18368 static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18369 PyObject *resultobj;
18370 wxListItem *arg1 = (wxListItem *) 0 ;
18371 long result;
18372 PyObject * obj0 = 0 ;
18373 char *kwnames[] = {
18374 (char *) "self", NULL
18375 };
18376
18377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
18378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 result = (long)(arg1)->GetId();
18382
18383 wxPyEndAllowThreads(__tstate);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 }
18386 resultobj = SWIG_PyObj_FromLong((long)result);
18387 return resultobj;
18388 fail:
18389 return NULL;
18390 }
18391
18392
18393 static PyObject *_wrap_ListItem_GetColumn(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_GetColumn",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)->GetColumn();
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_GetState(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_GetState",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)->GetState();
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_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18444 PyObject *resultobj;
18445 wxListItem *arg1 = (wxListItem *) 0 ;
18446 wxString *result;
18447 PyObject * obj0 = 0 ;
18448 char *kwnames[] = {
18449 (char *) "self", NULL
18450 };
18451
18452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",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 {
18457 wxString const &_result_ref = (arg1)->GetText();
18458 result = (wxString *) &_result_ref;
18459 }
18460
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 {
18465 #if wxUSE_UNICODE
18466 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18467 #else
18468 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18469 #endif
18470 }
18471 return resultobj;
18472 fail:
18473 return NULL;
18474 }
18475
18476
18477 static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
18478 PyObject *resultobj;
18479 wxListItem *arg1 = (wxListItem *) 0 ;
18480 int result;
18481 PyObject * obj0 = 0 ;
18482 char *kwnames[] = {
18483 (char *) "self", NULL
18484 };
18485
18486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
18487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 result = (int)(arg1)->GetImage();
18491
18492 wxPyEndAllowThreads(__tstate);
18493 if (PyErr_Occurred()) SWIG_fail;
18494 }
18495 resultobj = SWIG_PyObj_FromInt((int)result);
18496 return resultobj;
18497 fail:
18498 return NULL;
18499 }
18500
18501
18502 static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
18503 PyObject *resultobj;
18504 wxListItem *arg1 = (wxListItem *) 0 ;
18505 long result;
18506 PyObject * obj0 = 0 ;
18507 char *kwnames[] = {
18508 (char *) "self", NULL
18509 };
18510
18511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
18512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18513 {
18514 PyThreadState* __tstate = wxPyBeginAllowThreads();
18515 result = (long)(arg1)->GetData();
18516
18517 wxPyEndAllowThreads(__tstate);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 }
18520 resultobj = SWIG_PyObj_FromLong((long)result);
18521 return resultobj;
18522 fail:
18523 return NULL;
18524 }
18525
18526
18527 static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
18528 PyObject *resultobj;
18529 wxListItem *arg1 = (wxListItem *) 0 ;
18530 int result;
18531 PyObject * obj0 = 0 ;
18532 char *kwnames[] = {
18533 (char *) "self", NULL
18534 };
18535
18536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
18537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18538 {
18539 PyThreadState* __tstate = wxPyBeginAllowThreads();
18540 result = (int)(arg1)->GetWidth();
18541
18542 wxPyEndAllowThreads(__tstate);
18543 if (PyErr_Occurred()) SWIG_fail;
18544 }
18545 resultobj = SWIG_PyObj_FromInt((int)result);
18546 return resultobj;
18547 fail:
18548 return NULL;
18549 }
18550
18551
18552 static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
18553 PyObject *resultobj;
18554 wxListItem *arg1 = (wxListItem *) 0 ;
18555 int result;
18556 PyObject * obj0 = 0 ;
18557 char *kwnames[] = {
18558 (char *) "self", NULL
18559 };
18560
18561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
18562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18563 {
18564 PyThreadState* __tstate = wxPyBeginAllowThreads();
18565 result = (int)(arg1)->GetAlign();
18566
18567 wxPyEndAllowThreads(__tstate);
18568 if (PyErr_Occurred()) SWIG_fail;
18569 }
18570 resultobj = SWIG_PyObj_FromInt((int)result);
18571 return resultobj;
18572 fail:
18573 return NULL;
18574 }
18575
18576
18577 static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18578 PyObject *resultobj;
18579 wxListItem *arg1 = (wxListItem *) 0 ;
18580 wxListItemAttr *result;
18581 PyObject * obj0 = 0 ;
18582 char *kwnames[] = {
18583 (char *) "self", NULL
18584 };
18585
18586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
18587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18588 {
18589 PyThreadState* __tstate = wxPyBeginAllowThreads();
18590 result = (wxListItemAttr *)(arg1)->GetAttributes();
18591
18592 wxPyEndAllowThreads(__tstate);
18593 if (PyErr_Occurred()) SWIG_fail;
18594 }
18595 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0);
18596 return resultobj;
18597 fail:
18598 return NULL;
18599 }
18600
18601
18602 static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18603 PyObject *resultobj;
18604 wxListItem *arg1 = (wxListItem *) 0 ;
18605 bool result;
18606 PyObject * obj0 = 0 ;
18607 char *kwnames[] = {
18608 (char *) "self", NULL
18609 };
18610
18611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
18612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18613 {
18614 PyThreadState* __tstate = wxPyBeginAllowThreads();
18615 result = (bool)(arg1)->HasAttributes();
18616
18617 wxPyEndAllowThreads(__tstate);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 }
18620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18621 return resultobj;
18622 fail:
18623 return NULL;
18624 }
18625
18626
18627 static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18628 PyObject *resultobj;
18629 wxListItem *arg1 = (wxListItem *) 0 ;
18630 wxColour result;
18631 PyObject * obj0 = 0 ;
18632 char *kwnames[] = {
18633 (char *) "self", NULL
18634 };
18635
18636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
18637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18638 {
18639 PyThreadState* __tstate = wxPyBeginAllowThreads();
18640 result = ((wxListItem const *)arg1)->GetTextColour();
18641
18642 wxPyEndAllowThreads(__tstate);
18643 if (PyErr_Occurred()) SWIG_fail;
18644 }
18645 {
18646 wxColour * resultptr;
18647 resultptr = new wxColour((wxColour &) result);
18648 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18649 }
18650 return resultobj;
18651 fail:
18652 return NULL;
18653 }
18654
18655
18656 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18657 PyObject *resultobj;
18658 wxListItem *arg1 = (wxListItem *) 0 ;
18659 wxColour result;
18660 PyObject * obj0 = 0 ;
18661 char *kwnames[] = {
18662 (char *) "self", NULL
18663 };
18664
18665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
18666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18667 {
18668 PyThreadState* __tstate = wxPyBeginAllowThreads();
18669 result = ((wxListItem const *)arg1)->GetBackgroundColour();
18670
18671 wxPyEndAllowThreads(__tstate);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 }
18674 {
18675 wxColour * resultptr;
18676 resultptr = new wxColour((wxColour &) result);
18677 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18678 }
18679 return resultobj;
18680 fail:
18681 return NULL;
18682 }
18683
18684
18685 static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18686 PyObject *resultobj;
18687 wxListItem *arg1 = (wxListItem *) 0 ;
18688 wxFont result;
18689 PyObject * obj0 = 0 ;
18690 char *kwnames[] = {
18691 (char *) "self", NULL
18692 };
18693
18694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
18695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 result = ((wxListItem const *)arg1)->GetFont();
18699
18700 wxPyEndAllowThreads(__tstate);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 {
18704 wxFont * resultptr;
18705 resultptr = new wxFont((wxFont &) result);
18706 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
18707 }
18708 return resultobj;
18709 fail:
18710 return NULL;
18711 }
18712
18713
18714 static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18715 PyObject *resultobj;
18716 wxListItem *arg1 = (wxListItem *) 0 ;
18717 long arg2 ;
18718 PyObject * obj0 = 0 ;
18719 PyObject * obj1 = 0 ;
18720 char *kwnames[] = {
18721 (char *) "self",(char *) "m_mask", NULL
18722 };
18723
18724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
18725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18726 {
18727 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 if (arg1) (arg1)->m_mask = arg2;
18731
18732 Py_INCREF(Py_None); resultobj = Py_None;
18733 return resultobj;
18734 fail:
18735 return NULL;
18736 }
18737
18738
18739 static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18740 PyObject *resultobj;
18741 wxListItem *arg1 = (wxListItem *) 0 ;
18742 long result;
18743 PyObject * obj0 = 0 ;
18744 char *kwnames[] = {
18745 (char *) "self", NULL
18746 };
18747
18748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
18749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18750 result = (long) ((arg1)->m_mask);
18751
18752 resultobj = SWIG_PyObj_FromLong((long)result);
18753 return resultobj;
18754 fail:
18755 return NULL;
18756 }
18757
18758
18759 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18760 PyObject *resultobj;
18761 wxListItem *arg1 = (wxListItem *) 0 ;
18762 long arg2 ;
18763 PyObject * obj0 = 0 ;
18764 PyObject * obj1 = 0 ;
18765 char *kwnames[] = {
18766 (char *) "self",(char *) "m_itemId", NULL
18767 };
18768
18769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
18770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18771 {
18772 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18773 if (PyErr_Occurred()) SWIG_fail;
18774 }
18775 if (arg1) (arg1)->m_itemId = arg2;
18776
18777 Py_INCREF(Py_None); resultobj = Py_None;
18778 return resultobj;
18779 fail:
18780 return NULL;
18781 }
18782
18783
18784 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18785 PyObject *resultobj;
18786 wxListItem *arg1 = (wxListItem *) 0 ;
18787 long result;
18788 PyObject * obj0 = 0 ;
18789 char *kwnames[] = {
18790 (char *) "self", NULL
18791 };
18792
18793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
18794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18795 result = (long) ((arg1)->m_itemId);
18796
18797 resultobj = SWIG_PyObj_FromLong((long)result);
18798 return resultobj;
18799 fail:
18800 return NULL;
18801 }
18802
18803
18804 static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18805 PyObject *resultobj;
18806 wxListItem *arg1 = (wxListItem *) 0 ;
18807 int arg2 ;
18808 PyObject * obj0 = 0 ;
18809 PyObject * obj1 = 0 ;
18810 char *kwnames[] = {
18811 (char *) "self",(char *) "m_col", NULL
18812 };
18813
18814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
18815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18816 {
18817 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18818 if (PyErr_Occurred()) SWIG_fail;
18819 }
18820 if (arg1) (arg1)->m_col = arg2;
18821
18822 Py_INCREF(Py_None); resultobj = Py_None;
18823 return resultobj;
18824 fail:
18825 return NULL;
18826 }
18827
18828
18829 static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18830 PyObject *resultobj;
18831 wxListItem *arg1 = (wxListItem *) 0 ;
18832 int result;
18833 PyObject * obj0 = 0 ;
18834 char *kwnames[] = {
18835 (char *) "self", NULL
18836 };
18837
18838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
18839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18840 result = (int) ((arg1)->m_col);
18841
18842 resultobj = SWIG_PyObj_FromInt((int)result);
18843 return resultobj;
18844 fail:
18845 return NULL;
18846 }
18847
18848
18849 static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18850 PyObject *resultobj;
18851 wxListItem *arg1 = (wxListItem *) 0 ;
18852 long arg2 ;
18853 PyObject * obj0 = 0 ;
18854 PyObject * obj1 = 0 ;
18855 char *kwnames[] = {
18856 (char *) "self",(char *) "m_state", NULL
18857 };
18858
18859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
18860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18861 {
18862 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 }
18865 if (arg1) (arg1)->m_state = arg2;
18866
18867 Py_INCREF(Py_None); resultobj = Py_None;
18868 return resultobj;
18869 fail:
18870 return NULL;
18871 }
18872
18873
18874 static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18875 PyObject *resultobj;
18876 wxListItem *arg1 = (wxListItem *) 0 ;
18877 long result;
18878 PyObject * obj0 = 0 ;
18879 char *kwnames[] = {
18880 (char *) "self", NULL
18881 };
18882
18883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
18884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18885 result = (long) ((arg1)->m_state);
18886
18887 resultobj = SWIG_PyObj_FromLong((long)result);
18888 return resultobj;
18889 fail:
18890 return NULL;
18891 }
18892
18893
18894 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18895 PyObject *resultobj;
18896 wxListItem *arg1 = (wxListItem *) 0 ;
18897 long arg2 ;
18898 PyObject * obj0 = 0 ;
18899 PyObject * obj1 = 0 ;
18900 char *kwnames[] = {
18901 (char *) "self",(char *) "m_stateMask", NULL
18902 };
18903
18904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
18905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18906 {
18907 arg2 = (long) SWIG_PyObj_AsLong(obj1);
18908 if (PyErr_Occurred()) SWIG_fail;
18909 }
18910 if (arg1) (arg1)->m_stateMask = arg2;
18911
18912 Py_INCREF(Py_None); resultobj = Py_None;
18913 return resultobj;
18914 fail:
18915 return NULL;
18916 }
18917
18918
18919 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18920 PyObject *resultobj;
18921 wxListItem *arg1 = (wxListItem *) 0 ;
18922 long result;
18923 PyObject * obj0 = 0 ;
18924 char *kwnames[] = {
18925 (char *) "self", NULL
18926 };
18927
18928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
18929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18930 result = (long) ((arg1)->m_stateMask);
18931
18932 resultobj = SWIG_PyObj_FromLong((long)result);
18933 return resultobj;
18934 fail:
18935 return NULL;
18936 }
18937
18938
18939 static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
18940 PyObject *resultobj;
18941 wxListItem *arg1 = (wxListItem *) 0 ;
18942 wxString *arg2 = (wxString *) 0 ;
18943 bool temp2 = False ;
18944 PyObject * obj0 = 0 ;
18945 PyObject * obj1 = 0 ;
18946 char *kwnames[] = {
18947 (char *) "self",(char *) "m_text", NULL
18948 };
18949
18950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
18951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18952 {
18953 arg2 = wxString_in_helper(obj1);
18954 if (arg2 == NULL) SWIG_fail;
18955 temp2 = True;
18956 }
18957 if (arg1) (arg1)->m_text = *arg2;
18958
18959 Py_INCREF(Py_None); resultobj = Py_None;
18960 {
18961 if (temp2)
18962 delete arg2;
18963 }
18964 return resultobj;
18965 fail:
18966 {
18967 if (temp2)
18968 delete arg2;
18969 }
18970 return NULL;
18971 }
18972
18973
18974 static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
18975 PyObject *resultobj;
18976 wxListItem *arg1 = (wxListItem *) 0 ;
18977 wxString *result;
18978 PyObject * obj0 = 0 ;
18979 char *kwnames[] = {
18980 (char *) "self", NULL
18981 };
18982
18983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
18984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18985 result = (wxString *)& ((arg1)->m_text);
18986
18987 {
18988 #if wxUSE_UNICODE
18989 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18990 #else
18991 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18992 #endif
18993 }
18994 return resultobj;
18995 fail:
18996 return NULL;
18997 }
18998
18999
19000 static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19001 PyObject *resultobj;
19002 wxListItem *arg1 = (wxListItem *) 0 ;
19003 int arg2 ;
19004 PyObject * obj0 = 0 ;
19005 PyObject * obj1 = 0 ;
19006 char *kwnames[] = {
19007 (char *) "self",(char *) "m_image", NULL
19008 };
19009
19010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
19011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19012 {
19013 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19014 if (PyErr_Occurred()) SWIG_fail;
19015 }
19016 if (arg1) (arg1)->m_image = arg2;
19017
19018 Py_INCREF(Py_None); resultobj = Py_None;
19019 return resultobj;
19020 fail:
19021 return NULL;
19022 }
19023
19024
19025 static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19026 PyObject *resultobj;
19027 wxListItem *arg1 = (wxListItem *) 0 ;
19028 int result;
19029 PyObject * obj0 = 0 ;
19030 char *kwnames[] = {
19031 (char *) "self", NULL
19032 };
19033
19034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
19035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19036 result = (int) ((arg1)->m_image);
19037
19038 resultobj = SWIG_PyObj_FromInt((int)result);
19039 return resultobj;
19040 fail:
19041 return NULL;
19042 }
19043
19044
19045 static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19046 PyObject *resultobj;
19047 wxListItem *arg1 = (wxListItem *) 0 ;
19048 long arg2 ;
19049 PyObject * obj0 = 0 ;
19050 PyObject * obj1 = 0 ;
19051 char *kwnames[] = {
19052 (char *) "self",(char *) "m_data", NULL
19053 };
19054
19055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
19056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19057 {
19058 arg2 = (long) SWIG_PyObj_AsLong(obj1);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 if (arg1) (arg1)->m_data = arg2;
19062
19063 Py_INCREF(Py_None); resultobj = Py_None;
19064 return resultobj;
19065 fail:
19066 return NULL;
19067 }
19068
19069
19070 static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19071 PyObject *resultobj;
19072 wxListItem *arg1 = (wxListItem *) 0 ;
19073 long result;
19074 PyObject * obj0 = 0 ;
19075 char *kwnames[] = {
19076 (char *) "self", NULL
19077 };
19078
19079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
19080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19081 result = (long) ((arg1)->m_data);
19082
19083 resultobj = SWIG_PyObj_FromLong((long)result);
19084 return resultobj;
19085 fail:
19086 return NULL;
19087 }
19088
19089
19090 static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj;
19092 wxListItem *arg1 = (wxListItem *) 0 ;
19093 int arg2 ;
19094 PyObject * obj0 = 0 ;
19095 PyObject * obj1 = 0 ;
19096 char *kwnames[] = {
19097 (char *) "self",(char *) "m_format", NULL
19098 };
19099
19100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
19101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19102 {
19103 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19104 if (PyErr_Occurred()) SWIG_fail;
19105 }
19106 if (arg1) (arg1)->m_format = arg2;
19107
19108 Py_INCREF(Py_None); resultobj = Py_None;
19109 return resultobj;
19110 fail:
19111 return NULL;
19112 }
19113
19114
19115 static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19116 PyObject *resultobj;
19117 wxListItem *arg1 = (wxListItem *) 0 ;
19118 int result;
19119 PyObject * obj0 = 0 ;
19120 char *kwnames[] = {
19121 (char *) "self", NULL
19122 };
19123
19124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
19125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19126 result = (int) ((arg1)->m_format);
19127
19128 resultobj = SWIG_PyObj_FromInt((int)result);
19129 return resultobj;
19130 fail:
19131 return NULL;
19132 }
19133
19134
19135 static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19136 PyObject *resultobj;
19137 wxListItem *arg1 = (wxListItem *) 0 ;
19138 int arg2 ;
19139 PyObject * obj0 = 0 ;
19140 PyObject * obj1 = 0 ;
19141 char *kwnames[] = {
19142 (char *) "self",(char *) "m_width", NULL
19143 };
19144
19145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
19146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19147 {
19148 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19149 if (PyErr_Occurred()) SWIG_fail;
19150 }
19151 if (arg1) (arg1)->m_width = arg2;
19152
19153 Py_INCREF(Py_None); resultobj = Py_None;
19154 return resultobj;
19155 fail:
19156 return NULL;
19157 }
19158
19159
19160 static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19161 PyObject *resultobj;
19162 wxListItem *arg1 = (wxListItem *) 0 ;
19163 int result;
19164 PyObject * obj0 = 0 ;
19165 char *kwnames[] = {
19166 (char *) "self", NULL
19167 };
19168
19169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
19170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19171 result = (int) ((arg1)->m_width);
19172
19173 resultobj = SWIG_PyObj_FromInt((int)result);
19174 return resultobj;
19175 fail:
19176 return NULL;
19177 }
19178
19179
19180 static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
19181 PyObject *obj;
19182 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19183 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
19184 Py_INCREF(obj);
19185 return Py_BuildValue((char *)"");
19186 }
19187 static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19188 PyObject *resultobj;
19189 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19190 int arg2 = (int) 0 ;
19191 wxListEvent *result;
19192 PyObject * obj0 = 0 ;
19193 PyObject * obj1 = 0 ;
19194 char *kwnames[] = {
19195 (char *) "commandType",(char *) "id", NULL
19196 };
19197
19198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
19199 if (obj0) {
19200 {
19201 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
19202 if (PyErr_Occurred()) SWIG_fail;
19203 }
19204 }
19205 if (obj1) {
19206 {
19207 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19208 if (PyErr_Occurred()) SWIG_fail;
19209 }
19210 }
19211 {
19212 PyThreadState* __tstate = wxPyBeginAllowThreads();
19213 result = (wxListEvent *)new wxListEvent(arg1,arg2);
19214
19215 wxPyEndAllowThreads(__tstate);
19216 if (PyErr_Occurred()) SWIG_fail;
19217 }
19218 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1);
19219 return resultobj;
19220 fail:
19221 return NULL;
19222 }
19223
19224
19225 static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19226 PyObject *resultobj;
19227 wxListEvent *arg1 = (wxListEvent *) 0 ;
19228 int arg2 ;
19229 PyObject * obj0 = 0 ;
19230 PyObject * obj1 = 0 ;
19231 char *kwnames[] = {
19232 (char *) "self",(char *) "m_code", NULL
19233 };
19234
19235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
19236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19237 {
19238 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19239 if (PyErr_Occurred()) SWIG_fail;
19240 }
19241 if (arg1) (arg1)->m_code = arg2;
19242
19243 Py_INCREF(Py_None); resultobj = Py_None;
19244 return resultobj;
19245 fail:
19246 return NULL;
19247 }
19248
19249
19250 static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19251 PyObject *resultobj;
19252 wxListEvent *arg1 = (wxListEvent *) 0 ;
19253 int result;
19254 PyObject * obj0 = 0 ;
19255 char *kwnames[] = {
19256 (char *) "self", NULL
19257 };
19258
19259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
19260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19261 result = (int) ((arg1)->m_code);
19262
19263 resultobj = SWIG_PyObj_FromInt((int)result);
19264 return resultobj;
19265 fail:
19266 return NULL;
19267 }
19268
19269
19270 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19271 PyObject *resultobj;
19272 wxListEvent *arg1 = (wxListEvent *) 0 ;
19273 long arg2 ;
19274 PyObject * obj0 = 0 ;
19275 PyObject * obj1 = 0 ;
19276 char *kwnames[] = {
19277 (char *) "self",(char *) "m_oldItemIndex", NULL
19278 };
19279
19280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19282 {
19283 arg2 = (long) SWIG_PyObj_AsLong(obj1);
19284 if (PyErr_Occurred()) SWIG_fail;
19285 }
19286 if (arg1) (arg1)->m_oldItemIndex = arg2;
19287
19288 Py_INCREF(Py_None); resultobj = Py_None;
19289 return resultobj;
19290 fail:
19291 return NULL;
19292 }
19293
19294
19295 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19296 PyObject *resultobj;
19297 wxListEvent *arg1 = (wxListEvent *) 0 ;
19298 long result;
19299 PyObject * obj0 = 0 ;
19300 char *kwnames[] = {
19301 (char *) "self", NULL
19302 };
19303
19304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
19305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19306 result = (long) ((arg1)->m_oldItemIndex);
19307
19308 resultobj = SWIG_PyObj_FromLong((long)result);
19309 return resultobj;
19310 fail:
19311 return NULL;
19312 }
19313
19314
19315 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19316 PyObject *resultobj;
19317 wxListEvent *arg1 = (wxListEvent *) 0 ;
19318 long arg2 ;
19319 PyObject * obj0 = 0 ;
19320 PyObject * obj1 = 0 ;
19321 char *kwnames[] = {
19322 (char *) "self",(char *) "m_itemIndex", NULL
19323 };
19324
19325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
19326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19327 {
19328 arg2 = (long) SWIG_PyObj_AsLong(obj1);
19329 if (PyErr_Occurred()) SWIG_fail;
19330 }
19331 if (arg1) (arg1)->m_itemIndex = arg2;
19332
19333 Py_INCREF(Py_None); resultobj = Py_None;
19334 return resultobj;
19335 fail:
19336 return NULL;
19337 }
19338
19339
19340 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19341 PyObject *resultobj;
19342 wxListEvent *arg1 = (wxListEvent *) 0 ;
19343 long result;
19344 PyObject * obj0 = 0 ;
19345 char *kwnames[] = {
19346 (char *) "self", NULL
19347 };
19348
19349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
19350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19351 result = (long) ((arg1)->m_itemIndex);
19352
19353 resultobj = SWIG_PyObj_FromLong((long)result);
19354 return resultobj;
19355 fail:
19356 return NULL;
19357 }
19358
19359
19360 static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19361 PyObject *resultobj;
19362 wxListEvent *arg1 = (wxListEvent *) 0 ;
19363 int arg2 ;
19364 PyObject * obj0 = 0 ;
19365 PyObject * obj1 = 0 ;
19366 char *kwnames[] = {
19367 (char *) "self",(char *) "m_col", NULL
19368 };
19369
19370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19372 {
19373 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19374 if (PyErr_Occurred()) SWIG_fail;
19375 }
19376 if (arg1) (arg1)->m_col = arg2;
19377
19378 Py_INCREF(Py_None); resultobj = Py_None;
19379 return resultobj;
19380 fail:
19381 return NULL;
19382 }
19383
19384
19385 static PyObject *_wrap_ListEvent_m_col_get(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_m_col_get",kwnames,&obj0)) goto fail;
19395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19396 result = (int) ((arg1)->m_col);
19397
19398 resultobj = SWIG_PyObj_FromInt((int)result);
19399 return resultobj;
19400 fail:
19401 return NULL;
19402 }
19403
19404
19405 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19406 PyObject *resultobj;
19407 wxListEvent *arg1 = (wxListEvent *) 0 ;
19408 wxPoint *arg2 = (wxPoint *) 0 ;
19409 PyObject * obj0 = 0 ;
19410 PyObject * obj1 = 0 ;
19411 char *kwnames[] = {
19412 (char *) "self",(char *) "m_pointDrag", NULL
19413 };
19414
19415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
19416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19417 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19418 if (arg1) (arg1)->m_pointDrag = *arg2;
19419
19420 Py_INCREF(Py_None); resultobj = Py_None;
19421 return resultobj;
19422 fail:
19423 return NULL;
19424 }
19425
19426
19427 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19428 PyObject *resultobj;
19429 wxListEvent *arg1 = (wxListEvent *) 0 ;
19430 wxPoint *result;
19431 PyObject * obj0 = 0 ;
19432 char *kwnames[] = {
19433 (char *) "self", NULL
19434 };
19435
19436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
19437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19438 result = (wxPoint *)& ((arg1)->m_pointDrag);
19439
19440 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
19441 return resultobj;
19442 fail:
19443 return NULL;
19444 }
19445
19446
19447 static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19448 PyObject *resultobj;
19449 wxListEvent *arg1 = (wxListEvent *) 0 ;
19450 wxListItem *result;
19451 PyObject * obj0 = 0 ;
19452 char *kwnames[] = {
19453 (char *) "self", NULL
19454 };
19455
19456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
19457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19458 result = (wxListItem *)& ((arg1)->m_item);
19459
19460 {
19461 resultobj = wxPyMake_wxObject(result);
19462 }
19463 return resultobj;
19464 fail:
19465 return NULL;
19466 }
19467
19468
19469 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
19470 PyObject *resultobj;
19471 wxListEvent *arg1 = (wxListEvent *) 0 ;
19472 int result;
19473 PyObject * obj0 = 0 ;
19474 char *kwnames[] = {
19475 (char *) "self", NULL
19476 };
19477
19478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
19479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 result = (int)(arg1)->GetKeyCode();
19483
19484 wxPyEndAllowThreads(__tstate);
19485 if (PyErr_Occurred()) SWIG_fail;
19486 }
19487 resultobj = SWIG_PyObj_FromInt((int)result);
19488 return resultobj;
19489 fail:
19490 return NULL;
19491 }
19492
19493
19494 static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
19495 PyObject *resultobj;
19496 wxListEvent *arg1 = (wxListEvent *) 0 ;
19497 long result;
19498 PyObject * obj0 = 0 ;
19499 char *kwnames[] = {
19500 (char *) "self", NULL
19501 };
19502
19503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
19504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19505 {
19506 PyThreadState* __tstate = wxPyBeginAllowThreads();
19507 result = (long)(arg1)->GetIndex();
19508
19509 wxPyEndAllowThreads(__tstate);
19510 if (PyErr_Occurred()) SWIG_fail;
19511 }
19512 resultobj = SWIG_PyObj_FromLong((long)result);
19513 return resultobj;
19514 fail:
19515 return NULL;
19516 }
19517
19518
19519 static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19520 PyObject *resultobj;
19521 wxListEvent *arg1 = (wxListEvent *) 0 ;
19522 int result;
19523 PyObject * obj0 = 0 ;
19524 char *kwnames[] = {
19525 (char *) "self", NULL
19526 };
19527
19528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
19529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 result = (int)(arg1)->GetColumn();
19533
19534 wxPyEndAllowThreads(__tstate);
19535 if (PyErr_Occurred()) SWIG_fail;
19536 }
19537 resultobj = SWIG_PyObj_FromInt((int)result);
19538 return resultobj;
19539 fail:
19540 return NULL;
19541 }
19542
19543
19544 static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj;
19546 wxListEvent *arg1 = (wxListEvent *) 0 ;
19547 wxPoint result;
19548 PyObject * obj0 = 0 ;
19549 char *kwnames[] = {
19550 (char *) "self", NULL
19551 };
19552
19553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
19554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19555 {
19556 PyThreadState* __tstate = wxPyBeginAllowThreads();
19557 result = (arg1)->GetPoint();
19558
19559 wxPyEndAllowThreads(__tstate);
19560 if (PyErr_Occurred()) SWIG_fail;
19561 }
19562 {
19563 wxPoint * resultptr;
19564 resultptr = new wxPoint((wxPoint &) result);
19565 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
19566 }
19567 return resultobj;
19568 fail:
19569 return NULL;
19570 }
19571
19572
19573 static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
19574 PyObject *resultobj;
19575 wxListEvent *arg1 = (wxListEvent *) 0 ;
19576 wxString *result;
19577 PyObject * obj0 = 0 ;
19578 char *kwnames[] = {
19579 (char *) "self", NULL
19580 };
19581
19582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
19583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19584 {
19585 PyThreadState* __tstate = wxPyBeginAllowThreads();
19586 {
19587 wxString const &_result_ref = (arg1)->GetLabel();
19588 result = (wxString *) &_result_ref;
19589 }
19590
19591 wxPyEndAllowThreads(__tstate);
19592 if (PyErr_Occurred()) SWIG_fail;
19593 }
19594 {
19595 #if wxUSE_UNICODE
19596 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19597 #else
19598 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19599 #endif
19600 }
19601 return resultobj;
19602 fail:
19603 return NULL;
19604 }
19605
19606
19607 static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19608 PyObject *resultobj;
19609 wxListEvent *arg1 = (wxListEvent *) 0 ;
19610 wxString *result;
19611 PyObject * obj0 = 0 ;
19612 char *kwnames[] = {
19613 (char *) "self", NULL
19614 };
19615
19616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",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 {
19621 wxString const &_result_ref = (arg1)->GetText();
19622 result = (wxString *) &_result_ref;
19623 }
19624
19625 wxPyEndAllowThreads(__tstate);
19626 if (PyErr_Occurred()) SWIG_fail;
19627 }
19628 {
19629 #if wxUSE_UNICODE
19630 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19631 #else
19632 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19633 #endif
19634 }
19635 return resultobj;
19636 fail:
19637 return NULL;
19638 }
19639
19640
19641 static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19642 PyObject *resultobj;
19643 wxListEvent *arg1 = (wxListEvent *) 0 ;
19644 int result;
19645 PyObject * obj0 = 0 ;
19646 char *kwnames[] = {
19647 (char *) "self", NULL
19648 };
19649
19650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
19651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19652 {
19653 PyThreadState* __tstate = wxPyBeginAllowThreads();
19654 result = (int)(arg1)->GetImage();
19655
19656 wxPyEndAllowThreads(__tstate);
19657 if (PyErr_Occurred()) SWIG_fail;
19658 }
19659 resultobj = SWIG_PyObj_FromInt((int)result);
19660 return resultobj;
19661 fail:
19662 return NULL;
19663 }
19664
19665
19666 static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19667 PyObject *resultobj;
19668 wxListEvent *arg1 = (wxListEvent *) 0 ;
19669 long result;
19670 PyObject * obj0 = 0 ;
19671 char *kwnames[] = {
19672 (char *) "self", NULL
19673 };
19674
19675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
19676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19677 {
19678 PyThreadState* __tstate = wxPyBeginAllowThreads();
19679 result = (long)(arg1)->GetData();
19680
19681 wxPyEndAllowThreads(__tstate);
19682 if (PyErr_Occurred()) SWIG_fail;
19683 }
19684 resultobj = SWIG_PyObj_FromLong((long)result);
19685 return resultobj;
19686 fail:
19687 return NULL;
19688 }
19689
19690
19691 static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19692 PyObject *resultobj;
19693 wxListEvent *arg1 = (wxListEvent *) 0 ;
19694 long result;
19695 PyObject * obj0 = 0 ;
19696 char *kwnames[] = {
19697 (char *) "self", NULL
19698 };
19699
19700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
19701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19702 {
19703 PyThreadState* __tstate = wxPyBeginAllowThreads();
19704 result = (long)(arg1)->GetMask();
19705
19706 wxPyEndAllowThreads(__tstate);
19707 if (PyErr_Occurred()) SWIG_fail;
19708 }
19709 resultobj = SWIG_PyObj_FromLong((long)result);
19710 return resultobj;
19711 fail:
19712 return NULL;
19713 }
19714
19715
19716 static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
19717 PyObject *resultobj;
19718 wxListEvent *arg1 = (wxListEvent *) 0 ;
19719 wxListItem *result;
19720 PyObject * obj0 = 0 ;
19721 char *kwnames[] = {
19722 (char *) "self", NULL
19723 };
19724
19725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
19726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19727 {
19728 PyThreadState* __tstate = wxPyBeginAllowThreads();
19729 {
19730 wxListItem const &_result_ref = (arg1)->GetItem();
19731 result = (wxListItem *) &_result_ref;
19732 }
19733
19734 wxPyEndAllowThreads(__tstate);
19735 if (PyErr_Occurred()) SWIG_fail;
19736 }
19737 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0);
19738 return resultobj;
19739 fail:
19740 return NULL;
19741 }
19742
19743
19744 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
19745 PyObject *resultobj;
19746 wxListEvent *arg1 = (wxListEvent *) 0 ;
19747 long result;
19748 PyObject * obj0 = 0 ;
19749 char *kwnames[] = {
19750 (char *) "self", NULL
19751 };
19752
19753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
19754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19755 {
19756 PyThreadState* __tstate = wxPyBeginAllowThreads();
19757 result = (long)(arg1)->GetCacheFrom();
19758
19759 wxPyEndAllowThreads(__tstate);
19760 if (PyErr_Occurred()) SWIG_fail;
19761 }
19762 resultobj = SWIG_PyObj_FromLong((long)result);
19763 return resultobj;
19764 fail:
19765 return NULL;
19766 }
19767
19768
19769 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19770 PyObject *resultobj;
19771 wxListEvent *arg1 = (wxListEvent *) 0 ;
19772 long result;
19773 PyObject * obj0 = 0 ;
19774 char *kwnames[] = {
19775 (char *) "self", NULL
19776 };
19777
19778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
19779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19780 {
19781 PyThreadState* __tstate = wxPyBeginAllowThreads();
19782 result = (long)(arg1)->GetCacheTo();
19783
19784 wxPyEndAllowThreads(__tstate);
19785 if (PyErr_Occurred()) SWIG_fail;
19786 }
19787 resultobj = SWIG_PyObj_FromLong((long)result);
19788 return resultobj;
19789 fail:
19790 return NULL;
19791 }
19792
19793
19794 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
19795 PyObject *resultobj;
19796 wxListEvent *arg1 = (wxListEvent *) 0 ;
19797 bool result;
19798 PyObject * obj0 = 0 ;
19799 char *kwnames[] = {
19800 (char *) "self", NULL
19801 };
19802
19803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
19804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19805 {
19806 PyThreadState* __tstate = wxPyBeginAllowThreads();
19807 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
19808
19809 wxPyEndAllowThreads(__tstate);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 }
19812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19813 return resultobj;
19814 fail:
19815 return NULL;
19816 }
19817
19818
19819 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
19820 PyObject *resultobj;
19821 wxListEvent *arg1 = (wxListEvent *) 0 ;
19822 bool arg2 ;
19823 PyObject * obj0 = 0 ;
19824 PyObject * obj1 = 0 ;
19825 char *kwnames[] = {
19826 (char *) "self",(char *) "editCancelled", NULL
19827 };
19828
19829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
19830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19831 {
19832 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
19833 if (PyErr_Occurred()) SWIG_fail;
19834 }
19835 {
19836 PyThreadState* __tstate = wxPyBeginAllowThreads();
19837 (arg1)->SetEditCanceled(arg2);
19838
19839 wxPyEndAllowThreads(__tstate);
19840 if (PyErr_Occurred()) SWIG_fail;
19841 }
19842 Py_INCREF(Py_None); resultobj = Py_None;
19843 return resultobj;
19844 fail:
19845 return NULL;
19846 }
19847
19848
19849 static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
19850 PyObject *obj;
19851 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19852 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
19853 Py_INCREF(obj);
19854 return Py_BuildValue((char *)"");
19855 }
19856 static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
19857 PyObject *resultobj;
19858 wxWindow *arg1 = (wxWindow *) 0 ;
19859 int arg2 = (int) -1 ;
19860 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19861 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19862 wxSize const &arg4_defvalue = wxDefaultSize ;
19863 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19864 long arg5 = (long) wxLC_ICON ;
19865 wxValidator const &arg6_defvalue = wxDefaultValidator ;
19866 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
19867 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
19868 wxString *arg7 = (wxString *) &arg7_defvalue ;
19869 wxPyListCtrl *result;
19870 wxPoint temp3 ;
19871 wxSize temp4 ;
19872 bool temp7 = False ;
19873 PyObject * obj0 = 0 ;
19874 PyObject * obj1 = 0 ;
19875 PyObject * obj2 = 0 ;
19876 PyObject * obj3 = 0 ;
19877 PyObject * obj4 = 0 ;
19878 PyObject * obj5 = 0 ;
19879 PyObject * obj6 = 0 ;
19880 char *kwnames[] = {
19881 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19882 };
19883
19884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19886 if (obj1) {
19887 {
19888 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19889 if (PyErr_Occurred()) SWIG_fail;
19890 }
19891 }
19892 if (obj2) {
19893 {
19894 arg3 = &temp3;
19895 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19896 }
19897 }
19898 if (obj3) {
19899 {
19900 arg4 = &temp4;
19901 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19902 }
19903 }
19904 if (obj4) {
19905 {
19906 arg5 = (long) SWIG_PyObj_AsLong(obj4);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 }
19910 if (obj5) {
19911 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19912 if (arg6 == NULL) {
19913 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19914 }
19915 }
19916 if (obj6) {
19917 {
19918 arg7 = wxString_in_helper(obj6);
19919 if (arg7 == NULL) SWIG_fail;
19920 temp7 = True;
19921 }
19922 }
19923 {
19924 PyThreadState* __tstate = wxPyBeginAllowThreads();
19925 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
19926
19927 wxPyEndAllowThreads(__tstate);
19928 if (PyErr_Occurred()) SWIG_fail;
19929 }
19930 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1);
19931 {
19932 if (temp7)
19933 delete arg7;
19934 }
19935 return resultobj;
19936 fail:
19937 {
19938 if (temp7)
19939 delete arg7;
19940 }
19941 return NULL;
19942 }
19943
19944
19945 static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
19946 PyObject *resultobj;
19947 wxPyListCtrl *result;
19948 char *kwnames[] = {
19949 NULL
19950 };
19951
19952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 result = (wxPyListCtrl *)new wxPyListCtrl();
19956
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1);
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
19968 PyObject *resultobj;
19969 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
19970 wxWindow *arg2 = (wxWindow *) 0 ;
19971 int arg3 = (int) -1 ;
19972 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19973 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19974 wxSize const &arg5_defvalue = wxDefaultSize ;
19975 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19976 long arg6 = (long) wxLC_ICON ;
19977 wxValidator const &arg7_defvalue = wxDefaultValidator ;
19978 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
19979 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
19980 wxString *arg8 = (wxString *) &arg8_defvalue ;
19981 bool result;
19982 wxPoint temp4 ;
19983 wxSize temp5 ;
19984 bool temp8 = False ;
19985 PyObject * obj0 = 0 ;
19986 PyObject * obj1 = 0 ;
19987 PyObject * obj2 = 0 ;
19988 PyObject * obj3 = 0 ;
19989 PyObject * obj4 = 0 ;
19990 PyObject * obj5 = 0 ;
19991 PyObject * obj6 = 0 ;
19992 PyObject * obj7 = 0 ;
19993 char *kwnames[] = {
19994 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19995 };
19996
19997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
19998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19999 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20000 if (obj2) {
20001 {
20002 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20003 if (PyErr_Occurred()) SWIG_fail;
20004 }
20005 }
20006 if (obj3) {
20007 {
20008 arg4 = &temp4;
20009 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20010 }
20011 }
20012 if (obj4) {
20013 {
20014 arg5 = &temp5;
20015 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20016 }
20017 }
20018 if (obj5) {
20019 {
20020 arg6 = (long) SWIG_PyObj_AsLong(obj5);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 }
20024 if (obj6) {
20025 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20026 if (arg7 == NULL) {
20027 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20028 }
20029 }
20030 if (obj7) {
20031 {
20032 arg8 = wxString_in_helper(obj7);
20033 if (arg8 == NULL) SWIG_fail;
20034 temp8 = True;
20035 }
20036 }
20037 {
20038 PyThreadState* __tstate = wxPyBeginAllowThreads();
20039 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
20040
20041 wxPyEndAllowThreads(__tstate);
20042 if (PyErr_Occurred()) SWIG_fail;
20043 }
20044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20045 {
20046 if (temp8)
20047 delete arg8;
20048 }
20049 return resultobj;
20050 fail:
20051 {
20052 if (temp8)
20053 delete arg8;
20054 }
20055 return NULL;
20056 }
20057
20058
20059 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
20060 PyObject *resultobj;
20061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20062 PyObject *arg2 = (PyObject *) 0 ;
20063 PyObject *arg3 = (PyObject *) 0 ;
20064 PyObject * obj0 = 0 ;
20065 PyObject * obj1 = 0 ;
20066 PyObject * obj2 = 0 ;
20067 char *kwnames[] = {
20068 (char *) "self",(char *) "self",(char *) "_class", NULL
20069 };
20070
20071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20073 arg2 = obj1;
20074 arg3 = obj2;
20075 {
20076 PyThreadState* __tstate = wxPyBeginAllowThreads();
20077 (arg1)->_setCallbackInfo(arg2,arg3);
20078
20079 wxPyEndAllowThreads(__tstate);
20080 if (PyErr_Occurred()) SWIG_fail;
20081 }
20082 Py_INCREF(Py_None); resultobj = Py_None;
20083 return resultobj;
20084 fail:
20085 return NULL;
20086 }
20087
20088
20089 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20090 PyObject *resultobj;
20091 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20092 wxColour *arg2 = 0 ;
20093 bool result;
20094 wxColour temp2 ;
20095 PyObject * obj0 = 0 ;
20096 PyObject * obj1 = 0 ;
20097 char *kwnames[] = {
20098 (char *) "self",(char *) "col", NULL
20099 };
20100
20101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
20102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20103 {
20104 arg2 = &temp2;
20105 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20106 }
20107 {
20108 PyThreadState* __tstate = wxPyBeginAllowThreads();
20109 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
20110
20111 wxPyEndAllowThreads(__tstate);
20112 if (PyErr_Occurred()) SWIG_fail;
20113 }
20114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20115 return resultobj;
20116 fail:
20117 return NULL;
20118 }
20119
20120
20121 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
20122 PyObject *resultobj;
20123 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20124 wxColour *arg2 = 0 ;
20125 bool result;
20126 wxColour temp2 ;
20127 PyObject * obj0 = 0 ;
20128 PyObject * obj1 = 0 ;
20129 char *kwnames[] = {
20130 (char *) "self",(char *) "col", NULL
20131 };
20132
20133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20135 {
20136 arg2 = &temp2;
20137 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20138 }
20139 {
20140 PyThreadState* __tstate = wxPyBeginAllowThreads();
20141 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
20142
20143 wxPyEndAllowThreads(__tstate);
20144 if (PyErr_Occurred()) SWIG_fail;
20145 }
20146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20147 return resultobj;
20148 fail:
20149 return NULL;
20150 }
20151
20152
20153 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj;
20155 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20156 int arg2 ;
20157 wxListItem *result;
20158 PyObject * obj0 = 0 ;
20159 PyObject * obj1 = 0 ;
20160 char *kwnames[] = {
20161 (char *) "self",(char *) "col", NULL
20162 };
20163
20164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
20165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20166 {
20167 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 {
20171 PyThreadState* __tstate = wxPyBeginAllowThreads();
20172 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
20173
20174 wxPyEndAllowThreads(__tstate);
20175 if (PyErr_Occurred()) SWIG_fail;
20176 }
20177 {
20178 resultobj = wxPyMake_wxObject(result);
20179 }
20180 return resultobj;
20181 fail:
20182 return NULL;
20183 }
20184
20185
20186 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20187 PyObject *resultobj;
20188 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20189 int arg2 ;
20190 wxListItem *arg3 = 0 ;
20191 bool result;
20192 PyObject * obj0 = 0 ;
20193 PyObject * obj1 = 0 ;
20194 PyObject * obj2 = 0 ;
20195 char *kwnames[] = {
20196 (char *) "self",(char *) "col",(char *) "item", NULL
20197 };
20198
20199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
20200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20201 {
20202 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20203 if (PyErr_Occurred()) SWIG_fail;
20204 }
20205 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20206 if (arg3 == NULL) {
20207 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20208 }
20209 {
20210 PyThreadState* __tstate = wxPyBeginAllowThreads();
20211 result = (bool)(arg1)->SetColumn(arg2,*arg3);
20212
20213 wxPyEndAllowThreads(__tstate);
20214 if (PyErr_Occurred()) SWIG_fail;
20215 }
20216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20217 return resultobj;
20218 fail:
20219 return NULL;
20220 }
20221
20222
20223 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20224 PyObject *resultobj;
20225 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20226 int arg2 ;
20227 int result;
20228 PyObject * obj0 = 0 ;
20229 PyObject * obj1 = 0 ;
20230 char *kwnames[] = {
20231 (char *) "self",(char *) "col", NULL
20232 };
20233
20234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
20235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20236 {
20237 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20238 if (PyErr_Occurred()) SWIG_fail;
20239 }
20240 {
20241 PyThreadState* __tstate = wxPyBeginAllowThreads();
20242 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
20243
20244 wxPyEndAllowThreads(__tstate);
20245 if (PyErr_Occurred()) SWIG_fail;
20246 }
20247 resultobj = SWIG_PyObj_FromInt((int)result);
20248 return resultobj;
20249 fail:
20250 return NULL;
20251 }
20252
20253
20254 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
20255 PyObject *resultobj;
20256 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20257 int arg2 ;
20258 int arg3 ;
20259 bool result;
20260 PyObject * obj0 = 0 ;
20261 PyObject * obj1 = 0 ;
20262 PyObject * obj2 = 0 ;
20263 char *kwnames[] = {
20264 (char *) "self",(char *) "col",(char *) "width", NULL
20265 };
20266
20267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20269 {
20270 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20271 if (PyErr_Occurred()) SWIG_fail;
20272 }
20273 {
20274 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20275 if (PyErr_Occurred()) SWIG_fail;
20276 }
20277 {
20278 PyThreadState* __tstate = wxPyBeginAllowThreads();
20279 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
20280
20281 wxPyEndAllowThreads(__tstate);
20282 if (PyErr_Occurred()) SWIG_fail;
20283 }
20284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20285 return resultobj;
20286 fail:
20287 return NULL;
20288 }
20289
20290
20291 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
20292 PyObject *resultobj;
20293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20294 int result;
20295 PyObject * obj0 = 0 ;
20296 char *kwnames[] = {
20297 (char *) "self", NULL
20298 };
20299
20300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
20301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
20305
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 resultobj = SWIG_PyObj_FromInt((int)result);
20310 return resultobj;
20311 fail:
20312 return NULL;
20313 }
20314
20315
20316 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20317 PyObject *resultobj;
20318 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20319 wxRect result;
20320 PyObject * obj0 = 0 ;
20321 char *kwnames[] = {
20322 (char *) "self", NULL
20323 };
20324
20325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
20326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20327 {
20328 PyThreadState* __tstate = wxPyBeginAllowThreads();
20329 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
20330
20331 wxPyEndAllowThreads(__tstate);
20332 if (PyErr_Occurred()) SWIG_fail;
20333 }
20334 {
20335 wxRect * resultptr;
20336 resultptr = new wxRect((wxRect &) result);
20337 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
20338 }
20339 return resultobj;
20340 fail:
20341 return NULL;
20342 }
20343
20344
20345 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
20346 PyObject *resultobj;
20347 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20348 wxTextCtrl *result;
20349 PyObject * obj0 = 0 ;
20350 char *kwnames[] = {
20351 (char *) "self", NULL
20352 };
20353
20354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
20355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20356 {
20357 PyThreadState* __tstate = wxPyBeginAllowThreads();
20358 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
20359
20360 wxPyEndAllowThreads(__tstate);
20361 if (PyErr_Occurred()) SWIG_fail;
20362 }
20363 {
20364 resultobj = wxPyMake_wxObject(result);
20365 }
20366 return resultobj;
20367 fail:
20368 return NULL;
20369 }
20370
20371
20372 static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20373 PyObject *resultobj;
20374 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20375 long arg2 ;
20376 int arg3 = (int) 0 ;
20377 wxListItem *result;
20378 PyObject * obj0 = 0 ;
20379 PyObject * obj1 = 0 ;
20380 PyObject * obj2 = 0 ;
20381 char *kwnames[] = {
20382 (char *) "self",(char *) "itemId",(char *) "col", NULL
20383 };
20384
20385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
20386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20387 {
20388 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20389 if (PyErr_Occurred()) SWIG_fail;
20390 }
20391 if (obj2) {
20392 {
20393 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20394 if (PyErr_Occurred()) SWIG_fail;
20395 }
20396 }
20397 {
20398 PyThreadState* __tstate = wxPyBeginAllowThreads();
20399 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
20400
20401 wxPyEndAllowThreads(__tstate);
20402 if (PyErr_Occurred()) SWIG_fail;
20403 }
20404 {
20405 resultobj = wxPyMake_wxObject(result);
20406 }
20407 return resultobj;
20408 fail:
20409 return NULL;
20410 }
20411
20412
20413 static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20414 PyObject *resultobj;
20415 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20416 wxListItem *arg2 = 0 ;
20417 bool result;
20418 PyObject * obj0 = 0 ;
20419 PyObject * obj1 = 0 ;
20420 char *kwnames[] = {
20421 (char *) "self",(char *) "info", NULL
20422 };
20423
20424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
20425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20426 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20427 if (arg2 == NULL) {
20428 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20429 }
20430 {
20431 PyThreadState* __tstate = wxPyBeginAllowThreads();
20432 result = (bool)(arg1)->SetItem(*arg2);
20433
20434 wxPyEndAllowThreads(__tstate);
20435 if (PyErr_Occurred()) SWIG_fail;
20436 }
20437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20438 return resultobj;
20439 fail:
20440 return NULL;
20441 }
20442
20443
20444 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20445 PyObject *resultobj;
20446 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20447 long arg2 ;
20448 int arg3 ;
20449 wxString *arg4 = 0 ;
20450 int arg5 = (int) -1 ;
20451 long result;
20452 bool temp4 = False ;
20453 PyObject * obj0 = 0 ;
20454 PyObject * obj1 = 0 ;
20455 PyObject * obj2 = 0 ;
20456 PyObject * obj3 = 0 ;
20457 PyObject * obj4 = 0 ;
20458 char *kwnames[] = {
20459 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
20460 };
20461
20462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20464 {
20465 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20466 if (PyErr_Occurred()) SWIG_fail;
20467 }
20468 {
20469 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20470 if (PyErr_Occurred()) SWIG_fail;
20471 }
20472 {
20473 arg4 = wxString_in_helper(obj3);
20474 if (arg4 == NULL) SWIG_fail;
20475 temp4 = True;
20476 }
20477 if (obj4) {
20478 {
20479 arg5 = (int) SWIG_PyObj_AsInt(obj4);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 }
20483 {
20484 PyThreadState* __tstate = wxPyBeginAllowThreads();
20485 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
20486
20487 wxPyEndAllowThreads(__tstate);
20488 if (PyErr_Occurred()) SWIG_fail;
20489 }
20490 resultobj = SWIG_PyObj_FromLong((long)result);
20491 {
20492 if (temp4)
20493 delete arg4;
20494 }
20495 return resultobj;
20496 fail:
20497 {
20498 if (temp4)
20499 delete arg4;
20500 }
20501 return NULL;
20502 }
20503
20504
20505 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20506 PyObject *resultobj;
20507 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20508 long arg2 ;
20509 long arg3 ;
20510 int result;
20511 PyObject * obj0 = 0 ;
20512 PyObject * obj1 = 0 ;
20513 PyObject * obj2 = 0 ;
20514 char *kwnames[] = {
20515 (char *) "self",(char *) "item",(char *) "stateMask", NULL
20516 };
20517
20518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
20519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20520 {
20521 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 }
20524 {
20525 arg3 = (long) SWIG_PyObj_AsLong(obj2);
20526 if (PyErr_Occurred()) SWIG_fail;
20527 }
20528 {
20529 PyThreadState* __tstate = wxPyBeginAllowThreads();
20530 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
20531
20532 wxPyEndAllowThreads(__tstate);
20533 if (PyErr_Occurred()) SWIG_fail;
20534 }
20535 resultobj = SWIG_PyObj_FromInt((int)result);
20536 return resultobj;
20537 fail:
20538 return NULL;
20539 }
20540
20541
20542 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
20543 PyObject *resultobj;
20544 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20545 long arg2 ;
20546 long arg3 ;
20547 long arg4 ;
20548 bool result;
20549 PyObject * obj0 = 0 ;
20550 PyObject * obj1 = 0 ;
20551 PyObject * obj2 = 0 ;
20552 PyObject * obj3 = 0 ;
20553 char *kwnames[] = {
20554 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
20555 };
20556
20557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20559 {
20560 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20561 if (PyErr_Occurred()) SWIG_fail;
20562 }
20563 {
20564 arg3 = (long) SWIG_PyObj_AsLong(obj2);
20565 if (PyErr_Occurred()) SWIG_fail;
20566 }
20567 {
20568 arg4 = (long) SWIG_PyObj_AsLong(obj3);
20569 if (PyErr_Occurred()) SWIG_fail;
20570 }
20571 {
20572 PyThreadState* __tstate = wxPyBeginAllowThreads();
20573 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
20574
20575 wxPyEndAllowThreads(__tstate);
20576 if (PyErr_Occurred()) SWIG_fail;
20577 }
20578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20579 return resultobj;
20580 fail:
20581 return NULL;
20582 }
20583
20584
20585 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20586 PyObject *resultobj;
20587 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20588 long arg2 ;
20589 int arg3 ;
20590 int arg4 ;
20591 bool result;
20592 PyObject * obj0 = 0 ;
20593 PyObject * obj1 = 0 ;
20594 PyObject * obj2 = 0 ;
20595 PyObject * obj3 = 0 ;
20596 char *kwnames[] = {
20597 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
20598 };
20599
20600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20602 {
20603 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
20606 {
20607 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 {
20611 arg4 = (int) SWIG_PyObj_AsInt(obj3);
20612 if (PyErr_Occurred()) SWIG_fail;
20613 }
20614 {
20615 PyThreadState* __tstate = wxPyBeginAllowThreads();
20616 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
20617
20618 wxPyEndAllowThreads(__tstate);
20619 if (PyErr_Occurred()) SWIG_fail;
20620 }
20621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20622 return resultobj;
20623 fail:
20624 return NULL;
20625 }
20626
20627
20628 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
20629 PyObject *resultobj;
20630 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20631 long arg2 ;
20632 wxString result;
20633 PyObject * obj0 = 0 ;
20634 PyObject * obj1 = 0 ;
20635 char *kwnames[] = {
20636 (char *) "self",(char *) "item", NULL
20637 };
20638
20639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
20640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20641 {
20642 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20643 if (PyErr_Occurred()) SWIG_fail;
20644 }
20645 {
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
20648
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 {
20653 #if wxUSE_UNICODE
20654 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20655 #else
20656 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20657 #endif
20658 }
20659 return resultobj;
20660 fail:
20661 return NULL;
20662 }
20663
20664
20665 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
20666 PyObject *resultobj;
20667 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20668 long arg2 ;
20669 wxString *arg3 = 0 ;
20670 bool temp3 = False ;
20671 PyObject * obj0 = 0 ;
20672 PyObject * obj1 = 0 ;
20673 PyObject * obj2 = 0 ;
20674 char *kwnames[] = {
20675 (char *) "self",(char *) "item",(char *) "str", NULL
20676 };
20677
20678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
20679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20680 {
20681 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20682 if (PyErr_Occurred()) SWIG_fail;
20683 }
20684 {
20685 arg3 = wxString_in_helper(obj2);
20686 if (arg3 == NULL) SWIG_fail;
20687 temp3 = True;
20688 }
20689 {
20690 PyThreadState* __tstate = wxPyBeginAllowThreads();
20691 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
20692
20693 wxPyEndAllowThreads(__tstate);
20694 if (PyErr_Occurred()) SWIG_fail;
20695 }
20696 Py_INCREF(Py_None); resultobj = Py_None;
20697 {
20698 if (temp3)
20699 delete arg3;
20700 }
20701 return resultobj;
20702 fail:
20703 {
20704 if (temp3)
20705 delete arg3;
20706 }
20707 return NULL;
20708 }
20709
20710
20711 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
20712 PyObject *resultobj;
20713 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20714 long arg2 ;
20715 long result;
20716 PyObject * obj0 = 0 ;
20717 PyObject * obj1 = 0 ;
20718 char *kwnames[] = {
20719 (char *) "self",(char *) "item", NULL
20720 };
20721
20722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
20723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20724 {
20725 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20726 if (PyErr_Occurred()) SWIG_fail;
20727 }
20728 {
20729 PyThreadState* __tstate = wxPyBeginAllowThreads();
20730 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
20731
20732 wxPyEndAllowThreads(__tstate);
20733 if (PyErr_Occurred()) SWIG_fail;
20734 }
20735 resultobj = SWIG_PyObj_FromLong((long)result);
20736 return resultobj;
20737 fail:
20738 return NULL;
20739 }
20740
20741
20742 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
20743 PyObject *resultobj;
20744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20745 long arg2 ;
20746 long arg3 ;
20747 bool result;
20748 PyObject * obj0 = 0 ;
20749 PyObject * obj1 = 0 ;
20750 PyObject * obj2 = 0 ;
20751 char *kwnames[] = {
20752 (char *) "self",(char *) "item",(char *) "data", NULL
20753 };
20754
20755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
20756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20757 {
20758 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20759 if (PyErr_Occurred()) SWIG_fail;
20760 }
20761 {
20762 arg3 = (long) SWIG_PyObj_AsLong(obj2);
20763 if (PyErr_Occurred()) SWIG_fail;
20764 }
20765 {
20766 PyThreadState* __tstate = wxPyBeginAllowThreads();
20767 result = (bool)(arg1)->SetItemData(arg2,arg3);
20768
20769 wxPyEndAllowThreads(__tstate);
20770 if (PyErr_Occurred()) SWIG_fail;
20771 }
20772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20773 return resultobj;
20774 fail:
20775 return NULL;
20776 }
20777
20778
20779 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
20780 PyObject *resultobj;
20781 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20782 long arg2 ;
20783 wxPoint result;
20784 PyObject * obj0 = 0 ;
20785 PyObject * obj1 = 0 ;
20786 char *kwnames[] = {
20787 (char *) "self",(char *) "item", NULL
20788 };
20789
20790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
20791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20792 {
20793 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20794 if (PyErr_Occurred()) SWIG_fail;
20795 }
20796 {
20797 PyThreadState* __tstate = wxPyBeginAllowThreads();
20798 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
20799
20800 wxPyEndAllowThreads(__tstate);
20801 if (PyErr_Occurred()) SWIG_fail;
20802 }
20803 {
20804 wxPoint * resultptr;
20805 resultptr = new wxPoint((wxPoint &) result);
20806 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
20807 }
20808 return resultobj;
20809 fail:
20810 return NULL;
20811 }
20812
20813
20814 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
20815 PyObject *resultobj;
20816 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20817 long arg2 ;
20818 int arg3 = (int) wxLIST_RECT_BOUNDS ;
20819 wxRect result;
20820 PyObject * obj0 = 0 ;
20821 PyObject * obj1 = 0 ;
20822 PyObject * obj2 = 0 ;
20823 char *kwnames[] = {
20824 (char *) "self",(char *) "item",(char *) "code", NULL
20825 };
20826
20827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
20828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20829 {
20830 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20831 if (PyErr_Occurred()) SWIG_fail;
20832 }
20833 if (obj2) {
20834 {
20835 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20836 if (PyErr_Occurred()) SWIG_fail;
20837 }
20838 }
20839 {
20840 PyThreadState* __tstate = wxPyBeginAllowThreads();
20841 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
20842
20843 wxPyEndAllowThreads(__tstate);
20844 if (PyErr_Occurred()) SWIG_fail;
20845 }
20846 {
20847 wxRect * resultptr;
20848 resultptr = new wxRect((wxRect &) result);
20849 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
20850 }
20851 return resultobj;
20852 fail:
20853 return NULL;
20854 }
20855
20856
20857 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
20858 PyObject *resultobj;
20859 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20860 long arg2 ;
20861 wxPoint *arg3 = 0 ;
20862 bool result;
20863 wxPoint temp3 ;
20864 PyObject * obj0 = 0 ;
20865 PyObject * obj1 = 0 ;
20866 PyObject * obj2 = 0 ;
20867 char *kwnames[] = {
20868 (char *) "self",(char *) "item",(char *) "pos", NULL
20869 };
20870
20871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
20872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20873 {
20874 arg2 = (long) SWIG_PyObj_AsLong(obj1);
20875 if (PyErr_Occurred()) SWIG_fail;
20876 }
20877 {
20878 arg3 = &temp3;
20879 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20880 }
20881 {
20882 PyThreadState* __tstate = wxPyBeginAllowThreads();
20883 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
20884
20885 wxPyEndAllowThreads(__tstate);
20886 if (PyErr_Occurred()) SWIG_fail;
20887 }
20888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20889 return resultobj;
20890 fail:
20891 return NULL;
20892 }
20893
20894
20895 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
20896 PyObject *resultobj;
20897 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20898 int result;
20899 PyObject * obj0 = 0 ;
20900 char *kwnames[] = {
20901 (char *) "self", NULL
20902 };
20903
20904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
20905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20906 {
20907 PyThreadState* __tstate = wxPyBeginAllowThreads();
20908 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
20909
20910 wxPyEndAllowThreads(__tstate);
20911 if (PyErr_Occurred()) SWIG_fail;
20912 }
20913 resultobj = SWIG_PyObj_FromInt((int)result);
20914 return resultobj;
20915 fail:
20916 return NULL;
20917 }
20918
20919
20920 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
20921 PyObject *resultobj;
20922 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20923 int result;
20924 PyObject * obj0 = 0 ;
20925 char *kwnames[] = {
20926 (char *) "self", NULL
20927 };
20928
20929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
20930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20931 {
20932 PyThreadState* __tstate = wxPyBeginAllowThreads();
20933 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
20934
20935 wxPyEndAllowThreads(__tstate);
20936 if (PyErr_Occurred()) SWIG_fail;
20937 }
20938 resultobj = SWIG_PyObj_FromInt((int)result);
20939 return resultobj;
20940 fail:
20941 return NULL;
20942 }
20943
20944
20945 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
20946 PyObject *resultobj;
20947 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20948 wxSize result;
20949 PyObject * obj0 = 0 ;
20950 char *kwnames[] = {
20951 (char *) "self", NULL
20952 };
20953
20954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
20955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20956 {
20957 PyThreadState* __tstate = wxPyBeginAllowThreads();
20958 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
20959
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 {
20964 wxSize * resultptr;
20965 resultptr = new wxSize((wxSize &) result);
20966 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
20967 }
20968 return resultobj;
20969 fail:
20970 return NULL;
20971 }
20972
20973
20974 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
20975 PyObject *resultobj;
20976 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20977 int result;
20978 PyObject * obj0 = 0 ;
20979 char *kwnames[] = {
20980 (char *) "self", NULL
20981 };
20982
20983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
20984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20985 {
20986 PyThreadState* __tstate = wxPyBeginAllowThreads();
20987 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
20988
20989 wxPyEndAllowThreads(__tstate);
20990 if (PyErr_Occurred()) SWIG_fail;
20991 }
20992 resultobj = SWIG_PyObj_FromInt((int)result);
20993 return resultobj;
20994 fail:
20995 return NULL;
20996 }
20997
20998
20999 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21000 PyObject *resultobj;
21001 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21002 wxColour result;
21003 PyObject * obj0 = 0 ;
21004 char *kwnames[] = {
21005 (char *) "self", NULL
21006 };
21007
21008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
21009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21010 {
21011 PyThreadState* __tstate = wxPyBeginAllowThreads();
21012 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
21013
21014 wxPyEndAllowThreads(__tstate);
21015 if (PyErr_Occurred()) SWIG_fail;
21016 }
21017 {
21018 wxColour * resultptr;
21019 resultptr = new wxColour((wxColour &) result);
21020 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
21021 }
21022 return resultobj;
21023 fail:
21024 return NULL;
21025 }
21026
21027
21028 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21029 PyObject *resultobj;
21030 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21031 wxColour *arg2 = 0 ;
21032 wxColour temp2 ;
21033 PyObject * obj0 = 0 ;
21034 PyObject * obj1 = 0 ;
21035 char *kwnames[] = {
21036 (char *) "self",(char *) "col", NULL
21037 };
21038
21039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
21040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21041 {
21042 arg2 = &temp2;
21043 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21044 }
21045 {
21046 PyThreadState* __tstate = wxPyBeginAllowThreads();
21047 (arg1)->SetTextColour((wxColour const &)*arg2);
21048
21049 wxPyEndAllowThreads(__tstate);
21050 if (PyErr_Occurred()) SWIG_fail;
21051 }
21052 Py_INCREF(Py_None); resultobj = Py_None;
21053 return resultobj;
21054 fail:
21055 return NULL;
21056 }
21057
21058
21059 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21060 PyObject *resultobj;
21061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21062 long result;
21063 PyObject * obj0 = 0 ;
21064 char *kwnames[] = {
21065 (char *) "self", NULL
21066 };
21067
21068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
21069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21070 {
21071 PyThreadState* __tstate = wxPyBeginAllowThreads();
21072 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
21073
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 resultobj = SWIG_PyObj_FromLong((long)result);
21078 return resultobj;
21079 fail:
21080 return NULL;
21081 }
21082
21083
21084 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj;
21086 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21087 long arg2 ;
21088 bool arg3 = (bool) True ;
21089 PyObject * obj0 = 0 ;
21090 PyObject * obj1 = 0 ;
21091 PyObject * obj2 = 0 ;
21092 char *kwnames[] = {
21093 (char *) "self",(char *) "style",(char *) "add", NULL
21094 };
21095
21096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
21097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21098 {
21099 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21100 if (PyErr_Occurred()) SWIG_fail;
21101 }
21102 if (obj2) {
21103 {
21104 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
21105 if (PyErr_Occurred()) SWIG_fail;
21106 }
21107 }
21108 {
21109 PyThreadState* __tstate = wxPyBeginAllowThreads();
21110 (arg1)->SetSingleStyle(arg2,arg3);
21111
21112 wxPyEndAllowThreads(__tstate);
21113 if (PyErr_Occurred()) SWIG_fail;
21114 }
21115 Py_INCREF(Py_None); resultobj = Py_None;
21116 return resultobj;
21117 fail:
21118 return NULL;
21119 }
21120
21121
21122 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
21123 PyObject *resultobj;
21124 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21125 long arg2 ;
21126 PyObject * obj0 = 0 ;
21127 PyObject * obj1 = 0 ;
21128 char *kwnames[] = {
21129 (char *) "self",(char *) "style", NULL
21130 };
21131
21132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
21133 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21134 {
21135 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 {
21139 PyThreadState* __tstate = wxPyBeginAllowThreads();
21140 (arg1)->SetWindowStyleFlag(arg2);
21141
21142 wxPyEndAllowThreads(__tstate);
21143 if (PyErr_Occurred()) SWIG_fail;
21144 }
21145 Py_INCREF(Py_None); resultobj = Py_None;
21146 return resultobj;
21147 fail:
21148 return NULL;
21149 }
21150
21151
21152 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21153 PyObject *resultobj;
21154 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21155 long arg2 ;
21156 int arg3 = (int) wxLIST_NEXT_ALL ;
21157 int arg4 = (int) wxLIST_STATE_DONTCARE ;
21158 long result;
21159 PyObject * obj0 = 0 ;
21160 PyObject * obj1 = 0 ;
21161 PyObject * obj2 = 0 ;
21162 PyObject * obj3 = 0 ;
21163 char *kwnames[] = {
21164 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
21165 };
21166
21167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21169 {
21170 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21171 if (PyErr_Occurred()) SWIG_fail;
21172 }
21173 if (obj2) {
21174 {
21175 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 }
21179 if (obj3) {
21180 {
21181 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21182 if (PyErr_Occurred()) SWIG_fail;
21183 }
21184 }
21185 {
21186 PyThreadState* __tstate = wxPyBeginAllowThreads();
21187 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
21188
21189 wxPyEndAllowThreads(__tstate);
21190 if (PyErr_Occurred()) SWIG_fail;
21191 }
21192 resultobj = SWIG_PyObj_FromLong((long)result);
21193 return resultobj;
21194 fail:
21195 return NULL;
21196 }
21197
21198
21199 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21200 PyObject *resultobj;
21201 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21202 int arg2 ;
21203 wxImageList *result;
21204 PyObject * obj0 = 0 ;
21205 PyObject * obj1 = 0 ;
21206 char *kwnames[] = {
21207 (char *) "self",(char *) "which", NULL
21208 };
21209
21210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
21211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21212 {
21213 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21214 if (PyErr_Occurred()) SWIG_fail;
21215 }
21216 {
21217 PyThreadState* __tstate = wxPyBeginAllowThreads();
21218 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
21219
21220 wxPyEndAllowThreads(__tstate);
21221 if (PyErr_Occurred()) SWIG_fail;
21222 }
21223 {
21224 resultobj = wxPyMake_wxObject(result);
21225 }
21226 return resultobj;
21227 fail:
21228 return NULL;
21229 }
21230
21231
21232 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21233 PyObject *resultobj;
21234 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21235 wxImageList *arg2 = (wxImageList *) 0 ;
21236 int arg3 ;
21237 PyObject * obj0 = 0 ;
21238 PyObject * obj1 = 0 ;
21239 PyObject * obj2 = 0 ;
21240 char *kwnames[] = {
21241 (char *) "self",(char *) "imageList",(char *) "which", NULL
21242 };
21243
21244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21246 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21247 {
21248 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 {
21252 PyThreadState* __tstate = wxPyBeginAllowThreads();
21253 (arg1)->SetImageList(arg2,arg3);
21254
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 Py_INCREF(Py_None); resultobj = Py_None;
21259 return resultobj;
21260 fail:
21261 return NULL;
21262 }
21263
21264
21265 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21266 PyObject *resultobj;
21267 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21268 wxImageList *arg2 = (wxImageList *) 0 ;
21269 int arg3 ;
21270 PyObject * obj0 = 0 ;
21271 PyObject * obj1 = 0 ;
21272 PyObject * obj2 = 0 ;
21273 char *kwnames[] = {
21274 (char *) "self",(char *) "imageList",(char *) "which", NULL
21275 };
21276
21277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
21278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21279 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
21280 {
21281 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21282 if (PyErr_Occurred()) SWIG_fail;
21283 }
21284 {
21285 PyThreadState* __tstate = wxPyBeginAllowThreads();
21286 (arg1)->AssignImageList(arg2,arg3);
21287
21288 wxPyEndAllowThreads(__tstate);
21289 if (PyErr_Occurred()) SWIG_fail;
21290 }
21291 Py_INCREF(Py_None); resultobj = Py_None;
21292 return resultobj;
21293 fail:
21294 return NULL;
21295 }
21296
21297
21298 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
21299 PyObject *resultobj;
21300 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21301 bool result;
21302 PyObject * obj0 = 0 ;
21303 char *kwnames[] = {
21304 (char *) "self", NULL
21305 };
21306
21307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
21308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21309 {
21310 PyThreadState* __tstate = wxPyBeginAllowThreads();
21311 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
21312
21313 wxPyEndAllowThreads(__tstate);
21314 if (PyErr_Occurred()) SWIG_fail;
21315 }
21316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21317 return resultobj;
21318 fail:
21319 return NULL;
21320 }
21321
21322
21323 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21324 PyObject *resultobj;
21325 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21326 long arg2 ;
21327 PyObject * obj0 = 0 ;
21328 PyObject * obj1 = 0 ;
21329 char *kwnames[] = {
21330 (char *) "self",(char *) "item", NULL
21331 };
21332
21333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
21334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21335 {
21336 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21337 if (PyErr_Occurred()) SWIG_fail;
21338 }
21339 {
21340 PyThreadState* __tstate = wxPyBeginAllowThreads();
21341 (arg1)->RefreshItem(arg2);
21342
21343 wxPyEndAllowThreads(__tstate);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 }
21346 Py_INCREF(Py_None); resultobj = Py_None;
21347 return resultobj;
21348 fail:
21349 return NULL;
21350 }
21351
21352
21353 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21354 PyObject *resultobj;
21355 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21356 long arg2 ;
21357 long arg3 ;
21358 PyObject * obj0 = 0 ;
21359 PyObject * obj1 = 0 ;
21360 PyObject * obj2 = 0 ;
21361 char *kwnames[] = {
21362 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
21363 };
21364
21365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
21366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21367 {
21368 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21369 if (PyErr_Occurred()) SWIG_fail;
21370 }
21371 {
21372 arg3 = (long) SWIG_PyObj_AsLong(obj2);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 }
21375 {
21376 PyThreadState* __tstate = wxPyBeginAllowThreads();
21377 (arg1)->RefreshItems(arg2,arg3);
21378
21379 wxPyEndAllowThreads(__tstate);
21380 if (PyErr_Occurred()) SWIG_fail;
21381 }
21382 Py_INCREF(Py_None); resultobj = Py_None;
21383 return resultobj;
21384 fail:
21385 return NULL;
21386 }
21387
21388
21389 static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
21390 PyObject *resultobj;
21391 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21392 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
21393 bool result;
21394 PyObject * obj0 = 0 ;
21395 PyObject * obj1 = 0 ;
21396 char *kwnames[] = {
21397 (char *) "self",(char *) "flag", NULL
21398 };
21399
21400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
21401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21402 if (obj1) {
21403 {
21404 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21405 if (PyErr_Occurred()) SWIG_fail;
21406 }
21407 }
21408 {
21409 PyThreadState* __tstate = wxPyBeginAllowThreads();
21410 result = (bool)(arg1)->Arrange(arg2);
21411
21412 wxPyEndAllowThreads(__tstate);
21413 if (PyErr_Occurred()) SWIG_fail;
21414 }
21415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21416 return resultobj;
21417 fail:
21418 return NULL;
21419 }
21420
21421
21422 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21423 PyObject *resultobj;
21424 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21425 long arg2 ;
21426 bool result;
21427 PyObject * obj0 = 0 ;
21428 PyObject * obj1 = 0 ;
21429 char *kwnames[] = {
21430 (char *) "self",(char *) "item", NULL
21431 };
21432
21433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
21434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21435 {
21436 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21437 if (PyErr_Occurred()) SWIG_fail;
21438 }
21439 {
21440 PyThreadState* __tstate = wxPyBeginAllowThreads();
21441 result = (bool)(arg1)->DeleteItem(arg2);
21442
21443 wxPyEndAllowThreads(__tstate);
21444 if (PyErr_Occurred()) SWIG_fail;
21445 }
21446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21447 return resultobj;
21448 fail:
21449 return NULL;
21450 }
21451
21452
21453 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
21454 PyObject *resultobj;
21455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21456 bool result;
21457 PyObject * obj0 = 0 ;
21458 char *kwnames[] = {
21459 (char *) "self", NULL
21460 };
21461
21462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
21463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 result = (bool)(arg1)->DeleteAllItems();
21467
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21472 return resultobj;
21473 fail:
21474 return NULL;
21475 }
21476
21477
21478 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21479 PyObject *resultobj;
21480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21481 int arg2 ;
21482 bool result;
21483 PyObject * obj0 = 0 ;
21484 PyObject * obj1 = 0 ;
21485 char *kwnames[] = {
21486 (char *) "self",(char *) "col", NULL
21487 };
21488
21489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
21490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21491 {
21492 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21493 if (PyErr_Occurred()) SWIG_fail;
21494 }
21495 {
21496 PyThreadState* __tstate = wxPyBeginAllowThreads();
21497 result = (bool)(arg1)->DeleteColumn(arg2);
21498
21499 wxPyEndAllowThreads(__tstate);
21500 if (PyErr_Occurred()) SWIG_fail;
21501 }
21502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21503 return resultobj;
21504 fail:
21505 return NULL;
21506 }
21507
21508
21509 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
21510 PyObject *resultobj;
21511 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21512 bool result;
21513 PyObject * obj0 = 0 ;
21514 char *kwnames[] = {
21515 (char *) "self", NULL
21516 };
21517
21518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
21519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21520 {
21521 PyThreadState* __tstate = wxPyBeginAllowThreads();
21522 result = (bool)(arg1)->DeleteAllColumns();
21523
21524 wxPyEndAllowThreads(__tstate);
21525 if (PyErr_Occurred()) SWIG_fail;
21526 }
21527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21528 return resultobj;
21529 fail:
21530 return NULL;
21531 }
21532
21533
21534 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21535 PyObject *resultobj;
21536 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21537 PyObject * obj0 = 0 ;
21538 char *kwnames[] = {
21539 (char *) "self", NULL
21540 };
21541
21542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
21543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 (arg1)->ClearAll();
21547
21548 wxPyEndAllowThreads(__tstate);
21549 if (PyErr_Occurred()) SWIG_fail;
21550 }
21551 Py_INCREF(Py_None); resultobj = Py_None;
21552 return resultobj;
21553 fail:
21554 return NULL;
21555 }
21556
21557
21558 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21559 PyObject *resultobj;
21560 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21561 long arg2 ;
21562 wxTextCtrl *result;
21563 PyObject * obj0 = 0 ;
21564 PyObject * obj1 = 0 ;
21565 char *kwnames[] = {
21566 (char *) "self",(char *) "item", NULL
21567 };
21568
21569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
21570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21571 {
21572 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21573 if (PyErr_Occurred()) SWIG_fail;
21574 }
21575 {
21576 PyThreadState* __tstate = wxPyBeginAllowThreads();
21577 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
21578
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 {
21583 resultobj = wxPyMake_wxObject(result);
21584 }
21585 return resultobj;
21586 fail:
21587 return NULL;
21588 }
21589
21590
21591 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21592 PyObject *resultobj;
21593 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21594 bool arg2 ;
21595 bool result;
21596 PyObject * obj0 = 0 ;
21597 PyObject * obj1 = 0 ;
21598 char *kwnames[] = {
21599 (char *) "self",(char *) "cancel", NULL
21600 };
21601
21602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
21603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21604 {
21605 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 {
21609 PyThreadState* __tstate = wxPyBeginAllowThreads();
21610 result = (bool)(arg1)->EndEditLabel(arg2);
21611
21612 wxPyEndAllowThreads(__tstate);
21613 if (PyErr_Occurred()) SWIG_fail;
21614 }
21615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21616 return resultobj;
21617 fail:
21618 return NULL;
21619 }
21620
21621
21622 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
21623 PyObject *resultobj;
21624 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21625 long arg2 ;
21626 bool result;
21627 PyObject * obj0 = 0 ;
21628 PyObject * obj1 = 0 ;
21629 char *kwnames[] = {
21630 (char *) "self",(char *) "item", NULL
21631 };
21632
21633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
21634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21635 {
21636 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21637 if (PyErr_Occurred()) SWIG_fail;
21638 }
21639 {
21640 PyThreadState* __tstate = wxPyBeginAllowThreads();
21641 result = (bool)(arg1)->EnsureVisible(arg2);
21642
21643 wxPyEndAllowThreads(__tstate);
21644 if (PyErr_Occurred()) SWIG_fail;
21645 }
21646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21647 return resultobj;
21648 fail:
21649 return NULL;
21650 }
21651
21652
21653 static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21654 PyObject *resultobj;
21655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21656 long arg2 ;
21657 wxString *arg3 = 0 ;
21658 bool arg4 = (bool) False ;
21659 long result;
21660 bool temp3 = False ;
21661 PyObject * obj0 = 0 ;
21662 PyObject * obj1 = 0 ;
21663 PyObject * obj2 = 0 ;
21664 PyObject * obj3 = 0 ;
21665 char *kwnames[] = {
21666 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
21667 };
21668
21669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21671 {
21672 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21673 if (PyErr_Occurred()) SWIG_fail;
21674 }
21675 {
21676 arg3 = wxString_in_helper(obj2);
21677 if (arg3 == NULL) SWIG_fail;
21678 temp3 = True;
21679 }
21680 if (obj3) {
21681 {
21682 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
21683 if (PyErr_Occurred()) SWIG_fail;
21684 }
21685 }
21686 {
21687 PyThreadState* __tstate = wxPyBeginAllowThreads();
21688 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
21689
21690 wxPyEndAllowThreads(__tstate);
21691 if (PyErr_Occurred()) SWIG_fail;
21692 }
21693 resultobj = SWIG_PyObj_FromLong((long)result);
21694 {
21695 if (temp3)
21696 delete arg3;
21697 }
21698 return resultobj;
21699 fail:
21700 {
21701 if (temp3)
21702 delete arg3;
21703 }
21704 return NULL;
21705 }
21706
21707
21708 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21709 PyObject *resultobj;
21710 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21711 long arg2 ;
21712 long arg3 ;
21713 long result;
21714 PyObject * obj0 = 0 ;
21715 PyObject * obj1 = 0 ;
21716 PyObject * obj2 = 0 ;
21717 char *kwnames[] = {
21718 (char *) "self",(char *) "start",(char *) "data", NULL
21719 };
21720
21721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21723 {
21724 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21725 if (PyErr_Occurred()) SWIG_fail;
21726 }
21727 {
21728 arg3 = (long) SWIG_PyObj_AsLong(obj2);
21729 if (PyErr_Occurred()) SWIG_fail;
21730 }
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 result = (long)(arg1)->FindItem(arg2,arg3);
21734
21735 wxPyEndAllowThreads(__tstate);
21736 if (PyErr_Occurred()) SWIG_fail;
21737 }
21738 resultobj = SWIG_PyObj_FromLong((long)result);
21739 return resultobj;
21740 fail:
21741 return NULL;
21742 }
21743
21744
21745 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
21746 PyObject *resultobj;
21747 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21748 long arg2 ;
21749 wxPoint *arg3 = 0 ;
21750 int arg4 ;
21751 long result;
21752 wxPoint temp3 ;
21753 PyObject * obj0 = 0 ;
21754 PyObject * obj1 = 0 ;
21755 PyObject * obj2 = 0 ;
21756 PyObject * obj3 = 0 ;
21757 char *kwnames[] = {
21758 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
21759 };
21760
21761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21763 {
21764 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21765 if (PyErr_Occurred()) SWIG_fail;
21766 }
21767 {
21768 arg3 = &temp3;
21769 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21770 }
21771 {
21772 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21773 if (PyErr_Occurred()) SWIG_fail;
21774 }
21775 {
21776 PyThreadState* __tstate = wxPyBeginAllowThreads();
21777 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
21778
21779 wxPyEndAllowThreads(__tstate);
21780 if (PyErr_Occurred()) SWIG_fail;
21781 }
21782 resultobj = SWIG_PyObj_FromLong((long)result);
21783 return resultobj;
21784 fail:
21785 return NULL;
21786 }
21787
21788
21789 static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
21790 PyObject *resultobj;
21791 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21792 wxPoint *arg2 = 0 ;
21793 int *arg3 = 0 ;
21794 long result;
21795 wxPoint temp2 ;
21796 int temp3 ;
21797 PyObject * obj0 = 0 ;
21798 PyObject * obj1 = 0 ;
21799 char *kwnames[] = {
21800 (char *) "self",(char *) "point", NULL
21801 };
21802
21803 arg3 = &temp3;
21804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
21805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21806 {
21807 arg2 = &temp2;
21808 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21809 }
21810 {
21811 PyThreadState* __tstate = wxPyBeginAllowThreads();
21812 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
21813
21814 wxPyEndAllowThreads(__tstate);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 resultobj = SWIG_PyObj_FromLong((long)result);
21818 {
21819 PyObject *o = PyInt_FromLong((long) (*arg3));
21820 resultobj = t_output_helper(resultobj,o);
21821 }
21822 return resultobj;
21823 fail:
21824 return NULL;
21825 }
21826
21827
21828 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21829 PyObject *resultobj;
21830 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21831 wxListItem *arg2 = 0 ;
21832 long result;
21833 PyObject * obj0 = 0 ;
21834 PyObject * obj1 = 0 ;
21835 char *kwnames[] = {
21836 (char *) "self",(char *) "info", NULL
21837 };
21838
21839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
21840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21841 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21842 if (arg2 == NULL) {
21843 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21844 }
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 result = (long)(arg1)->InsertItem(*arg2);
21848
21849 wxPyEndAllowThreads(__tstate);
21850 if (PyErr_Occurred()) SWIG_fail;
21851 }
21852 resultobj = SWIG_PyObj_FromLong((long)result);
21853 return resultobj;
21854 fail:
21855 return NULL;
21856 }
21857
21858
21859 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21860 PyObject *resultobj;
21861 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21862 long arg2 ;
21863 wxString *arg3 = 0 ;
21864 long result;
21865 bool temp3 = False ;
21866 PyObject * obj0 = 0 ;
21867 PyObject * obj1 = 0 ;
21868 PyObject * obj2 = 0 ;
21869 char *kwnames[] = {
21870 (char *) "self",(char *) "index",(char *) "label", NULL
21871 };
21872
21873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21875 {
21876 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21877 if (PyErr_Occurred()) SWIG_fail;
21878 }
21879 {
21880 arg3 = wxString_in_helper(obj2);
21881 if (arg3 == NULL) SWIG_fail;
21882 temp3 = True;
21883 }
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
21887
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 resultobj = SWIG_PyObj_FromLong((long)result);
21892 {
21893 if (temp3)
21894 delete arg3;
21895 }
21896 return resultobj;
21897 fail:
21898 {
21899 if (temp3)
21900 delete arg3;
21901 }
21902 return NULL;
21903 }
21904
21905
21906 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21907 PyObject *resultobj;
21908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21909 long arg2 ;
21910 int arg3 ;
21911 long result;
21912 PyObject * obj0 = 0 ;
21913 PyObject * obj1 = 0 ;
21914 PyObject * obj2 = 0 ;
21915 char *kwnames[] = {
21916 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
21917 };
21918
21919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21921 {
21922 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 {
21926 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 {
21930 PyThreadState* __tstate = wxPyBeginAllowThreads();
21931 result = (long)(arg1)->InsertItem(arg2,arg3);
21932
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 resultobj = SWIG_PyObj_FromLong((long)result);
21937 return resultobj;
21938 fail:
21939 return NULL;
21940 }
21941
21942
21943 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21944 PyObject *resultobj;
21945 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21946 long arg2 ;
21947 wxString *arg3 = 0 ;
21948 int arg4 ;
21949 long result;
21950 bool temp3 = False ;
21951 PyObject * obj0 = 0 ;
21952 PyObject * obj1 = 0 ;
21953 PyObject * obj2 = 0 ;
21954 PyObject * obj3 = 0 ;
21955 char *kwnames[] = {
21956 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
21957 };
21958
21959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21961 {
21962 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21963 if (PyErr_Occurred()) SWIG_fail;
21964 }
21965 {
21966 arg3 = wxString_in_helper(obj2);
21967 if (arg3 == NULL) SWIG_fail;
21968 temp3 = True;
21969 }
21970 {
21971 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 }
21974 {
21975 PyThreadState* __tstate = wxPyBeginAllowThreads();
21976 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
21977
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 resultobj = SWIG_PyObj_FromLong((long)result);
21982 {
21983 if (temp3)
21984 delete arg3;
21985 }
21986 return resultobj;
21987 fail:
21988 {
21989 if (temp3)
21990 delete arg3;
21991 }
21992 return NULL;
21993 }
21994
21995
21996 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21997 PyObject *resultobj;
21998 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21999 long arg2 ;
22000 wxListItem *arg3 = 0 ;
22001 long result;
22002 PyObject * obj0 = 0 ;
22003 PyObject * obj1 = 0 ;
22004 PyObject * obj2 = 0 ;
22005 char *kwnames[] = {
22006 (char *) "self",(char *) "col",(char *) "info", NULL
22007 };
22008
22009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22011 {
22012 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22013 if (PyErr_Occurred()) SWIG_fail;
22014 }
22015 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22016 if (arg3 == NULL) {
22017 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22018 }
22019 {
22020 PyThreadState* __tstate = wxPyBeginAllowThreads();
22021 result = (long)(arg1)->InsertColumn(arg2,*arg3);
22022
22023 wxPyEndAllowThreads(__tstate);
22024 if (PyErr_Occurred()) SWIG_fail;
22025 }
22026 resultobj = SWIG_PyObj_FromLong((long)result);
22027 return resultobj;
22028 fail:
22029 return NULL;
22030 }
22031
22032
22033 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22034 PyObject *resultobj;
22035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22036 long arg2 ;
22037 wxString *arg3 = 0 ;
22038 int arg4 = (int) wxLIST_FORMAT_LEFT ;
22039 int arg5 = (int) -1 ;
22040 long result;
22041 bool temp3 = False ;
22042 PyObject * obj0 = 0 ;
22043 PyObject * obj1 = 0 ;
22044 PyObject * obj2 = 0 ;
22045 PyObject * obj3 = 0 ;
22046 PyObject * obj4 = 0 ;
22047 char *kwnames[] = {
22048 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
22049 };
22050
22051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22053 {
22054 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22055 if (PyErr_Occurred()) SWIG_fail;
22056 }
22057 {
22058 arg3 = wxString_in_helper(obj2);
22059 if (arg3 == NULL) SWIG_fail;
22060 temp3 = True;
22061 }
22062 if (obj3) {
22063 {
22064 arg4 = (int) SWIG_PyObj_AsInt(obj3);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 }
22067 }
22068 if (obj4) {
22069 {
22070 arg5 = (int) SWIG_PyObj_AsInt(obj4);
22071 if (PyErr_Occurred()) SWIG_fail;
22072 }
22073 }
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
22077
22078 wxPyEndAllowThreads(__tstate);
22079 if (PyErr_Occurred()) SWIG_fail;
22080 }
22081 resultobj = SWIG_PyObj_FromLong((long)result);
22082 {
22083 if (temp3)
22084 delete arg3;
22085 }
22086 return resultobj;
22087 fail:
22088 {
22089 if (temp3)
22090 delete arg3;
22091 }
22092 return NULL;
22093 }
22094
22095
22096 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22097 PyObject *resultobj;
22098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22099 long arg2 ;
22100 PyObject * obj0 = 0 ;
22101 PyObject * obj1 = 0 ;
22102 char *kwnames[] = {
22103 (char *) "self",(char *) "count", NULL
22104 };
22105
22106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
22107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22108 {
22109 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22110 if (PyErr_Occurred()) SWIG_fail;
22111 }
22112 {
22113 PyThreadState* __tstate = wxPyBeginAllowThreads();
22114 (arg1)->SetItemCount(arg2);
22115
22116 wxPyEndAllowThreads(__tstate);
22117 if (PyErr_Occurred()) SWIG_fail;
22118 }
22119 Py_INCREF(Py_None); resultobj = Py_None;
22120 return resultobj;
22121 fail:
22122 return NULL;
22123 }
22124
22125
22126 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
22127 PyObject *resultobj;
22128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22129 int arg2 ;
22130 int arg3 ;
22131 bool result;
22132 PyObject * obj0 = 0 ;
22133 PyObject * obj1 = 0 ;
22134 PyObject * obj2 = 0 ;
22135 char *kwnames[] = {
22136 (char *) "self",(char *) "dx",(char *) "dy", NULL
22137 };
22138
22139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22141 {
22142 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22143 if (PyErr_Occurred()) SWIG_fail;
22144 }
22145 {
22146 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22147 if (PyErr_Occurred()) SWIG_fail;
22148 }
22149 {
22150 PyThreadState* __tstate = wxPyBeginAllowThreads();
22151 result = (bool)(arg1)->ScrollList(arg2,arg3);
22152
22153 wxPyEndAllowThreads(__tstate);
22154 if (PyErr_Occurred()) SWIG_fail;
22155 }
22156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22157 return resultobj;
22158 fail:
22159 return NULL;
22160 }
22161
22162
22163 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22164 PyObject *resultobj;
22165 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22166 long arg2 ;
22167 wxColour *arg3 = 0 ;
22168 wxColour temp3 ;
22169 PyObject * obj0 = 0 ;
22170 PyObject * obj1 = 0 ;
22171 PyObject * obj2 = 0 ;
22172 char *kwnames[] = {
22173 (char *) "self",(char *) "item",(char *) "col", NULL
22174 };
22175
22176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) 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 arg3 = &temp3;
22184 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22185 }
22186 {
22187 PyThreadState* __tstate = wxPyBeginAllowThreads();
22188 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
22189
22190 wxPyEndAllowThreads(__tstate);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 Py_INCREF(Py_None); resultobj = Py_None;
22194 return resultobj;
22195 fail:
22196 return NULL;
22197 }
22198
22199
22200 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22201 PyObject *resultobj;
22202 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22203 long arg2 ;
22204 wxColour result;
22205 PyObject * obj0 = 0 ;
22206 PyObject * obj1 = 0 ;
22207 char *kwnames[] = {
22208 (char *) "self",(char *) "item", NULL
22209 };
22210
22211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
22212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22213 {
22214 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22215 if (PyErr_Occurred()) SWIG_fail;
22216 }
22217 {
22218 PyThreadState* __tstate = wxPyBeginAllowThreads();
22219 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
22220
22221 wxPyEndAllowThreads(__tstate);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 }
22224 {
22225 wxColour * resultptr;
22226 resultptr = new wxColour((wxColour &) result);
22227 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
22228 }
22229 return resultobj;
22230 fail:
22231 return NULL;
22232 }
22233
22234
22235 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22236 PyObject *resultobj;
22237 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22238 long arg2 ;
22239 wxColour *arg3 = 0 ;
22240 wxColour temp3 ;
22241 PyObject * obj0 = 0 ;
22242 PyObject * obj1 = 0 ;
22243 PyObject * obj2 = 0 ;
22244 char *kwnames[] = {
22245 (char *) "self",(char *) "item",(char *) "col", NULL
22246 };
22247
22248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
22249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22250 {
22251 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22252 if (PyErr_Occurred()) SWIG_fail;
22253 }
22254 {
22255 arg3 = &temp3;
22256 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22257 }
22258 {
22259 PyThreadState* __tstate = wxPyBeginAllowThreads();
22260 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
22261
22262 wxPyEndAllowThreads(__tstate);
22263 if (PyErr_Occurred()) SWIG_fail;
22264 }
22265 Py_INCREF(Py_None); resultobj = Py_None;
22266 return resultobj;
22267 fail:
22268 return NULL;
22269 }
22270
22271
22272 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22273 PyObject *resultobj;
22274 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22275 long arg2 ;
22276 wxColour result;
22277 PyObject * obj0 = 0 ;
22278 PyObject * obj1 = 0 ;
22279 char *kwnames[] = {
22280 (char *) "self",(char *) "item", NULL
22281 };
22282
22283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
22284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22285 {
22286 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22287 if (PyErr_Occurred()) SWIG_fail;
22288 }
22289 {
22290 PyThreadState* __tstate = wxPyBeginAllowThreads();
22291 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
22292
22293 wxPyEndAllowThreads(__tstate);
22294 if (PyErr_Occurred()) SWIG_fail;
22295 }
22296 {
22297 wxColour * resultptr;
22298 resultptr = new wxColour((wxColour &) result);
22299 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
22300 }
22301 return resultobj;
22302 fail:
22303 return NULL;
22304 }
22305
22306
22307 static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22308 PyObject *resultobj;
22309 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22310 PyObject *arg2 = (PyObject *) 0 ;
22311 bool result;
22312 PyObject * obj0 = 0 ;
22313 PyObject * obj1 = 0 ;
22314 char *kwnames[] = {
22315 (char *) "self",(char *) "func", NULL
22316 };
22317
22318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
22319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22320 arg2 = obj1;
22321 {
22322 PyThreadState* __tstate = wxPyBeginAllowThreads();
22323 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
22324
22325 wxPyEndAllowThreads(__tstate);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 }
22328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22329 return resultobj;
22330 fail:
22331 return NULL;
22332 }
22333
22334
22335 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj;
22337 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22338 wxWindow *result;
22339 PyObject * obj0 = 0 ;
22340 char *kwnames[] = {
22341 (char *) "self", NULL
22342 };
22343
22344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
22345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22346 {
22347 PyThreadState* __tstate = wxPyBeginAllowThreads();
22348 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
22349
22350 wxPyEndAllowThreads(__tstate);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 }
22353 {
22354 resultobj = wxPyMake_wxObject(result);
22355 }
22356 return resultobj;
22357 fail:
22358 return NULL;
22359 }
22360
22361
22362 static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
22363 PyObject *obj;
22364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22365 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
22366 Py_INCREF(obj);
22367 return Py_BuildValue((char *)"");
22368 }
22369 static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22370 PyObject *resultobj;
22371 wxWindow *arg1 = (wxWindow *) 0 ;
22372 int arg2 = (int) -1 ;
22373 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22374 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22375 wxSize const &arg4_defvalue = wxDefaultSize ;
22376 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22377 long arg5 = (long) wxLC_REPORT ;
22378 wxValidator const &arg6_defvalue = wxDefaultValidator ;
22379 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
22380 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
22381 wxString *arg7 = (wxString *) &arg7_defvalue ;
22382 wxListView *result;
22383 wxPoint temp3 ;
22384 wxSize temp4 ;
22385 bool temp7 = False ;
22386 PyObject * obj0 = 0 ;
22387 PyObject * obj1 = 0 ;
22388 PyObject * obj2 = 0 ;
22389 PyObject * obj3 = 0 ;
22390 PyObject * obj4 = 0 ;
22391 PyObject * obj5 = 0 ;
22392 PyObject * obj6 = 0 ;
22393 char *kwnames[] = {
22394 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22395 };
22396
22397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22399 if (obj1) {
22400 {
22401 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22402 if (PyErr_Occurred()) SWIG_fail;
22403 }
22404 }
22405 if (obj2) {
22406 {
22407 arg3 = &temp3;
22408 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22409 }
22410 }
22411 if (obj3) {
22412 {
22413 arg4 = &temp4;
22414 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22415 }
22416 }
22417 if (obj4) {
22418 {
22419 arg5 = (long) SWIG_PyObj_AsLong(obj4);
22420 if (PyErr_Occurred()) SWIG_fail;
22421 }
22422 }
22423 if (obj5) {
22424 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22425 if (arg6 == NULL) {
22426 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22427 }
22428 }
22429 if (obj6) {
22430 {
22431 arg7 = wxString_in_helper(obj6);
22432 if (arg7 == NULL) SWIG_fail;
22433 temp7 = True;
22434 }
22435 }
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
22439
22440 wxPyEndAllowThreads(__tstate);
22441 if (PyErr_Occurred()) SWIG_fail;
22442 }
22443 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1);
22444 {
22445 if (temp7)
22446 delete arg7;
22447 }
22448 return resultobj;
22449 fail:
22450 {
22451 if (temp7)
22452 delete arg7;
22453 }
22454 return NULL;
22455 }
22456
22457
22458 static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
22459 PyObject *resultobj;
22460 wxListView *result;
22461 char *kwnames[] = {
22462 NULL
22463 };
22464
22465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
22466 {
22467 PyThreadState* __tstate = wxPyBeginAllowThreads();
22468 result = (wxListView *)new wxListView();
22469
22470 wxPyEndAllowThreads(__tstate);
22471 if (PyErr_Occurred()) SWIG_fail;
22472 }
22473 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1);
22474 return resultobj;
22475 fail:
22476 return NULL;
22477 }
22478
22479
22480 static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
22481 PyObject *resultobj;
22482 wxListView *arg1 = (wxListView *) 0 ;
22483 wxWindow *arg2 = (wxWindow *) 0 ;
22484 int arg3 = (int) -1 ;
22485 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22486 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22487 wxSize const &arg5_defvalue = wxDefaultSize ;
22488 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22489 long arg6 = (long) wxLC_REPORT ;
22490 wxValidator const &arg7_defvalue = wxDefaultValidator ;
22491 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
22492 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
22493 wxString *arg8 = (wxString *) &arg8_defvalue ;
22494 bool result;
22495 wxPoint temp4 ;
22496 wxSize temp5 ;
22497 bool temp8 = False ;
22498 PyObject * obj0 = 0 ;
22499 PyObject * obj1 = 0 ;
22500 PyObject * obj2 = 0 ;
22501 PyObject * obj3 = 0 ;
22502 PyObject * obj4 = 0 ;
22503 PyObject * obj5 = 0 ;
22504 PyObject * obj6 = 0 ;
22505 PyObject * obj7 = 0 ;
22506 char *kwnames[] = {
22507 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
22508 };
22509
22510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
22511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22512 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22513 if (obj2) {
22514 {
22515 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22516 if (PyErr_Occurred()) SWIG_fail;
22517 }
22518 }
22519 if (obj3) {
22520 {
22521 arg4 = &temp4;
22522 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22523 }
22524 }
22525 if (obj4) {
22526 {
22527 arg5 = &temp5;
22528 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22529 }
22530 }
22531 if (obj5) {
22532 {
22533 arg6 = (long) SWIG_PyObj_AsLong(obj5);
22534 if (PyErr_Occurred()) SWIG_fail;
22535 }
22536 }
22537 if (obj6) {
22538 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22539 if (arg7 == NULL) {
22540 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22541 }
22542 }
22543 if (obj7) {
22544 {
22545 arg8 = wxString_in_helper(obj7);
22546 if (arg8 == NULL) SWIG_fail;
22547 temp8 = True;
22548 }
22549 }
22550 {
22551 PyThreadState* __tstate = wxPyBeginAllowThreads();
22552 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
22553
22554 wxPyEndAllowThreads(__tstate);
22555 if (PyErr_Occurred()) SWIG_fail;
22556 }
22557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22558 {
22559 if (temp8)
22560 delete arg8;
22561 }
22562 return resultobj;
22563 fail:
22564 {
22565 if (temp8)
22566 delete arg8;
22567 }
22568 return NULL;
22569 }
22570
22571
22572 static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
22573 PyObject *resultobj;
22574 wxListView *arg1 = (wxListView *) 0 ;
22575 long arg2 ;
22576 bool arg3 = (bool) True ;
22577 PyObject * obj0 = 0 ;
22578 PyObject * obj1 = 0 ;
22579 PyObject * obj2 = 0 ;
22580 char *kwnames[] = {
22581 (char *) "self",(char *) "n",(char *) "on", NULL
22582 };
22583
22584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
22585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22586 {
22587 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22588 if (PyErr_Occurred()) SWIG_fail;
22589 }
22590 if (obj2) {
22591 {
22592 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
22593 if (PyErr_Occurred()) SWIG_fail;
22594 }
22595 }
22596 {
22597 PyThreadState* __tstate = wxPyBeginAllowThreads();
22598 (arg1)->Select(arg2,arg3);
22599
22600 wxPyEndAllowThreads(__tstate);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 }
22603 Py_INCREF(Py_None); resultobj = Py_None;
22604 return resultobj;
22605 fail:
22606 return NULL;
22607 }
22608
22609
22610 static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
22611 PyObject *resultobj;
22612 wxListView *arg1 = (wxListView *) 0 ;
22613 long arg2 ;
22614 PyObject * obj0 = 0 ;
22615 PyObject * obj1 = 0 ;
22616 char *kwnames[] = {
22617 (char *) "self",(char *) "index", NULL
22618 };
22619
22620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
22621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22622 {
22623 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 {
22627 PyThreadState* __tstate = wxPyBeginAllowThreads();
22628 (arg1)->Focus(arg2);
22629
22630 wxPyEndAllowThreads(__tstate);
22631 if (PyErr_Occurred()) SWIG_fail;
22632 }
22633 Py_INCREF(Py_None); resultobj = Py_None;
22634 return resultobj;
22635 fail:
22636 return NULL;
22637 }
22638
22639
22640 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22641 PyObject *resultobj;
22642 wxListView *arg1 = (wxListView *) 0 ;
22643 long result;
22644 PyObject * obj0 = 0 ;
22645 char *kwnames[] = {
22646 (char *) "self", NULL
22647 };
22648
22649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
22650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22651 {
22652 PyThreadState* __tstate = wxPyBeginAllowThreads();
22653 result = (long)((wxListView const *)arg1)->GetFocusedItem();
22654
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 resultobj = SWIG_PyObj_FromLong((long)result);
22659 return resultobj;
22660 fail:
22661 return NULL;
22662 }
22663
22664
22665 static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22666 PyObject *resultobj;
22667 wxListView *arg1 = (wxListView *) 0 ;
22668 long arg2 ;
22669 long result;
22670 PyObject * obj0 = 0 ;
22671 PyObject * obj1 = 0 ;
22672 char *kwnames[] = {
22673 (char *) "self",(char *) "item", NULL
22674 };
22675
22676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
22677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22678 {
22679 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22680 if (PyErr_Occurred()) SWIG_fail;
22681 }
22682 {
22683 PyThreadState* __tstate = wxPyBeginAllowThreads();
22684 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
22685
22686 wxPyEndAllowThreads(__tstate);
22687 if (PyErr_Occurred()) SWIG_fail;
22688 }
22689 resultobj = SWIG_PyObj_FromLong((long)result);
22690 return resultobj;
22691 fail:
22692 return NULL;
22693 }
22694
22695
22696 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22697 PyObject *resultobj;
22698 wxListView *arg1 = (wxListView *) 0 ;
22699 long result;
22700 PyObject * obj0 = 0 ;
22701 char *kwnames[] = {
22702 (char *) "self", NULL
22703 };
22704
22705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
22706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 result = (long)((wxListView const *)arg1)->GetFirstSelected();
22710
22711 wxPyEndAllowThreads(__tstate);
22712 if (PyErr_Occurred()) SWIG_fail;
22713 }
22714 resultobj = SWIG_PyObj_FromLong((long)result);
22715 return resultobj;
22716 fail:
22717 return NULL;
22718 }
22719
22720
22721 static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
22722 PyObject *resultobj;
22723 wxListView *arg1 = (wxListView *) 0 ;
22724 long arg2 ;
22725 bool result;
22726 PyObject * obj0 = 0 ;
22727 PyObject * obj1 = 0 ;
22728 char *kwnames[] = {
22729 (char *) "self",(char *) "index", NULL
22730 };
22731
22732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
22733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22734 {
22735 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22736 if (PyErr_Occurred()) SWIG_fail;
22737 }
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
22740 result = (bool)(arg1)->IsSelected(arg2);
22741
22742 wxPyEndAllowThreads(__tstate);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 }
22745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22746 return resultobj;
22747 fail:
22748 return NULL;
22749 }
22750
22751
22752 static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
22753 PyObject *resultobj;
22754 wxListView *arg1 = (wxListView *) 0 ;
22755 int arg2 ;
22756 int arg3 ;
22757 PyObject * obj0 = 0 ;
22758 PyObject * obj1 = 0 ;
22759 PyObject * obj2 = 0 ;
22760 char *kwnames[] = {
22761 (char *) "self",(char *) "col",(char *) "image", NULL
22762 };
22763
22764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
22765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22766 {
22767 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22768 if (PyErr_Occurred()) SWIG_fail;
22769 }
22770 {
22771 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22772 if (PyErr_Occurred()) SWIG_fail;
22773 }
22774 {
22775 PyThreadState* __tstate = wxPyBeginAllowThreads();
22776 (arg1)->SetColumnImage(arg2,arg3);
22777
22778 wxPyEndAllowThreads(__tstate);
22779 if (PyErr_Occurred()) SWIG_fail;
22780 }
22781 Py_INCREF(Py_None); resultobj = Py_None;
22782 return resultobj;
22783 fail:
22784 return NULL;
22785 }
22786
22787
22788 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
22789 PyObject *resultobj;
22790 wxListView *arg1 = (wxListView *) 0 ;
22791 int arg2 ;
22792 PyObject * obj0 = 0 ;
22793 PyObject * obj1 = 0 ;
22794 char *kwnames[] = {
22795 (char *) "self",(char *) "col", NULL
22796 };
22797
22798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
22799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22800 {
22801 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22802 if (PyErr_Occurred()) SWIG_fail;
22803 }
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 (arg1)->ClearColumnImage(arg2);
22807
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 Py_INCREF(Py_None); resultobj = Py_None;
22812 return resultobj;
22813 fail:
22814 return NULL;
22815 }
22816
22817
22818 static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
22819 PyObject *obj;
22820 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22821 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
22822 Py_INCREF(obj);
22823 return Py_BuildValue((char *)"");
22824 }
22825 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
22826 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
22827 return 1;
22828 }
22829
22830
22831 static PyObject *_wrap_TreeCtrlNameStr_get() {
22832 PyObject *pyobj;
22833
22834 {
22835 #if wxUSE_UNICODE
22836 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22837 #else
22838 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
22839 #endif
22840 }
22841 return pyobj;
22842 }
22843
22844
22845 static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
22846 PyObject *resultobj;
22847 wxTreeItemId *result;
22848 char *kwnames[] = {
22849 NULL
22850 };
22851
22852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 result = (wxTreeItemId *)new wxTreeItemId();
22856
22857 wxPyEndAllowThreads(__tstate);
22858 if (PyErr_Occurred()) SWIG_fail;
22859 }
22860 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1);
22861 return resultobj;
22862 fail:
22863 return NULL;
22864 }
22865
22866
22867 static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
22868 PyObject *resultobj;
22869 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22870 PyObject * obj0 = 0 ;
22871 char *kwnames[] = {
22872 (char *) "self", NULL
22873 };
22874
22875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
22876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22877 {
22878 PyThreadState* __tstate = wxPyBeginAllowThreads();
22879 delete arg1;
22880
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 Py_INCREF(Py_None); resultobj = Py_None;
22885 return resultobj;
22886 fail:
22887 return NULL;
22888 }
22889
22890
22891 static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
22892 PyObject *resultobj;
22893 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22894 bool result;
22895 PyObject * obj0 = 0 ;
22896 char *kwnames[] = {
22897 (char *) "self", NULL
22898 };
22899
22900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
22901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
22905
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
22909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22910 return resultobj;
22911 fail:
22912 return NULL;
22913 }
22914
22915
22916 static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22917 PyObject *resultobj;
22918 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22919 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
22920 bool result;
22921 PyObject * obj0 = 0 ;
22922 PyObject * obj1 = 0 ;
22923 char *kwnames[] = {
22924 (char *) "self",(char *) "other", NULL
22925 };
22926
22927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
22928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22929 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22930 {
22931 PyThreadState* __tstate = wxPyBeginAllowThreads();
22932 result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2);
22933
22934 wxPyEndAllowThreads(__tstate);
22935 if (PyErr_Occurred()) SWIG_fail;
22936 }
22937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22938 return resultobj;
22939 fail:
22940 return NULL;
22941 }
22942
22943
22944 static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22945 PyObject *resultobj;
22946 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22947 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
22948 bool result;
22949 PyObject * obj0 = 0 ;
22950 PyObject * obj1 = 0 ;
22951 char *kwnames[] = {
22952 (char *) "self",(char *) "other", NULL
22953 };
22954
22955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
22956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22957 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22958 {
22959 PyThreadState* __tstate = wxPyBeginAllowThreads();
22960 result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2);
22961
22962 wxPyEndAllowThreads(__tstate);
22963 if (PyErr_Occurred()) SWIG_fail;
22964 }
22965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22966 return resultobj;
22967 fail:
22968 return NULL;
22969 }
22970
22971
22972 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
22973 PyObject *resultobj;
22974 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22975 void *arg2 = (void *) 0 ;
22976 PyObject * obj0 = 0 ;
22977 PyObject * obj1 = 0 ;
22978 char *kwnames[] = {
22979 (char *) "self",(char *) "m_pItem", NULL
22980 };
22981
22982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
22983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22984 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
22985 if (arg1) (arg1)->m_pItem = arg2;
22986
22987 Py_INCREF(Py_None); resultobj = Py_None;
22988 return resultobj;
22989 fail:
22990 return NULL;
22991 }
22992
22993
22994 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
22995 PyObject *resultobj;
22996 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
22997 void *result;
22998 PyObject * obj0 = 0 ;
22999 char *kwnames[] = {
23000 (char *) "self", NULL
23001 };
23002
23003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
23004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23005 result = (void *) ((arg1)->m_pItem);
23006
23007 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0);
23008 return resultobj;
23009 fail:
23010 return NULL;
23011 }
23012
23013
23014 static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
23015 PyObject *obj;
23016 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23017 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
23018 Py_INCREF(obj);
23019 return Py_BuildValue((char *)"");
23020 }
23021 static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
23022 PyObject *resultobj;
23023 PyObject *arg1 = (PyObject *) NULL ;
23024 wxPyTreeItemData *result;
23025 PyObject * obj0 = 0 ;
23026 char *kwnames[] = {
23027 (char *) "obj", NULL
23028 };
23029
23030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
23031 if (obj0) {
23032 arg1 = obj0;
23033 }
23034 {
23035 PyThreadState* __tstate = wxPyBeginAllowThreads();
23036 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
23037
23038 wxPyEndAllowThreads(__tstate);
23039 if (PyErr_Occurred()) SWIG_fail;
23040 }
23041 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1);
23042 return resultobj;
23043 fail:
23044 return NULL;
23045 }
23046
23047
23048 static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23049 PyObject *resultobj;
23050 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23051 PyObject *result;
23052 PyObject * obj0 = 0 ;
23053 char *kwnames[] = {
23054 (char *) "self", NULL
23055 };
23056
23057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
23058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23059 {
23060 PyThreadState* __tstate = wxPyBeginAllowThreads();
23061 result = (PyObject *)(arg1)->GetData();
23062
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = result;
23067 return resultobj;
23068 fail:
23069 return NULL;
23070 }
23071
23072
23073 static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23074 PyObject *resultobj;
23075 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23076 PyObject *arg2 = (PyObject *) 0 ;
23077 PyObject * obj0 = 0 ;
23078 PyObject * obj1 = 0 ;
23079 char *kwnames[] = {
23080 (char *) "self",(char *) "obj", NULL
23081 };
23082
23083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
23084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23085 arg2 = obj1;
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 (arg1)->SetData(arg2);
23089
23090 wxPyEndAllowThreads(__tstate);
23091 if (PyErr_Occurred()) SWIG_fail;
23092 }
23093 Py_INCREF(Py_None); resultobj = Py_None;
23094 return resultobj;
23095 fail:
23096 return NULL;
23097 }
23098
23099
23100 static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23101 PyObject *resultobj;
23102 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23103 wxTreeItemId *result;
23104 PyObject * obj0 = 0 ;
23105 char *kwnames[] = {
23106 (char *) "self", NULL
23107 };
23108
23109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
23110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 {
23114 wxTreeItemId const &_result_ref = (arg1)->GetId();
23115 result = (wxTreeItemId *) &_result_ref;
23116 }
23117
23118 wxPyEndAllowThreads(__tstate);
23119 if (PyErr_Occurred()) SWIG_fail;
23120 }
23121 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0);
23122 return resultobj;
23123 fail:
23124 return NULL;
23125 }
23126
23127
23128 static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23129 PyObject *resultobj;
23130 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23131 wxTreeItemId *arg2 = 0 ;
23132 PyObject * obj0 = 0 ;
23133 PyObject * obj1 = 0 ;
23134 char *kwnames[] = {
23135 (char *) "self",(char *) "id", NULL
23136 };
23137
23138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
23139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23140 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23141 if (arg2 == NULL) {
23142 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23143 }
23144 {
23145 PyThreadState* __tstate = wxPyBeginAllowThreads();
23146 (arg1)->SetId((wxTreeItemId const &)*arg2);
23147
23148 wxPyEndAllowThreads(__tstate);
23149 if (PyErr_Occurred()) SWIG_fail;
23150 }
23151 Py_INCREF(Py_None); resultobj = Py_None;
23152 return resultobj;
23153 fail:
23154 return NULL;
23155 }
23156
23157
23158 static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
23159 PyObject *resultobj;
23160 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
23161 PyObject * obj0 = 0 ;
23162 char *kwnames[] = {
23163 (char *) "self", NULL
23164 };
23165
23166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
23167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23168 {
23169 PyThreadState* __tstate = wxPyBeginAllowThreads();
23170 wxPyTreeItemData_Destroy(arg1);
23171
23172 wxPyEndAllowThreads(__tstate);
23173 if (PyErr_Occurred()) SWIG_fail;
23174 }
23175 Py_INCREF(Py_None); resultobj = Py_None;
23176 return resultobj;
23177 fail:
23178 return NULL;
23179 }
23180
23181
23182 static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
23183 PyObject *obj;
23184 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23185 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
23186 Py_INCREF(obj);
23187 return Py_BuildValue((char *)"");
23188 }
23189 static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23190 PyObject *resultobj;
23191 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
23192 int arg2 = (int) 0 ;
23193 wxTreeEvent *result;
23194 PyObject * obj0 = 0 ;
23195 PyObject * obj1 = 0 ;
23196 char *kwnames[] = {
23197 (char *) "commandType",(char *) "id", NULL
23198 };
23199
23200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
23201 if (obj0) {
23202 {
23203 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 }
23206 }
23207 if (obj1) {
23208 {
23209 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23210 if (PyErr_Occurred()) SWIG_fail;
23211 }
23212 }
23213 {
23214 PyThreadState* __tstate = wxPyBeginAllowThreads();
23215 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
23216
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
23220 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1);
23221 return resultobj;
23222 fail:
23223 return NULL;
23224 }
23225
23226
23227 static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23228 PyObject *resultobj;
23229 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23230 wxTreeItemId result;
23231 PyObject * obj0 = 0 ;
23232 char *kwnames[] = {
23233 (char *) "self", NULL
23234 };
23235
23236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
23237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 result = ((wxTreeEvent const *)arg1)->GetItem();
23241
23242 wxPyEndAllowThreads(__tstate);
23243 if (PyErr_Occurred()) SWIG_fail;
23244 }
23245 {
23246 wxTreeItemId * resultptr;
23247 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23248 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
23249 }
23250 return resultobj;
23251 fail:
23252 return NULL;
23253 }
23254
23255
23256 static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23257 PyObject *resultobj;
23258 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23259 wxTreeItemId *arg2 = 0 ;
23260 PyObject * obj0 = 0 ;
23261 PyObject * obj1 = 0 ;
23262 char *kwnames[] = {
23263 (char *) "self",(char *) "item", NULL
23264 };
23265
23266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
23267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23268 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23269 if (arg2 == NULL) {
23270 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23271 }
23272 {
23273 PyThreadState* __tstate = wxPyBeginAllowThreads();
23274 (arg1)->SetItem((wxTreeItemId const &)*arg2);
23275
23276 wxPyEndAllowThreads(__tstate);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 }
23279 Py_INCREF(Py_None); resultobj = Py_None;
23280 return resultobj;
23281 fail:
23282 return NULL;
23283 }
23284
23285
23286 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23287 PyObject *resultobj;
23288 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23289 wxTreeItemId result;
23290 PyObject * obj0 = 0 ;
23291 char *kwnames[] = {
23292 (char *) "self", NULL
23293 };
23294
23295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
23296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23297 {
23298 PyThreadState* __tstate = wxPyBeginAllowThreads();
23299 result = ((wxTreeEvent const *)arg1)->GetOldItem();
23300
23301 wxPyEndAllowThreads(__tstate);
23302 if (PyErr_Occurred()) SWIG_fail;
23303 }
23304 {
23305 wxTreeItemId * resultptr;
23306 resultptr = new wxTreeItemId((wxTreeItemId &) result);
23307 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
23308 }
23309 return resultobj;
23310 fail:
23311 return NULL;
23312 }
23313
23314
23315 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23316 PyObject *resultobj;
23317 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23318 wxTreeItemId *arg2 = 0 ;
23319 PyObject * obj0 = 0 ;
23320 PyObject * obj1 = 0 ;
23321 char *kwnames[] = {
23322 (char *) "self",(char *) "item", NULL
23323 };
23324
23325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
23326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23327 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23328 if (arg2 == NULL) {
23329 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23330 }
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
23334
23335 wxPyEndAllowThreads(__tstate);
23336 if (PyErr_Occurred()) SWIG_fail;
23337 }
23338 Py_INCREF(Py_None); resultobj = Py_None;
23339 return resultobj;
23340 fail:
23341 return NULL;
23342 }
23343
23344
23345 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj;
23347 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23348 wxPoint result;
23349 PyObject * obj0 = 0 ;
23350 char *kwnames[] = {
23351 (char *) "self", NULL
23352 };
23353
23354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
23355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23356 {
23357 PyThreadState* __tstate = wxPyBeginAllowThreads();
23358 result = ((wxTreeEvent const *)arg1)->GetPoint();
23359
23360 wxPyEndAllowThreads(__tstate);
23361 if (PyErr_Occurred()) SWIG_fail;
23362 }
23363 {
23364 wxPoint * resultptr;
23365 resultptr = new wxPoint((wxPoint &) result);
23366 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
23367 }
23368 return resultobj;
23369 fail:
23370 return NULL;
23371 }
23372
23373
23374 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
23375 PyObject *resultobj;
23376 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23377 wxPoint *arg2 = 0 ;
23378 wxPoint temp2 ;
23379 PyObject * obj0 = 0 ;
23380 PyObject * obj1 = 0 ;
23381 char *kwnames[] = {
23382 (char *) "self",(char *) "pt", NULL
23383 };
23384
23385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
23386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23387 {
23388 arg2 = &temp2;
23389 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23390 }
23391 {
23392 PyThreadState* __tstate = wxPyBeginAllowThreads();
23393 (arg1)->SetPoint((wxPoint const &)*arg2);
23394
23395 wxPyEndAllowThreads(__tstate);
23396 if (PyErr_Occurred()) SWIG_fail;
23397 }
23398 Py_INCREF(Py_None); resultobj = Py_None;
23399 return resultobj;
23400 fail:
23401 return NULL;
23402 }
23403
23404
23405 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23406 PyObject *resultobj;
23407 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23408 wxKeyEvent *result;
23409 PyObject * obj0 = 0 ;
23410 char *kwnames[] = {
23411 (char *) "self", NULL
23412 };
23413
23414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
23415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 {
23419 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
23420 result = (wxKeyEvent *) &_result_ref;
23421 }
23422
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0);
23427 return resultobj;
23428 fail:
23429 return NULL;
23430 }
23431
23432
23433 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
23434 PyObject *resultobj;
23435 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23436 int result;
23437 PyObject * obj0 = 0 ;
23438 char *kwnames[] = {
23439 (char *) "self", NULL
23440 };
23441
23442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
23443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
23447
23448 wxPyEndAllowThreads(__tstate);
23449 if (PyErr_Occurred()) SWIG_fail;
23450 }
23451 resultobj = SWIG_PyObj_FromInt((int)result);
23452 return resultobj;
23453 fail:
23454 return NULL;
23455 }
23456
23457
23458 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
23459 PyObject *resultobj;
23460 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23461 wxKeyEvent *arg2 = 0 ;
23462 PyObject * obj0 = 0 ;
23463 PyObject * obj1 = 0 ;
23464 char *kwnames[] = {
23465 (char *) "self",(char *) "evt", NULL
23466 };
23467
23468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
23469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23470 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23471 if (arg2 == NULL) {
23472 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23473 }
23474 {
23475 PyThreadState* __tstate = wxPyBeginAllowThreads();
23476 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
23477
23478 wxPyEndAllowThreads(__tstate);
23479 if (PyErr_Occurred()) SWIG_fail;
23480 }
23481 Py_INCREF(Py_None); resultobj = Py_None;
23482 return resultobj;
23483 fail:
23484 return NULL;
23485 }
23486
23487
23488 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23489 PyObject *resultobj;
23490 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23491 wxString *result;
23492 PyObject * obj0 = 0 ;
23493 char *kwnames[] = {
23494 (char *) "self", NULL
23495 };
23496
23497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
23498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23499 {
23500 PyThreadState* __tstate = wxPyBeginAllowThreads();
23501 {
23502 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
23503 result = (wxString *) &_result_ref;
23504 }
23505
23506 wxPyEndAllowThreads(__tstate);
23507 if (PyErr_Occurred()) SWIG_fail;
23508 }
23509 {
23510 #if wxUSE_UNICODE
23511 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
23512 #else
23513 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
23514 #endif
23515 }
23516 return resultobj;
23517 fail:
23518 return NULL;
23519 }
23520
23521
23522 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
23523 PyObject *resultobj;
23524 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23525 wxString *arg2 = 0 ;
23526 bool temp2 = False ;
23527 PyObject * obj0 = 0 ;
23528 PyObject * obj1 = 0 ;
23529 char *kwnames[] = {
23530 (char *) "self",(char *) "label", NULL
23531 };
23532
23533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
23534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23535 {
23536 arg2 = wxString_in_helper(obj1);
23537 if (arg2 == NULL) SWIG_fail;
23538 temp2 = True;
23539 }
23540 {
23541 PyThreadState* __tstate = wxPyBeginAllowThreads();
23542 (arg1)->SetLabel((wxString const &)*arg2);
23543
23544 wxPyEndAllowThreads(__tstate);
23545 if (PyErr_Occurred()) SWIG_fail;
23546 }
23547 Py_INCREF(Py_None); resultobj = Py_None;
23548 {
23549 if (temp2)
23550 delete arg2;
23551 }
23552 return resultobj;
23553 fail:
23554 {
23555 if (temp2)
23556 delete arg2;
23557 }
23558 return NULL;
23559 }
23560
23561
23562 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
23563 PyObject *resultobj;
23564 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23565 bool result;
23566 PyObject * obj0 = 0 ;
23567 char *kwnames[] = {
23568 (char *) "self", NULL
23569 };
23570
23571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
23572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23573 {
23574 PyThreadState* __tstate = wxPyBeginAllowThreads();
23575 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
23576
23577 wxPyEndAllowThreads(__tstate);
23578 if (PyErr_Occurred()) SWIG_fail;
23579 }
23580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23581 return resultobj;
23582 fail:
23583 return NULL;
23584 }
23585
23586
23587 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
23588 PyObject *resultobj;
23589 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23590 bool arg2 ;
23591 PyObject * obj0 = 0 ;
23592 PyObject * obj1 = 0 ;
23593 char *kwnames[] = {
23594 (char *) "self",(char *) "editCancelled", NULL
23595 };
23596
23597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
23598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23599 {
23600 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
23601 if (PyErr_Occurred()) SWIG_fail;
23602 }
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 (arg1)->SetEditCanceled(arg2);
23606
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 Py_INCREF(Py_None); resultobj = Py_None;
23611 return resultobj;
23612 fail:
23613 return NULL;
23614 }
23615
23616
23617 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
23618 PyObject *resultobj;
23619 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
23620 wxString *arg2 = 0 ;
23621 bool temp2 = False ;
23622 PyObject * obj0 = 0 ;
23623 PyObject * obj1 = 0 ;
23624 char *kwnames[] = {
23625 (char *) "self",(char *) "toolTip", NULL
23626 };
23627
23628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
23629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23630 {
23631 arg2 = wxString_in_helper(obj1);
23632 if (arg2 == NULL) SWIG_fail;
23633 temp2 = True;
23634 }
23635 {
23636 PyThreadState* __tstate = wxPyBeginAllowThreads();
23637 (arg1)->SetToolTip((wxString const &)*arg2);
23638
23639 wxPyEndAllowThreads(__tstate);
23640 if (PyErr_Occurred()) SWIG_fail;
23641 }
23642 Py_INCREF(Py_None); resultobj = Py_None;
23643 {
23644 if (temp2)
23645 delete arg2;
23646 }
23647 return resultobj;
23648 fail:
23649 {
23650 if (temp2)
23651 delete arg2;
23652 }
23653 return NULL;
23654 }
23655
23656
23657 static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
23658 PyObject *obj;
23659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23660 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
23661 Py_INCREF(obj);
23662 return Py_BuildValue((char *)"");
23663 }
23664 static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
23665 PyObject *resultobj;
23666 wxWindow *arg1 = (wxWindow *) 0 ;
23667 int arg2 = (int) -1 ;
23668 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23669 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23670 wxSize const &arg4_defvalue = wxDefaultSize ;
23671 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23672 long arg5 = (long) wxTR_DEFAULT_STYLE ;
23673 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23674 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23675 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
23676 wxString *arg7 = (wxString *) &arg7_defvalue ;
23677 wxPyTreeCtrl *result;
23678 wxPoint temp3 ;
23679 wxSize temp4 ;
23680 bool temp7 = False ;
23681 PyObject * obj0 = 0 ;
23682 PyObject * obj1 = 0 ;
23683 PyObject * obj2 = 0 ;
23684 PyObject * obj3 = 0 ;
23685 PyObject * obj4 = 0 ;
23686 PyObject * obj5 = 0 ;
23687 PyObject * obj6 = 0 ;
23688 char *kwnames[] = {
23689 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23690 };
23691
23692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23694 if (obj1) {
23695 {
23696 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23697 if (PyErr_Occurred()) SWIG_fail;
23698 }
23699 }
23700 if (obj2) {
23701 {
23702 arg3 = &temp3;
23703 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23704 }
23705 }
23706 if (obj3) {
23707 {
23708 arg4 = &temp4;
23709 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23710 }
23711 }
23712 if (obj4) {
23713 {
23714 arg5 = (long) SWIG_PyObj_AsLong(obj4);
23715 if (PyErr_Occurred()) SWIG_fail;
23716 }
23717 }
23718 if (obj5) {
23719 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23720 if (arg6 == NULL) {
23721 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23722 }
23723 }
23724 if (obj6) {
23725 {
23726 arg7 = wxString_in_helper(obj6);
23727 if (arg7 == NULL) SWIG_fail;
23728 temp7 = True;
23729 }
23730 }
23731 {
23732 PyThreadState* __tstate = wxPyBeginAllowThreads();
23733 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23734
23735 wxPyEndAllowThreads(__tstate);
23736 if (PyErr_Occurred()) SWIG_fail;
23737 }
23738 {
23739 resultobj = wxPyMake_wxObject(result);
23740 }
23741 {
23742 if (temp7)
23743 delete arg7;
23744 }
23745 return resultobj;
23746 fail:
23747 {
23748 if (temp7)
23749 delete arg7;
23750 }
23751 return NULL;
23752 }
23753
23754
23755 static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
23756 PyObject *resultobj;
23757 wxPyTreeCtrl *result;
23758 char *kwnames[] = {
23759 NULL
23760 };
23761
23762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
23763 {
23764 PyThreadState* __tstate = wxPyBeginAllowThreads();
23765 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
23766
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 {
23771 resultobj = wxPyMake_wxObject(result);
23772 }
23773 return resultobj;
23774 fail:
23775 return NULL;
23776 }
23777
23778
23779 static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23780 PyObject *resultobj;
23781 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23782 wxWindow *arg2 = (wxWindow *) 0 ;
23783 int arg3 = (int) -1 ;
23784 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23785 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23786 wxSize const &arg5_defvalue = wxDefaultSize ;
23787 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23788 long arg6 = (long) wxTR_DEFAULT_STYLE ;
23789 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23790 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23791 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
23792 wxString *arg8 = (wxString *) &arg8_defvalue ;
23793 bool result;
23794 wxPoint temp4 ;
23795 wxSize temp5 ;
23796 bool temp8 = False ;
23797 PyObject * obj0 = 0 ;
23798 PyObject * obj1 = 0 ;
23799 PyObject * obj2 = 0 ;
23800 PyObject * obj3 = 0 ;
23801 PyObject * obj4 = 0 ;
23802 PyObject * obj5 = 0 ;
23803 PyObject * obj6 = 0 ;
23804 PyObject * obj7 = 0 ;
23805 char *kwnames[] = {
23806 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23807 };
23808
23809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23811 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23812 if (obj2) {
23813 {
23814 arg3 = (int) SWIG_PyObj_AsInt(obj2);
23815 if (PyErr_Occurred()) SWIG_fail;
23816 }
23817 }
23818 if (obj3) {
23819 {
23820 arg4 = &temp4;
23821 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23822 }
23823 }
23824 if (obj4) {
23825 {
23826 arg5 = &temp5;
23827 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23828 }
23829 }
23830 if (obj5) {
23831 {
23832 arg6 = (long) SWIG_PyObj_AsLong(obj5);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 }
23836 if (obj6) {
23837 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23838 if (arg7 == NULL) {
23839 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23840 }
23841 }
23842 if (obj7) {
23843 {
23844 arg8 = wxString_in_helper(obj7);
23845 if (arg8 == NULL) SWIG_fail;
23846 temp8 = True;
23847 }
23848 }
23849 {
23850 PyThreadState* __tstate = wxPyBeginAllowThreads();
23851 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23852
23853 wxPyEndAllowThreads(__tstate);
23854 if (PyErr_Occurred()) SWIG_fail;
23855 }
23856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23857 {
23858 if (temp8)
23859 delete arg8;
23860 }
23861 return resultobj;
23862 fail:
23863 {
23864 if (temp8)
23865 delete arg8;
23866 }
23867 return NULL;
23868 }
23869
23870
23871 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23872 PyObject *resultobj;
23873 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23874 PyObject *arg2 = (PyObject *) 0 ;
23875 PyObject *arg3 = (PyObject *) 0 ;
23876 PyObject * obj0 = 0 ;
23877 PyObject * obj1 = 0 ;
23878 PyObject * obj2 = 0 ;
23879 char *kwnames[] = {
23880 (char *) "self",(char *) "self",(char *) "_class", NULL
23881 };
23882
23883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23885 arg2 = obj1;
23886 arg3 = obj2;
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 (arg1)->_setCallbackInfo(arg2,arg3);
23890
23891 wxPyEndAllowThreads(__tstate);
23892 if (PyErr_Occurred()) SWIG_fail;
23893 }
23894 Py_INCREF(Py_None); resultobj = Py_None;
23895 return resultobj;
23896 fail:
23897 return NULL;
23898 }
23899
23900
23901 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23902 PyObject *resultobj;
23903 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23904 size_t result;
23905 PyObject * obj0 = 0 ;
23906 char *kwnames[] = {
23907 (char *) "self", NULL
23908 };
23909
23910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
23911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23912 {
23913 PyThreadState* __tstate = wxPyBeginAllowThreads();
23914 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
23915
23916 wxPyEndAllowThreads(__tstate);
23917 if (PyErr_Occurred()) SWIG_fail;
23918 }
23919 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
23920 return resultobj;
23921 fail:
23922 return NULL;
23923 }
23924
23925
23926 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
23927 PyObject *resultobj;
23928 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23929 unsigned int result;
23930 PyObject * obj0 = 0 ;
23931 char *kwnames[] = {
23932 (char *) "self", NULL
23933 };
23934
23935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
23936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23937 {
23938 PyThreadState* __tstate = wxPyBeginAllowThreads();
23939 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
23940
23941 wxPyEndAllowThreads(__tstate);
23942 if (PyErr_Occurred()) SWIG_fail;
23943 }
23944 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
23945 return resultobj;
23946 fail:
23947 return NULL;
23948 }
23949
23950
23951 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
23952 PyObject *resultobj;
23953 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23954 unsigned int arg2 ;
23955 PyObject * obj0 = 0 ;
23956 PyObject * obj1 = 0 ;
23957 char *kwnames[] = {
23958 (char *) "self",(char *) "indent", NULL
23959 };
23960
23961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
23962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23963 {
23964 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 {
23968 PyThreadState* __tstate = wxPyBeginAllowThreads();
23969 (arg1)->SetIndent(arg2);
23970
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 Py_INCREF(Py_None); resultobj = Py_None;
23975 return resultobj;
23976 fail:
23977 return NULL;
23978 }
23979
23980
23981 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj;
23983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
23984 unsigned int result;
23985 PyObject * obj0 = 0 ;
23986 char *kwnames[] = {
23987 (char *) "self", NULL
23988 };
23989
23990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
23991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23992 {
23993 PyThreadState* __tstate = wxPyBeginAllowThreads();
23994 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
23995
23996 wxPyEndAllowThreads(__tstate);
23997 if (PyErr_Occurred()) SWIG_fail;
23998 }
23999 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
24000 return resultobj;
24001 fail:
24002 return NULL;
24003 }
24004
24005
24006 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
24007 PyObject *resultobj;
24008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24009 unsigned int arg2 ;
24010 PyObject * obj0 = 0 ;
24011 PyObject * obj1 = 0 ;
24012 char *kwnames[] = {
24013 (char *) "self",(char *) "spacing", NULL
24014 };
24015
24016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
24017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24018 {
24019 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
24020 if (PyErr_Occurred()) SWIG_fail;
24021 }
24022 {
24023 PyThreadState* __tstate = wxPyBeginAllowThreads();
24024 (arg1)->SetSpacing(arg2);
24025
24026 wxPyEndAllowThreads(__tstate);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 Py_INCREF(Py_None); resultobj = Py_None;
24030 return resultobj;
24031 fail:
24032 return NULL;
24033 }
24034
24035
24036 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24037 PyObject *resultobj;
24038 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24039 wxImageList *result;
24040 PyObject * obj0 = 0 ;
24041 char *kwnames[] = {
24042 (char *) "self", NULL
24043 };
24044
24045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
24046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24047 {
24048 PyThreadState* __tstate = wxPyBeginAllowThreads();
24049 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
24050
24051 wxPyEndAllowThreads(__tstate);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 }
24054 {
24055 resultobj = wxPyMake_wxObject(result);
24056 }
24057 return resultobj;
24058 fail:
24059 return NULL;
24060 }
24061
24062
24063 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24064 PyObject *resultobj;
24065 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24066 wxImageList *result;
24067 PyObject * obj0 = 0 ;
24068 char *kwnames[] = {
24069 (char *) "self", NULL
24070 };
24071
24072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
24073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24074 {
24075 PyThreadState* __tstate = wxPyBeginAllowThreads();
24076 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
24077
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
24081 {
24082 resultobj = wxPyMake_wxObject(result);
24083 }
24084 return resultobj;
24085 fail:
24086 return NULL;
24087 }
24088
24089
24090 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24091 PyObject *resultobj;
24092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24093 wxImageList *arg2 = (wxImageList *) 0 ;
24094 PyObject * obj0 = 0 ;
24095 PyObject * obj1 = 0 ;
24096 char *kwnames[] = {
24097 (char *) "self",(char *) "imageList", NULL
24098 };
24099
24100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
24101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24102 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24103 {
24104 PyThreadState* __tstate = wxPyBeginAllowThreads();
24105 (arg1)->SetImageList(arg2);
24106
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 Py_INCREF(Py_None); resultobj = Py_None;
24111 return resultobj;
24112 fail:
24113 return NULL;
24114 }
24115
24116
24117 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24118 PyObject *resultobj;
24119 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24120 wxImageList *arg2 = (wxImageList *) 0 ;
24121 PyObject * obj0 = 0 ;
24122 PyObject * obj1 = 0 ;
24123 char *kwnames[] = {
24124 (char *) "self",(char *) "imageList", NULL
24125 };
24126
24127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
24128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24129 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24130 {
24131 PyThreadState* __tstate = wxPyBeginAllowThreads();
24132 (arg1)->SetStateImageList(arg2);
24133
24134 wxPyEndAllowThreads(__tstate);
24135 if (PyErr_Occurred()) SWIG_fail;
24136 }
24137 Py_INCREF(Py_None); resultobj = Py_None;
24138 return resultobj;
24139 fail:
24140 return NULL;
24141 }
24142
24143
24144 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24145 PyObject *resultobj;
24146 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24147 wxImageList *arg2 = (wxImageList *) 0 ;
24148 PyObject * obj0 = 0 ;
24149 PyObject * obj1 = 0 ;
24150 char *kwnames[] = {
24151 (char *) "self",(char *) "imageList", NULL
24152 };
24153
24154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
24155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24156 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
24157 {
24158 PyThreadState* __tstate = wxPyBeginAllowThreads();
24159 (arg1)->AssignImageList(arg2);
24160
24161 wxPyEndAllowThreads(__tstate);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 }
24164 Py_INCREF(Py_None); resultobj = Py_None;
24165 return resultobj;
24166 fail:
24167 return NULL;
24168 }
24169
24170
24171 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
24172 PyObject *resultobj;
24173 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24174 wxImageList *arg2 = (wxImageList *) 0 ;
24175 PyObject * obj0 = 0 ;
24176 PyObject * obj1 = 0 ;
24177 char *kwnames[] = {
24178 (char *) "self",(char *) "imageList", NULL
24179 };
24180
24181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
24182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24183 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
24184 {
24185 PyThreadState* __tstate = wxPyBeginAllowThreads();
24186 (arg1)->AssignStateImageList(arg2);
24187
24188 wxPyEndAllowThreads(__tstate);
24189 if (PyErr_Occurred()) SWIG_fail;
24190 }
24191 Py_INCREF(Py_None); resultobj = Py_None;
24192 return resultobj;
24193 fail:
24194 return NULL;
24195 }
24196
24197
24198 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24199 PyObject *resultobj;
24200 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24201 wxTreeItemId *arg2 = 0 ;
24202 wxString 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_GetItemText",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 = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
24218
24219 wxPyEndAllowThreads(__tstate);
24220 if (PyErr_Occurred()) SWIG_fail;
24221 }
24222 {
24223 #if wxUSE_UNICODE
24224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24225 #else
24226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24227 #endif
24228 }
24229 return resultobj;
24230 fail:
24231 return NULL;
24232 }
24233
24234
24235 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24236 PyObject *resultobj;
24237 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24238 wxTreeItemId *arg2 = 0 ;
24239 int arg3 = (int) wxTreeItemIcon_Normal ;
24240 int result;
24241 PyObject * obj0 = 0 ;
24242 PyObject * obj1 = 0 ;
24243 PyObject * obj2 = 0 ;
24244 char *kwnames[] = {
24245 (char *) "self",(char *) "item",(char *) "which", NULL
24246 };
24247
24248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24250 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24251 if (arg2 == NULL) {
24252 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24253 }
24254 if (obj2) {
24255 {
24256 arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2);
24257 if (PyErr_Occurred()) SWIG_fail;
24258 }
24259 }
24260 {
24261 PyThreadState* __tstate = wxPyBeginAllowThreads();
24262 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
24263
24264 wxPyEndAllowThreads(__tstate);
24265 if (PyErr_Occurred()) SWIG_fail;
24266 }
24267 resultobj = SWIG_PyObj_FromInt((int)result);
24268 return resultobj;
24269 fail:
24270 return NULL;
24271 }
24272
24273
24274 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24275 PyObject *resultobj;
24276 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24277 wxTreeItemId *arg2 = 0 ;
24278 wxPyTreeItemData *result;
24279 PyObject * obj0 = 0 ;
24280 PyObject * obj1 = 0 ;
24281 char *kwnames[] = {
24282 (char *) "self",(char *) "item", NULL
24283 };
24284
24285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
24286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24287 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24288 if (arg2 == NULL) {
24289 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24290 }
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
24294
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0);
24299 return resultobj;
24300 fail:
24301 return NULL;
24302 }
24303
24304
24305 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj;
24307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24308 wxTreeItemId *arg2 = 0 ;
24309 PyObject *result;
24310 PyObject * obj0 = 0 ;
24311 PyObject * obj1 = 0 ;
24312 char *kwnames[] = {
24313 (char *) "self",(char *) "item", NULL
24314 };
24315
24316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
24317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24318 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24319 if (arg2 == NULL) {
24320 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24321 }
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
24325
24326 wxPyEndAllowThreads(__tstate);
24327 if (PyErr_Occurred()) SWIG_fail;
24328 }
24329 resultobj = result;
24330 return resultobj;
24331 fail:
24332 return NULL;
24333 }
24334
24335
24336 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24337 PyObject *resultobj;
24338 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24339 wxTreeItemId *arg2 = 0 ;
24340 wxColour result;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 char *kwnames[] = {
24344 (char *) "self",(char *) "item", NULL
24345 };
24346
24347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
24355 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
24356
24357 wxPyEndAllowThreads(__tstate);
24358 if (PyErr_Occurred()) SWIG_fail;
24359 }
24360 {
24361 wxColour * resultptr;
24362 resultptr = new wxColour((wxColour &) result);
24363 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
24364 }
24365 return resultobj;
24366 fail:
24367 return NULL;
24368 }
24369
24370
24371 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj;
24373 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24374 wxTreeItemId *arg2 = 0 ;
24375 wxColour result;
24376 PyObject * obj0 = 0 ;
24377 PyObject * obj1 = 0 ;
24378 char *kwnames[] = {
24379 (char *) "self",(char *) "item", NULL
24380 };
24381
24382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24384 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24385 if (arg2 == NULL) {
24386 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24387 }
24388 {
24389 PyThreadState* __tstate = wxPyBeginAllowThreads();
24390 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
24391
24392 wxPyEndAllowThreads(__tstate);
24393 if (PyErr_Occurred()) SWIG_fail;
24394 }
24395 {
24396 wxColour * resultptr;
24397 resultptr = new wxColour((wxColour &) result);
24398 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
24399 }
24400 return resultobj;
24401 fail:
24402 return NULL;
24403 }
24404
24405
24406 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24407 PyObject *resultobj;
24408 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24409 wxTreeItemId *arg2 = 0 ;
24410 wxFont result;
24411 PyObject * obj0 = 0 ;
24412 PyObject * obj1 = 0 ;
24413 char *kwnames[] = {
24414 (char *) "self",(char *) "item", NULL
24415 };
24416
24417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
24418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24419 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24420 if (arg2 == NULL) {
24421 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24422 }
24423 {
24424 PyThreadState* __tstate = wxPyBeginAllowThreads();
24425 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
24426
24427 wxPyEndAllowThreads(__tstate);
24428 if (PyErr_Occurred()) SWIG_fail;
24429 }
24430 {
24431 wxFont * resultptr;
24432 resultptr = new wxFont((wxFont &) result);
24433 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
24434 }
24435 return resultobj;
24436 fail:
24437 return NULL;
24438 }
24439
24440
24441 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
24442 PyObject *resultobj;
24443 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24444 wxTreeItemId *arg2 = 0 ;
24445 wxString *arg3 = 0 ;
24446 bool temp3 = False ;
24447 PyObject * obj0 = 0 ;
24448 PyObject * obj1 = 0 ;
24449 PyObject * obj2 = 0 ;
24450 char *kwnames[] = {
24451 (char *) "self",(char *) "item",(char *) "text", NULL
24452 };
24453
24454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
24455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24456 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24457 if (arg2 == NULL) {
24458 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24459 }
24460 {
24461 arg3 = wxString_in_helper(obj2);
24462 if (arg3 == NULL) SWIG_fail;
24463 temp3 = True;
24464 }
24465 {
24466 PyThreadState* __tstate = wxPyBeginAllowThreads();
24467 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
24468
24469 wxPyEndAllowThreads(__tstate);
24470 if (PyErr_Occurred()) SWIG_fail;
24471 }
24472 Py_INCREF(Py_None); resultobj = Py_None;
24473 {
24474 if (temp3)
24475 delete arg3;
24476 }
24477 return resultobj;
24478 fail:
24479 {
24480 if (temp3)
24481 delete arg3;
24482 }
24483 return NULL;
24484 }
24485
24486
24487 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24488 PyObject *resultobj;
24489 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24490 wxTreeItemId *arg2 = 0 ;
24491 int arg3 ;
24492 int arg4 = (int) wxTreeItemIcon_Normal ;
24493 PyObject * obj0 = 0 ;
24494 PyObject * obj1 = 0 ;
24495 PyObject * obj2 = 0 ;
24496 PyObject * obj3 = 0 ;
24497 char *kwnames[] = {
24498 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
24499 };
24500
24501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24503 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24504 if (arg2 == NULL) {
24505 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24506 }
24507 {
24508 arg3 = (int) SWIG_PyObj_AsInt(obj2);
24509 if (PyErr_Occurred()) SWIG_fail;
24510 }
24511 if (obj3) {
24512 {
24513 arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3);
24514 if (PyErr_Occurred()) SWIG_fail;
24515 }
24516 }
24517 {
24518 PyThreadState* __tstate = wxPyBeginAllowThreads();
24519 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
24520
24521 wxPyEndAllowThreads(__tstate);
24522 if (PyErr_Occurred()) SWIG_fail;
24523 }
24524 Py_INCREF(Py_None); resultobj = Py_None;
24525 return resultobj;
24526 fail:
24527 return NULL;
24528 }
24529
24530
24531 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24532 PyObject *resultobj;
24533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24534 wxTreeItemId *arg2 = 0 ;
24535 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
24536 PyObject * obj0 = 0 ;
24537 PyObject * obj1 = 0 ;
24538 PyObject * obj2 = 0 ;
24539 char *kwnames[] = {
24540 (char *) "self",(char *) "item",(char *) "data", NULL
24541 };
24542
24543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24545 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24546 if (arg2 == NULL) {
24547 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24548 }
24549 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
24553
24554 wxPyEndAllowThreads(__tstate);
24555 if (PyErr_Occurred()) SWIG_fail;
24556 }
24557 Py_INCREF(Py_None); resultobj = Py_None;
24558 return resultobj;
24559 fail:
24560 return NULL;
24561 }
24562
24563
24564 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj;
24566 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24567 wxTreeItemId *arg2 = 0 ;
24568 PyObject *arg3 = (PyObject *) 0 ;
24569 PyObject * obj0 = 0 ;
24570 PyObject * obj1 = 0 ;
24571 PyObject * obj2 = 0 ;
24572 char *kwnames[] = {
24573 (char *) "self",(char *) "item",(char *) "obj", NULL
24574 };
24575
24576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24578 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24579 if (arg2 == NULL) {
24580 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24581 }
24582 arg3 = obj2;
24583 {
24584 PyThreadState* __tstate = wxPyBeginAllowThreads();
24585 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
24586
24587 wxPyEndAllowThreads(__tstate);
24588 if (PyErr_Occurred()) SWIG_fail;
24589 }
24590 Py_INCREF(Py_None); resultobj = Py_None;
24591 return resultobj;
24592 fail:
24593 return NULL;
24594 }
24595
24596
24597 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24598 PyObject *resultobj;
24599 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24600 wxTreeItemId *arg2 = 0 ;
24601 bool arg3 = (bool) True ;
24602 PyObject * obj0 = 0 ;
24603 PyObject * obj1 = 0 ;
24604 PyObject * obj2 = 0 ;
24605 char *kwnames[] = {
24606 (char *) "self",(char *) "item",(char *) "has", NULL
24607 };
24608
24609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
24610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24611 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24612 if (arg2 == NULL) {
24613 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24614 }
24615 if (obj2) {
24616 {
24617 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
24618 if (PyErr_Occurred()) SWIG_fail;
24619 }
24620 }
24621 {
24622 PyThreadState* __tstate = wxPyBeginAllowThreads();
24623 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
24624
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24628 Py_INCREF(Py_None); resultobj = Py_None;
24629 return resultobj;
24630 fail:
24631 return NULL;
24632 }
24633
24634
24635 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
24636 PyObject *resultobj;
24637 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24638 wxTreeItemId *arg2 = 0 ;
24639 bool arg3 = (bool) True ;
24640 PyObject * obj0 = 0 ;
24641 PyObject * obj1 = 0 ;
24642 PyObject * obj2 = 0 ;
24643 char *kwnames[] = {
24644 (char *) "self",(char *) "item",(char *) "bold", NULL
24645 };
24646
24647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
24648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24649 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24650 if (arg2 == NULL) {
24651 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24652 }
24653 if (obj2) {
24654 {
24655 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
24656 if (PyErr_Occurred()) SWIG_fail;
24657 }
24658 }
24659 {
24660 PyThreadState* __tstate = wxPyBeginAllowThreads();
24661 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
24662
24663 wxPyEndAllowThreads(__tstate);
24664 if (PyErr_Occurred()) SWIG_fail;
24665 }
24666 Py_INCREF(Py_None); resultobj = Py_None;
24667 return resultobj;
24668 fail:
24669 return NULL;
24670 }
24671
24672
24673 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj;
24675 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24676 wxTreeItemId *arg2 = 0 ;
24677 bool arg3 = (bool) True ;
24678 PyObject * obj0 = 0 ;
24679 PyObject * obj1 = 0 ;
24680 PyObject * obj2 = 0 ;
24681 char *kwnames[] = {
24682 (char *) "self",(char *) "item",(char *) "highlight", NULL
24683 };
24684
24685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
24686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24687 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24688 if (arg2 == NULL) {
24689 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24690 }
24691 if (obj2) {
24692 {
24693 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
24694 if (PyErr_Occurred()) SWIG_fail;
24695 }
24696 }
24697 {
24698 PyThreadState* __tstate = wxPyBeginAllowThreads();
24699 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
24700
24701 wxPyEndAllowThreads(__tstate);
24702 if (PyErr_Occurred()) SWIG_fail;
24703 }
24704 Py_INCREF(Py_None); resultobj = Py_None;
24705 return resultobj;
24706 fail:
24707 return NULL;
24708 }
24709
24710
24711 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24712 PyObject *resultobj;
24713 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24714 wxTreeItemId *arg2 = 0 ;
24715 wxColour *arg3 = 0 ;
24716 wxColour temp3 ;
24717 PyObject * obj0 = 0 ;
24718 PyObject * obj1 = 0 ;
24719 PyObject * obj2 = 0 ;
24720 char *kwnames[] = {
24721 (char *) "self",(char *) "item",(char *) "col", NULL
24722 };
24723
24724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24726 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24727 if (arg2 == NULL) {
24728 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24729 }
24730 {
24731 arg3 = &temp3;
24732 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24733 }
24734 {
24735 PyThreadState* __tstate = wxPyBeginAllowThreads();
24736 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24737
24738 wxPyEndAllowThreads(__tstate);
24739 if (PyErr_Occurred()) SWIG_fail;
24740 }
24741 Py_INCREF(Py_None); resultobj = Py_None;
24742 return resultobj;
24743 fail:
24744 return NULL;
24745 }
24746
24747
24748 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj;
24750 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24751 wxTreeItemId *arg2 = 0 ;
24752 wxColour *arg3 = 0 ;
24753 wxColour temp3 ;
24754 PyObject * obj0 = 0 ;
24755 PyObject * obj1 = 0 ;
24756 PyObject * obj2 = 0 ;
24757 char *kwnames[] = {
24758 (char *) "self",(char *) "item",(char *) "col", NULL
24759 };
24760
24761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24763 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24764 if (arg2 == NULL) {
24765 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24766 }
24767 {
24768 arg3 = &temp3;
24769 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24770 }
24771 {
24772 PyThreadState* __tstate = wxPyBeginAllowThreads();
24773 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
24774
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 Py_INCREF(Py_None); resultobj = Py_None;
24779 return resultobj;
24780 fail:
24781 return NULL;
24782 }
24783
24784
24785 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24786 PyObject *resultobj;
24787 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24788 wxTreeItemId *arg2 = 0 ;
24789 wxFont *arg3 = 0 ;
24790 PyObject * obj0 = 0 ;
24791 PyObject * obj1 = 0 ;
24792 PyObject * obj2 = 0 ;
24793 char *kwnames[] = {
24794 (char *) "self",(char *) "item",(char *) "font", NULL
24795 };
24796
24797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
24798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24799 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24800 if (arg2 == NULL) {
24801 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24802 }
24803 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24804 if (arg3 == NULL) {
24805 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24806 }
24807 {
24808 PyThreadState* __tstate = wxPyBeginAllowThreads();
24809 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
24810
24811 wxPyEndAllowThreads(__tstate);
24812 if (PyErr_Occurred()) SWIG_fail;
24813 }
24814 Py_INCREF(Py_None); resultobj = Py_None;
24815 return resultobj;
24816 fail:
24817 return NULL;
24818 }
24819
24820
24821 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
24822 PyObject *resultobj;
24823 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24824 wxTreeItemId *arg2 = 0 ;
24825 bool result;
24826 PyObject * obj0 = 0 ;
24827 PyObject * obj1 = 0 ;
24828 char *kwnames[] = {
24829 (char *) "self",(char *) "item", NULL
24830 };
24831
24832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
24833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24834 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24835 if (arg2 == NULL) {
24836 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24837 }
24838 {
24839 PyThreadState* __tstate = wxPyBeginAllowThreads();
24840 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
24841
24842 wxPyEndAllowThreads(__tstate);
24843 if (PyErr_Occurred()) SWIG_fail;
24844 }
24845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24846 return resultobj;
24847 fail:
24848 return NULL;
24849 }
24850
24851
24852 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24853 PyObject *resultobj;
24854 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24855 wxTreeItemId *arg2 = 0 ;
24856 bool result;
24857 PyObject * obj0 = 0 ;
24858 PyObject * obj1 = 0 ;
24859 char *kwnames[] = {
24860 (char *) "self",(char *) "item", NULL
24861 };
24862
24863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
24864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24865 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24866 if (arg2 == NULL) {
24867 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24868 }
24869 {
24870 PyThreadState* __tstate = wxPyBeginAllowThreads();
24871 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
24872
24873 wxPyEndAllowThreads(__tstate);
24874 if (PyErr_Occurred()) SWIG_fail;
24875 }
24876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24877 return resultobj;
24878 fail:
24879 return NULL;
24880 }
24881
24882
24883 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
24884 PyObject *resultobj;
24885 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24886 wxTreeItemId *arg2 = 0 ;
24887 bool result;
24888 PyObject * obj0 = 0 ;
24889 PyObject * obj1 = 0 ;
24890 char *kwnames[] = {
24891 (char *) "self",(char *) "item", NULL
24892 };
24893
24894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
24895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24896 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24897 if (arg2 == NULL) {
24898 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24899 }
24900 {
24901 PyThreadState* __tstate = wxPyBeginAllowThreads();
24902 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
24903
24904 wxPyEndAllowThreads(__tstate);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24908 return resultobj;
24909 fail:
24910 return NULL;
24911 }
24912
24913
24914 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
24915 PyObject *resultobj;
24916 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24917 wxTreeItemId *arg2 = 0 ;
24918 bool result;
24919 PyObject * obj0 = 0 ;
24920 PyObject * obj1 = 0 ;
24921 char *kwnames[] = {
24922 (char *) "self",(char *) "item", NULL
24923 };
24924
24925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24927 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24928 if (arg2 == NULL) {
24929 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24930 }
24931 {
24932 PyThreadState* __tstate = wxPyBeginAllowThreads();
24933 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
24934
24935 wxPyEndAllowThreads(__tstate);
24936 if (PyErr_Occurred()) SWIG_fail;
24937 }
24938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24939 return resultobj;
24940 fail:
24941 return NULL;
24942 }
24943
24944
24945 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
24946 PyObject *resultobj;
24947 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24948 wxTreeItemId *arg2 = 0 ;
24949 bool result;
24950 PyObject * obj0 = 0 ;
24951 PyObject * obj1 = 0 ;
24952 char *kwnames[] = {
24953 (char *) "self",(char *) "item", NULL
24954 };
24955
24956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
24957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24958 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24959 if (arg2 == NULL) {
24960 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24961 }
24962 {
24963 PyThreadState* __tstate = wxPyBeginAllowThreads();
24964 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
24965
24966 wxPyEndAllowThreads(__tstate);
24967 if (PyErr_Occurred()) SWIG_fail;
24968 }
24969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24970 return resultobj;
24971 fail:
24972 return NULL;
24973 }
24974
24975
24976 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24977 PyObject *resultobj;
24978 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24979 wxTreeItemId *arg2 = 0 ;
24980 bool arg3 = (bool) True ;
24981 size_t result;
24982 PyObject * obj0 = 0 ;
24983 PyObject * obj1 = 0 ;
24984 PyObject * obj2 = 0 ;
24985 char *kwnames[] = {
24986 (char *) "self",(char *) "item",(char *) "recursively", NULL
24987 };
24988
24989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
24990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24991 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24992 if (arg2 == NULL) {
24993 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24994 }
24995 if (obj2) {
24996 {
24997 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
24998 if (PyErr_Occurred()) SWIG_fail;
24999 }
25000 }
25001 {
25002 PyThreadState* __tstate = wxPyBeginAllowThreads();
25003 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
25004
25005 wxPyEndAllowThreads(__tstate);
25006 if (PyErr_Occurred()) SWIG_fail;
25007 }
25008 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
25009 return resultobj;
25010 fail:
25011 return NULL;
25012 }
25013
25014
25015 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25016 PyObject *resultobj;
25017 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25018 wxTreeItemId result;
25019 PyObject * obj0 = 0 ;
25020 char *kwnames[] = {
25021 (char *) "self", NULL
25022 };
25023
25024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
25025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25026 {
25027 PyThreadState* __tstate = wxPyBeginAllowThreads();
25028 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
25029
25030 wxPyEndAllowThreads(__tstate);
25031 if (PyErr_Occurred()) SWIG_fail;
25032 }
25033 {
25034 wxTreeItemId * resultptr;
25035 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25036 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25037 }
25038 return resultobj;
25039 fail:
25040 return NULL;
25041 }
25042
25043
25044 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
25045 PyObject *resultobj;
25046 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25047 wxTreeItemId result;
25048 PyObject * obj0 = 0 ;
25049 char *kwnames[] = {
25050 (char *) "self", NULL
25051 };
25052
25053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
25054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25055 {
25056 PyThreadState* __tstate = wxPyBeginAllowThreads();
25057 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
25058
25059 wxPyEndAllowThreads(__tstate);
25060 if (PyErr_Occurred()) SWIG_fail;
25061 }
25062 {
25063 wxTreeItemId * resultptr;
25064 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25065 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25066 }
25067 return resultobj;
25068 fail:
25069 return NULL;
25070 }
25071
25072
25073 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
25074 PyObject *resultobj;
25075 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25076 PyObject *result;
25077 PyObject * obj0 = 0 ;
25078 char *kwnames[] = {
25079 (char *) "self", NULL
25080 };
25081
25082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
25083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25084 {
25085 PyThreadState* __tstate = wxPyBeginAllowThreads();
25086 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
25087
25088 wxPyEndAllowThreads(__tstate);
25089 if (PyErr_Occurred()) SWIG_fail;
25090 }
25091 resultobj = result;
25092 return resultobj;
25093 fail:
25094 return NULL;
25095 }
25096
25097
25098 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
25099 PyObject *resultobj;
25100 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25101 wxTreeItemId *arg2 = 0 ;
25102 wxTreeItemId result;
25103 PyObject * obj0 = 0 ;
25104 PyObject * obj1 = 0 ;
25105 char *kwnames[] = {
25106 (char *) "self",(char *) "item", NULL
25107 };
25108
25109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
25110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25111 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25112 if (arg2 == NULL) {
25113 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25114 }
25115 {
25116 PyThreadState* __tstate = wxPyBeginAllowThreads();
25117 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
25118
25119 wxPyEndAllowThreads(__tstate);
25120 if (PyErr_Occurred()) SWIG_fail;
25121 }
25122 {
25123 wxTreeItemId * resultptr;
25124 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25125 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25126 }
25127 return resultobj;
25128 fail:
25129 return NULL;
25130 }
25131
25132
25133 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25134 PyObject *resultobj;
25135 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25136 wxTreeItemId *arg2 = 0 ;
25137 PyObject *result;
25138 PyObject * obj0 = 0 ;
25139 PyObject * obj1 = 0 ;
25140 char *kwnames[] = {
25141 (char *) "self",(char *) "item", NULL
25142 };
25143
25144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
25145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25146 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25147 if (arg2 == NULL) {
25148 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25149 }
25150 {
25151 PyThreadState* __tstate = wxPyBeginAllowThreads();
25152 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
25153
25154 wxPyEndAllowThreads(__tstate);
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 resultobj = result;
25158 return resultobj;
25159 fail:
25160 return NULL;
25161 }
25162
25163
25164 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25165 PyObject *resultobj;
25166 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25167 wxTreeItemId *arg2 = 0 ;
25168 void *arg3 = (void *) 0 ;
25169 PyObject *result;
25170 PyObject * obj0 = 0 ;
25171 PyObject * obj1 = 0 ;
25172 PyObject * obj2 = 0 ;
25173 char *kwnames[] = {
25174 (char *) "self",(char *) "item",(char *) "cookie", NULL
25175 };
25176
25177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
25178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25179 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25180 if (arg2 == NULL) {
25181 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25182 }
25183 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25184 {
25185 PyThreadState* __tstate = wxPyBeginAllowThreads();
25186 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
25187
25188 wxPyEndAllowThreads(__tstate);
25189 if (PyErr_Occurred()) SWIG_fail;
25190 }
25191 resultobj = result;
25192 return resultobj;
25193 fail:
25194 return NULL;
25195 }
25196
25197
25198 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
25199 PyObject *resultobj;
25200 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25201 wxTreeItemId *arg2 = 0 ;
25202 wxTreeItemId result;
25203 PyObject * obj0 = 0 ;
25204 PyObject * obj1 = 0 ;
25205 char *kwnames[] = {
25206 (char *) "self",(char *) "item", NULL
25207 };
25208
25209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
25210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25211 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25212 if (arg2 == NULL) {
25213 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25214 }
25215 {
25216 PyThreadState* __tstate = wxPyBeginAllowThreads();
25217 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
25218
25219 wxPyEndAllowThreads(__tstate);
25220 if (PyErr_Occurred()) SWIG_fail;
25221 }
25222 {
25223 wxTreeItemId * resultptr;
25224 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25225 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25226 }
25227 return resultobj;
25228 fail:
25229 return NULL;
25230 }
25231
25232
25233 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25234 PyObject *resultobj;
25235 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25236 wxTreeItemId *arg2 = 0 ;
25237 wxTreeItemId result;
25238 PyObject * obj0 = 0 ;
25239 PyObject * obj1 = 0 ;
25240 char *kwnames[] = {
25241 (char *) "self",(char *) "item", NULL
25242 };
25243
25244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
25245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25246 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25247 if (arg2 == NULL) {
25248 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25249 }
25250 {
25251 PyThreadState* __tstate = wxPyBeginAllowThreads();
25252 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
25253
25254 wxPyEndAllowThreads(__tstate);
25255 if (PyErr_Occurred()) SWIG_fail;
25256 }
25257 {
25258 wxTreeItemId * resultptr;
25259 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25260 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25261 }
25262 return resultobj;
25263 fail:
25264 return NULL;
25265 }
25266
25267
25268 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
25269 PyObject *resultobj;
25270 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25271 wxTreeItemId *arg2 = 0 ;
25272 wxTreeItemId result;
25273 PyObject * obj0 = 0 ;
25274 PyObject * obj1 = 0 ;
25275 char *kwnames[] = {
25276 (char *) "self",(char *) "item", NULL
25277 };
25278
25279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
25280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25281 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25282 if (arg2 == NULL) {
25283 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25284 }
25285 {
25286 PyThreadState* __tstate = wxPyBeginAllowThreads();
25287 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
25288
25289 wxPyEndAllowThreads(__tstate);
25290 if (PyErr_Occurred()) SWIG_fail;
25291 }
25292 {
25293 wxTreeItemId * resultptr;
25294 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25295 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25296 }
25297 return resultobj;
25298 fail:
25299 return NULL;
25300 }
25301
25302
25303 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25304 PyObject *resultobj;
25305 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25306 wxTreeItemId result;
25307 PyObject * obj0 = 0 ;
25308 char *kwnames[] = {
25309 (char *) "self", NULL
25310 };
25311
25312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
25313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25314 {
25315 PyThreadState* __tstate = wxPyBeginAllowThreads();
25316 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
25317
25318 wxPyEndAllowThreads(__tstate);
25319 if (PyErr_Occurred()) SWIG_fail;
25320 }
25321 {
25322 wxTreeItemId * resultptr;
25323 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25324 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25325 }
25326 return resultobj;
25327 fail:
25328 return NULL;
25329 }
25330
25331
25332 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25333 PyObject *resultobj;
25334 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25335 wxTreeItemId *arg2 = 0 ;
25336 wxTreeItemId result;
25337 PyObject * obj0 = 0 ;
25338 PyObject * obj1 = 0 ;
25339 char *kwnames[] = {
25340 (char *) "self",(char *) "item", NULL
25341 };
25342
25343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
25351 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
25352
25353 wxPyEndAllowThreads(__tstate);
25354 if (PyErr_Occurred()) SWIG_fail;
25355 }
25356 {
25357 wxTreeItemId * resultptr;
25358 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25359 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25360 }
25361 return resultobj;
25362 fail:
25363 return NULL;
25364 }
25365
25366
25367 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25368 PyObject *resultobj;
25369 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25370 wxTreeItemId *arg2 = 0 ;
25371 wxTreeItemId result;
25372 PyObject * obj0 = 0 ;
25373 PyObject * obj1 = 0 ;
25374 char *kwnames[] = {
25375 (char *) "self",(char *) "item", NULL
25376 };
25377
25378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
25379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25380 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25381 if (arg2 == NULL) {
25382 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25383 }
25384 {
25385 PyThreadState* __tstate = wxPyBeginAllowThreads();
25386 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
25387
25388 wxPyEndAllowThreads(__tstate);
25389 if (PyErr_Occurred()) SWIG_fail;
25390 }
25391 {
25392 wxTreeItemId * resultptr;
25393 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25394 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25395 }
25396 return resultobj;
25397 fail:
25398 return NULL;
25399 }
25400
25401
25402 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
25403 PyObject *resultobj;
25404 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25405 wxString *arg2 = 0 ;
25406 int arg3 = (int) -1 ;
25407 int arg4 = (int) -1 ;
25408 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
25409 wxTreeItemId result;
25410 bool temp2 = False ;
25411 PyObject * obj0 = 0 ;
25412 PyObject * obj1 = 0 ;
25413 PyObject * obj2 = 0 ;
25414 PyObject * obj3 = 0 ;
25415 PyObject * obj4 = 0 ;
25416 char *kwnames[] = {
25417 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25418 };
25419
25420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25422 {
25423 arg2 = wxString_in_helper(obj1);
25424 if (arg2 == NULL) SWIG_fail;
25425 temp2 = True;
25426 }
25427 if (obj2) {
25428 {
25429 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25430 if (PyErr_Occurred()) SWIG_fail;
25431 }
25432 }
25433 if (obj3) {
25434 {
25435 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25436 if (PyErr_Occurred()) SWIG_fail;
25437 }
25438 }
25439 if (obj4) {
25440 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25441 }
25442 {
25443 PyThreadState* __tstate = wxPyBeginAllowThreads();
25444 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
25445
25446 wxPyEndAllowThreads(__tstate);
25447 if (PyErr_Occurred()) SWIG_fail;
25448 }
25449 {
25450 wxTreeItemId * resultptr;
25451 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25452 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25453 }
25454 {
25455 if (temp2)
25456 delete arg2;
25457 }
25458 return resultobj;
25459 fail:
25460 {
25461 if (temp2)
25462 delete arg2;
25463 }
25464 return NULL;
25465 }
25466
25467
25468 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj;
25470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25471 wxTreeItemId *arg2 = 0 ;
25472 wxString *arg3 = 0 ;
25473 int arg4 = (int) -1 ;
25474 int arg5 = (int) -1 ;
25475 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25476 wxTreeItemId result;
25477 bool temp3 = False ;
25478 PyObject * obj0 = 0 ;
25479 PyObject * obj1 = 0 ;
25480 PyObject * obj2 = 0 ;
25481 PyObject * obj3 = 0 ;
25482 PyObject * obj4 = 0 ;
25483 PyObject * obj5 = 0 ;
25484 char *kwnames[] = {
25485 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25486 };
25487
25488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25490 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25491 if (arg2 == NULL) {
25492 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25493 }
25494 {
25495 arg3 = wxString_in_helper(obj2);
25496 if (arg3 == NULL) SWIG_fail;
25497 temp3 = True;
25498 }
25499 if (obj3) {
25500 {
25501 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25502 if (PyErr_Occurred()) SWIG_fail;
25503 }
25504 }
25505 if (obj4) {
25506 {
25507 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 }
25511 if (obj5) {
25512 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25513 }
25514 {
25515 PyThreadState* __tstate = wxPyBeginAllowThreads();
25516 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25517
25518 wxPyEndAllowThreads(__tstate);
25519 if (PyErr_Occurred()) SWIG_fail;
25520 }
25521 {
25522 wxTreeItemId * resultptr;
25523 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25524 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25525 }
25526 {
25527 if (temp3)
25528 delete arg3;
25529 }
25530 return resultobj;
25531 fail:
25532 {
25533 if (temp3)
25534 delete arg3;
25535 }
25536 return NULL;
25537 }
25538
25539
25540 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25541 PyObject *resultobj;
25542 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25543 wxTreeItemId *arg2 = 0 ;
25544 wxTreeItemId *arg3 = 0 ;
25545 wxString *arg4 = 0 ;
25546 int arg5 = (int) -1 ;
25547 int arg6 = (int) -1 ;
25548 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25549 wxTreeItemId result;
25550 bool temp4 = False ;
25551 PyObject * obj0 = 0 ;
25552 PyObject * obj1 = 0 ;
25553 PyObject * obj2 = 0 ;
25554 PyObject * obj3 = 0 ;
25555 PyObject * obj4 = 0 ;
25556 PyObject * obj5 = 0 ;
25557 PyObject * obj6 = 0 ;
25558 char *kwnames[] = {
25559 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25560 };
25561
25562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25564 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25565 if (arg2 == NULL) {
25566 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25567 }
25568 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25569 if (arg3 == NULL) {
25570 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25571 }
25572 {
25573 arg4 = wxString_in_helper(obj3);
25574 if (arg4 == NULL) SWIG_fail;
25575 temp4 = True;
25576 }
25577 if (obj4) {
25578 {
25579 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 }
25583 if (obj5) {
25584 {
25585 arg6 = (int) SWIG_PyObj_AsInt(obj5);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 }
25588 }
25589 if (obj6) {
25590 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25591 }
25592 {
25593 PyThreadState* __tstate = wxPyBeginAllowThreads();
25594 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25595
25596 wxPyEndAllowThreads(__tstate);
25597 if (PyErr_Occurred()) SWIG_fail;
25598 }
25599 {
25600 wxTreeItemId * resultptr;
25601 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25602 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25603 }
25604 {
25605 if (temp4)
25606 delete arg4;
25607 }
25608 return resultobj;
25609 fail:
25610 {
25611 if (temp4)
25612 delete arg4;
25613 }
25614 return NULL;
25615 }
25616
25617
25618 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
25619 PyObject *resultobj;
25620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25621 wxTreeItemId *arg2 = 0 ;
25622 size_t arg3 ;
25623 wxString *arg4 = 0 ;
25624 int arg5 = (int) -1 ;
25625 int arg6 = (int) -1 ;
25626 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
25627 wxTreeItemId result;
25628 bool temp4 = False ;
25629 PyObject * obj0 = 0 ;
25630 PyObject * obj1 = 0 ;
25631 PyObject * obj2 = 0 ;
25632 PyObject * obj3 = 0 ;
25633 PyObject * obj4 = 0 ;
25634 PyObject * obj5 = 0 ;
25635 PyObject * obj6 = 0 ;
25636 char *kwnames[] = {
25637 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25638 };
25639
25640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25642 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25643 if (arg2 == NULL) {
25644 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25645 }
25646 {
25647 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
25648 if (PyErr_Occurred()) SWIG_fail;
25649 }
25650 {
25651 arg4 = wxString_in_helper(obj3);
25652 if (arg4 == NULL) SWIG_fail;
25653 temp4 = True;
25654 }
25655 if (obj4) {
25656 {
25657 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25658 if (PyErr_Occurred()) SWIG_fail;
25659 }
25660 }
25661 if (obj5) {
25662 {
25663 arg6 = (int) SWIG_PyObj_AsInt(obj5);
25664 if (PyErr_Occurred()) SWIG_fail;
25665 }
25666 }
25667 if (obj6) {
25668 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25669 }
25670 {
25671 PyThreadState* __tstate = wxPyBeginAllowThreads();
25672 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
25673
25674 wxPyEndAllowThreads(__tstate);
25675 if (PyErr_Occurred()) SWIG_fail;
25676 }
25677 {
25678 wxTreeItemId * resultptr;
25679 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25680 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25681 }
25682 {
25683 if (temp4)
25684 delete arg4;
25685 }
25686 return resultobj;
25687 fail:
25688 {
25689 if (temp4)
25690 delete arg4;
25691 }
25692 return NULL;
25693 }
25694
25695
25696 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25697 PyObject *resultobj;
25698 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25699 wxTreeItemId *arg2 = 0 ;
25700 wxString *arg3 = 0 ;
25701 int arg4 = (int) -1 ;
25702 int arg5 = (int) -1 ;
25703 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
25704 wxTreeItemId result;
25705 bool temp3 = False ;
25706 PyObject * obj0 = 0 ;
25707 PyObject * obj1 = 0 ;
25708 PyObject * obj2 = 0 ;
25709 PyObject * obj3 = 0 ;
25710 PyObject * obj4 = 0 ;
25711 PyObject * obj5 = 0 ;
25712 char *kwnames[] = {
25713 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
25714 };
25715
25716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25718 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25719 if (arg2 == NULL) {
25720 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25721 }
25722 {
25723 arg3 = wxString_in_helper(obj2);
25724 if (arg3 == NULL) SWIG_fail;
25725 temp3 = True;
25726 }
25727 if (obj3) {
25728 {
25729 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25730 if (PyErr_Occurred()) SWIG_fail;
25731 }
25732 }
25733 if (obj4) {
25734 {
25735 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25736 if (PyErr_Occurred()) SWIG_fail;
25737 }
25738 }
25739 if (obj5) {
25740 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25741 }
25742 {
25743 PyThreadState* __tstate = wxPyBeginAllowThreads();
25744 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
25745
25746 wxPyEndAllowThreads(__tstate);
25747 if (PyErr_Occurred()) SWIG_fail;
25748 }
25749 {
25750 wxTreeItemId * resultptr;
25751 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25752 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
25753 }
25754 {
25755 if (temp3)
25756 delete arg3;
25757 }
25758 return resultobj;
25759 fail:
25760 {
25761 if (temp3)
25762 delete arg3;
25763 }
25764 return NULL;
25765 }
25766
25767
25768 static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
25769 PyObject *resultobj;
25770 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25771 wxTreeItemId *arg2 = 0 ;
25772 PyObject * obj0 = 0 ;
25773 PyObject * obj1 = 0 ;
25774 char *kwnames[] = {
25775 (char *) "self",(char *) "item", NULL
25776 };
25777
25778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
25779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25780 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25781 if (arg2 == NULL) {
25782 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25783 }
25784 {
25785 PyThreadState* __tstate = wxPyBeginAllowThreads();
25786 (arg1)->Delete((wxTreeItemId const &)*arg2);
25787
25788 wxPyEndAllowThreads(__tstate);
25789 if (PyErr_Occurred()) SWIG_fail;
25790 }
25791 Py_INCREF(Py_None); resultobj = Py_None;
25792 return resultobj;
25793 fail:
25794 return NULL;
25795 }
25796
25797
25798 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25799 PyObject *resultobj;
25800 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25801 wxTreeItemId *arg2 = 0 ;
25802 PyObject * obj0 = 0 ;
25803 PyObject * obj1 = 0 ;
25804 char *kwnames[] = {
25805 (char *) "self",(char *) "item", NULL
25806 };
25807
25808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
25809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25810 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25811 if (arg2 == NULL) {
25812 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25813 }
25814 {
25815 PyThreadState* __tstate = wxPyBeginAllowThreads();
25816 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
25817
25818 wxPyEndAllowThreads(__tstate);
25819 if (PyErr_Occurred()) SWIG_fail;
25820 }
25821 Py_INCREF(Py_None); resultobj = Py_None;
25822 return resultobj;
25823 fail:
25824 return NULL;
25825 }
25826
25827
25828 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
25829 PyObject *resultobj;
25830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25831 PyObject * obj0 = 0 ;
25832 char *kwnames[] = {
25833 (char *) "self", NULL
25834 };
25835
25836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
25837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25838 {
25839 PyThreadState* __tstate = wxPyBeginAllowThreads();
25840 (arg1)->DeleteAllItems();
25841
25842 wxPyEndAllowThreads(__tstate);
25843 if (PyErr_Occurred()) SWIG_fail;
25844 }
25845 Py_INCREF(Py_None); resultobj = Py_None;
25846 return resultobj;
25847 fail:
25848 return NULL;
25849 }
25850
25851
25852 static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
25853 PyObject *resultobj;
25854 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25855 wxTreeItemId *arg2 = 0 ;
25856 PyObject * obj0 = 0 ;
25857 PyObject * obj1 = 0 ;
25858 char *kwnames[] = {
25859 (char *) "self",(char *) "item", NULL
25860 };
25861
25862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
25863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25864 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25865 if (arg2 == NULL) {
25866 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25867 }
25868 {
25869 PyThreadState* __tstate = wxPyBeginAllowThreads();
25870 (arg1)->Expand((wxTreeItemId const &)*arg2);
25871
25872 wxPyEndAllowThreads(__tstate);
25873 if (PyErr_Occurred()) SWIG_fail;
25874 }
25875 Py_INCREF(Py_None); resultobj = Py_None;
25876 return resultobj;
25877 fail:
25878 return NULL;
25879 }
25880
25881
25882 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
25883 PyObject *resultobj;
25884 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25885 wxTreeItemId *arg2 = 0 ;
25886 PyObject * obj0 = 0 ;
25887 PyObject * obj1 = 0 ;
25888 char *kwnames[] = {
25889 (char *) "self",(char *) "item", NULL
25890 };
25891
25892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
25893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25894 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25895 if (arg2 == NULL) {
25896 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25897 }
25898 {
25899 PyThreadState* __tstate = wxPyBeginAllowThreads();
25900 (arg1)->Collapse((wxTreeItemId const &)*arg2);
25901
25902 wxPyEndAllowThreads(__tstate);
25903 if (PyErr_Occurred()) SWIG_fail;
25904 }
25905 Py_INCREF(Py_None); resultobj = Py_None;
25906 return resultobj;
25907 fail:
25908 return NULL;
25909 }
25910
25911
25912 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
25913 PyObject *resultobj;
25914 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25915 wxTreeItemId *arg2 = 0 ;
25916 PyObject * obj0 = 0 ;
25917 PyObject * obj1 = 0 ;
25918 char *kwnames[] = {
25919 (char *) "self",(char *) "item", NULL
25920 };
25921
25922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
25923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25924 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25925 if (arg2 == NULL) {
25926 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25927 }
25928 {
25929 PyThreadState* __tstate = wxPyBeginAllowThreads();
25930 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
25931
25932 wxPyEndAllowThreads(__tstate);
25933 if (PyErr_Occurred()) SWIG_fail;
25934 }
25935 Py_INCREF(Py_None); resultobj = Py_None;
25936 return resultobj;
25937 fail:
25938 return NULL;
25939 }
25940
25941
25942 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
25943 PyObject *resultobj;
25944 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25945 wxTreeItemId *arg2 = 0 ;
25946 PyObject * obj0 = 0 ;
25947 PyObject * obj1 = 0 ;
25948 char *kwnames[] = {
25949 (char *) "self",(char *) "item", NULL
25950 };
25951
25952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
25953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25954 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25955 if (arg2 == NULL) {
25956 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25957 }
25958 {
25959 PyThreadState* __tstate = wxPyBeginAllowThreads();
25960 (arg1)->Toggle((wxTreeItemId const &)*arg2);
25961
25962 wxPyEndAllowThreads(__tstate);
25963 if (PyErr_Occurred()) SWIG_fail;
25964 }
25965 Py_INCREF(Py_None); resultobj = Py_None;
25966 return resultobj;
25967 fail:
25968 return NULL;
25969 }
25970
25971
25972 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
25973 PyObject *resultobj;
25974 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25975 PyObject * obj0 = 0 ;
25976 char *kwnames[] = {
25977 (char *) "self", NULL
25978 };
25979
25980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
25981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 (arg1)->Unselect();
25985
25986 wxPyEndAllowThreads(__tstate);
25987 if (PyErr_Occurred()) SWIG_fail;
25988 }
25989 Py_INCREF(Py_None); resultobj = Py_None;
25990 return resultobj;
25991 fail:
25992 return NULL;
25993 }
25994
25995
25996 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
25997 PyObject *resultobj;
25998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25999 wxTreeItemId *arg2 = 0 ;
26000 PyObject * obj0 = 0 ;
26001 PyObject * obj1 = 0 ;
26002 char *kwnames[] = {
26003 (char *) "self",(char *) "item", NULL
26004 };
26005
26006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
26007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26008 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26009 if (arg2 == NULL) {
26010 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26011 }
26012 {
26013 PyThreadState* __tstate = wxPyBeginAllowThreads();
26014 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
26015
26016 wxPyEndAllowThreads(__tstate);
26017 if (PyErr_Occurred()) SWIG_fail;
26018 }
26019 Py_INCREF(Py_None); resultobj = Py_None;
26020 return resultobj;
26021 fail:
26022 return NULL;
26023 }
26024
26025
26026 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
26027 PyObject *resultobj;
26028 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26029 PyObject * obj0 = 0 ;
26030 char *kwnames[] = {
26031 (char *) "self", NULL
26032 };
26033
26034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
26035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26036 {
26037 PyThreadState* __tstate = wxPyBeginAllowThreads();
26038 (arg1)->UnselectAll();
26039
26040 wxPyEndAllowThreads(__tstate);
26041 if (PyErr_Occurred()) SWIG_fail;
26042 }
26043 Py_INCREF(Py_None); resultobj = Py_None;
26044 return resultobj;
26045 fail:
26046 return NULL;
26047 }
26048
26049
26050 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26051 PyObject *resultobj;
26052 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26053 wxTreeItemId *arg2 = 0 ;
26054 bool arg3 = (bool) True ;
26055 PyObject * obj0 = 0 ;
26056 PyObject * obj1 = 0 ;
26057 PyObject * obj2 = 0 ;
26058 char *kwnames[] = {
26059 (char *) "self",(char *) "item",(char *) "select", NULL
26060 };
26061
26062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
26063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26064 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26065 if (arg2 == NULL) {
26066 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26067 }
26068 if (obj2) {
26069 {
26070 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
26071 if (PyErr_Occurred()) SWIG_fail;
26072 }
26073 }
26074 {
26075 PyThreadState* __tstate = wxPyBeginAllowThreads();
26076 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
26077
26078 wxPyEndAllowThreads(__tstate);
26079 if (PyErr_Occurred()) SWIG_fail;
26080 }
26081 Py_INCREF(Py_None); resultobj = Py_None;
26082 return resultobj;
26083 fail:
26084 return NULL;
26085 }
26086
26087
26088 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26089 PyObject *resultobj;
26090 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26091 wxTreeItemId *arg2 = 0 ;
26092 PyObject * obj0 = 0 ;
26093 PyObject * obj1 = 0 ;
26094 char *kwnames[] = {
26095 (char *) "self",(char *) "item", NULL
26096 };
26097
26098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
26099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26100 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26101 if (arg2 == NULL) {
26102 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26103 }
26104 {
26105 PyThreadState* __tstate = wxPyBeginAllowThreads();
26106 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
26107
26108 wxPyEndAllowThreads(__tstate);
26109 if (PyErr_Occurred()) SWIG_fail;
26110 }
26111 Py_INCREF(Py_None); resultobj = Py_None;
26112 return resultobj;
26113 fail:
26114 return NULL;
26115 }
26116
26117
26118 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26119 PyObject *resultobj;
26120 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26121 wxTreeItemId *arg2 = 0 ;
26122 PyObject * obj0 = 0 ;
26123 PyObject * obj1 = 0 ;
26124 char *kwnames[] = {
26125 (char *) "self",(char *) "item", NULL
26126 };
26127
26128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
26129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26130 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26131 if (arg2 == NULL) {
26132 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26133 }
26134 {
26135 PyThreadState* __tstate = wxPyBeginAllowThreads();
26136 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
26137
26138 wxPyEndAllowThreads(__tstate);
26139 if (PyErr_Occurred()) SWIG_fail;
26140 }
26141 Py_INCREF(Py_None); resultobj = Py_None;
26142 return resultobj;
26143 fail:
26144 return NULL;
26145 }
26146
26147
26148 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
26149 PyObject *resultobj;
26150 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26151 wxTreeItemId *arg2 = 0 ;
26152 PyObject * obj0 = 0 ;
26153 PyObject * obj1 = 0 ;
26154 char *kwnames[] = {
26155 (char *) "self",(char *) "item", NULL
26156 };
26157
26158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
26159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26160 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26161 if (arg2 == NULL) {
26162 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26163 }
26164 {
26165 PyThreadState* __tstate = wxPyBeginAllowThreads();
26166 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
26167
26168 wxPyEndAllowThreads(__tstate);
26169 if (PyErr_Occurred()) SWIG_fail;
26170 }
26171 Py_INCREF(Py_None); resultobj = Py_None;
26172 return resultobj;
26173 fail:
26174 return NULL;
26175 }
26176
26177
26178 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26179 PyObject *resultobj;
26180 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26181 wxTreeItemId *arg2 = 0 ;
26182 PyObject * obj0 = 0 ;
26183 PyObject * obj1 = 0 ;
26184 char *kwnames[] = {
26185 (char *) "self",(char *) "item", NULL
26186 };
26187
26188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
26189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26190 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26191 if (arg2 == NULL) {
26192 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26193 }
26194 {
26195 PyThreadState* __tstate = wxPyBeginAllowThreads();
26196 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
26197
26198 wxPyEndAllowThreads(__tstate);
26199 if (PyErr_Occurred()) SWIG_fail;
26200 }
26201 Py_INCREF(Py_None); resultobj = Py_None;
26202 return resultobj;
26203 fail:
26204 return NULL;
26205 }
26206
26207
26208 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
26209 PyObject *resultobj;
26210 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26211 wxTextCtrl *result;
26212 PyObject * obj0 = 0 ;
26213 char *kwnames[] = {
26214 (char *) "self", NULL
26215 };
26216
26217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
26218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26219 {
26220 PyThreadState* __tstate = wxPyBeginAllowThreads();
26221 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
26222
26223 wxPyEndAllowThreads(__tstate);
26224 if (PyErr_Occurred()) SWIG_fail;
26225 }
26226 {
26227 resultobj = wxPyMake_wxObject(result);
26228 }
26229 return resultobj;
26230 fail:
26231 return NULL;
26232 }
26233
26234
26235 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26236 PyObject *resultobj;
26237 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26238 wxTreeItemId *arg2 = 0 ;
26239 bool arg3 = (bool) False ;
26240 PyObject * obj0 = 0 ;
26241 PyObject * obj1 = 0 ;
26242 PyObject * obj2 = 0 ;
26243 char *kwnames[] = {
26244 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
26245 };
26246
26247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
26248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26249 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26250 if (arg2 == NULL) {
26251 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26252 }
26253 if (obj2) {
26254 {
26255 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
26256 if (PyErr_Occurred()) SWIG_fail;
26257 }
26258 }
26259 {
26260 PyThreadState* __tstate = wxPyBeginAllowThreads();
26261 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
26262
26263 wxPyEndAllowThreads(__tstate);
26264 if (PyErr_Occurred()) SWIG_fail;
26265 }
26266 Py_INCREF(Py_None); resultobj = Py_None;
26267 return resultobj;
26268 fail:
26269 return NULL;
26270 }
26271
26272
26273 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26274 PyObject *resultobj;
26275 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26276 wxTreeItemId *arg2 = 0 ;
26277 PyObject * obj0 = 0 ;
26278 PyObject * obj1 = 0 ;
26279 char *kwnames[] = {
26280 (char *) "self",(char *) "item", NULL
26281 };
26282
26283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
26284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26285 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26286 if (arg2 == NULL) {
26287 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26288 }
26289 {
26290 PyThreadState* __tstate = wxPyBeginAllowThreads();
26291 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
26292
26293 wxPyEndAllowThreads(__tstate);
26294 if (PyErr_Occurred()) SWIG_fail;
26295 }
26296 Py_INCREF(Py_None); resultobj = Py_None;
26297 return resultobj;
26298 fail:
26299 return NULL;
26300 }
26301
26302
26303 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
26304 PyObject *resultobj;
26305 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26306 wxPoint *arg2 = 0 ;
26307 int *arg3 = 0 ;
26308 wxTreeItemId result;
26309 wxPoint temp2 ;
26310 int temp3 ;
26311 PyObject * obj0 = 0 ;
26312 PyObject * obj1 = 0 ;
26313 char *kwnames[] = {
26314 (char *) "self",(char *) "point", NULL
26315 };
26316
26317 arg3 = &temp3;
26318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
26319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26320 {
26321 arg2 = &temp2;
26322 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26323 }
26324 {
26325 PyThreadState* __tstate = wxPyBeginAllowThreads();
26326 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
26327
26328 wxPyEndAllowThreads(__tstate);
26329 if (PyErr_Occurred()) SWIG_fail;
26330 }
26331 {
26332 wxTreeItemId * resultptr;
26333 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26334 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
26335 }
26336 {
26337 PyObject *o = PyInt_FromLong((long) (*arg3));
26338 resultobj = t_output_helper(resultobj,o);
26339 }
26340 return resultobj;
26341 fail:
26342 return NULL;
26343 }
26344
26345
26346 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
26347 PyObject *resultobj;
26348 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26349 wxTreeItemId *arg2 = 0 ;
26350 bool arg3 = (bool) False ;
26351 PyObject *result;
26352 PyObject * obj0 = 0 ;
26353 PyObject * obj1 = 0 ;
26354 PyObject * obj2 = 0 ;
26355 char *kwnames[] = {
26356 (char *) "self",(char *) "item",(char *) "textOnly", NULL
26357 };
26358
26359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
26360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26361 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26362 if (arg2 == NULL) {
26363 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26364 }
26365 if (obj2) {
26366 {
26367 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
26368 if (PyErr_Occurred()) SWIG_fail;
26369 }
26370 }
26371 {
26372 PyThreadState* __tstate = wxPyBeginAllowThreads();
26373 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
26374
26375 wxPyEndAllowThreads(__tstate);
26376 if (PyErr_Occurred()) SWIG_fail;
26377 }
26378 resultobj = result;
26379 return resultobj;
26380 fail:
26381 return NULL;
26382 }
26383
26384
26385 static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
26386 PyObject *obj;
26387 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26388 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
26389 Py_INCREF(obj);
26390 return Py_BuildValue((char *)"");
26391 }
26392 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
26393 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
26394 return 1;
26395 }
26396
26397
26398 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
26399 PyObject *pyobj;
26400
26401 {
26402 #if wxUSE_UNICODE
26403 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26404 #else
26405 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
26406 #endif
26407 }
26408 return pyobj;
26409 }
26410
26411
26412 static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj;
26414 wxWindow *arg1 = (wxWindow *) 0 ;
26415 int arg2 = (int) (int)-1 ;
26416 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
26417 wxString *arg3 = (wxString *) &arg3_defvalue ;
26418 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26419 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26420 wxSize const &arg5_defvalue = wxDefaultSize ;
26421 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26422 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26423 wxString const &arg7_defvalue = wxPyEmptyString ;
26424 wxString *arg7 = (wxString *) &arg7_defvalue ;
26425 int arg8 = (int) 0 ;
26426 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
26427 wxString *arg9 = (wxString *) &arg9_defvalue ;
26428 wxGenericDirCtrl *result;
26429 bool temp3 = False ;
26430 wxPoint temp4 ;
26431 wxSize temp5 ;
26432 bool temp7 = False ;
26433 bool temp9 = False ;
26434 PyObject * obj0 = 0 ;
26435 PyObject * obj1 = 0 ;
26436 PyObject * obj2 = 0 ;
26437 PyObject * obj3 = 0 ;
26438 PyObject * obj4 = 0 ;
26439 PyObject * obj5 = 0 ;
26440 PyObject * obj6 = 0 ;
26441 PyObject * obj7 = 0 ;
26442 PyObject * obj8 = 0 ;
26443 char *kwnames[] = {
26444 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26445 };
26446
26447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
26448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26449 if (obj1) {
26450 {
26451 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
26452 if (PyErr_Occurred()) SWIG_fail;
26453 }
26454 }
26455 if (obj2) {
26456 {
26457 arg3 = wxString_in_helper(obj2);
26458 if (arg3 == NULL) SWIG_fail;
26459 temp3 = True;
26460 }
26461 }
26462 if (obj3) {
26463 {
26464 arg4 = &temp4;
26465 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26466 }
26467 }
26468 if (obj4) {
26469 {
26470 arg5 = &temp5;
26471 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26472 }
26473 }
26474 if (obj5) {
26475 {
26476 arg6 = (long) SWIG_PyObj_AsLong(obj5);
26477 if (PyErr_Occurred()) SWIG_fail;
26478 }
26479 }
26480 if (obj6) {
26481 {
26482 arg7 = wxString_in_helper(obj6);
26483 if (arg7 == NULL) SWIG_fail;
26484 temp7 = True;
26485 }
26486 }
26487 if (obj7) {
26488 {
26489 arg8 = (int) SWIG_PyObj_AsInt(obj7);
26490 if (PyErr_Occurred()) SWIG_fail;
26491 }
26492 }
26493 if (obj8) {
26494 {
26495 arg9 = wxString_in_helper(obj8);
26496 if (arg9 == NULL) SWIG_fail;
26497 temp9 = True;
26498 }
26499 }
26500 {
26501 PyThreadState* __tstate = wxPyBeginAllowThreads();
26502 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
26503
26504 wxPyEndAllowThreads(__tstate);
26505 if (PyErr_Occurred()) SWIG_fail;
26506 }
26507 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1);
26508 {
26509 if (temp3)
26510 delete arg3;
26511 }
26512 {
26513 if (temp7)
26514 delete arg7;
26515 }
26516 {
26517 if (temp9)
26518 delete arg9;
26519 }
26520 return resultobj;
26521 fail:
26522 {
26523 if (temp3)
26524 delete arg3;
26525 }
26526 {
26527 if (temp7)
26528 delete arg7;
26529 }
26530 {
26531 if (temp9)
26532 delete arg9;
26533 }
26534 return NULL;
26535 }
26536
26537
26538 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
26539 PyObject *resultobj;
26540 wxGenericDirCtrl *result;
26541 char *kwnames[] = {
26542 NULL
26543 };
26544
26545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
26546 {
26547 PyThreadState* __tstate = wxPyBeginAllowThreads();
26548 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
26549
26550 wxPyEndAllowThreads(__tstate);
26551 if (PyErr_Occurred()) SWIG_fail;
26552 }
26553 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1);
26554 return resultobj;
26555 fail:
26556 return NULL;
26557 }
26558
26559
26560 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
26561 PyObject *resultobj;
26562 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26563 wxWindow *arg2 = (wxWindow *) 0 ;
26564 int arg3 = (int) (int)-1 ;
26565 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
26566 wxString *arg4 = (wxString *) &arg4_defvalue ;
26567 wxPoint const &arg5_defvalue = wxDefaultPosition ;
26568 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
26569 wxSize const &arg6_defvalue = wxDefaultSize ;
26570 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
26571 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
26572 wxString const &arg8_defvalue = wxPyEmptyString ;
26573 wxString *arg8 = (wxString *) &arg8_defvalue ;
26574 int arg9 = (int) 0 ;
26575 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
26576 wxString *arg10 = (wxString *) &arg10_defvalue ;
26577 bool result;
26578 bool temp4 = False ;
26579 wxPoint temp5 ;
26580 wxSize temp6 ;
26581 bool temp8 = False ;
26582 bool temp10 = False ;
26583 PyObject * obj0 = 0 ;
26584 PyObject * obj1 = 0 ;
26585 PyObject * obj2 = 0 ;
26586 PyObject * obj3 = 0 ;
26587 PyObject * obj4 = 0 ;
26588 PyObject * obj5 = 0 ;
26589 PyObject * obj6 = 0 ;
26590 PyObject * obj7 = 0 ;
26591 PyObject * obj8 = 0 ;
26592 PyObject * obj9 = 0 ;
26593 char *kwnames[] = {
26594 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
26595 };
26596
26597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
26598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26599 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26600 if (obj2) {
26601 {
26602 arg3 = (int const) SWIG_PyObj_AsInt(obj2);
26603 if (PyErr_Occurred()) SWIG_fail;
26604 }
26605 }
26606 if (obj3) {
26607 {
26608 arg4 = wxString_in_helper(obj3);
26609 if (arg4 == NULL) SWIG_fail;
26610 temp4 = True;
26611 }
26612 }
26613 if (obj4) {
26614 {
26615 arg5 = &temp5;
26616 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
26617 }
26618 }
26619 if (obj5) {
26620 {
26621 arg6 = &temp6;
26622 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
26623 }
26624 }
26625 if (obj6) {
26626 {
26627 arg7 = (long) SWIG_PyObj_AsLong(obj6);
26628 if (PyErr_Occurred()) SWIG_fail;
26629 }
26630 }
26631 if (obj7) {
26632 {
26633 arg8 = wxString_in_helper(obj7);
26634 if (arg8 == NULL) SWIG_fail;
26635 temp8 = True;
26636 }
26637 }
26638 if (obj8) {
26639 {
26640 arg9 = (int) SWIG_PyObj_AsInt(obj8);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 }
26644 if (obj9) {
26645 {
26646 arg10 = wxString_in_helper(obj9);
26647 if (arg10 == NULL) SWIG_fail;
26648 temp10 = True;
26649 }
26650 }
26651 {
26652 PyThreadState* __tstate = wxPyBeginAllowThreads();
26653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
26654
26655 wxPyEndAllowThreads(__tstate);
26656 if (PyErr_Occurred()) SWIG_fail;
26657 }
26658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26659 {
26660 if (temp4)
26661 delete arg4;
26662 }
26663 {
26664 if (temp8)
26665 delete arg8;
26666 }
26667 {
26668 if (temp10)
26669 delete arg10;
26670 }
26671 return resultobj;
26672 fail:
26673 {
26674 if (temp4)
26675 delete arg4;
26676 }
26677 {
26678 if (temp8)
26679 delete arg8;
26680 }
26681 {
26682 if (temp10)
26683 delete arg10;
26684 }
26685 return NULL;
26686 }
26687
26688
26689 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26690 PyObject *resultobj;
26691 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26692 wxString *arg2 = 0 ;
26693 bool result;
26694 bool temp2 = False ;
26695 PyObject * obj0 = 0 ;
26696 PyObject * obj1 = 0 ;
26697 char *kwnames[] = {
26698 (char *) "self",(char *) "path", NULL
26699 };
26700
26701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
26702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26703 {
26704 arg2 = wxString_in_helper(obj1);
26705 if (arg2 == NULL) SWIG_fail;
26706 temp2 = True;
26707 }
26708 {
26709 PyThreadState* __tstate = wxPyBeginAllowThreads();
26710 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
26711
26712 wxPyEndAllowThreads(__tstate);
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26716 {
26717 if (temp2)
26718 delete arg2;
26719 }
26720 return resultobj;
26721 fail:
26722 {
26723 if (temp2)
26724 delete arg2;
26725 }
26726 return NULL;
26727 }
26728
26729
26730 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26731 PyObject *resultobj;
26732 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26733 wxString result;
26734 PyObject * obj0 = 0 ;
26735 char *kwnames[] = {
26736 (char *) "self", NULL
26737 };
26738
26739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
26740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26741 {
26742 PyThreadState* __tstate = wxPyBeginAllowThreads();
26743 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
26744
26745 wxPyEndAllowThreads(__tstate);
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 {
26749 #if wxUSE_UNICODE
26750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26751 #else
26752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26753 #endif
26754 }
26755 return resultobj;
26756 fail:
26757 return NULL;
26758 }
26759
26760
26761 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26762 PyObject *resultobj;
26763 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26764 wxString *arg2 = 0 ;
26765 bool temp2 = False ;
26766 PyObject * obj0 = 0 ;
26767 PyObject * obj1 = 0 ;
26768 char *kwnames[] = {
26769 (char *) "self",(char *) "path", NULL
26770 };
26771
26772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
26773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26774 {
26775 arg2 = wxString_in_helper(obj1);
26776 if (arg2 == NULL) SWIG_fail;
26777 temp2 = True;
26778 }
26779 {
26780 PyThreadState* __tstate = wxPyBeginAllowThreads();
26781 (arg1)->SetDefaultPath((wxString const &)*arg2);
26782
26783 wxPyEndAllowThreads(__tstate);
26784 if (PyErr_Occurred()) SWIG_fail;
26785 }
26786 Py_INCREF(Py_None); resultobj = Py_None;
26787 {
26788 if (temp2)
26789 delete arg2;
26790 }
26791 return resultobj;
26792 fail:
26793 {
26794 if (temp2)
26795 delete arg2;
26796 }
26797 return NULL;
26798 }
26799
26800
26801 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26802 PyObject *resultobj;
26803 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26804 wxString result;
26805 PyObject * obj0 = 0 ;
26806 char *kwnames[] = {
26807 (char *) "self", NULL
26808 };
26809
26810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
26811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26812 {
26813 PyThreadState* __tstate = wxPyBeginAllowThreads();
26814 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
26815
26816 wxPyEndAllowThreads(__tstate);
26817 if (PyErr_Occurred()) SWIG_fail;
26818 }
26819 {
26820 #if wxUSE_UNICODE
26821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26822 #else
26823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26824 #endif
26825 }
26826 return resultobj;
26827 fail:
26828 return NULL;
26829 }
26830
26831
26832 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
26833 PyObject *resultobj;
26834 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26835 wxString result;
26836 PyObject * obj0 = 0 ;
26837 char *kwnames[] = {
26838 (char *) "self", NULL
26839 };
26840
26841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
26842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26843 {
26844 PyThreadState* __tstate = wxPyBeginAllowThreads();
26845 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
26846
26847 wxPyEndAllowThreads(__tstate);
26848 if (PyErr_Occurred()) SWIG_fail;
26849 }
26850 {
26851 #if wxUSE_UNICODE
26852 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26853 #else
26854 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26855 #endif
26856 }
26857 return resultobj;
26858 fail:
26859 return NULL;
26860 }
26861
26862
26863 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
26864 PyObject *resultobj;
26865 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26866 wxString *arg2 = 0 ;
26867 bool temp2 = False ;
26868 PyObject * obj0 = 0 ;
26869 PyObject * obj1 = 0 ;
26870 char *kwnames[] = {
26871 (char *) "self",(char *) "path", NULL
26872 };
26873
26874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
26875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26876 {
26877 arg2 = wxString_in_helper(obj1);
26878 if (arg2 == NULL) SWIG_fail;
26879 temp2 = True;
26880 }
26881 {
26882 PyThreadState* __tstate = wxPyBeginAllowThreads();
26883 (arg1)->SetPath((wxString const &)*arg2);
26884
26885 wxPyEndAllowThreads(__tstate);
26886 if (PyErr_Occurred()) SWIG_fail;
26887 }
26888 Py_INCREF(Py_None); resultobj = Py_None;
26889 {
26890 if (temp2)
26891 delete arg2;
26892 }
26893 return resultobj;
26894 fail:
26895 {
26896 if (temp2)
26897 delete arg2;
26898 }
26899 return NULL;
26900 }
26901
26902
26903 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
26904 PyObject *resultobj;
26905 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26906 bool arg2 ;
26907 PyObject * obj0 = 0 ;
26908 PyObject * obj1 = 0 ;
26909 char *kwnames[] = {
26910 (char *) "self",(char *) "show", NULL
26911 };
26912
26913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
26914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26915 {
26916 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 {
26920 PyThreadState* __tstate = wxPyBeginAllowThreads();
26921 (arg1)->ShowHidden(arg2);
26922
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 Py_INCREF(Py_None); resultobj = Py_None;
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj;
26935 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26936 bool result;
26937 PyObject * obj0 = 0 ;
26938 char *kwnames[] = {
26939 (char *) "self", NULL
26940 };
26941
26942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
26943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26944 {
26945 PyThreadState* __tstate = wxPyBeginAllowThreads();
26946 result = (bool)(arg1)->GetShowHidden();
26947
26948 wxPyEndAllowThreads(__tstate);
26949 if (PyErr_Occurred()) SWIG_fail;
26950 }
26951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26952 return resultobj;
26953 fail:
26954 return NULL;
26955 }
26956
26957
26958 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
26959 PyObject *resultobj;
26960 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26961 wxString result;
26962 PyObject * obj0 = 0 ;
26963 char *kwnames[] = {
26964 (char *) "self", NULL
26965 };
26966
26967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
26968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26969 {
26970 PyThreadState* __tstate = wxPyBeginAllowThreads();
26971 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
26972
26973 wxPyEndAllowThreads(__tstate);
26974 if (PyErr_Occurred()) SWIG_fail;
26975 }
26976 {
26977 #if wxUSE_UNICODE
26978 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26979 #else
26980 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26981 #endif
26982 }
26983 return resultobj;
26984 fail:
26985 return NULL;
26986 }
26987
26988
26989 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
26990 PyObject *resultobj;
26991 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
26992 wxString *arg2 = 0 ;
26993 bool temp2 = False ;
26994 PyObject * obj0 = 0 ;
26995 PyObject * obj1 = 0 ;
26996 char *kwnames[] = {
26997 (char *) "self",(char *) "filter", NULL
26998 };
26999
27000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
27001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27002 {
27003 arg2 = wxString_in_helper(obj1);
27004 if (arg2 == NULL) SWIG_fail;
27005 temp2 = True;
27006 }
27007 {
27008 PyThreadState* __tstate = wxPyBeginAllowThreads();
27009 (arg1)->SetFilter((wxString const &)*arg2);
27010
27011 wxPyEndAllowThreads(__tstate);
27012 if (PyErr_Occurred()) SWIG_fail;
27013 }
27014 Py_INCREF(Py_None); resultobj = Py_None;
27015 {
27016 if (temp2)
27017 delete arg2;
27018 }
27019 return resultobj;
27020 fail:
27021 {
27022 if (temp2)
27023 delete arg2;
27024 }
27025 return NULL;
27026 }
27027
27028
27029 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
27030 PyObject *resultobj;
27031 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27032 int result;
27033 PyObject * obj0 = 0 ;
27034 char *kwnames[] = {
27035 (char *) "self", NULL
27036 };
27037
27038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
27039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27040 {
27041 PyThreadState* __tstate = wxPyBeginAllowThreads();
27042 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
27043
27044 wxPyEndAllowThreads(__tstate);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 resultobj = SWIG_PyObj_FromInt((int)result);
27048 return resultobj;
27049 fail:
27050 return NULL;
27051 }
27052
27053
27054 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
27055 PyObject *resultobj;
27056 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27057 int arg2 ;
27058 PyObject * obj0 = 0 ;
27059 PyObject * obj1 = 0 ;
27060 char *kwnames[] = {
27061 (char *) "self",(char *) "n", NULL
27062 };
27063
27064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
27065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27066 {
27067 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27068 if (PyErr_Occurred()) SWIG_fail;
27069 }
27070 {
27071 PyThreadState* __tstate = wxPyBeginAllowThreads();
27072 (arg1)->SetFilterIndex(arg2);
27073
27074 wxPyEndAllowThreads(__tstate);
27075 if (PyErr_Occurred()) SWIG_fail;
27076 }
27077 Py_INCREF(Py_None); resultobj = Py_None;
27078 return resultobj;
27079 fail:
27080 return NULL;
27081 }
27082
27083
27084 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
27085 PyObject *resultobj;
27086 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27087 wxTreeItemId result;
27088 PyObject * obj0 = 0 ;
27089 char *kwnames[] = {
27090 (char *) "self", NULL
27091 };
27092
27093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
27094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27095 {
27096 PyThreadState* __tstate = wxPyBeginAllowThreads();
27097 result = (arg1)->GetRootId();
27098
27099 wxPyEndAllowThreads(__tstate);
27100 if (PyErr_Occurred()) SWIG_fail;
27101 }
27102 {
27103 wxTreeItemId * resultptr;
27104 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27105 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
27106 }
27107 return resultobj;
27108 fail:
27109 return NULL;
27110 }
27111
27112
27113 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27114 PyObject *resultobj;
27115 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27116 wxPyTreeCtrl *result;
27117 PyObject * obj0 = 0 ;
27118 char *kwnames[] = {
27119 (char *) "self", NULL
27120 };
27121
27122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
27123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27124 {
27125 PyThreadState* __tstate = wxPyBeginAllowThreads();
27126 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
27127
27128 wxPyEndAllowThreads(__tstate);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 {
27132 resultobj = wxPyMake_wxObject(result);
27133 }
27134 return resultobj;
27135 fail:
27136 return NULL;
27137 }
27138
27139
27140 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27141 PyObject *resultobj;
27142 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27143 wxDirFilterListCtrl *result;
27144 PyObject * obj0 = 0 ;
27145 char *kwnames[] = {
27146 (char *) "self", NULL
27147 };
27148
27149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
27150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27151 {
27152 PyThreadState* __tstate = wxPyBeginAllowThreads();
27153 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
27154
27155 wxPyEndAllowThreads(__tstate);
27156 if (PyErr_Occurred()) SWIG_fail;
27157 }
27158 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0);
27159 return resultobj;
27160 fail:
27161 return NULL;
27162 }
27163
27164
27165 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
27166 PyObject *resultobj;
27167 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27168 wxTreeItemId arg2 ;
27169 wxString *arg3 = 0 ;
27170 bool *arg4 = 0 ;
27171 wxTreeItemId result;
27172 wxTreeItemId *argp2 ;
27173 bool temp3 = False ;
27174 bool temp4 ;
27175 PyObject * obj0 = 0 ;
27176 PyObject * obj1 = 0 ;
27177 PyObject * obj2 = 0 ;
27178 char *kwnames[] = {
27179 (char *) "self",(char *) "parentId",(char *) "path", NULL
27180 };
27181
27182 arg4 = &temp4;
27183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27185 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
27186 arg2 = *argp2;
27187 {
27188 arg3 = wxString_in_helper(obj2);
27189 if (arg3 == NULL) SWIG_fail;
27190 temp3 = True;
27191 }
27192 {
27193 PyThreadState* __tstate = wxPyBeginAllowThreads();
27194 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
27195
27196 wxPyEndAllowThreads(__tstate);
27197 if (PyErr_Occurred()) SWIG_fail;
27198 }
27199 {
27200 wxTreeItemId * resultptr;
27201 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27202 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1);
27203 }
27204 {
27205 PyObject *o = PyInt_FromLong((long) (*arg4));
27206 resultobj = t_output_helper(resultobj,o);
27207 }
27208 {
27209 if (temp3)
27210 delete arg3;
27211 }
27212 return resultobj;
27213 fail:
27214 {
27215 if (temp3)
27216 delete arg3;
27217 }
27218 return NULL;
27219 }
27220
27221
27222 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
27223 PyObject *resultobj;
27224 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27225 PyObject * obj0 = 0 ;
27226 char *kwnames[] = {
27227 (char *) "self", NULL
27228 };
27229
27230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
27231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27232 {
27233 PyThreadState* __tstate = wxPyBeginAllowThreads();
27234 (arg1)->DoResize();
27235
27236 wxPyEndAllowThreads(__tstate);
27237 if (PyErr_Occurred()) SWIG_fail;
27238 }
27239 Py_INCREF(Py_None); resultobj = Py_None;
27240 return resultobj;
27241 fail:
27242 return NULL;
27243 }
27244
27245
27246 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
27247 PyObject *resultobj;
27248 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27249 PyObject * obj0 = 0 ;
27250 char *kwnames[] = {
27251 (char *) "self", NULL
27252 };
27253
27254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
27255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27256 {
27257 PyThreadState* __tstate = wxPyBeginAllowThreads();
27258 (arg1)->ReCreateTree();
27259
27260 wxPyEndAllowThreads(__tstate);
27261 if (PyErr_Occurred()) SWIG_fail;
27262 }
27263 Py_INCREF(Py_None); resultobj = Py_None;
27264 return resultobj;
27265 fail:
27266 return NULL;
27267 }
27268
27269
27270 static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
27271 PyObject *obj;
27272 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27273 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
27274 Py_INCREF(obj);
27275 return Py_BuildValue((char *)"");
27276 }
27277 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27278 PyObject *resultobj;
27279 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27280 int arg2 = (int) (int)-1 ;
27281 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27282 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27283 wxSize const &arg4_defvalue = wxDefaultSize ;
27284 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27285 long arg5 = (long) 0 ;
27286 wxDirFilterListCtrl *result;
27287 wxPoint temp3 ;
27288 wxSize temp4 ;
27289 PyObject * obj0 = 0 ;
27290 PyObject * obj1 = 0 ;
27291 PyObject * obj2 = 0 ;
27292 PyObject * obj3 = 0 ;
27293 PyObject * obj4 = 0 ;
27294 char *kwnames[] = {
27295 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27296 };
27297
27298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27300 if (obj1) {
27301 {
27302 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
27303 if (PyErr_Occurred()) SWIG_fail;
27304 }
27305 }
27306 if (obj2) {
27307 {
27308 arg3 = &temp3;
27309 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27310 }
27311 }
27312 if (obj3) {
27313 {
27314 arg4 = &temp4;
27315 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27316 }
27317 }
27318 if (obj4) {
27319 {
27320 arg5 = (long) SWIG_PyObj_AsLong(obj4);
27321 if (PyErr_Occurred()) SWIG_fail;
27322 }
27323 }
27324 {
27325 PyThreadState* __tstate = wxPyBeginAllowThreads();
27326 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
27327
27328 wxPyEndAllowThreads(__tstate);
27329 if (PyErr_Occurred()) SWIG_fail;
27330 }
27331 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1);
27332 return resultobj;
27333 fail:
27334 return NULL;
27335 }
27336
27337
27338 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27339 PyObject *resultobj;
27340 wxDirFilterListCtrl *result;
27341 char *kwnames[] = {
27342 NULL
27343 };
27344
27345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
27346 {
27347 PyThreadState* __tstate = wxPyBeginAllowThreads();
27348 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
27349
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1);
27354 return resultobj;
27355 fail:
27356 return NULL;
27357 }
27358
27359
27360 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj;
27362 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27363 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
27364 int arg3 = (int) (int)-1 ;
27365 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27366 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27367 wxSize const &arg5_defvalue = wxDefaultSize ;
27368 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27369 long arg6 = (long) 0 ;
27370 bool result;
27371 wxPoint temp4 ;
27372 wxSize temp5 ;
27373 PyObject * obj0 = 0 ;
27374 PyObject * obj1 = 0 ;
27375 PyObject * obj2 = 0 ;
27376 PyObject * obj3 = 0 ;
27377 PyObject * obj4 = 0 ;
27378 PyObject * obj5 = 0 ;
27379 char *kwnames[] = {
27380 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
27381 };
27382
27383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27385 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27386 if (obj2) {
27387 {
27388 arg3 = (int const) SWIG_PyObj_AsInt(obj2);
27389 if (PyErr_Occurred()) SWIG_fail;
27390 }
27391 }
27392 if (obj3) {
27393 {
27394 arg4 = &temp4;
27395 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27396 }
27397 }
27398 if (obj4) {
27399 {
27400 arg5 = &temp5;
27401 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27402 }
27403 }
27404 if (obj5) {
27405 {
27406 arg6 = (long) SWIG_PyObj_AsLong(obj5);
27407 if (PyErr_Occurred()) SWIG_fail;
27408 }
27409 }
27410 {
27411 PyThreadState* __tstate = wxPyBeginAllowThreads();
27412 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
27413
27414 wxPyEndAllowThreads(__tstate);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27418 return resultobj;
27419 fail:
27420 return NULL;
27421 }
27422
27423
27424 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
27425 PyObject *resultobj;
27426 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
27427 wxString *arg2 = 0 ;
27428 int arg3 ;
27429 bool temp2 = False ;
27430 PyObject * obj0 = 0 ;
27431 PyObject * obj1 = 0 ;
27432 PyObject * obj2 = 0 ;
27433 char *kwnames[] = {
27434 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
27435 };
27436
27437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
27438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27439 {
27440 arg2 = wxString_in_helper(obj1);
27441 if (arg2 == NULL) SWIG_fail;
27442 temp2 = True;
27443 }
27444 {
27445 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27446 if (PyErr_Occurred()) SWIG_fail;
27447 }
27448 {
27449 PyThreadState* __tstate = wxPyBeginAllowThreads();
27450 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
27451
27452 wxPyEndAllowThreads(__tstate);
27453 if (PyErr_Occurred()) SWIG_fail;
27454 }
27455 Py_INCREF(Py_None); resultobj = Py_None;
27456 {
27457 if (temp2)
27458 delete arg2;
27459 }
27460 return resultobj;
27461 fail:
27462 {
27463 if (temp2)
27464 delete arg2;
27465 }
27466 return NULL;
27467 }
27468
27469
27470 static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
27471 PyObject *obj;
27472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27473 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
27474 Py_INCREF(obj);
27475 return Py_BuildValue((char *)"");
27476 }
27477 static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27478 PyObject *resultobj;
27479 wxWindow *arg1 = (wxWindow *) 0 ;
27480 int arg2 ;
27481 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27482 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
27483 wxSize const &arg4_defvalue = wxDefaultSize ;
27484 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
27485 long arg5 = (long) 0 ;
27486 wxValidator const &arg6_defvalue = wxDefaultValidator ;
27487 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
27488 wxString const &arg7_defvalue = wxPyControlNameStr ;
27489 wxString *arg7 = (wxString *) &arg7_defvalue ;
27490 wxPyControl *result;
27491 wxPoint temp3 ;
27492 wxSize temp4 ;
27493 bool temp7 = False ;
27494 PyObject * obj0 = 0 ;
27495 PyObject * obj1 = 0 ;
27496 PyObject * obj2 = 0 ;
27497 PyObject * obj3 = 0 ;
27498 PyObject * obj4 = 0 ;
27499 PyObject * obj5 = 0 ;
27500 PyObject * obj6 = 0 ;
27501 char *kwnames[] = {
27502 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
27503 };
27504
27505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27507 {
27508 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
27509 if (PyErr_Occurred()) SWIG_fail;
27510 }
27511 if (obj2) {
27512 {
27513 arg3 = &temp3;
27514 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27515 }
27516 }
27517 if (obj3) {
27518 {
27519 arg4 = &temp4;
27520 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
27521 }
27522 }
27523 if (obj4) {
27524 {
27525 arg5 = (long) SWIG_PyObj_AsLong(obj4);
27526 if (PyErr_Occurred()) SWIG_fail;
27527 }
27528 }
27529 if (obj5) {
27530 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27531 if (arg6 == NULL) {
27532 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
27533 }
27534 }
27535 if (obj6) {
27536 {
27537 arg7 = wxString_in_helper(obj6);
27538 if (arg7 == NULL) SWIG_fail;
27539 temp7 = True;
27540 }
27541 }
27542 {
27543 PyThreadState* __tstate = wxPyBeginAllowThreads();
27544 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
27545
27546 wxPyEndAllowThreads(__tstate);
27547 if (PyErr_Occurred()) SWIG_fail;
27548 }
27549 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1);
27550 {
27551 if (temp7)
27552 delete arg7;
27553 }
27554 return resultobj;
27555 fail:
27556 {
27557 if (temp7)
27558 delete arg7;
27559 }
27560 return NULL;
27561 }
27562
27563
27564 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
27565 PyObject *resultobj;
27566 wxPyControl *arg1 = (wxPyControl *) 0 ;
27567 PyObject *arg2 = (PyObject *) 0 ;
27568 PyObject *arg3 = (PyObject *) 0 ;
27569 PyObject * obj0 = 0 ;
27570 PyObject * obj1 = 0 ;
27571 PyObject * obj2 = 0 ;
27572 char *kwnames[] = {
27573 (char *) "self",(char *) "self",(char *) "_class", NULL
27574 };
27575
27576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27578 arg2 = obj1;
27579 arg3 = obj2;
27580 {
27581 PyThreadState* __tstate = wxPyBeginAllowThreads();
27582 (arg1)->_setCallbackInfo(arg2,arg3);
27583
27584 wxPyEndAllowThreads(__tstate);
27585 if (PyErr_Occurred()) SWIG_fail;
27586 }
27587 Py_INCREF(Py_None); resultobj = Py_None;
27588 return resultobj;
27589 fail:
27590 return NULL;
27591 }
27592
27593
27594 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27595 PyObject *resultobj;
27596 wxPyControl *arg1 = (wxPyControl *) 0 ;
27597 int arg2 ;
27598 int arg3 ;
27599 int arg4 ;
27600 int arg5 ;
27601 PyObject * obj0 = 0 ;
27602 PyObject * obj1 = 0 ;
27603 PyObject * obj2 = 0 ;
27604 PyObject * obj3 = 0 ;
27605 PyObject * obj4 = 0 ;
27606 char *kwnames[] = {
27607 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27608 };
27609
27610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27612 {
27613 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27614 if (PyErr_Occurred()) SWIG_fail;
27615 }
27616 {
27617 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27618 if (PyErr_Occurred()) SWIG_fail;
27619 }
27620 {
27621 arg4 = (int) SWIG_PyObj_AsInt(obj3);
27622 if (PyErr_Occurred()) SWIG_fail;
27623 }
27624 {
27625 arg5 = (int) SWIG_PyObj_AsInt(obj4);
27626 if (PyErr_Occurred()) SWIG_fail;
27627 }
27628 {
27629 PyThreadState* __tstate = wxPyBeginAllowThreads();
27630 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
27631
27632 wxPyEndAllowThreads(__tstate);
27633 if (PyErr_Occurred()) SWIG_fail;
27634 }
27635 Py_INCREF(Py_None); resultobj = Py_None;
27636 return resultobj;
27637 fail:
27638 return NULL;
27639 }
27640
27641
27642 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27643 PyObject *resultobj;
27644 wxPyControl *arg1 = (wxPyControl *) 0 ;
27645 int arg2 ;
27646 int arg3 ;
27647 int arg4 ;
27648 int arg5 ;
27649 int arg6 = (int) wxSIZE_AUTO ;
27650 PyObject * obj0 = 0 ;
27651 PyObject * obj1 = 0 ;
27652 PyObject * obj2 = 0 ;
27653 PyObject * obj3 = 0 ;
27654 PyObject * obj4 = 0 ;
27655 PyObject * obj5 = 0 ;
27656 char *kwnames[] = {
27657 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
27658 };
27659
27660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27662 {
27663 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27664 if (PyErr_Occurred()) SWIG_fail;
27665 }
27666 {
27667 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27668 if (PyErr_Occurred()) SWIG_fail;
27669 }
27670 {
27671 arg4 = (int) SWIG_PyObj_AsInt(obj3);
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 {
27675 arg5 = (int) SWIG_PyObj_AsInt(obj4);
27676 if (PyErr_Occurred()) SWIG_fail;
27677 }
27678 if (obj5) {
27679 {
27680 arg6 = (int) SWIG_PyObj_AsInt(obj5);
27681 if (PyErr_Occurred()) SWIG_fail;
27682 }
27683 }
27684 {
27685 PyThreadState* __tstate = wxPyBeginAllowThreads();
27686 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
27687
27688 wxPyEndAllowThreads(__tstate);
27689 if (PyErr_Occurred()) SWIG_fail;
27690 }
27691 Py_INCREF(Py_None); resultobj = Py_None;
27692 return resultobj;
27693 fail:
27694 return NULL;
27695 }
27696
27697
27698 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27699 PyObject *resultobj;
27700 wxPyControl *arg1 = (wxPyControl *) 0 ;
27701 int arg2 ;
27702 int arg3 ;
27703 PyObject * obj0 = 0 ;
27704 PyObject * obj1 = 0 ;
27705 PyObject * obj2 = 0 ;
27706 char *kwnames[] = {
27707 (char *) "self",(char *) "width",(char *) "height", NULL
27708 };
27709
27710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
27711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27712 {
27713 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27714 if (PyErr_Occurred()) SWIG_fail;
27715 }
27716 {
27717 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27718 if (PyErr_Occurred()) SWIG_fail;
27719 }
27720 {
27721 PyThreadState* __tstate = wxPyBeginAllowThreads();
27722 (arg1)->base_DoSetClientSize(arg2,arg3);
27723
27724 wxPyEndAllowThreads(__tstate);
27725 if (PyErr_Occurred()) SWIG_fail;
27726 }
27727 Py_INCREF(Py_None); resultobj = Py_None;
27728 return resultobj;
27729 fail:
27730 return NULL;
27731 }
27732
27733
27734 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27735 PyObject *resultobj;
27736 wxPyControl *arg1 = (wxPyControl *) 0 ;
27737 int arg2 ;
27738 int arg3 ;
27739 PyObject * obj0 = 0 ;
27740 PyObject * obj1 = 0 ;
27741 PyObject * obj2 = 0 ;
27742 char *kwnames[] = {
27743 (char *) "self",(char *) "x",(char *) "y", NULL
27744 };
27745
27746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
27747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27748 {
27749 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27750 if (PyErr_Occurred()) SWIG_fail;
27751 }
27752 {
27753 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27754 if (PyErr_Occurred()) SWIG_fail;
27755 }
27756 {
27757 PyThreadState* __tstate = wxPyBeginAllowThreads();
27758 (arg1)->base_DoSetVirtualSize(arg2,arg3);
27759
27760 wxPyEndAllowThreads(__tstate);
27761 if (PyErr_Occurred()) SWIG_fail;
27762 }
27763 Py_INCREF(Py_None); resultobj = Py_None;
27764 return resultobj;
27765 fail:
27766 return NULL;
27767 }
27768
27769
27770 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27771 PyObject *resultobj;
27772 wxPyControl *arg1 = (wxPyControl *) 0 ;
27773 int *arg2 = (int *) 0 ;
27774 int *arg3 = (int *) 0 ;
27775 int temp2 ;
27776 int temp3 ;
27777 PyObject * obj0 = 0 ;
27778 char *kwnames[] = {
27779 (char *) "self", NULL
27780 };
27781
27782 arg2 = &temp2;
27783 arg3 = &temp3;
27784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
27785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27786 {
27787 PyThreadState* __tstate = wxPyBeginAllowThreads();
27788 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
27789
27790 wxPyEndAllowThreads(__tstate);
27791 if (PyErr_Occurred()) SWIG_fail;
27792 }
27793 Py_INCREF(Py_None); resultobj = Py_None;
27794 {
27795 PyObject *o = PyInt_FromLong((long) (*arg2));
27796 resultobj = t_output_helper(resultobj,o);
27797 }
27798 {
27799 PyObject *o = PyInt_FromLong((long) (*arg3));
27800 resultobj = t_output_helper(resultobj,o);
27801 }
27802 return resultobj;
27803 fail:
27804 return NULL;
27805 }
27806
27807
27808 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27809 PyObject *resultobj;
27810 wxPyControl *arg1 = (wxPyControl *) 0 ;
27811 int *arg2 = (int *) 0 ;
27812 int *arg3 = (int *) 0 ;
27813 int temp2 ;
27814 int temp3 ;
27815 PyObject * obj0 = 0 ;
27816 char *kwnames[] = {
27817 (char *) "self", NULL
27818 };
27819
27820 arg2 = &temp2;
27821 arg3 = &temp3;
27822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
27823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27824 {
27825 PyThreadState* __tstate = wxPyBeginAllowThreads();
27826 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
27827
27828 wxPyEndAllowThreads(__tstate);
27829 if (PyErr_Occurred()) SWIG_fail;
27830 }
27831 Py_INCREF(Py_None); resultobj = Py_None;
27832 {
27833 PyObject *o = PyInt_FromLong((long) (*arg2));
27834 resultobj = t_output_helper(resultobj,o);
27835 }
27836 {
27837 PyObject *o = PyInt_FromLong((long) (*arg3));
27838 resultobj = t_output_helper(resultobj,o);
27839 }
27840 return resultobj;
27841 fail:
27842 return NULL;
27843 }
27844
27845
27846 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
27847 PyObject *resultobj;
27848 wxPyControl *arg1 = (wxPyControl *) 0 ;
27849 int *arg2 = (int *) 0 ;
27850 int *arg3 = (int *) 0 ;
27851 int temp2 ;
27852 int temp3 ;
27853 PyObject * obj0 = 0 ;
27854 char *kwnames[] = {
27855 (char *) "self", NULL
27856 };
27857
27858 arg2 = &temp2;
27859 arg3 = &temp3;
27860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
27861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27862 {
27863 PyThreadState* __tstate = wxPyBeginAllowThreads();
27864 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
27865
27866 wxPyEndAllowThreads(__tstate);
27867 if (PyErr_Occurred()) SWIG_fail;
27868 }
27869 Py_INCREF(Py_None); resultobj = Py_None;
27870 {
27871 PyObject *o = PyInt_FromLong((long) (*arg2));
27872 resultobj = t_output_helper(resultobj,o);
27873 }
27874 {
27875 PyObject *o = PyInt_FromLong((long) (*arg3));
27876 resultobj = t_output_helper(resultobj,o);
27877 }
27878 return resultobj;
27879 fail:
27880 return NULL;
27881 }
27882
27883
27884 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27885 PyObject *resultobj;
27886 wxPyControl *arg1 = (wxPyControl *) 0 ;
27887 wxSize result;
27888 PyObject * obj0 = 0 ;
27889 char *kwnames[] = {
27890 (char *) "self", NULL
27891 };
27892
27893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
27894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27895 {
27896 PyThreadState* __tstate = wxPyBeginAllowThreads();
27897 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
27898
27899 wxPyEndAllowThreads(__tstate);
27900 if (PyErr_Occurred()) SWIG_fail;
27901 }
27902 {
27903 wxSize * resultptr;
27904 resultptr = new wxSize((wxSize &) result);
27905 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
27906 }
27907 return resultobj;
27908 fail:
27909 return NULL;
27910 }
27911
27912
27913 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
27914 PyObject *resultobj;
27915 wxPyControl *arg1 = (wxPyControl *) 0 ;
27916 wxSize result;
27917 PyObject * obj0 = 0 ;
27918 char *kwnames[] = {
27919 (char *) "self", NULL
27920 };
27921
27922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
27923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27924 {
27925 PyThreadState* __tstate = wxPyBeginAllowThreads();
27926 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
27927
27928 wxPyEndAllowThreads(__tstate);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 {
27932 wxSize * resultptr;
27933 resultptr = new wxSize((wxSize &) result);
27934 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
27935 }
27936 return resultobj;
27937 fail:
27938 return NULL;
27939 }
27940
27941
27942 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
27943 PyObject *resultobj;
27944 wxPyControl *arg1 = (wxPyControl *) 0 ;
27945 PyObject * obj0 = 0 ;
27946 char *kwnames[] = {
27947 (char *) "self", NULL
27948 };
27949
27950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
27951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27952 {
27953 PyThreadState* __tstate = wxPyBeginAllowThreads();
27954 (arg1)->base_InitDialog();
27955
27956 wxPyEndAllowThreads(__tstate);
27957 if (PyErr_Occurred()) SWIG_fail;
27958 }
27959 Py_INCREF(Py_None); resultobj = Py_None;
27960 return resultobj;
27961 fail:
27962 return NULL;
27963 }
27964
27965
27966 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27967 PyObject *resultobj;
27968 wxPyControl *arg1 = (wxPyControl *) 0 ;
27969 bool result;
27970 PyObject * obj0 = 0 ;
27971 char *kwnames[] = {
27972 (char *) "self", NULL
27973 };
27974
27975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
27976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27977 {
27978 PyThreadState* __tstate = wxPyBeginAllowThreads();
27979 result = (bool)(arg1)->base_TransferDataToWindow();
27980
27981 wxPyEndAllowThreads(__tstate);
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
27984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27985 return resultobj;
27986 fail:
27987 return NULL;
27988 }
27989
27990
27991 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27992 PyObject *resultobj;
27993 wxPyControl *arg1 = (wxPyControl *) 0 ;
27994 bool result;
27995 PyObject * obj0 = 0 ;
27996 char *kwnames[] = {
27997 (char *) "self", NULL
27998 };
27999
28000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
28001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28002 {
28003 PyThreadState* __tstate = wxPyBeginAllowThreads();
28004 result = (bool)(arg1)->base_TransferDataFromWindow();
28005
28006 wxPyEndAllowThreads(__tstate);
28007 if (PyErr_Occurred()) SWIG_fail;
28008 }
28009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28010 return resultobj;
28011 fail:
28012 return NULL;
28013 }
28014
28015
28016 static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28017 PyObject *resultobj;
28018 wxPyControl *arg1 = (wxPyControl *) 0 ;
28019 bool result;
28020 PyObject * obj0 = 0 ;
28021 char *kwnames[] = {
28022 (char *) "self", NULL
28023 };
28024
28025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
28026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28027 {
28028 PyThreadState* __tstate = wxPyBeginAllowThreads();
28029 result = (bool)(arg1)->base_Validate();
28030
28031 wxPyEndAllowThreads(__tstate);
28032 if (PyErr_Occurred()) SWIG_fail;
28033 }
28034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28035 return resultobj;
28036 fail:
28037 return NULL;
28038 }
28039
28040
28041 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
28042 PyObject *resultobj;
28043 wxPyControl *arg1 = (wxPyControl *) 0 ;
28044 bool result;
28045 PyObject * obj0 = 0 ;
28046 char *kwnames[] = {
28047 (char *) "self", NULL
28048 };
28049
28050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
28051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28052 {
28053 PyThreadState* __tstate = wxPyBeginAllowThreads();
28054 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
28055
28056 wxPyEndAllowThreads(__tstate);
28057 if (PyErr_Occurred()) SWIG_fail;
28058 }
28059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28060 return resultobj;
28061 fail:
28062 return NULL;
28063 }
28064
28065
28066 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
28067 PyObject *resultobj;
28068 wxPyControl *arg1 = (wxPyControl *) 0 ;
28069 bool result;
28070 PyObject * obj0 = 0 ;
28071 char *kwnames[] = {
28072 (char *) "self", NULL
28073 };
28074
28075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
28076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28077 {
28078 PyThreadState* __tstate = wxPyBeginAllowThreads();
28079 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
28080
28081 wxPyEndAllowThreads(__tstate);
28082 if (PyErr_Occurred()) SWIG_fail;
28083 }
28084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28085 return resultobj;
28086 fail:
28087 return NULL;
28088 }
28089
28090
28091 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28092 PyObject *resultobj;
28093 wxPyControl *arg1 = (wxPyControl *) 0 ;
28094 wxSize result;
28095 PyObject * obj0 = 0 ;
28096 char *kwnames[] = {
28097 (char *) "self", NULL
28098 };
28099
28100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
28101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28102 {
28103 PyThreadState* __tstate = wxPyBeginAllowThreads();
28104 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
28105
28106 wxPyEndAllowThreads(__tstate);
28107 if (PyErr_Occurred()) SWIG_fail;
28108 }
28109 {
28110 wxSize * resultptr;
28111 resultptr = new wxSize((wxSize &) result);
28112 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
28113 }
28114 return resultobj;
28115 fail:
28116 return NULL;
28117 }
28118
28119
28120 static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28121 PyObject *resultobj;
28122 wxPyControl *arg1 = (wxPyControl *) 0 ;
28123 wxWindow *arg2 = (wxWindow *) 0 ;
28124 PyObject * obj0 = 0 ;
28125 PyObject * obj1 = 0 ;
28126 char *kwnames[] = {
28127 (char *) "self",(char *) "child", NULL
28128 };
28129
28130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
28131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28132 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28133 {
28134 PyThreadState* __tstate = wxPyBeginAllowThreads();
28135 (arg1)->base_AddChild(arg2);
28136
28137 wxPyEndAllowThreads(__tstate);
28138 if (PyErr_Occurred()) SWIG_fail;
28139 }
28140 Py_INCREF(Py_None); resultobj = Py_None;
28141 return resultobj;
28142 fail:
28143 return NULL;
28144 }
28145
28146
28147 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28148 PyObject *resultobj;
28149 wxPyControl *arg1 = (wxPyControl *) 0 ;
28150 wxWindow *arg2 = (wxWindow *) 0 ;
28151 PyObject * obj0 = 0 ;
28152 PyObject * obj1 = 0 ;
28153 char *kwnames[] = {
28154 (char *) "self",(char *) "child", NULL
28155 };
28156
28157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
28158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28159 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28160 {
28161 PyThreadState* __tstate = wxPyBeginAllowThreads();
28162 (arg1)->base_RemoveChild(arg2);
28163
28164 wxPyEndAllowThreads(__tstate);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 Py_INCREF(Py_None); resultobj = Py_None;
28168 return resultobj;
28169 fail:
28170 return NULL;
28171 }
28172
28173
28174 static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
28175 PyObject *obj;
28176 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28177 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
28178 Py_INCREF(obj);
28179 return Py_BuildValue((char *)"");
28180 }
28181 static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
28182 PyObject *resultobj;
28183 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28184 int arg2 = (int) 0 ;
28185 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28186 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28187 wxHelpEvent *result;
28188 wxPoint temp3 ;
28189 PyObject * obj0 = 0 ;
28190 PyObject * obj1 = 0 ;
28191 PyObject * obj2 = 0 ;
28192 char *kwnames[] = {
28193 (char *) "type",(char *) "winid",(char *) "pt", NULL
28194 };
28195
28196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
28197 if (obj0) {
28198 {
28199 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
28200 if (PyErr_Occurred()) SWIG_fail;
28201 }
28202 }
28203 if (obj1) {
28204 {
28205 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28206 if (PyErr_Occurred()) SWIG_fail;
28207 }
28208 }
28209 if (obj2) {
28210 {
28211 arg3 = &temp3;
28212 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28213 }
28214 }
28215 {
28216 PyThreadState* __tstate = wxPyBeginAllowThreads();
28217 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
28218
28219 wxPyEndAllowThreads(__tstate);
28220 if (PyErr_Occurred()) SWIG_fail;
28221 }
28222 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1);
28223 return resultobj;
28224 fail:
28225 return NULL;
28226 }
28227
28228
28229 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28230 PyObject *resultobj;
28231 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28232 wxPoint *result;
28233 PyObject * obj0 = 0 ;
28234 char *kwnames[] = {
28235 (char *) "self", NULL
28236 };
28237
28238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
28239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28240 {
28241 PyThreadState* __tstate = wxPyBeginAllowThreads();
28242 {
28243 wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition();
28244 result = (wxPoint *) &_result_ref;
28245 }
28246
28247 wxPyEndAllowThreads(__tstate);
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
28250 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
28251 return resultobj;
28252 fail:
28253 return NULL;
28254 }
28255
28256
28257 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28258 PyObject *resultobj;
28259 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28260 wxPoint *arg2 = 0 ;
28261 wxPoint temp2 ;
28262 PyObject * obj0 = 0 ;
28263 PyObject * obj1 = 0 ;
28264 char *kwnames[] = {
28265 (char *) "self",(char *) "pos", NULL
28266 };
28267
28268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
28269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28270 {
28271 arg2 = &temp2;
28272 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28273 }
28274 {
28275 PyThreadState* __tstate = wxPyBeginAllowThreads();
28276 (arg1)->SetPosition((wxPoint const &)*arg2);
28277
28278 wxPyEndAllowThreads(__tstate);
28279 if (PyErr_Occurred()) SWIG_fail;
28280 }
28281 Py_INCREF(Py_None); resultobj = Py_None;
28282 return resultobj;
28283 fail:
28284 return NULL;
28285 }
28286
28287
28288 static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
28289 PyObject *resultobj;
28290 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28291 wxString *result;
28292 PyObject * obj0 = 0 ;
28293 char *kwnames[] = {
28294 (char *) "self", NULL
28295 };
28296
28297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
28298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28299 {
28300 PyThreadState* __tstate = wxPyBeginAllowThreads();
28301 {
28302 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
28303 result = (wxString *) &_result_ref;
28304 }
28305
28306 wxPyEndAllowThreads(__tstate);
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 {
28310 #if wxUSE_UNICODE
28311 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28312 #else
28313 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28314 #endif
28315 }
28316 return resultobj;
28317 fail:
28318 return NULL;
28319 }
28320
28321
28322 static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
28323 PyObject *resultobj;
28324 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28325 wxString *arg2 = 0 ;
28326 bool temp2 = False ;
28327 PyObject * obj0 = 0 ;
28328 PyObject * obj1 = 0 ;
28329 char *kwnames[] = {
28330 (char *) "self",(char *) "link", NULL
28331 };
28332
28333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
28334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28335 {
28336 arg2 = wxString_in_helper(obj1);
28337 if (arg2 == NULL) SWIG_fail;
28338 temp2 = True;
28339 }
28340 {
28341 PyThreadState* __tstate = wxPyBeginAllowThreads();
28342 (arg1)->SetLink((wxString const &)*arg2);
28343
28344 wxPyEndAllowThreads(__tstate);
28345 if (PyErr_Occurred()) SWIG_fail;
28346 }
28347 Py_INCREF(Py_None); resultobj = Py_None;
28348 {
28349 if (temp2)
28350 delete arg2;
28351 }
28352 return resultobj;
28353 fail:
28354 {
28355 if (temp2)
28356 delete arg2;
28357 }
28358 return NULL;
28359 }
28360
28361
28362 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
28363 PyObject *resultobj;
28364 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28365 wxString *result;
28366 PyObject * obj0 = 0 ;
28367 char *kwnames[] = {
28368 (char *) "self", NULL
28369 };
28370
28371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
28372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28373 {
28374 PyThreadState* __tstate = wxPyBeginAllowThreads();
28375 {
28376 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
28377 result = (wxString *) &_result_ref;
28378 }
28379
28380 wxPyEndAllowThreads(__tstate);
28381 if (PyErr_Occurred()) SWIG_fail;
28382 }
28383 {
28384 #if wxUSE_UNICODE
28385 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28386 #else
28387 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28388 #endif
28389 }
28390 return resultobj;
28391 fail:
28392 return NULL;
28393 }
28394
28395
28396 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
28397 PyObject *resultobj;
28398 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
28399 wxString *arg2 = 0 ;
28400 bool temp2 = False ;
28401 PyObject * obj0 = 0 ;
28402 PyObject * obj1 = 0 ;
28403 char *kwnames[] = {
28404 (char *) "self",(char *) "target", NULL
28405 };
28406
28407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
28408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28409 {
28410 arg2 = wxString_in_helper(obj1);
28411 if (arg2 == NULL) SWIG_fail;
28412 temp2 = True;
28413 }
28414 {
28415 PyThreadState* __tstate = wxPyBeginAllowThreads();
28416 (arg1)->SetTarget((wxString const &)*arg2);
28417
28418 wxPyEndAllowThreads(__tstate);
28419 if (PyErr_Occurred()) SWIG_fail;
28420 }
28421 Py_INCREF(Py_None); resultobj = Py_None;
28422 {
28423 if (temp2)
28424 delete arg2;
28425 }
28426 return resultobj;
28427 fail:
28428 {
28429 if (temp2)
28430 delete arg2;
28431 }
28432 return NULL;
28433 }
28434
28435
28436 static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
28437 PyObject *obj;
28438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28439 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
28440 Py_INCREF(obj);
28441 return Py_BuildValue((char *)"");
28442 }
28443 static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28444 PyObject *resultobj;
28445 wxWindow *arg1 = (wxWindow *) NULL ;
28446 bool arg2 = (bool) True ;
28447 wxContextHelp *result;
28448 PyObject * obj0 = 0 ;
28449 PyObject * obj1 = 0 ;
28450 char *kwnames[] = {
28451 (char *) "window",(char *) "doNow", NULL
28452 };
28453
28454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
28455 if (obj0) {
28456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28457 }
28458 if (obj1) {
28459 {
28460 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
28461 if (PyErr_Occurred()) SWIG_fail;
28462 }
28463 }
28464 {
28465 PyThreadState* __tstate = wxPyBeginAllowThreads();
28466 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
28467
28468 wxPyEndAllowThreads(__tstate);
28469 if (PyErr_Occurred()) SWIG_fail;
28470 }
28471 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1);
28472 return resultobj;
28473 fail:
28474 return NULL;
28475 }
28476
28477
28478 static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28479 PyObject *resultobj;
28480 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28481 PyObject * obj0 = 0 ;
28482 char *kwnames[] = {
28483 (char *) "self", NULL
28484 };
28485
28486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
28487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28488 {
28489 PyThreadState* __tstate = wxPyBeginAllowThreads();
28490 delete arg1;
28491
28492 wxPyEndAllowThreads(__tstate);
28493 if (PyErr_Occurred()) SWIG_fail;
28494 }
28495 Py_INCREF(Py_None); resultobj = Py_None;
28496 return resultobj;
28497 fail:
28498 return NULL;
28499 }
28500
28501
28502 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28503 PyObject *resultobj;
28504 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28505 wxWindow *arg2 = (wxWindow *) NULL ;
28506 bool result;
28507 PyObject * obj0 = 0 ;
28508 PyObject * obj1 = 0 ;
28509 char *kwnames[] = {
28510 (char *) "self",(char *) "window", NULL
28511 };
28512
28513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
28514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28515 if (obj1) {
28516 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28517 }
28518 {
28519 PyThreadState* __tstate = wxPyBeginAllowThreads();
28520 result = (bool)(arg1)->BeginContextHelp(arg2);
28521
28522 wxPyEndAllowThreads(__tstate);
28523 if (PyErr_Occurred()) SWIG_fail;
28524 }
28525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28526 return resultobj;
28527 fail:
28528 return NULL;
28529 }
28530
28531
28532 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28533 PyObject *resultobj;
28534 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
28535 bool result;
28536 PyObject * obj0 = 0 ;
28537 char *kwnames[] = {
28538 (char *) "self", NULL
28539 };
28540
28541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
28542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28543 {
28544 PyThreadState* __tstate = wxPyBeginAllowThreads();
28545 result = (bool)(arg1)->EndContextHelp();
28546
28547 wxPyEndAllowThreads(__tstate);
28548 if (PyErr_Occurred()) SWIG_fail;
28549 }
28550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28551 return resultobj;
28552 fail:
28553 return NULL;
28554 }
28555
28556
28557 static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
28558 PyObject *obj;
28559 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28560 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
28561 Py_INCREF(obj);
28562 return Py_BuildValue((char *)"");
28563 }
28564 static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
28565 PyObject *resultobj;
28566 wxWindow *arg1 = (wxWindow *) 0 ;
28567 int arg2 = (int) wxID_CONTEXT_HELP ;
28568 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28569 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28570 wxSize const &arg4_defvalue = wxDefaultSize ;
28571 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28572 long arg5 = (long) wxBU_AUTODRAW ;
28573 wxContextHelpButton *result;
28574 wxPoint temp3 ;
28575 wxSize temp4 ;
28576 PyObject * obj0 = 0 ;
28577 PyObject * obj1 = 0 ;
28578 PyObject * obj2 = 0 ;
28579 PyObject * obj3 = 0 ;
28580 PyObject * obj4 = 0 ;
28581 char *kwnames[] = {
28582 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28583 };
28584
28585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28587 if (obj1) {
28588 {
28589 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28590 if (PyErr_Occurred()) SWIG_fail;
28591 }
28592 }
28593 if (obj2) {
28594 {
28595 arg3 = &temp3;
28596 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28597 }
28598 }
28599 if (obj3) {
28600 {
28601 arg4 = &temp4;
28602 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28603 }
28604 }
28605 if (obj4) {
28606 {
28607 arg5 = (long) SWIG_PyObj_AsLong(obj4);
28608 if (PyErr_Occurred()) SWIG_fail;
28609 }
28610 }
28611 {
28612 PyThreadState* __tstate = wxPyBeginAllowThreads();
28613 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28614
28615 wxPyEndAllowThreads(__tstate);
28616 if (PyErr_Occurred()) SWIG_fail;
28617 }
28618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1);
28619 return resultobj;
28620 fail:
28621 return NULL;
28622 }
28623
28624
28625 static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
28626 PyObject *obj;
28627 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28628 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
28629 Py_INCREF(obj);
28630 return Py_BuildValue((char *)"");
28631 }
28632 static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
28633 PyObject *resultobj;
28634 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28635 wxHelpProvider *result;
28636 PyObject * obj0 = 0 ;
28637 char *kwnames[] = {
28638 (char *) "helpProvider", NULL
28639 };
28640
28641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
28642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28643 {
28644 PyThreadState* __tstate = wxPyBeginAllowThreads();
28645 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
28646
28647 wxPyEndAllowThreads(__tstate);
28648 if (PyErr_Occurred()) SWIG_fail;
28649 }
28650 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0);
28651 return resultobj;
28652 fail:
28653 return NULL;
28654 }
28655
28656
28657 static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
28658 PyObject *resultobj;
28659 wxHelpProvider *result;
28660 char *kwnames[] = {
28661 NULL
28662 };
28663
28664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
28665 {
28666 PyThreadState* __tstate = wxPyBeginAllowThreads();
28667 result = (wxHelpProvider *)wxHelpProvider::Get();
28668
28669 wxPyEndAllowThreads(__tstate);
28670 if (PyErr_Occurred()) SWIG_fail;
28671 }
28672 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0);
28673 return resultobj;
28674 fail:
28675 return NULL;
28676 }
28677
28678
28679 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28680 PyObject *resultobj;
28681 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28682 wxWindow *arg2 = (wxWindow *) 0 ;
28683 wxString result;
28684 PyObject * obj0 = 0 ;
28685 PyObject * obj1 = 0 ;
28686 char *kwnames[] = {
28687 (char *) "self",(char *) "window", NULL
28688 };
28689
28690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
28691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28692 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28693 {
28694 PyThreadState* __tstate = wxPyBeginAllowThreads();
28695 result = (arg1)->GetHelp((wxWindow const *)arg2);
28696
28697 wxPyEndAllowThreads(__tstate);
28698 if (PyErr_Occurred()) SWIG_fail;
28699 }
28700 {
28701 #if wxUSE_UNICODE
28702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28703 #else
28704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28705 #endif
28706 }
28707 return resultobj;
28708 fail:
28709 return NULL;
28710 }
28711
28712
28713 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28714 PyObject *resultobj;
28715 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28716 wxWindow *arg2 = (wxWindow *) 0 ;
28717 bool result;
28718 PyObject * obj0 = 0 ;
28719 PyObject * obj1 = 0 ;
28720 char *kwnames[] = {
28721 (char *) "self",(char *) "window", NULL
28722 };
28723
28724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
28725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28726 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28727 {
28728 PyThreadState* __tstate = wxPyBeginAllowThreads();
28729 result = (bool)(arg1)->ShowHelp(arg2);
28730
28731 wxPyEndAllowThreads(__tstate);
28732 if (PyErr_Occurred()) SWIG_fail;
28733 }
28734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28735 return resultobj;
28736 fail:
28737 return NULL;
28738 }
28739
28740
28741 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
28742 PyObject *resultobj;
28743 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28744 wxWindow *arg2 = (wxWindow *) 0 ;
28745 wxString *arg3 = 0 ;
28746 bool temp3 = False ;
28747 PyObject * obj0 = 0 ;
28748 PyObject * obj1 = 0 ;
28749 PyObject * obj2 = 0 ;
28750 char *kwnames[] = {
28751 (char *) "self",(char *) "window",(char *) "text", NULL
28752 };
28753
28754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
28755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28756 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28757 {
28758 arg3 = wxString_in_helper(obj2);
28759 if (arg3 == NULL) SWIG_fail;
28760 temp3 = True;
28761 }
28762 {
28763 PyThreadState* __tstate = wxPyBeginAllowThreads();
28764 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
28765
28766 wxPyEndAllowThreads(__tstate);
28767 if (PyErr_Occurred()) SWIG_fail;
28768 }
28769 Py_INCREF(Py_None); resultobj = Py_None;
28770 {
28771 if (temp3)
28772 delete arg3;
28773 }
28774 return resultobj;
28775 fail:
28776 {
28777 if (temp3)
28778 delete arg3;
28779 }
28780 return NULL;
28781 }
28782
28783
28784 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
28785 PyObject *resultobj;
28786 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28787 int arg2 ;
28788 wxString *arg3 = 0 ;
28789 bool temp3 = False ;
28790 PyObject * obj0 = 0 ;
28791 PyObject * obj1 = 0 ;
28792 PyObject * obj2 = 0 ;
28793 char *kwnames[] = {
28794 (char *) "self",(char *) "id",(char *) "text", NULL
28795 };
28796
28797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
28798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28799 {
28800 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 {
28804 arg3 = wxString_in_helper(obj2);
28805 if (arg3 == NULL) SWIG_fail;
28806 temp3 = True;
28807 }
28808 {
28809 PyThreadState* __tstate = wxPyBeginAllowThreads();
28810 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
28811
28812 wxPyEndAllowThreads(__tstate);
28813 if (PyErr_Occurred()) SWIG_fail;
28814 }
28815 Py_INCREF(Py_None); resultobj = Py_None;
28816 {
28817 if (temp3)
28818 delete arg3;
28819 }
28820 return resultobj;
28821 fail:
28822 {
28823 if (temp3)
28824 delete arg3;
28825 }
28826 return NULL;
28827 }
28828
28829
28830 static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
28831 PyObject *resultobj;
28832 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
28833 PyObject * obj0 = 0 ;
28834 char *kwnames[] = {
28835 (char *) "self", NULL
28836 };
28837
28838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
28839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28840 {
28841 PyThreadState* __tstate = wxPyBeginAllowThreads();
28842 wxHelpProvider_Destroy(arg1);
28843
28844 wxPyEndAllowThreads(__tstate);
28845 if (PyErr_Occurred()) SWIG_fail;
28846 }
28847 Py_INCREF(Py_None); resultobj = Py_None;
28848 return resultobj;
28849 fail:
28850 return NULL;
28851 }
28852
28853
28854 static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
28855 PyObject *obj;
28856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28857 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
28858 Py_INCREF(obj);
28859 return Py_BuildValue((char *)"");
28860 }
28861 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
28862 PyObject *resultobj;
28863 wxSimpleHelpProvider *result;
28864 char *kwnames[] = {
28865 NULL
28866 };
28867
28868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
28869 {
28870 PyThreadState* __tstate = wxPyBeginAllowThreads();
28871 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
28872
28873 wxPyEndAllowThreads(__tstate);
28874 if (PyErr_Occurred()) SWIG_fail;
28875 }
28876 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1);
28877 return resultobj;
28878 fail:
28879 return NULL;
28880 }
28881
28882
28883 static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
28884 PyObject *obj;
28885 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28886 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
28887 Py_INCREF(obj);
28888 return Py_BuildValue((char *)"");
28889 }
28890 static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
28891 PyObject *resultobj;
28892 wxBitmap *arg1 = 0 ;
28893 wxCursor const &arg2_defvalue = wxNullCursor ;
28894 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
28895 wxGenericDragImage *result;
28896 PyObject * obj0 = 0 ;
28897 PyObject * obj1 = 0 ;
28898 char *kwnames[] = {
28899 (char *) "image",(char *) "cursor", NULL
28900 };
28901
28902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
28903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28904 if (arg1 == NULL) {
28905 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28906 }
28907 if (obj1) {
28908 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28909 if (arg2 == NULL) {
28910 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28911 }
28912 }
28913 {
28914 PyThreadState* __tstate = wxPyBeginAllowThreads();
28915 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
28916
28917 wxPyEndAllowThreads(__tstate);
28918 if (PyErr_Occurred()) SWIG_fail;
28919 }
28920 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
28921 return resultobj;
28922 fail:
28923 return NULL;
28924 }
28925
28926
28927 static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
28928 PyObject *resultobj;
28929 wxIcon *arg1 = 0 ;
28930 wxCursor const &arg2_defvalue = wxNullCursor ;
28931 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
28932 wxGenericDragImage *result;
28933 PyObject * obj0 = 0 ;
28934 PyObject * obj1 = 0 ;
28935 char *kwnames[] = {
28936 (char *) "image",(char *) "cursor", NULL
28937 };
28938
28939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
28940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28941 if (arg1 == NULL) {
28942 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28943 }
28944 if (obj1) {
28945 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28946 if (arg2 == NULL) {
28947 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28948 }
28949 }
28950 {
28951 PyThreadState* __tstate = wxPyBeginAllowThreads();
28952 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
28953
28954 wxPyEndAllowThreads(__tstate);
28955 if (PyErr_Occurred()) SWIG_fail;
28956 }
28957 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
28958 return resultobj;
28959 fail:
28960 return NULL;
28961 }
28962
28963
28964 static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
28965 PyObject *resultobj;
28966 wxString *arg1 = 0 ;
28967 wxCursor const &arg2_defvalue = wxNullCursor ;
28968 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
28969 wxGenericDragImage *result;
28970 bool temp1 = False ;
28971 PyObject * obj0 = 0 ;
28972 PyObject * obj1 = 0 ;
28973 char *kwnames[] = {
28974 (char *) "str",(char *) "cursor", NULL
28975 };
28976
28977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
28978 {
28979 arg1 = wxString_in_helper(obj0);
28980 if (arg1 == NULL) SWIG_fail;
28981 temp1 = True;
28982 }
28983 if (obj1) {
28984 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28985 if (arg2 == NULL) {
28986 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
28987 }
28988 }
28989 {
28990 PyThreadState* __tstate = wxPyBeginAllowThreads();
28991 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
28992
28993 wxPyEndAllowThreads(__tstate);
28994 if (PyErr_Occurred()) SWIG_fail;
28995 }
28996 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
28997 {
28998 if (temp1)
28999 delete arg1;
29000 }
29001 return resultobj;
29002 fail:
29003 {
29004 if (temp1)
29005 delete arg1;
29006 }
29007 return NULL;
29008 }
29009
29010
29011 static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29012 PyObject *resultobj;
29013 wxPyTreeCtrl *arg1 = 0 ;
29014 wxTreeItemId *arg2 = 0 ;
29015 wxGenericDragImage *result;
29016 PyObject * obj0 = 0 ;
29017 PyObject * obj1 = 0 ;
29018 char *kwnames[] = {
29019 (char *) "treeCtrl",(char *) "id", NULL
29020 };
29021
29022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
29023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29024 if (arg1 == NULL) {
29025 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29026 }
29027 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29028 if (arg2 == NULL) {
29029 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29030 }
29031 {
29032 PyThreadState* __tstate = wxPyBeginAllowThreads();
29033 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
29034
29035 wxPyEndAllowThreads(__tstate);
29036 if (PyErr_Occurred()) SWIG_fail;
29037 }
29038 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
29039 return resultobj;
29040 fail:
29041 return NULL;
29042 }
29043
29044
29045 static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29046 PyObject *resultobj;
29047 wxPyListCtrl *arg1 = 0 ;
29048 long arg2 ;
29049 wxGenericDragImage *result;
29050 PyObject * obj0 = 0 ;
29051 PyObject * obj1 = 0 ;
29052 char *kwnames[] = {
29053 (char *) "listCtrl",(char *) "id", NULL
29054 };
29055
29056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
29057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29058 if (arg1 == NULL) {
29059 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29060 }
29061 {
29062 arg2 = (long) SWIG_PyObj_AsLong(obj1);
29063 if (PyErr_Occurred()) SWIG_fail;
29064 }
29065 {
29066 PyThreadState* __tstate = wxPyBeginAllowThreads();
29067 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
29068
29069 wxPyEndAllowThreads(__tstate);
29070 if (PyErr_Occurred()) SWIG_fail;
29071 }
29072 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
29073 return resultobj;
29074 fail:
29075 return NULL;
29076 }
29077
29078
29079 static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29080 PyObject *resultobj;
29081 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29082 PyObject * obj0 = 0 ;
29083 char *kwnames[] = {
29084 (char *) "self", NULL
29085 };
29086
29087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
29088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29089 {
29090 PyThreadState* __tstate = wxPyBeginAllowThreads();
29091 delete arg1;
29092
29093 wxPyEndAllowThreads(__tstate);
29094 if (PyErr_Occurred()) SWIG_fail;
29095 }
29096 Py_INCREF(Py_None); resultobj = Py_None;
29097 return resultobj;
29098 fail:
29099 return NULL;
29100 }
29101
29102
29103 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
29104 PyObject *resultobj;
29105 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29106 wxBitmap *arg2 = (wxBitmap *) 0 ;
29107 PyObject * obj0 = 0 ;
29108 PyObject * obj1 = 0 ;
29109 char *kwnames[] = {
29110 (char *) "self",(char *) "bitmap", NULL
29111 };
29112
29113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
29114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29115 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 (arg1)->SetBackingBitmap(arg2);
29119
29120 wxPyEndAllowThreads(__tstate);
29121 if (PyErr_Occurred()) SWIG_fail;
29122 }
29123 Py_INCREF(Py_None); resultobj = Py_None;
29124 return resultobj;
29125 fail:
29126 return NULL;
29127 }
29128
29129
29130 static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
29131 PyObject *resultobj;
29132 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29133 wxPoint *arg2 = 0 ;
29134 wxWindow *arg3 = (wxWindow *) 0 ;
29135 bool arg4 = (bool) False ;
29136 wxRect *arg5 = (wxRect *) NULL ;
29137 bool result;
29138 wxPoint temp2 ;
29139 PyObject * obj0 = 0 ;
29140 PyObject * obj1 = 0 ;
29141 PyObject * obj2 = 0 ;
29142 PyObject * obj3 = 0 ;
29143 PyObject * obj4 = 0 ;
29144 char *kwnames[] = {
29145 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
29146 };
29147
29148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29150 {
29151 arg2 = &temp2;
29152 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29153 }
29154 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29155 if (obj3) {
29156 {
29157 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
29158 if (PyErr_Occurred()) SWIG_fail;
29159 }
29160 }
29161 if (obj4) {
29162 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29163 }
29164 {
29165 PyThreadState* __tstate = wxPyBeginAllowThreads();
29166 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
29167
29168 wxPyEndAllowThreads(__tstate);
29169 if (PyErr_Occurred()) SWIG_fail;
29170 }
29171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29172 return resultobj;
29173 fail:
29174 return NULL;
29175 }
29176
29177
29178 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
29179 PyObject *resultobj;
29180 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29181 wxPoint *arg2 = 0 ;
29182 wxWindow *arg3 = (wxWindow *) 0 ;
29183 wxWindow *arg4 = (wxWindow *) 0 ;
29184 bool result;
29185 wxPoint temp2 ;
29186 PyObject * obj0 = 0 ;
29187 PyObject * obj1 = 0 ;
29188 PyObject * obj2 = 0 ;
29189 PyObject * obj3 = 0 ;
29190 char *kwnames[] = {
29191 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
29192 };
29193
29194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29196 {
29197 arg2 = &temp2;
29198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29199 }
29200 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29201 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29202 {
29203 PyThreadState* __tstate = wxPyBeginAllowThreads();
29204 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
29205
29206 wxPyEndAllowThreads(__tstate);
29207 if (PyErr_Occurred()) SWIG_fail;
29208 }
29209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29210 return resultobj;
29211 fail:
29212 return NULL;
29213 }
29214
29215
29216 static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
29217 PyObject *resultobj;
29218 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29219 bool result;
29220 PyObject * obj0 = 0 ;
29221 char *kwnames[] = {
29222 (char *) "self", NULL
29223 };
29224
29225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
29226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29227 {
29228 PyThreadState* __tstate = wxPyBeginAllowThreads();
29229 result = (bool)(arg1)->EndDrag();
29230
29231 wxPyEndAllowThreads(__tstate);
29232 if (PyErr_Occurred()) SWIG_fail;
29233 }
29234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29235 return resultobj;
29236 fail:
29237 return NULL;
29238 }
29239
29240
29241 static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
29242 PyObject *resultobj;
29243 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29244 wxPoint *arg2 = 0 ;
29245 bool result;
29246 wxPoint temp2 ;
29247 PyObject * obj0 = 0 ;
29248 PyObject * obj1 = 0 ;
29249 char *kwnames[] = {
29250 (char *) "self",(char *) "pt", NULL
29251 };
29252
29253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
29254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29255 {
29256 arg2 = &temp2;
29257 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29258 }
29259 {
29260 PyThreadState* __tstate = wxPyBeginAllowThreads();
29261 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
29262
29263 wxPyEndAllowThreads(__tstate);
29264 if (PyErr_Occurred()) SWIG_fail;
29265 }
29266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29267 return resultobj;
29268 fail:
29269 return NULL;
29270 }
29271
29272
29273 static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
29274 PyObject *resultobj;
29275 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29276 bool result;
29277 PyObject * obj0 = 0 ;
29278 char *kwnames[] = {
29279 (char *) "self", NULL
29280 };
29281
29282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
29283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29284 {
29285 PyThreadState* __tstate = wxPyBeginAllowThreads();
29286 result = (bool)(arg1)->Show();
29287
29288 wxPyEndAllowThreads(__tstate);
29289 if (PyErr_Occurred()) SWIG_fail;
29290 }
29291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29292 return resultobj;
29293 fail:
29294 return NULL;
29295 }
29296
29297
29298 static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
29299 PyObject *resultobj;
29300 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29301 bool result;
29302 PyObject * obj0 = 0 ;
29303 char *kwnames[] = {
29304 (char *) "self", NULL
29305 };
29306
29307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
29308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29309 {
29310 PyThreadState* __tstate = wxPyBeginAllowThreads();
29311 result = (bool)(arg1)->Hide();
29312
29313 wxPyEndAllowThreads(__tstate);
29314 if (PyErr_Occurred()) SWIG_fail;
29315 }
29316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29317 return resultobj;
29318 fail:
29319 return NULL;
29320 }
29321
29322
29323 static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
29324 PyObject *resultobj;
29325 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29326 wxPoint *arg2 = 0 ;
29327 wxRect result;
29328 wxPoint temp2 ;
29329 PyObject * obj0 = 0 ;
29330 PyObject * obj1 = 0 ;
29331 char *kwnames[] = {
29332 (char *) "self",(char *) "pos", NULL
29333 };
29334
29335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
29336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29337 {
29338 arg2 = &temp2;
29339 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29340 }
29341 {
29342 PyThreadState* __tstate = wxPyBeginAllowThreads();
29343 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
29344
29345 wxPyEndAllowThreads(__tstate);
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 {
29349 wxRect * resultptr;
29350 resultptr = new wxRect((wxRect &) result);
29351 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
29352 }
29353 return resultobj;
29354 fail:
29355 return NULL;
29356 }
29357
29358
29359 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29360 PyObject *resultobj;
29361 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29362 wxDC *arg2 = 0 ;
29363 wxPoint *arg3 = 0 ;
29364 bool result;
29365 wxPoint temp3 ;
29366 PyObject * obj0 = 0 ;
29367 PyObject * obj1 = 0 ;
29368 PyObject * obj2 = 0 ;
29369 char *kwnames[] = {
29370 (char *) "self",(char *) "dc",(char *) "pos", NULL
29371 };
29372
29373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
29374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29375 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29376 if (arg2 == NULL) {
29377 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29378 }
29379 {
29380 arg3 = &temp3;
29381 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29382 }
29383 {
29384 PyThreadState* __tstate = wxPyBeginAllowThreads();
29385 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
29386
29387 wxPyEndAllowThreads(__tstate);
29388 if (PyErr_Occurred()) SWIG_fail;
29389 }
29390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29391 return resultobj;
29392 fail:
29393 return NULL;
29394 }
29395
29396
29397 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29398 PyObject *resultobj;
29399 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29400 wxDC *arg2 = 0 ;
29401 wxMemoryDC *arg3 = 0 ;
29402 wxRect *arg4 = 0 ;
29403 wxRect *arg5 = 0 ;
29404 bool result;
29405 wxRect temp4 ;
29406 wxRect temp5 ;
29407 PyObject * obj0 = 0 ;
29408 PyObject * obj1 = 0 ;
29409 PyObject * obj2 = 0 ;
29410 PyObject * obj3 = 0 ;
29411 PyObject * obj4 = 0 ;
29412 char *kwnames[] = {
29413 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
29414 };
29415
29416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29418 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29419 if (arg2 == NULL) {
29420 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29421 }
29422 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29423 if (arg3 == NULL) {
29424 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
29425 }
29426 {
29427 arg4 = &temp4;
29428 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29429 }
29430 {
29431 arg5 = &temp5;
29432 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
29433 }
29434 {
29435 PyThreadState* __tstate = wxPyBeginAllowThreads();
29436 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
29437
29438 wxPyEndAllowThreads(__tstate);
29439 if (PyErr_Occurred()) SWIG_fail;
29440 }
29441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29442 return resultobj;
29443 fail:
29444 return NULL;
29445 }
29446
29447
29448 static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
29449 PyObject *resultobj;
29450 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
29451 wxPoint *arg2 = 0 ;
29452 wxPoint *arg3 = 0 ;
29453 bool arg4 ;
29454 bool arg5 ;
29455 bool result;
29456 wxPoint temp2 ;
29457 wxPoint temp3 ;
29458 PyObject * obj0 = 0 ;
29459 PyObject * obj1 = 0 ;
29460 PyObject * obj2 = 0 ;
29461 PyObject * obj3 = 0 ;
29462 PyObject * obj4 = 0 ;
29463 char *kwnames[] = {
29464 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
29465 };
29466
29467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29469 {
29470 arg2 = &temp2;
29471 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29472 }
29473 {
29474 arg3 = &temp3;
29475 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29476 }
29477 {
29478 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
29479 if (PyErr_Occurred()) SWIG_fail;
29480 }
29481 {
29482 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
29483 if (PyErr_Occurred()) SWIG_fail;
29484 }
29485 {
29486 PyThreadState* __tstate = wxPyBeginAllowThreads();
29487 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
29488
29489 wxPyEndAllowThreads(__tstate);
29490 if (PyErr_Occurred()) SWIG_fail;
29491 }
29492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29493 return resultobj;
29494 fail:
29495 return NULL;
29496 }
29497
29498
29499 static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
29500 PyObject *obj;
29501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29502 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
29503 Py_INCREF(obj);
29504 return Py_BuildValue((char *)"");
29505 }
29506 static PyMethodDef SwigMethods[] = {
29507 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
29508 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
29509 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
29510 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
29511 { (char *)"Button_SetImageLabel", (PyCFunction) _wrap_Button_SetImageLabel, METH_VARARGS | METH_KEYWORDS },
29512 { (char *)"Button_SetImageMargins", (PyCFunction) _wrap_Button_SetImageMargins, METH_VARARGS | METH_KEYWORDS },
29513 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
29514 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
29515 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
29516 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
29517 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
29518 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
29519 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
29520 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
29521 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
29522 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
29523 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
29524 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
29525 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
29526 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
29527 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
29528 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
29529 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
29530 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
29531 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
29532 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
29533 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
29534 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
29535 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
29536 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
29537 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
29538 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
29539 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
29540 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
29541 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
29542 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
29543 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
29544 { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS },
29545 { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS },
29546 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
29547 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29548 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
29549 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
29550 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
29551 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
29552 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
29553 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
29554 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
29555 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
29556 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
29557 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
29558 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29559 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29560 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
29561 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
29562 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29563 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
29564 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
29565 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
29566 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
29567 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
29568 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
29569 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
29570 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
29571 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
29572 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
29573 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
29574 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
29575 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
29576 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
29577 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
29578 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
29579 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
29580 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
29581 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
29582 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
29583 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
29584 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
29585 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
29586 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
29587 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
29588 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
29589 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
29590 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
29591 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
29592 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
29593 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
29594 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
29595 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
29596 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
29597 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
29598 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
29599 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
29600 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
29601 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
29602 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
29603 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
29604 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
29605 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
29606 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
29607 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
29608 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
29609 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29610 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
29611 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
29612 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
29613 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29614 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
29615 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
29616 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
29617 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
29618 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
29619 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
29620 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
29621 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
29622 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
29623 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
29624 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
29625 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
29626 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
29627 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
29628 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
29629 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
29630 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
29631 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
29632 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
29633 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
29634 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29635 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
29636 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
29637 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
29638 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
29639 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
29640 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
29641 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
29642 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29643 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
29644 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
29645 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
29646 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
29647 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
29648 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
29649 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
29650 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29651 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
29652 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
29653 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
29654 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
29655 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
29656 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
29657 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
29658 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
29659 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
29660 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
29661 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
29662 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
29663 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
29664 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
29665 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
29666 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
29667 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
29668 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
29669 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
29670 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
29671 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
29672 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
29673 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
29674 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
29675 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
29676 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
29677 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
29678 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
29679 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
29680 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
29681 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
29682 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
29683 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
29684 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
29685 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
29686 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
29687 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
29688 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
29689 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
29690 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
29691 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
29692 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
29693 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
29694 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
29695 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
29696 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
29697 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
29698 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
29699 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
29700 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
29701 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
29702 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
29703 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
29704 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29705 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
29706 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
29707 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
29708 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
29709 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
29710 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
29711 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS },
29712 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS },
29713 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
29714 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
29715 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
29716 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
29717 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
29718 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
29719 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
29720 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
29721 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
29722 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
29723 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
29724 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
29725 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
29726 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
29727 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
29728 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
29729 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
29730 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
29731 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
29732 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
29733 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
29734 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
29735 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29736 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
29737 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
29738 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29739 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
29740 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
29741 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
29742 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
29743 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
29744 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
29745 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
29746 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
29747 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
29748 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
29749 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
29750 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
29751 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
29752 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
29753 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
29754 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
29755 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
29756 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
29757 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
29758 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
29759 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
29760 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
29761 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
29762 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
29763 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
29764 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
29765 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
29766 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
29767 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
29768 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
29769 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
29770 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
29771 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
29772 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
29773 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
29774 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
29775 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
29776 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
29777 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
29778 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
29779 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29780 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29781 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
29782 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
29783 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
29784 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
29785 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
29786 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
29787 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
29788 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
29789 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
29790 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
29791 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
29792 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
29793 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
29794 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
29795 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
29796 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
29797 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
29798 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
29799 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
29800 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
29801 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
29802 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
29803 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
29804 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
29805 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
29806 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
29807 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
29808 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
29809 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
29810 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
29811 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
29812 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
29813 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
29814 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
29815 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
29816 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
29817 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
29818 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
29819 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
29820 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
29821 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
29822 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
29823 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
29824 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
29825 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
29826 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
29827 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
29828 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
29829 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
29830 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
29831 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
29832 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
29833 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
29834 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
29835 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
29836 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
29837 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
29838 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
29839 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
29840 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
29841 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
29842 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
29843 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
29844 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
29845 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
29846 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
29847 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
29848 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS },
29849 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
29850 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
29851 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
29852 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
29853 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
29854 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
29855 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
29856 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
29857 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
29858 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
29859 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
29860 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
29861 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
29862 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
29863 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
29864 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
29865 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
29866 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
29867 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
29868 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
29869 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
29870 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
29871 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
29872 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
29873 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
29874 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
29875 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
29876 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
29877 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
29878 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
29879 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
29880 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
29881 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
29882 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
29883 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
29884 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
29885 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
29886 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
29887 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
29888 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
29889 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
29890 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
29891 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
29892 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
29893 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
29894 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
29895 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
29896 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
29897 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
29898 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
29899 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
29900 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
29901 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
29902 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
29903 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
29904 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
29905 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
29906 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
29907 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
29908 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
29909 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
29910 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
29911 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
29912 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
29913 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
29914 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
29915 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
29916 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
29917 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
29918 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
29919 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
29920 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
29921 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
29922 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
29923 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
29924 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
29925 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
29926 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
29927 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
29928 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
29929 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
29930 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
29931 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
29932 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
29933 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
29934 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
29935 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
29936 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
29937 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
29938 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
29939 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
29940 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
29941 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
29942 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
29943 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
29944 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
29945 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
29946 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
29947 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
29948 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
29949 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
29950 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
29951 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29952 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
29953 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
29954 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29955 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
29956 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
29957 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29958 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
29959 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
29960 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
29961 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
29962 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
29963 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
29964 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
29965 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
29966 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
29967 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
29968 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
29969 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
29970 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
29971 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
29972 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
29973 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
29974 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
29975 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
29976 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29977 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
29978 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
29979 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
29980 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
29981 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
29982 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
29983 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
29984 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
29985 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
29986 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
29987 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
29988 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
29989 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
29990 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
29991 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
29992 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
29993 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
29994 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
29995 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
29996 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
29997 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
29998 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
29999 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
30000 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
30001 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
30002 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
30003 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
30004 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
30005 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
30006 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
30007 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
30008 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
30009 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
30010 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
30011 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
30012 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
30013 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
30014 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
30015 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
30016 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
30017 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
30018 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
30019 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
30020 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
30021 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
30022 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
30023 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
30024 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
30025 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
30026 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
30027 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
30028 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
30029 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
30030 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
30031 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
30032 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
30033 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
30034 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
30035 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
30036 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
30037 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
30038 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
30039 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
30040 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
30041 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
30042 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30043 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30044 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
30045 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30046 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
30047 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
30048 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
30049 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
30050 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
30051 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
30052 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
30053 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
30054 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
30055 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
30056 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
30057 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
30058 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
30059 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
30060 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
30061 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
30062 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
30063 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
30064 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
30065 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
30066 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
30067 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
30068 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
30069 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
30070 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
30071 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
30072 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
30073 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
30074 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
30075 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
30076 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30077 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30078 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30079 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
30080 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
30081 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
30082 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
30083 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
30084 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
30085 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
30086 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
30087 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
30088 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
30089 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
30090 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30091 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
30092 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
30093 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
30094 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30095 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
30096 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
30097 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
30098 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
30099 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
30100 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
30101 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
30102 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
30103 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30104 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30105 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30106 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30107 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
30108 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
30109 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
30110 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
30111 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
30112 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
30113 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
30114 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
30115 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
30116 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
30117 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
30118 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
30119 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
30120 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
30121 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
30122 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
30123 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
30124 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
30125 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
30126 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
30127 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
30128 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
30129 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
30130 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
30131 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
30132 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
30133 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
30134 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
30135 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
30136 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
30137 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
30138 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
30139 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
30140 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
30141 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
30142 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
30143 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
30144 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
30145 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
30146 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
30147 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
30148 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
30149 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
30150 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
30151 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
30152 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
30153 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
30154 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
30155 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30156 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30157 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
30158 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
30159 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
30160 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
30161 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
30162 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
30163 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
30164 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
30165 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
30166 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
30167 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
30168 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
30169 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
30170 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
30171 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
30172 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30173 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30174 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
30175 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
30176 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
30177 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
30178 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
30179 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
30180 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
30181 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
30182 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
30183 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
30184 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
30185 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
30186 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
30187 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
30188 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
30189 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
30190 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
30191 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
30192 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
30193 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
30194 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
30195 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
30196 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
30197 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
30198 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
30199 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
30200 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
30201 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
30202 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
30203 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
30204 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
30205 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
30206 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
30207 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
30208 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
30209 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
30210 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
30211 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
30212 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
30213 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
30214 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
30215 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
30216 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
30217 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
30218 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
30219 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
30220 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
30221 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
30222 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
30223 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
30224 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
30225 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
30226 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
30227 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
30228 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
30229 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
30230 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
30231 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30232 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
30233 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
30234 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
30235 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
30236 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
30237 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
30238 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
30239 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
30240 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
30241 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
30242 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
30243 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
30244 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
30245 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
30246 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30247 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
30248 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
30249 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
30250 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
30251 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30252 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
30253 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
30254 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
30255 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
30256 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
30257 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
30258 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
30259 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
30260 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
30261 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
30262 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
30263 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
30264 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
30265 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
30266 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
30267 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
30268 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
30269 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
30270 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
30271 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
30272 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
30273 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
30274 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
30275 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
30276 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
30277 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
30278 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
30279 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
30280 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
30281 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
30282 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
30283 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
30284 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
30285 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
30286 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
30287 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
30288 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
30289 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
30290 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
30291 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
30292 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
30293 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
30294 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
30295 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
30296 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
30297 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
30298 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
30299 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
30300 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
30301 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
30302 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
30303 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
30304 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
30305 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
30306 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
30307 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
30308 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
30309 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
30310 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
30311 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
30312 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
30313 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
30314 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
30315 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
30316 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
30317 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
30318 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
30319 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
30320 { NULL, NULL }
30321 };
30322
30323
30324 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
30325
30326 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
30327 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30328 }
30329 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
30330 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
30331 }
30332 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
30333 return (void *)((wxSizer *) ((wxBoxSizer *) x));
30334 }
30335 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
30336 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
30337 }
30338 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
30339 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30340 }
30341 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
30342 return (void *)((wxSizer *) ((wxGridSizer *) x));
30343 }
30344 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
30345 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
30346 }
30347 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
30348 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
30349 }
30350 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
30351 return (void *)((wxSizer *) ((wxPySizer *) x));
30352 }
30353 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
30354 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
30355 }
30356 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
30357 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
30358 }
30359 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
30360 return (void *)((wxEvent *) ((wxMenuEvent *) x));
30361 }
30362 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
30363 return (void *)((wxEvent *) ((wxCloseEvent *) x));
30364 }
30365 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
30366 return (void *)((wxEvent *) ((wxMouseEvent *) x));
30367 }
30368 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
30369 return (void *)((wxEvent *) ((wxEraseEvent *) x));
30370 }
30371 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
30372 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
30373 }
30374 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
30375 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
30376 }
30377 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
30378 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
30379 }
30380 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
30381 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
30382 }
30383 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
30384 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
30385 }
30386 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
30387 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30388 }
30389 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
30390 return (void *)((wxEvent *) ((wxPyEvent *) x));
30391 }
30392 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
30393 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
30394 }
30395 static void *_p_wxListEventTo_p_wxEvent(void *x) {
30396 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
30397 }
30398 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
30399 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30400 }
30401 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
30402 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
30403 }
30404 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
30405 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
30406 }
30407 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
30408 return (void *)((wxEvent *) ((wxIdleEvent *) x));
30409 }
30410 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
30411 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
30412 }
30413 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
30414 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
30415 }
30416 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
30417 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
30418 }
30419 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
30420 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
30421 }
30422 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
30423 return (void *)((wxEvent *) ((wxActivateEvent *) x));
30424 }
30425 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
30426 return (void *)((wxEvent *) ((wxSizeEvent *) x));
30427 }
30428 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
30429 return (void *)((wxEvent *) ((wxMoveEvent *) x));
30430 }
30431 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
30432 return (void *)((wxEvent *) ((wxPaintEvent *) x));
30433 }
30434 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
30435 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
30436 }
30437 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
30438 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
30439 }
30440 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
30441 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
30442 }
30443 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
30444 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
30445 }
30446 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
30447 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30448 }
30449 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
30450 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
30451 }
30452 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
30453 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
30454 }
30455 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
30456 return (void *)((wxEvent *) ((wxFocusEvent *) x));
30457 }
30458 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
30459 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
30460 }
30461 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
30462 return (void *)((wxEvent *) ((wxShowEvent *) x));
30463 }
30464 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
30465 return (void *)((wxEvent *) ((wxCommandEvent *) x));
30466 }
30467 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
30468 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
30469 }
30470 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
30471 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30472 }
30473 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
30474 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
30475 }
30476 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
30477 return (void *)((wxEvent *) ((wxKeyEvent *) x));
30478 }
30479 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
30480 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
30481 }
30482 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
30483 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
30484 }
30485 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
30486 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
30487 }
30488 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
30489 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30490 }
30491 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
30492 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
30493 }
30494 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
30495 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
30496 }
30497 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
30498 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
30499 }
30500 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
30501 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30502 }
30503 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
30504 return (void *)((wxPyListCtrl *) ((wxListView *) x));
30505 }
30506 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
30507 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30508 }
30509 static void *_p_wxListBoxTo_p_wxControl(void *x) {
30510 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
30511 }
30512 static void *_p_wxChoiceTo_p_wxControl(void *x) {
30513 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
30514 }
30515 static void *_p_wxToolBarTo_p_wxControl(void *x) {
30516 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
30517 }
30518 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
30519 return (void *)((wxControl *) ((wxStaticBitmap *) x));
30520 }
30521 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
30522 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
30523 }
30524 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
30525 return (void *)((wxControl *) ((wxSpinCtrl *) x));
30526 }
30527 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
30528 return (void *)((wxControl *) ((wxStaticBox *) x));
30529 }
30530 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
30531 return (void *)((wxControl *) ((wxPyListCtrl *) x));
30532 }
30533 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
30534 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
30535 }
30536 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
30537 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30538 }
30539 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
30540 return (void *)((wxControl *) ((wxScrollBar *) x));
30541 }
30542 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
30543 return (void *)((wxControl *) ((wxBookCtrl *) x));
30544 }
30545 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
30546 return (void *)((wxControl *) ((wxRadioButton *) x));
30547 }
30548 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
30549 return (void *)((wxControl *) ((wxToggleButton *) x));
30550 }
30551 static void *_p_wxGaugeTo_p_wxControl(void *x) {
30552 return (void *)((wxControl *) ((wxGauge *) x));
30553 }
30554 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
30555 return (void *)((wxControl *) ((wxToolBarBase *) x));
30556 }
30557 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
30558 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
30559 }
30560 static void *_p_wxButtonTo_p_wxControl(void *x) {
30561 return (void *)((wxControl *) ((wxButton *) x));
30562 }
30563 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
30564 return (void *)((wxControl *) ((wxSpinButton *) x));
30565 }
30566 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
30567 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30568 }
30569 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
30570 return (void *)((wxControl *) ((wxControlWithItems *) x));
30571 }
30572 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
30573 return (void *)((wxControl *) ((wxRadioBox *) x));
30574 }
30575 static void *_p_wxNotebookTo_p_wxControl(void *x) {
30576 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
30577 }
30578 static void *_p_wxListbookTo_p_wxControl(void *x) {
30579 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
30580 }
30581 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
30582 return (void *)((wxControl *) ((wxCheckBox *) x));
30583 }
30584 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
30585 return (void *)((wxControl *) ((wxTextCtrl *) x));
30586 }
30587 static void *_p_wxListViewTo_p_wxControl(void *x) {
30588 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
30589 }
30590 static void *_p_wxSliderTo_p_wxControl(void *x) {
30591 return (void *)((wxControl *) ((wxSlider *) x));
30592 }
30593 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
30594 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
30595 }
30596 static void *_p_wxPyControlTo_p_wxControl(void *x) {
30597 return (void *)((wxControl *) ((wxPyControl *) x));
30598 }
30599 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
30600 return (void *)((wxControl *) ((wxStaticLine *) x));
30601 }
30602 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
30603 return (void *)((wxControl *) ((wxStaticText *) x));
30604 }
30605 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
30606 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
30607 }
30608 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
30609 return (void *)((wxChoice *) ((wxComboBox *) x));
30610 }
30611 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
30612 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
30613 }
30614 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
30615 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
30616 }
30617 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
30618 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30619 }
30620 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
30621 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
30622 }
30623 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
30624 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
30625 }
30626 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
30627 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
30628 }
30629 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
30630 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
30631 }
30632 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
30633 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
30634 }
30635 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
30636 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
30637 }
30638 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
30639 return (void *)((wxEvtHandler *) ((wxValidator *) x));
30640 }
30641 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
30642 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
30643 }
30644 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
30645 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
30646 }
30647 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
30648 return (void *)((wxEvtHandler *) ((wxMenu *) x));
30649 }
30650 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
30651 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
30652 }
30653 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
30654 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
30655 }
30656 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
30657 return (void *)((wxEvtHandler *) ((wxWindow *) x));
30658 }
30659 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
30660 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
30661 }
30662 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
30663 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
30664 }
30665 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
30666 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
30667 }
30668 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
30669 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
30670 }
30671 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
30672 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30673 }
30674 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
30675 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
30676 }
30677 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
30678 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
30679 }
30680 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
30681 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
30682 }
30683 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
30684 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
30685 }
30686 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
30687 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30688 }
30689 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
30690 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
30691 }
30692 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
30693 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
30694 }
30695 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
30696 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
30697 }
30698 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
30699 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
30700 }
30701 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
30702 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
30703 }
30704 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
30705 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
30706 }
30707 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
30708 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30709 }
30710 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
30711 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
30712 }
30713 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
30714 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
30715 }
30716 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
30717 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
30718 }
30719 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
30720 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
30721 }
30722 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
30723 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
30724 }
30725 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
30726 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
30727 }
30728 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
30729 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
30730 }
30731 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
30732 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
30733 }
30734 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
30735 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
30736 }
30737 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
30738 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
30739 }
30740 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
30741 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
30742 }
30743 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
30744 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
30745 }
30746 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
30747 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
30748 }
30749 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
30750 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
30751 }
30752 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
30753 return (void *)((wxListBox *) ((wxCheckListBox *) x));
30754 }
30755 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
30756 return (void *)((wxBookCtrl *) ((wxListbook *) x));
30757 }
30758 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
30759 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
30760 }
30761 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
30762 return (void *)((wxButton *) ((wxBitmapButton *) x));
30763 }
30764 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
30765 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
30766 }
30767 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
30768 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
30769 }
30770 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
30771 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
30772 }
30773 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
30774 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
30775 }
30776 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
30777 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
30778 }
30779 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
30780 return (void *)((wxObject *) ((wxSizerItem *) x));
30781 }
30782 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
30783 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
30784 }
30785 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
30786 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
30787 }
30788 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
30789 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
30790 }
30791 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
30792 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
30793 }
30794 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
30795 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
30796 }
30797 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
30798 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
30799 }
30800 static void *_p_wxSizerTo_p_wxObject(void *x) {
30801 return (void *)((wxObject *) ((wxSizer *) x));
30802 }
30803 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
30804 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30805 }
30806 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
30807 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
30808 }
30809 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
30810 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
30811 }
30812 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
30813 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
30814 }
30815 static void *_p_wxEventTo_p_wxObject(void *x) {
30816 return (void *)((wxObject *) ((wxEvent *) x));
30817 }
30818 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
30819 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
30820 }
30821 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
30822 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
30823 }
30824 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
30825 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
30826 }
30827 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
30828 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
30829 }
30830 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
30831 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
30832 }
30833 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
30834 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
30835 }
30836 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
30837 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
30838 }
30839 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
30840 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
30841 }
30842 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
30843 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
30844 }
30845 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
30846 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
30847 }
30848 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
30849 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30850 }
30851 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
30852 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
30853 }
30854 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
30855 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
30856 }
30857 static void *_p_wxControlTo_p_wxObject(void *x) {
30858 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
30859 }
30860 static void *_p_wxPyControlTo_p_wxObject(void *x) {
30861 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
30862 }
30863 static void *_p_wxGaugeTo_p_wxObject(void *x) {
30864 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
30865 }
30866 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
30867 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
30868 }
30869 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
30870 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
30871 }
30872 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
30873 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
30874 }
30875 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
30876 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
30877 }
30878 static void *_p_wxChoiceTo_p_wxObject(void *x) {
30879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
30880 }
30881 static void *_p_wxFSFileTo_p_wxObject(void *x) {
30882 return (void *)((wxObject *) ((wxFSFile *) x));
30883 }
30884 static void *_p_wxPySizerTo_p_wxObject(void *x) {
30885 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
30886 }
30887 static void *_p_wxListViewTo_p_wxObject(void *x) {
30888 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
30889 }
30890 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
30891 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
30892 }
30893 static void *_p_wxNotebookTo_p_wxObject(void *x) {
30894 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
30895 }
30896 static void *_p_wxPyEventTo_p_wxObject(void *x) {
30897 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
30898 }
30899 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
30900 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
30901 }
30902 static void *_p_wxListbookTo_p_wxObject(void *x) {
30903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
30904 }
30905 static void *_p_wxShowEventTo_p_wxObject(void *x) {
30906 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
30907 }
30908 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
30909 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
30910 }
30911 static void *_p_wxSliderTo_p_wxObject(void *x) {
30912 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
30913 }
30914 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
30915 return (void *)((wxObject *) ((wxMenuItem *) x));
30916 }
30917 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
30918 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
30919 }
30920 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
30921 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
30922 }
30923 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
30924 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
30925 }
30926 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
30927 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
30928 }
30929 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
30930 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
30931 }
30932 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
30933 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
30934 }
30935 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
30936 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
30937 }
30938 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
30939 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
30940 }
30941 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
30942 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
30943 }
30944 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
30945 return (void *)((wxObject *) ((wxContextHelp *) x));
30946 }
30947 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
30948 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
30949 }
30950 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
30951 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
30952 }
30953 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
30954 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
30955 }
30956 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
30957 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
30958 }
30959 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
30960 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
30961 }
30962 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
30963 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
30964 }
30965 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
30966 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
30967 }
30968 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
30969 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
30970 }
30971 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
30972 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
30973 }
30974 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
30975 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
30976 }
30977 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
30978 return (void *)((wxObject *) ((wxImageHandler *) x));
30979 }
30980 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
30981 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
30982 }
30983 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
30984 return (void *)((wxObject *) ((wxEvtHandler *) x));
30985 }
30986 static void *_p_wxListEventTo_p_wxObject(void *x) {
30987 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
30988 }
30989 static void *_p_wxListBoxTo_p_wxObject(void *x) {
30990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
30991 }
30992 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
30993 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
30994 }
30995 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
30996 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
30997 }
30998 static void *_p_wxButtonTo_p_wxObject(void *x) {
30999 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
31000 }
31001 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
31002 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
31003 }
31004 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
31005 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
31006 }
31007 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
31008 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31009 }
31010 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31011 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31012 }
31013 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
31014 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
31015 }
31016 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
31017 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
31018 }
31019 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
31020 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31021 }
31022 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
31023 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
31024 }
31025 static void *_p_wxListItemTo_p_wxObject(void *x) {
31026 return (void *)((wxObject *) ((wxListItem *) x));
31027 }
31028 static void *_p_wxImageTo_p_wxObject(void *x) {
31029 return (void *)((wxObject *) ((wxImage *) x));
31030 }
31031 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
31032 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
31033 }
31034 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31035 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31036 }
31037 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
31038 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31039 }
31040 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
31041 return (void *)((wxObject *) ((wxGenericDragImage *) x));
31042 }
31043 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
31044 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
31045 }
31046 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
31047 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31048 }
31049 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
31050 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31051 }
31052 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31053 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31054 }
31055 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31056 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31057 }
31058 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31059 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31060 }
31061 static void *_p_wxWindowTo_p_wxObject(void *x) {
31062 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31063 }
31064 static void *_p_wxMenuTo_p_wxObject(void *x) {
31065 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31066 }
31067 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31068 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31069 }
31070 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
31071 return (void *)((wxObject *) ((wxFileSystem *) x));
31072 }
31073 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
31074 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
31075 }
31076 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
31077 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
31078 }
31079 static void *_p_wxPyAppTo_p_wxObject(void *x) {
31080 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
31081 }
31082 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
31083 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
31084 }
31085 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
31086 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
31087 }
31088 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
31089 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
31090 }
31091 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
31092 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31093 }
31094 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
31095 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
31096 }
31097 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
31098 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
31099 }
31100 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
31101 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
31102 }
31103 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
31104 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
31105 }
31106 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
31107 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
31108 }
31109 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
31110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
31111 }
31112 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
31113 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31114 }
31115 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
31116 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
31117 }
31118 static void *_p_wxToolBarTo_p_wxObject(void *x) {
31119 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31120 }
31121 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
31122 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
31123 }
31124 static void *_p_wxValidatorTo_p_wxObject(void *x) {
31125 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
31126 }
31127 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
31128 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
31129 }
31130 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
31131 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
31132 }
31133 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
31134 return (void *)((wxWindow *) ((wxMenuBar *) x));
31135 }
31136 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
31137 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
31138 }
31139 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
31140 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
31141 }
31142 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
31143 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
31144 }
31145 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
31146 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
31147 }
31148 static void *_p_wxControlTo_p_wxWindow(void *x) {
31149 return (void *)((wxWindow *) ((wxControl *) x));
31150 }
31151 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
31152 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
31153 }
31154 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
31155 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
31156 }
31157 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
31158 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
31159 }
31160 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
31161 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
31162 }
31163 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
31164 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
31165 }
31166 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
31167 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
31168 }
31169 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
31170 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
31171 }
31172 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
31173 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
31174 }
31175 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
31176 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
31177 }
31178 static void *_p_wxListbookTo_p_wxWindow(void *x) {
31179 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
31180 }
31181 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
31182 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
31183 }
31184 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
31185 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
31186 }
31187 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
31188 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
31189 }
31190 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
31191 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
31192 }
31193 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
31194 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
31195 }
31196 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
31197 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
31198 }
31199 static void *_p_wxListViewTo_p_wxWindow(void *x) {
31200 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
31201 }
31202 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
31203 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
31204 }
31205 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
31206 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
31207 }
31208 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
31209 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
31210 }
31211 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
31212 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
31213 }
31214 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
31215 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
31216 }
31217 static void *_p_wxSliderTo_p_wxWindow(void *x) {
31218 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
31219 }
31220 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
31221 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
31222 }
31223 static void *_p_wxButtonTo_p_wxWindow(void *x) {
31224 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
31225 }
31226 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
31227 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
31228 }
31229 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
31230 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
31231 }
31232 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
31233 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
31234 }
31235 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
31236 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31237 }
31238 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
31239 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31240 }
31241 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
31242 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
31243 }
31244 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
31245 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
31246 }
31247 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
31248 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
31249 }
31250 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
31251 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
31252 }
31253 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
31254 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
31255 }
31256 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
31257 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31258 }
31259 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
31260 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31261 }
31262 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
31263 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
31264 }
31265 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
31266 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
31267 }
31268 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
31269 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
31270 }
31271 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
31272 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
31273 }
31274 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
31275 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
31276 }
31277 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
31278 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
31279 }
31280 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
31281 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
31282 }
31283 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
31284 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
31285 }
31286 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
31287 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
31288 }
31289 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
31290 return (void *)((wxControlWithItems *) ((wxChoice *) x));
31291 }
31292 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
31293 return (void *)((wxControlWithItems *) ((wxListBox *) x));
31294 }
31295 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
31296 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
31297 }
31298 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
31299 return (void *)((wxValidator *) ((wxPyValidator *) x));
31300 }
31301 static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}};
31302 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}};
31303 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}};
31304 static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}};
31305 static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}};
31306 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}};
31307 static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}};
31308 static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}};
31309 static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}};
31310 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}};
31311 static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}};
31312 static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}};
31313 static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}};
31314 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}};
31315 static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}};
31316 static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}};
31317 static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}};
31318 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
31319 static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}};
31320 static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}};
31321 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}};
31322 static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}};
31323 static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}};
31324 static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}};
31325 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
31326 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
31327 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
31328 static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}};
31329 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
31330 static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}};
31331 static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}};
31332 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}};
31333 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
31334 static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}};
31335 static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}};
31336 static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}};
31337 static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}};
31338 static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}};
31339 static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}};
31340 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
31341 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}};
31342 static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}};
31343 static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}};
31344 static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}};
31345 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}};
31346 static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}};
31347 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}};
31348 static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}};
31349 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
31350 static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}};
31351 static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}};
31352 static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}};
31353 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
31354 static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}};
31355 static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}};
31356 static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}};
31357 static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}};
31358 static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}};
31359 static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}};
31360 static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}};
31361 static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}};
31362 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
31363 static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}};
31364 static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}};
31365 static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}};
31366 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
31367 static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}};
31368 static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}};
31369 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}};
31370 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
31371 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}};
31372 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}};
31373 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
31374 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
31375 static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}};
31376 static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}};
31377 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}};
31378 static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}};
31379 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems},{"_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}};
31380 static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}};
31381 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
31382 static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}};
31383 static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}};
31384 static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}};
31385
31386 static swig_type_info *swig_types_initial[] = {
31387 _swigt__p_wxTextUrlEvent,
31388 _swigt__p_wxBookCtrlEvent,
31389 _swigt__p_wxSizer,
31390 _swigt__p_wxCheckBox,
31391 _swigt__p_wxPyTreeCtrl,
31392 _swigt__p_wxEvent,
31393 _swigt__p_wxGenericDirCtrl,
31394 _swigt__p_bool,
31395 _swigt__p_wxPyTreeItemData,
31396 _swigt__p_wxItemContainer,
31397 _swigt__p_wxDirFilterListCtrl,
31398 _swigt__p_wxPyListCtrl,
31399 _swigt__p_wxStaticLine,
31400 _swigt__p_wxControl,
31401 _swigt__p_wxPyControl,
31402 _swigt__p_wxGauge,
31403 _swigt__p_wxToolBarBase,
31404 _swigt__p_wxFont,
31405 _swigt__p_wxToggleButton,
31406 _swigt__p_wxRadioButton,
31407 _swigt__p_wxChoice,
31408 _swigt__p_wxMemoryDC,
31409 _swigt__p_wxListItemAttr,
31410 _swigt__p_void,
31411 _swigt__p_int,
31412 _swigt__p_wxSize,
31413 _swigt__p_wxDC,
31414 _swigt__p_wxListView,
31415 _swigt__p_wxIcon,
31416 _swigt__p_wxTextCtrl,
31417 _swigt__p_wxNotebook,
31418 _swigt__p_wxNotifyEvent,
31419 _swigt__p_wxArrayString,
31420 _swigt__p_wxListbook,
31421 _swigt__p_wxStaticBitmap,
31422 _swigt__p_wxSlider,
31423 _swigt__p_wxStaticBox,
31424 _swigt__p_wxArrayInt,
31425 _swigt__p_wxContextHelp,
31426 _swigt__p_long,
31427 _swigt__p_wxEvtHandler,
31428 _swigt__p_wxListEvent,
31429 _swigt__p_wxListBox,
31430 _swigt__p_wxCheckListBox,
31431 _swigt__p_wxBookCtrl,
31432 _swigt__p_wxSpinButton,
31433 _swigt__p_wxButton,
31434 _swigt__p_wxBitmapButton,
31435 _swigt__p_wxRect,
31436 _swigt__p_wxContextHelpButton,
31437 _swigt__p_wxRadioBox,
31438 _swigt__p_wxScrollBar,
31439 _swigt__p_char,
31440 _swigt__p_wxTreeItemId,
31441 _swigt__p_wxComboBox,
31442 _swigt__p_wxHelpEvent,
31443 _swigt__p_wxListItem,
31444 _swigt__p_wxNotebookSizer,
31445 _swigt__p_wxSpinEvent,
31446 _swigt__p_wxGenericDragImage,
31447 _swigt__p_wxSpinCtrl,
31448 _swigt__p_wxImageList,
31449 _swigt__p_wxHelpProvider,
31450 _swigt__p_wxTextAttr,
31451 _swigt__p_wxSimpleHelpProvider,
31452 _swigt__p_wxPoint,
31453 _swigt__p_wxListbookEvent,
31454 _swigt__p_wxNotebookEvent,
31455 _swigt__p_wxObject,
31456 _swigt__p_wxCursor,
31457 _swigt__p_wxKeyEvent,
31458 _swigt__p_wxWindow,
31459 _swigt__p_wxString,
31460 _swigt__p_wxBitmap,
31461 _swigt__p_wxTreeEvent,
31462 _swigt__p_wxMouseEvent,
31463 _swigt__p_wxCommandEvent,
31464 _swigt__p_wxStaticText,
31465 _swigt__p_wxControlWithItems,
31466 _swigt__p_wxToolBarToolBase,
31467 _swigt__p_wxColour,
31468 _swigt__p_wxToolBar,
31469 _swigt__p_wxBookCtrlSizer,
31470 _swigt__p_wxValidator,
31471 0
31472 };
31473
31474
31475 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
31476
31477 static swig_const_info swig_const_table[] = {
31478 {0}};
31479
31480 #ifdef __cplusplus
31481 }
31482 #endif
31483
31484 #ifdef __cplusplus
31485 extern "C"
31486 #endif
31487 SWIGEXPORT(void) SWIG_init(void) {
31488 static PyObject *SWIG_globals = 0;
31489 static int typeinit = 0;
31490 PyObject *m, *d;
31491 int i;
31492 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
31493 m = Py_InitModule((char *) SWIG_name, SwigMethods);
31494 d = PyModule_GetDict(m);
31495
31496 if (!typeinit) {
31497 for (i = 0; swig_types_initial[i]; i++) {
31498 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
31499 }
31500 typeinit = 1;
31501 }
31502 SWIG_InstallConstants(d,swig_const_table);
31503
31504 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
31505 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
31506 PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT));
31507 PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP));
31508 PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT));
31509 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM));
31510 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT));
31511 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW));
31512 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
31513 PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE));
31514 PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE));
31515 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
31516 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED));
31517 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED));
31518 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED));
31519 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
31520 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
31521 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
31522 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL));
31523 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL));
31524 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH));
31525 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR));
31526 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
31527 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
31528 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
31529 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
31530 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
31531 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL));
31532 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL));
31533 PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY));
31534 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE));
31535 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB));
31536 PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT));
31537 PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER));
31538 PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT));
31539 PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE));
31540 PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH));
31541 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER));
31542 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD));
31543 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL));
31544 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL));
31545 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP));
31546 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP));
31547 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP));
31548 PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2));
31549 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
31550 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
31551 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
31552 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
31553 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
31554 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
31555 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
31556 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
31557 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE));
31558 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
31559 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
31560 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
31561 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
31562 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT));
31563 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
31564 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
31565 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
31566 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS));
31567 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN));
31568 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE));
31569 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT));
31570 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW));
31571 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND));
31572 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
31573 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
31574 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
31575 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
31576 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
31577 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
31578 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
31579 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL));
31580 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL));
31581 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS));
31582 PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP));
31583 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
31584 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
31585 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
31586 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
31587 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
31588 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
31589 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
31590 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH));
31591 PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP));
31592 PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT));
31593 PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT));
31594 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM));
31595 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE));
31596 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE));
31597 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON));
31598 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL));
31599 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM));
31600 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
31601 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
31602 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT));
31603 PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP));
31604 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM));
31605 PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT));
31606 PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT));
31607 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK));
31608 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
31609 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
31610 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON));
31611 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR));
31612 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL));
31613 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL));
31614 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL));
31615 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS));
31616 PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT));
31617 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE));
31618 PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS));
31619 PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT));
31620 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER));
31621 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN));
31622 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT));
31623 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT));
31624 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
31625 PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES));
31626 PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES));
31627 PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON));
31628 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON));
31629 PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST));
31630 PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT));
31631 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP));
31632 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT));
31633 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE));
31634 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL));
31635 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS));
31636 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER));
31637 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER));
31638 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL));
31639 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING));
31640 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING));
31641 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE));
31642 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN));
31643 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT));
31644 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE));
31645 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT));
31646 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE));
31647 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA));
31648 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM));
31649 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH));
31650 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT));
31651 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE));
31652 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED));
31653 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED));
31654 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED));
31655 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT));
31656 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED));
31657 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED));
31658 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE));
31659 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED));
31660 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE));
31661 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE));
31662 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW));
31663 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE));
31664 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON));
31665 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
31666 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
31667 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
31668 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT));
31669 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT));
31670 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM));
31671 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE));
31672 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL));
31673 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW));
31674 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT));
31675 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT));
31676 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT));
31677 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT));
31678 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP));
31679 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
31680 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT));
31681 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT));
31682 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE));
31683 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER));
31684 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE));
31685 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
31686 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS));
31687 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON));
31688 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL));
31689 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP));
31690 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN));
31691 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT));
31692 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT));
31693 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
31694 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
31695 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
31696 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
31697 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
31698 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
31699 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
31700 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
31701 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
31702 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
31703 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
31704 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
31705 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
31706 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
31707 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
31708 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
31709 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
31710 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
31711 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
31712 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
31713 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
31714 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
31715
31716 // Map renamed classes back to their common name for OOR
31717 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
31718
31719 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
31720 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS));
31721 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS));
31722 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES));
31723 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT));
31724 PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE));
31725 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE));
31726 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED));
31727 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
31728 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS));
31729 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT));
31730 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES));
31731 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
31732 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE));
31733 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS));
31734 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS));
31735 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS));
31736 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal));
31737 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected));
31738 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded));
31739 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded));
31740 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max));
31741 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE));
31742 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW));
31743 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE));
31744 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
31745 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON));
31746 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
31747 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
31748 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
31749 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
31750 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT));
31751 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT));
31752 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
31753 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
31754 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM));
31755 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
31756 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
31757 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
31758 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
31759 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
31760 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
31761 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
31762 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
31763 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
31764 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
31765 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
31766 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
31767 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
31768 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
31769 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
31770 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
31771 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
31772 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
31773 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
31774 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
31775
31776 // Map renamed classes back to their common name for OOR
31777 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
31778 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
31779
31780 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
31781 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY));
31782 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST));
31783 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
31784 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL));
31785 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS));
31786 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP));
31787 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
31788 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
31789 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
31790
31791 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
31792
31793 }
31794