]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
grid/dbgrid was not getting built for inclusion with this project
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
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
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
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; }
25private:
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
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef 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
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198/* Contract support */
199
200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202#ifdef __cplusplus
203}
204#endif
205
206
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
210#define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
211#define SWIGTYPE_p_wxSizer swig_types[2]
212#define SWIGTYPE_p_wxCheckBox swig_types[3]
213#define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
214#define SWIGTYPE_p_wxEvent swig_types[5]
215#define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
216#define SWIGTYPE_p_bool swig_types[7]
217#define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
218#define SWIGTYPE_p_wxItemContainer swig_types[9]
219#define SWIGTYPE_p_wxPyListCtrl swig_types[10]
220#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11]
221#define SWIGTYPE_p_wxStaticLine swig_types[12]
222#define SWIGTYPE_p_wxControl swig_types[13]
223#define SWIGTYPE_p_wxPyControl swig_types[14]
224#define SWIGTYPE_p_wxGauge swig_types[15]
225#define SWIGTYPE_p_wxToolBarBase swig_types[16]
226#define SWIGTYPE_p_wxFont swig_types[17]
227#define SWIGTYPE_p_wxToggleButton swig_types[18]
228#define SWIGTYPE_p_wxRadioButton swig_types[19]
229#define SWIGTYPE_p_wxChoice swig_types[20]
230#define SWIGTYPE_p_wxMemoryDC swig_types[21]
231#define SWIGTYPE_p_wxListItemAttr swig_types[22]
232#define SWIGTYPE_p_void swig_types[23]
233#define SWIGTYPE_p_int swig_types[24]
234#define SWIGTYPE_p_wxSize swig_types[25]
235#define SWIGTYPE_p_wxDC swig_types[26]
236#define SWIGTYPE_p_wxListView swig_types[27]
237#define SWIGTYPE_p_wxIcon swig_types[28]
238#define SWIGTYPE_p_wxVisualAttributes swig_types[29]
239#define SWIGTYPE_p_wxTextCtrl swig_types[30]
240#define SWIGTYPE_p_wxNotebook swig_types[31]
241#define SWIGTYPE_p_wxNotifyEvent swig_types[32]
242#define SWIGTYPE_p_wxArrayString swig_types[33]
243#define SWIGTYPE_p_wxListbook swig_types[34]
244#define SWIGTYPE_p_wxStaticBitmap swig_types[35]
245#define SWIGTYPE_p_wxSlider swig_types[36]
246#define SWIGTYPE_p_wxStaticBox swig_types[37]
247#define SWIGTYPE_p_wxArrayInt swig_types[38]
248#define SWIGTYPE_p_wxContextHelp swig_types[39]
249#define SWIGTYPE_p_long swig_types[40]
250#define SWIGTYPE_p_wxEvtHandler swig_types[41]
251#define SWIGTYPE_p_wxListEvent swig_types[42]
252#define SWIGTYPE_p_wxCheckListBox swig_types[43]
253#define SWIGTYPE_p_wxListBox swig_types[44]
254#define SWIGTYPE_p_wxBookCtrl swig_types[45]
255#define SWIGTYPE_p_wxSpinButton swig_types[46]
256#define SWIGTYPE_p_wxButton swig_types[47]
257#define SWIGTYPE_p_wxBitmapButton swig_types[48]
258#define SWIGTYPE_p_wxRect swig_types[49]
259#define SWIGTYPE_p_wxContextHelpButton swig_types[50]
260#define SWIGTYPE_p_wxRadioBox swig_types[51]
261#define SWIGTYPE_p_wxScrollBar swig_types[52]
262#define SWIGTYPE_p_char swig_types[53]
263#define SWIGTYPE_p_wxTreeItemId swig_types[54]
264#define SWIGTYPE_p_wxComboBox swig_types[55]
265#define SWIGTYPE_p_wxHelpEvent swig_types[56]
266#define SWIGTYPE_p_wxListItem swig_types[57]
267#define SWIGTYPE_p_wxNotebookSizer swig_types[58]
268#define SWIGTYPE_p_wxSpinEvent swig_types[59]
269#define SWIGTYPE_p_wxGenericDragImage swig_types[60]
270#define SWIGTYPE_p_wxSpinCtrl swig_types[61]
271#define SWIGTYPE_p_wxImageList swig_types[62]
272#define SWIGTYPE_p_wxHelpProvider swig_types[63]
273#define SWIGTYPE_p_wxTextAttr swig_types[64]
274#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65]
275#define SWIGTYPE_p_wxPoint swig_types[66]
276#define SWIGTYPE_p_wxListbookEvent swig_types[67]
277#define SWIGTYPE_p_wxNotebookEvent swig_types[68]
278#define SWIGTYPE_p_wxObject swig_types[69]
279#define SWIGTYPE_p_wxCursor swig_types[70]
280#define SWIGTYPE_p_wxKeyEvent swig_types[71]
281#define SWIGTYPE_p_wxWindow swig_types[72]
282#define SWIGTYPE_p_wxString swig_types[73]
283#define SWIGTYPE_p_wxBitmap swig_types[74]
284#define SWIGTYPE_p_wxTreeEvent swig_types[75]
285#define SWIGTYPE_p_wxMouseEvent swig_types[76]
286#define SWIGTYPE_p_wxCommandEvent swig_types[77]
287#define SWIGTYPE_p_wxStaticText swig_types[78]
288#define SWIGTYPE_p_wxControlWithItems swig_types[79]
289#define SWIGTYPE_p_wxToolBarToolBase swig_types[80]
290#define SWIGTYPE_p_wxColour swig_types[81]
291#define SWIGTYPE_p_wxToolBar swig_types[82]
292#define SWIGTYPE_p_wxBookCtrlSizer swig_types[83]
293#define SWIGTYPE_p_wxValidator swig_types[84]
294static swig_type_info *swig_types[86];
295
296/* -------- TYPES TABLE (END) -------- */
297
298
299/*-----------------------------------------------
300 @(target):= _controls_.so
301 ------------------------------------------------*/
302#define SWIG_init init_controls_
303
304#define SWIG_name "_controls_"
305
306/* Auxiliar swig macros */
307
308#ifdef __cplusplus
309#define SWIGSTATICINLINE(a) static inline a
310#define SWIGSTATIC(a) static a
311#define swig_new_array(type, size) (new type[(size)])
312#define swig_delete_array(cptr) delete[] cptr
313#define swig_const_cast(type,a) const_cast<type>(a)
314#define swig_static_cast(type,a) static_cast<type>(a)
315#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
316
317#ifdef HAVE_NUMERIC_CAST
318#define swig_numeric_cast(type,a) numeric_cast<type>(a)
319#else
320#define swig_numeric_cast(type,a) static_cast<type>(a)
321#endif
322
323#else /* C case */
324
325#define SWIGSTATICINLINE(a) static a
326#define SWIGSTATIC(a) static a
327#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
328#define swig_delete_array(cptr) free((char*)cptr)
329#define swig_const_cast(type,a) (type)(a)
330#define swig_static_cast(type,a) (type)(a)
331#define swig_reinterpret_cast(type,a) (type)(a)
332#define swig_numeric_cast(type,a) (type)(a)
333
334#endif /* __cplusplus */
335
336
337#define SWIG_FromSignedChar PyInt_FromLong
338#define SWIG_FromUnsignedChar PyInt_FromLong
339#define SWIG_FromShort PyInt_FromLong
340#define SWIG_FromUnsignedShort PyInt_FromLong
341#define SWIG_FromInt PyInt_FromLong
342#define SWIG_FromLong PyInt_FromLong
343#define SWIG_FromFloat PyFloat_FromDouble
344#define SWIG_FromDouble PyFloat_FromDouble
345#define SWIG_FromFloat PyFloat_FromDouble
346#define SWIG_FromDouble PyFloat_FromDouble
347
348
349#include "wx/wxPython/wxPython.h"
350#include "wx/wxPython/pyclasses.h"
351
352 static const wxString wxPyPanelNameStr(wxPanelNameStr);
353 static const wxString wxPyEmptyString(wxEmptyString);
354 static const wxString wxPyControlNameStr(wxControlNameStr);
355
356 const wxArrayString wxPyEmptyStringArray;
357
358 static const wxString wxPyButtonNameStr(wxButtonNameStr);
359
360#include <limits.h>
361
362
363SWIGSTATICINLINE(long)
364SWIG_CheckLongInRange(long value, const char* type,
365 long min_value, long max_value)
366{
367 if (!PyErr_Occurred()) {
368 if (value < min_value) {
369 PyObject *err =
370 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
371 value, type, min_value);
372
373 PyErr_SetObject(PyExc_OverflowError, err);
374 Py_DECREF(err);
375 } else if (value > max_value) {
376 PyObject *err =
377 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
378 value, type, max_value);
379 PyErr_SetObject(PyExc_OverflowError, err);
380 Py_DECREF(err);
381 }
382 }
383 return value;
384}
385
386
387SWIGSTATICINLINE(long)
388SWIG_AsLong(PyObject * obj)
389{
390 if (PyNumber_Check(obj))
391 return PyInt_AsLong(obj);
392 else {
393 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
394 obj->ob_type->tp_name);
395 PyErr_SetObject(PyExc_TypeError, errmsg);
396 Py_DECREF(errmsg);
397 return 0;
398 }
399}
400
401
402#if INT_MAX != LONG_MAX
403SWIGSTATICINLINE(int)
404SWIG_AsInt(PyObject *obj)
405{
406 return swig_numeric_cast(int,
407 SWIG_CheckLongInRange(SWIG_AsLong(obj),
408 "int", INT_MIN, INT_MAX));
409}
410#else
411#define SWIG_AsInt SWIG_AsLong
412#endif
413
414
415SWIGSTATICINLINE(int)
416SWIG_CheckInt(PyObject* obj)
417{
418 SWIG_AsInt(obj);
419 if (PyErr_Occurred()) {
420 PyErr_Clear();
421 return 0;
422 } else {
423 return 1;
424 }
425}
426
427
428SWIGSTATICINLINE(int)
429SWIG_CheckLong(PyObject* obj)
430{
431 SWIG_AsLong(obj);
432 if (PyErr_Occurred()) {
433 PyErr_Clear();
434 return 0;
435 } else {
436 return 1;
437 }
438}
439
440 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
441
442SWIGSTATICINLINE(bool)
443SWIG_AsBool(PyObject *obj)
444{
445 return PyObject_IsTrue(obj) ? true : false;
446}
447
448
449SWIGSTATICINLINE(int)
450SWIG_CheckBool(PyObject* obj)
451{
452 SWIG_AsBool(obj);
453 if (PyErr_Occurred()) {
454 PyErr_Clear();
455 return 0;
456 } else {
457 return 1;
458 }
459}
460
461 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
462 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
463 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
464 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
465 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
466 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
467
468#include <wx/checklst.h>
469
470
471 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
472void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
473 if (clientData) {
474 wxPyClientData* data = new wxPyClientData(clientData);
475 self->Insert(item, pos, data);
476 } else
477 self->Insert(item, pos);
478 }
479PyObject *wxListBox_GetSelections(wxListBox *self){
480 wxArrayInt lst;
481 self->GetSelections(lst);
482 PyObject *tup = PyTuple_New(lst.GetCount());
483 for(size_t i=0; i<lst.GetCount(); i++) {
484 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
485 }
486 return tup;
487 }
488void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
489 #ifdef __WXMSW__
490 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
491 self->GetItem(item)->SetTextColour(c);
492 #endif
493 }
494void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
495 #ifdef __WXMSW__
496 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
497 self->GetItem(item)->SetBackgroundColour(c);
498 #endif
499 }
500void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
501 #ifdef __WXMSW__
502 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
503 self->GetItem(item)->SetFont(f);
504 #endif
505 }
506 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
507
508static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532}
533
534
535SWIGSTATICINLINE(unsigned long)
536SWIG_AsUnsignedLong(PyObject * obj)
537{
538 if (PyLong_Check(obj)) {
539 return PyLong_AsUnsignedLong(obj);
540 } else {
541 long i = SWIG_AsLong(obj);
542 if ( !PyErr_Occurred() && (i < 0)) {
543 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
544 }
545 return i;
546 }
547}
548
549
550SWIGSTATICINLINE(int)
551SWIG_CheckUnsignedLong(PyObject* obj)
552{
553 SWIG_AsUnsignedLong(obj);
554 if (PyErr_Occurred()) {
555 PyErr_Clear();
556 return 0;
557 } else {
558 return 1;
559 }
560}
561
562void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
563 self->AppendText(text);
564 }
565wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
566 return self->GetValue().Mid(from, to - from);
567 }
568 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
569 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
570 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
571 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
572 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
573
574#include <wx/slider.h>
575
576
577 static const wxString wxPySliderNameStr(wxSliderNameStr);
578 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
579
580#if !wxUSE_TOGGLEBTN
581// implement dummy items for platforms that don't have this class
582
583#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
584
585class wxToggleButton : public wxControl
586{
587public:
588 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
589 const wxPoint&, const wxSize&, long,
590 const wxValidator&, const wxString&)
591 { wxPyRaiseNotImplemented(); }
592
593 wxToggleButton()
594 { wxPyRaiseNotImplemented(); }
595};
596#endif
597
598 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
599
600SWIGSTATICINLINE(PyObject* )
601SWIG_FromUnsignedLong(unsigned long value)
602{
603 return (value > LONG_MAX) ?
604 PyLong_FromUnsignedLong(value)
605 : PyInt_FromLong(swig_numeric_cast(long,value));
606}
607
608 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
609PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
610 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
611 if (udata) {
612 Py_INCREF(udata->m_obj);
613 return udata->m_obj;
614 } else {
615 Py_INCREF(Py_None);
616 return Py_None;
617 }
618 }
619void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
620 self->SetClientData(new wxPyUserData(clientData));
621 }
622wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
623 wxPyUserData* udata = NULL;
624 if (clientData && clientData != Py_None)
625 udata = new wxPyUserData(clientData);
626 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
627 shortHelp, longHelp, udata);
628 }
629wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
630 wxPyUserData* udata = NULL;
631 if (clientData && clientData != Py_None)
632 udata = new wxPyUserData(clientData);
633 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
634 shortHelp, longHelp, udata);
635 }
636PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
637 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
638 if (udata) {
639 Py_INCREF(udata->m_obj);
640 return udata->m_obj;
641 } else {
642 Py_INCREF(Py_None);
643 return Py_None;
644 }
645 }
646void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
647 self->SetToolClientData(id, new wxPyUserData(clientData));
648 }
649
650#include <wx/listctrl.h>
651
652
653 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
654void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
655 // Python aware sorting function for wxPyListCtrl
656 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
657 int retval = 0;
658 PyObject* func = (PyObject*)funcPtr;
659 bool blocked = wxPyBeginBlockThreads();
660
661 PyObject* args = Py_BuildValue("(ii)", item1, item2);
662 PyObject* result = PyEval_CallObject(func, args);
663 Py_DECREF(args);
664 if (result) {
665 retval = PyInt_AsLong(result);
666 Py_DECREF(result);
667 }
668
669 wxPyEndBlockThreads(blocked);
670 return retval;
671 }
672
673 // C++ Version of a Python aware class
674class wxPyListCtrl : public wxListCtrl {
675 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
676public:
677 wxPyListCtrl() : wxListCtrl() {}
678 wxPyListCtrl(wxWindow* parent, wxWindowID id,
679 const wxPoint& pos,
680 const wxSize& size,
681 long style,
682 const wxValidator& validator,
683 const wxString& name) :
684 wxListCtrl(parent, id, pos, size, style, validator, name) {}
685
686 bool Create(wxWindow* parent, wxWindowID id,
687 const wxPoint& pos,
688 const wxSize& size,
689 long style,
690 const wxValidator& validator,
691 const wxString& name) {
692 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
693 }
694
695 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
696 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
697 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
698
699 PYPRIVATE;
700};
701
702IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
703
704IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
705IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
706IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
707
708wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
709 wxListItem item;
710 item.SetMask( wxLIST_MASK_STATE |
711 wxLIST_MASK_TEXT |
712 wxLIST_MASK_IMAGE |
713 wxLIST_MASK_DATA |
714 wxLIST_SET_ITEM |
715 wxLIST_MASK_WIDTH |
716 wxLIST_MASK_FORMAT
717 );
718 if (self->GetColumn(col, item))
719 return new wxListItem(item);
720 else
721 return NULL;
722 }
723wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
724 wxListItem* info = new wxListItem;
725 info->m_itemId = itemId;
726 info->m_col = col;
727 info->m_mask = 0xFFFF;
728 self->GetItem(*info);
729 return info;
730 }
731wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
732 wxPoint pos;
733 self->GetItemPosition(item, pos);
734 return pos;
735 }
736wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
737 wxRect rect;
738 self->GetItemRect(item, rect, code);
739 return rect;
740 }
741bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
742 if (!PyCallable_Check(func))
743 return False;
744 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
745 }
746wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
747
748
749
750 return (wxWindow*)self->m_mainWin;
751
752 }
753
754#include <wx/treectrl.h>
755#include "wx/wxPython/pytree.h"
756
757 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
758bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
759bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
760void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
761 // C++ version of Python aware wxTreeCtrl
762class wxPyTreeCtrl : public wxTreeCtrl {
763 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
764public:
765 wxPyTreeCtrl() : wxTreeCtrl() {}
766 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
767 const wxPoint& pos,
768 const wxSize& size,
769 long style,
770 const wxValidator& validator,
771 const wxString& name) :
772 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
773
774 bool Create(wxWindow *parent, wxWindowID id,
775 const wxPoint& pos,
776 const wxSize& size,
777 long style,
778 const wxValidator& validator,
779 const wxString& name) {
780 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
781 }
782
783
784 int OnCompareItems(const wxTreeItemId& item1,
785 const wxTreeItemId& item2) {
786 int rval = 0;
787 bool found;
788 bool blocked = wxPyBeginBlockThreads();
789 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
790 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
791 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
792 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
793 Py_DECREF(o1);
794 Py_DECREF(o2);
795 }
796 wxPyEndBlockThreads(blocked);
797 if (! found)
798 rval = wxTreeCtrl::OnCompareItems(item1, item2);
799 return rval;
800 }
801 PYPRIVATE;
802};
803
804IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
805
806
807
808#if UINT_MAX < LONG_MAX
809#define SWIG_FromUnsignedInt SWIG_FromLong
810#else
811#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
812#endif
813
814
815SWIGSTATICINLINE(unsigned long)
816SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
817 unsigned long max_value)
818{
819 if (!PyErr_Occurred()) {
820 if (value > max_value) {
821 PyObject *err =
822 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
823 value, type, max_value);
824 PyErr_SetObject(PyExc_OverflowError, err);
825 Py_DECREF(err);
826 }
827 }
828 return value;
829}
830
831
832#if UINT_MAX != ULONG_MAX
833SWIGSTATICINLINE(unsigned int)
834SWIG_AsUnsignedInt(PyObject *obj)
835{
836 return swig_numeric_cast(unsigned int,
837 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
838 "unsigned int", UINT_MAX));
839}
840#else
841#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
842#endif
843
844
845SWIGSTATICINLINE(int)
846SWIG_CheckUnsignedInt(PyObject* obj)
847{
848 SWIG_AsUnsignedInt(obj);
849 if (PyErr_Occurred()) {
850 PyErr_Clear();
851 return 0;
852 } else {
853 return 1;
854 }
855}
856
857wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
858 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
859 if (data == NULL) {
860 data = new wxPyTreeItemData();
861 data->SetId(item); // set the id
862 self->SetItemData(item, data);
863 }
864 return data;
865 }
866PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
867 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
868 if (data == NULL) {
869 data = new wxPyTreeItemData();
870 data->SetId(item); // set the id
871 self->SetItemData(item, data);
872 }
873 return data->GetData();
874 }
875void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
876 data->SetId(item); // set the id
877 self->SetItemData(item, data);
878 }
879void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
880 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
881 if (data == NULL) {
882 data = new wxPyTreeItemData(obj);
883 data->SetId(item); // set the id
884 self->SetItemData(item, data);
885 } else
886 data->SetData(obj);
887 }
888PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
889 bool blocked = wxPyBeginBlockThreads();
890 PyObject* rval = PyList_New(0);
891 wxArrayTreeItemIds array;
892 size_t num, x;
893 num = self->GetSelections(array);
894 for (x=0; x < num; x++) {
895 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
896 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
897 PyList_Append(rval, item);
898 }
899 wxPyEndBlockThreads(blocked);
900 return rval;
901 }
902PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
903 void* cookie = 0;
904 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
905 bool blocked = wxPyBeginBlockThreads();
906 PyObject* tup = PyTuple_New(2);
907 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
908 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
909 wxPyEndBlockThreads(blocked);
910 return tup;
911 }
912PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
913 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
914 bool blocked = wxPyBeginBlockThreads();
915 PyObject* tup = PyTuple_New(2);
916 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
917 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
918 wxPyEndBlockThreads(blocked);
919 return tup;
920 }
921PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
922 wxRect rect;
923 if (self->GetBoundingRect(item, rect, textOnly)) {
924 bool blocked = wxPyBeginBlockThreads();
925 wxRect* r = new wxRect(rect);
926 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
927 wxPyEndBlockThreads(blocked);
928 return val;
929 }
930 else
931 RETURN_NONE();
932 }
933 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
934 // C++ version of Python aware wxControl
935class wxPyControl : public wxControl
936{
937 DECLARE_DYNAMIC_CLASS(wxPyControl)
938public:
939 wxPyControl() : wxControl() {}
940 wxPyControl(wxWindow* parent, const wxWindowID id,
941 const wxPoint& pos = wxDefaultPosition,
942 const wxSize& size = wxDefaultSize,
943 long style = 0,
944 const wxValidator& validator=wxDefaultValidator,
945 const wxString& name = wxPyControlNameStr)
946 : wxControl(parent, id, pos, size, style, validator, name) {}
947
a5ee0656 948 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d55e5bfc
RD
949
950 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
951 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
952 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
953 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
954
955 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
956 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
957 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
958
959 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
960 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
961
962 DEC_PYCALLBACK__(InitDialog);
963 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
964 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
965 DEC_PYCALLBACK_BOOL_(Validate);
966
967 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
968 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
969 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
970
971 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
972 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
973
a5ee0656 974 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
d55e5bfc 975 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
a5ee0656 976 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc
RD
977
978 PYPRIVATE;
979};
980
981IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
982
983IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
984IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
985IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
986IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
987
988IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
989IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
990IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
991
992IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
993IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
994
995IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
996IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
997IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
998IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
999
1000IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1001IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1002IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1003
1004IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1005IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1006
a5ee0656 1007IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
d55e5bfc 1008IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
a5ee0656 1009IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc
RD
1010
1011
1012
1013void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1014
1015#include <wx/generic/dragimgg.h>
1016
1017#ifdef __cplusplus
1018extern "C" {
1019#endif
1020static int _wrap_ButtonNameStr_set(PyObject *_val) {
1021 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1022 return 1;
1023}
1024
1025
1026static PyObject *_wrap_ButtonNameStr_get() {
1027 PyObject *pyobj;
1028
1029 {
1030#if wxUSE_UNICODE
1031 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1032#else
1033 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1034#endif
1035 }
1036 return pyobj;
1037}
1038
1039
1040static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
1041 PyObject *resultobj;
1042 wxWindow *arg1 = (wxWindow *) 0 ;
1043 int arg2 ;
1044 wxString *arg3 = 0 ;
1045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1047 wxSize const &arg5_defvalue = wxDefaultSize ;
1048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1049 long arg6 = (long) 0 ;
1050 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1051 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1052 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1053 wxString *arg8 = (wxString *) &arg8_defvalue ;
1054 wxButton *result;
1055 bool temp3 = False ;
1056 wxPoint temp4 ;
1057 wxSize temp5 ;
1058 bool temp8 = False ;
1059 PyObject * obj0 = 0 ;
1060 PyObject * obj1 = 0 ;
1061 PyObject * obj2 = 0 ;
1062 PyObject * obj3 = 0 ;
1063 PyObject * obj4 = 0 ;
1064 PyObject * obj5 = 0 ;
1065 PyObject * obj6 = 0 ;
1066 PyObject * obj7 = 0 ;
1067 char *kwnames[] = {
1068 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1069 };
1070
1071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1074 arg2 = (int) SWIG_AsInt(obj1);
1075 if (PyErr_Occurred()) SWIG_fail;
1076 {
1077 arg3 = wxString_in_helper(obj2);
1078 if (arg3 == NULL) SWIG_fail;
1079 temp3 = True;
1080 }
1081 if (obj3) {
1082 {
1083 arg4 = &temp4;
1084 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1085 }
1086 }
1087 if (obj4) {
1088 {
1089 arg5 = &temp5;
1090 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1091 }
1092 }
1093 if (obj5) {
1094 arg6 = (long) SWIG_AsLong(obj5);
1095 if (PyErr_Occurred()) SWIG_fail;
1096 }
1097 if (obj6) {
1098 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1099 SWIG_POINTER_EXCEPTION | 0)) == -1)
1100 SWIG_fail;
1101 if (arg7 == NULL) {
1102 PyErr_SetString(PyExc_TypeError,"null reference");
1103 SWIG_fail;
1104 }
1105 }
1106 if (obj7) {
1107 {
1108 arg8 = wxString_in_helper(obj7);
1109 if (arg8 == NULL) SWIG_fail;
1110 temp8 = True;
1111 }
1112 }
1113 {
1114 PyThreadState* __tstate = wxPyBeginAllowThreads();
1115 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1116
1117 wxPyEndAllowThreads(__tstate);
1118 if (PyErr_Occurred()) SWIG_fail;
1119 }
1120 {
1121 resultobj = wxPyMake_wxObject(result);
1122 }
1123 {
1124 if (temp3)
1125 delete arg3;
1126 }
1127 {
1128 if (temp8)
1129 delete arg8;
1130 }
1131 return resultobj;
1132 fail:
1133 {
1134 if (temp3)
1135 delete arg3;
1136 }
1137 {
1138 if (temp8)
1139 delete arg8;
1140 }
1141 return NULL;
1142}
1143
1144
1145static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 wxButton *result;
1148 char *kwnames[] = {
1149 NULL
1150 };
1151
1152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1153 {
1154 PyThreadState* __tstate = wxPyBeginAllowThreads();
1155 result = (wxButton *)new wxButton();
1156
1157 wxPyEndAllowThreads(__tstate);
1158 if (PyErr_Occurred()) SWIG_fail;
1159 }
1160 {
1161 resultobj = wxPyMake_wxObject(result);
1162 }
1163 return resultobj;
1164 fail:
1165 return NULL;
1166}
1167
1168
1169static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1170 PyObject *resultobj;
1171 wxButton *arg1 = (wxButton *) 0 ;
1172 wxWindow *arg2 = (wxWindow *) 0 ;
1173 int arg3 ;
1174 wxString *arg4 = 0 ;
1175 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1176 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1177 wxSize const &arg6_defvalue = wxDefaultSize ;
1178 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1179 long arg7 = (long) 0 ;
1180 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1181 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1182 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1183 wxString *arg9 = (wxString *) &arg9_defvalue ;
1184 bool result;
1185 bool temp4 = False ;
1186 wxPoint temp5 ;
1187 wxSize temp6 ;
1188 bool temp9 = False ;
1189 PyObject * obj0 = 0 ;
1190 PyObject * obj1 = 0 ;
1191 PyObject * obj2 = 0 ;
1192 PyObject * obj3 = 0 ;
1193 PyObject * obj4 = 0 ;
1194 PyObject * obj5 = 0 ;
1195 PyObject * obj6 = 0 ;
1196 PyObject * obj7 = 0 ;
1197 PyObject * obj8 = 0 ;
1198 char *kwnames[] = {
1199 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1200 };
1201
1202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1205 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1207 arg3 = (int) SWIG_AsInt(obj2);
1208 if (PyErr_Occurred()) SWIG_fail;
1209 {
1210 arg4 = wxString_in_helper(obj3);
1211 if (arg4 == NULL) SWIG_fail;
1212 temp4 = True;
1213 }
1214 if (obj4) {
1215 {
1216 arg5 = &temp5;
1217 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1218 }
1219 }
1220 if (obj5) {
1221 {
1222 arg6 = &temp6;
1223 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1224 }
1225 }
1226 if (obj6) {
1227 arg7 = (long) SWIG_AsLong(obj6);
1228 if (PyErr_Occurred()) SWIG_fail;
1229 }
1230 if (obj7) {
1231 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1232 SWIG_POINTER_EXCEPTION | 0)) == -1)
1233 SWIG_fail;
1234 if (arg8 == NULL) {
1235 PyErr_SetString(PyExc_TypeError,"null reference");
1236 SWIG_fail;
1237 }
1238 }
1239 if (obj8) {
1240 {
1241 arg9 = wxString_in_helper(obj8);
1242 if (arg9 == NULL) SWIG_fail;
1243 temp9 = True;
1244 }
1245 }
1246 {
1247 PyThreadState* __tstate = wxPyBeginAllowThreads();
1248 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1249
1250 wxPyEndAllowThreads(__tstate);
1251 if (PyErr_Occurred()) SWIG_fail;
1252 }
1253 {
1254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1255 }
1256 {
1257 if (temp4)
1258 delete arg4;
1259 }
1260 {
1261 if (temp9)
1262 delete arg9;
1263 }
1264 return resultobj;
1265 fail:
1266 {
1267 if (temp4)
1268 delete arg4;
1269 }
1270 {
1271 if (temp9)
1272 delete arg9;
1273 }
1274 return NULL;
1275}
1276
1277
1278static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1279 PyObject *resultobj;
1280 wxButton *arg1 = (wxButton *) 0 ;
1281 PyObject * obj0 = 0 ;
1282 char *kwnames[] = {
1283 (char *) "self", NULL
1284 };
1285
1286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1289 {
1290 PyThreadState* __tstate = wxPyBeginAllowThreads();
1291 (arg1)->SetDefault();
1292
1293 wxPyEndAllowThreads(__tstate);
1294 if (PyErr_Occurred()) SWIG_fail;
1295 }
1296 Py_INCREF(Py_None); resultobj = Py_None;
1297 return resultobj;
1298 fail:
1299 return NULL;
1300}
1301
1302
1303static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1304 PyObject *resultobj;
1305 wxSize result;
1306 char *kwnames[] = {
1307 NULL
1308 };
1309
1310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1311 {
1312 PyThreadState* __tstate = wxPyBeginAllowThreads();
1313 result = wxButton::GetDefaultSize();
1314
1315 wxPyEndAllowThreads(__tstate);
1316 if (PyErr_Occurred()) SWIG_fail;
1317 }
1318 {
1319 wxSize * resultptr;
1320 resultptr = new wxSize((wxSize &) result);
1321 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1322 }
1323 return resultobj;
1324 fail:
1325 return NULL;
1326}
1327
1328
f20a2e1f
RD
1329static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1330 PyObject *resultobj;
1331 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1332 wxVisualAttributes result;
1333 PyObject * obj0 = 0 ;
1334 char *kwnames[] = {
1335 (char *) "variant", NULL
1336 };
1337
1338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1339 if (obj0) {
1340 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
1341 if (PyErr_Occurred()) SWIG_fail;
1342 }
1343 {
1344 PyThreadState* __tstate = wxPyBeginAllowThreads();
1345 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1346
1347 wxPyEndAllowThreads(__tstate);
1348 if (PyErr_Occurred()) SWIG_fail;
1349 }
1350 {
1351 wxVisualAttributes * resultptr;
1352 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1354 }
1355 return resultobj;
1356 fail:
1357 return NULL;
1358}
1359
1360
d55e5bfc
RD
1361static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1362 PyObject *obj;
1363 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1364 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1365 Py_INCREF(obj);
1366 return Py_BuildValue((char *)"");
1367}
1368static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1369 PyObject *resultobj;
1370 wxWindow *arg1 = (wxWindow *) 0 ;
1371 int arg2 ;
1372 wxBitmap *arg3 = 0 ;
1373 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1374 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1375 wxSize const &arg5_defvalue = wxDefaultSize ;
1376 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1377 long arg6 = (long) wxBU_AUTODRAW ;
1378 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1379 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1380 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1381 wxString *arg8 = (wxString *) &arg8_defvalue ;
1382 wxBitmapButton *result;
1383 wxPoint temp4 ;
1384 wxSize temp5 ;
1385 bool temp8 = False ;
1386 PyObject * obj0 = 0 ;
1387 PyObject * obj1 = 0 ;
1388 PyObject * obj2 = 0 ;
1389 PyObject * obj3 = 0 ;
1390 PyObject * obj4 = 0 ;
1391 PyObject * obj5 = 0 ;
1392 PyObject * obj6 = 0 ;
1393 PyObject * obj7 = 0 ;
1394 char *kwnames[] = {
1395 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1396 };
1397
1398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1401 arg2 = (int) SWIG_AsInt(obj1);
1402 if (PyErr_Occurred()) SWIG_fail;
1403 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1404 SWIG_POINTER_EXCEPTION | 0)) == -1)
1405 SWIG_fail;
1406 if (arg3 == NULL) {
1407 PyErr_SetString(PyExc_TypeError,"null reference");
1408 SWIG_fail;
1409 }
1410 if (obj3) {
1411 {
1412 arg4 = &temp4;
1413 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1414 }
1415 }
1416 if (obj4) {
1417 {
1418 arg5 = &temp5;
1419 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1420 }
1421 }
1422 if (obj5) {
1423 arg6 = (long) SWIG_AsLong(obj5);
1424 if (PyErr_Occurred()) SWIG_fail;
1425 }
1426 if (obj6) {
1427 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1428 SWIG_POINTER_EXCEPTION | 0)) == -1)
1429 SWIG_fail;
1430 if (arg7 == NULL) {
1431 PyErr_SetString(PyExc_TypeError,"null reference");
1432 SWIG_fail;
1433 }
1434 }
1435 if (obj7) {
1436 {
1437 arg8 = wxString_in_helper(obj7);
1438 if (arg8 == NULL) SWIG_fail;
1439 temp8 = True;
1440 }
1441 }
1442 {
1443 PyThreadState* __tstate = wxPyBeginAllowThreads();
1444 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1445
1446 wxPyEndAllowThreads(__tstate);
1447 if (PyErr_Occurred()) SWIG_fail;
1448 }
1449 {
1450 resultobj = wxPyMake_wxObject(result);
1451 }
1452 {
1453 if (temp8)
1454 delete arg8;
1455 }
1456 return resultobj;
1457 fail:
1458 {
1459 if (temp8)
1460 delete arg8;
1461 }
1462 return NULL;
1463}
1464
1465
1466static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1467 PyObject *resultobj;
1468 wxBitmapButton *result;
1469 char *kwnames[] = {
1470 NULL
1471 };
1472
1473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1474 {
1475 PyThreadState* __tstate = wxPyBeginAllowThreads();
1476 result = (wxBitmapButton *)new wxBitmapButton();
1477
1478 wxPyEndAllowThreads(__tstate);
1479 if (PyErr_Occurred()) SWIG_fail;
1480 }
1481 {
1482 resultobj = wxPyMake_wxObject(result);
1483 }
1484 return resultobj;
1485 fail:
1486 return NULL;
1487}
1488
1489
1490static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1491 PyObject *resultobj;
1492 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1493 wxWindow *arg2 = (wxWindow *) 0 ;
1494 int arg3 ;
1495 wxBitmap *arg4 = 0 ;
1496 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1497 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1498 wxSize const &arg6_defvalue = wxDefaultSize ;
1499 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1500 long arg7 = (long) wxBU_AUTODRAW ;
1501 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1502 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1503 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1504 wxString *arg9 = (wxString *) &arg9_defvalue ;
1505 bool result;
1506 wxPoint temp5 ;
1507 wxSize temp6 ;
1508 bool temp9 = False ;
1509 PyObject * obj0 = 0 ;
1510 PyObject * obj1 = 0 ;
1511 PyObject * obj2 = 0 ;
1512 PyObject * obj3 = 0 ;
1513 PyObject * obj4 = 0 ;
1514 PyObject * obj5 = 0 ;
1515 PyObject * obj6 = 0 ;
1516 PyObject * obj7 = 0 ;
1517 PyObject * obj8 = 0 ;
1518 char *kwnames[] = {
1519 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1520 };
1521
1522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1527 arg3 = (int) SWIG_AsInt(obj2);
1528 if (PyErr_Occurred()) SWIG_fail;
1529 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1530 SWIG_POINTER_EXCEPTION | 0)) == -1)
1531 SWIG_fail;
1532 if (arg4 == NULL) {
1533 PyErr_SetString(PyExc_TypeError,"null reference");
1534 SWIG_fail;
1535 }
1536 if (obj4) {
1537 {
1538 arg5 = &temp5;
1539 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1540 }
1541 }
1542 if (obj5) {
1543 {
1544 arg6 = &temp6;
1545 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1546 }
1547 }
1548 if (obj6) {
1549 arg7 = (long) SWIG_AsLong(obj6);
1550 if (PyErr_Occurred()) SWIG_fail;
1551 }
1552 if (obj7) {
1553 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1554 SWIG_POINTER_EXCEPTION | 0)) == -1)
1555 SWIG_fail;
1556 if (arg8 == NULL) {
1557 PyErr_SetString(PyExc_TypeError,"null reference");
1558 SWIG_fail;
1559 }
1560 }
1561 if (obj8) {
1562 {
1563 arg9 = wxString_in_helper(obj8);
1564 if (arg9 == NULL) SWIG_fail;
1565 temp9 = True;
1566 }
1567 }
1568 {
1569 PyThreadState* __tstate = wxPyBeginAllowThreads();
1570 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1571
1572 wxPyEndAllowThreads(__tstate);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 {
1576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1577 }
1578 {
1579 if (temp9)
1580 delete arg9;
1581 }
1582 return resultobj;
1583 fail:
1584 {
1585 if (temp9)
1586 delete arg9;
1587 }
1588 return NULL;
1589}
1590
1591
1592static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1593 PyObject *resultobj;
1594 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1595 wxBitmap result;
1596 PyObject * obj0 = 0 ;
1597 char *kwnames[] = {
1598 (char *) "self", NULL
1599 };
1600
1601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1604 {
1605 PyThreadState* __tstate = wxPyBeginAllowThreads();
1606 result = (arg1)->GetBitmapLabel();
1607
1608 wxPyEndAllowThreads(__tstate);
1609 if (PyErr_Occurred()) SWIG_fail;
1610 }
1611 {
1612 wxBitmap * resultptr;
1613 resultptr = new wxBitmap((wxBitmap &) result);
1614 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1615 }
1616 return resultobj;
1617 fail:
1618 return NULL;
1619}
1620
1621
1622static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject *resultobj;
1624 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1625 wxBitmap result;
1626 PyObject * obj0 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self", NULL
1629 };
1630
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1634 {
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 result = (arg1)->GetBitmapDisabled();
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 {
1642 wxBitmap * resultptr;
1643 resultptr = new wxBitmap((wxBitmap &) result);
1644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1645 }
1646 return resultobj;
1647 fail:
1648 return NULL;
1649}
1650
1651
1652static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1653 PyObject *resultobj;
1654 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1655 wxBitmap result;
1656 PyObject * obj0 = 0 ;
1657 char *kwnames[] = {
1658 (char *) "self", NULL
1659 };
1660
1661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1664 {
1665 PyThreadState* __tstate = wxPyBeginAllowThreads();
1666 result = (arg1)->GetBitmapFocus();
1667
1668 wxPyEndAllowThreads(__tstate);
1669 if (PyErr_Occurred()) SWIG_fail;
1670 }
1671 {
1672 wxBitmap * resultptr;
1673 resultptr = new wxBitmap((wxBitmap &) result);
1674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1675 }
1676 return resultobj;
1677 fail:
1678 return NULL;
1679}
1680
1681
1682static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1683 PyObject *resultobj;
1684 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1685 wxBitmap result;
1686 PyObject * obj0 = 0 ;
1687 char *kwnames[] = {
1688 (char *) "self", NULL
1689 };
1690
1691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1694 {
1695 PyThreadState* __tstate = wxPyBeginAllowThreads();
1696 result = (arg1)->GetBitmapSelected();
1697
1698 wxPyEndAllowThreads(__tstate);
1699 if (PyErr_Occurred()) SWIG_fail;
1700 }
1701 {
1702 wxBitmap * resultptr;
1703 resultptr = new wxBitmap((wxBitmap &) result);
1704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1705 }
1706 return resultobj;
1707 fail:
1708 return NULL;
1709}
1710
1711
1712static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1713 PyObject *resultobj;
1714 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1715 wxBitmap *arg2 = 0 ;
1716 PyObject * obj0 = 0 ;
1717 PyObject * obj1 = 0 ;
1718 char *kwnames[] = {
1719 (char *) "self",(char *) "bitmap", NULL
1720 };
1721
1722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1725 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1726 SWIG_POINTER_EXCEPTION | 0)) == -1)
1727 SWIG_fail;
1728 if (arg2 == NULL) {
1729 PyErr_SetString(PyExc_TypeError,"null reference");
1730 SWIG_fail;
1731 }
1732 {
1733 PyThreadState* __tstate = wxPyBeginAllowThreads();
1734 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1735
1736 wxPyEndAllowThreads(__tstate);
1737 if (PyErr_Occurred()) SWIG_fail;
1738 }
1739 Py_INCREF(Py_None); resultobj = Py_None;
1740 return resultobj;
1741 fail:
1742 return NULL;
1743}
1744
1745
1746static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1747 PyObject *resultobj;
1748 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1749 wxBitmap *arg2 = 0 ;
1750 PyObject * obj0 = 0 ;
1751 PyObject * obj1 = 0 ;
1752 char *kwnames[] = {
1753 (char *) "self",(char *) "bitmap", NULL
1754 };
1755
1756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1759 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1760 SWIG_POINTER_EXCEPTION | 0)) == -1)
1761 SWIG_fail;
1762 if (arg2 == NULL) {
1763 PyErr_SetString(PyExc_TypeError,"null reference");
1764 SWIG_fail;
1765 }
1766 {
1767 PyThreadState* __tstate = wxPyBeginAllowThreads();
1768 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1769
1770 wxPyEndAllowThreads(__tstate);
1771 if (PyErr_Occurred()) SWIG_fail;
1772 }
1773 Py_INCREF(Py_None); resultobj = Py_None;
1774 return resultobj;
1775 fail:
1776 return NULL;
1777}
1778
1779
1780static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1781 PyObject *resultobj;
1782 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1783 wxBitmap *arg2 = 0 ;
1784 PyObject * obj0 = 0 ;
1785 PyObject * obj1 = 0 ;
1786 char *kwnames[] = {
1787 (char *) "self",(char *) "bitmap", NULL
1788 };
1789
1790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1793 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1794 SWIG_POINTER_EXCEPTION | 0)) == -1)
1795 SWIG_fail;
1796 if (arg2 == NULL) {
1797 PyErr_SetString(PyExc_TypeError,"null reference");
1798 SWIG_fail;
1799 }
1800 {
1801 PyThreadState* __tstate = wxPyBeginAllowThreads();
1802 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1803
1804 wxPyEndAllowThreads(__tstate);
1805 if (PyErr_Occurred()) SWIG_fail;
1806 }
1807 Py_INCREF(Py_None); resultobj = Py_None;
1808 return resultobj;
1809 fail:
1810 return NULL;
1811}
1812
1813
1814static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1815 PyObject *resultobj;
1816 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1817 wxBitmap *arg2 = 0 ;
1818 PyObject * obj0 = 0 ;
1819 PyObject * obj1 = 0 ;
1820 char *kwnames[] = {
1821 (char *) "self",(char *) "bitmap", NULL
1822 };
1823
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1827 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1828 SWIG_POINTER_EXCEPTION | 0)) == -1)
1829 SWIG_fail;
1830 if (arg2 == NULL) {
1831 PyErr_SetString(PyExc_TypeError,"null reference");
1832 SWIG_fail;
1833 }
1834 {
1835 PyThreadState* __tstate = wxPyBeginAllowThreads();
1836 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1837
1838 wxPyEndAllowThreads(__tstate);
1839 if (PyErr_Occurred()) SWIG_fail;
1840 }
1841 Py_INCREF(Py_None); resultobj = Py_None;
1842 return resultobj;
1843 fail:
1844 return NULL;
1845}
1846
1847
1848static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1849 PyObject *resultobj;
1850 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1851 int arg2 ;
1852 int arg3 ;
1853 PyObject * obj0 = 0 ;
1854 PyObject * obj1 = 0 ;
1855 PyObject * obj2 = 0 ;
1856 char *kwnames[] = {
1857 (char *) "self",(char *) "x",(char *) "y", NULL
1858 };
1859
1860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1863 arg2 = (int) SWIG_AsInt(obj1);
1864 if (PyErr_Occurred()) SWIG_fail;
1865 arg3 = (int) SWIG_AsInt(obj2);
1866 if (PyErr_Occurred()) SWIG_fail;
1867 {
1868 PyThreadState* __tstate = wxPyBeginAllowThreads();
1869 (arg1)->SetMargins(arg2,arg3);
1870
1871 wxPyEndAllowThreads(__tstate);
1872 if (PyErr_Occurred()) SWIG_fail;
1873 }
1874 Py_INCREF(Py_None); resultobj = Py_None;
1875 return resultobj;
1876 fail:
1877 return NULL;
1878}
1879
1880
1881static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1882 PyObject *resultobj;
1883 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1884 int result;
1885 PyObject * obj0 = 0 ;
1886 char *kwnames[] = {
1887 (char *) "self", NULL
1888 };
1889
1890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1893 {
1894 PyThreadState* __tstate = wxPyBeginAllowThreads();
1895 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1896
1897 wxPyEndAllowThreads(__tstate);
1898 if (PyErr_Occurred()) SWIG_fail;
1899 }
1900 resultobj = SWIG_FromInt((int)result);
1901 return resultobj;
1902 fail:
1903 return NULL;
1904}
1905
1906
1907static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1908 PyObject *resultobj;
1909 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1910 int result;
1911 PyObject * obj0 = 0 ;
1912 char *kwnames[] = {
1913 (char *) "self", NULL
1914 };
1915
1916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) SWIG_fail;
1925 }
1926 resultobj = SWIG_FromInt((int)result);
1927 return resultobj;
1928 fail:
1929 return NULL;
1930}
1931
1932
1933static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1934 PyObject *obj;
1935 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1936 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1937 Py_INCREF(obj);
1938 return Py_BuildValue((char *)"");
1939}
1940static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1941 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1942 return 1;
1943}
1944
1945
1946static PyObject *_wrap_CheckBoxNameStr_get() {
1947 PyObject *pyobj;
1948
1949 {
1950#if wxUSE_UNICODE
1951 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1952#else
1953 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1954#endif
1955 }
1956 return pyobj;
1957}
1958
1959
1960static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject *resultobj;
1962 wxWindow *arg1 = (wxWindow *) 0 ;
1963 int arg2 ;
1964 wxString *arg3 = 0 ;
1965 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1966 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1967 wxSize const &arg5_defvalue = wxDefaultSize ;
1968 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1969 long arg6 = (long) 0 ;
1970 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1971 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1972 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1973 wxString *arg8 = (wxString *) &arg8_defvalue ;
1974 wxCheckBox *result;
1975 bool temp3 = False ;
1976 wxPoint temp4 ;
1977 wxSize temp5 ;
1978 bool temp8 = False ;
1979 PyObject * obj0 = 0 ;
1980 PyObject * obj1 = 0 ;
1981 PyObject * obj2 = 0 ;
1982 PyObject * obj3 = 0 ;
1983 PyObject * obj4 = 0 ;
1984 PyObject * obj5 = 0 ;
1985 PyObject * obj6 = 0 ;
1986 PyObject * obj7 = 0 ;
1987 char *kwnames[] = {
1988 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1989 };
1990
1991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1994 arg2 = (int) SWIG_AsInt(obj1);
1995 if (PyErr_Occurred()) SWIG_fail;
1996 {
1997 arg3 = wxString_in_helper(obj2);
1998 if (arg3 == NULL) SWIG_fail;
1999 temp3 = True;
2000 }
2001 if (obj3) {
2002 {
2003 arg4 = &temp4;
2004 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2005 }
2006 }
2007 if (obj4) {
2008 {
2009 arg5 = &temp5;
2010 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2011 }
2012 }
2013 if (obj5) {
2014 arg6 = (long) SWIG_AsLong(obj5);
2015 if (PyErr_Occurred()) SWIG_fail;
2016 }
2017 if (obj6) {
2018 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2019 SWIG_POINTER_EXCEPTION | 0)) == -1)
2020 SWIG_fail;
2021 if (arg7 == NULL) {
2022 PyErr_SetString(PyExc_TypeError,"null reference");
2023 SWIG_fail;
2024 }
2025 }
2026 if (obj7) {
2027 {
2028 arg8 = wxString_in_helper(obj7);
2029 if (arg8 == NULL) SWIG_fail;
2030 temp8 = True;
2031 }
2032 }
2033 {
2034 PyThreadState* __tstate = wxPyBeginAllowThreads();
2035 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2036
2037 wxPyEndAllowThreads(__tstate);
2038 if (PyErr_Occurred()) SWIG_fail;
2039 }
2040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2041 {
2042 if (temp3)
2043 delete arg3;
2044 }
2045 {
2046 if (temp8)
2047 delete arg8;
2048 }
2049 return resultobj;
2050 fail:
2051 {
2052 if (temp3)
2053 delete arg3;
2054 }
2055 {
2056 if (temp8)
2057 delete arg8;
2058 }
2059 return NULL;
2060}
2061
2062
2063static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject *resultobj;
2065 wxCheckBox *result;
2066 char *kwnames[] = {
2067 NULL
2068 };
2069
2070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 result = (wxCheckBox *)new wxCheckBox();
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082}
2083
2084
2085static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2086 PyObject *resultobj;
2087 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2088 wxWindow *arg2 = (wxWindow *) 0 ;
2089 int arg3 ;
2090 wxString *arg4 = 0 ;
2091 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2092 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2093 wxSize const &arg6_defvalue = wxDefaultSize ;
2094 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2095 long arg7 = (long) 0 ;
2096 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2097 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2098 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2099 wxString *arg9 = (wxString *) &arg9_defvalue ;
2100 bool result;
2101 bool temp4 = False ;
2102 wxPoint temp5 ;
2103 wxSize temp6 ;
2104 bool temp9 = False ;
2105 PyObject * obj0 = 0 ;
2106 PyObject * obj1 = 0 ;
2107 PyObject * obj2 = 0 ;
2108 PyObject * obj3 = 0 ;
2109 PyObject * obj4 = 0 ;
2110 PyObject * obj5 = 0 ;
2111 PyObject * obj6 = 0 ;
2112 PyObject * obj7 = 0 ;
2113 PyObject * obj8 = 0 ;
2114 char *kwnames[] = {
2115 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2116 };
2117
2118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2123 arg3 = (int) SWIG_AsInt(obj2);
2124 if (PyErr_Occurred()) SWIG_fail;
2125 {
2126 arg4 = wxString_in_helper(obj3);
2127 if (arg4 == NULL) SWIG_fail;
2128 temp4 = True;
2129 }
2130 if (obj4) {
2131 {
2132 arg5 = &temp5;
2133 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2134 }
2135 }
2136 if (obj5) {
2137 {
2138 arg6 = &temp6;
2139 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2140 }
2141 }
2142 if (obj6) {
2143 arg7 = (long) SWIG_AsLong(obj6);
2144 if (PyErr_Occurred()) SWIG_fail;
2145 }
2146 if (obj7) {
2147 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2148 SWIG_POINTER_EXCEPTION | 0)) == -1)
2149 SWIG_fail;
2150 if (arg8 == NULL) {
2151 PyErr_SetString(PyExc_TypeError,"null reference");
2152 SWIG_fail;
2153 }
2154 }
2155 if (obj8) {
2156 {
2157 arg9 = wxString_in_helper(obj8);
2158 if (arg9 == NULL) SWIG_fail;
2159 temp9 = True;
2160 }
2161 }
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 {
2170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2171 }
2172 {
2173 if (temp4)
2174 delete arg4;
2175 }
2176 {
2177 if (temp9)
2178 delete arg9;
2179 }
2180 return resultobj;
2181 fail:
2182 {
2183 if (temp4)
2184 delete arg4;
2185 }
2186 {
2187 if (temp9)
2188 delete arg9;
2189 }
2190 return NULL;
2191}
2192
2193
2194static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2195 PyObject *resultobj;
2196 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2197 bool result;
2198 PyObject * obj0 = 0 ;
2199 char *kwnames[] = {
2200 (char *) "self", NULL
2201 };
2202
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2206 {
2207 PyThreadState* __tstate = wxPyBeginAllowThreads();
2208 result = (bool)(arg1)->GetValue();
2209
2210 wxPyEndAllowThreads(__tstate);
2211 if (PyErr_Occurred()) SWIG_fail;
2212 }
2213 {
2214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2215 }
2216 return resultobj;
2217 fail:
2218 return NULL;
2219}
2220
2221
2222static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2223 PyObject *resultobj;
2224 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2225 bool result;
2226 PyObject * obj0 = 0 ;
2227 char *kwnames[] = {
2228 (char *) "self", NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2234 {
2235 PyThreadState* __tstate = wxPyBeginAllowThreads();
2236 result = (bool)(arg1)->IsChecked();
2237
2238 wxPyEndAllowThreads(__tstate);
2239 if (PyErr_Occurred()) SWIG_fail;
2240 }
2241 {
2242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2243 }
2244 return resultobj;
2245 fail:
2246 return NULL;
2247}
2248
2249
2250static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2251 PyObject *resultobj;
2252 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2253 bool arg2 ;
2254 PyObject * obj0 = 0 ;
2255 PyObject * obj1 = 0 ;
2256 char *kwnames[] = {
2257 (char *) "self",(char *) "state", NULL
2258 };
2259
2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2263 arg2 = (bool const) SWIG_AsBool(obj1);
2264 if (PyErr_Occurred()) SWIG_fail;
2265 {
2266 PyThreadState* __tstate = wxPyBeginAllowThreads();
2267 (arg1)->SetValue(arg2);
2268
2269 wxPyEndAllowThreads(__tstate);
2270 if (PyErr_Occurred()) SWIG_fail;
2271 }
2272 Py_INCREF(Py_None); resultobj = Py_None;
2273 return resultobj;
2274 fail:
2275 return NULL;
2276}
2277
2278
2279static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject *resultobj;
2281 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2282 int result;
2283 PyObject * obj0 = 0 ;
2284 char *kwnames[] = {
2285 (char *) "self", NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2291 {
2292 PyThreadState* __tstate = wxPyBeginAllowThreads();
2293 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2294
2295 wxPyEndAllowThreads(__tstate);
2296 if (PyErr_Occurred()) SWIG_fail;
2297 }
2298 resultobj = SWIG_FromInt((int)result);
2299 return resultobj;
2300 fail:
2301 return NULL;
2302}
2303
2304
2305static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2306 PyObject *resultobj;
2307 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2308 int arg2 ;
2309 PyObject * obj0 = 0 ;
2310 PyObject * obj1 = 0 ;
2311 char *kwnames[] = {
2312 (char *) "self",(char *) "state", NULL
2313 };
2314
2315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2318 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2319 if (PyErr_Occurred()) SWIG_fail;
2320 {
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
2322 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2323
2324 wxPyEndAllowThreads(__tstate);
2325 if (PyErr_Occurred()) SWIG_fail;
2326 }
2327 Py_INCREF(Py_None); resultobj = Py_None;
2328 return resultobj;
2329 fail:
2330 return NULL;
2331}
2332
2333
2334static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2335 PyObject *resultobj;
2336 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2337 bool result;
2338 PyObject * obj0 = 0 ;
2339 char *kwnames[] = {
2340 (char *) "self", NULL
2341 };
2342
2343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2346 {
2347 PyThreadState* __tstate = wxPyBeginAllowThreads();
2348 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2349
2350 wxPyEndAllowThreads(__tstate);
2351 if (PyErr_Occurred()) SWIG_fail;
2352 }
2353 {
2354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2355 }
2356 return resultobj;
2357 fail:
2358 return NULL;
2359}
2360
2361
2362static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2363 PyObject *resultobj;
2364 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2365 bool result;
2366 PyObject * obj0 = 0 ;
2367 char *kwnames[] = {
2368 (char *) "self", NULL
2369 };
2370
2371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2374 {
2375 PyThreadState* __tstate = wxPyBeginAllowThreads();
2376 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2377
2378 wxPyEndAllowThreads(__tstate);
2379 if (PyErr_Occurred()) SWIG_fail;
2380 }
2381 {
2382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2383 }
2384 return resultobj;
2385 fail:
2386 return NULL;
2387}
2388
2389
f20a2e1f
RD
2390static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2391 PyObject *resultobj;
2392 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2393 wxVisualAttributes result;
2394 PyObject * obj0 = 0 ;
2395 char *kwnames[] = {
2396 (char *) "variant", NULL
2397 };
2398
2399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2400 if (obj0) {
2401 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2402 if (PyErr_Occurred()) SWIG_fail;
2403 }
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 {
2412 wxVisualAttributes * resultptr;
2413 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2414 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2415 }
2416 return resultobj;
2417 fail:
2418 return NULL;
2419}
2420
2421
d55e5bfc
RD
2422static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2423 PyObject *obj;
2424 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2425 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2426 Py_INCREF(obj);
2427 return Py_BuildValue((char *)"");
2428}
2429static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2430 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2431 return 1;
2432}
2433
2434
2435static PyObject *_wrap_ChoiceNameStr_get() {
2436 PyObject *pyobj;
2437
2438 {
2439#if wxUSE_UNICODE
2440 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2441#else
2442 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2443#endif
2444 }
2445 return pyobj;
2446}
2447
2448
2449static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2450 PyObject *resultobj;
2451 wxWindow *arg1 = (wxWindow *) 0 ;
2452 int arg2 = (int) -1 ;
2453 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2454 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2455 wxSize const &arg4_defvalue = wxDefaultSize ;
2456 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2457 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2458 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2459 long arg6 = (long) 0 ;
2460 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2461 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2462 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2463 wxString *arg8 = (wxString *) &arg8_defvalue ;
2464 wxChoice *result;
2465 wxPoint temp3 ;
2466 wxSize temp4 ;
2467 bool temp5 = False ;
2468 bool temp8 = False ;
2469 PyObject * obj0 = 0 ;
2470 PyObject * obj1 = 0 ;
2471 PyObject * obj2 = 0 ;
2472 PyObject * obj3 = 0 ;
2473 PyObject * obj4 = 0 ;
2474 PyObject * obj5 = 0 ;
2475 PyObject * obj6 = 0 ;
2476 PyObject * obj7 = 0 ;
2477 char *kwnames[] = {
2478 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2479 };
2480
2481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2484 if (obj1) {
2485 arg2 = (int) SWIG_AsInt(obj1);
2486 if (PyErr_Occurred()) SWIG_fail;
2487 }
2488 if (obj2) {
2489 {
2490 arg3 = &temp3;
2491 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2492 }
2493 }
2494 if (obj3) {
2495 {
2496 arg4 = &temp4;
2497 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2498 }
2499 }
2500 if (obj4) {
2501 {
2502 if (! PySequence_Check(obj4)) {
2503 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2504 SWIG_fail;
2505 }
2506 arg5 = new wxArrayString;
2507 temp5 = True;
2508 int i, len=PySequence_Length(obj4);
2509 for (i=0; i<len; i++) {
2510 PyObject* item = PySequence_GetItem(obj4, i);
2511#if wxUSE_UNICODE
2512 PyObject* str = PyObject_Unicode(item);
2513#else
2514 PyObject* str = PyObject_Str(item);
2515#endif
2516 if (PyErr_Occurred()) SWIG_fail;
2517 arg5->Add(Py2wxString(str));
2518 Py_DECREF(item);
2519 Py_DECREF(str);
2520 }
2521 }
2522 }
2523 if (obj5) {
2524 arg6 = (long) SWIG_AsLong(obj5);
2525 if (PyErr_Occurred()) SWIG_fail;
2526 }
2527 if (obj6) {
2528 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2529 SWIG_POINTER_EXCEPTION | 0)) == -1)
2530 SWIG_fail;
2531 if (arg7 == NULL) {
2532 PyErr_SetString(PyExc_TypeError,"null reference");
2533 SWIG_fail;
2534 }
2535 }
2536 if (obj7) {
2537 {
2538 arg8 = wxString_in_helper(obj7);
2539 if (arg8 == NULL) SWIG_fail;
2540 temp8 = True;
2541 }
2542 }
2543 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 }
2550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2551 {
2552 if (temp5) delete arg5;
2553 }
2554 {
2555 if (temp8)
2556 delete arg8;
2557 }
2558 return resultobj;
2559 fail:
2560 {
2561 if (temp5) delete arg5;
2562 }
2563 {
2564 if (temp8)
2565 delete arg8;
2566 }
2567 return NULL;
2568}
2569
2570
2571static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxChoice *result;
2574 char *kwnames[] = {
2575 NULL
2576 };
2577
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2579 {
2580 PyThreadState* __tstate = wxPyBeginAllowThreads();
2581 result = (wxChoice *)new wxChoice();
2582
2583 wxPyEndAllowThreads(__tstate);
2584 if (PyErr_Occurred()) SWIG_fail;
2585 }
2586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2587 return resultobj;
2588 fail:
2589 return NULL;
2590}
2591
2592
2593static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2594 PyObject *resultobj;
2595 wxChoice *arg1 = (wxChoice *) 0 ;
2596 wxWindow *arg2 = (wxWindow *) 0 ;
2597 int arg3 = (int) -1 ;
2598 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2599 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2600 wxSize const &arg5_defvalue = wxDefaultSize ;
2601 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2602 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2603 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2604 long arg7 = (long) 0 ;
2605 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2606 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2607 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2608 wxString *arg9 = (wxString *) &arg9_defvalue ;
2609 bool result;
2610 wxPoint temp4 ;
2611 wxSize temp5 ;
2612 bool temp6 = False ;
2613 bool temp9 = False ;
2614 PyObject * obj0 = 0 ;
2615 PyObject * obj1 = 0 ;
2616 PyObject * obj2 = 0 ;
2617 PyObject * obj3 = 0 ;
2618 PyObject * obj4 = 0 ;
2619 PyObject * obj5 = 0 ;
2620 PyObject * obj6 = 0 ;
2621 PyObject * obj7 = 0 ;
2622 PyObject * obj8 = 0 ;
2623 char *kwnames[] = {
2624 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2625 };
2626
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2632 if (obj2) {
2633 arg3 = (int) SWIG_AsInt(obj2);
2634 if (PyErr_Occurred()) SWIG_fail;
2635 }
2636 if (obj3) {
2637 {
2638 arg4 = &temp4;
2639 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2640 }
2641 }
2642 if (obj4) {
2643 {
2644 arg5 = &temp5;
2645 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2646 }
2647 }
2648 if (obj5) {
2649 {
2650 if (! PySequence_Check(obj5)) {
2651 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2652 SWIG_fail;
2653 }
2654 arg6 = new wxArrayString;
2655 temp6 = True;
2656 int i, len=PySequence_Length(obj5);
2657 for (i=0; i<len; i++) {
2658 PyObject* item = PySequence_GetItem(obj5, i);
2659#if wxUSE_UNICODE
2660 PyObject* str = PyObject_Unicode(item);
2661#else
2662 PyObject* str = PyObject_Str(item);
2663#endif
2664 if (PyErr_Occurred()) SWIG_fail;
2665 arg6->Add(Py2wxString(str));
2666 Py_DECREF(item);
2667 Py_DECREF(str);
2668 }
2669 }
2670 }
2671 if (obj6) {
2672 arg7 = (long) SWIG_AsLong(obj6);
2673 if (PyErr_Occurred()) SWIG_fail;
2674 }
2675 if (obj7) {
2676 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2677 SWIG_POINTER_EXCEPTION | 0)) == -1)
2678 SWIG_fail;
2679 if (arg8 == NULL) {
2680 PyErr_SetString(PyExc_TypeError,"null reference");
2681 SWIG_fail;
2682 }
2683 }
2684 if (obj8) {
2685 {
2686 arg9 = wxString_in_helper(obj8);
2687 if (arg9 == NULL) SWIG_fail;
2688 temp9 = True;
2689 }
2690 }
2691 {
2692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2693 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2694
2695 wxPyEndAllowThreads(__tstate);
2696 if (PyErr_Occurred()) SWIG_fail;
2697 }
2698 {
2699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2700 }
2701 {
2702 if (temp6) delete arg6;
2703 }
2704 {
2705 if (temp9)
2706 delete arg9;
2707 }
2708 return resultobj;
2709 fail:
2710 {
2711 if (temp6) delete arg6;
2712 }
2713 {
2714 if (temp9)
2715 delete arg9;
2716 }
2717 return NULL;
2718}
2719
2720
2721static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2722 PyObject *resultobj;
2723 wxChoice *arg1 = (wxChoice *) 0 ;
2724 int arg2 ;
2725 PyObject * obj0 = 0 ;
2726 PyObject * obj1 = 0 ;
2727 char *kwnames[] = {
2728 (char *) "self",(char *) "n", NULL
2729 };
2730
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2734 arg2 = (int const) SWIG_AsInt(obj1);
2735 if (PyErr_Occurred()) SWIG_fail;
2736 {
2737 PyThreadState* __tstate = wxPyBeginAllowThreads();
2738 (arg1)->SetSelection(arg2);
2739
2740 wxPyEndAllowThreads(__tstate);
2741 if (PyErr_Occurred()) SWIG_fail;
2742 }
2743 Py_INCREF(Py_None); resultobj = Py_None;
2744 return resultobj;
2745 fail:
2746 return NULL;
2747}
2748
2749
2750static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2751 PyObject *resultobj;
2752 wxChoice *arg1 = (wxChoice *) 0 ;
2753 wxString *arg2 = 0 ;
121b9a67 2754 bool result;
d55e5bfc
RD
2755 bool temp2 = False ;
2756 PyObject * obj0 = 0 ;
2757 PyObject * obj1 = 0 ;
2758 char *kwnames[] = {
2759 (char *) "self",(char *) "string", NULL
2760 };
2761
2762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2765 {
2766 arg2 = wxString_in_helper(obj1);
2767 if (arg2 == NULL) SWIG_fail;
2768 temp2 = True;
2769 }
2770 {
2771 PyThreadState* __tstate = wxPyBeginAllowThreads();
121b9a67 2772 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
d55e5bfc
RD
2773
2774 wxPyEndAllowThreads(__tstate);
2775 if (PyErr_Occurred()) SWIG_fail;
2776 }
121b9a67
RD
2777 {
2778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2779 }
d55e5bfc
RD
2780 {
2781 if (temp2)
2782 delete arg2;
2783 }
2784 return resultobj;
2785 fail:
2786 {
2787 if (temp2)
2788 delete arg2;
2789 }
2790 return NULL;
2791}
2792
2793
2794static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2795 PyObject *resultobj;
2796 wxChoice *arg1 = (wxChoice *) 0 ;
2797 int arg2 ;
2798 wxString *arg3 = 0 ;
2799 bool temp3 = False ;
2800 PyObject * obj0 = 0 ;
2801 PyObject * obj1 = 0 ;
2802 PyObject * obj2 = 0 ;
2803 char *kwnames[] = {
2804 (char *) "self",(char *) "n",(char *) "string", NULL
2805 };
2806
2807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2810 arg2 = (int) SWIG_AsInt(obj1);
2811 if (PyErr_Occurred()) SWIG_fail;
2812 {
2813 arg3 = wxString_in_helper(obj2);
2814 if (arg3 == NULL) SWIG_fail;
2815 temp3 = True;
2816 }
2817 {
2818 PyThreadState* __tstate = wxPyBeginAllowThreads();
2819 (arg1)->SetString(arg2,(wxString const &)*arg3);
2820
2821 wxPyEndAllowThreads(__tstate);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 }
2824 Py_INCREF(Py_None); resultobj = Py_None;
2825 {
2826 if (temp3)
2827 delete arg3;
2828 }
2829 return resultobj;
2830 fail:
2831 {
2832 if (temp3)
2833 delete arg3;
2834 }
2835 return NULL;
2836}
2837
2838
f20a2e1f
RD
2839static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2840 PyObject *resultobj;
2841 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2842 wxVisualAttributes result;
2843 PyObject * obj0 = 0 ;
2844 char *kwnames[] = {
2845 (char *) "variant", NULL
2846 };
2847
2848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2849 if (obj0) {
2850 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2851 if (PyErr_Occurred()) SWIG_fail;
2852 }
2853 {
2854 PyThreadState* __tstate = wxPyBeginAllowThreads();
2855 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
2856
2857 wxPyEndAllowThreads(__tstate);
2858 if (PyErr_Occurred()) SWIG_fail;
2859 }
2860 {
2861 wxVisualAttributes * resultptr;
2862 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2863 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2864 }
2865 return resultobj;
2866 fail:
2867 return NULL;
2868}
2869
2870
d55e5bfc
RD
2871static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2872 PyObject *obj;
2873 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2874 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2875 Py_INCREF(obj);
2876 return Py_BuildValue((char *)"");
2877}
2878static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2879 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2880 return 1;
2881}
2882
2883
2884static PyObject *_wrap_ComboBoxNameStr_get() {
2885 PyObject *pyobj;
2886
2887 {
2888#if wxUSE_UNICODE
2889 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2890#else
2891 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2892#endif
2893 }
2894 return pyobj;
2895}
2896
2897
2898static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2899 PyObject *resultobj;
2900 wxWindow *arg1 = (wxWindow *) 0 ;
2901 int arg2 = (int) -1 ;
2902 wxString const &arg3_defvalue = wxPyEmptyString ;
2903 wxString *arg3 = (wxString *) &arg3_defvalue ;
2904 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2905 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2906 wxSize const &arg5_defvalue = wxDefaultSize ;
2907 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2908 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2909 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2910 long arg7 = (long) 0 ;
2911 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2912 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2913 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2914 wxString *arg9 = (wxString *) &arg9_defvalue ;
2915 wxComboBox *result;
2916 bool temp3 = False ;
2917 wxPoint temp4 ;
2918 wxSize temp5 ;
2919 bool temp6 = False ;
2920 bool temp9 = False ;
2921 PyObject * obj0 = 0 ;
2922 PyObject * obj1 = 0 ;
2923 PyObject * obj2 = 0 ;
2924 PyObject * obj3 = 0 ;
2925 PyObject * obj4 = 0 ;
2926 PyObject * obj5 = 0 ;
2927 PyObject * obj6 = 0 ;
2928 PyObject * obj7 = 0 ;
2929 PyObject * obj8 = 0 ;
2930 char *kwnames[] = {
2931 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2932 };
2933
2934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2937 if (obj1) {
2938 arg2 = (int) SWIG_AsInt(obj1);
2939 if (PyErr_Occurred()) SWIG_fail;
2940 }
2941 if (obj2) {
2942 {
2943 arg3 = wxString_in_helper(obj2);
2944 if (arg3 == NULL) SWIG_fail;
2945 temp3 = True;
2946 }
2947 }
2948 if (obj3) {
2949 {
2950 arg4 = &temp4;
2951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2952 }
2953 }
2954 if (obj4) {
2955 {
2956 arg5 = &temp5;
2957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2958 }
2959 }
2960 if (obj5) {
2961 {
2962 if (! PySequence_Check(obj5)) {
2963 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2964 SWIG_fail;
2965 }
2966 arg6 = new wxArrayString;
2967 temp6 = True;
2968 int i, len=PySequence_Length(obj5);
2969 for (i=0; i<len; i++) {
2970 PyObject* item = PySequence_GetItem(obj5, i);
2971#if wxUSE_UNICODE
2972 PyObject* str = PyObject_Unicode(item);
2973#else
2974 PyObject* str = PyObject_Str(item);
2975#endif
2976 if (PyErr_Occurred()) SWIG_fail;
2977 arg6->Add(Py2wxString(str));
2978 Py_DECREF(item);
2979 Py_DECREF(str);
2980 }
2981 }
2982 }
2983 if (obj6) {
2984 arg7 = (long) SWIG_AsLong(obj6);
2985 if (PyErr_Occurred()) SWIG_fail;
2986 }
2987 if (obj7) {
2988 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2989 SWIG_POINTER_EXCEPTION | 0)) == -1)
2990 SWIG_fail;
2991 if (arg8 == NULL) {
2992 PyErr_SetString(PyExc_TypeError,"null reference");
2993 SWIG_fail;
2994 }
2995 }
2996 if (obj8) {
2997 {
2998 arg9 = wxString_in_helper(obj8);
2999 if (arg9 == NULL) SWIG_fail;
3000 temp9 = True;
3001 }
3002 }
3003 {
3004 PyThreadState* __tstate = wxPyBeginAllowThreads();
3005 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);
3006
3007 wxPyEndAllowThreads(__tstate);
3008 if (PyErr_Occurred()) SWIG_fail;
3009 }
3010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3011 {
3012 if (temp3)
3013 delete arg3;
3014 }
3015 {
3016 if (temp6) delete arg6;
3017 }
3018 {
3019 if (temp9)
3020 delete arg9;
3021 }
3022 return resultobj;
3023 fail:
3024 {
3025 if (temp3)
3026 delete arg3;
3027 }
3028 {
3029 if (temp6) delete arg6;
3030 }
3031 {
3032 if (temp9)
3033 delete arg9;
3034 }
3035 return NULL;
3036}
3037
3038
3039static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3040 PyObject *resultobj;
3041 wxComboBox *result;
3042 char *kwnames[] = {
3043 NULL
3044 };
3045
3046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3047 {
3048 PyThreadState* __tstate = wxPyBeginAllowThreads();
3049 result = (wxComboBox *)new wxComboBox();
3050
3051 wxPyEndAllowThreads(__tstate);
3052 if (PyErr_Occurred()) SWIG_fail;
3053 }
3054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3055 return resultobj;
3056 fail:
3057 return NULL;
3058}
3059
3060
3061static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3062 PyObject *resultobj;
3063 wxComboBox *arg1 = (wxComboBox *) 0 ;
3064 wxWindow *arg2 = (wxWindow *) 0 ;
3065 int arg3 = (int) -1 ;
3066 wxString const &arg4_defvalue = wxPyEmptyString ;
3067 wxString *arg4 = (wxString *) &arg4_defvalue ;
3068 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3069 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3070 wxSize const &arg6_defvalue = wxDefaultSize ;
3071 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3072 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3073 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3074 long arg8 = (long) 0 ;
3075 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3076 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3077 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3078 wxString *arg10 = (wxString *) &arg10_defvalue ;
3079 bool result;
3080 bool temp4 = False ;
3081 wxPoint temp5 ;
3082 wxSize temp6 ;
3083 bool temp7 = False ;
3084 bool temp10 = False ;
3085 PyObject * obj0 = 0 ;
3086 PyObject * obj1 = 0 ;
3087 PyObject * obj2 = 0 ;
3088 PyObject * obj3 = 0 ;
3089 PyObject * obj4 = 0 ;
3090 PyObject * obj5 = 0 ;
3091 PyObject * obj6 = 0 ;
3092 PyObject * obj7 = 0 ;
3093 PyObject * obj8 = 0 ;
3094 PyObject * obj9 = 0 ;
3095 char *kwnames[] = {
3096 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3097 };
3098
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3104 if (obj2) {
3105 arg3 = (int) SWIG_AsInt(obj2);
3106 if (PyErr_Occurred()) SWIG_fail;
3107 }
3108 if (obj3) {
3109 {
3110 arg4 = wxString_in_helper(obj3);
3111 if (arg4 == NULL) SWIG_fail;
3112 temp4 = True;
3113 }
3114 }
3115 if (obj4) {
3116 {
3117 arg5 = &temp5;
3118 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3119 }
3120 }
3121 if (obj5) {
3122 {
3123 arg6 = &temp6;
3124 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3125 }
3126 }
3127 if (obj6) {
3128 {
3129 if (! PySequence_Check(obj6)) {
3130 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3131 SWIG_fail;
3132 }
3133 arg7 = new wxArrayString;
3134 temp7 = True;
3135 int i, len=PySequence_Length(obj6);
3136 for (i=0; i<len; i++) {
3137 PyObject* item = PySequence_GetItem(obj6, i);
3138#if wxUSE_UNICODE
3139 PyObject* str = PyObject_Unicode(item);
3140#else
3141 PyObject* str = PyObject_Str(item);
3142#endif
3143 if (PyErr_Occurred()) SWIG_fail;
3144 arg7->Add(Py2wxString(str));
3145 Py_DECREF(item);
3146 Py_DECREF(str);
3147 }
3148 }
3149 }
3150 if (obj7) {
3151 arg8 = (long) SWIG_AsLong(obj7);
3152 if (PyErr_Occurred()) SWIG_fail;
3153 }
3154 if (obj8) {
3155 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3156 SWIG_POINTER_EXCEPTION | 0)) == -1)
3157 SWIG_fail;
3158 if (arg9 == NULL) {
3159 PyErr_SetString(PyExc_TypeError,"null reference");
3160 SWIG_fail;
3161 }
3162 }
3163 if (obj9) {
3164 {
3165 arg10 = wxString_in_helper(obj9);
3166 if (arg10 == NULL) SWIG_fail;
3167 temp10 = True;
3168 }
3169 }
3170 {
3171 PyThreadState* __tstate = wxPyBeginAllowThreads();
3172 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);
3173
3174 wxPyEndAllowThreads(__tstate);
3175 if (PyErr_Occurred()) SWIG_fail;
3176 }
3177 {
3178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3179 }
3180 {
3181 if (temp4)
3182 delete arg4;
3183 }
3184 {
3185 if (temp7) delete arg7;
3186 }
3187 {
3188 if (temp10)
3189 delete arg10;
3190 }
3191 return resultobj;
3192 fail:
3193 {
3194 if (temp4)
3195 delete arg4;
3196 }
3197 {
3198 if (temp7) delete arg7;
3199 }
3200 {
3201 if (temp10)
3202 delete arg10;
3203 }
3204 return NULL;
3205}
3206
3207
3208static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3209 PyObject *resultobj;
3210 wxComboBox *arg1 = (wxComboBox *) 0 ;
3211 wxString result;
3212 PyObject * obj0 = 0 ;
3213 char *kwnames[] = {
3214 (char *) "self", NULL
3215 };
3216
3217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3220 {
3221 PyThreadState* __tstate = wxPyBeginAllowThreads();
3222 result = ((wxComboBox const *)arg1)->GetValue();
3223
3224 wxPyEndAllowThreads(__tstate);
3225 if (PyErr_Occurred()) SWIG_fail;
3226 }
3227 {
3228#if wxUSE_UNICODE
3229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3230#else
3231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3232#endif
3233 }
3234 return resultobj;
3235 fail:
3236 return NULL;
3237}
3238
3239
3240static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3241 PyObject *resultobj;
3242 wxComboBox *arg1 = (wxComboBox *) 0 ;
3243 wxString *arg2 = 0 ;
3244 bool temp2 = False ;
3245 PyObject * obj0 = 0 ;
3246 PyObject * obj1 = 0 ;
3247 char *kwnames[] = {
3248 (char *) "self",(char *) "value", NULL
3249 };
3250
3251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3254 {
3255 arg2 = wxString_in_helper(obj1);
3256 if (arg2 == NULL) SWIG_fail;
3257 temp2 = True;
3258 }
3259 {
3260 PyThreadState* __tstate = wxPyBeginAllowThreads();
3261 (arg1)->SetValue((wxString const &)*arg2);
3262
3263 wxPyEndAllowThreads(__tstate);
3264 if (PyErr_Occurred()) SWIG_fail;
3265 }
3266 Py_INCREF(Py_None); resultobj = Py_None;
3267 {
3268 if (temp2)
3269 delete arg2;
3270 }
3271 return resultobj;
3272 fail:
3273 {
3274 if (temp2)
3275 delete arg2;
3276 }
3277 return NULL;
3278}
3279
3280
3281static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject *resultobj;
3283 wxComboBox *arg1 = (wxComboBox *) 0 ;
3284 PyObject * obj0 = 0 ;
3285 char *kwnames[] = {
3286 (char *) "self", NULL
3287 };
3288
3289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3292 {
3293 PyThreadState* __tstate = wxPyBeginAllowThreads();
3294 (arg1)->Copy();
3295
3296 wxPyEndAllowThreads(__tstate);
3297 if (PyErr_Occurred()) SWIG_fail;
3298 }
3299 Py_INCREF(Py_None); resultobj = Py_None;
3300 return resultobj;
3301 fail:
3302 return NULL;
3303}
3304
3305
3306static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3307 PyObject *resultobj;
3308 wxComboBox *arg1 = (wxComboBox *) 0 ;
3309 PyObject * obj0 = 0 ;
3310 char *kwnames[] = {
3311 (char *) "self", NULL
3312 };
3313
3314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3317 {
3318 PyThreadState* __tstate = wxPyBeginAllowThreads();
3319 (arg1)->Cut();
3320
3321 wxPyEndAllowThreads(__tstate);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 Py_INCREF(Py_None); resultobj = Py_None;
3325 return resultobj;
3326 fail:
3327 return NULL;
3328}
3329
3330
3331static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3332 PyObject *resultobj;
3333 wxComboBox *arg1 = (wxComboBox *) 0 ;
3334 PyObject * obj0 = 0 ;
3335 char *kwnames[] = {
3336 (char *) "self", NULL
3337 };
3338
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3342 {
3343 PyThreadState* __tstate = wxPyBeginAllowThreads();
3344 (arg1)->Paste();
3345
3346 wxPyEndAllowThreads(__tstate);
3347 if (PyErr_Occurred()) SWIG_fail;
3348 }
3349 Py_INCREF(Py_None); resultobj = Py_None;
3350 return resultobj;
3351 fail:
3352 return NULL;
3353}
3354
3355
3356static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3357 PyObject *resultobj;
3358 wxComboBox *arg1 = (wxComboBox *) 0 ;
3359 long arg2 ;
3360 PyObject * obj0 = 0 ;
3361 PyObject * obj1 = 0 ;
3362 char *kwnames[] = {
3363 (char *) "self",(char *) "pos", NULL
3364 };
3365
3366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3369 arg2 = (long) SWIG_AsLong(obj1);
3370 if (PyErr_Occurred()) SWIG_fail;
3371 {
3372 PyThreadState* __tstate = wxPyBeginAllowThreads();
3373 (arg1)->SetInsertionPoint(arg2);
3374
3375 wxPyEndAllowThreads(__tstate);
3376 if (PyErr_Occurred()) SWIG_fail;
3377 }
3378 Py_INCREF(Py_None); resultobj = Py_None;
3379 return resultobj;
3380 fail:
3381 return NULL;
3382}
3383
3384
3385static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3386 PyObject *resultobj;
3387 wxComboBox *arg1 = (wxComboBox *) 0 ;
3388 long result;
3389 PyObject * obj0 = 0 ;
3390 char *kwnames[] = {
3391 (char *) "self", NULL
3392 };
3393
3394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3397 {
3398 PyThreadState* __tstate = wxPyBeginAllowThreads();
3399 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3400
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 resultobj = SWIG_FromLong((long)result);
3405 return resultobj;
3406 fail:
3407 return NULL;
3408}
3409
3410
3411static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3412 PyObject *resultobj;
3413 wxComboBox *arg1 = (wxComboBox *) 0 ;
3414 long result;
3415 PyObject * obj0 = 0 ;
3416 char *kwnames[] = {
3417 (char *) "self", NULL
3418 };
3419
3420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3423 {
3424 PyThreadState* __tstate = wxPyBeginAllowThreads();
3425 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3426
3427 wxPyEndAllowThreads(__tstate);
3428 if (PyErr_Occurred()) SWIG_fail;
3429 }
3430 resultobj = SWIG_FromLong((long)result);
3431 return resultobj;
3432 fail:
3433 return NULL;
3434}
3435
3436
3437static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3438 PyObject *resultobj;
3439 wxComboBox *arg1 = (wxComboBox *) 0 ;
3440 long arg2 ;
3441 long arg3 ;
3442 wxString *arg4 = 0 ;
3443 bool temp4 = False ;
3444 PyObject * obj0 = 0 ;
3445 PyObject * obj1 = 0 ;
3446 PyObject * obj2 = 0 ;
3447 PyObject * obj3 = 0 ;
3448 char *kwnames[] = {
3449 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3450 };
3451
3452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3455 arg2 = (long) SWIG_AsLong(obj1);
3456 if (PyErr_Occurred()) SWIG_fail;
3457 arg3 = (long) SWIG_AsLong(obj2);
3458 if (PyErr_Occurred()) SWIG_fail;
3459 {
3460 arg4 = wxString_in_helper(obj3);
3461 if (arg4 == NULL) SWIG_fail;
3462 temp4 = True;
3463 }
3464 {
3465 PyThreadState* __tstate = wxPyBeginAllowThreads();
3466 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3467
3468 wxPyEndAllowThreads(__tstate);
3469 if (PyErr_Occurred()) SWIG_fail;
3470 }
3471 Py_INCREF(Py_None); resultobj = Py_None;
3472 {
3473 if (temp4)
3474 delete arg4;
3475 }
3476 return resultobj;
3477 fail:
3478 {
3479 if (temp4)
3480 delete arg4;
3481 }
3482 return NULL;
3483}
3484
3485
3486static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxComboBox *arg1 = (wxComboBox *) 0 ;
3489 int arg2 ;
3490 PyObject * obj0 = 0 ;
3491 PyObject * obj1 = 0 ;
3492 char *kwnames[] = {
3493 (char *) "self",(char *) "n", NULL
3494 };
3495
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3499 arg2 = (int) SWIG_AsInt(obj1);
3500 if (PyErr_Occurred()) SWIG_fail;
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 (arg1)->SetSelection(arg2);
3504
3505 wxPyEndAllowThreads(__tstate);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 Py_INCREF(Py_None); resultobj = Py_None;
3509 return resultobj;
3510 fail:
3511 return NULL;
3512}
3513
3514
3515static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3516 PyObject *resultobj;
3517 wxComboBox *arg1 = (wxComboBox *) 0 ;
3518 long arg2 ;
3519 long arg3 ;
3520 PyObject * obj0 = 0 ;
3521 PyObject * obj1 = 0 ;
3522 PyObject * obj2 = 0 ;
3523 char *kwnames[] = {
3524 (char *) "self",(char *) "from",(char *) "to", NULL
3525 };
3526
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3530 arg2 = (long) SWIG_AsLong(obj1);
3531 if (PyErr_Occurred()) SWIG_fail;
3532 arg3 = (long) SWIG_AsLong(obj2);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 {
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 (arg1)->SetSelection(arg2,arg3);
3537
3538 wxPyEndAllowThreads(__tstate);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 Py_INCREF(Py_None); resultobj = Py_None;
3542 return resultobj;
3543 fail:
3544 return NULL;
3545}
3546
3547
121b9a67
RD
3548static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3549 PyObject *resultobj;
3550 wxComboBox *arg1 = (wxComboBox *) 0 ;
3551 wxString *arg2 = 0 ;
3552 bool result;
3553 bool temp2 = False ;
3554 PyObject * obj0 = 0 ;
3555 PyObject * obj1 = 0 ;
3556 char *kwnames[] = {
3557 (char *) "self",(char *) "string", NULL
3558 };
3559
3560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3563 {
3564 arg2 = wxString_in_helper(obj1);
3565 if (arg2 == NULL) SWIG_fail;
3566 temp2 = True;
3567 }
3568 {
3569 PyThreadState* __tstate = wxPyBeginAllowThreads();
3570 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3571
3572 wxPyEndAllowThreads(__tstate);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 {
3576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3577 }
3578 {
3579 if (temp2)
3580 delete arg2;
3581 }
3582 return resultobj;
3583 fail:
3584 {
3585 if (temp2)
3586 delete arg2;
3587 }
3588 return NULL;
3589}
3590
3591
3592static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3593 PyObject *resultobj;
3594 wxComboBox *arg1 = (wxComboBox *) 0 ;
3595 int arg2 ;
3596 wxString *arg3 = 0 ;
3597 bool temp3 = False ;
3598 PyObject * obj0 = 0 ;
3599 PyObject * obj1 = 0 ;
3600 PyObject * obj2 = 0 ;
3601 char *kwnames[] = {
3602 (char *) "self",(char *) "n",(char *) "string", NULL
3603 };
3604
3605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3608 arg2 = (int) SWIG_AsInt(obj1);
3609 if (PyErr_Occurred()) SWIG_fail;
3610 {
3611 arg3 = wxString_in_helper(obj2);
3612 if (arg3 == NULL) SWIG_fail;
3613 temp3 = True;
3614 }
3615 {
3616 PyThreadState* __tstate = wxPyBeginAllowThreads();
3617 (arg1)->SetString(arg2,(wxString const &)*arg3);
3618
3619 wxPyEndAllowThreads(__tstate);
3620 if (PyErr_Occurred()) SWIG_fail;
3621 }
3622 Py_INCREF(Py_None); resultobj = Py_None;
3623 {
3624 if (temp3)
3625 delete arg3;
3626 }
3627 return resultobj;
3628 fail:
3629 {
3630 if (temp3)
3631 delete arg3;
3632 }
3633 return NULL;
3634}
3635
3636
d55e5bfc
RD
3637static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3638 PyObject *resultobj;
3639 wxComboBox *arg1 = (wxComboBox *) 0 ;
3640 bool arg2 ;
3641 PyObject * obj0 = 0 ;
3642 PyObject * obj1 = 0 ;
3643 char *kwnames[] = {
3644 (char *) "self",(char *) "editable", NULL
3645 };
3646
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3650 arg2 = (bool) SWIG_AsBool(obj1);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 {
3653 PyThreadState* __tstate = wxPyBeginAllowThreads();
3654 (arg1)->SetEditable(arg2);
3655
3656 wxPyEndAllowThreads(__tstate);
3657 if (PyErr_Occurred()) SWIG_fail;
3658 }
3659 Py_INCREF(Py_None); resultobj = Py_None;
3660 return resultobj;
3661 fail:
3662 return NULL;
3663}
3664
3665
3666static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3667 PyObject *resultobj;
3668 wxComboBox *arg1 = (wxComboBox *) 0 ;
3669 PyObject * obj0 = 0 ;
3670 char *kwnames[] = {
3671 (char *) "self", NULL
3672 };
3673
3674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3677 {
3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
3679 (arg1)->SetInsertionPointEnd();
3680
3681 wxPyEndAllowThreads(__tstate);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
3684 Py_INCREF(Py_None); resultobj = Py_None;
3685 return resultobj;
3686 fail:
3687 return NULL;
3688}
3689
3690
3691static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3692 PyObject *resultobj;
3693 wxComboBox *arg1 = (wxComboBox *) 0 ;
3694 long arg2 ;
3695 long arg3 ;
3696 PyObject * obj0 = 0 ;
3697 PyObject * obj1 = 0 ;
3698 PyObject * obj2 = 0 ;
3699 char *kwnames[] = {
3700 (char *) "self",(char *) "from",(char *) "to", NULL
3701 };
3702
3703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3706 arg2 = (long) SWIG_AsLong(obj1);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 arg3 = (long) SWIG_AsLong(obj2);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 {
3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
3712 (arg1)->Remove(arg2,arg3);
3713
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 Py_INCREF(Py_None); resultobj = Py_None;
3718 return resultobj;
3719 fail:
3720 return NULL;
3721}
3722
3723
f20a2e1f
RD
3724static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj;
3726 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3727 wxVisualAttributes result;
3728 PyObject * obj0 = 0 ;
3729 char *kwnames[] = {
3730 (char *) "variant", NULL
3731 };
3732
3733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3734 if (obj0) {
3735 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
3736 if (PyErr_Occurred()) SWIG_fail;
3737 }
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 {
3746 wxVisualAttributes * resultptr;
3747 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3748 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3749 }
3750 return resultobj;
3751 fail:
3752 return NULL;
3753}
3754
3755
d55e5bfc
RD
3756static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3757 PyObject *obj;
3758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3759 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3760 Py_INCREF(obj);
3761 return Py_BuildValue((char *)"");
3762}
3763static int _wrap_GaugeNameStr_set(PyObject *_val) {
3764 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3765 return 1;
3766}
3767
3768
3769static PyObject *_wrap_GaugeNameStr_get() {
3770 PyObject *pyobj;
3771
3772 {
3773#if wxUSE_UNICODE
3774 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3775#else
3776 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3777#endif
3778 }
3779 return pyobj;
3780}
3781
3782
3783static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxWindow *arg1 = (wxWindow *) 0 ;
3786 int arg2 ;
3787 int arg3 ;
3788 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3789 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3790 wxSize const &arg5_defvalue = wxDefaultSize ;
3791 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3792 long arg6 = (long) wxGA_HORIZONTAL ;
3793 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3794 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3795 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3796 wxString *arg8 = (wxString *) &arg8_defvalue ;
3797 wxGauge *result;
3798 wxPoint temp4 ;
3799 wxSize temp5 ;
3800 bool temp8 = False ;
3801 PyObject * obj0 = 0 ;
3802 PyObject * obj1 = 0 ;
3803 PyObject * obj2 = 0 ;
3804 PyObject * obj3 = 0 ;
3805 PyObject * obj4 = 0 ;
3806 PyObject * obj5 = 0 ;
3807 PyObject * obj6 = 0 ;
3808 PyObject * obj7 = 0 ;
3809 char *kwnames[] = {
3810 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3811 };
3812
3813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3816 arg2 = (int) SWIG_AsInt(obj1);
3817 if (PyErr_Occurred()) SWIG_fail;
3818 arg3 = (int) SWIG_AsInt(obj2);
3819 if (PyErr_Occurred()) SWIG_fail;
3820 if (obj3) {
3821 {
3822 arg4 = &temp4;
3823 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3824 }
3825 }
3826 if (obj4) {
3827 {
3828 arg5 = &temp5;
3829 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3830 }
3831 }
3832 if (obj5) {
3833 arg6 = (long) SWIG_AsLong(obj5);
3834 if (PyErr_Occurred()) SWIG_fail;
3835 }
3836 if (obj6) {
3837 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3838 SWIG_POINTER_EXCEPTION | 0)) == -1)
3839 SWIG_fail;
3840 if (arg7 == NULL) {
3841 PyErr_SetString(PyExc_TypeError,"null reference");
3842 SWIG_fail;
3843 }
3844 }
3845 if (obj7) {
3846 {
3847 arg8 = wxString_in_helper(obj7);
3848 if (arg8 == NULL) SWIG_fail;
3849 temp8 = True;
3850 }
3851 }
3852 {
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
3859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3860 {
3861 if (temp8)
3862 delete arg8;
3863 }
3864 return resultobj;
3865 fail:
3866 {
3867 if (temp8)
3868 delete arg8;
3869 }
3870 return NULL;
3871}
3872
3873
3874static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj;
3876 wxGauge *result;
3877 char *kwnames[] = {
3878 NULL
3879 };
3880
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3882 {
3883 PyThreadState* __tstate = wxPyBeginAllowThreads();
3884 result = (wxGauge *)new wxGauge();
3885
3886 wxPyEndAllowThreads(__tstate);
3887 if (PyErr_Occurred()) SWIG_fail;
3888 }
3889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3890 return resultobj;
3891 fail:
3892 return NULL;
3893}
3894
3895
3896static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3897 PyObject *resultobj;
3898 wxGauge *arg1 = (wxGauge *) 0 ;
3899 wxWindow *arg2 = (wxWindow *) 0 ;
3900 int arg3 ;
3901 int arg4 ;
3902 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3903 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3904 wxSize const &arg6_defvalue = wxDefaultSize ;
3905 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3906 long arg7 = (long) wxGA_HORIZONTAL ;
3907 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3908 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3909 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3910 wxString *arg9 = (wxString *) &arg9_defvalue ;
3911 bool result;
3912 wxPoint temp5 ;
3913 wxSize temp6 ;
3914 bool temp9 = False ;
3915 PyObject * obj0 = 0 ;
3916 PyObject * obj1 = 0 ;
3917 PyObject * obj2 = 0 ;
3918 PyObject * obj3 = 0 ;
3919 PyObject * obj4 = 0 ;
3920 PyObject * obj5 = 0 ;
3921 PyObject * obj6 = 0 ;
3922 PyObject * obj7 = 0 ;
3923 PyObject * obj8 = 0 ;
3924 char *kwnames[] = {
3925 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3926 };
3927
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3931 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3933 arg3 = (int) SWIG_AsInt(obj2);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 arg4 = (int) SWIG_AsInt(obj3);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 if (obj4) {
3938 {
3939 arg5 = &temp5;
3940 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3941 }
3942 }
3943 if (obj5) {
3944 {
3945 arg6 = &temp6;
3946 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3947 }
3948 }
3949 if (obj6) {
3950 arg7 = (long) SWIG_AsLong(obj6);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 }
3953 if (obj7) {
3954 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3955 SWIG_POINTER_EXCEPTION | 0)) == -1)
3956 SWIG_fail;
3957 if (arg8 == NULL) {
3958 PyErr_SetString(PyExc_TypeError,"null reference");
3959 SWIG_fail;
3960 }
3961 }
3962 if (obj8) {
3963 {
3964 arg9 = wxString_in_helper(obj8);
3965 if (arg9 == NULL) SWIG_fail;
3966 temp9 = True;
3967 }
3968 }
3969 {
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3972
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 {
3977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3978 }
3979 {
3980 if (temp9)
3981 delete arg9;
3982 }
3983 return resultobj;
3984 fail:
3985 {
3986 if (temp9)
3987 delete arg9;
3988 }
3989 return NULL;
3990}
3991
3992
3993static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3994 PyObject *resultobj;
3995 wxGauge *arg1 = (wxGauge *) 0 ;
3996 int arg2 ;
3997 PyObject * obj0 = 0 ;
3998 PyObject * obj1 = 0 ;
3999 char *kwnames[] = {
4000 (char *) "self",(char *) "range", NULL
4001 };
4002
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4006 arg2 = (int) SWIG_AsInt(obj1);
4007 if (PyErr_Occurred()) SWIG_fail;
4008 {
4009 PyThreadState* __tstate = wxPyBeginAllowThreads();
4010 (arg1)->SetRange(arg2);
4011
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 Py_INCREF(Py_None); resultobj = Py_None;
4016 return resultobj;
4017 fail:
4018 return NULL;
4019}
4020
4021
4022static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj;
4024 wxGauge *arg1 = (wxGauge *) 0 ;
4025 int result;
4026 PyObject * obj0 = 0 ;
4027 char *kwnames[] = {
4028 (char *) "self", NULL
4029 };
4030
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (int)((wxGauge const *)arg1)->GetRange();
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = SWIG_FromInt((int)result);
4042 return resultobj;
4043 fail:
4044 return NULL;
4045}
4046
4047
4048static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4049 PyObject *resultobj;
4050 wxGauge *arg1 = (wxGauge *) 0 ;
4051 int arg2 ;
4052 PyObject * obj0 = 0 ;
4053 PyObject * obj1 = 0 ;
4054 char *kwnames[] = {
4055 (char *) "self",(char *) "pos", NULL
4056 };
4057
4058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4061 arg2 = (int) SWIG_AsInt(obj1);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 {
4064 PyThreadState* __tstate = wxPyBeginAllowThreads();
4065 (arg1)->SetValue(arg2);
4066
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 Py_INCREF(Py_None); resultobj = Py_None;
4071 return resultobj;
4072 fail:
4073 return NULL;
4074}
4075
4076
4077static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj;
4079 wxGauge *arg1 = (wxGauge *) 0 ;
4080 int result;
4081 PyObject * obj0 = 0 ;
4082 char *kwnames[] = {
4083 (char *) "self", NULL
4084 };
4085
4086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 result = (int)((wxGauge const *)arg1)->GetValue();
4092
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 resultobj = SWIG_FromInt((int)result);
4097 return resultobj;
4098 fail:
4099 return NULL;
4100}
4101
4102
4103static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4104 PyObject *resultobj;
4105 wxGauge *arg1 = (wxGauge *) 0 ;
4106 bool result;
4107 PyObject * obj0 = 0 ;
4108 char *kwnames[] = {
4109 (char *) "self", NULL
4110 };
4111
4112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4115 {
4116 PyThreadState* __tstate = wxPyBeginAllowThreads();
4117 result = (bool)((wxGauge const *)arg1)->IsVertical();
4118
4119 wxPyEndAllowThreads(__tstate);
4120 if (PyErr_Occurred()) SWIG_fail;
4121 }
4122 {
4123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4124 }
4125 return resultobj;
4126 fail:
4127 return NULL;
4128}
4129
4130
4131static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4132 PyObject *resultobj;
4133 wxGauge *arg1 = (wxGauge *) 0 ;
4134 int arg2 ;
4135 PyObject * obj0 = 0 ;
4136 PyObject * obj1 = 0 ;
4137 char *kwnames[] = {
4138 (char *) "self",(char *) "w", NULL
4139 };
4140
4141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4144 arg2 = (int) SWIG_AsInt(obj1);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 (arg1)->SetShadowWidth(arg2);
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 Py_INCREF(Py_None); resultobj = Py_None;
4154 return resultobj;
4155 fail:
4156 return NULL;
4157}
4158
4159
4160static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4161 PyObject *resultobj;
4162 wxGauge *arg1 = (wxGauge *) 0 ;
4163 int result;
4164 PyObject * obj0 = 0 ;
4165 char *kwnames[] = {
4166 (char *) "self", NULL
4167 };
4168
4169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4172 {
4173 PyThreadState* __tstate = wxPyBeginAllowThreads();
4174 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4175
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 resultobj = SWIG_FromInt((int)result);
4180 return resultobj;
4181 fail:
4182 return NULL;
4183}
4184
4185
4186static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj;
4188 wxGauge *arg1 = (wxGauge *) 0 ;
4189 int arg2 ;
4190 PyObject * obj0 = 0 ;
4191 PyObject * obj1 = 0 ;
4192 char *kwnames[] = {
4193 (char *) "self",(char *) "w", NULL
4194 };
4195
4196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4199 arg2 = (int) SWIG_AsInt(obj1);
4200 if (PyErr_Occurred()) SWIG_fail;
4201 {
4202 PyThreadState* __tstate = wxPyBeginAllowThreads();
4203 (arg1)->SetBezelFace(arg2);
4204
4205 wxPyEndAllowThreads(__tstate);
4206 if (PyErr_Occurred()) SWIG_fail;
4207 }
4208 Py_INCREF(Py_None); resultobj = Py_None;
4209 return resultobj;
4210 fail:
4211 return NULL;
4212}
4213
4214
4215static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4216 PyObject *resultobj;
4217 wxGauge *arg1 = (wxGauge *) 0 ;
4218 int result;
4219 PyObject * obj0 = 0 ;
4220 char *kwnames[] = {
4221 (char *) "self", NULL
4222 };
4223
4224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4230
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 resultobj = SWIG_FromInt((int)result);
4235 return resultobj;
4236 fail:
4237 return NULL;
4238}
4239
4240
f20a2e1f
RD
4241static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4242 PyObject *resultobj;
4243 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4244 wxVisualAttributes result;
4245 PyObject * obj0 = 0 ;
4246 char *kwnames[] = {
4247 (char *) "variant", NULL
4248 };
4249
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4251 if (obj0) {
4252 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4258
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 {
4263 wxVisualAttributes * resultptr;
4264 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4265 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4266 }
4267 return resultobj;
4268 fail:
4269 return NULL;
4270}
4271
4272
d55e5bfc
RD
4273static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
4274 PyObject *obj;
4275 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4276 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4277 Py_INCREF(obj);
4278 return Py_BuildValue((char *)"");
4279}
4280static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
4281 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4282 return 1;
4283}
4284
4285
4286static PyObject *_wrap_StaticBitmapNameStr_get() {
4287 PyObject *pyobj;
4288
4289 {
4290#if wxUSE_UNICODE
4291 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4292#else
4293 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4294#endif
4295 }
4296 return pyobj;
4297}
4298
4299
4300static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4301 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4302 return 1;
4303}
4304
4305
4306static PyObject *_wrap_StaticBoxNameStr_get() {
4307 PyObject *pyobj;
4308
4309 {
4310#if wxUSE_UNICODE
4311 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4312#else
4313 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4314#endif
4315 }
4316 return pyobj;
4317}
4318
4319
4320static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4321 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4322 return 1;
4323}
4324
4325
4326static PyObject *_wrap_StaticTextNameStr_get() {
4327 PyObject *pyobj;
4328
4329 {
4330#if wxUSE_UNICODE
4331 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4332#else
4333 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4334#endif
4335 }
4336 return pyobj;
4337}
4338
4339
4340static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj;
4342 wxWindow *arg1 = (wxWindow *) 0 ;
4343 int arg2 ;
4344 wxString *arg3 = 0 ;
4345 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4346 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4347 wxSize const &arg5_defvalue = wxDefaultSize ;
4348 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4349 long arg6 = (long) 0 ;
4350 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4351 wxString *arg7 = (wxString *) &arg7_defvalue ;
4352 wxStaticBox *result;
4353 bool temp3 = False ;
4354 wxPoint temp4 ;
4355 wxSize temp5 ;
4356 bool temp7 = False ;
4357 PyObject * obj0 = 0 ;
4358 PyObject * obj1 = 0 ;
4359 PyObject * obj2 = 0 ;
4360 PyObject * obj3 = 0 ;
4361 PyObject * obj4 = 0 ;
4362 PyObject * obj5 = 0 ;
4363 PyObject * obj6 = 0 ;
4364 char *kwnames[] = {
4365 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4366 };
4367
4368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4371 arg2 = (int) SWIG_AsInt(obj1);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 {
4374 arg3 = wxString_in_helper(obj2);
4375 if (arg3 == NULL) SWIG_fail;
4376 temp3 = True;
4377 }
4378 if (obj3) {
4379 {
4380 arg4 = &temp4;
4381 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4382 }
4383 }
4384 if (obj4) {
4385 {
4386 arg5 = &temp5;
4387 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4388 }
4389 }
4390 if (obj5) {
4391 arg6 = (long) SWIG_AsLong(obj5);
4392 if (PyErr_Occurred()) SWIG_fail;
4393 }
4394 if (obj6) {
4395 {
4396 arg7 = wxString_in_helper(obj6);
4397 if (arg7 == NULL) SWIG_fail;
4398 temp7 = True;
4399 }
4400 }
4401 {
4402 PyThreadState* __tstate = wxPyBeginAllowThreads();
4403 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4404
4405 wxPyEndAllowThreads(__tstate);
4406 if (PyErr_Occurred()) SWIG_fail;
4407 }
4408 {
4409 resultobj = wxPyMake_wxObject(result);
4410 }
4411 {
4412 if (temp3)
4413 delete arg3;
4414 }
4415 {
4416 if (temp7)
4417 delete arg7;
4418 }
4419 return resultobj;
4420 fail:
4421 {
4422 if (temp3)
4423 delete arg3;
4424 }
4425 {
4426 if (temp7)
4427 delete arg7;
4428 }
4429 return NULL;
4430}
4431
4432
4433static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4434 PyObject *resultobj;
4435 wxStaticBox *result;
4436 char *kwnames[] = {
4437 NULL
4438 };
4439
4440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 result = (wxStaticBox *)new wxStaticBox();
4444
4445 wxPyEndAllowThreads(__tstate);
4446 if (PyErr_Occurred()) SWIG_fail;
4447 }
4448 {
4449 resultobj = wxPyMake_wxObject(result);
4450 }
4451 return resultobj;
4452 fail:
4453 return NULL;
4454}
4455
4456
4457static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4458 PyObject *resultobj;
4459 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4460 wxWindow *arg2 = (wxWindow *) 0 ;
4461 int arg3 ;
4462 wxString *arg4 = 0 ;
4463 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4464 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4465 wxSize const &arg6_defvalue = wxDefaultSize ;
4466 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4467 long arg7 = (long) 0 ;
4468 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4469 wxString *arg8 = (wxString *) &arg8_defvalue ;
4470 bool result;
4471 bool temp4 = False ;
4472 wxPoint temp5 ;
4473 wxSize temp6 ;
4474 bool temp8 = False ;
4475 PyObject * obj0 = 0 ;
4476 PyObject * obj1 = 0 ;
4477 PyObject * obj2 = 0 ;
4478 PyObject * obj3 = 0 ;
4479 PyObject * obj4 = 0 ;
4480 PyObject * obj5 = 0 ;
4481 PyObject * obj6 = 0 ;
4482 PyObject * obj7 = 0 ;
4483 char *kwnames[] = {
4484 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4485 };
4486
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4492 arg3 = (int) SWIG_AsInt(obj2);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 {
4495 arg4 = wxString_in_helper(obj3);
4496 if (arg4 == NULL) SWIG_fail;
4497 temp4 = True;
4498 }
4499 if (obj4) {
4500 {
4501 arg5 = &temp5;
4502 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4503 }
4504 }
4505 if (obj5) {
4506 {
4507 arg6 = &temp6;
4508 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4509 }
4510 }
4511 if (obj6) {
4512 arg7 = (long) SWIG_AsLong(obj6);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 if (obj7) {
4516 {
4517 arg8 = wxString_in_helper(obj7);
4518 if (arg8 == NULL) SWIG_fail;
4519 temp8 = True;
4520 }
4521 }
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4525
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 {
4530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4531 }
4532 {
4533 if (temp4)
4534 delete arg4;
4535 }
4536 {
4537 if (temp8)
4538 delete arg8;
4539 }
4540 return resultobj;
4541 fail:
4542 {
4543 if (temp4)
4544 delete arg4;
4545 }
4546 {
4547 if (temp8)
4548 delete arg8;
4549 }
4550 return NULL;
4551}
4552
4553
f20a2e1f
RD
4554static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj;
4556 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4557 wxVisualAttributes result;
4558 PyObject * obj0 = 0 ;
4559 char *kwnames[] = {
4560 (char *) "variant", NULL
4561 };
4562
4563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4564 if (obj0) {
4565 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4568 {
4569 PyThreadState* __tstate = wxPyBeginAllowThreads();
4570 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4571
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 {
4576 wxVisualAttributes * resultptr;
4577 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4579 }
4580 return resultobj;
4581 fail:
4582 return NULL;
4583}
4584
4585
d55e5bfc
RD
4586static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4587 PyObject *obj;
4588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4589 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4590 Py_INCREF(obj);
4591 return Py_BuildValue((char *)"");
4592}
4593static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4594 PyObject *resultobj;
4595 wxWindow *arg1 = (wxWindow *) 0 ;
4596 int arg2 ;
4597 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4598 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4599 wxSize const &arg4_defvalue = wxDefaultSize ;
4600 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4601 long arg5 = (long) wxLI_HORIZONTAL ;
4602 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4603 wxString *arg6 = (wxString *) &arg6_defvalue ;
4604 wxStaticLine *result;
4605 wxPoint temp3 ;
4606 wxSize temp4 ;
4607 bool temp6 = False ;
4608 PyObject * obj0 = 0 ;
4609 PyObject * obj1 = 0 ;
4610 PyObject * obj2 = 0 ;
4611 PyObject * obj3 = 0 ;
4612 PyObject * obj4 = 0 ;
4613 PyObject * obj5 = 0 ;
4614 char *kwnames[] = {
4615 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4616 };
4617
4618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4621 arg2 = (int) SWIG_AsInt(obj1);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 if (obj2) {
4624 {
4625 arg3 = &temp3;
4626 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4627 }
4628 }
4629 if (obj3) {
4630 {
4631 arg4 = &temp4;
4632 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4633 }
4634 }
4635 if (obj4) {
4636 arg5 = (long) SWIG_AsLong(obj4);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 if (obj5) {
4640 {
4641 arg6 = wxString_in_helper(obj5);
4642 if (arg6 == NULL) SWIG_fail;
4643 temp6 = True;
4644 }
4645 }
4646 {
4647 PyThreadState* __tstate = wxPyBeginAllowThreads();
4648 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4649
4650 wxPyEndAllowThreads(__tstate);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4654 {
4655 if (temp6)
4656 delete arg6;
4657 }
4658 return resultobj;
4659 fail:
4660 {
4661 if (temp6)
4662 delete arg6;
4663 }
4664 return NULL;
4665}
4666
4667
4668static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj;
4670 wxStaticLine *result;
4671 char *kwnames[] = {
4672 NULL
4673 };
4674
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4676 {
4677 PyThreadState* __tstate = wxPyBeginAllowThreads();
4678 result = (wxStaticLine *)new wxStaticLine();
4679
4680 wxPyEndAllowThreads(__tstate);
4681 if (PyErr_Occurred()) SWIG_fail;
4682 }
4683 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4684 return resultobj;
4685 fail:
4686 return NULL;
4687}
4688
4689
4690static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4691 PyObject *resultobj;
4692 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4693 wxWindow *arg2 = (wxWindow *) 0 ;
4694 int arg3 ;
4695 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4696 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4697 wxSize const &arg5_defvalue = wxDefaultSize ;
4698 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4699 long arg6 = (long) wxLI_HORIZONTAL ;
4700 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4701 wxString *arg7 = (wxString *) &arg7_defvalue ;
4702 bool result;
4703 wxPoint temp4 ;
4704 wxSize temp5 ;
4705 bool temp7 = False ;
4706 PyObject * obj0 = 0 ;
4707 PyObject * obj1 = 0 ;
4708 PyObject * obj2 = 0 ;
4709 PyObject * obj3 = 0 ;
4710 PyObject * obj4 = 0 ;
4711 PyObject * obj5 = 0 ;
4712 PyObject * obj6 = 0 ;
4713 char *kwnames[] = {
4714 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4715 };
4716
4717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4722 arg3 = (int) SWIG_AsInt(obj2);
4723 if (PyErr_Occurred()) SWIG_fail;
4724 if (obj3) {
4725 {
4726 arg4 = &temp4;
4727 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4728 }
4729 }
4730 if (obj4) {
4731 {
4732 arg5 = &temp5;
4733 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4734 }
4735 }
4736 if (obj5) {
4737 arg6 = (long) SWIG_AsLong(obj5);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 }
4740 if (obj6) {
4741 {
4742 arg7 = wxString_in_helper(obj6);
4743 if (arg7 == NULL) SWIG_fail;
4744 temp7 = True;
4745 }
4746 }
4747 {
4748 PyThreadState* __tstate = wxPyBeginAllowThreads();
4749 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4750
4751 wxPyEndAllowThreads(__tstate);
4752 if (PyErr_Occurred()) SWIG_fail;
4753 }
4754 {
4755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4756 }
4757 {
4758 if (temp7)
4759 delete arg7;
4760 }
4761 return resultobj;
4762 fail:
4763 {
4764 if (temp7)
4765 delete arg7;
4766 }
4767 return NULL;
4768}
4769
4770
4771static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4772 PyObject *resultobj;
4773 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4774 bool result;
4775 PyObject * obj0 = 0 ;
4776 char *kwnames[] = {
4777 (char *) "self", NULL
4778 };
4779
4780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4783 {
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4786
4787 wxPyEndAllowThreads(__tstate);
4788 if (PyErr_Occurred()) SWIG_fail;
4789 }
4790 {
4791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4792 }
4793 return resultobj;
4794 fail:
4795 return NULL;
4796}
4797
4798
4799static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4800 PyObject *resultobj;
4801 int result;
4802 char *kwnames[] = {
4803 NULL
4804 };
4805
4806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (int)wxStaticLine::GetDefaultSize();
4810
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_FromInt((int)result);
4815 return resultobj;
4816 fail:
4817 return NULL;
4818}
4819
4820
f20a2e1f
RD
4821static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4822 PyObject *resultobj;
4823 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4824 wxVisualAttributes result;
4825 PyObject * obj0 = 0 ;
4826 char *kwnames[] = {
4827 (char *) "variant", NULL
4828 };
4829
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4831 if (obj0) {
4832 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 {
4836 PyThreadState* __tstate = wxPyBeginAllowThreads();
4837 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
4838
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 {
4843 wxVisualAttributes * resultptr;
4844 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4845 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4846 }
4847 return resultobj;
4848 fail:
4849 return NULL;
4850}
4851
4852
d55e5bfc
RD
4853static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4854 PyObject *obj;
4855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4856 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4857 Py_INCREF(obj);
4858 return Py_BuildValue((char *)"");
4859}
4860static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4861 PyObject *resultobj;
4862 wxWindow *arg1 = (wxWindow *) 0 ;
4863 int arg2 ;
4864 wxString *arg3 = 0 ;
4865 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4866 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4867 wxSize const &arg5_defvalue = wxDefaultSize ;
4868 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4869 long arg6 = (long) 0 ;
4870 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4871 wxString *arg7 = (wxString *) &arg7_defvalue ;
4872 wxStaticText *result;
4873 bool temp3 = False ;
4874 wxPoint temp4 ;
4875 wxSize temp5 ;
4876 bool temp7 = False ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 PyObject * obj2 = 0 ;
4880 PyObject * obj3 = 0 ;
4881 PyObject * obj4 = 0 ;
4882 PyObject * obj5 = 0 ;
4883 PyObject * obj6 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4891 arg2 = (int) SWIG_AsInt(obj1);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 {
4894 arg3 = wxString_in_helper(obj2);
4895 if (arg3 == NULL) SWIG_fail;
4896 temp3 = True;
4897 }
4898 if (obj3) {
4899 {
4900 arg4 = &temp4;
4901 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4902 }
4903 }
4904 if (obj4) {
4905 {
4906 arg5 = &temp5;
4907 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4908 }
4909 }
4910 if (obj5) {
4911 arg6 = (long) SWIG_AsLong(obj5);
4912 if (PyErr_Occurred()) SWIG_fail;
4913 }
4914 if (obj6) {
4915 {
4916 arg7 = wxString_in_helper(obj6);
4917 if (arg7 == NULL) SWIG_fail;
4918 temp7 = True;
4919 }
4920 }
4921 {
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4924
4925 wxPyEndAllowThreads(__tstate);
4926 if (PyErr_Occurred()) SWIG_fail;
4927 }
4928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4929 {
4930 if (temp3)
4931 delete arg3;
4932 }
4933 {
4934 if (temp7)
4935 delete arg7;
4936 }
4937 return resultobj;
4938 fail:
4939 {
4940 if (temp3)
4941 delete arg3;
4942 }
4943 {
4944 if (temp7)
4945 delete arg7;
4946 }
4947 return NULL;
4948}
4949
4950
4951static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj;
4953 wxStaticText *result;
4954 char *kwnames[] = {
4955 NULL
4956 };
4957
4958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 result = (wxStaticText *)new wxStaticText();
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4967 return resultobj;
4968 fail:
4969 return NULL;
4970}
4971
4972
4973static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4974 PyObject *resultobj;
4975 wxStaticText *arg1 = (wxStaticText *) 0 ;
4976 wxWindow *arg2 = (wxWindow *) 0 ;
4977 int arg3 ;
4978 wxString *arg4 = 0 ;
4979 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4980 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4981 wxSize const &arg6_defvalue = wxDefaultSize ;
4982 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4983 long arg7 = (long) 0 ;
4984 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
4985 wxString *arg8 = (wxString *) &arg8_defvalue ;
4986 bool result;
4987 bool temp4 = False ;
4988 wxPoint temp5 ;
4989 wxSize temp6 ;
4990 bool temp8 = False ;
4991 PyObject * obj0 = 0 ;
4992 PyObject * obj1 = 0 ;
4993 PyObject * obj2 = 0 ;
4994 PyObject * obj3 = 0 ;
4995 PyObject * obj4 = 0 ;
4996 PyObject * obj5 = 0 ;
4997 PyObject * obj6 = 0 ;
4998 PyObject * obj7 = 0 ;
4999 char *kwnames[] = {
5000 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5001 };
5002
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5008 arg3 = (int) SWIG_AsInt(obj2);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 {
5011 arg4 = wxString_in_helper(obj3);
5012 if (arg4 == NULL) SWIG_fail;
5013 temp4 = True;
5014 }
5015 if (obj4) {
5016 {
5017 arg5 = &temp5;
5018 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5019 }
5020 }
5021 if (obj5) {
5022 {
5023 arg6 = &temp6;
5024 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5025 }
5026 }
5027 if (obj6) {
5028 arg7 = (long) SWIG_AsLong(obj6);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 }
5031 if (obj7) {
5032 {
5033 arg8 = wxString_in_helper(obj7);
5034 if (arg8 == NULL) SWIG_fail;
5035 temp8 = True;
5036 }
5037 }
5038 {
5039 PyThreadState* __tstate = wxPyBeginAllowThreads();
5040 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5041
5042 wxPyEndAllowThreads(__tstate);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 {
5046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5047 }
5048 {
5049 if (temp4)
5050 delete arg4;
5051 }
5052 {
5053 if (temp8)
5054 delete arg8;
5055 }
5056 return resultobj;
5057 fail:
5058 {
5059 if (temp4)
5060 delete arg4;
5061 }
5062 {
5063 if (temp8)
5064 delete arg8;
5065 }
5066 return NULL;
5067}
5068
5069
f20a2e1f
RD
5070static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj;
5072 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5073 wxVisualAttributes result;
5074 PyObject * obj0 = 0 ;
5075 char *kwnames[] = {
5076 (char *) "variant", NULL
5077 };
5078
5079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5080 if (obj0) {
5081 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5087
5088 wxPyEndAllowThreads(__tstate);
5089 if (PyErr_Occurred()) SWIG_fail;
5090 }
5091 {
5092 wxVisualAttributes * resultptr;
5093 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5094 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5095 }
5096 return resultobj;
5097 fail:
5098 return NULL;
5099}
5100
5101
d55e5bfc
RD
5102static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
5103 PyObject *obj;
5104 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5105 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5106 Py_INCREF(obj);
5107 return Py_BuildValue((char *)"");
5108}
5109static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj;
5111 wxWindow *arg1 = (wxWindow *) 0 ;
5112 int arg2 ;
5113 wxBitmap *arg3 = 0 ;
5114 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5115 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5116 wxSize const &arg5_defvalue = wxDefaultSize ;
5117 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5118 long arg6 = (long) 0 ;
5119 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5120 wxString *arg7 = (wxString *) &arg7_defvalue ;
5121 wxStaticBitmap *result;
5122 wxPoint temp4 ;
5123 wxSize temp5 ;
5124 bool temp7 = False ;
5125 PyObject * obj0 = 0 ;
5126 PyObject * obj1 = 0 ;
5127 PyObject * obj2 = 0 ;
5128 PyObject * obj3 = 0 ;
5129 PyObject * obj4 = 0 ;
5130 PyObject * obj5 = 0 ;
5131 PyObject * obj6 = 0 ;
5132 char *kwnames[] = {
5133 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5134 };
5135
5136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5139 arg2 = (int) SWIG_AsInt(obj1);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5142 SWIG_POINTER_EXCEPTION | 0)) == -1)
5143 SWIG_fail;
5144 if (arg3 == NULL) {
5145 PyErr_SetString(PyExc_TypeError,"null reference");
5146 SWIG_fail;
5147 }
5148 if (obj3) {
5149 {
5150 arg4 = &temp4;
5151 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5152 }
5153 }
5154 if (obj4) {
5155 {
5156 arg5 = &temp5;
5157 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5158 }
5159 }
5160 if (obj5) {
5161 arg6 = (long) SWIG_AsLong(obj5);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 if (obj6) {
5165 {
5166 arg7 = wxString_in_helper(obj6);
5167 if (arg7 == NULL) SWIG_fail;
5168 temp7 = True;
5169 }
5170 }
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5174
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5179 {
5180 if (temp7)
5181 delete arg7;
5182 }
5183 return resultobj;
5184 fail:
5185 {
5186 if (temp7)
5187 delete arg7;
5188 }
5189 return NULL;
5190}
5191
5192
5193static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5194 PyObject *resultobj;
5195 wxStaticBitmap *result;
5196 char *kwnames[] = {
5197 NULL
5198 };
5199
5200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5201 {
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (wxStaticBitmap *)new wxStaticBitmap();
5204
5205 wxPyEndAllowThreads(__tstate);
5206 if (PyErr_Occurred()) SWIG_fail;
5207 }
5208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5209 return resultobj;
5210 fail:
5211 return NULL;
5212}
5213
5214
5215static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5216 PyObject *resultobj;
5217 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5218 wxWindow *arg2 = (wxWindow *) 0 ;
5219 int arg3 ;
5220 wxBitmap *arg4 = 0 ;
5221 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5222 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5223 wxSize const &arg6_defvalue = wxDefaultSize ;
5224 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5225 long arg7 = (long) 0 ;
5226 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5227 wxString *arg8 = (wxString *) &arg8_defvalue ;
5228 bool result;
5229 wxPoint temp5 ;
5230 wxSize temp6 ;
5231 bool temp8 = False ;
5232 PyObject * obj0 = 0 ;
5233 PyObject * obj1 = 0 ;
5234 PyObject * obj2 = 0 ;
5235 PyObject * obj3 = 0 ;
5236 PyObject * obj4 = 0 ;
5237 PyObject * obj5 = 0 ;
5238 PyObject * obj6 = 0 ;
5239 PyObject * obj7 = 0 ;
5240 char *kwnames[] = {
5241 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5242 };
5243
5244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5249 arg3 = (int) SWIG_AsInt(obj2);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5252 SWIG_POINTER_EXCEPTION | 0)) == -1)
5253 SWIG_fail;
5254 if (arg4 == NULL) {
5255 PyErr_SetString(PyExc_TypeError,"null reference");
5256 SWIG_fail;
5257 }
5258 if (obj4) {
5259 {
5260 arg5 = &temp5;
5261 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5262 }
5263 }
5264 if (obj5) {
5265 {
5266 arg6 = &temp6;
5267 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5268 }
5269 }
5270 if (obj6) {
5271 arg7 = (long) SWIG_AsLong(obj6);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 if (obj7) {
5275 {
5276 arg8 = wxString_in_helper(obj7);
5277 if (arg8 == NULL) SWIG_fail;
5278 temp8 = True;
5279 }
5280 }
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 {
5289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5290 }
5291 {
5292 if (temp8)
5293 delete arg8;
5294 }
5295 return resultobj;
5296 fail:
5297 {
5298 if (temp8)
5299 delete arg8;
5300 }
5301 return NULL;
5302}
5303
5304
5305static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5306 PyObject *resultobj;
5307 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5308 wxBitmap result;
5309 PyObject * obj0 = 0 ;
5310 char *kwnames[] = {
5311 (char *) "self", NULL
5312 };
5313
5314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 result = (arg1)->GetBitmap();
5320
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 {
5325 wxBitmap * resultptr;
5326 resultptr = new wxBitmap((wxBitmap &) result);
5327 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5328 }
5329 return resultobj;
5330 fail:
5331 return NULL;
5332}
5333
5334
5335static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5336 PyObject *resultobj;
5337 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5338 wxBitmap *arg2 = 0 ;
5339 PyObject * obj0 = 0 ;
5340 PyObject * obj1 = 0 ;
5341 char *kwnames[] = {
5342 (char *) "self",(char *) "bitmap", NULL
5343 };
5344
5345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5349 SWIG_POINTER_EXCEPTION | 0)) == -1)
5350 SWIG_fail;
5351 if (arg2 == NULL) {
5352 PyErr_SetString(PyExc_TypeError,"null reference");
5353 SWIG_fail;
5354 }
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5358
5359 wxPyEndAllowThreads(__tstate);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
5362 Py_INCREF(Py_None); resultobj = Py_None;
5363 return resultobj;
5364 fail:
5365 return NULL;
5366}
5367
5368
5369static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5370 PyObject *resultobj;
5371 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5372 wxIcon *arg2 = 0 ;
5373 PyObject * obj0 = 0 ;
5374 PyObject * obj1 = 0 ;
5375 char *kwnames[] = {
5376 (char *) "self",(char *) "icon", NULL
5377 };
5378
5379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5382 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5383 SWIG_POINTER_EXCEPTION | 0)) == -1)
5384 SWIG_fail;
5385 if (arg2 == NULL) {
5386 PyErr_SetString(PyExc_TypeError,"null reference");
5387 SWIG_fail;
5388 }
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 (arg1)->SetIcon((wxIcon const &)*arg2);
5392
5393 wxPyEndAllowThreads(__tstate);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 Py_INCREF(Py_None); resultobj = Py_None;
5397 return resultobj;
5398 fail:
5399 return NULL;
5400}
5401
5402
f20a2e1f
RD
5403static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5404 PyObject *resultobj;
5405 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5406 wxVisualAttributes result;
5407 PyObject * obj0 = 0 ;
5408 char *kwnames[] = {
5409 (char *) "variant", NULL
5410 };
5411
5412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5413 if (obj0) {
5414 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 {
5418 PyThreadState* __tstate = wxPyBeginAllowThreads();
5419 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5420
5421 wxPyEndAllowThreads(__tstate);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 {
5425 wxVisualAttributes * resultptr;
5426 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5427 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5428 }
5429 return resultobj;
5430 fail:
5431 return NULL;
5432}
5433
5434
d55e5bfc
RD
5435static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
5436 PyObject *obj;
5437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5438 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5439 Py_INCREF(obj);
5440 return Py_BuildValue((char *)"");
5441}
5442static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5443 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5444 return 1;
5445}
5446
5447
5448static PyObject *_wrap_ListBoxNameStr_get() {
5449 PyObject *pyobj;
5450
5451 {
5452#if wxUSE_UNICODE
5453 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5454#else
5455 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5456#endif
5457 }
5458 return pyobj;
5459}
5460
5461
5462static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj;
5464 wxWindow *arg1 = (wxWindow *) 0 ;
5465 int arg2 ;
5466 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5467 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5468 wxSize const &arg4_defvalue = wxDefaultSize ;
5469 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5470 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5471 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5472 long arg6 = (long) 0 ;
5473 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5474 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5475 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5476 wxString *arg8 = (wxString *) &arg8_defvalue ;
5477 wxListBox *result;
5478 wxPoint temp3 ;
5479 wxSize temp4 ;
5480 bool temp5 = False ;
5481 bool temp8 = False ;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 PyObject * obj2 = 0 ;
5485 PyObject * obj3 = 0 ;
5486 PyObject * obj4 = 0 ;
5487 PyObject * obj5 = 0 ;
5488 PyObject * obj6 = 0 ;
5489 PyObject * obj7 = 0 ;
5490 char *kwnames[] = {
5491 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5492 };
5493
5494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5497 arg2 = (int) SWIG_AsInt(obj1);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 if (obj2) {
5500 {
5501 arg3 = &temp3;
5502 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5503 }
5504 }
5505 if (obj3) {
5506 {
5507 arg4 = &temp4;
5508 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5509 }
5510 }
5511 if (obj4) {
5512 {
5513 if (! PySequence_Check(obj4)) {
5514 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5515 SWIG_fail;
5516 }
5517 arg5 = new wxArrayString;
5518 temp5 = True;
5519 int i, len=PySequence_Length(obj4);
5520 for (i=0; i<len; i++) {
5521 PyObject* item = PySequence_GetItem(obj4, i);
5522#if wxUSE_UNICODE
5523 PyObject* str = PyObject_Unicode(item);
5524#else
5525 PyObject* str = PyObject_Str(item);
5526#endif
5527 if (PyErr_Occurred()) SWIG_fail;
5528 arg5->Add(Py2wxString(str));
5529 Py_DECREF(item);
5530 Py_DECREF(str);
5531 }
5532 }
5533 }
5534 if (obj5) {
5535 arg6 = (long) SWIG_AsLong(obj5);
5536 if (PyErr_Occurred()) SWIG_fail;
5537 }
5538 if (obj6) {
5539 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5540 SWIG_POINTER_EXCEPTION | 0)) == -1)
5541 SWIG_fail;
5542 if (arg7 == NULL) {
5543 PyErr_SetString(PyExc_TypeError,"null reference");
5544 SWIG_fail;
5545 }
5546 }
5547 if (obj7) {
5548 {
5549 arg8 = wxString_in_helper(obj7);
5550 if (arg8 == NULL) SWIG_fail;
5551 temp8 = True;
5552 }
5553 }
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5557
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5562 {
5563 if (temp5) delete arg5;
5564 }
5565 {
5566 if (temp8)
5567 delete arg8;
5568 }
5569 return resultobj;
5570 fail:
5571 {
5572 if (temp5) delete arg5;
5573 }
5574 {
5575 if (temp8)
5576 delete arg8;
5577 }
5578 return NULL;
5579}
5580
5581
5582static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj;
5584 wxListBox *result;
5585 char *kwnames[] = {
5586 NULL
5587 };
5588
5589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 result = (wxListBox *)new wxListBox();
5593
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5598 return resultobj;
5599 fail:
5600 return NULL;
5601}
5602
5603
5604static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj;
5606 wxListBox *arg1 = (wxListBox *) 0 ;
5607 wxWindow *arg2 = (wxWindow *) 0 ;
5608 int arg3 ;
5609 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5610 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5611 wxSize const &arg5_defvalue = wxDefaultSize ;
5612 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5613 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5614 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5615 long arg7 = (long) 0 ;
5616 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5617 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5618 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5619 wxString *arg9 = (wxString *) &arg9_defvalue ;
5620 bool result;
5621 wxPoint temp4 ;
5622 wxSize temp5 ;
5623 bool temp6 = False ;
5624 bool temp9 = False ;
5625 PyObject * obj0 = 0 ;
5626 PyObject * obj1 = 0 ;
5627 PyObject * obj2 = 0 ;
5628 PyObject * obj3 = 0 ;
5629 PyObject * obj4 = 0 ;
5630 PyObject * obj5 = 0 ;
5631 PyObject * obj6 = 0 ;
5632 PyObject * obj7 = 0 ;
5633 PyObject * obj8 = 0 ;
5634 char *kwnames[] = {
5635 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5636 };
5637
5638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5643 arg3 = (int) SWIG_AsInt(obj2);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 if (obj3) {
5646 {
5647 arg4 = &temp4;
5648 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5649 }
5650 }
5651 if (obj4) {
5652 {
5653 arg5 = &temp5;
5654 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5655 }
5656 }
5657 if (obj5) {
5658 {
5659 if (! PySequence_Check(obj5)) {
5660 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5661 SWIG_fail;
5662 }
5663 arg6 = new wxArrayString;
5664 temp6 = True;
5665 int i, len=PySequence_Length(obj5);
5666 for (i=0; i<len; i++) {
5667 PyObject* item = PySequence_GetItem(obj5, i);
5668#if wxUSE_UNICODE
5669 PyObject* str = PyObject_Unicode(item);
5670#else
5671 PyObject* str = PyObject_Str(item);
5672#endif
5673 if (PyErr_Occurred()) SWIG_fail;
5674 arg6->Add(Py2wxString(str));
5675 Py_DECREF(item);
5676 Py_DECREF(str);
5677 }
5678 }
5679 }
5680 if (obj6) {
5681 arg7 = (long) SWIG_AsLong(obj6);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 if (obj7) {
5685 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5686 SWIG_POINTER_EXCEPTION | 0)) == -1)
5687 SWIG_fail;
5688 if (arg8 == NULL) {
5689 PyErr_SetString(PyExc_TypeError,"null reference");
5690 SWIG_fail;
5691 }
5692 }
5693 if (obj8) {
5694 {
5695 arg9 = wxString_in_helper(obj8);
5696 if (arg9 == NULL) SWIG_fail;
5697 temp9 = True;
5698 }
5699 }
5700 {
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5703
5704 wxPyEndAllowThreads(__tstate);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 }
5707 {
5708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5709 }
5710 {
5711 if (temp6) delete arg6;
5712 }
5713 {
5714 if (temp9)
5715 delete arg9;
5716 }
5717 return resultobj;
5718 fail:
5719 {
5720 if (temp6) delete arg6;
5721 }
5722 {
5723 if (temp9)
5724 delete arg9;
5725 }
5726 return NULL;
5727}
5728
5729
5730static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5731 PyObject *resultobj;
5732 wxListBox *arg1 = (wxListBox *) 0 ;
5733 wxString *arg2 = 0 ;
5734 int arg3 ;
5735 PyObject *arg4 = (PyObject *) NULL ;
5736 bool temp2 = False ;
5737 PyObject * obj0 = 0 ;
5738 PyObject * obj1 = 0 ;
5739 PyObject * obj2 = 0 ;
5740 PyObject * obj3 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5748 {
5749 arg2 = wxString_in_helper(obj1);
5750 if (arg2 == NULL) SWIG_fail;
5751 temp2 = True;
5752 }
5753 arg3 = (int) SWIG_AsInt(obj2);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 if (obj3) {
5756 arg4 = obj3;
5757 }
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5761
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 Py_INCREF(Py_None); resultobj = Py_None;
5766 {
5767 if (temp2)
5768 delete arg2;
5769 }
5770 return resultobj;
5771 fail:
5772 {
5773 if (temp2)
5774 delete arg2;
5775 }
5776 return NULL;
5777}
5778
5779
5780static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5781 PyObject *resultobj;
5782 wxListBox *arg1 = (wxListBox *) 0 ;
5783 wxArrayString *arg2 = 0 ;
5784 int arg3 ;
5785 bool temp2 = False ;
5786 PyObject * obj0 = 0 ;
5787 PyObject * obj1 = 0 ;
5788 PyObject * obj2 = 0 ;
5789 char *kwnames[] = {
5790 (char *) "self",(char *) "items",(char *) "pos", NULL
5791 };
5792
5793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5796 {
5797 if (! PySequence_Check(obj1)) {
5798 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5799 SWIG_fail;
5800 }
5801 arg2 = new wxArrayString;
5802 temp2 = True;
5803 int i, len=PySequence_Length(obj1);
5804 for (i=0; i<len; i++) {
5805 PyObject* item = PySequence_GetItem(obj1, i);
5806#if wxUSE_UNICODE
5807 PyObject* str = PyObject_Unicode(item);
5808#else
5809 PyObject* str = PyObject_Str(item);
5810#endif
5811 if (PyErr_Occurred()) SWIG_fail;
5812 arg2->Add(Py2wxString(str));
5813 Py_DECREF(item);
5814 Py_DECREF(str);
5815 }
5816 }
5817 arg3 = (int) SWIG_AsInt(obj2);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5822
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 Py_INCREF(Py_None); resultobj = Py_None;
5827 {
5828 if (temp2) delete arg2;
5829 }
5830 return resultobj;
5831 fail:
5832 {
5833 if (temp2) delete arg2;
5834 }
5835 return NULL;
5836}
5837
5838
5839static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj;
5841 wxListBox *arg1 = (wxListBox *) 0 ;
5842 wxArrayString *arg2 = 0 ;
5843 bool temp2 = False ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 char *kwnames[] = {
5847 (char *) "self",(char *) "items", NULL
5848 };
5849
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5853 {
5854 if (! PySequence_Check(obj1)) {
5855 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5856 SWIG_fail;
5857 }
5858 arg2 = new wxArrayString;
5859 temp2 = True;
5860 int i, len=PySequence_Length(obj1);
5861 for (i=0; i<len; i++) {
5862 PyObject* item = PySequence_GetItem(obj1, i);
5863#if wxUSE_UNICODE
5864 PyObject* str = PyObject_Unicode(item);
5865#else
5866 PyObject* str = PyObject_Str(item);
5867#endif
5868 if (PyErr_Occurred()) SWIG_fail;
5869 arg2->Add(Py2wxString(str));
5870 Py_DECREF(item);
5871 Py_DECREF(str);
5872 }
5873 }
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 (arg1)->Set((wxArrayString const &)*arg2);
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 Py_INCREF(Py_None); resultobj = Py_None;
5882 {
5883 if (temp2) delete arg2;
5884 }
5885 return resultobj;
5886 fail:
5887 {
5888 if (temp2) delete arg2;
5889 }
5890 return NULL;
5891}
5892
5893
5894static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxListBox *arg1 = (wxListBox *) 0 ;
5897 int arg2 ;
5898 bool result;
5899 PyObject * obj0 = 0 ;
5900 PyObject * obj1 = 0 ;
5901 char *kwnames[] = {
5902 (char *) "self",(char *) "n", NULL
5903 };
5904
5905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
5906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5908 arg2 = (int) SWIG_AsInt(obj1);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
5913
5914 wxPyEndAllowThreads(__tstate);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 {
5918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5919 }
5920 return resultobj;
5921 fail:
5922 return NULL;
5923}
5924
5925
5926static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject *resultobj;
5928 wxListBox *arg1 = (wxListBox *) 0 ;
5929 int arg2 ;
5930 bool arg3 = (bool) True ;
5931 PyObject * obj0 = 0 ;
5932 PyObject * obj1 = 0 ;
5933 PyObject * obj2 = 0 ;
5934 char *kwnames[] = {
5935 (char *) "self",(char *) "n",(char *) "select", NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
5939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5941 arg2 = (int) SWIG_AsInt(obj1);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 if (obj2) {
5944 arg3 = (bool) SWIG_AsBool(obj2);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 (arg1)->SetSelection(arg2,arg3);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 Py_INCREF(Py_None); resultobj = Py_None;
5955 return resultobj;
5956 fail:
5957 return NULL;
5958}
5959
5960
5961static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxListBox *arg1 = (wxListBox *) 0 ;
5964 int arg2 ;
5965 PyObject * obj0 = 0 ;
5966 PyObject * obj1 = 0 ;
5967 char *kwnames[] = {
5968 (char *) "self",(char *) "n", NULL
5969 };
5970
5971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
5972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5974 arg2 = (int) SWIG_AsInt(obj1);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 {
5977 PyThreadState* __tstate = wxPyBeginAllowThreads();
5978 (arg1)->Select(arg2);
5979
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 Py_INCREF(Py_None); resultobj = Py_None;
5984 return resultobj;
5985 fail:
5986 return NULL;
5987}
5988
5989
5990static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5991 PyObject *resultobj;
5992 wxListBox *arg1 = (wxListBox *) 0 ;
5993 int arg2 ;
5994 PyObject * obj0 = 0 ;
5995 PyObject * obj1 = 0 ;
5996 char *kwnames[] = {
5997 (char *) "self",(char *) "n", NULL
5998 };
5999
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6003 arg2 = (int) SWIG_AsInt(obj1);
6004 if (PyErr_Occurred()) SWIG_fail;
6005 {
6006 PyThreadState* __tstate = wxPyBeginAllowThreads();
6007 (arg1)->Deselect(arg2);
6008
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 Py_INCREF(Py_None); resultobj = Py_None;
6013 return resultobj;
6014 fail:
6015 return NULL;
6016}
6017
6018
6019static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
6020 PyObject *resultobj;
6021 wxListBox *arg1 = (wxListBox *) 0 ;
6022 int arg2 = (int) -1 ;
6023 PyObject * obj0 = 0 ;
6024 PyObject * obj1 = 0 ;
6025 char *kwnames[] = {
6026 (char *) "self",(char *) "itemToLeaveSelected", NULL
6027 };
6028
6029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6032 if (obj1) {
6033 arg2 = (int) SWIG_AsInt(obj1);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 (arg1)->DeselectAll(arg2);
6039
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 Py_INCREF(Py_None); resultobj = Py_None;
6044 return resultobj;
6045 fail:
6046 return NULL;
6047}
6048
6049
6050static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6051 PyObject *resultobj;
6052 wxListBox *arg1 = (wxListBox *) 0 ;
6053 wxString *arg2 = 0 ;
6054 bool arg3 = (bool) True ;
6055 bool result;
6056 bool temp2 = False ;
6057 PyObject * obj0 = 0 ;
6058 PyObject * obj1 = 0 ;
6059 PyObject * obj2 = 0 ;
6060 char *kwnames[] = {
6061 (char *) "self",(char *) "s",(char *) "select", NULL
6062 };
6063
6064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6067 {
6068 arg2 = wxString_in_helper(obj1);
6069 if (arg2 == NULL) SWIG_fail;
6070 temp2 = True;
6071 }
6072 if (obj2) {
6073 arg3 = (bool) SWIG_AsBool(obj2);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 {
6077 PyThreadState* __tstate = wxPyBeginAllowThreads();
6078 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6079
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 }
6083 {
6084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6085 }
6086 {
6087 if (temp2)
6088 delete arg2;
6089 }
6090 return resultobj;
6091 fail:
6092 {
6093 if (temp2)
6094 delete arg2;
6095 }
6096 return NULL;
6097}
6098
6099
6100static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj;
6102 wxListBox *arg1 = (wxListBox *) 0 ;
6103 PyObject *result;
6104 PyObject * obj0 = 0 ;
6105 char *kwnames[] = {
6106 (char *) "self", NULL
6107 };
6108
6109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 result = (PyObject *)wxListBox_GetSelections(arg1);
6115
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 resultobj = result;
6120 return resultobj;
6121 fail:
6122 return NULL;
6123}
6124
6125
6126static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6127 PyObject *resultobj;
6128 wxListBox *arg1 = (wxListBox *) 0 ;
6129 int arg2 ;
6130 PyObject * obj0 = 0 ;
6131 PyObject * obj1 = 0 ;
6132 char *kwnames[] = {
6133 (char *) "self",(char *) "n", NULL
6134 };
6135
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6139 arg2 = (int) SWIG_AsInt(obj1);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 (arg1)->SetFirstItem(arg2);
6144
6145 wxPyEndAllowThreads(__tstate);
6146 if (PyErr_Occurred()) SWIG_fail;
6147 }
6148 Py_INCREF(Py_None); resultobj = Py_None;
6149 return resultobj;
6150 fail:
6151 return NULL;
6152}
6153
6154
6155static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
6156 PyObject *resultobj;
6157 wxListBox *arg1 = (wxListBox *) 0 ;
6158 wxString *arg2 = 0 ;
6159 bool temp2 = False ;
6160 PyObject * obj0 = 0 ;
6161 PyObject * obj1 = 0 ;
6162 char *kwnames[] = {
6163 (char *) "self",(char *) "s", NULL
6164 };
6165
6166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6169 {
6170 arg2 = wxString_in_helper(obj1);
6171 if (arg2 == NULL) SWIG_fail;
6172 temp2 = True;
6173 }
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 (arg1)->SetFirstItem((wxString const &)*arg2);
6177
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 Py_INCREF(Py_None); resultobj = Py_None;
6182 {
6183 if (temp2)
6184 delete arg2;
6185 }
6186 return resultobj;
6187 fail:
6188 {
6189 if (temp2)
6190 delete arg2;
6191 }
6192 return NULL;
6193}
6194
6195
6196static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6197 PyObject *resultobj;
6198 wxListBox *arg1 = (wxListBox *) 0 ;
6199 int arg2 ;
6200 PyObject * obj0 = 0 ;
6201 PyObject * obj1 = 0 ;
6202 char *kwnames[] = {
6203 (char *) "self",(char *) "n", NULL
6204 };
6205
6206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6209 arg2 = (int) SWIG_AsInt(obj1);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 {
6212 PyThreadState* __tstate = wxPyBeginAllowThreads();
6213 (arg1)->EnsureVisible(arg2);
6214
6215 wxPyEndAllowThreads(__tstate);
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 Py_INCREF(Py_None); resultobj = Py_None;
6219 return resultobj;
6220 fail:
6221 return NULL;
6222}
6223
6224
6225static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxListBox *arg1 = (wxListBox *) 0 ;
6228 wxString *arg2 = 0 ;
6229 bool temp2 = False ;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self",(char *) "s", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6239 {
6240 arg2 = wxString_in_helper(obj1);
6241 if (arg2 == NULL) SWIG_fail;
6242 temp2 = True;
6243 }
6244 {
6245 PyThreadState* __tstate = wxPyBeginAllowThreads();
6246 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6247
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 Py_INCREF(Py_None); resultobj = Py_None;
6252 {
6253 if (temp2)
6254 delete arg2;
6255 }
6256 return resultobj;
6257 fail:
6258 {
6259 if (temp2)
6260 delete arg2;
6261 }
6262 return NULL;
6263}
6264
6265
6266static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
6267 PyObject *resultobj;
6268 wxListBox *arg1 = (wxListBox *) 0 ;
6269 bool result;
6270 PyObject * obj0 = 0 ;
6271 char *kwnames[] = {
6272 (char *) "self", NULL
6273 };
6274
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 result = (bool)((wxListBox const *)arg1)->IsSorted();
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 {
6286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6287 }
6288 return resultobj;
6289 fail:
6290 return NULL;
6291}
6292
6293
6294static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6295 PyObject *resultobj;
6296 wxListBox *arg1 = (wxListBox *) 0 ;
6297 int arg2 ;
6298 wxColour *arg3 = 0 ;
6299 wxColour temp3 ;
6300 PyObject * obj0 = 0 ;
6301 PyObject * obj1 = 0 ;
6302 PyObject * obj2 = 0 ;
6303 char *kwnames[] = {
6304 (char *) "self",(char *) "item",(char *) "c", NULL
6305 };
6306
6307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6310 arg2 = (int) SWIG_AsInt(obj1);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 {
6313 arg3 = &temp3;
6314 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6315 }
6316 {
6317 PyThreadState* __tstate = wxPyBeginAllowThreads();
6318 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6319
6320 wxPyEndAllowThreads(__tstate);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 Py_INCREF(Py_None); resultobj = Py_None;
6324 return resultobj;
6325 fail:
6326 return NULL;
6327}
6328
6329
6330static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6331 PyObject *resultobj;
6332 wxListBox *arg1 = (wxListBox *) 0 ;
6333 int arg2 ;
6334 wxColour *arg3 = 0 ;
6335 wxColour temp3 ;
6336 PyObject * obj0 = 0 ;
6337 PyObject * obj1 = 0 ;
6338 PyObject * obj2 = 0 ;
6339 char *kwnames[] = {
6340 (char *) "self",(char *) "item",(char *) "c", NULL
6341 };
6342
6343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6346 arg2 = (int) SWIG_AsInt(obj1);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 {
6349 arg3 = &temp3;
6350 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6351 }
6352 {
6353 PyThreadState* __tstate = wxPyBeginAllowThreads();
6354 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6355
6356 wxPyEndAllowThreads(__tstate);
6357 if (PyErr_Occurred()) SWIG_fail;
6358 }
6359 Py_INCREF(Py_None); resultobj = Py_None;
6360 return resultobj;
6361 fail:
6362 return NULL;
6363}
6364
6365
6366static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6367 PyObject *resultobj;
6368 wxListBox *arg1 = (wxListBox *) 0 ;
6369 int arg2 ;
6370 wxFont *arg3 = 0 ;
6371 PyObject * obj0 = 0 ;
6372 PyObject * obj1 = 0 ;
6373 PyObject * obj2 = 0 ;
6374 char *kwnames[] = {
6375 (char *) "self",(char *) "item",(char *) "f", NULL
6376 };
6377
6378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6381 arg2 = (int) SWIG_AsInt(obj1);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6384 SWIG_POINTER_EXCEPTION | 0)) == -1)
6385 SWIG_fail;
6386 if (arg3 == NULL) {
6387 PyErr_SetString(PyExc_TypeError,"null reference");
6388 SWIG_fail;
6389 }
6390 {
6391 PyThreadState* __tstate = wxPyBeginAllowThreads();
6392 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6393
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 Py_INCREF(Py_None); resultobj = Py_None;
6398 return resultobj;
6399 fail:
6400 return NULL;
6401}
6402
6403
6404static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6405 PyObject *resultobj;
6406 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6407 wxVisualAttributes result;
6408 PyObject * obj0 = 0 ;
6409 char *kwnames[] = {
6410 (char *) "variant", NULL
6411 };
6412
6413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6414 if (obj0) {
6415 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 {
6426 wxVisualAttributes * resultptr;
6427 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6429 }
6430 return resultobj;
6431 fail:
6432 return NULL;
6433}
6434
6435
6436static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
6437 PyObject *obj;
6438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6439 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6440 Py_INCREF(obj);
6441 return Py_BuildValue((char *)"");
6442}
6443static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxWindow *arg1 = (wxWindow *) 0 ;
6446 int arg2 ;
6447 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6448 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6449 wxSize const &arg4_defvalue = wxDefaultSize ;
6450 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6451 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6452 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6453 long arg6 = (long) 0 ;
6454 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6455 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6456 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6457 wxString *arg8 = (wxString *) &arg8_defvalue ;
6458 wxCheckListBox *result;
6459 wxPoint temp3 ;
6460 wxSize temp4 ;
6461 bool temp5 = False ;
6462 bool temp8 = False ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 PyObject * obj2 = 0 ;
6466 PyObject * obj3 = 0 ;
6467 PyObject * obj4 = 0 ;
6468 PyObject * obj5 = 0 ;
6469 PyObject * obj6 = 0 ;
6470 PyObject * obj7 = 0 ;
6471 char *kwnames[] = {
6472 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6473 };
6474
6475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6478 arg2 = (int) SWIG_AsInt(obj1);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 if (obj2) {
6481 {
6482 arg3 = &temp3;
6483 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6484 }
6485 }
6486 if (obj3) {
6487 {
6488 arg4 = &temp4;
6489 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6490 }
6491 }
6492 if (obj4) {
6493 {
6494 if (! PySequence_Check(obj4)) {
6495 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6496 SWIG_fail;
6497 }
6498 arg5 = new wxArrayString;
6499 temp5 = True;
6500 int i, len=PySequence_Length(obj4);
6501 for (i=0; i<len; i++) {
6502 PyObject* item = PySequence_GetItem(obj4, i);
6503#if wxUSE_UNICODE
6504 PyObject* str = PyObject_Unicode(item);
6505#else
6506 PyObject* str = PyObject_Str(item);
6507#endif
6508 if (PyErr_Occurred()) SWIG_fail;
6509 arg5->Add(Py2wxString(str));
6510 Py_DECREF(item);
6511 Py_DECREF(str);
6512 }
6513 }
6514 }
6515 if (obj5) {
6516 arg6 = (long) SWIG_AsLong(obj5);
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 if (obj6) {
6520 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6521 SWIG_POINTER_EXCEPTION | 0)) == -1)
6522 SWIG_fail;
6523 if (arg7 == NULL) {
6524 PyErr_SetString(PyExc_TypeError,"null reference");
6525 SWIG_fail;
6526 }
6527 }
6528 if (obj7) {
6529 {
6530 arg8 = wxString_in_helper(obj7);
6531 if (arg8 == NULL) SWIG_fail;
6532 temp8 = True;
6533 }
6534 }
6535 {
6536 PyThreadState* __tstate = wxPyBeginAllowThreads();
6537 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6538
6539 wxPyEndAllowThreads(__tstate);
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6543 {
6544 if (temp5) delete arg5;
6545 }
6546 {
6547 if (temp8)
6548 delete arg8;
6549 }
6550 return resultobj;
6551 fail:
6552 {
6553 if (temp5) delete arg5;
6554 }
6555 {
6556 if (temp8)
6557 delete arg8;
6558 }
6559 return NULL;
6560}
6561
6562
6563static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj;
6565 wxCheckListBox *result;
6566 char *kwnames[] = {
6567 NULL
6568 };
6569
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 result = (wxCheckListBox *)new wxCheckListBox();
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6579 return resultobj;
6580 fail:
6581 return NULL;
6582}
6583
6584
6585static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6586 PyObject *resultobj;
6587 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6588 wxWindow *arg2 = (wxWindow *) 0 ;
6589 int arg3 ;
6590 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6591 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6592 wxSize const &arg5_defvalue = wxDefaultSize ;
6593 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6594 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6595 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6596 long arg7 = (long) 0 ;
6597 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6598 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6599 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6600 wxString *arg9 = (wxString *) &arg9_defvalue ;
6601 bool result;
6602 wxPoint temp4 ;
6603 wxSize temp5 ;
6604 bool temp6 = False ;
6605 bool temp9 = False ;
6606 PyObject * obj0 = 0 ;
6607 PyObject * obj1 = 0 ;
6608 PyObject * obj2 = 0 ;
6609 PyObject * obj3 = 0 ;
6610 PyObject * obj4 = 0 ;
6611 PyObject * obj5 = 0 ;
6612 PyObject * obj6 = 0 ;
6613 PyObject * obj7 = 0 ;
6614 PyObject * obj8 = 0 ;
6615 char *kwnames[] = {
6616 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6617 };
6618
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6624 arg3 = (int) SWIG_AsInt(obj2);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 if (obj3) {
6627 {
6628 arg4 = &temp4;
6629 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6630 }
6631 }
6632 if (obj4) {
6633 {
6634 arg5 = &temp5;
6635 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6636 }
6637 }
6638 if (obj5) {
6639 {
6640 if (! PySequence_Check(obj5)) {
6641 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6642 SWIG_fail;
6643 }
6644 arg6 = new wxArrayString;
6645 temp6 = True;
6646 int i, len=PySequence_Length(obj5);
6647 for (i=0; i<len; i++) {
6648 PyObject* item = PySequence_GetItem(obj5, i);
6649#if wxUSE_UNICODE
6650 PyObject* str = PyObject_Unicode(item);
6651#else
6652 PyObject* str = PyObject_Str(item);
6653#endif
6654 if (PyErr_Occurred()) SWIG_fail;
6655 arg6->Add(Py2wxString(str));
6656 Py_DECREF(item);
6657 Py_DECREF(str);
6658 }
6659 }
6660 }
6661 if (obj6) {
6662 arg7 = (long) SWIG_AsLong(obj6);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 if (obj7) {
6666 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6667 SWIG_POINTER_EXCEPTION | 0)) == -1)
6668 SWIG_fail;
6669 if (arg8 == NULL) {
6670 PyErr_SetString(PyExc_TypeError,"null reference");
6671 SWIG_fail;
6672 }
6673 }
6674 if (obj8) {
6675 {
6676 arg9 = wxString_in_helper(obj8);
6677 if (arg9 == NULL) SWIG_fail;
6678 temp9 = True;
6679 }
6680 }
6681 {
6682 PyThreadState* __tstate = wxPyBeginAllowThreads();
6683 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6684
6685 wxPyEndAllowThreads(__tstate);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 {
6689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6690 }
6691 {
6692 if (temp6) delete arg6;
6693 }
6694 {
6695 if (temp9)
6696 delete arg9;
6697 }
6698 return resultobj;
6699 fail:
6700 {
6701 if (temp6) delete arg6;
6702 }
6703 {
6704 if (temp9)
6705 delete arg9;
6706 }
6707 return NULL;
6708}
6709
6710
6711static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6712 PyObject *resultobj;
6713 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6714 int arg2 ;
6715 bool result;
6716 PyObject * obj0 = 0 ;
6717 PyObject * obj1 = 0 ;
6718 char *kwnames[] = {
6719 (char *) "self",(char *) "index", NULL
6720 };
6721
6722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6725 arg2 = (int) SWIG_AsInt(obj1);
6726 if (PyErr_Occurred()) SWIG_fail;
6727 {
6728 PyThreadState* __tstate = wxPyBeginAllowThreads();
6729 result = (bool)(arg1)->IsChecked(arg2);
6730
6731 wxPyEndAllowThreads(__tstate);
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 {
6735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6736 }
6737 return resultobj;
6738 fail:
6739 return NULL;
6740}
6741
6742
6743static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj;
6745 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6746 int arg2 ;
6747 int arg3 = (int) True ;
6748 PyObject * obj0 = 0 ;
6749 PyObject * obj1 = 0 ;
6750 PyObject * obj2 = 0 ;
6751 char *kwnames[] = {
6752 (char *) "self",(char *) "index",(char *) "check", NULL
6753 };
6754
6755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6758 arg2 = (int) SWIG_AsInt(obj1);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 if (obj2) {
6761 arg3 = (int) SWIG_AsInt(obj2);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 {
6765 PyThreadState* __tstate = wxPyBeginAllowThreads();
6766 (arg1)->Check(arg2,arg3);
6767
6768 wxPyEndAllowThreads(__tstate);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 Py_INCREF(Py_None); resultobj = Py_None;
6772 return resultobj;
6773 fail:
6774 return NULL;
6775}
6776
6777
6778static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6779 PyObject *resultobj;
6780 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6781 wxPoint *arg2 = 0 ;
6782 int result;
6783 wxPoint temp2 ;
6784 PyObject * obj0 = 0 ;
6785 PyObject * obj1 = 0 ;
6786 char *kwnames[] = {
6787 (char *) "self",(char *) "pt", NULL
6788 };
6789
6790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6793 {
6794 arg2 = &temp2;
6795 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6796 }
6797 {
6798 PyThreadState* __tstate = wxPyBeginAllowThreads();
6799 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6800
6801 wxPyEndAllowThreads(__tstate);
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 resultobj = SWIG_FromInt((int)result);
6805 return resultobj;
6806 fail:
6807 return NULL;
6808}
6809
6810
6811static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6812 PyObject *resultobj;
6813 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6814 int arg2 ;
6815 int arg3 ;
6816 int result;
6817 PyObject * obj0 = 0 ;
6818 PyObject * obj1 = 0 ;
6819 PyObject * obj2 = 0 ;
6820 char *kwnames[] = {
6821 (char *) "self",(char *) "x",(char *) "y", NULL
6822 };
6823
6824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6827 arg2 = (int) SWIG_AsInt(obj1);
6828 if (PyErr_Occurred()) SWIG_fail;
6829 arg3 = (int) SWIG_AsInt(obj2);
6830 if (PyErr_Occurred()) SWIG_fail;
6831 {
6832 PyThreadState* __tstate = wxPyBeginAllowThreads();
6833 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6834
6835 wxPyEndAllowThreads(__tstate);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 }
6838 resultobj = SWIG_FromInt((int)result);
6839 return resultobj;
6840 fail:
6841 return NULL;
6842}
6843
6844
6845static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6846 PyObject *obj;
6847 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6848 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6849 Py_INCREF(obj);
6850 return Py_BuildValue((char *)"");
6851}
6852static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6853 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6854 return 1;
6855}
6856
6857
6858static PyObject *_wrap_TextCtrlNameStr_get() {
6859 PyObject *pyobj;
6860
6861 {
6862#if wxUSE_UNICODE
6863 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6864#else
6865 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6866#endif
6867 }
6868 return pyobj;
6869}
6870
6871
6872static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) {
6873 PyObject *resultobj;
6874 wxTextAttr *result;
6875
6876 if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail;
6877 {
6878 PyThreadState* __tstate = wxPyBeginAllowThreads();
6879 result = (wxTextAttr *)new wxTextAttr();
6880
6881 wxPyEndAllowThreads(__tstate);
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6885 return resultobj;
6886 fail:
6887 return NULL;
6888}
6889
6890
6891static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) {
6892 PyObject *resultobj;
6893 wxColour *arg1 = 0 ;
6894 wxColour const &arg2_defvalue = wxNullColour ;
6895 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6896 wxFont const &arg3_defvalue = wxNullFont ;
6897 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6898 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6899 wxTextAttr *result;
6900 wxColour temp1 ;
6901 wxColour temp2 ;
6902 PyObject * obj0 = 0 ;
6903 PyObject * obj1 = 0 ;
6904 PyObject * obj2 = 0 ;
6905 PyObject * obj3 = 0 ;
6906
6907 if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail;
6908 {
6909 arg1 = &temp1;
6910 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6911 }
6912 if (obj1) {
6913 {
6914 arg2 = &temp2;
6915 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6916 }
6917 }
6918 if (obj2) {
6919 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6920 SWIG_POINTER_EXCEPTION | 0)) == -1)
6921 SWIG_fail;
6922 if (arg3 == NULL) {
6923 PyErr_SetString(PyExc_TypeError,"null reference");
6924 SWIG_fail;
6925 }
6926 }
6927 if (obj3) {
6928 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
6929 if (PyErr_Occurred()) SWIG_fail;
6930 }
6931 {
6932 PyThreadState* __tstate = wxPyBeginAllowThreads();
6933 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
6934
6935 wxPyEndAllowThreads(__tstate);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
6939 return resultobj;
6940 fail:
6941 return NULL;
6942}
6943
6944
6945static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) {
6946 int argc;
6947 PyObject *argv[5];
6948 int ii;
6949
6950 argc = PyObject_Length(args);
6951 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
6952 argv[ii] = PyTuple_GetItem(args,ii);
6953 }
6954 if (argc == 0) {
6955 return _wrap_new_TextAttr__SWIG_0(self,args);
6956 }
6957 if ((argc >= 1) && (argc <= 4)) {
6958 int _v;
6959 {
6960 _v = wxColour_typecheck(argv[0]);
6961 }
6962 if (_v) {
6963 if (argc <= 1) {
6964 return _wrap_new_TextAttr__SWIG_1(self,args);
6965 }
6966 {
6967 _v = wxColour_typecheck(argv[1]);
6968 }
6969 if (_v) {
6970 if (argc <= 2) {
6971 return _wrap_new_TextAttr__SWIG_1(self,args);
6972 }
6973 {
6974 void *ptr;
6975 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) {
6976 _v = 0;
6977 PyErr_Clear();
6978 } else {
6979 _v = 1;
6980 }
6981 }
6982 if (_v) {
6983 if (argc <= 3) {
6984 return _wrap_new_TextAttr__SWIG_1(self,args);
6985 }
6986 _v = SWIG_CheckInt(argv[3]);
6987 if (_v) {
6988 return _wrap_new_TextAttr__SWIG_1(self,args);
6989 }
6990 }
6991 }
6992 }
6993 }
6994
6995 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'");
6996 return NULL;
6997}
6998
6999
7000static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj;
7002 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7003 PyObject * obj0 = 0 ;
7004 char *kwnames[] = {
7005 (char *) "self", NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7011 {
7012 PyThreadState* __tstate = wxPyBeginAllowThreads();
7013 delete arg1;
7014
7015 wxPyEndAllowThreads(__tstate);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 Py_INCREF(Py_None); resultobj = Py_None;
7019 return resultobj;
7020 fail:
7021 return NULL;
7022}
7023
7024
7025static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
7026 PyObject *resultobj;
7027 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7028 PyObject * obj0 = 0 ;
7029 char *kwnames[] = {
7030 (char *) "self", NULL
7031 };
7032
7033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7036 {
7037 PyThreadState* __tstate = wxPyBeginAllowThreads();
7038 (arg1)->Init();
7039
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 Py_INCREF(Py_None); resultobj = Py_None;
7044 return resultobj;
7045 fail:
7046 return NULL;
7047}
7048
7049
7050static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7051 PyObject *resultobj;
7052 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7053 wxColour *arg2 = 0 ;
7054 wxColour temp2 ;
7055 PyObject * obj0 = 0 ;
7056 PyObject * obj1 = 0 ;
7057 char *kwnames[] = {
7058 (char *) "self",(char *) "colText", NULL
7059 };
7060
7061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7064 {
7065 arg2 = &temp2;
7066 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7067 }
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 (arg1)->SetTextColour((wxColour const &)*arg2);
7071
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 Py_INCREF(Py_None); resultobj = Py_None;
7076 return resultobj;
7077 fail:
7078 return NULL;
7079}
7080
7081
7082static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7083 PyObject *resultobj;
7084 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7085 wxColour *arg2 = 0 ;
7086 wxColour temp2 ;
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 char *kwnames[] = {
7090 (char *) "self",(char *) "colBack", NULL
7091 };
7092
7093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7096 {
7097 arg2 = &temp2;
7098 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7099 }
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7103
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 Py_INCREF(Py_None); resultobj = Py_None;
7108 return resultobj;
7109 fail:
7110 return NULL;
7111}
7112
7113
7114static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7117 wxFont *arg2 = 0 ;
7118 long arg3 = (long) wxTEXT_ATTR_FONT ;
7119 PyObject * obj0 = 0 ;
7120 PyObject * obj1 = 0 ;
7121 PyObject * obj2 = 0 ;
7122 char *kwnames[] = {
7123 (char *) "self",(char *) "font",(char *) "flags", NULL
7124 };
7125
7126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7129 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7130 SWIG_POINTER_EXCEPTION | 0)) == -1)
7131 SWIG_fail;
7132 if (arg2 == NULL) {
7133 PyErr_SetString(PyExc_TypeError,"null reference");
7134 SWIG_fail;
7135 }
7136 if (obj2) {
7137 arg3 = (long) SWIG_AsLong(obj2);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7143
7144 wxPyEndAllowThreads(__tstate);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 Py_INCREF(Py_None); resultobj = Py_None;
7148 return resultobj;
7149 fail:
7150 return NULL;
7151}
7152
7153
7154static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7155 PyObject *resultobj;
7156 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7157 int arg2 ;
7158 PyObject * obj0 = 0 ;
7159 PyObject * obj1 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "self",(char *) "alignment", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7167 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
7168 if (PyErr_Occurred()) SWIG_fail;
7169 {
7170 PyThreadState* __tstate = wxPyBeginAllowThreads();
7171 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7172
7173 wxPyEndAllowThreads(__tstate);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 Py_INCREF(Py_None); resultobj = Py_None;
7177 return resultobj;
7178 fail:
7179 return NULL;
7180}
7181
7182
7183static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7186 wxArrayInt *arg2 = 0 ;
7187 bool temp2 = False ;
7188 PyObject * obj0 = 0 ;
7189 PyObject * obj1 = 0 ;
7190 char *kwnames[] = {
7191 (char *) "self",(char *) "tabs", NULL
7192 };
7193
7194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7197 {
7198 if (! PySequence_Check(obj1)) {
7199 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7200 SWIG_fail;
7201 }
7202 arg2 = new wxArrayInt;
7203 temp2 = True;
7204 int i, len=PySequence_Length(obj1);
7205 for (i=0; i<len; i++) {
7206 PyObject* item = PySequence_GetItem(obj1, i);
7207 PyObject* number = PyNumber_Int(item);
7208 arg2->Add(PyInt_AS_LONG(number));
7209 Py_DECREF(item);
7210 Py_DECREF(number);
7211 }
7212 }
7213 {
7214 PyThreadState* __tstate = wxPyBeginAllowThreads();
7215 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7216
7217 wxPyEndAllowThreads(__tstate);
7218 if (PyErr_Occurred()) SWIG_fail;
7219 }
7220 Py_INCREF(Py_None); resultobj = Py_None;
7221 {
7222 if (temp2) delete arg2;
7223 }
7224 return resultobj;
7225 fail:
7226 {
7227 if (temp2) delete arg2;
7228 }
7229 return NULL;
7230}
7231
7232
7233static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7234 PyObject *resultobj;
7235 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7236 int arg2 ;
7237 PyObject * obj0 = 0 ;
7238 PyObject * obj1 = 0 ;
7239 char *kwnames[] = {
7240 (char *) "self",(char *) "indent", NULL
7241 };
7242
7243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail;
7244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7246 arg2 = (int) SWIG_AsInt(obj1);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 {
7249 PyThreadState* __tstate = wxPyBeginAllowThreads();
7250 (arg1)->SetLeftIndent(arg2);
7251
7252 wxPyEndAllowThreads(__tstate);
7253 if (PyErr_Occurred()) SWIG_fail;
7254 }
7255 Py_INCREF(Py_None); resultobj = Py_None;
7256 return resultobj;
7257 fail:
7258 return NULL;
7259}
7260
7261
7262static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7263 PyObject *resultobj;
7264 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7265 int arg2 ;
7266 PyObject * obj0 = 0 ;
7267 PyObject * obj1 = 0 ;
7268 char *kwnames[] = {
7269 (char *) "self",(char *) "indent", NULL
7270 };
7271
7272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7275 arg2 = (int) SWIG_AsInt(obj1);
7276 if (PyErr_Occurred()) SWIG_fail;
7277 {
7278 PyThreadState* __tstate = wxPyBeginAllowThreads();
7279 (arg1)->SetRightIndent(arg2);
7280
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 Py_INCREF(Py_None); resultobj = Py_None;
7285 return resultobj;
7286 fail:
7287 return NULL;
7288}
7289
7290
7291static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj;
7293 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7294 long arg2 ;
7295 PyObject * obj0 = 0 ;
7296 PyObject * obj1 = 0 ;
7297 char *kwnames[] = {
7298 (char *) "self",(char *) "flags", NULL
7299 };
7300
7301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7304 arg2 = (long) SWIG_AsLong(obj1);
7305 if (PyErr_Occurred()) SWIG_fail;
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 (arg1)->SetFlags(arg2);
7309
7310 wxPyEndAllowThreads(__tstate);
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 Py_INCREF(Py_None); resultobj = Py_None;
7314 return resultobj;
7315 fail:
7316 return NULL;
7317}
7318
7319
7320static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7321 PyObject *resultobj;
7322 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7323 bool result;
7324 PyObject * obj0 = 0 ;
7325 char *kwnames[] = {
7326 (char *) "self", NULL
7327 };
7328
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 {
7340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7341 }
7342 return resultobj;
7343 fail:
7344 return NULL;
7345}
7346
7347
7348static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7349 PyObject *resultobj;
7350 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7351 bool result;
7352 PyObject * obj0 = 0 ;
7353 char *kwnames[] = {
7354 (char *) "self", NULL
7355 };
7356
7357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7360 {
7361 PyThreadState* __tstate = wxPyBeginAllowThreads();
7362 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7363
7364 wxPyEndAllowThreads(__tstate);
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 {
7368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7369 }
7370 return resultobj;
7371 fail:
7372 return NULL;
7373}
7374
7375
7376static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7377 PyObject *resultobj;
7378 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7379 bool result;
7380 PyObject * obj0 = 0 ;
7381 char *kwnames[] = {
7382 (char *) "self", NULL
7383 };
7384
7385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7388 {
7389 PyThreadState* __tstate = wxPyBeginAllowThreads();
7390 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7391
7392 wxPyEndAllowThreads(__tstate);
7393 if (PyErr_Occurred()) SWIG_fail;
7394 }
7395 {
7396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7397 }
7398 return resultobj;
7399 fail:
7400 return NULL;
7401}
7402
7403
7404static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7405 PyObject *resultobj;
7406 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7407 bool result;
7408 PyObject * obj0 = 0 ;
7409 char *kwnames[] = {
7410 (char *) "self", NULL
7411 };
7412
7413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7416 {
7417 PyThreadState* __tstate = wxPyBeginAllowThreads();
7418 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7419
7420 wxPyEndAllowThreads(__tstate);
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 {
7424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7425 }
7426 return resultobj;
7427 fail:
7428 return NULL;
7429}
7430
7431
7432static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj;
7434 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7435 bool result;
7436 PyObject * obj0 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "self", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7447
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) SWIG_fail;
7450 }
7451 {
7452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7453 }
7454 return resultobj;
7455 fail:
7456 return NULL;
7457}
7458
7459
7460static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj;
7462 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7463 bool result;
7464 PyObject * obj0 = 0 ;
7465 char *kwnames[] = {
7466 (char *) "self", NULL
7467 };
7468
7469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7472 {
7473 PyThreadState* __tstate = wxPyBeginAllowThreads();
7474 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7475
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 {
7480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7481 }
7482 return resultobj;
7483 fail:
7484 return NULL;
7485}
7486
7487
7488static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7489 PyObject *resultobj;
7490 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7491 bool result;
7492 PyObject * obj0 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "self", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7500 {
7501 PyThreadState* __tstate = wxPyBeginAllowThreads();
7502 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7503
7504 wxPyEndAllowThreads(__tstate);
7505 if (PyErr_Occurred()) SWIG_fail;
7506 }
7507 {
7508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7509 }
7510 return resultobj;
7511 fail:
7512 return NULL;
7513}
7514
7515
7516static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7517 PyObject *resultobj;
7518 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7519 long arg2 ;
7520 bool result;
7521 PyObject * obj0 = 0 ;
7522 PyObject * obj1 = 0 ;
7523 char *kwnames[] = {
7524 (char *) "self",(char *) "flag", NULL
7525 };
7526
7527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7530 arg2 = (long) SWIG_AsLong(obj1);
7531 if (PyErr_Occurred()) SWIG_fail;
7532 {
7533 PyThreadState* __tstate = wxPyBeginAllowThreads();
7534 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7535
7536 wxPyEndAllowThreads(__tstate);
7537 if (PyErr_Occurred()) SWIG_fail;
7538 }
7539 {
7540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7541 }
7542 return resultobj;
7543 fail:
7544 return NULL;
7545}
7546
7547
7548static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7549 PyObject *resultobj;
7550 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7551 wxColour *result;
7552 PyObject * obj0 = 0 ;
7553 char *kwnames[] = {
7554 (char *) "self", NULL
7555 };
7556
7557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7560 {
7561 PyThreadState* __tstate = wxPyBeginAllowThreads();
7562 {
7563 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7564 result = (wxColour *) &_result_ref;
7565 }
7566
7567 wxPyEndAllowThreads(__tstate);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7571 return resultobj;
7572 fail:
7573 return NULL;
7574}
7575
7576
7577static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7578 PyObject *resultobj;
7579 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7580 wxColour *result;
7581 PyObject * obj0 = 0 ;
7582 char *kwnames[] = {
7583 (char *) "self", NULL
7584 };
7585
7586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7589 {
7590 PyThreadState* __tstate = wxPyBeginAllowThreads();
7591 {
7592 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7593 result = (wxColour *) &_result_ref;
7594 }
7595
7596 wxPyEndAllowThreads(__tstate);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7600 return resultobj;
7601 fail:
7602 return NULL;
7603}
7604
7605
7606static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7607 PyObject *resultobj;
7608 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7609 wxFont *result;
7610 PyObject * obj0 = 0 ;
7611 char *kwnames[] = {
7612 (char *) "self", NULL
7613 };
7614
7615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7618 {
7619 PyThreadState* __tstate = wxPyBeginAllowThreads();
7620 {
7621 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7622 result = (wxFont *) &_result_ref;
7623 }
7624
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 {
7629 wxFont* resultptr = new wxFont(*result);
7630 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7631 }
7632 return resultobj;
7633 fail:
7634 return NULL;
7635}
7636
7637
7638static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7639 PyObject *resultobj;
7640 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7641 int result;
7642 PyObject * obj0 = 0 ;
7643 char *kwnames[] = {
7644 (char *) "self", NULL
7645 };
7646
7647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7650 {
7651 PyThreadState* __tstate = wxPyBeginAllowThreads();
7652 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7653
7654 wxPyEndAllowThreads(__tstate);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 }
7657 resultobj = SWIG_FromInt((int)result);
7658 return resultobj;
7659 fail:
7660 return NULL;
7661}
7662
7663
7664static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7665 PyObject *resultobj;
7666 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7667 wxArrayInt *result;
7668 PyObject * obj0 = 0 ;
7669 char *kwnames[] = {
7670 (char *) "self", NULL
7671 };
7672
7673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 {
7679 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7680 result = (wxArrayInt *) &_result_ref;
7681 }
7682
7683 wxPyEndAllowThreads(__tstate);
7684 if (PyErr_Occurred()) SWIG_fail;
7685 }
7686 {
7687 resultobj = PyList_New(0);
7688 size_t idx;
7689 for (idx = 0; idx < result->GetCount(); idx += 1) {
7690 PyObject* val = PyInt_FromLong( result->Item(idx) );
7691 PyList_Append(resultobj, val);
7692 Py_DECREF(val);
7693 }
7694 }
7695 return resultobj;
7696 fail:
7697 return NULL;
7698}
7699
7700
7701static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7702 PyObject *resultobj;
7703 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7704 long result;
7705 PyObject * obj0 = 0 ;
7706 char *kwnames[] = {
7707 (char *) "self", NULL
7708 };
7709
7710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7713 {
7714 PyThreadState* __tstate = wxPyBeginAllowThreads();
7715 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7716
7717 wxPyEndAllowThreads(__tstate);
7718 if (PyErr_Occurred()) SWIG_fail;
7719 }
7720 resultobj = SWIG_FromLong((long)result);
7721 return resultobj;
7722 fail:
7723 return NULL;
7724}
7725
7726
7727static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7728 PyObject *resultobj;
7729 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7730 long result;
7731 PyObject * obj0 = 0 ;
7732 char *kwnames[] = {
7733 (char *) "self", NULL
7734 };
7735
7736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7739 {
7740 PyThreadState* __tstate = wxPyBeginAllowThreads();
7741 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7742
7743 wxPyEndAllowThreads(__tstate);
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 resultobj = SWIG_FromLong((long)result);
7747 return resultobj;
7748 fail:
7749 return NULL;
7750}
7751
7752
7753static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj;
7755 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7756 long result;
7757 PyObject * obj0 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "self", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7765 {
7766 PyThreadState* __tstate = wxPyBeginAllowThreads();
7767 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7768
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 resultobj = SWIG_FromLong((long)result);
7773 return resultobj;
7774 fail:
7775 return NULL;
7776}
7777
7778
7779static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7780 PyObject *resultobj;
7781 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7782 bool result;
7783 PyObject * obj0 = 0 ;
7784 char *kwnames[] = {
7785 (char *) "self", NULL
7786 };
7787
7788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7791 {
7792 PyThreadState* __tstate = wxPyBeginAllowThreads();
7793 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7794
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 {
7799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7800 }
7801 return resultobj;
7802 fail:
7803 return NULL;
7804}
7805
7806
7807static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj;
7809 wxTextAttr *arg1 = 0 ;
7810 wxTextAttr *arg2 = 0 ;
7811 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7812 wxTextAttr result;
7813 PyObject * obj0 = 0 ;
7814 PyObject * obj1 = 0 ;
7815 PyObject * obj2 = 0 ;
7816 char *kwnames[] = {
7817 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7818 };
7819
7820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7822 SWIG_POINTER_EXCEPTION | 0)) == -1)
7823 SWIG_fail;
7824 if (arg1 == NULL) {
7825 PyErr_SetString(PyExc_TypeError,"null reference");
7826 SWIG_fail;
7827 }
7828 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7829 SWIG_POINTER_EXCEPTION | 0)) == -1)
7830 SWIG_fail;
7831 if (arg2 == NULL) {
7832 PyErr_SetString(PyExc_TypeError,"null reference");
7833 SWIG_fail;
7834 }
7835 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7837 {
7838 PyThreadState* __tstate = wxPyBeginAllowThreads();
7839 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7840
7841 wxPyEndAllowThreads(__tstate);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 {
7845 wxTextAttr * resultptr;
7846 resultptr = new wxTextAttr((wxTextAttr &) result);
7847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7848 }
7849 return resultobj;
7850 fail:
7851 return NULL;
7852}
7853
7854
7855static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7856 PyObject *obj;
7857 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7858 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7859 Py_INCREF(obj);
7860 return Py_BuildValue((char *)"");
7861}
7862static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7863 PyObject *resultobj;
7864 wxWindow *arg1 = (wxWindow *) 0 ;
7865 int arg2 ;
7866 wxString const &arg3_defvalue = wxPyEmptyString ;
7867 wxString *arg3 = (wxString *) &arg3_defvalue ;
7868 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7869 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7870 wxSize const &arg5_defvalue = wxDefaultSize ;
7871 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7872 long arg6 = (long) 0 ;
7873 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7874 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7875 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7876 wxString *arg8 = (wxString *) &arg8_defvalue ;
7877 wxTextCtrl *result;
7878 bool temp3 = False ;
7879 wxPoint temp4 ;
7880 wxSize temp5 ;
7881 bool temp8 = False ;
7882 PyObject * obj0 = 0 ;
7883 PyObject * obj1 = 0 ;
7884 PyObject * obj2 = 0 ;
7885 PyObject * obj3 = 0 ;
7886 PyObject * obj4 = 0 ;
7887 PyObject * obj5 = 0 ;
7888 PyObject * obj6 = 0 ;
7889 PyObject * obj7 = 0 ;
7890 char *kwnames[] = {
7891 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7892 };
7893
7894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
7895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7897 arg2 = (int) SWIG_AsInt(obj1);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 if (obj2) {
7900 {
7901 arg3 = wxString_in_helper(obj2);
7902 if (arg3 == NULL) SWIG_fail;
7903 temp3 = True;
7904 }
7905 }
7906 if (obj3) {
7907 {
7908 arg4 = &temp4;
7909 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7910 }
7911 }
7912 if (obj4) {
7913 {
7914 arg5 = &temp5;
7915 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7916 }
7917 }
7918 if (obj5) {
7919 arg6 = (long) SWIG_AsLong(obj5);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 if (obj6) {
7923 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7924 SWIG_POINTER_EXCEPTION | 0)) == -1)
7925 SWIG_fail;
7926 if (arg7 == NULL) {
7927 PyErr_SetString(PyExc_TypeError,"null reference");
7928 SWIG_fail;
7929 }
7930 }
7931 if (obj7) {
7932 {
7933 arg8 = wxString_in_helper(obj7);
7934 if (arg8 == NULL) SWIG_fail;
7935 temp8 = True;
7936 }
7937 }
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 {
7946 resultobj = wxPyMake_wxObject(result);
7947 }
7948 {
7949 if (temp3)
7950 delete arg3;
7951 }
7952 {
7953 if (temp8)
7954 delete arg8;
7955 }
7956 return resultobj;
7957 fail:
7958 {
7959 if (temp3)
7960 delete arg3;
7961 }
7962 {
7963 if (temp8)
7964 delete arg8;
7965 }
7966 return NULL;
7967}
7968
7969
7970static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7971 PyObject *resultobj;
7972 wxTextCtrl *result;
7973 char *kwnames[] = {
7974 NULL
7975 };
7976
7977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 result = (wxTextCtrl *)new wxTextCtrl();
7981
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 {
7986 resultobj = wxPyMake_wxObject(result);
7987 }
7988 return resultobj;
7989 fail:
7990 return NULL;
7991}
7992
7993
7994static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj;
7996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7997 wxWindow *arg2 = (wxWindow *) 0 ;
7998 int arg3 ;
7999 wxString const &arg4_defvalue = wxPyEmptyString ;
8000 wxString *arg4 = (wxString *) &arg4_defvalue ;
8001 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8002 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8003 wxSize const &arg6_defvalue = wxDefaultSize ;
8004 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8005 long arg7 = (long) 0 ;
8006 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8007 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8008 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8009 wxString *arg9 = (wxString *) &arg9_defvalue ;
8010 bool result;
8011 bool temp4 = False ;
8012 wxPoint temp5 ;
8013 wxSize temp6 ;
8014 bool temp9 = False ;
8015 PyObject * obj0 = 0 ;
8016 PyObject * obj1 = 0 ;
8017 PyObject * obj2 = 0 ;
8018 PyObject * obj3 = 0 ;
8019 PyObject * obj4 = 0 ;
8020 PyObject * obj5 = 0 ;
8021 PyObject * obj6 = 0 ;
8022 PyObject * obj7 = 0 ;
8023 PyObject * obj8 = 0 ;
8024 char *kwnames[] = {
8025 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8026 };
8027
8028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8033 arg3 = (int) SWIG_AsInt(obj2);
8034 if (PyErr_Occurred()) SWIG_fail;
8035 if (obj3) {
8036 {
8037 arg4 = wxString_in_helper(obj3);
8038 if (arg4 == NULL) SWIG_fail;
8039 temp4 = True;
8040 }
8041 }
8042 if (obj4) {
8043 {
8044 arg5 = &temp5;
8045 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8046 }
8047 }
8048 if (obj5) {
8049 {
8050 arg6 = &temp6;
8051 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8052 }
8053 }
8054 if (obj6) {
8055 arg7 = (long) SWIG_AsLong(obj6);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 if (obj7) {
8059 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8060 SWIG_POINTER_EXCEPTION | 0)) == -1)
8061 SWIG_fail;
8062 if (arg8 == NULL) {
8063 PyErr_SetString(PyExc_TypeError,"null reference");
8064 SWIG_fail;
8065 }
8066 }
8067 if (obj8) {
8068 {
8069 arg9 = wxString_in_helper(obj8);
8070 if (arg9 == NULL) SWIG_fail;
8071 temp9 = True;
8072 }
8073 }
8074 {
8075 PyThreadState* __tstate = wxPyBeginAllowThreads();
8076 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8077
8078 wxPyEndAllowThreads(__tstate);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 {
8082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8083 }
8084 {
8085 if (temp4)
8086 delete arg4;
8087 }
8088 {
8089 if (temp9)
8090 delete arg9;
8091 }
8092 return resultobj;
8093 fail:
8094 {
8095 if (temp4)
8096 delete arg4;
8097 }
8098 {
8099 if (temp9)
8100 delete arg9;
8101 }
8102 return NULL;
8103}
8104
8105
8106static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8107 PyObject *resultobj;
8108 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8109 wxString result;
8110 PyObject * obj0 = 0 ;
8111 char *kwnames[] = {
8112 (char *) "self", NULL
8113 };
8114
8115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8118 {
8119 PyThreadState* __tstate = wxPyBeginAllowThreads();
8120 result = ((wxTextCtrl const *)arg1)->GetValue();
8121
8122 wxPyEndAllowThreads(__tstate);
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 {
8126#if wxUSE_UNICODE
8127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8128#else
8129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8130#endif
8131 }
8132 return resultobj;
8133 fail:
8134 return NULL;
8135}
8136
8137
8138static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8139 PyObject *resultobj;
8140 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8141 wxString *arg2 = 0 ;
8142 bool temp2 = False ;
8143 PyObject * obj0 = 0 ;
8144 PyObject * obj1 = 0 ;
8145 char *kwnames[] = {
8146 (char *) "self",(char *) "value", NULL
8147 };
8148
8149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8152 {
8153 arg2 = wxString_in_helper(obj1);
8154 if (arg2 == NULL) SWIG_fail;
8155 temp2 = True;
8156 }
8157 {
8158 PyThreadState* __tstate = wxPyBeginAllowThreads();
8159 (arg1)->SetValue((wxString const &)*arg2);
8160
8161 wxPyEndAllowThreads(__tstate);
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 Py_INCREF(Py_None); resultobj = Py_None;
8165 {
8166 if (temp2)
8167 delete arg2;
8168 }
8169 return resultobj;
8170 fail:
8171 {
8172 if (temp2)
8173 delete arg2;
8174 }
8175 return NULL;
8176}
8177
8178
8179static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8180 PyObject *resultobj;
8181 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8182 long arg2 ;
8183 long arg3 ;
8184 wxString result;
8185 PyObject * obj0 = 0 ;
8186 PyObject * obj1 = 0 ;
8187 PyObject * obj2 = 0 ;
8188 char *kwnames[] = {
8189 (char *) "self",(char *) "from",(char *) "to", NULL
8190 };
8191
8192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8195 arg2 = (long) SWIG_AsLong(obj1);
8196 if (PyErr_Occurred()) SWIG_fail;
8197 arg3 = (long) SWIG_AsLong(obj2);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 {
8200 PyThreadState* __tstate = wxPyBeginAllowThreads();
8201 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8202
8203 wxPyEndAllowThreads(__tstate);
8204 if (PyErr_Occurred()) SWIG_fail;
8205 }
8206 {
8207#if wxUSE_UNICODE
8208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8209#else
8210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8211#endif
8212 }
8213 return resultobj;
8214 fail:
8215 return NULL;
8216}
8217
8218
8219static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8220 PyObject *resultobj;
8221 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8222 long arg2 ;
8223 int result;
8224 PyObject * obj0 = 0 ;
8225 PyObject * obj1 = 0 ;
8226 char *kwnames[] = {
8227 (char *) "self",(char *) "lineNo", NULL
8228 };
8229
8230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8233 arg2 = (long) SWIG_AsLong(obj1);
8234 if (PyErr_Occurred()) SWIG_fail;
8235 {
8236 PyThreadState* __tstate = wxPyBeginAllowThreads();
8237 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8238
8239 wxPyEndAllowThreads(__tstate);
8240 if (PyErr_Occurred()) SWIG_fail;
8241 }
8242 resultobj = SWIG_FromInt((int)result);
8243 return resultobj;
8244 fail:
8245 return NULL;
8246}
8247
8248
8249static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
8250 PyObject *resultobj;
8251 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8252 long arg2 ;
8253 wxString result;
8254 PyObject * obj0 = 0 ;
8255 PyObject * obj1 = 0 ;
8256 char *kwnames[] = {
8257 (char *) "self",(char *) "lineNo", NULL
8258 };
8259
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8263 arg2 = (long) SWIG_AsLong(obj1);
8264 if (PyErr_Occurred()) SWIG_fail;
8265 {
8266 PyThreadState* __tstate = wxPyBeginAllowThreads();
8267 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8268
8269 wxPyEndAllowThreads(__tstate);
8270 if (PyErr_Occurred()) SWIG_fail;
8271 }
8272 {
8273#if wxUSE_UNICODE
8274 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8275#else
8276 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8277#endif
8278 }
8279 return resultobj;
8280 fail:
8281 return NULL;
8282}
8283
8284
8285static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
8286 PyObject *resultobj;
8287 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8288 int result;
8289 PyObject * obj0 = 0 ;
8290 char *kwnames[] = {
8291 (char *) "self", NULL
8292 };
8293
8294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8297 {
8298 PyThreadState* __tstate = wxPyBeginAllowThreads();
8299 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8300
8301 wxPyEndAllowThreads(__tstate);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 resultobj = SWIG_FromInt((int)result);
8305 return resultobj;
8306 fail:
8307 return NULL;
8308}
8309
8310
8311static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj;
8313 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8314 bool result;
8315 PyObject * obj0 = 0 ;
8316 char *kwnames[] = {
8317 (char *) "self", NULL
8318 };
8319
8320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8323 {
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8326
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 {
8331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8332 }
8333 return resultobj;
8334 fail:
8335 return NULL;
8336}
8337
8338
8339static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8340 PyObject *resultobj;
8341 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8342 bool result;
8343 PyObject * obj0 = 0 ;
8344 char *kwnames[] = {
8345 (char *) "self", NULL
8346 };
8347
8348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8354
8355 wxPyEndAllowThreads(__tstate);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 {
8359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8360 }
8361 return resultobj;
8362 fail:
8363 return NULL;
8364}
8365
8366
8367static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8368 PyObject *resultobj;
8369 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8370 bool result;
8371 PyObject * obj0 = 0 ;
8372 char *kwnames[] = {
8373 (char *) "self", NULL
8374 };
8375
8376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8379 {
8380 PyThreadState* __tstate = wxPyBeginAllowThreads();
8381 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8382
8383 wxPyEndAllowThreads(__tstate);
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 {
8387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8388 }
8389 return resultobj;
8390 fail:
8391 return NULL;
8392}
8393
8394
8395static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj;
8397 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8398 bool result;
8399 PyObject * obj0 = 0 ;
8400 char *kwnames[] = {
8401 (char *) "self", NULL
8402 };
8403
8404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8407 {
8408 PyThreadState* __tstate = wxPyBeginAllowThreads();
8409 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8410
8411 wxPyEndAllowThreads(__tstate);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 {
8415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8416 }
8417 return resultobj;
8418 fail:
8419 return NULL;
8420}
8421
8422
8423static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8424 PyObject *resultobj;
8425 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8426 long *arg2 = (long *) 0 ;
8427 long *arg3 = (long *) 0 ;
8428 long temp2 ;
8429 long temp3 ;
8430 PyObject * obj0 = 0 ;
8431 char *kwnames[] = {
8432 (char *) "self", NULL
8433 };
8434
8435 arg2 = &temp2;
8436 arg3 = &temp3;
8437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8440 {
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8443
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 Py_INCREF(Py_None); resultobj = Py_None;
8448 {
8449 PyObject *o = PyInt_FromLong((long) (*arg2));
8450 resultobj = t_output_helper(resultobj,o);
8451 }
8452 {
8453 PyObject *o = PyInt_FromLong((long) (*arg3));
8454 resultobj = t_output_helper(resultobj,o);
8455 }
8456 return resultobj;
8457 fail:
8458 return NULL;
8459}
8460
8461
8462static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8463 PyObject *resultobj;
8464 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8465 wxString result;
8466 PyObject * obj0 = 0 ;
8467 char *kwnames[] = {
8468 (char *) "self", NULL
8469 };
8470
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8474 {
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8477
8478 wxPyEndAllowThreads(__tstate);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 {
8482#if wxUSE_UNICODE
8483 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8484#else
8485 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8486#endif
8487 }
8488 return resultobj;
8489 fail:
8490 return NULL;
8491}
8492
8493
8494static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8495 PyObject *resultobj;
8496 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8497 PyObject * obj0 = 0 ;
8498 char *kwnames[] = {
8499 (char *) "self", NULL
8500 };
8501
8502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8505 {
8506 PyThreadState* __tstate = wxPyBeginAllowThreads();
8507 (arg1)->Clear();
8508
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 Py_INCREF(Py_None); resultobj = Py_None;
8513 return resultobj;
8514 fail:
8515 return NULL;
8516}
8517
8518
8519static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8520 PyObject *resultobj;
8521 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8522 long arg2 ;
8523 long arg3 ;
8524 wxString *arg4 = 0 ;
8525 bool temp4 = False ;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 PyObject * obj2 = 0 ;
8529 PyObject * obj3 = 0 ;
8530 char *kwnames[] = {
8531 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8532 };
8533
8534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8537 arg2 = (long) SWIG_AsLong(obj1);
8538 if (PyErr_Occurred()) SWIG_fail;
8539 arg3 = (long) SWIG_AsLong(obj2);
8540 if (PyErr_Occurred()) SWIG_fail;
8541 {
8542 arg4 = wxString_in_helper(obj3);
8543 if (arg4 == NULL) SWIG_fail;
8544 temp4 = True;
8545 }
8546 {
8547 PyThreadState* __tstate = wxPyBeginAllowThreads();
8548 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8549
8550 wxPyEndAllowThreads(__tstate);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 Py_INCREF(Py_None); resultobj = Py_None;
8554 {
8555 if (temp4)
8556 delete arg4;
8557 }
8558 return resultobj;
8559 fail:
8560 {
8561 if (temp4)
8562 delete arg4;
8563 }
8564 return NULL;
8565}
8566
8567
8568static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8569 PyObject *resultobj;
8570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8571 long arg2 ;
8572 long arg3 ;
8573 PyObject * obj0 = 0 ;
8574 PyObject * obj1 = 0 ;
8575 PyObject * obj2 = 0 ;
8576 char *kwnames[] = {
8577 (char *) "self",(char *) "from",(char *) "to", NULL
8578 };
8579
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8583 arg2 = (long) SWIG_AsLong(obj1);
8584 if (PyErr_Occurred()) SWIG_fail;
8585 arg3 = (long) SWIG_AsLong(obj2);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 {
8588 PyThreadState* __tstate = wxPyBeginAllowThreads();
8589 (arg1)->Remove(arg2,arg3);
8590
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 Py_INCREF(Py_None); resultobj = Py_None;
8595 return resultobj;
8596 fail:
8597 return NULL;
8598}
8599
8600
8601static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj;
8603 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8604 wxString *arg2 = 0 ;
8605 bool result;
8606 bool temp2 = False ;
8607 PyObject * obj0 = 0 ;
8608 PyObject * obj1 = 0 ;
8609 char *kwnames[] = {
8610 (char *) "self",(char *) "file", NULL
8611 };
8612
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8616 {
8617 arg2 = wxString_in_helper(obj1);
8618 if (arg2 == NULL) SWIG_fail;
8619 temp2 = True;
8620 }
8621 {
8622 PyThreadState* __tstate = wxPyBeginAllowThreads();
8623 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8624
8625 wxPyEndAllowThreads(__tstate);
8626 if (PyErr_Occurred()) SWIG_fail;
8627 }
8628 {
8629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8630 }
8631 {
8632 if (temp2)
8633 delete arg2;
8634 }
8635 return resultobj;
8636 fail:
8637 {
8638 if (temp2)
8639 delete arg2;
8640 }
8641 return NULL;
8642}
8643
8644
8645static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8646 PyObject *resultobj;
8647 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8648 wxString const &arg2_defvalue = wxPyEmptyString ;
8649 wxString *arg2 = (wxString *) &arg2_defvalue ;
8650 bool result;
8651 bool temp2 = False ;
8652 PyObject * obj0 = 0 ;
8653 PyObject * obj1 = 0 ;
8654 char *kwnames[] = {
8655 (char *) "self",(char *) "file", NULL
8656 };
8657
8658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8661 if (obj1) {
8662 {
8663 arg2 = wxString_in_helper(obj1);
8664 if (arg2 == NULL) SWIG_fail;
8665 temp2 = True;
8666 }
8667 }
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8671
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) SWIG_fail;
8674 }
8675 {
8676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8677 }
8678 {
8679 if (temp2)
8680 delete arg2;
8681 }
8682 return resultobj;
8683 fail:
8684 {
8685 if (temp2)
8686 delete arg2;
8687 }
8688 return NULL;
8689}
8690
8691
8692static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj;
8694 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8695 PyObject * obj0 = 0 ;
8696 char *kwnames[] = {
8697 (char *) "self", NULL
8698 };
8699
8700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8703 {
8704 PyThreadState* __tstate = wxPyBeginAllowThreads();
8705 (arg1)->MarkDirty();
8706
8707 wxPyEndAllowThreads(__tstate);
8708 if (PyErr_Occurred()) SWIG_fail;
8709 }
8710 Py_INCREF(Py_None); resultobj = Py_None;
8711 return resultobj;
8712 fail:
8713 return NULL;
8714}
8715
8716
8717static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8718 PyObject *resultobj;
8719 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8720 PyObject * obj0 = 0 ;
8721 char *kwnames[] = {
8722 (char *) "self", NULL
8723 };
8724
8725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8728 {
8729 PyThreadState* __tstate = wxPyBeginAllowThreads();
8730 (arg1)->DiscardEdits();
8731
8732 wxPyEndAllowThreads(__tstate);
8733 if (PyErr_Occurred()) SWIG_fail;
8734 }
8735 Py_INCREF(Py_None); resultobj = Py_None;
8736 return resultobj;
8737 fail:
8738 return NULL;
8739}
8740
8741
8742static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8743 PyObject *resultobj;
8744 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8745 unsigned long arg2 ;
8746 PyObject * obj0 = 0 ;
8747 PyObject * obj1 = 0 ;
8748 char *kwnames[] = {
8749 (char *) "self",(char *) "len", NULL
8750 };
8751
8752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8755 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8756 if (PyErr_Occurred()) SWIG_fail;
8757 {
8758 PyThreadState* __tstate = wxPyBeginAllowThreads();
8759 (arg1)->SetMaxLength(arg2);
8760
8761 wxPyEndAllowThreads(__tstate);
8762 if (PyErr_Occurred()) SWIG_fail;
8763 }
8764 Py_INCREF(Py_None); resultobj = Py_None;
8765 return resultobj;
8766 fail:
8767 return NULL;
8768}
8769
8770
8771static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8772 PyObject *resultobj;
8773 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8774 wxString *arg2 = 0 ;
8775 bool temp2 = False ;
8776 PyObject * obj0 = 0 ;
8777 PyObject * obj1 = 0 ;
8778 char *kwnames[] = {
8779 (char *) "self",(char *) "text", NULL
8780 };
8781
8782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8785 {
8786 arg2 = wxString_in_helper(obj1);
8787 if (arg2 == NULL) SWIG_fail;
8788 temp2 = True;
8789 }
8790 {
8791 PyThreadState* __tstate = wxPyBeginAllowThreads();
8792 (arg1)->WriteText((wxString const &)*arg2);
8793
8794 wxPyEndAllowThreads(__tstate);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 }
8797 Py_INCREF(Py_None); resultobj = Py_None;
8798 {
8799 if (temp2)
8800 delete arg2;
8801 }
8802 return resultobj;
8803 fail:
8804 {
8805 if (temp2)
8806 delete arg2;
8807 }
8808 return NULL;
8809}
8810
8811
8812static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj;
8814 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8815 wxString *arg2 = 0 ;
8816 bool temp2 = False ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 char *kwnames[] = {
8820 (char *) "self",(char *) "text", NULL
8821 };
8822
8823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8826 {
8827 arg2 = wxString_in_helper(obj1);
8828 if (arg2 == NULL) SWIG_fail;
8829 temp2 = True;
8830 }
8831 {
8832 PyThreadState* __tstate = wxPyBeginAllowThreads();
8833 (arg1)->AppendText((wxString const &)*arg2);
8834
8835 wxPyEndAllowThreads(__tstate);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 Py_INCREF(Py_None); resultobj = Py_None;
8839 {
8840 if (temp2)
8841 delete arg2;
8842 }
8843 return resultobj;
8844 fail:
8845 {
8846 if (temp2)
8847 delete arg2;
8848 }
8849 return NULL;
8850}
8851
8852
8853static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8854 PyObject *resultobj;
8855 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8856 wxKeyEvent *arg2 = 0 ;
8857 bool result;
8858 PyObject * obj0 = 0 ;
8859 PyObject * obj1 = 0 ;
8860 char *kwnames[] = {
8861 (char *) "self",(char *) "event", NULL
8862 };
8863
8864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8867 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8868 SWIG_POINTER_EXCEPTION | 0)) == -1)
8869 SWIG_fail;
8870 if (arg2 == NULL) {
8871 PyErr_SetString(PyExc_TypeError,"null reference");
8872 SWIG_fail;
8873 }
8874 {
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8877
8878 wxPyEndAllowThreads(__tstate);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
8881 {
8882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8883 }
8884 return resultobj;
8885 fail:
8886 return NULL;
8887}
8888
8889
8890static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8891 PyObject *resultobj;
8892 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8893 long arg2 ;
8894 long arg3 ;
8895 wxTextAttr *arg4 = 0 ;
8896 bool result;
8897 PyObject * obj0 = 0 ;
8898 PyObject * obj1 = 0 ;
8899 PyObject * obj2 = 0 ;
8900 PyObject * obj3 = 0 ;
8901 char *kwnames[] = {
8902 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8903 };
8904
8905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8908 arg2 = (long) SWIG_AsLong(obj1);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 arg3 = (long) SWIG_AsLong(obj2);
8911 if (PyErr_Occurred()) SWIG_fail;
8912 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8913 SWIG_POINTER_EXCEPTION | 0)) == -1)
8914 SWIG_fail;
8915 if (arg4 == NULL) {
8916 PyErr_SetString(PyExc_TypeError,"null reference");
8917 SWIG_fail;
8918 }
8919 {
8920 PyThreadState* __tstate = wxPyBeginAllowThreads();
8921 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8922
8923 wxPyEndAllowThreads(__tstate);
8924 if (PyErr_Occurred()) SWIG_fail;
8925 }
8926 {
8927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8928 }
8929 return resultobj;
8930 fail:
8931 return NULL;
8932}
8933
8934
8935static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8936 PyObject *resultobj;
8937 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8938 long arg2 ;
8939 wxTextAttr *arg3 = 0 ;
8940 bool result;
8941 PyObject * obj0 = 0 ;
8942 PyObject * obj1 = 0 ;
8943 PyObject * obj2 = 0 ;
8944 char *kwnames[] = {
8945 (char *) "self",(char *) "position",(char *) "style", NULL
8946 };
8947
8948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
8949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8951 arg2 = (long) SWIG_AsLong(obj1);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
8954 SWIG_POINTER_EXCEPTION | 0)) == -1)
8955 SWIG_fail;
8956 if (arg3 == NULL) {
8957 PyErr_SetString(PyExc_TypeError,"null reference");
8958 SWIG_fail;
8959 }
8960 {
8961 PyThreadState* __tstate = wxPyBeginAllowThreads();
8962 result = (bool)(arg1)->GetStyle(arg2,*arg3);
8963
8964 wxPyEndAllowThreads(__tstate);
8965 if (PyErr_Occurred()) SWIG_fail;
8966 }
8967 {
8968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8969 }
8970 return resultobj;
8971 fail:
8972 return NULL;
8973}
8974
8975
8976static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8977 PyObject *resultobj;
8978 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8979 wxTextAttr *arg2 = 0 ;
8980 bool result;
8981 PyObject * obj0 = 0 ;
8982 PyObject * obj1 = 0 ;
8983 char *kwnames[] = {
8984 (char *) "self",(char *) "style", NULL
8985 };
8986
8987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
8988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8990 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8991 SWIG_POINTER_EXCEPTION | 0)) == -1)
8992 SWIG_fail;
8993 if (arg2 == NULL) {
8994 PyErr_SetString(PyExc_TypeError,"null reference");
8995 SWIG_fail;
8996 }
8997 {
8998 PyThreadState* __tstate = wxPyBeginAllowThreads();
8999 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9000
9001 wxPyEndAllowThreads(__tstate);
9002 if (PyErr_Occurred()) SWIG_fail;
9003 }
9004 {
9005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9006 }
9007 return resultobj;
9008 fail:
9009 return NULL;
9010}
9011
9012
9013static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9014 PyObject *resultobj;
9015 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9016 wxTextAttr *result;
9017 PyObject * obj0 = 0 ;
9018 char *kwnames[] = {
9019 (char *) "self", NULL
9020 };
9021
9022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9025 {
9026 PyThreadState* __tstate = wxPyBeginAllowThreads();
9027 {
9028 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9029 result = (wxTextAttr *) &_result_ref;
9030 }
9031
9032 wxPyEndAllowThreads(__tstate);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 }
9035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9036 return resultobj;
9037 fail:
9038 return NULL;
9039}
9040
9041
9042static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9043 PyObject *resultobj;
9044 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9045 long arg2 ;
9046 long arg3 ;
9047 long result;
9048 PyObject * obj0 = 0 ;
9049 PyObject * obj1 = 0 ;
9050 PyObject * obj2 = 0 ;
9051 char *kwnames[] = {
9052 (char *) "self",(char *) "x",(char *) "y", NULL
9053 };
9054
9055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9058 arg2 = (long) SWIG_AsLong(obj1);
9059 if (PyErr_Occurred()) SWIG_fail;
9060 arg3 = (long) SWIG_AsLong(obj2);
9061 if (PyErr_Occurred()) SWIG_fail;
9062 {
9063 PyThreadState* __tstate = wxPyBeginAllowThreads();
9064 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9065
9066 wxPyEndAllowThreads(__tstate);
9067 if (PyErr_Occurred()) SWIG_fail;
9068 }
9069 resultobj = SWIG_FromLong((long)result);
9070 return resultobj;
9071 fail:
9072 return NULL;
9073}
9074
9075
9076static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9077 PyObject *resultobj;
9078 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9079 long arg2 ;
9080 long *arg3 = (long *) 0 ;
9081 long *arg4 = (long *) 0 ;
9082 long temp3 ;
9083 long temp4 ;
9084 PyObject * obj0 = 0 ;
9085 PyObject * obj1 = 0 ;
9086 char *kwnames[] = {
9087 (char *) "self",(char *) "pos", NULL
9088 };
9089
9090 arg3 = &temp3;
9091 arg4 = &temp4;
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9095 arg2 = (long) SWIG_AsLong(obj1);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 {
9098 PyThreadState* __tstate = wxPyBeginAllowThreads();
9099 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9100
9101 wxPyEndAllowThreads(__tstate);
9102 if (PyErr_Occurred()) SWIG_fail;
9103 }
9104 Py_INCREF(Py_None); resultobj = Py_None;
9105 {
9106 PyObject *o = PyInt_FromLong((long) (*arg3));
9107 resultobj = t_output_helper(resultobj,o);
9108 }
9109 {
9110 PyObject *o = PyInt_FromLong((long) (*arg4));
9111 resultobj = t_output_helper(resultobj,o);
9112 }
9113 return resultobj;
9114 fail:
9115 return NULL;
9116}
9117
9118
9119static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9120 PyObject *resultobj;
9121 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9122 long arg2 ;
9123 PyObject * obj0 = 0 ;
9124 PyObject * obj1 = 0 ;
9125 char *kwnames[] = {
9126 (char *) "self",(char *) "pos", NULL
9127 };
9128
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9132 arg2 = (long) SWIG_AsLong(obj1);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 {
9135 PyThreadState* __tstate = wxPyBeginAllowThreads();
9136 (arg1)->ShowPosition(arg2);
9137
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 Py_INCREF(Py_None); resultobj = Py_None;
9142 return resultobj;
9143 fail:
9144 return NULL;
9145}
9146
9147
9148static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9149 PyObject *resultobj;
9150 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9151 wxPoint *arg2 = 0 ;
9152 long *arg3 = (long *) 0 ;
9153 long *arg4 = (long *) 0 ;
9154 int result;
9155 wxPoint temp2 ;
9156 long temp3 ;
9157 long temp4 ;
9158 PyObject * obj0 = 0 ;
9159 PyObject * obj1 = 0 ;
9160 char *kwnames[] = {
9161 (char *) "self",(char *) "pt", NULL
9162 };
9163
9164 arg3 = &temp3;
9165 arg4 = &temp4;
9166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9169 {
9170 arg2 = &temp2;
9171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9172 }
9173 {
9174 PyThreadState* __tstate = wxPyBeginAllowThreads();
9175 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9176
9177 wxPyEndAllowThreads(__tstate);
9178 if (PyErr_Occurred()) SWIG_fail;
9179 }
9180 resultobj = SWIG_FromInt((int)result);
9181 {
9182 PyObject *o = PyInt_FromLong((long) (*arg3));
9183 resultobj = t_output_helper(resultobj,o);
9184 }
9185 {
9186 PyObject *o = PyInt_FromLong((long) (*arg4));
9187 resultobj = t_output_helper(resultobj,o);
9188 }
9189 return resultobj;
9190 fail:
9191 return NULL;
9192}
9193
9194
9195static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj;
9197 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9198 PyObject * obj0 = 0 ;
9199 char *kwnames[] = {
9200 (char *) "self", NULL
9201 };
9202
9203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 (arg1)->Copy();
9209
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
9213 Py_INCREF(Py_None); resultobj = Py_None;
9214 return resultobj;
9215 fail:
9216 return NULL;
9217}
9218
9219
9220static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
9221 PyObject *resultobj;
9222 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9223 PyObject * obj0 = 0 ;
9224 char *kwnames[] = {
9225 (char *) "self", NULL
9226 };
9227
9228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9231 {
9232 PyThreadState* __tstate = wxPyBeginAllowThreads();
9233 (arg1)->Cut();
9234
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 Py_INCREF(Py_None); resultobj = Py_None;
9239 return resultobj;
9240 fail:
9241 return NULL;
9242}
9243
9244
9245static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9246 PyObject *resultobj;
9247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9248 PyObject * obj0 = 0 ;
9249 char *kwnames[] = {
9250 (char *) "self", NULL
9251 };
9252
9253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9256 {
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 (arg1)->Paste();
9259
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 Py_INCREF(Py_None); resultobj = Py_None;
9264 return resultobj;
9265 fail:
9266 return NULL;
9267}
9268
9269
9270static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
9271 PyObject *resultobj;
9272 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9273 bool result;
9274 PyObject * obj0 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "self", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9285
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 {
9290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9291 }
9292 return resultobj;
9293 fail:
9294 return NULL;
9295}
9296
9297
9298static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
9299 PyObject *resultobj;
9300 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9301 bool result;
9302 PyObject * obj0 = 0 ;
9303 char *kwnames[] = {
9304 (char *) "self", NULL
9305 };
9306
9307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9313
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 {
9318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9319 }
9320 return resultobj;
9321 fail:
9322 return NULL;
9323}
9324
9325
9326static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
9327 PyObject *resultobj;
9328 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9329 bool result;
9330 PyObject * obj0 = 0 ;
9331 char *kwnames[] = {
9332 (char *) "self", NULL
9333 };
9334
9335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9341
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 {
9346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9347 }
9348 return resultobj;
9349 fail:
9350 return NULL;
9351}
9352
9353
9354static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj;
9356 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9357 PyObject * obj0 = 0 ;
9358 char *kwnames[] = {
9359 (char *) "self", NULL
9360 };
9361
9362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 (arg1)->Undo();
9368
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 Py_INCREF(Py_None); resultobj = Py_None;
9373 return resultobj;
9374 fail:
9375 return NULL;
9376}
9377
9378
9379static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj;
9381 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9382 PyObject * obj0 = 0 ;
9383 char *kwnames[] = {
9384 (char *) "self", NULL
9385 };
9386
9387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9390 {
9391 PyThreadState* __tstate = wxPyBeginAllowThreads();
9392 (arg1)->Redo();
9393
9394 wxPyEndAllowThreads(__tstate);
9395 if (PyErr_Occurred()) SWIG_fail;
9396 }
9397 Py_INCREF(Py_None); resultobj = Py_None;
9398 return resultobj;
9399 fail:
9400 return NULL;
9401}
9402
9403
9404static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
9405 PyObject *resultobj;
9406 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9407 bool result;
9408 PyObject * obj0 = 0 ;
9409 char *kwnames[] = {
9410 (char *) "self", NULL
9411 };
9412
9413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9416 {
9417 PyThreadState* __tstate = wxPyBeginAllowThreads();
9418 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9419
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 {
9424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9425 }
9426 return resultobj;
9427 fail:
9428 return NULL;
9429}
9430
9431
9432static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
9433 PyObject *resultobj;
9434 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9435 bool result;
9436 PyObject * obj0 = 0 ;
9437 char *kwnames[] = {
9438 (char *) "self", NULL
9439 };
9440
9441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 {
9452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9453 }
9454 return resultobj;
9455 fail:
9456 return NULL;
9457}
9458
9459
9460static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9461 PyObject *resultobj;
9462 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9463 long arg2 ;
9464 PyObject * obj0 = 0 ;
9465 PyObject * obj1 = 0 ;
9466 char *kwnames[] = {
9467 (char *) "self",(char *) "pos", NULL
9468 };
9469
9470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9473 arg2 = (long) SWIG_AsLong(obj1);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 (arg1)->SetInsertionPoint(arg2);
9478
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 Py_INCREF(Py_None); resultobj = Py_None;
9483 return resultobj;
9484 fail:
9485 return NULL;
9486}
9487
9488
9489static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj;
9491 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9492 PyObject * obj0 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 (arg1)->SetInsertionPointEnd();
9503
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 Py_INCREF(Py_None); resultobj = Py_None;
9508 return resultobj;
9509 fail:
9510 return NULL;
9511}
9512
9513
9514static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj;
9516 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9517 long result;
9518 PyObject * obj0 = 0 ;
9519 char *kwnames[] = {
9520 (char *) "self", NULL
9521 };
9522
9523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9529
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_FromLong((long)result);
9534 return resultobj;
9535 fail:
9536 return NULL;
9537}
9538
9539
9540static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj;
9542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9543 long result;
9544 PyObject * obj0 = 0 ;
9545 char *kwnames[] = {
9546 (char *) "self", NULL
9547 };
9548
9549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_FromLong((long)result);
9560 return resultobj;
9561 fail:
9562 return NULL;
9563}
9564
9565
9566static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9567 PyObject *resultobj;
9568 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9569 long arg2 ;
9570 long arg3 ;
9571 PyObject * obj0 = 0 ;
9572 PyObject * obj1 = 0 ;
9573 PyObject * obj2 = 0 ;
9574 char *kwnames[] = {
9575 (char *) "self",(char *) "from",(char *) "to", NULL
9576 };
9577
9578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9581 arg2 = (long) SWIG_AsLong(obj1);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 arg3 = (long) SWIG_AsLong(obj2);
9584 if (PyErr_Occurred()) SWIG_fail;
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 (arg1)->SetSelection(arg2,arg3);
9588
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 Py_INCREF(Py_None); resultobj = Py_None;
9593 return resultobj;
9594 fail:
9595 return NULL;
9596}
9597
9598
9599static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9600 PyObject *resultobj;
9601 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9602 PyObject * obj0 = 0 ;
9603 char *kwnames[] = {
9604 (char *) "self", NULL
9605 };
9606
9607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 (arg1)->SelectAll();
9613
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 Py_INCREF(Py_None); resultobj = Py_None;
9618 return resultobj;
9619 fail:
9620 return NULL;
9621}
9622
9623
9624static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9625 PyObject *resultobj;
9626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9627 bool arg2 ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char *kwnames[] = {
9631 (char *) "self",(char *) "editable", NULL
9632 };
9633
9634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9637 arg2 = (bool) SWIG_AsBool(obj1);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 (arg1)->SetEditable(arg2);
9642
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) SWIG_fail;
9645 }
9646 Py_INCREF(Py_None); resultobj = Py_None;
9647 return resultobj;
9648 fail:
9649 return NULL;
9650}
9651
9652
9653static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9654 PyObject *resultobj;
9655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9656 wxString *arg2 = 0 ;
9657 bool temp2 = False ;
9658 PyObject * obj0 = 0 ;
9659 PyObject * obj1 = 0 ;
9660 char *kwnames[] = {
9661 (char *) "self",(char *) "text", NULL
9662 };
9663
9664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9667 {
9668 arg2 = wxString_in_helper(obj1);
9669 if (arg2 == NULL) SWIG_fail;
9670 temp2 = True;
9671 }
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9675
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 Py_INCREF(Py_None); resultobj = Py_None;
9680 {
9681 if (temp2)
9682 delete arg2;
9683 }
9684 return resultobj;
9685 fail:
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return NULL;
9691}
9692
9693
9694static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9695 PyObject *resultobj;
9696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9697 long arg2 ;
9698 long arg3 ;
9699 wxString result;
9700 PyObject * obj0 = 0 ;
9701 PyObject * obj1 = 0 ;
9702 PyObject * obj2 = 0 ;
9703 char *kwnames[] = {
9704 (char *) "self",(char *) "from",(char *) "to", NULL
9705 };
9706
9707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9710 arg2 = (long) SWIG_AsLong(obj1);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 arg3 = (long) SWIG_AsLong(obj2);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 {
9715 PyThreadState* __tstate = wxPyBeginAllowThreads();
9716 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9717
9718 wxPyEndAllowThreads(__tstate);
9719 if (PyErr_Occurred()) SWIG_fail;
9720 }
9721 {
9722#if wxUSE_UNICODE
9723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9724#else
9725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9726#endif
9727 }
9728 return resultobj;
9729 fail:
9730 return NULL;
9731}
9732
9733
f20a2e1f
RD
9734static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
9735 PyObject *resultobj;
9736 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
9737 wxVisualAttributes result;
9738 PyObject * obj0 = 0 ;
9739 char *kwnames[] = {
9740 (char *) "variant", NULL
9741 };
9742
9743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
9744 if (obj0) {
9745 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
9751
9752 wxPyEndAllowThreads(__tstate);
9753 if (PyErr_Occurred()) SWIG_fail;
9754 }
9755 {
9756 wxVisualAttributes * resultptr;
9757 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
9758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
9759 }
9760 return resultobj;
9761 fail:
9762 return NULL;
9763}
9764
9765
d55e5bfc
RD
9766static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9767 PyObject *obj;
9768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9769 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9770 Py_INCREF(obj);
9771 return Py_BuildValue((char *)"");
9772}
9773static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9774 PyObject *resultobj;
9775 int arg1 ;
9776 wxMouseEvent *arg2 = 0 ;
9777 long arg3 ;
9778 long arg4 ;
9779 wxTextUrlEvent *result;
9780 PyObject * obj0 = 0 ;
9781 PyObject * obj1 = 0 ;
9782 PyObject * obj2 = 0 ;
9783 PyObject * obj3 = 0 ;
9784 char *kwnames[] = {
9785 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9786 };
9787
9788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9789 arg1 = (int) SWIG_AsInt(obj0);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9792 SWIG_POINTER_EXCEPTION | 0)) == -1)
9793 SWIG_fail;
9794 if (arg2 == NULL) {
9795 PyErr_SetString(PyExc_TypeError,"null reference");
9796 SWIG_fail;
9797 }
9798 arg3 = (long) SWIG_AsLong(obj2);
9799 if (PyErr_Occurred()) SWIG_fail;
9800 arg4 = (long) SWIG_AsLong(obj3);
9801 if (PyErr_Occurred()) SWIG_fail;
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9805
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) SWIG_fail;
9808 }
9809 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9810 return resultobj;
9811 fail:
9812 return NULL;
9813}
9814
9815
9816static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj;
9818 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9819 wxMouseEvent *result;
9820 PyObject * obj0 = 0 ;
9821 char *kwnames[] = {
9822 (char *) "self", NULL
9823 };
9824
9825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9828 {
9829 PyThreadState* __tstate = wxPyBeginAllowThreads();
9830 {
9831 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9832 result = (wxMouseEvent *) &_result_ref;
9833 }
9834
9835 wxPyEndAllowThreads(__tstate);
9836 if (PyErr_Occurred()) SWIG_fail;
9837 }
9838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9839 return resultobj;
9840 fail:
9841 return NULL;
9842}
9843
9844
9845static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9846 PyObject *resultobj;
9847 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9848 long result;
9849 PyObject * obj0 = 0 ;
9850 char *kwnames[] = {
9851 (char *) "self", NULL
9852 };
9853
9854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9857 {
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9860
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 resultobj = SWIG_FromLong((long)result);
9865 return resultobj;
9866 fail:
9867 return NULL;
9868}
9869
9870
9871static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9872 PyObject *resultobj;
9873 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9874 long result;
9875 PyObject * obj0 = 0 ;
9876 char *kwnames[] = {
9877 (char *) "self", NULL
9878 };
9879
9880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9886
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_FromLong((long)result);
9891 return resultobj;
9892 fail:
9893 return NULL;
9894}
9895
9896
9897static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
9898 PyObject *obj;
9899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9900 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
9901 Py_INCREF(obj);
9902 return Py_BuildValue((char *)"");
9903}
9904static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
9905 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
9906 return 1;
9907}
9908
9909
9910static PyObject *_wrap_ScrollBarNameStr_get() {
9911 PyObject *pyobj;
9912
9913 {
9914#if wxUSE_UNICODE
9915 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9916#else
9917 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
9918#endif
9919 }
9920 return pyobj;
9921}
9922
9923
9924static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9925 PyObject *resultobj;
9926 wxWindow *arg1 = (wxWindow *) 0 ;
9927 int arg2 = (int) -1 ;
9928 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9929 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9930 wxSize const &arg4_defvalue = wxDefaultSize ;
9931 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9932 long arg5 = (long) wxSB_HORIZONTAL ;
9933 wxValidator const &arg6_defvalue = wxDefaultValidator ;
9934 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
9935 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
9936 wxString *arg7 = (wxString *) &arg7_defvalue ;
9937 wxScrollBar *result;
9938 wxPoint temp3 ;
9939 wxSize temp4 ;
9940 bool temp7 = False ;
9941 PyObject * obj0 = 0 ;
9942 PyObject * obj1 = 0 ;
9943 PyObject * obj2 = 0 ;
9944 PyObject * obj3 = 0 ;
9945 PyObject * obj4 = 0 ;
9946 PyObject * obj5 = 0 ;
9947 PyObject * obj6 = 0 ;
9948 char *kwnames[] = {
9949 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
9950 };
9951
9952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
9954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9955 if (obj1) {
9956 arg2 = (int) SWIG_AsInt(obj1);
9957 if (PyErr_Occurred()) SWIG_fail;
9958 }
9959 if (obj2) {
9960 {
9961 arg3 = &temp3;
9962 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9963 }
9964 }
9965 if (obj3) {
9966 {
9967 arg4 = &temp4;
9968 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9969 }
9970 }
9971 if (obj4) {
9972 arg5 = (long) SWIG_AsLong(obj4);
9973 if (PyErr_Occurred()) SWIG_fail;
9974 }
9975 if (obj5) {
9976 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
9977 SWIG_POINTER_EXCEPTION | 0)) == -1)
9978 SWIG_fail;
9979 if (arg6 == NULL) {
9980 PyErr_SetString(PyExc_TypeError,"null reference");
9981 SWIG_fail;
9982 }
9983 }
9984 if (obj6) {
9985 {
9986 arg7 = wxString_in_helper(obj6);
9987 if (arg7 == NULL) SWIG_fail;
9988 temp7 = True;
9989 }
9990 }
9991 {
9992 PyThreadState* __tstate = wxPyBeginAllowThreads();
9993 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
9994
9995 wxPyEndAllowThreads(__tstate);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 }
9998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
9999 {
10000 if (temp7)
10001 delete arg7;
10002 }
10003 return resultobj;
10004 fail:
10005 {
10006 if (temp7)
10007 delete arg7;
10008 }
10009 return NULL;
10010}
10011
10012
10013static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10014 PyObject *resultobj;
10015 wxScrollBar *result;
10016 char *kwnames[] = {
10017 NULL
10018 };
10019
10020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10021 {
10022 PyThreadState* __tstate = wxPyBeginAllowThreads();
10023 result = (wxScrollBar *)new wxScrollBar();
10024
10025 wxPyEndAllowThreads(__tstate);
10026 if (PyErr_Occurred()) SWIG_fail;
10027 }
10028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10029 return resultobj;
10030 fail:
10031 return NULL;
10032}
10033
10034
10035static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10036 PyObject *resultobj;
10037 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10038 wxWindow *arg2 = (wxWindow *) 0 ;
10039 int arg3 = (int) -1 ;
10040 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10041 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10042 wxSize const &arg5_defvalue = wxDefaultSize ;
10043 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10044 long arg6 = (long) wxSB_HORIZONTAL ;
10045 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10046 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10047 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10048 wxString *arg8 = (wxString *) &arg8_defvalue ;
10049 bool result;
10050 wxPoint temp4 ;
10051 wxSize temp5 ;
10052 bool temp8 = False ;
10053 PyObject * obj0 = 0 ;
10054 PyObject * obj1 = 0 ;
10055 PyObject * obj2 = 0 ;
10056 PyObject * obj3 = 0 ;
10057 PyObject * obj4 = 0 ;
10058 PyObject * obj5 = 0 ;
10059 PyObject * obj6 = 0 ;
10060 PyObject * obj7 = 0 ;
10061 char *kwnames[] = {
10062 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10063 };
10064
10065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10070 if (obj2) {
10071 arg3 = (int) SWIG_AsInt(obj2);
10072 if (PyErr_Occurred()) SWIG_fail;
10073 }
10074 if (obj3) {
10075 {
10076 arg4 = &temp4;
10077 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10078 }
10079 }
10080 if (obj4) {
10081 {
10082 arg5 = &temp5;
10083 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10084 }
10085 }
10086 if (obj5) {
10087 arg6 = (long) SWIG_AsLong(obj5);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 if (obj6) {
10091 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10092 SWIG_POINTER_EXCEPTION | 0)) == -1)
10093 SWIG_fail;
10094 if (arg7 == NULL) {
10095 PyErr_SetString(PyExc_TypeError,"null reference");
10096 SWIG_fail;
10097 }
10098 }
10099 if (obj7) {
10100 {
10101 arg8 = wxString_in_helper(obj7);
10102 if (arg8 == NULL) SWIG_fail;
10103 temp8 = True;
10104 }
10105 }
10106 {
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10109
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
10113 {
10114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10115 }
10116 {
10117 if (temp8)
10118 delete arg8;
10119 }
10120 return resultobj;
10121 fail:
10122 {
10123 if (temp8)
10124 delete arg8;
10125 }
10126 return NULL;
10127}
10128
10129
10130static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10131 PyObject *resultobj;
10132 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10133 int result;
10134 PyObject * obj0 = 0 ;
10135 char *kwnames[] = {
10136 (char *) "self", NULL
10137 };
10138
10139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10142 {
10143 PyThreadState* __tstate = wxPyBeginAllowThreads();
10144 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10145
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_FromInt((int)result);
10150 return resultobj;
10151 fail:
10152 return NULL;
10153}
10154
10155
10156static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj;
10158 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10159 int result;
10160 PyObject * obj0 = 0 ;
10161 char *kwnames[] = {
10162 (char *) "self", NULL
10163 };
10164
10165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 resultobj = SWIG_FromInt((int)result);
10176 return resultobj;
10177 fail:
10178 return NULL;
10179}
10180
10181
10182static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj;
10184 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10185 int result;
10186 PyObject * obj0 = 0 ;
10187 char *kwnames[] = {
10188 (char *) "self", NULL
10189 };
10190
10191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10197
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 resultobj = SWIG_FromInt((int)result);
10202 return resultobj;
10203 fail:
10204 return NULL;
10205}
10206
10207
10208static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10209 PyObject *resultobj;
10210 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10211 int result;
10212 PyObject * obj0 = 0 ;
10213 char *kwnames[] = {
10214 (char *) "self", NULL
10215 };
10216
10217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10220 {
10221 PyThreadState* __tstate = wxPyBeginAllowThreads();
10222 result = (int)((wxScrollBar const *)arg1)->GetRange();
10223
10224 wxPyEndAllowThreads(__tstate);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 }
10227 resultobj = SWIG_FromInt((int)result);
10228 return resultobj;
10229 fail:
10230 return NULL;
10231}
10232
10233
10234static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10235 PyObject *resultobj;
10236 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10237 bool result;
10238 PyObject * obj0 = 0 ;
10239 char *kwnames[] = {
10240 (char *) "self", NULL
10241 };
10242
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10249
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 {
10254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10255 }
10256 return resultobj;
10257 fail:
10258 return NULL;
10259}
10260
10261
10262static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10263 PyObject *resultobj;
10264 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10265 int arg2 ;
10266 PyObject * obj0 = 0 ;
10267 PyObject * obj1 = 0 ;
10268 char *kwnames[] = {
10269 (char *) "self",(char *) "viewStart", NULL
10270 };
10271
10272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10275 arg2 = (int) SWIG_AsInt(obj1);
10276 if (PyErr_Occurred()) SWIG_fail;
10277 {
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 (arg1)->SetThumbPosition(arg2);
10280
10281 wxPyEndAllowThreads(__tstate);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 }
10284 Py_INCREF(Py_None); resultobj = Py_None;
10285 return resultobj;
10286 fail:
10287 return NULL;
10288}
10289
10290
10291static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
10292 PyObject *resultobj;
10293 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10294 int arg2 ;
10295 int arg3 ;
10296 int arg4 ;
10297 int arg5 ;
10298 bool arg6 = (bool) True ;
10299 PyObject * obj0 = 0 ;
10300 PyObject * obj1 = 0 ;
10301 PyObject * obj2 = 0 ;
10302 PyObject * obj3 = 0 ;
10303 PyObject * obj4 = 0 ;
10304 PyObject * obj5 = 0 ;
10305 char *kwnames[] = {
10306 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10307 };
10308
10309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10312 arg2 = (int) SWIG_AsInt(obj1);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 arg3 = (int) SWIG_AsInt(obj2);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 arg4 = (int) SWIG_AsInt(obj3);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 arg5 = (int) SWIG_AsInt(obj4);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 if (obj5) {
10321 arg6 = (bool) SWIG_AsBool(obj5);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 {
10325 PyThreadState* __tstate = wxPyBeginAllowThreads();
10326 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10327
10328 wxPyEndAllowThreads(__tstate);
10329 if (PyErr_Occurred()) SWIG_fail;
10330 }
10331 Py_INCREF(Py_None); resultobj = Py_None;
10332 return resultobj;
10333 fail:
10334 return NULL;
10335}
10336
10337
f20a2e1f
RD
10338static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10339 PyObject *resultobj;
10340 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10341 wxVisualAttributes result;
10342 PyObject * obj0 = 0 ;
10343 char *kwnames[] = {
10344 (char *) "variant", NULL
10345 };
10346
10347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10348 if (obj0) {
10349 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10355
10356 wxPyEndAllowThreads(__tstate);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
10359 {
10360 wxVisualAttributes * resultptr;
10361 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10362 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10363 }
10364 return resultobj;
10365 fail:
10366 return NULL;
10367}
10368
10369
d55e5bfc
RD
10370static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
10371 PyObject *obj;
10372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10373 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10374 Py_INCREF(obj);
10375 return Py_BuildValue((char *)"");
10376}
10377static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
10378 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10379 return 1;
10380}
10381
10382
10383static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10384 PyObject *pyobj;
10385
10386 {
10387#if wxUSE_UNICODE
10388 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10389#else
10390 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10391#endif
10392 }
10393 return pyobj;
10394}
10395
10396
10397static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
10398 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10399 return 1;
10400}
10401
10402
10403static PyObject *_wrap_SpinCtrlNameStr_get() {
10404 PyObject *pyobj;
10405
10406 {
10407#if wxUSE_UNICODE
10408 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10409#else
10410 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10411#endif
10412 }
10413 return pyobj;
10414}
10415
10416
10417static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10418 PyObject *resultobj;
10419 wxWindow *arg1 = (wxWindow *) 0 ;
10420 int arg2 = (int) -1 ;
10421 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10422 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10423 wxSize const &arg4_defvalue = wxDefaultSize ;
10424 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10425 long arg5 = (long) wxSP_HORIZONTAL ;
10426 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10427 wxString *arg6 = (wxString *) &arg6_defvalue ;
10428 wxSpinButton *result;
10429 wxPoint temp3 ;
10430 wxSize temp4 ;
10431 bool temp6 = False ;
10432 PyObject * obj0 = 0 ;
10433 PyObject * obj1 = 0 ;
10434 PyObject * obj2 = 0 ;
10435 PyObject * obj3 = 0 ;
10436 PyObject * obj4 = 0 ;
10437 PyObject * obj5 = 0 ;
10438 char *kwnames[] = {
10439 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10440 };
10441
10442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10445 if (obj1) {
10446 arg2 = (int) SWIG_AsInt(obj1);
10447 if (PyErr_Occurred()) SWIG_fail;
10448 }
10449 if (obj2) {
10450 {
10451 arg3 = &temp3;
10452 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10453 }
10454 }
10455 if (obj3) {
10456 {
10457 arg4 = &temp4;
10458 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10459 }
10460 }
10461 if (obj4) {
10462 arg5 = (long) SWIG_AsLong(obj4);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 if (obj5) {
10466 {
10467 arg6 = wxString_in_helper(obj5);
10468 if (arg6 == NULL) SWIG_fail;
10469 temp6 = True;
10470 }
10471 }
10472 {
10473 PyThreadState* __tstate = wxPyBeginAllowThreads();
10474 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10475
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10480 {
10481 if (temp6)
10482 delete arg6;
10483 }
10484 return resultobj;
10485 fail:
10486 {
10487 if (temp6)
10488 delete arg6;
10489 }
10490 return NULL;
10491}
10492
10493
10494static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10495 PyObject *resultobj;
10496 wxSpinButton *result;
10497 char *kwnames[] = {
10498 NULL
10499 };
10500
10501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 result = (wxSpinButton *)new wxSpinButton();
10505
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10510 return resultobj;
10511 fail:
10512 return NULL;
10513}
10514
10515
10516static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10517 PyObject *resultobj;
10518 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10519 wxWindow *arg2 = (wxWindow *) 0 ;
10520 int arg3 = (int) -1 ;
10521 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10522 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10523 wxSize const &arg5_defvalue = wxDefaultSize ;
10524 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10525 long arg6 = (long) wxSP_HORIZONTAL ;
10526 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10527 wxString *arg7 = (wxString *) &arg7_defvalue ;
10528 bool result;
10529 wxPoint temp4 ;
10530 wxSize temp5 ;
10531 bool temp7 = False ;
10532 PyObject * obj0 = 0 ;
10533 PyObject * obj1 = 0 ;
10534 PyObject * obj2 = 0 ;
10535 PyObject * obj3 = 0 ;
10536 PyObject * obj4 = 0 ;
10537 PyObject * obj5 = 0 ;
10538 PyObject * obj6 = 0 ;
10539 char *kwnames[] = {
10540 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10541 };
10542
10543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10546 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10548 if (obj2) {
10549 arg3 = (int) SWIG_AsInt(obj2);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
10552 if (obj3) {
10553 {
10554 arg4 = &temp4;
10555 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10556 }
10557 }
10558 if (obj4) {
10559 {
10560 arg5 = &temp5;
10561 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10562 }
10563 }
10564 if (obj5) {
10565 arg6 = (long) SWIG_AsLong(obj5);
10566 if (PyErr_Occurred()) SWIG_fail;
10567 }
10568 if (obj6) {
10569 {
10570 arg7 = wxString_in_helper(obj6);
10571 if (arg7 == NULL) SWIG_fail;
10572 temp7 = True;
10573 }
10574 }
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10578
10579 wxPyEndAllowThreads(__tstate);
10580 if (PyErr_Occurred()) SWIG_fail;
10581 }
10582 {
10583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10584 }
10585 {
10586 if (temp7)
10587 delete arg7;
10588 }
10589 return resultobj;
10590 fail:
10591 {
10592 if (temp7)
10593 delete arg7;
10594 }
10595 return NULL;
10596}
10597
10598
10599static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj;
10601 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10602 int result;
10603 PyObject * obj0 = 0 ;
10604 char *kwnames[] = {
10605 (char *) "self", NULL
10606 };
10607
10608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 result = (int)((wxSpinButton const *)arg1)->GetValue();
10614
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 resultobj = SWIG_FromInt((int)result);
10619 return resultobj;
10620 fail:
10621 return NULL;
10622}
10623
10624
10625static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject *resultobj;
10627 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10628 int result;
10629 PyObject * obj0 = 0 ;
10630 char *kwnames[] = {
10631 (char *) "self", NULL
10632 };
10633
10634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10637 {
10638 PyThreadState* __tstate = wxPyBeginAllowThreads();
10639 result = (int)((wxSpinButton const *)arg1)->GetMin();
10640
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 resultobj = SWIG_FromInt((int)result);
10645 return resultobj;
10646 fail:
10647 return NULL;
10648}
10649
10650
10651static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj;
10653 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10654 int result;
10655 PyObject * obj0 = 0 ;
10656 char *kwnames[] = {
10657 (char *) "self", NULL
10658 };
10659
10660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10663 {
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 result = (int)((wxSpinButton const *)arg1)->GetMax();
10666
10667 wxPyEndAllowThreads(__tstate);
10668 if (PyErr_Occurred()) SWIG_fail;
10669 }
10670 resultobj = SWIG_FromInt((int)result);
10671 return resultobj;
10672 fail:
10673 return NULL;
10674}
10675
10676
10677static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10678 PyObject *resultobj;
10679 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10680 int arg2 ;
10681 PyObject * obj0 = 0 ;
10682 PyObject * obj1 = 0 ;
10683 char *kwnames[] = {
10684 (char *) "self",(char *) "val", NULL
10685 };
10686
10687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10690 arg2 = (int) SWIG_AsInt(obj1);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 {
10693 PyThreadState* __tstate = wxPyBeginAllowThreads();
10694 (arg1)->SetValue(arg2);
10695
10696 wxPyEndAllowThreads(__tstate);
10697 if (PyErr_Occurred()) SWIG_fail;
10698 }
10699 Py_INCREF(Py_None); resultobj = Py_None;
10700 return resultobj;
10701 fail:
10702 return NULL;
10703}
10704
10705
10706static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10707 PyObject *resultobj;
10708 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10709 int arg2 ;
10710 PyObject * obj0 = 0 ;
10711 PyObject * obj1 = 0 ;
10712 char *kwnames[] = {
10713 (char *) "self",(char *) "minVal", NULL
10714 };
10715
10716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10719 arg2 = (int) SWIG_AsInt(obj1);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 {
10722 PyThreadState* __tstate = wxPyBeginAllowThreads();
10723 (arg1)->SetMin(arg2);
10724
10725 wxPyEndAllowThreads(__tstate);
10726 if (PyErr_Occurred()) SWIG_fail;
10727 }
10728 Py_INCREF(Py_None); resultobj = Py_None;
10729 return resultobj;
10730 fail:
10731 return NULL;
10732}
10733
10734
10735static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10736 PyObject *resultobj;
10737 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10738 int arg2 ;
10739 PyObject * obj0 = 0 ;
10740 PyObject * obj1 = 0 ;
10741 char *kwnames[] = {
10742 (char *) "self",(char *) "maxVal", NULL
10743 };
10744
10745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10748 arg2 = (int) SWIG_AsInt(obj1);
10749 if (PyErr_Occurred()) SWIG_fail;
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 (arg1)->SetMax(arg2);
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 Py_INCREF(Py_None); resultobj = Py_None;
10758 return resultobj;
10759 fail:
10760 return NULL;
10761}
10762
10763
10764static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10765 PyObject *resultobj;
10766 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10767 int arg2 ;
10768 int arg3 ;
10769 PyObject * obj0 = 0 ;
10770 PyObject * obj1 = 0 ;
10771 PyObject * obj2 = 0 ;
10772 char *kwnames[] = {
10773 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10774 };
10775
10776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10779 arg2 = (int) SWIG_AsInt(obj1);
10780 if (PyErr_Occurred()) SWIG_fail;
10781 arg3 = (int) SWIG_AsInt(obj2);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 {
10784 PyThreadState* __tstate = wxPyBeginAllowThreads();
10785 (arg1)->SetRange(arg2,arg3);
10786
10787 wxPyEndAllowThreads(__tstate);
10788 if (PyErr_Occurred()) SWIG_fail;
10789 }
f20a2e1f
RD
10790 Py_INCREF(Py_None); resultobj = Py_None;
10791 return resultobj;
10792 fail:
10793 return NULL;
10794}
10795
10796
10797static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10798 PyObject *resultobj;
10799 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10800 bool result;
10801 PyObject * obj0 = 0 ;
10802 char *kwnames[] = {
10803 (char *) "self", NULL
10804 };
10805
10806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10812
10813 wxPyEndAllowThreads(__tstate);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 }
10816 {
10817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10818 }
d55e5bfc
RD
10819 return resultobj;
10820 fail:
10821 return NULL;
10822}
10823
10824
f20a2e1f 10825static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 10826 PyObject *resultobj;
f20a2e1f
RD
10827 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10828 wxVisualAttributes result;
d55e5bfc
RD
10829 PyObject * obj0 = 0 ;
10830 char *kwnames[] = {
f20a2e1f 10831 (char *) "variant", NULL
d55e5bfc
RD
10832 };
10833
f20a2e1f
RD
10834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10835 if (obj0) {
10836 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
d55e5bfc
RD
10839 {
10840 PyThreadState* __tstate = wxPyBeginAllowThreads();
f20a2e1f 10841 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
d55e5bfc
RD
10842
10843 wxPyEndAllowThreads(__tstate);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 }
10846 {
f20a2e1f
RD
10847 wxVisualAttributes * resultptr;
10848 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10849 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
d55e5bfc
RD
10850 }
10851 return resultobj;
10852 fail:
10853 return NULL;
10854}
10855
10856
10857static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10858 PyObject *obj;
10859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10860 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10861 Py_INCREF(obj);
10862 return Py_BuildValue((char *)"");
10863}
10864static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10865 PyObject *resultobj;
10866 wxWindow *arg1 = (wxWindow *) 0 ;
10867 int arg2 = (int) -1 ;
10868 wxString const &arg3_defvalue = wxPyEmptyString ;
10869 wxString *arg3 = (wxString *) &arg3_defvalue ;
10870 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10871 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10872 wxSize const &arg5_defvalue = wxDefaultSize ;
10873 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10874 long arg6 = (long) wxSP_ARROW_KEYS ;
10875 int arg7 = (int) 0 ;
10876 int arg8 = (int) 100 ;
10877 int arg9 = (int) 0 ;
10878 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10879 wxString *arg10 = (wxString *) &arg10_defvalue ;
10880 wxSpinCtrl *result;
10881 bool temp3 = False ;
10882 wxPoint temp4 ;
10883 wxSize temp5 ;
10884 bool temp10 = False ;
10885 PyObject * obj0 = 0 ;
10886 PyObject * obj1 = 0 ;
10887 PyObject * obj2 = 0 ;
10888 PyObject * obj3 = 0 ;
10889 PyObject * obj4 = 0 ;
10890 PyObject * obj5 = 0 ;
10891 PyObject * obj6 = 0 ;
10892 PyObject * obj7 = 0 ;
10893 PyObject * obj8 = 0 ;
10894 PyObject * obj9 = 0 ;
10895 char *kwnames[] = {
10896 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
10897 };
10898
10899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
10900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10902 if (obj1) {
10903 arg2 = (int) SWIG_AsInt(obj1);
10904 if (PyErr_Occurred()) SWIG_fail;
10905 }
10906 if (obj2) {
10907 {
10908 arg3 = wxString_in_helper(obj2);
10909 if (arg3 == NULL) SWIG_fail;
10910 temp3 = True;
10911 }
10912 }
10913 if (obj3) {
10914 {
10915 arg4 = &temp4;
10916 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10917 }
10918 }
10919 if (obj4) {
10920 {
10921 arg5 = &temp5;
10922 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10923 }
10924 }
10925 if (obj5) {
10926 arg6 = (long) SWIG_AsLong(obj5);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 }
10929 if (obj6) {
10930 arg7 = (int) SWIG_AsInt(obj6);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
10933 if (obj7) {
10934 arg8 = (int) SWIG_AsInt(obj7);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 if (obj8) {
10938 arg9 = (int) SWIG_AsInt(obj8);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 if (obj9) {
10942 {
10943 arg10 = wxString_in_helper(obj9);
10944 if (arg10 == NULL) SWIG_fail;
10945 temp10 = True;
10946 }
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
10951
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10956 {
10957 if (temp3)
10958 delete arg3;
10959 }
10960 {
10961 if (temp10)
10962 delete arg10;
10963 }
10964 return resultobj;
10965 fail:
10966 {
10967 if (temp3)
10968 delete arg3;
10969 }
10970 {
10971 if (temp10)
10972 delete arg10;
10973 }
10974 return NULL;
10975}
10976
10977
10978static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10979 PyObject *resultobj;
10980 wxSpinCtrl *result;
10981 char *kwnames[] = {
10982 NULL
10983 };
10984
10985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 result = (wxSpinCtrl *)new wxSpinCtrl();
10989
10990 wxPyEndAllowThreads(__tstate);
10991 if (PyErr_Occurred()) SWIG_fail;
10992 }
10993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
10994 return resultobj;
10995 fail:
10996 return NULL;
10997}
10998
10999
11000static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11001 PyObject *resultobj;
11002 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11003 wxWindow *arg2 = (wxWindow *) 0 ;
11004 int arg3 = (int) -1 ;
11005 wxString const &arg4_defvalue = wxPyEmptyString ;
11006 wxString *arg4 = (wxString *) &arg4_defvalue ;
11007 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11008 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11009 wxSize const &arg6_defvalue = wxDefaultSize ;
11010 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11011 long arg7 = (long) wxSP_ARROW_KEYS ;
11012 int arg8 = (int) 0 ;
11013 int arg9 = (int) 100 ;
11014 int arg10 = (int) 0 ;
11015 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11016 wxString *arg11 = (wxString *) &arg11_defvalue ;
11017 bool result;
11018 bool temp4 = False ;
11019 wxPoint temp5 ;
11020 wxSize temp6 ;
11021 bool temp11 = False ;
11022 PyObject * obj0 = 0 ;
11023 PyObject * obj1 = 0 ;
11024 PyObject * obj2 = 0 ;
11025 PyObject * obj3 = 0 ;
11026 PyObject * obj4 = 0 ;
11027 PyObject * obj5 = 0 ;
11028 PyObject * obj6 = 0 ;
11029 PyObject * obj7 = 0 ;
11030 PyObject * obj8 = 0 ;
11031 PyObject * obj9 = 0 ;
11032 PyObject * obj10 = 0 ;
11033 char *kwnames[] = {
11034 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11035 };
11036
11037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11040 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11042 if (obj2) {
11043 arg3 = (int) SWIG_AsInt(obj2);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 }
11046 if (obj3) {
11047 {
11048 arg4 = wxString_in_helper(obj3);
11049 if (arg4 == NULL) SWIG_fail;
11050 temp4 = True;
11051 }
11052 }
11053 if (obj4) {
11054 {
11055 arg5 = &temp5;
11056 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11057 }
11058 }
11059 if (obj5) {
11060 {
11061 arg6 = &temp6;
11062 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11063 }
11064 }
11065 if (obj6) {
11066 arg7 = (long) SWIG_AsLong(obj6);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 if (obj7) {
11070 arg8 = (int) SWIG_AsInt(obj7);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 if (obj8) {
11074 arg9 = (int) SWIG_AsInt(obj8);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 if (obj9) {
11078 arg10 = (int) SWIG_AsInt(obj9);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 if (obj10) {
11082 {
11083 arg11 = wxString_in_helper(obj10);
11084 if (arg11 == NULL) SWIG_fail;
11085 temp11 = True;
11086 }
11087 }
11088 {
11089 PyThreadState* __tstate = wxPyBeginAllowThreads();
11090 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11091
11092 wxPyEndAllowThreads(__tstate);
11093 if (PyErr_Occurred()) SWIG_fail;
11094 }
11095 {
11096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11097 }
11098 {
11099 if (temp4)
11100 delete arg4;
11101 }
11102 {
11103 if (temp11)
11104 delete arg11;
11105 }
11106 return resultobj;
11107 fail:
11108 {
11109 if (temp4)
11110 delete arg4;
11111 }
11112 {
11113 if (temp11)
11114 delete arg11;
11115 }
11116 return NULL;
11117}
11118
11119
11120static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11121 PyObject *resultobj;
11122 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11123 int result;
11124 PyObject * obj0 = 0 ;
11125 char *kwnames[] = {
11126 (char *) "self", NULL
11127 };
11128
11129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11132 {
11133 PyThreadState* __tstate = wxPyBeginAllowThreads();
11134 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11135
11136 wxPyEndAllowThreads(__tstate);
11137 if (PyErr_Occurred()) SWIG_fail;
11138 }
11139 resultobj = SWIG_FromInt((int)result);
11140 return resultobj;
11141 fail:
11142 return NULL;
11143}
11144
11145
11146static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11147 PyObject *resultobj;
11148 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11149 int arg2 ;
11150 PyObject * obj0 = 0 ;
11151 PyObject * obj1 = 0 ;
11152 char *kwnames[] = {
11153 (char *) "self",(char *) "value", NULL
11154 };
11155
11156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11159 arg2 = (int) SWIG_AsInt(obj1);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 (arg1)->SetValue(arg2);
11164
11165 wxPyEndAllowThreads(__tstate);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 Py_INCREF(Py_None); resultobj = Py_None;
11169 return resultobj;
11170 fail:
11171 return NULL;
11172}
11173
11174
11175static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj;
11177 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11178 wxString *arg2 = 0 ;
11179 bool temp2 = False ;
11180 PyObject * obj0 = 0 ;
11181 PyObject * obj1 = 0 ;
11182 char *kwnames[] = {
11183 (char *) "self",(char *) "text", NULL
11184 };
11185
11186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11189 {
11190 arg2 = wxString_in_helper(obj1);
11191 if (arg2 == NULL) SWIG_fail;
11192 temp2 = True;
11193 }
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 (arg1)->SetValue((wxString const &)*arg2);
11197
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 Py_INCREF(Py_None); resultobj = Py_None;
11202 {
11203 if (temp2)
11204 delete arg2;
11205 }
11206 return resultobj;
11207 fail:
11208 {
11209 if (temp2)
11210 delete arg2;
11211 }
11212 return NULL;
11213}
11214
11215
11216static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11217 PyObject *resultobj;
11218 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11219 int arg2 ;
11220 int arg3 ;
11221 PyObject * obj0 = 0 ;
11222 PyObject * obj1 = 0 ;
11223 PyObject * obj2 = 0 ;
11224 char *kwnames[] = {
11225 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11226 };
11227
11228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11231 arg2 = (int) SWIG_AsInt(obj1);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 arg3 = (int) SWIG_AsInt(obj2);
11234 if (PyErr_Occurred()) SWIG_fail;
11235 {
11236 PyThreadState* __tstate = wxPyBeginAllowThreads();
11237 (arg1)->SetRange(arg2,arg3);
11238
11239 wxPyEndAllowThreads(__tstate);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 Py_INCREF(Py_None); resultobj = Py_None;
11243 return resultobj;
11244 fail:
11245 return NULL;
11246}
11247
11248
11249static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11250 PyObject *resultobj;
11251 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11252 int result;
11253 PyObject * obj0 = 0 ;
11254 char *kwnames[] = {
11255 (char *) "self", NULL
11256 };
11257
11258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11264
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 resultobj = SWIG_FromInt((int)result);
11269 return resultobj;
11270 fail:
11271 return NULL;
11272}
11273
11274
11275static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11276 PyObject *resultobj;
11277 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11278 int result;
11279 PyObject * obj0 = 0 ;
11280 char *kwnames[] = {
11281 (char *) "self", NULL
11282 };
11283
11284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11290
11291 wxPyEndAllowThreads(__tstate);
11292 if (PyErr_Occurred()) SWIG_fail;
11293 }
11294 resultobj = SWIG_FromInt((int)result);
11295 return resultobj;
11296 fail:
11297 return NULL;
11298}
11299
11300
11301static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11302 PyObject *resultobj;
11303 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11304 long arg2 ;
11305 long arg3 ;
11306 PyObject * obj0 = 0 ;
11307 PyObject * obj1 = 0 ;
11308 PyObject * obj2 = 0 ;
11309 char *kwnames[] = {
11310 (char *) "self",(char *) "from",(char *) "to", NULL
11311 };
11312
11313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11316 arg2 = (long) SWIG_AsLong(obj1);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 arg3 = (long) SWIG_AsLong(obj2);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 (arg1)->SetSelection(arg2,arg3);
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 Py_INCREF(Py_None); resultobj = Py_None;
11328 return resultobj;
11329 fail:
11330 return NULL;
11331}
11332
11333
f20a2e1f
RD
11334static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
11335 PyObject *resultobj;
11336 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11337 wxVisualAttributes result;
11338 PyObject * obj0 = 0 ;
11339 char *kwnames[] = {
11340 (char *) "variant", NULL
11341 };
11342
11343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11344 if (obj0) {
11345 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 }
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11351
11352 wxPyEndAllowThreads(__tstate);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 }
11355 {
11356 wxVisualAttributes * resultptr;
11357 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11358 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11359 }
11360 return resultobj;
11361 fail:
11362 return NULL;
11363}
11364
11365
d55e5bfc
RD
11366static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
11367 PyObject *obj;
11368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11369 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11370 Py_INCREF(obj);
11371 return Py_BuildValue((char *)"");
11372}
11373static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11374 PyObject *resultobj;
11375 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11376 int arg2 = (int) 0 ;
11377 wxSpinEvent *result;
11378 PyObject * obj0 = 0 ;
11379 PyObject * obj1 = 0 ;
11380 char *kwnames[] = {
11381 (char *) "commandType",(char *) "winid", NULL
11382 };
11383
11384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11385 if (obj0) {
11386 arg1 = (wxEventType) SWIG_AsInt(obj0);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 }
11389 if (obj1) {
11390 arg2 = (int) SWIG_AsInt(obj1);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11396
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 }
11400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11401 return resultobj;
11402 fail:
11403 return NULL;
11404}
11405
11406
11407static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11408 PyObject *resultobj;
11409 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11410 int result;
11411 PyObject * obj0 = 0 ;
11412 char *kwnames[] = {
11413 (char *) "self", NULL
11414 };
11415
11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11422
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 resultobj = SWIG_FromInt((int)result);
11427 return resultobj;
11428 fail:
11429 return NULL;
11430}
11431
11432
11433static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj;
11435 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11436 int arg2 ;
11437 PyObject * obj0 = 0 ;
11438 PyObject * obj1 = 0 ;
11439 char *kwnames[] = {
11440 (char *) "self",(char *) "pos", NULL
11441 };
11442
11443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11446 arg2 = (int) SWIG_AsInt(obj1);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 {
11449 PyThreadState* __tstate = wxPyBeginAllowThreads();
11450 (arg1)->SetPosition(arg2);
11451
11452 wxPyEndAllowThreads(__tstate);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 }
11455 Py_INCREF(Py_None); resultobj = Py_None;
11456 return resultobj;
11457 fail:
11458 return NULL;
11459}
11460
11461
11462static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
11463 PyObject *obj;
11464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11465 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11466 Py_INCREF(obj);
11467 return Py_BuildValue((char *)"");
11468}
11469static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
11470 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11471 return 1;
11472}
11473
11474
11475static PyObject *_wrap_RadioBoxNameStr_get() {
11476 PyObject *pyobj;
11477
11478 {
11479#if wxUSE_UNICODE
11480 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11481#else
11482 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11483#endif
11484 }
11485 return pyobj;
11486}
11487
11488
11489static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
11490 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11491 return 1;
11492}
11493
11494
11495static PyObject *_wrap_RadioButtonNameStr_get() {
11496 PyObject *pyobj;
11497
11498 {
11499#if wxUSE_UNICODE
11500 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11501#else
11502 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11503#endif
11504 }
11505 return pyobj;
11506}
11507
11508
11509static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11510 PyObject *resultobj;
11511 wxWindow *arg1 = (wxWindow *) 0 ;
11512 int arg2 ;
11513 wxString *arg3 = 0 ;
11514 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11515 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11516 wxSize const &arg5_defvalue = wxDefaultSize ;
11517 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11518 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11519 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11520 int arg7 = (int) 0 ;
11521 long arg8 = (long) wxRA_HORIZONTAL ;
11522 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11523 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11524 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11525 wxString *arg10 = (wxString *) &arg10_defvalue ;
11526 wxRadioBox *result;
11527 bool temp3 = False ;
11528 wxPoint temp4 ;
11529 wxSize temp5 ;
11530 bool temp6 = False ;
11531 bool temp10 = False ;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11534 PyObject * obj2 = 0 ;
11535 PyObject * obj3 = 0 ;
11536 PyObject * obj4 = 0 ;
11537 PyObject * obj5 = 0 ;
11538 PyObject * obj6 = 0 ;
11539 PyObject * obj7 = 0 ;
11540 PyObject * obj8 = 0 ;
11541 PyObject * obj9 = 0 ;
11542 char *kwnames[] = {
11543 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11544 };
11545
11546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11549 arg2 = (int) SWIG_AsInt(obj1);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 {
11552 arg3 = wxString_in_helper(obj2);
11553 if (arg3 == NULL) SWIG_fail;
11554 temp3 = True;
11555 }
11556 if (obj3) {
11557 {
11558 arg4 = &temp4;
11559 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11560 }
11561 }
11562 if (obj4) {
11563 {
11564 arg5 = &temp5;
11565 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11566 }
11567 }
11568 if (obj5) {
11569 {
11570 if (! PySequence_Check(obj5)) {
11571 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11572 SWIG_fail;
11573 }
11574 arg6 = new wxArrayString;
11575 temp6 = True;
11576 int i, len=PySequence_Length(obj5);
11577 for (i=0; i<len; i++) {
11578 PyObject* item = PySequence_GetItem(obj5, i);
11579#if wxUSE_UNICODE
11580 PyObject* str = PyObject_Unicode(item);
11581#else
11582 PyObject* str = PyObject_Str(item);
11583#endif
11584 if (PyErr_Occurred()) SWIG_fail;
11585 arg6->Add(Py2wxString(str));
11586 Py_DECREF(item);
11587 Py_DECREF(str);
11588 }
11589 }
11590 }
11591 if (obj6) {
11592 arg7 = (int) SWIG_AsInt(obj6);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 if (obj7) {
11596 arg8 = (long) SWIG_AsLong(obj7);
11597 if (PyErr_Occurred()) SWIG_fail;
11598 }
11599 if (obj8) {
11600 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11601 SWIG_POINTER_EXCEPTION | 0)) == -1)
11602 SWIG_fail;
11603 if (arg9 == NULL) {
11604 PyErr_SetString(PyExc_TypeError,"null reference");
11605 SWIG_fail;
11606 }
11607 }
11608 if (obj9) {
11609 {
11610 arg10 = wxString_in_helper(obj9);
11611 if (arg10 == NULL) SWIG_fail;
11612 temp10 = True;
11613 }
11614 }
11615 {
11616 PyThreadState* __tstate = wxPyBeginAllowThreads();
11617 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);
11618
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11623 {
11624 if (temp3)
11625 delete arg3;
11626 }
11627 {
11628 if (temp6) delete arg6;
11629 }
11630 {
11631 if (temp10)
11632 delete arg10;
11633 }
11634 return resultobj;
11635 fail:
11636 {
11637 if (temp3)
11638 delete arg3;
11639 }
11640 {
11641 if (temp6) delete arg6;
11642 }
11643 {
11644 if (temp10)
11645 delete arg10;
11646 }
11647 return NULL;
11648}
11649
11650
11651static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11652 PyObject *resultobj;
11653 wxRadioBox *result;
11654 char *kwnames[] = {
11655 NULL
11656 };
11657
11658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11659 {
11660 PyThreadState* __tstate = wxPyBeginAllowThreads();
11661 result = (wxRadioBox *)new wxRadioBox();
11662
11663 wxPyEndAllowThreads(__tstate);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11667 return resultobj;
11668 fail:
11669 return NULL;
11670}
11671
11672
11673static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11674 PyObject *resultobj;
11675 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11676 wxWindow *arg2 = (wxWindow *) 0 ;
11677 int arg3 ;
11678 wxString *arg4 = 0 ;
11679 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11680 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11681 wxSize const &arg6_defvalue = wxDefaultSize ;
11682 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11683 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11684 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11685 int arg8 = (int) 0 ;
11686 long arg9 = (long) wxRA_HORIZONTAL ;
11687 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11688 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11689 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11690 wxString *arg11 = (wxString *) &arg11_defvalue ;
11691 bool result;
11692 bool temp4 = False ;
11693 wxPoint temp5 ;
11694 wxSize temp6 ;
11695 bool temp7 = False ;
11696 bool temp11 = False ;
11697 PyObject * obj0 = 0 ;
11698 PyObject * obj1 = 0 ;
11699 PyObject * obj2 = 0 ;
11700 PyObject * obj3 = 0 ;
11701 PyObject * obj4 = 0 ;
11702 PyObject * obj5 = 0 ;
11703 PyObject * obj6 = 0 ;
11704 PyObject * obj7 = 0 ;
11705 PyObject * obj8 = 0 ;
11706 PyObject * obj9 = 0 ;
11707 PyObject * obj10 = 0 ;
11708 char *kwnames[] = {
11709 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11710 };
11711
11712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11717 arg3 = (int) SWIG_AsInt(obj2);
11718 if (PyErr_Occurred()) SWIG_fail;
11719 {
11720 arg4 = wxString_in_helper(obj3);
11721 if (arg4 == NULL) SWIG_fail;
11722 temp4 = True;
11723 }
11724 if (obj4) {
11725 {
11726 arg5 = &temp5;
11727 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11728 }
11729 }
11730 if (obj5) {
11731 {
11732 arg6 = &temp6;
11733 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11734 }
11735 }
11736 if (obj6) {
11737 {
11738 if (! PySequence_Check(obj6)) {
11739 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11740 SWIG_fail;
11741 }
11742 arg7 = new wxArrayString;
11743 temp7 = True;
11744 int i, len=PySequence_Length(obj6);
11745 for (i=0; i<len; i++) {
11746 PyObject* item = PySequence_GetItem(obj6, i);
11747#if wxUSE_UNICODE
11748 PyObject* str = PyObject_Unicode(item);
11749#else
11750 PyObject* str = PyObject_Str(item);
11751#endif
11752 if (PyErr_Occurred()) SWIG_fail;
11753 arg7->Add(Py2wxString(str));
11754 Py_DECREF(item);
11755 Py_DECREF(str);
11756 }
11757 }
11758 }
11759 if (obj7) {
11760 arg8 = (int) SWIG_AsInt(obj7);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 if (obj8) {
11764 arg9 = (long) SWIG_AsLong(obj8);
11765 if (PyErr_Occurred()) SWIG_fail;
11766 }
11767 if (obj9) {
11768 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11769 SWIG_POINTER_EXCEPTION | 0)) == -1)
11770 SWIG_fail;
11771 if (arg10 == NULL) {
11772 PyErr_SetString(PyExc_TypeError,"null reference");
11773 SWIG_fail;
11774 }
11775 }
11776 if (obj10) {
11777 {
11778 arg11 = wxString_in_helper(obj10);
11779 if (arg11 == NULL) SWIG_fail;
11780 temp11 = True;
11781 }
11782 }
11783 {
11784 PyThreadState* __tstate = wxPyBeginAllowThreads();
11785 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);
11786
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 {
11791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11792 }
11793 {
11794 if (temp4)
11795 delete arg4;
11796 }
11797 {
11798 if (temp7) delete arg7;
11799 }
11800 {
11801 if (temp11)
11802 delete arg11;
11803 }
11804 return resultobj;
11805 fail:
11806 {
11807 if (temp4)
11808 delete arg4;
11809 }
11810 {
11811 if (temp7) delete arg7;
11812 }
11813 {
11814 if (temp11)
11815 delete arg11;
11816 }
11817 return NULL;
11818}
11819
11820
11821static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11822 PyObject *resultobj;
11823 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11824 int arg2 ;
11825 PyObject * obj0 = 0 ;
11826 PyObject * obj1 = 0 ;
11827 char *kwnames[] = {
11828 (char *) "self",(char *) "n", NULL
11829 };
11830
11831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11834 arg2 = (int) SWIG_AsInt(obj1);
11835 if (PyErr_Occurred()) SWIG_fail;
11836 {
11837 PyThreadState* __tstate = wxPyBeginAllowThreads();
11838 (arg1)->SetSelection(arg2);
11839
11840 wxPyEndAllowThreads(__tstate);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 Py_INCREF(Py_None); resultobj = Py_None;
11844 return resultobj;
11845 fail:
11846 return NULL;
11847}
11848
11849
11850static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11851 PyObject *resultobj;
11852 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11853 int result;
11854 PyObject * obj0 = 0 ;
11855 char *kwnames[] = {
11856 (char *) "self", NULL
11857 };
11858
11859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11862 {
11863 PyThreadState* __tstate = wxPyBeginAllowThreads();
11864 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11865
11866 wxPyEndAllowThreads(__tstate);
11867 if (PyErr_Occurred()) SWIG_fail;
11868 }
11869 resultobj = SWIG_FromInt((int)result);
11870 return resultobj;
11871 fail:
11872 return NULL;
11873}
11874
11875
11876static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11877 PyObject *resultobj;
11878 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11879 wxString result;
11880 PyObject * obj0 = 0 ;
11881 char *kwnames[] = {
11882 (char *) "self", NULL
11883 };
11884
11885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
11886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11888 {
11889 PyThreadState* __tstate = wxPyBeginAllowThreads();
11890 result = ((wxRadioBox const *)arg1)->GetStringSelection();
11891
11892 wxPyEndAllowThreads(__tstate);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 }
11895 {
11896#if wxUSE_UNICODE
11897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11898#else
11899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11900#endif
11901 }
11902 return resultobj;
11903 fail:
11904 return NULL;
11905}
11906
11907
11908static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11909 PyObject *resultobj;
11910 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11911 wxString *arg2 = 0 ;
11912 bool result;
11913 bool temp2 = False ;
11914 PyObject * obj0 = 0 ;
11915 PyObject * obj1 = 0 ;
11916 char *kwnames[] = {
11917 (char *) "self",(char *) "s", NULL
11918 };
11919
11920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
11921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11923 {
11924 arg2 = wxString_in_helper(obj1);
11925 if (arg2 == NULL) SWIG_fail;
11926 temp2 = True;
11927 }
11928 {
11929 PyThreadState* __tstate = wxPyBeginAllowThreads();
11930 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
11931
11932 wxPyEndAllowThreads(__tstate);
11933 if (PyErr_Occurred()) SWIG_fail;
11934 }
11935 {
11936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11937 }
11938 {
11939 if (temp2)
11940 delete arg2;
11941 }
11942 return resultobj;
11943 fail:
11944 {
11945 if (temp2)
11946 delete arg2;
11947 }
11948 return NULL;
11949}
11950
11951
11952static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11953 PyObject *resultobj;
11954 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11955 int result;
11956 PyObject * obj0 = 0 ;
11957 char *kwnames[] = {
11958 (char *) "self", NULL
11959 };
11960
11961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
11962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 result = (int)((wxRadioBox const *)arg1)->GetCount();
11967
11968 wxPyEndAllowThreads(__tstate);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 }
11971 resultobj = SWIG_FromInt((int)result);
11972 return resultobj;
11973 fail:
11974 return NULL;
11975}
11976
11977
11978static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
11979 PyObject *resultobj;
11980 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11981 wxString *arg2 = 0 ;
11982 int result;
11983 bool temp2 = False ;
11984 PyObject * obj0 = 0 ;
11985 PyObject * obj1 = 0 ;
11986 char *kwnames[] = {
11987 (char *) "self",(char *) "s", NULL
11988 };
11989
11990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
11991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11993 {
11994 arg2 = wxString_in_helper(obj1);
11995 if (arg2 == NULL) SWIG_fail;
11996 temp2 = True;
11997 }
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12001
12002 wxPyEndAllowThreads(__tstate);
12003 if (PyErr_Occurred()) SWIG_fail;
12004 }
12005 resultobj = SWIG_FromInt((int)result);
12006 {
12007 if (temp2)
12008 delete arg2;
12009 }
12010 return resultobj;
12011 fail:
12012 {
12013 if (temp2)
12014 delete arg2;
12015 }
12016 return NULL;
12017}
12018
12019
12020static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12021 PyObject *resultobj;
12022 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12023 int arg2 ;
12024 wxString result;
12025 PyObject * obj0 = 0 ;
12026 PyObject * obj1 = 0 ;
12027 char *kwnames[] = {
12028 (char *) "self",(char *) "n", NULL
12029 };
12030
12031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12034 arg2 = (int) SWIG_AsInt(obj1);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 {
12037 PyThreadState* __tstate = wxPyBeginAllowThreads();
12038 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12039
12040 wxPyEndAllowThreads(__tstate);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 {
12044#if wxUSE_UNICODE
12045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12046#else
12047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12048#endif
12049 }
12050 return resultobj;
12051 fail:
12052 return NULL;
12053}
12054
12055
12056static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12057 PyObject *resultobj;
12058 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12059 int arg2 ;
12060 wxString *arg3 = 0 ;
12061 bool temp3 = False ;
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
12064 PyObject * obj2 = 0 ;
12065 char *kwnames[] = {
12066 (char *) "self",(char *) "n",(char *) "label", NULL
12067 };
12068
12069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12072 arg2 = (int) SWIG_AsInt(obj1);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 {
12075 arg3 = wxString_in_helper(obj2);
12076 if (arg3 == NULL) SWIG_fail;
12077 temp3 = True;
12078 }
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->SetString(arg2,(wxString const &)*arg3);
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 Py_INCREF(Py_None); resultobj = Py_None;
12087 {
12088 if (temp3)
12089 delete arg3;
12090 }
12091 return resultobj;
12092 fail:
12093 {
12094 if (temp3)
12095 delete arg3;
12096 }
12097 return NULL;
12098}
12099
12100
12101static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12102 PyObject *resultobj;
12103 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12104 int arg2 ;
12105 bool arg3 = (bool) True ;
12106 PyObject * obj0 = 0 ;
12107 PyObject * obj1 = 0 ;
12108 PyObject * obj2 = 0 ;
12109 char *kwnames[] = {
12110 (char *) "self",(char *) "n",(char *) "enable", NULL
12111 };
12112
12113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12116 arg2 = (int) SWIG_AsInt(obj1);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 if (obj2) {
12119 arg3 = (bool) SWIG_AsBool(obj2);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 (arg1)->Enable(arg2,arg3);
12125
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 Py_INCREF(Py_None); resultobj = Py_None;
12130 return resultobj;
12131 fail:
12132 return NULL;
12133}
12134
12135
12136static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12137 PyObject *resultobj;
12138 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12139 int arg2 ;
12140 bool arg3 = (bool) True ;
12141 PyObject * obj0 = 0 ;
12142 PyObject * obj1 = 0 ;
12143 PyObject * obj2 = 0 ;
12144 char *kwnames[] = {
12145 (char *) "self",(char *) "n",(char *) "show", NULL
12146 };
12147
12148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12151 arg2 = (int) SWIG_AsInt(obj1);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 if (obj2) {
12154 arg3 = (bool) SWIG_AsBool(obj2);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 (arg1)->Show(arg2,arg3);
12160
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 Py_INCREF(Py_None); resultobj = Py_None;
12165 return resultobj;
12166 fail:
12167 return NULL;
12168}
12169
12170
12171static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12172 PyObject *resultobj;
12173 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12174 int result;
12175 PyObject * obj0 = 0 ;
12176 char *kwnames[] = {
12177 (char *) "self", NULL
12178 };
12179
12180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12186
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 resultobj = SWIG_FromInt((int)result);
12191 return resultobj;
12192 fail:
12193 return NULL;
12194}
12195
12196
12197static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12198 PyObject *resultobj;
12199 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12200 int result;
12201 PyObject * obj0 = 0 ;
12202 char *kwnames[] = {
12203 (char *) "self", NULL
12204 };
12205
12206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12212
12213 wxPyEndAllowThreads(__tstate);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 resultobj = SWIG_FromInt((int)result);
12217 return resultobj;
12218 fail:
12219 return NULL;
12220}
12221
12222
12223static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12224 PyObject *resultobj;
12225 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12226 int arg2 ;
12227 int arg3 ;
12228 long arg4 ;
12229 int result;
12230 PyObject * obj0 = 0 ;
12231 PyObject * obj1 = 0 ;
12232 PyObject * obj2 = 0 ;
12233 PyObject * obj3 = 0 ;
12234 char *kwnames[] = {
12235 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12236 };
12237
12238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12241 arg2 = (int) SWIG_AsInt(obj1);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 arg3 = (wxDirection) SWIG_AsInt(obj2);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 arg4 = (long) SWIG_AsLong(obj3);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12250
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 resultobj = SWIG_FromInt((int)result);
12255 return resultobj;
12256 fail:
12257 return NULL;
12258}
12259
12260
f20a2e1f
RD
12261static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12262 PyObject *resultobj;
12263 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12264 wxVisualAttributes result;
12265 PyObject * obj0 = 0 ;
12266 char *kwnames[] = {
12267 (char *) "variant", NULL
12268 };
12269
12270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12271 if (obj0) {
12272 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12278
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 {
12283 wxVisualAttributes * resultptr;
12284 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12285 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12286 }
12287 return resultobj;
12288 fail:
12289 return NULL;
12290}
12291
12292
d55e5bfc
RD
12293static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
12294 PyObject *obj;
12295 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12296 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12297 Py_INCREF(obj);
12298 return Py_BuildValue((char *)"");
12299}
12300static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12301 PyObject *resultobj;
12302 wxWindow *arg1 = (wxWindow *) 0 ;
12303 int arg2 ;
12304 wxString *arg3 = 0 ;
12305 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12306 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12307 wxSize const &arg5_defvalue = wxDefaultSize ;
12308 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12309 long arg6 = (long) 0 ;
12310 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12311 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12312 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12313 wxString *arg8 = (wxString *) &arg8_defvalue ;
12314 wxRadioButton *result;
12315 bool temp3 = False ;
12316 wxPoint temp4 ;
12317 wxSize temp5 ;
12318 bool temp8 = False ;
12319 PyObject * obj0 = 0 ;
12320 PyObject * obj1 = 0 ;
12321 PyObject * obj2 = 0 ;
12322 PyObject * obj3 = 0 ;
12323 PyObject * obj4 = 0 ;
12324 PyObject * obj5 = 0 ;
12325 PyObject * obj6 = 0 ;
12326 PyObject * obj7 = 0 ;
12327 char *kwnames[] = {
12328 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12329 };
12330
12331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12334 arg2 = (int) SWIG_AsInt(obj1);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 {
12337 arg3 = wxString_in_helper(obj2);
12338 if (arg3 == NULL) SWIG_fail;
12339 temp3 = True;
12340 }
12341 if (obj3) {
12342 {
12343 arg4 = &temp4;
12344 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12345 }
12346 }
12347 if (obj4) {
12348 {
12349 arg5 = &temp5;
12350 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12351 }
12352 }
12353 if (obj5) {
12354 arg6 = (long) SWIG_AsLong(obj5);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 if (obj6) {
12358 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12359 SWIG_POINTER_EXCEPTION | 0)) == -1)
12360 SWIG_fail;
12361 if (arg7 == NULL) {
12362 PyErr_SetString(PyExc_TypeError,"null reference");
12363 SWIG_fail;
12364 }
12365 }
12366 if (obj7) {
12367 {
12368 arg8 = wxString_in_helper(obj7);
12369 if (arg8 == NULL) SWIG_fail;
12370 temp8 = True;
12371 }
12372 }
12373 {
12374 PyThreadState* __tstate = wxPyBeginAllowThreads();
12375 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12376
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12381 {
12382 if (temp3)
12383 delete arg3;
12384 }
12385 {
12386 if (temp8)
12387 delete arg8;
12388 }
12389 return resultobj;
12390 fail:
12391 {
12392 if (temp3)
12393 delete arg3;
12394 }
12395 {
12396 if (temp8)
12397 delete arg8;
12398 }
12399 return NULL;
12400}
12401
12402
12403static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12404 PyObject *resultobj;
12405 wxRadioButton *result;
12406 char *kwnames[] = {
12407 NULL
12408 };
12409
12410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12411 {
12412 PyThreadState* __tstate = wxPyBeginAllowThreads();
12413 result = (wxRadioButton *)new wxRadioButton();
12414
12415 wxPyEndAllowThreads(__tstate);
12416 if (PyErr_Occurred()) SWIG_fail;
12417 }
12418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12419 return resultobj;
12420 fail:
12421 return NULL;
12422}
12423
12424
12425static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12426 PyObject *resultobj;
12427 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12428 wxWindow *arg2 = (wxWindow *) 0 ;
12429 int arg3 ;
12430 wxString *arg4 = 0 ;
12431 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12432 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12433 wxSize const &arg6_defvalue = wxDefaultSize ;
12434 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12435 long arg7 = (long) 0 ;
12436 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12437 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12438 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12439 wxString *arg9 = (wxString *) &arg9_defvalue ;
12440 bool result;
12441 bool temp4 = False ;
12442 wxPoint temp5 ;
12443 wxSize temp6 ;
12444 bool temp9 = False ;
12445 PyObject * obj0 = 0 ;
12446 PyObject * obj1 = 0 ;
12447 PyObject * obj2 = 0 ;
12448 PyObject * obj3 = 0 ;
12449 PyObject * obj4 = 0 ;
12450 PyObject * obj5 = 0 ;
12451 PyObject * obj6 = 0 ;
12452 PyObject * obj7 = 0 ;
12453 PyObject * obj8 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12463 arg3 = (int) SWIG_AsInt(obj2);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 {
12466 arg4 = wxString_in_helper(obj3);
12467 if (arg4 == NULL) SWIG_fail;
12468 temp4 = True;
12469 }
12470 if (obj4) {
12471 {
12472 arg5 = &temp5;
12473 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12474 }
12475 }
12476 if (obj5) {
12477 {
12478 arg6 = &temp6;
12479 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12480 }
12481 }
12482 if (obj6) {
12483 arg7 = (long) SWIG_AsLong(obj6);
12484 if (PyErr_Occurred()) SWIG_fail;
12485 }
12486 if (obj7) {
12487 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12488 SWIG_POINTER_EXCEPTION | 0)) == -1)
12489 SWIG_fail;
12490 if (arg8 == NULL) {
12491 PyErr_SetString(PyExc_TypeError,"null reference");
12492 SWIG_fail;
12493 }
12494 }
12495 if (obj8) {
12496 {
12497 arg9 = wxString_in_helper(obj8);
12498 if (arg9 == NULL) SWIG_fail;
12499 temp9 = True;
12500 }
12501 }
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12505
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 {
12510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12511 }
12512 {
12513 if (temp4)
12514 delete arg4;
12515 }
12516 {
12517 if (temp9)
12518 delete arg9;
12519 }
12520 return resultobj;
12521 fail:
12522 {
12523 if (temp4)
12524 delete arg4;
12525 }
12526 {
12527 if (temp9)
12528 delete arg9;
12529 }
12530 return NULL;
12531}
12532
12533
12534static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12535 PyObject *resultobj;
12536 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12537 bool result;
12538 PyObject * obj0 = 0 ;
12539 char *kwnames[] = {
12540 (char *) "self", NULL
12541 };
12542
12543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 result = (bool)(arg1)->GetValue();
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 {
12554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12555 }
12556 return resultobj;
12557 fail:
12558 return NULL;
12559}
12560
12561
12562static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12563 PyObject *resultobj;
12564 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12565 bool arg2 ;
12566 PyObject * obj0 = 0 ;
12567 PyObject * obj1 = 0 ;
12568 char *kwnames[] = {
12569 (char *) "self",(char *) "value", NULL
12570 };
12571
12572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12575 arg2 = (bool) SWIG_AsBool(obj1);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->SetValue(arg2);
12580
12581 wxPyEndAllowThreads(__tstate);
12582 if (PyErr_Occurred()) SWIG_fail;
12583 }
12584 Py_INCREF(Py_None); resultobj = Py_None;
12585 return resultobj;
12586 fail:
12587 return NULL;
12588}
12589
12590
f20a2e1f
RD
12591static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12592 PyObject *resultobj;
12593 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12594 wxVisualAttributes result;
12595 PyObject * obj0 = 0 ;
12596 char *kwnames[] = {
12597 (char *) "variant", NULL
12598 };
12599
12600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12601 if (obj0) {
12602 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 {
12613 wxVisualAttributes * resultptr;
12614 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12616 }
12617 return resultobj;
12618 fail:
12619 return NULL;
12620}
12621
12622
d55e5bfc
RD
12623static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
12624 PyObject *obj;
12625 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12626 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12627 Py_INCREF(obj);
12628 return Py_BuildValue((char *)"");
12629}
12630static int _wrap_SliderNameStr_set(PyObject *_val) {
12631 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12632 return 1;
12633}
12634
12635
12636static PyObject *_wrap_SliderNameStr_get() {
12637 PyObject *pyobj;
12638
12639 {
12640#if wxUSE_UNICODE
12641 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12642#else
12643 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12644#endif
12645 }
12646 return pyobj;
12647}
12648
12649
12650static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
12651 PyObject *resultobj;
12652 wxWindow *arg1 = (wxWindow *) 0 ;
12653 int arg2 ;
12654 int arg3 ;
12655 int arg4 ;
12656 int arg5 ;
12657 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12658 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12659 wxSize const &arg7_defvalue = wxDefaultSize ;
12660 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12661 long arg8 = (long) wxSL_HORIZONTAL ;
12662 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12663 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12664 wxString const &arg10_defvalue = wxPySliderNameStr ;
12665 wxString *arg10 = (wxString *) &arg10_defvalue ;
12666 wxSlider *result;
12667 wxPoint temp6 ;
12668 wxSize temp7 ;
12669 bool temp10 = False ;
12670 PyObject * obj0 = 0 ;
12671 PyObject * obj1 = 0 ;
12672 PyObject * obj2 = 0 ;
12673 PyObject * obj3 = 0 ;
12674 PyObject * obj4 = 0 ;
12675 PyObject * obj5 = 0 ;
12676 PyObject * obj6 = 0 ;
12677 PyObject * obj7 = 0 ;
12678 PyObject * obj8 = 0 ;
12679 PyObject * obj9 = 0 ;
12680 char *kwnames[] = {
12681 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12682 };
12683
12684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12687 arg2 = (int) SWIG_AsInt(obj1);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 arg3 = (int) SWIG_AsInt(obj2);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 arg4 = (int) SWIG_AsInt(obj3);
12692 if (PyErr_Occurred()) SWIG_fail;
12693 arg5 = (int) SWIG_AsInt(obj4);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 if (obj5) {
12696 {
12697 arg6 = &temp6;
12698 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12699 }
12700 }
12701 if (obj6) {
12702 {
12703 arg7 = &temp7;
12704 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12705 }
12706 }
12707 if (obj7) {
12708 arg8 = (long) SWIG_AsLong(obj7);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 if (obj8) {
12712 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12713 SWIG_POINTER_EXCEPTION | 0)) == -1)
12714 SWIG_fail;
12715 if (arg9 == NULL) {
12716 PyErr_SetString(PyExc_TypeError,"null reference");
12717 SWIG_fail;
12718 }
12719 }
12720 if (obj9) {
12721 {
12722 arg10 = wxString_in_helper(obj9);
12723 if (arg10 == NULL) SWIG_fail;
12724 temp10 = True;
12725 }
12726 }
12727 {
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12730
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12735 {
12736 if (temp10)
12737 delete arg10;
12738 }
12739 return resultobj;
12740 fail:
12741 {
12742 if (temp10)
12743 delete arg10;
12744 }
12745 return NULL;
12746}
12747
12748
12749static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12750 PyObject *resultobj;
12751 wxSlider *result;
12752 char *kwnames[] = {
12753 NULL
12754 };
12755
12756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12757 {
12758 PyThreadState* __tstate = wxPyBeginAllowThreads();
12759 result = (wxSlider *)new wxSlider();
12760
12761 wxPyEndAllowThreads(__tstate);
12762 if (PyErr_Occurred()) SWIG_fail;
12763 }
12764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12765 return resultobj;
12766 fail:
12767 return NULL;
12768}
12769
12770
12771static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12772 PyObject *resultobj;
12773 wxSlider *arg1 = (wxSlider *) 0 ;
12774 wxWindow *arg2 = (wxWindow *) 0 ;
12775 int arg3 ;
12776 int arg4 ;
12777 int arg5 ;
12778 int arg6 ;
12779 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12780 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12781 wxSize const &arg8_defvalue = wxDefaultSize ;
12782 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12783 long arg9 = (long) wxSL_HORIZONTAL ;
12784 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12785 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12786 wxString const &arg11_defvalue = wxPySliderNameStr ;
12787 wxString *arg11 = (wxString *) &arg11_defvalue ;
12788 bool result;
12789 wxPoint temp7 ;
12790 wxSize temp8 ;
12791 bool temp11 = False ;
12792 PyObject * obj0 = 0 ;
12793 PyObject * obj1 = 0 ;
12794 PyObject * obj2 = 0 ;
12795 PyObject * obj3 = 0 ;
12796 PyObject * obj4 = 0 ;
12797 PyObject * obj5 = 0 ;
12798 PyObject * obj6 = 0 ;
12799 PyObject * obj7 = 0 ;
12800 PyObject * obj8 = 0 ;
12801 PyObject * obj9 = 0 ;
12802 PyObject * obj10 = 0 ;
12803 char *kwnames[] = {
12804 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12805 };
12806
12807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12810 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12812 arg3 = (int) SWIG_AsInt(obj2);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 arg4 = (int) SWIG_AsInt(obj3);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 arg5 = (int) SWIG_AsInt(obj4);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 arg6 = (int) SWIG_AsInt(obj5);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 if (obj6) {
12821 {
12822 arg7 = &temp7;
12823 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12824 }
12825 }
12826 if (obj7) {
12827 {
12828 arg8 = &temp8;
12829 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12830 }
12831 }
12832 if (obj8) {
12833 arg9 = (long) SWIG_AsLong(obj8);
12834 if (PyErr_Occurred()) SWIG_fail;
12835 }
12836 if (obj9) {
12837 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12838 SWIG_POINTER_EXCEPTION | 0)) == -1)
12839 SWIG_fail;
12840 if (arg10 == NULL) {
12841 PyErr_SetString(PyExc_TypeError,"null reference");
12842 SWIG_fail;
12843 }
12844 }
12845 if (obj10) {
12846 {
12847 arg11 = wxString_in_helper(obj10);
12848 if (arg11 == NULL) SWIG_fail;
12849 temp11 = True;
12850 }
12851 }
12852 {
12853 PyThreadState* __tstate = wxPyBeginAllowThreads();
12854 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
12855
12856 wxPyEndAllowThreads(__tstate);
12857 if (PyErr_Occurred()) SWIG_fail;
12858 }
12859 {
12860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12861 }
12862 {
12863 if (temp11)
12864 delete arg11;
12865 }
12866 return resultobj;
12867 fail:
12868 {
12869 if (temp11)
12870 delete arg11;
12871 }
12872 return NULL;
12873}
12874
12875
12876static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12877 PyObject *resultobj;
12878 wxSlider *arg1 = (wxSlider *) 0 ;
12879 int result;
12880 PyObject * obj0 = 0 ;
12881 char *kwnames[] = {
12882 (char *) "self", NULL
12883 };
12884
12885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
12886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12888 {
12889 PyThreadState* __tstate = wxPyBeginAllowThreads();
12890 result = (int)((wxSlider const *)arg1)->GetValue();
12891
12892 wxPyEndAllowThreads(__tstate);
12893 if (PyErr_Occurred()) SWIG_fail;
12894 }
12895 resultobj = SWIG_FromInt((int)result);
12896 return resultobj;
12897 fail:
12898 return NULL;
12899}
12900
12901
12902static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12903 PyObject *resultobj;
12904 wxSlider *arg1 = (wxSlider *) 0 ;
12905 int arg2 ;
12906 PyObject * obj0 = 0 ;
12907 PyObject * obj1 = 0 ;
12908 char *kwnames[] = {
12909 (char *) "self",(char *) "value", NULL
12910 };
12911
12912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
12913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12915 arg2 = (int) SWIG_AsInt(obj1);
12916 if (PyErr_Occurred()) SWIG_fail;
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 (arg1)->SetValue(arg2);
12920
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 Py_INCREF(Py_None); resultobj = Py_None;
12925 return resultobj;
12926 fail:
12927 return NULL;
12928}
12929
12930
12931static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12932 PyObject *resultobj;
12933 wxSlider *arg1 = (wxSlider *) 0 ;
12934 int arg2 ;
12935 int arg3 ;
12936 PyObject * obj0 = 0 ;
12937 PyObject * obj1 = 0 ;
12938 PyObject * obj2 = 0 ;
12939 char *kwnames[] = {
12940 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
12941 };
12942
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
12944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12946 arg2 = (int) SWIG_AsInt(obj1);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 arg3 = (int) SWIG_AsInt(obj2);
12949 if (PyErr_Occurred()) SWIG_fail;
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 (arg1)->SetRange(arg2,arg3);
12953
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 Py_INCREF(Py_None); resultobj = Py_None;
12958 return resultobj;
12959 fail:
12960 return NULL;
12961}
12962
12963
12964static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj;
12966 wxSlider *arg1 = (wxSlider *) 0 ;
12967 int result;
12968 PyObject * obj0 = 0 ;
12969 char *kwnames[] = {
12970 (char *) "self", NULL
12971 };
12972
12973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
12974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 result = (int)((wxSlider const *)arg1)->GetMin();
12979
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 resultobj = SWIG_FromInt((int)result);
12984 return resultobj;
12985 fail:
12986 return NULL;
12987}
12988
12989
12990static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
12991 PyObject *resultobj;
12992 wxSlider *arg1 = (wxSlider *) 0 ;
12993 int result;
12994 PyObject * obj0 = 0 ;
12995 char *kwnames[] = {
12996 (char *) "self", NULL
12997 };
12998
12999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 result = (int)((wxSlider const *)arg1)->GetMax();
13005
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 resultobj = SWIG_FromInt((int)result);
13010 return resultobj;
13011 fail:
13012 return NULL;
13013}
13014
13015
13016static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj;
13018 wxSlider *arg1 = (wxSlider *) 0 ;
13019 int arg2 ;
13020 PyObject * obj0 = 0 ;
13021 PyObject * obj1 = 0 ;
13022 char *kwnames[] = {
13023 (char *) "self",(char *) "minValue", NULL
13024 };
13025
13026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13029 arg2 = (int) SWIG_AsInt(obj1);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 (arg1)->SetMin(arg2);
13034
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 Py_INCREF(Py_None); resultobj = Py_None;
13039 return resultobj;
13040 fail:
13041 return NULL;
13042}
13043
13044
13045static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj;
13047 wxSlider *arg1 = (wxSlider *) 0 ;
13048 int arg2 ;
13049 PyObject * obj0 = 0 ;
13050 PyObject * obj1 = 0 ;
13051 char *kwnames[] = {
13052 (char *) "self",(char *) "maxValue", NULL
13053 };
13054
13055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13058 arg2 = (int) SWIG_AsInt(obj1);
13059 if (PyErr_Occurred()) SWIG_fail;
13060 {
13061 PyThreadState* __tstate = wxPyBeginAllowThreads();
13062 (arg1)->SetMax(arg2);
13063
13064 wxPyEndAllowThreads(__tstate);
13065 if (PyErr_Occurred()) SWIG_fail;
13066 }
13067 Py_INCREF(Py_None); resultobj = Py_None;
13068 return resultobj;
13069 fail:
13070 return NULL;
13071}
13072
13073
13074static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13075 PyObject *resultobj;
13076 wxSlider *arg1 = (wxSlider *) 0 ;
13077 int arg2 ;
13078 PyObject * obj0 = 0 ;
13079 PyObject * obj1 = 0 ;
13080 char *kwnames[] = {
13081 (char *) "self",(char *) "lineSize", NULL
13082 };
13083
13084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13087 arg2 = (int) SWIG_AsInt(obj1);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 (arg1)->SetLineSize(arg2);
13092
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 Py_INCREF(Py_None); resultobj = Py_None;
13097 return resultobj;
13098 fail:
13099 return NULL;
13100}
13101
13102
13103static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13104 PyObject *resultobj;
13105 wxSlider *arg1 = (wxSlider *) 0 ;
13106 int arg2 ;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 char *kwnames[] = {
13110 (char *) "self",(char *) "pageSize", NULL
13111 };
13112
13113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13116 arg2 = (int) SWIG_AsInt(obj1);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 {
13119 PyThreadState* __tstate = wxPyBeginAllowThreads();
13120 (arg1)->SetPageSize(arg2);
13121
13122 wxPyEndAllowThreads(__tstate);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 Py_INCREF(Py_None); resultobj = Py_None;
13126 return resultobj;
13127 fail:
13128 return NULL;
13129}
13130
13131
13132static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13133 PyObject *resultobj;
13134 wxSlider *arg1 = (wxSlider *) 0 ;
13135 int result;
13136 PyObject * obj0 = 0 ;
13137 char *kwnames[] = {
13138 (char *) "self", NULL
13139 };
13140
13141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13144 {
13145 PyThreadState* __tstate = wxPyBeginAllowThreads();
13146 result = (int)((wxSlider const *)arg1)->GetLineSize();
13147
13148 wxPyEndAllowThreads(__tstate);
13149 if (PyErr_Occurred()) SWIG_fail;
13150 }
13151 resultobj = SWIG_FromInt((int)result);
13152 return resultobj;
13153 fail:
13154 return NULL;
13155}
13156
13157
13158static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13159 PyObject *resultobj;
13160 wxSlider *arg1 = (wxSlider *) 0 ;
13161 int result;
13162 PyObject * obj0 = 0 ;
13163 char *kwnames[] = {
13164 (char *) "self", NULL
13165 };
13166
13167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 result = (int)((wxSlider const *)arg1)->GetPageSize();
13173
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 resultobj = SWIG_FromInt((int)result);
13178 return resultobj;
13179 fail:
13180 return NULL;
13181}
13182
13183
13184static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13185 PyObject *resultobj;
13186 wxSlider *arg1 = (wxSlider *) 0 ;
13187 int arg2 ;
13188 PyObject * obj0 = 0 ;
13189 PyObject * obj1 = 0 ;
13190 char *kwnames[] = {
13191 (char *) "self",(char *) "lenPixels", NULL
13192 };
13193
13194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13197 arg2 = (int) SWIG_AsInt(obj1);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 (arg1)->SetThumbLength(arg2);
13202
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 Py_INCREF(Py_None); resultobj = Py_None;
13207 return resultobj;
13208 fail:
13209 return NULL;
13210}
13211
13212
13213static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13214 PyObject *resultobj;
13215 wxSlider *arg1 = (wxSlider *) 0 ;
13216 int result;
13217 PyObject * obj0 = 0 ;
13218 char *kwnames[] = {
13219 (char *) "self", NULL
13220 };
13221
13222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13228
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 resultobj = SWIG_FromInt((int)result);
13233 return resultobj;
13234 fail:
13235 return NULL;
13236}
13237
13238
13239static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13240 PyObject *resultobj;
13241 wxSlider *arg1 = (wxSlider *) 0 ;
13242 int arg2 ;
13243 int arg3 = (int) 1 ;
13244 PyObject * obj0 = 0 ;
13245 PyObject * obj1 = 0 ;
13246 PyObject * obj2 = 0 ;
13247 char *kwnames[] = {
13248 (char *) "self",(char *) "n",(char *) "pos", NULL
13249 };
13250
13251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13254 arg2 = (int) SWIG_AsInt(obj1);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 if (obj2) {
13257 arg3 = (int) SWIG_AsInt(obj2);
13258 if (PyErr_Occurred()) SWIG_fail;
13259 }
13260 {
13261 PyThreadState* __tstate = wxPyBeginAllowThreads();
13262 (arg1)->SetTickFreq(arg2,arg3);
13263
13264 wxPyEndAllowThreads(__tstate);
13265 if (PyErr_Occurred()) SWIG_fail;
13266 }
13267 Py_INCREF(Py_None); resultobj = Py_None;
13268 return resultobj;
13269 fail:
13270 return NULL;
13271}
13272
13273
13274static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13275 PyObject *resultobj;
13276 wxSlider *arg1 = (wxSlider *) 0 ;
13277 int result;
13278 PyObject * obj0 = 0 ;
13279 char *kwnames[] = {
13280 (char *) "self", NULL
13281 };
13282
13283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13289
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 resultobj = SWIG_FromInt((int)result);
13294 return resultobj;
13295 fail:
13296 return NULL;
13297}
13298
13299
13300static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
13301 PyObject *resultobj;
13302 wxSlider *arg1 = (wxSlider *) 0 ;
13303 PyObject * obj0 = 0 ;
13304 char *kwnames[] = {
13305 (char *) "self", NULL
13306 };
13307
13308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13311 {
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 (arg1)->ClearTicks();
13314
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
13318 Py_INCREF(Py_None); resultobj = Py_None;
13319 return resultobj;
13320 fail:
13321 return NULL;
13322}
13323
13324
13325static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
13326 PyObject *resultobj;
13327 wxSlider *arg1 = (wxSlider *) 0 ;
13328 int arg2 ;
13329 PyObject * obj0 = 0 ;
13330 PyObject * obj1 = 0 ;
13331 char *kwnames[] = {
13332 (char *) "self",(char *) "tickPos", NULL
13333 };
13334
13335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13338 arg2 = (int) SWIG_AsInt(obj1);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 (arg1)->SetTick(arg2);
13343
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 Py_INCREF(Py_None); resultobj = Py_None;
13348 return resultobj;
13349 fail:
13350 return NULL;
13351}
13352
13353
13354static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj;
13356 wxSlider *arg1 = (wxSlider *) 0 ;
13357 PyObject * obj0 = 0 ;
13358 char *kwnames[] = {
13359 (char *) "self", NULL
13360 };
13361
13362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13365 {
13366 PyThreadState* __tstate = wxPyBeginAllowThreads();
13367 (arg1)->ClearSel();
13368
13369 wxPyEndAllowThreads(__tstate);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 }
13372 Py_INCREF(Py_None); resultobj = Py_None;
13373 return resultobj;
13374 fail:
13375 return NULL;
13376}
13377
13378
13379static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
13380 PyObject *resultobj;
13381 wxSlider *arg1 = (wxSlider *) 0 ;
13382 int result;
13383 PyObject * obj0 = 0 ;
13384 char *kwnames[] = {
13385 (char *) "self", NULL
13386 };
13387
13388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13391 {
13392 PyThreadState* __tstate = wxPyBeginAllowThreads();
13393 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13394
13395 wxPyEndAllowThreads(__tstate);
13396 if (PyErr_Occurred()) SWIG_fail;
13397 }
13398 resultobj = SWIG_FromInt((int)result);
13399 return resultobj;
13400 fail:
13401 return NULL;
13402}
13403
13404
13405static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
13406 PyObject *resultobj;
13407 wxSlider *arg1 = (wxSlider *) 0 ;
13408 int result;
13409 PyObject * obj0 = 0 ;
13410 char *kwnames[] = {
13411 (char *) "self", NULL
13412 };
13413
13414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 result = (int)((wxSlider const *)arg1)->GetSelStart();
13420
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 resultobj = SWIG_FromInt((int)result);
13425 return resultobj;
13426 fail:
13427 return NULL;
13428}
13429
13430
13431static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13432 PyObject *resultobj;
13433 wxSlider *arg1 = (wxSlider *) 0 ;
13434 int arg2 ;
13435 int arg3 ;
13436 PyObject * obj0 = 0 ;
13437 PyObject * obj1 = 0 ;
13438 PyObject * obj2 = 0 ;
13439 char *kwnames[] = {
13440 (char *) "self",(char *) "min",(char *) "max", NULL
13441 };
13442
13443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13446 arg2 = (int) SWIG_AsInt(obj1);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 arg3 = (int) SWIG_AsInt(obj2);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 (arg1)->SetSelection(arg2,arg3);
13453
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 Py_INCREF(Py_None); resultobj = Py_None;
13458 return resultobj;
13459 fail:
13460 return NULL;
13461}
13462
13463
f20a2e1f
RD
13464static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13465 PyObject *resultobj;
13466 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13467 wxVisualAttributes result;
13468 PyObject * obj0 = 0 ;
13469 char *kwnames[] = {
13470 (char *) "variant", NULL
13471 };
13472
13473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13474 if (obj0) {
13475 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13476 if (PyErr_Occurred()) SWIG_fail;
13477 }
13478 {
13479 PyThreadState* __tstate = wxPyBeginAllowThreads();
13480 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13481
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 {
13486 wxVisualAttributes * resultptr;
13487 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13488 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13489 }
13490 return resultobj;
13491 fail:
13492 return NULL;
13493}
13494
13495
d55e5bfc
RD
13496static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
13497 PyObject *obj;
13498 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13499 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13500 Py_INCREF(obj);
13501 return Py_BuildValue((char *)"");
13502}
13503static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
13504 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13505 return 1;
13506}
13507
13508
13509static PyObject *_wrap_ToggleButtonNameStr_get() {
13510 PyObject *pyobj;
13511
13512 {
13513#if wxUSE_UNICODE
13514 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13515#else
13516 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13517#endif
13518 }
13519 return pyobj;
13520}
13521
13522
13523static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13524 PyObject *resultobj;
13525 wxWindow *arg1 = (wxWindow *) 0 ;
13526 int arg2 ;
13527 wxString *arg3 = 0 ;
13528 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13529 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13530 wxSize const &arg5_defvalue = wxDefaultSize ;
13531 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13532 long arg6 = (long) 0 ;
13533 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13534 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13535 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13536 wxString *arg8 = (wxString *) &arg8_defvalue ;
13537 wxToggleButton *result;
13538 bool temp3 = False ;
13539 wxPoint temp4 ;
13540 wxSize temp5 ;
13541 bool temp8 = False ;
13542 PyObject * obj0 = 0 ;
13543 PyObject * obj1 = 0 ;
13544 PyObject * obj2 = 0 ;
13545 PyObject * obj3 = 0 ;
13546 PyObject * obj4 = 0 ;
13547 PyObject * obj5 = 0 ;
13548 PyObject * obj6 = 0 ;
13549 PyObject * obj7 = 0 ;
13550 char *kwnames[] = {
13551 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13552 };
13553
13554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13557 arg2 = (int) SWIG_AsInt(obj1);
13558 if (PyErr_Occurred()) SWIG_fail;
13559 {
13560 arg3 = wxString_in_helper(obj2);
13561 if (arg3 == NULL) SWIG_fail;
13562 temp3 = True;
13563 }
13564 if (obj3) {
13565 {
13566 arg4 = &temp4;
13567 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13568 }
13569 }
13570 if (obj4) {
13571 {
13572 arg5 = &temp5;
13573 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13574 }
13575 }
13576 if (obj5) {
13577 arg6 = (long) SWIG_AsLong(obj5);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 if (obj6) {
13581 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13582 SWIG_POINTER_EXCEPTION | 0)) == -1)
13583 SWIG_fail;
13584 if (arg7 == NULL) {
13585 PyErr_SetString(PyExc_TypeError,"null reference");
13586 SWIG_fail;
13587 }
13588 }
13589 if (obj7) {
13590 {
13591 arg8 = wxString_in_helper(obj7);
13592 if (arg8 == NULL) SWIG_fail;
13593 temp8 = True;
13594 }
13595 }
13596 {
13597 PyThreadState* __tstate = wxPyBeginAllowThreads();
13598 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13599
13600 wxPyEndAllowThreads(__tstate);
13601 if (PyErr_Occurred()) SWIG_fail;
13602 }
13603 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13604 {
13605 if (temp3)
13606 delete arg3;
13607 }
13608 {
13609 if (temp8)
13610 delete arg8;
13611 }
13612 return resultobj;
13613 fail:
13614 {
13615 if (temp3)
13616 delete arg3;
13617 }
13618 {
13619 if (temp8)
13620 delete arg8;
13621 }
13622 return NULL;
13623}
13624
13625
13626static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13627 PyObject *resultobj;
13628 wxToggleButton *result;
13629 char *kwnames[] = {
13630 NULL
13631 };
13632
13633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13634 {
13635 PyThreadState* __tstate = wxPyBeginAllowThreads();
13636 result = (wxToggleButton *)new wxToggleButton();
13637
13638 wxPyEndAllowThreads(__tstate);
13639 if (PyErr_Occurred()) SWIG_fail;
13640 }
13641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13642 return resultobj;
13643 fail:
13644 return NULL;
13645}
13646
13647
121b9a67
RD
13648static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13649 PyObject *resultobj;
13650 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13651 wxWindow *arg2 = (wxWindow *) 0 ;
13652 int arg3 ;
13653 wxString *arg4 = 0 ;
13654 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13655 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13656 wxSize const &arg6_defvalue = wxDefaultSize ;
13657 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13658 long arg7 = (long) 0 ;
13659 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13660 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13661 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13662 wxString *arg9 = (wxString *) &arg9_defvalue ;
13663 bool result;
13664 bool temp4 = False ;
13665 wxPoint temp5 ;
13666 wxSize temp6 ;
13667 bool temp9 = False ;
13668 PyObject * obj0 = 0 ;
13669 PyObject * obj1 = 0 ;
13670 PyObject * obj2 = 0 ;
13671 PyObject * obj3 = 0 ;
13672 PyObject * obj4 = 0 ;
13673 PyObject * obj5 = 0 ;
13674 PyObject * obj6 = 0 ;
13675 PyObject * obj7 = 0 ;
13676 PyObject * obj8 = 0 ;
13677 char *kwnames[] = {
13678 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13679 };
13680
13681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13684 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13686 arg3 = (int) SWIG_AsInt(obj2);
13687 if (PyErr_Occurred()) SWIG_fail;
13688 {
13689 arg4 = wxString_in_helper(obj3);
13690 if (arg4 == NULL) SWIG_fail;
13691 temp4 = True;
13692 }
13693 if (obj4) {
13694 {
13695 arg5 = &temp5;
13696 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13697 }
13698 }
13699 if (obj5) {
13700 {
13701 arg6 = &temp6;
13702 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13703 }
13704 }
13705 if (obj6) {
13706 arg7 = (long) SWIG_AsLong(obj6);
13707 if (PyErr_Occurred()) SWIG_fail;
13708 }
13709 if (obj7) {
13710 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13711 SWIG_POINTER_EXCEPTION | 0)) == -1)
13712 SWIG_fail;
13713 if (arg8 == NULL) {
13714 PyErr_SetString(PyExc_TypeError,"null reference");
13715 SWIG_fail;
13716 }
13717 }
13718 if (obj8) {
13719 {
13720 arg9 = wxString_in_helper(obj8);
13721 if (arg9 == NULL) SWIG_fail;
13722 temp9 = True;
13723 }
13724 }
13725 {
13726 PyThreadState* __tstate = wxPyBeginAllowThreads();
13727 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13728
13729 wxPyEndAllowThreads(__tstate);
13730 if (PyErr_Occurred()) SWIG_fail;
13731 }
13732 {
13733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13734 }
13735 {
13736 if (temp4)
13737 delete arg4;
13738 }
13739 {
13740 if (temp9)
13741 delete arg9;
13742 }
13743 return resultobj;
13744 fail:
13745 {
13746 if (temp4)
13747 delete arg4;
13748 }
13749 {
13750 if (temp9)
13751 delete arg9;
13752 }
13753 return NULL;
13754}
13755
13756
13757static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13758 PyObject *resultobj;
13759 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13760 bool arg2 ;
13761 PyObject * obj0 = 0 ;
13762 PyObject * obj1 = 0 ;
13763 char *kwnames[] = {
13764 (char *) "self",(char *) "value", NULL
13765 };
13766
13767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13770 arg2 = (bool) SWIG_AsBool(obj1);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 (arg1)->SetValue(arg2);
13775
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 Py_INCREF(Py_None); resultobj = Py_None;
13780 return resultobj;
13781 fail:
13782 return NULL;
13783}
13784
13785
13786static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13787 PyObject *resultobj;
13788 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13789 bool result;
13790 PyObject * obj0 = 0 ;
13791 char *kwnames[] = {
13792 (char *) "self", NULL
13793 };
13794
13795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 {
13806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13807 }
13808 return resultobj;
13809 fail:
13810 return NULL;
13811}
13812
13813
13814static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13815 PyObject *resultobj;
13816 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13817 wxString *arg2 = 0 ;
13818 bool temp2 = False ;
13819 PyObject * obj0 = 0 ;
13820 PyObject * obj1 = 0 ;
13821 char *kwnames[] = {
13822 (char *) "self",(char *) "label", NULL
13823 };
13824
13825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
13826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13828 {
13829 arg2 = wxString_in_helper(obj1);
13830 if (arg2 == NULL) SWIG_fail;
13831 temp2 = True;
13832 }
13833 {
13834 PyThreadState* __tstate = wxPyBeginAllowThreads();
13835 (arg1)->SetLabel((wxString const &)*arg2);
13836
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
13840 Py_INCREF(Py_None); resultobj = Py_None;
13841 {
13842 if (temp2)
13843 delete arg2;
13844 }
13845 return resultobj;
13846 fail:
13847 {
13848 if (temp2)
13849 delete arg2;
13850 }
13851 return NULL;
13852}
13853
13854
f20a2e1f
RD
13855static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13856 PyObject *resultobj;
13857 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13858 wxVisualAttributes result;
13859 PyObject * obj0 = 0 ;
13860 char *kwnames[] = {
13861 (char *) "variant", NULL
13862 };
13863
13864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13865 if (obj0) {
13866 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13867 if (PyErr_Occurred()) SWIG_fail;
13868 }
13869 {
13870 PyThreadState* __tstate = wxPyBeginAllowThreads();
13871 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13872
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 {
13877 wxVisualAttributes * resultptr;
13878 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13879 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13880 }
13881 return resultobj;
13882 fail:
13883 return NULL;
13884}
13885
13886
d55e5bfc
RD
13887static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
13888 PyObject *obj;
13889 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13890 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
13891 Py_INCREF(obj);
13892 return Py_BuildValue((char *)"");
13893}
13894static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
13895 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
13896 return 1;
13897}
13898
13899
13900static PyObject *_wrap_NOTEBOOK_NAME_get() {
13901 PyObject *pyobj;
13902
13903 {
13904#if wxUSE_UNICODE
13905 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13906#else
13907 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
13908#endif
13909 }
13910 return pyobj;
13911}
13912
13913
13914static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj;
13916 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13917 size_t result;
13918 PyObject * obj0 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "self", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
13924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
13929
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
13934 return resultobj;
13935 fail:
13936 return NULL;
13937}
13938
13939
13940static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13941 PyObject *resultobj;
13942 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13943 size_t arg2 ;
13944 wxWindow *result;
13945 PyObject * obj0 = 0 ;
13946 PyObject * obj1 = 0 ;
13947 char *kwnames[] = {
13948 (char *) "self",(char *) "n", NULL
13949 };
13950
13951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
13952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13954 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 result = (wxWindow *)(arg1)->GetPage(arg2);
13959
13960 wxPyEndAllowThreads(__tstate);
13961 if (PyErr_Occurred()) SWIG_fail;
13962 }
13963 {
13964 resultobj = wxPyMake_wxObject(result);
13965 }
13966 return resultobj;
13967 fail:
13968 return NULL;
13969}
13970
13971
13972static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13973 PyObject *resultobj;
13974 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
13975 int result;
13976 PyObject * obj0 = 0 ;
13977 char *kwnames[] = {
13978 (char *) "self", NULL
13979 };
13980
13981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
13982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
13983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 resultobj = SWIG_FromInt((int)result);
13992 return resultobj;
13993 fail:
13994 return NULL;
13995}
13996
13997
13998static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14001 size_t arg2 ;
14002 wxString *arg3 = 0 ;
14003 bool result;
14004 bool temp3 = False ;
14005 PyObject * obj0 = 0 ;
14006 PyObject * obj1 = 0 ;
14007 PyObject * obj2 = 0 ;
14008 char *kwnames[] = {
14009 (char *) "self",(char *) "n",(char *) "strText", NULL
14010 };
14011
14012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14015 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 {
14018 arg3 = wxString_in_helper(obj2);
14019 if (arg3 == NULL) SWIG_fail;
14020 temp3 = True;
14021 }
14022 {
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14025
14026 wxPyEndAllowThreads(__tstate);
14027 if (PyErr_Occurred()) SWIG_fail;
14028 }
14029 {
14030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14031 }
14032 {
14033 if (temp3)
14034 delete arg3;
14035 }
14036 return resultobj;
14037 fail:
14038 {
14039 if (temp3)
14040 delete arg3;
14041 }
14042 return NULL;
14043}
14044
14045
14046static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14047 PyObject *resultobj;
14048 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14049 size_t arg2 ;
14050 wxString result;
14051 PyObject * obj0 = 0 ;
14052 PyObject * obj1 = 0 ;
14053 char *kwnames[] = {
14054 (char *) "self",(char *) "n", NULL
14055 };
14056
14057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14060 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 {
14063 PyThreadState* __tstate = wxPyBeginAllowThreads();
14064 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14065
14066 wxPyEndAllowThreads(__tstate);
14067 if (PyErr_Occurred()) SWIG_fail;
14068 }
14069 {
14070#if wxUSE_UNICODE
14071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14072#else
14073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14074#endif
14075 }
14076 return resultobj;
14077 fail:
14078 return NULL;
14079}
14080
14081
14082static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14083 PyObject *resultobj;
14084 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14085 wxImageList *arg2 = (wxImageList *) 0 ;
14086 PyObject * obj0 = 0 ;
14087 PyObject * obj1 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self",(char *) "imageList", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14095 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14097 {
14098 PyThreadState* __tstate = wxPyBeginAllowThreads();
14099 (arg1)->SetImageList(arg2);
14100
14101 wxPyEndAllowThreads(__tstate);
14102 if (PyErr_Occurred()) SWIG_fail;
14103 }
14104 Py_INCREF(Py_None); resultobj = Py_None;
14105 return resultobj;
14106 fail:
14107 return NULL;
14108}
14109
14110
14111static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14112 PyObject *resultobj;
14113 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14114 wxImageList *arg2 = (wxImageList *) 0 ;
14115 PyObject * obj0 = 0 ;
14116 PyObject * obj1 = 0 ;
14117 char *kwnames[] = {
14118 (char *) "self",(char *) "imageList", NULL
14119 };
14120
14121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14125 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14126 {
14127 PyThreadState* __tstate = wxPyBeginAllowThreads();
14128 (arg1)->AssignImageList(arg2);
14129
14130 wxPyEndAllowThreads(__tstate);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 }
14133 Py_INCREF(Py_None); resultobj = Py_None;
14134 return resultobj;
14135 fail:
14136 return NULL;
14137}
14138
14139
14140static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14141 PyObject *resultobj;
14142 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14143 wxImageList *result;
14144 PyObject * obj0 = 0 ;
14145 char *kwnames[] = {
14146 (char *) "self", NULL
14147 };
14148
14149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14152 {
14153 PyThreadState* __tstate = wxPyBeginAllowThreads();
14154 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14155
14156 wxPyEndAllowThreads(__tstate);
14157 if (PyErr_Occurred()) SWIG_fail;
14158 }
14159 {
14160 resultobj = wxPyMake_wxObject(result);
14161 }
14162 return resultobj;
14163 fail:
14164 return NULL;
14165}
14166
14167
14168static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14169 PyObject *resultobj;
14170 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14171 size_t arg2 ;
14172 int result;
14173 PyObject * obj0 = 0 ;
14174 PyObject * obj1 = 0 ;
14175 char *kwnames[] = {
14176 (char *) "self",(char *) "n", NULL
14177 };
14178
14179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14182 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14183 if (PyErr_Occurred()) SWIG_fail;
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
14186 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14187
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 resultobj = SWIG_FromInt((int)result);
14192 return resultobj;
14193 fail:
14194 return NULL;
14195}
14196
14197
14198static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14199 PyObject *resultobj;
14200 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14201 size_t arg2 ;
14202 int arg3 ;
14203 bool result;
14204 PyObject * obj0 = 0 ;
14205 PyObject * obj1 = 0 ;
14206 PyObject * obj2 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self",(char *) "n",(char *) "imageId", NULL
14209 };
14210
14211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14214 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 arg3 = (int) SWIG_AsInt(obj2);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14221
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 {
14226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14227 }
14228 return resultobj;
14229 fail:
14230 return NULL;
14231}
14232
14233
14234static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14235 PyObject *resultobj;
14236 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14237 wxSize *arg2 = 0 ;
14238 wxSize temp2 ;
14239 PyObject * obj0 = 0 ;
14240 PyObject * obj1 = 0 ;
14241 char *kwnames[] = {
14242 (char *) "self",(char *) "size", NULL
14243 };
14244
14245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14248 {
14249 arg2 = &temp2;
14250 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14251 }
14252 {
14253 PyThreadState* __tstate = wxPyBeginAllowThreads();
14254 (arg1)->SetPageSize((wxSize const &)*arg2);
14255
14256 wxPyEndAllowThreads(__tstate);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 }
14259 Py_INCREF(Py_None); resultobj = Py_None;
14260 return resultobj;
14261 fail:
14262 return NULL;
14263}
14264
14265
14266static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14267 PyObject *resultobj;
14268 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14269 wxSize *arg2 = 0 ;
14270 wxSize result;
14271 wxSize temp2 ;
14272 PyObject * obj0 = 0 ;
14273 PyObject * obj1 = 0 ;
14274 char *kwnames[] = {
14275 (char *) "self",(char *) "sizePage", NULL
14276 };
14277
14278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14281 {
14282 arg2 = &temp2;
14283 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14284 }
14285 {
14286 PyThreadState* __tstate = wxPyBeginAllowThreads();
14287 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14288
14289 wxPyEndAllowThreads(__tstate);
14290 if (PyErr_Occurred()) SWIG_fail;
14291 }
14292 {
14293 wxSize * resultptr;
14294 resultptr = new wxSize((wxSize &) result);
14295 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14296 }
14297 return resultobj;
14298 fail:
14299 return NULL;
14300}
14301
14302
14303static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj;
14305 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14306 size_t arg2 ;
14307 bool result;
14308 PyObject * obj0 = 0 ;
14309 PyObject * obj1 = 0 ;
14310 char *kwnames[] = {
14311 (char *) "self",(char *) "n", NULL
14312 };
14313
14314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14317 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14318 if (PyErr_Occurred()) SWIG_fail;
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (bool)(arg1)->DeletePage(arg2);
14322
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 {
14327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14328 }
14329 return resultobj;
14330 fail:
14331 return NULL;
14332}
14333
14334
14335static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14336 PyObject *resultobj;
14337 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14338 size_t arg2 ;
14339 bool result;
14340 PyObject * obj0 = 0 ;
14341 PyObject * obj1 = 0 ;
14342 char *kwnames[] = {
14343 (char *) "self",(char *) "n", NULL
14344 };
14345
14346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14349 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 {
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 result = (bool)(arg1)->RemovePage(arg2);
14354
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 {
14359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14360 }
14361 return resultobj;
14362 fail:
14363 return NULL;
14364}
14365
14366
14367static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
14368 PyObject *resultobj;
14369 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14370 bool result;
14371 PyObject * obj0 = 0 ;
14372 char *kwnames[] = {
14373 (char *) "self", NULL
14374 };
14375
14376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 result = (bool)(arg1)->DeleteAllPages();
14382
14383 wxPyEndAllowThreads(__tstate);
14384 if (PyErr_Occurred()) SWIG_fail;
14385 }
14386 {
14387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14388 }
14389 return resultobj;
14390 fail:
14391 return NULL;
14392}
14393
14394
14395static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14396 PyObject *resultobj;
14397 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14398 wxWindow *arg2 = (wxWindow *) 0 ;
14399 wxString *arg3 = 0 ;
14400 bool arg4 = (bool) False ;
14401 int arg5 = (int) -1 ;
14402 bool result;
14403 bool temp3 = False ;
14404 PyObject * obj0 = 0 ;
14405 PyObject * obj1 = 0 ;
14406 PyObject * obj2 = 0 ;
14407 PyObject * obj3 = 0 ;
14408 PyObject * obj4 = 0 ;
14409 char *kwnames[] = {
14410 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14411 };
14412
14413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14416 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14418 {
14419 arg3 = wxString_in_helper(obj2);
14420 if (arg3 == NULL) SWIG_fail;
14421 temp3 = True;
14422 }
14423 if (obj3) {
14424 arg4 = (bool) SWIG_AsBool(obj3);
14425 if (PyErr_Occurred()) SWIG_fail;
14426 }
14427 if (obj4) {
14428 arg5 = (int) SWIG_AsInt(obj4);
14429 if (PyErr_Occurred()) SWIG_fail;
14430 }
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14434
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 {
14439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14440 }
14441 {
14442 if (temp3)
14443 delete arg3;
14444 }
14445 return resultobj;
14446 fail:
14447 {
14448 if (temp3)
14449 delete arg3;
14450 }
14451 return NULL;
14452}
14453
14454
14455static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14456 PyObject *resultobj;
14457 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14458 size_t arg2 ;
14459 wxWindow *arg3 = (wxWindow *) 0 ;
14460 wxString *arg4 = 0 ;
14461 bool arg5 = (bool) False ;
14462 int arg6 = (int) -1 ;
14463 bool result;
14464 bool temp4 = False ;
14465 PyObject * obj0 = 0 ;
14466 PyObject * obj1 = 0 ;
14467 PyObject * obj2 = 0 ;
14468 PyObject * obj3 = 0 ;
14469 PyObject * obj4 = 0 ;
14470 PyObject * obj5 = 0 ;
14471 char *kwnames[] = {
14472 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14473 };
14474
14475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14478 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14482 {
14483 arg4 = wxString_in_helper(obj3);
14484 if (arg4 == NULL) SWIG_fail;
14485 temp4 = True;
14486 }
14487 if (obj4) {
14488 arg5 = (bool) SWIG_AsBool(obj4);
14489 if (PyErr_Occurred()) SWIG_fail;
14490 }
14491 if (obj5) {
14492 arg6 = (int) SWIG_AsInt(obj5);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14498
14499 wxPyEndAllowThreads(__tstate);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 {
14503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14504 }
14505 {
14506 if (temp4)
14507 delete arg4;
14508 }
14509 return resultobj;
14510 fail:
14511 {
14512 if (temp4)
14513 delete arg4;
14514 }
14515 return NULL;
14516}
14517
14518
14519static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14520 PyObject *resultobj;
14521 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14522 size_t arg2 ;
14523 int result;
14524 PyObject * obj0 = 0 ;
14525 PyObject * obj1 = 0 ;
14526 char *kwnames[] = {
14527 (char *) "self",(char *) "n", NULL
14528 };
14529
14530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14533 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14534 if (PyErr_Occurred()) SWIG_fail;
14535 {
14536 PyThreadState* __tstate = wxPyBeginAllowThreads();
14537 result = (int)(arg1)->SetSelection(arg2);
14538
14539 wxPyEndAllowThreads(__tstate);
14540 if (PyErr_Occurred()) SWIG_fail;
14541 }
14542 resultobj = SWIG_FromInt((int)result);
14543 return resultobj;
14544 fail:
14545 return NULL;
14546}
14547
14548
14549static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14550 PyObject *resultobj;
14551 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14552 bool arg2 = (bool) True ;
14553 PyObject * obj0 = 0 ;
14554 PyObject * obj1 = 0 ;
14555 char *kwnames[] = {
14556 (char *) "self",(char *) "forward", NULL
14557 };
14558
14559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14562 if (obj1) {
14563 arg2 = (bool) SWIG_AsBool(obj1);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 (arg1)->AdvanceSelection(arg2);
14569
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 Py_INCREF(Py_None); resultobj = Py_None;
14574 return resultobj;
14575 fail:
14576 return NULL;
14577}
14578
14579
f20a2e1f
RD
14580static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14581 PyObject *resultobj;
14582 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14583 wxVisualAttributes result;
14584 PyObject * obj0 = 0 ;
14585 char *kwnames[] = {
14586 (char *) "variant", NULL
14587 };
14588
14589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14590 if (obj0) {
14591 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 }
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14597
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 {
14602 wxVisualAttributes * resultptr;
14603 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14604 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14605 }
14606 return resultobj;
14607 fail:
14608 return NULL;
14609}
14610
14611
d55e5bfc
RD
14612static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
14613 PyObject *obj;
14614 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14615 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14616 Py_INCREF(obj);
14617 return Py_BuildValue((char *)"");
14618}
14619static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14620 PyObject *resultobj;
14621 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14622 int arg2 = (int) 0 ;
14623 int arg3 = (int) -1 ;
14624 int arg4 = (int) -1 ;
14625 wxBookCtrlEvent *result;
14626 PyObject * obj0 = 0 ;
14627 PyObject * obj1 = 0 ;
14628 PyObject * obj2 = 0 ;
14629 PyObject * obj3 = 0 ;
14630 char *kwnames[] = {
14631 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14632 };
14633
14634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14635 if (obj0) {
14636 arg1 = (wxEventType) SWIG_AsInt(obj0);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 if (obj1) {
14640 arg2 = (int) SWIG_AsInt(obj1);
14641 if (PyErr_Occurred()) SWIG_fail;
14642 }
14643 if (obj2) {
14644 arg3 = (int) SWIG_AsInt(obj2);
14645 if (PyErr_Occurred()) SWIG_fail;
14646 }
14647 if (obj3) {
14648 arg4 = (int) SWIG_AsInt(obj3);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 {
14652 PyThreadState* __tstate = wxPyBeginAllowThreads();
14653 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14654
14655 wxPyEndAllowThreads(__tstate);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14659 return resultobj;
14660 fail:
14661 return NULL;
14662}
14663
14664
14665static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14666 PyObject *resultobj;
14667 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14668 int result;
14669 PyObject * obj0 = 0 ;
14670 char *kwnames[] = {
14671 (char *) "self", NULL
14672 };
14673
14674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14677 {
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14680
14681 wxPyEndAllowThreads(__tstate);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 }
14684 resultobj = SWIG_FromInt((int)result);
14685 return resultobj;
14686 fail:
14687 return NULL;
14688}
14689
14690
14691static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14692 PyObject *resultobj;
14693 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14694 int arg2 ;
14695 PyObject * obj0 = 0 ;
14696 PyObject * obj1 = 0 ;
14697 char *kwnames[] = {
14698 (char *) "self",(char *) "nSel", NULL
14699 };
14700
14701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14704 arg2 = (int) SWIG_AsInt(obj1);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 {
14707 PyThreadState* __tstate = wxPyBeginAllowThreads();
14708 (arg1)->SetSelection(arg2);
14709
14710 wxPyEndAllowThreads(__tstate);
14711 if (PyErr_Occurred()) SWIG_fail;
14712 }
14713 Py_INCREF(Py_None); resultobj = Py_None;
14714 return resultobj;
14715 fail:
14716 return NULL;
14717}
14718
14719
14720static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14721 PyObject *resultobj;
14722 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14723 int result;
14724 PyObject * obj0 = 0 ;
14725 char *kwnames[] = {
14726 (char *) "self", NULL
14727 };
14728
14729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
14730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14732 {
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
14735
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 resultobj = SWIG_FromInt((int)result);
14740 return resultobj;
14741 fail:
14742 return NULL;
14743}
14744
14745
14746static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14747 PyObject *resultobj;
14748 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14749 int arg2 ;
14750 PyObject * obj0 = 0 ;
14751 PyObject * obj1 = 0 ;
14752 char *kwnames[] = {
14753 (char *) "self",(char *) "nOldSel", NULL
14754 };
14755
14756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
14757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14759 arg2 = (int) SWIG_AsInt(obj1);
14760 if (PyErr_Occurred()) SWIG_fail;
14761 {
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
14763 (arg1)->SetOldSelection(arg2);
14764
14765 wxPyEndAllowThreads(__tstate);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 Py_INCREF(Py_None); resultobj = Py_None;
14769 return resultobj;
14770 fail:
14771 return NULL;
14772}
14773
14774
14775static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
14776 PyObject *obj;
14777 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14778 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
14779 Py_INCREF(obj);
14780 return Py_BuildValue((char *)"");
14781}
14782static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14783 PyObject *resultobj;
14784 wxWindow *arg1 = (wxWindow *) 0 ;
14785 int arg2 = (int) -1 ;
14786 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14787 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14788 wxSize const &arg4_defvalue = wxDefaultSize ;
14789 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14790 long arg5 = (long) 0 ;
14791 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14792 wxString *arg6 = (wxString *) &arg6_defvalue ;
14793 wxNotebook *result;
14794 wxPoint temp3 ;
14795 wxSize temp4 ;
14796 bool temp6 = False ;
14797 PyObject * obj0 = 0 ;
14798 PyObject * obj1 = 0 ;
14799 PyObject * obj2 = 0 ;
14800 PyObject * obj3 = 0 ;
14801 PyObject * obj4 = 0 ;
14802 PyObject * obj5 = 0 ;
14803 char *kwnames[] = {
14804 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14805 };
14806
14807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14810 if (obj1) {
14811 arg2 = (int) SWIG_AsInt(obj1);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 }
14814 if (obj2) {
14815 {
14816 arg3 = &temp3;
14817 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14818 }
14819 }
14820 if (obj3) {
14821 {
14822 arg4 = &temp4;
14823 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14824 }
14825 }
14826 if (obj4) {
14827 arg5 = (long) SWIG_AsLong(obj4);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 }
14830 if (obj5) {
14831 {
14832 arg6 = wxString_in_helper(obj5);
14833 if (arg6 == NULL) SWIG_fail;
14834 temp6 = True;
14835 }
14836 }
14837 {
14838 PyThreadState* __tstate = wxPyBeginAllowThreads();
14839 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14840
14841 wxPyEndAllowThreads(__tstate);
14842 if (PyErr_Occurred()) SWIG_fail;
14843 }
14844 {
14845 resultobj = wxPyMake_wxObject(result);
14846 }
14847 {
14848 if (temp6)
14849 delete arg6;
14850 }
14851 return resultobj;
14852 fail:
14853 {
14854 if (temp6)
14855 delete arg6;
14856 }
14857 return NULL;
14858}
14859
14860
14861static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14862 PyObject *resultobj;
14863 wxNotebook *result;
14864 char *kwnames[] = {
14865 NULL
14866 };
14867
14868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
14869 {
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 result = (wxNotebook *)new wxNotebook();
14872
14873 wxPyEndAllowThreads(__tstate);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 }
14876 {
14877 resultobj = wxPyMake_wxObject(result);
14878 }
14879 return resultobj;
14880 fail:
14881 return NULL;
14882}
14883
14884
14885static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14886 PyObject *resultobj;
14887 wxNotebook *arg1 = (wxNotebook *) 0 ;
14888 wxWindow *arg2 = (wxWindow *) 0 ;
14889 int arg3 ;
14890 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14891 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14892 wxSize const &arg5_defvalue = wxDefaultSize ;
14893 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14894 long arg6 = (long) 0 ;
14895 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
14896 wxString *arg7 = (wxString *) &arg7_defvalue ;
14897 bool result;
14898 wxPoint temp4 ;
14899 wxSize temp5 ;
14900 bool temp7 = False ;
14901 PyObject * obj0 = 0 ;
14902 PyObject * obj1 = 0 ;
14903 PyObject * obj2 = 0 ;
14904 PyObject * obj3 = 0 ;
14905 PyObject * obj4 = 0 ;
14906 PyObject * obj5 = 0 ;
14907 PyObject * obj6 = 0 ;
14908 char *kwnames[] = {
14909 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14910 };
14911
14912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
14913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14917 arg3 = (int) SWIG_AsInt(obj2);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 if (obj3) {
14920 {
14921 arg4 = &temp4;
14922 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14923 }
14924 }
14925 if (obj4) {
14926 {
14927 arg5 = &temp5;
14928 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14929 }
14930 }
14931 if (obj5) {
14932 arg6 = (long) SWIG_AsLong(obj5);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 if (obj6) {
14936 {
14937 arg7 = wxString_in_helper(obj6);
14938 if (arg7 == NULL) SWIG_fail;
14939 temp7 = True;
14940 }
14941 }
14942 {
14943 PyThreadState* __tstate = wxPyBeginAllowThreads();
14944 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14945
14946 wxPyEndAllowThreads(__tstate);
14947 if (PyErr_Occurred()) SWIG_fail;
14948 }
14949 {
14950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14951 }
14952 {
14953 if (temp7)
14954 delete arg7;
14955 }
14956 return resultobj;
14957 fail:
14958 {
14959 if (temp7)
14960 delete arg7;
14961 }
14962 return NULL;
14963}
14964
14965
14966static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14967 PyObject *resultobj;
14968 wxNotebook *arg1 = (wxNotebook *) 0 ;
14969 int result;
14970 PyObject * obj0 = 0 ;
14971 char *kwnames[] = {
14972 (char *) "self", NULL
14973 };
14974
14975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
14976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
14977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 result = (int)((wxNotebook const *)arg1)->GetRowCount();
14981
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 resultobj = SWIG_FromInt((int)result);
14986 return resultobj;
14987 fail:
14988 return NULL;
14989}
14990
14991
14992static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
14993 PyObject *resultobj;
14994 wxNotebook *arg1 = (wxNotebook *) 0 ;
14995 wxSize *arg2 = 0 ;
14996 wxSize temp2 ;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 char *kwnames[] = {
15000 (char *) "self",(char *) "padding", NULL
15001 };
15002
15003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15006 {
15007 arg2 = &temp2;
15008 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15009 }
15010 {
15011 PyThreadState* __tstate = wxPyBeginAllowThreads();
15012 (arg1)->SetPadding((wxSize const &)*arg2);
15013
15014 wxPyEndAllowThreads(__tstate);
15015 if (PyErr_Occurred()) SWIG_fail;
15016 }
15017 Py_INCREF(Py_None); resultobj = Py_None;
15018 return resultobj;
15019 fail:
15020 return NULL;
15021}
15022
15023
15024static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15025 PyObject *resultobj;
15026 wxNotebook *arg1 = (wxNotebook *) 0 ;
15027 wxSize *arg2 = 0 ;
15028 wxSize temp2 ;
15029 PyObject * obj0 = 0 ;
15030 PyObject * obj1 = 0 ;
15031 char *kwnames[] = {
15032 (char *) "self",(char *) "sz", NULL
15033 };
15034
15035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15038 {
15039 arg2 = &temp2;
15040 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15041 }
15042 {
15043 PyThreadState* __tstate = wxPyBeginAllowThreads();
15044 (arg1)->SetTabSize((wxSize const &)*arg2);
15045
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 Py_INCREF(Py_None); resultobj = Py_None;
15050 return resultobj;
15051 fail:
15052 return NULL;
15053}
15054
15055
15056static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
15057 PyObject *resultobj;
15058 wxNotebook *arg1 = (wxNotebook *) 0 ;
15059 wxPoint *arg2 = 0 ;
15060 long *arg3 = (long *) 0 ;
15061 int result;
15062 wxPoint temp2 ;
15063 long temp3 ;
15064 PyObject * obj0 = 0 ;
15065 PyObject * obj1 = 0 ;
15066 char *kwnames[] = {
15067 (char *) "self",(char *) "pt", NULL
15068 };
15069
15070 arg3 = &temp3;
15071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15074 {
15075 arg2 = &temp2;
15076 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15077 }
15078 {
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15081
15082 wxPyEndAllowThreads(__tstate);
15083 if (PyErr_Occurred()) SWIG_fail;
15084 }
15085 resultobj = SWIG_FromInt((int)result);
15086 {
15087 PyObject *o = PyInt_FromLong((long) (*arg3));
15088 resultobj = t_output_helper(resultobj,o);
15089 }
15090 return resultobj;
15091 fail:
15092 return NULL;
15093}
15094
15095
15096static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
15097 PyObject *resultobj;
15098 wxNotebook *arg1 = (wxNotebook *) 0 ;
15099 wxSize *arg2 = 0 ;
15100 wxSize result;
15101 wxSize temp2 ;
15102 PyObject * obj0 = 0 ;
15103 PyObject * obj1 = 0 ;
15104 char *kwnames[] = {
15105 (char *) "self",(char *) "sizePage", NULL
15106 };
15107
15108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15111 {
15112 arg2 = &temp2;
15113 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15114 }
15115 {
15116 PyThreadState* __tstate = wxPyBeginAllowThreads();
15117 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15118
15119 wxPyEndAllowThreads(__tstate);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 {
15123 wxSize * resultptr;
15124 resultptr = new wxSize((wxSize &) result);
15125 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15126 }
15127 return resultobj;
15128 fail:
15129 return NULL;
15130}
15131
15132
f20a2e1f
RD
15133static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
15134 PyObject *resultobj;
15135 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15136 wxVisualAttributes result;
15137 PyObject * obj0 = 0 ;
15138 char *kwnames[] = {
15139 (char *) "variant", NULL
15140 };
15141
15142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15143 if (obj0) {
15144 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 {
15148 PyThreadState* __tstate = wxPyBeginAllowThreads();
15149 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15150
15151 wxPyEndAllowThreads(__tstate);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 }
15154 {
15155 wxVisualAttributes * resultptr;
15156 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15158 }
15159 return resultobj;
15160 fail:
15161 return NULL;
15162}
15163
15164
d55e5bfc
RD
15165static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
15166 PyObject *obj;
15167 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15168 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15169 Py_INCREF(obj);
15170 return Py_BuildValue((char *)"");
15171}
15172static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15173 PyObject *resultobj;
15174 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15175 int arg2 = (int) 0 ;
15176 int arg3 = (int) -1 ;
15177 int arg4 = (int) -1 ;
15178 wxNotebookEvent *result;
15179 PyObject * obj0 = 0 ;
15180 PyObject * obj1 = 0 ;
15181 PyObject * obj2 = 0 ;
15182 PyObject * obj3 = 0 ;
15183 char *kwnames[] = {
15184 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15185 };
15186
15187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15188 if (obj0) {
15189 arg1 = (wxEventType) SWIG_AsInt(obj0);
15190 if (PyErr_Occurred()) SWIG_fail;
15191 }
15192 if (obj1) {
15193 arg2 = (int) SWIG_AsInt(obj1);
15194 if (PyErr_Occurred()) SWIG_fail;
15195 }
15196 if (obj2) {
15197 arg3 = (int) SWIG_AsInt(obj2);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 if (obj3) {
15201 arg4 = (int) SWIG_AsInt(obj3);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 {
15205 PyThreadState* __tstate = wxPyBeginAllowThreads();
15206 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15207
15208 wxPyEndAllowThreads(__tstate);
15209 if (PyErr_Occurred()) SWIG_fail;
15210 }
15211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15212 return resultobj;
15213 fail:
15214 return NULL;
15215}
15216
15217
15218static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
15219 PyObject *obj;
15220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15221 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15222 Py_INCREF(obj);
15223 return Py_BuildValue((char *)"");
15224}
15225static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj;
15227 wxWindow *arg1 = (wxWindow *) 0 ;
15228 int arg2 = (int) -1 ;
15229 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15230 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15231 wxSize const &arg4_defvalue = wxDefaultSize ;
15232 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15233 long arg5 = (long) 0 ;
15234 wxString const &arg6_defvalue = wxPyEmptyString ;
15235 wxString *arg6 = (wxString *) &arg6_defvalue ;
15236 wxListbook *result;
15237 wxPoint temp3 ;
15238 wxSize temp4 ;
15239 bool temp6 = False ;
15240 PyObject * obj0 = 0 ;
15241 PyObject * obj1 = 0 ;
15242 PyObject * obj2 = 0 ;
15243 PyObject * obj3 = 0 ;
15244 PyObject * obj4 = 0 ;
15245 PyObject * obj5 = 0 ;
15246 char *kwnames[] = {
15247 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15248 };
15249
15250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15253 if (obj1) {
15254 arg2 = (int) SWIG_AsInt(obj1);
15255 if (PyErr_Occurred()) SWIG_fail;
15256 }
15257 if (obj2) {
15258 {
15259 arg3 = &temp3;
15260 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15261 }
15262 }
15263 if (obj3) {
15264 {
15265 arg4 = &temp4;
15266 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15267 }
15268 }
15269 if (obj4) {
15270 arg5 = (long) SWIG_AsLong(obj4);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 if (obj5) {
15274 {
15275 arg6 = wxString_in_helper(obj5);
15276 if (arg6 == NULL) SWIG_fail;
15277 temp6 = True;
15278 }
15279 }
15280 {
15281 PyThreadState* __tstate = wxPyBeginAllowThreads();
15282 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15283
15284 wxPyEndAllowThreads(__tstate);
15285 if (PyErr_Occurred()) SWIG_fail;
15286 }
15287 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15288 {
15289 if (temp6)
15290 delete arg6;
15291 }
15292 return resultobj;
15293 fail:
15294 {
15295 if (temp6)
15296 delete arg6;
15297 }
15298 return NULL;
15299}
15300
15301
15302static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15303 PyObject *resultobj;
15304 wxListbook *result;
15305 char *kwnames[] = {
15306 NULL
15307 };
15308
15309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15310 {
15311 PyThreadState* __tstate = wxPyBeginAllowThreads();
15312 result = (wxListbook *)new wxListbook();
15313
15314 wxPyEndAllowThreads(__tstate);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15318 return resultobj;
15319 fail:
15320 return NULL;
15321}
15322
15323
15324static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15325 PyObject *resultobj;
15326 wxListbook *arg1 = (wxListbook *) 0 ;
15327 wxWindow *arg2 = (wxWindow *) 0 ;
15328 int arg3 ;
15329 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15330 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15331 wxSize const &arg5_defvalue = wxDefaultSize ;
15332 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15333 long arg6 = (long) 0 ;
15334 wxString const &arg7_defvalue = wxPyEmptyString ;
15335 wxString *arg7 = (wxString *) &arg7_defvalue ;
15336 bool result;
15337 wxPoint temp4 ;
15338 wxSize temp5 ;
15339 bool temp7 = False ;
15340 PyObject * obj0 = 0 ;
15341 PyObject * obj1 = 0 ;
15342 PyObject * obj2 = 0 ;
15343 PyObject * obj3 = 0 ;
15344 PyObject * obj4 = 0 ;
15345 PyObject * obj5 = 0 ;
15346 PyObject * obj6 = 0 ;
15347 char *kwnames[] = {
15348 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15349 };
15350
15351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15354 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15356 arg3 = (int) SWIG_AsInt(obj2);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 if (obj3) {
15359 {
15360 arg4 = &temp4;
15361 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15362 }
15363 }
15364 if (obj4) {
15365 {
15366 arg5 = &temp5;
15367 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15368 }
15369 }
15370 if (obj5) {
15371 arg6 = (long) SWIG_AsLong(obj5);
15372 if (PyErr_Occurred()) SWIG_fail;
15373 }
15374 if (obj6) {
15375 {
15376 arg7 = wxString_in_helper(obj6);
15377 if (arg7 == NULL) SWIG_fail;
15378 temp7 = True;
15379 }
15380 }
15381 {
15382 PyThreadState* __tstate = wxPyBeginAllowThreads();
15383 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15384
15385 wxPyEndAllowThreads(__tstate);
15386 if (PyErr_Occurred()) SWIG_fail;
15387 }
15388 {
15389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15390 }
15391 {
15392 if (temp7)
15393 delete arg7;
15394 }
15395 return resultobj;
15396 fail:
15397 {
15398 if (temp7)
15399 delete arg7;
15400 }
15401 return NULL;
15402}
15403
15404
15405static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
15406 PyObject *resultobj;
15407 wxListbook *arg1 = (wxListbook *) 0 ;
15408 bool result;
15409 PyObject * obj0 = 0 ;
15410 char *kwnames[] = {
15411 (char *) "self", NULL
15412 };
15413
15414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (bool)((wxListbook const *)arg1)->IsVertical();
15420
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 {
15425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15426 }
15427 return resultobj;
15428 fail:
15429 return NULL;
15430}
15431
15432
15433static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
15434 PyObject *obj;
15435 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15436 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15437 Py_INCREF(obj);
15438 return Py_BuildValue((char *)"");
15439}
15440static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15441 PyObject *resultobj;
15442 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15443 int arg2 = (int) 0 ;
15444 int arg3 = (int) -1 ;
15445 int arg4 = (int) -1 ;
15446 wxListbookEvent *result;
15447 PyObject * obj0 = 0 ;
15448 PyObject * obj1 = 0 ;
15449 PyObject * obj2 = 0 ;
15450 PyObject * obj3 = 0 ;
15451 char *kwnames[] = {
15452 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15453 };
15454
15455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15456 if (obj0) {
15457 arg1 = (wxEventType) SWIG_AsInt(obj0);
15458 if (PyErr_Occurred()) SWIG_fail;
15459 }
15460 if (obj1) {
15461 arg2 = (int) SWIG_AsInt(obj1);
15462 if (PyErr_Occurred()) SWIG_fail;
15463 }
15464 if (obj2) {
15465 arg3 = (int) SWIG_AsInt(obj2);
15466 if (PyErr_Occurred()) SWIG_fail;
15467 }
15468 if (obj3) {
15469 arg4 = (int) SWIG_AsInt(obj3);
15470 if (PyErr_Occurred()) SWIG_fail;
15471 }
15472 {
15473 PyThreadState* __tstate = wxPyBeginAllowThreads();
15474 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15475
15476 wxPyEndAllowThreads(__tstate);
15477 if (PyErr_Occurred()) SWIG_fail;
15478 }
15479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15480 return resultobj;
15481 fail:
15482 return NULL;
15483}
15484
15485
15486static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
15487 PyObject *obj;
15488 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15489 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15490 Py_INCREF(obj);
15491 return Py_BuildValue((char *)"");
15492}
15493static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15494 PyObject *resultobj;
15495 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15496 wxBookCtrlSizer *result;
15497 PyObject * obj0 = 0 ;
15498 char *kwnames[] = {
15499 (char *) "nb", NULL
15500 };
15501
15502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15505 {
15506 PyThreadState* __tstate = wxPyBeginAllowThreads();
15507 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15508
15509 wxPyEndAllowThreads(__tstate);
15510 if (PyErr_Occurred()) SWIG_fail;
15511 }
15512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15513 return resultobj;
15514 fail:
15515 return NULL;
15516}
15517
15518
15519static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15520 PyObject *resultobj;
15521 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15522 PyObject * obj0 = 0 ;
15523 char *kwnames[] = {
15524 (char *) "self", NULL
15525 };
15526
15527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15530 {
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 (arg1)->RecalcSizes();
15533
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 Py_INCREF(Py_None); resultobj = Py_None;
15538 return resultobj;
15539 fail:
15540 return NULL;
15541}
15542
15543
15544static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15545 PyObject *resultobj;
15546 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15547 wxSize result;
15548 PyObject * obj0 = 0 ;
15549 char *kwnames[] = {
15550 (char *) "self", NULL
15551 };
15552
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 result = (arg1)->CalcMin();
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 {
15564 wxSize * resultptr;
15565 resultptr = new wxSize((wxSize &) result);
15566 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15567 }
15568 return resultobj;
15569 fail:
15570 return NULL;
15571}
15572
15573
15574static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15575 PyObject *resultobj;
15576 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15577 wxBookCtrl *result;
15578 PyObject * obj0 = 0 ;
15579 char *kwnames[] = {
15580 (char *) "self", NULL
15581 };
15582
15583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15586 {
15587 PyThreadState* __tstate = wxPyBeginAllowThreads();
15588 result = (wxBookCtrl *)(arg1)->GetControl();
15589
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15594 return resultobj;
15595 fail:
15596 return NULL;
15597}
15598
15599
15600static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
15601 PyObject *obj;
15602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15603 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15604 Py_INCREF(obj);
15605 return Py_BuildValue((char *)"");
15606}
15607static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15608 PyObject *resultobj;
15609 wxNotebook *arg1 = (wxNotebook *) 0 ;
15610 wxNotebookSizer *result;
15611 PyObject * obj0 = 0 ;
15612 char *kwnames[] = {
15613 (char *) "nb", NULL
15614 };
15615
15616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
15621 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15622
15623 wxPyEndAllowThreads(__tstate);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15627 return resultobj;
15628 fail:
15629 return NULL;
15630}
15631
15632
15633static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15634 PyObject *resultobj;
15635 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15636 PyObject * obj0 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "self", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 (arg1)->RecalcSizes();
15647
15648 wxPyEndAllowThreads(__tstate);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 Py_INCREF(Py_None); resultobj = Py_None;
15652 return resultobj;
15653 fail:
15654 return NULL;
15655}
15656
15657
15658static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15659 PyObject *resultobj;
15660 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15661 wxSize result;
15662 PyObject * obj0 = 0 ;
15663 char *kwnames[] = {
15664 (char *) "self", NULL
15665 };
15666
15667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
15668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 result = (arg1)->CalcMin();
15673
15674 wxPyEndAllowThreads(__tstate);
15675 if (PyErr_Occurred()) SWIG_fail;
15676 }
15677 {
15678 wxSize * resultptr;
15679 resultptr = new wxSize((wxSize &) result);
15680 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15681 }
15682 return resultobj;
15683 fail:
15684 return NULL;
15685}
15686
15687
15688static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15689 PyObject *resultobj;
15690 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15691 wxNotebook *result;
15692 PyObject * obj0 = 0 ;
15693 char *kwnames[] = {
15694 (char *) "self", NULL
15695 };
15696
15697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
15698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 result = (wxNotebook *)(arg1)->GetNotebook();
15703
15704 wxPyEndAllowThreads(__tstate);
15705 if (PyErr_Occurred()) SWIG_fail;
15706 }
15707 {
15708 resultobj = wxPyMake_wxObject(result);
15709 }
15710 return resultobj;
15711 fail:
15712 return NULL;
15713}
15714
15715
15716static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
15717 PyObject *obj;
15718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15719 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
15720 Py_INCREF(obj);
15721 return Py_BuildValue((char *)"");
15722}
15723static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
15724 PyObject *resultobj;
15725 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15726 int result;
15727 PyObject * obj0 = 0 ;
15728 char *kwnames[] = {
15729 (char *) "self", NULL
15730 };
15731
15732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
15733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15735 {
15736 PyThreadState* __tstate = wxPyBeginAllowThreads();
15737 result = (int)(arg1)->GetId();
15738
15739 wxPyEndAllowThreads(__tstate);
15740 if (PyErr_Occurred()) SWIG_fail;
15741 }
15742 resultobj = SWIG_FromInt((int)result);
15743 return resultobj;
15744 fail:
15745 return NULL;
15746}
15747
15748
15749static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15750 PyObject *resultobj;
15751 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15752 wxControl *result;
15753 PyObject * obj0 = 0 ;
15754 char *kwnames[] = {
15755 (char *) "self", NULL
15756 };
15757
15758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
15759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15761 {
15762 PyThreadState* __tstate = wxPyBeginAllowThreads();
15763 result = (wxControl *)(arg1)->GetControl();
15764
15765 wxPyEndAllowThreads(__tstate);
15766 if (PyErr_Occurred()) SWIG_fail;
15767 }
15768 {
15769 resultobj = wxPyMake_wxObject(result);
15770 }
15771 return resultobj;
15772 fail:
15773 return NULL;
15774}
15775
15776
15777static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
15778 PyObject *resultobj;
15779 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15780 wxToolBarBase *result;
15781 PyObject * obj0 = 0 ;
15782 char *kwnames[] = {
15783 (char *) "self", NULL
15784 };
15785
15786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
15787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15789 {
15790 PyThreadState* __tstate = wxPyBeginAllowThreads();
15791 result = (wxToolBarBase *)(arg1)->GetToolBar();
15792
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 {
15797 resultobj = wxPyMake_wxObject(result);
15798 }
15799 return resultobj;
15800 fail:
15801 return NULL;
15802}
15803
15804
15805static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15806 PyObject *resultobj;
15807 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15808 int result;
15809 PyObject * obj0 = 0 ;
15810 char *kwnames[] = {
15811 (char *) "self", NULL
15812 };
15813
15814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = (int)(arg1)->IsButton();
15820
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 resultobj = SWIG_FromInt((int)result);
15825 return resultobj;
15826 fail:
15827 return NULL;
15828}
15829
15830
15831static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15832 PyObject *resultobj;
15833 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15834 int result;
15835 PyObject * obj0 = 0 ;
15836 char *kwnames[] = {
15837 (char *) "self", NULL
15838 };
15839
15840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
15841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15843 {
15844 PyThreadState* __tstate = wxPyBeginAllowThreads();
15845 result = (int)(arg1)->IsControl();
15846
15847 wxPyEndAllowThreads(__tstate);
15848 if (PyErr_Occurred()) SWIG_fail;
15849 }
15850 resultobj = SWIG_FromInt((int)result);
15851 return resultobj;
15852 fail:
15853 return NULL;
15854}
15855
15856
15857static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj;
15859 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15860 int result;
15861 PyObject * obj0 = 0 ;
15862 char *kwnames[] = {
15863 (char *) "self", NULL
15864 };
15865
15866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
15867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15869 {
15870 PyThreadState* __tstate = wxPyBeginAllowThreads();
15871 result = (int)(arg1)->IsSeparator();
15872
15873 wxPyEndAllowThreads(__tstate);
15874 if (PyErr_Occurred()) SWIG_fail;
15875 }
15876 resultobj = SWIG_FromInt((int)result);
15877 return resultobj;
15878 fail:
15879 return NULL;
15880}
15881
15882
15883static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15884 PyObject *resultobj;
15885 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15886 int result;
15887 PyObject * obj0 = 0 ;
15888 char *kwnames[] = {
15889 (char *) "self", NULL
15890 };
15891
15892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
15893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15895 {
15896 PyThreadState* __tstate = wxPyBeginAllowThreads();
15897 result = (int)(arg1)->GetStyle();
15898
15899 wxPyEndAllowThreads(__tstate);
15900 if (PyErr_Occurred()) SWIG_fail;
15901 }
15902 resultobj = SWIG_FromInt((int)result);
15903 return resultobj;
15904 fail:
15905 return NULL;
15906}
15907
15908
15909static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
15910 PyObject *resultobj;
15911 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15912 int result;
15913 PyObject * obj0 = 0 ;
15914 char *kwnames[] = {
15915 (char *) "self", NULL
15916 };
15917
15918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
15919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15921 {
15922 PyThreadState* __tstate = wxPyBeginAllowThreads();
15923 result = (int)(arg1)->GetKind();
15924
15925 wxPyEndAllowThreads(__tstate);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 }
15928 resultobj = SWIG_FromInt((int)result);
15929 return resultobj;
15930 fail:
15931 return NULL;
15932}
15933
15934
15935static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
15936 PyObject *resultobj;
15937 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15938 bool result;
15939 PyObject * obj0 = 0 ;
15940 char *kwnames[] = {
15941 (char *) "self", NULL
15942 };
15943
15944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
15945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15947 {
15948 PyThreadState* __tstate = wxPyBeginAllowThreads();
15949 result = (bool)(arg1)->IsEnabled();
15950
15951 wxPyEndAllowThreads(__tstate);
15952 if (PyErr_Occurred()) SWIG_fail;
15953 }
15954 {
15955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15956 }
15957 return resultobj;
15958 fail:
15959 return NULL;
15960}
15961
15962
15963static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15964 PyObject *resultobj;
15965 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15966 bool result;
15967 PyObject * obj0 = 0 ;
15968 char *kwnames[] = {
15969 (char *) "self", NULL
15970 };
15971
15972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
15973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15975 {
15976 PyThreadState* __tstate = wxPyBeginAllowThreads();
15977 result = (bool)(arg1)->IsToggled();
15978
15979 wxPyEndAllowThreads(__tstate);
15980 if (PyErr_Occurred()) SWIG_fail;
15981 }
15982 {
15983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15984 }
15985 return resultobj;
15986 fail:
15987 return NULL;
15988}
15989
15990
15991static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
15992 PyObject *resultobj;
15993 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15994 bool result;
15995 PyObject * obj0 = 0 ;
15996 char *kwnames[] = {
15997 (char *) "self", NULL
15998 };
15999
16000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16003 {
16004 PyThreadState* __tstate = wxPyBeginAllowThreads();
16005 result = (bool)(arg1)->CanBeToggled();
16006
16007 wxPyEndAllowThreads(__tstate);
16008 if (PyErr_Occurred()) SWIG_fail;
16009 }
16010 {
16011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16012 }
16013 return resultobj;
16014 fail:
16015 return NULL;
16016}
16017
16018
16019static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16020 PyObject *resultobj;
16021 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16022 wxBitmap *result;
16023 PyObject * obj0 = 0 ;
16024 char *kwnames[] = {
16025 (char *) "self", NULL
16026 };
16027
16028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16031 {
16032 PyThreadState* __tstate = wxPyBeginAllowThreads();
16033 {
16034 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16035 result = (wxBitmap *) &_result_ref;
16036 }
16037
16038 wxPyEndAllowThreads(__tstate);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 }
16041 {
16042 wxBitmap* resultptr = new wxBitmap(*result);
16043 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16044 }
16045 return resultobj;
16046 fail:
16047 return NULL;
16048}
16049
16050
16051static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16052 PyObject *resultobj;
16053 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16054 wxBitmap *result;
16055 PyObject * obj0 = 0 ;
16056 char *kwnames[] = {
16057 (char *) "self", NULL
16058 };
16059
16060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16063 {
16064 PyThreadState* __tstate = wxPyBeginAllowThreads();
16065 {
16066 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16067 result = (wxBitmap *) &_result_ref;
16068 }
16069
16070 wxPyEndAllowThreads(__tstate);
16071 if (PyErr_Occurred()) SWIG_fail;
16072 }
16073 {
16074 wxBitmap* resultptr = new wxBitmap(*result);
16075 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16076 }
16077 return resultobj;
16078 fail:
16079 return NULL;
16080}
16081
16082
16083static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16084 PyObject *resultobj;
16085 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16086 wxBitmap result;
16087 PyObject * obj0 = 0 ;
16088 char *kwnames[] = {
16089 (char *) "self", NULL
16090 };
16091
16092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 result = (arg1)->GetBitmap();
16098
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 {
16103 wxBitmap * resultptr;
16104 resultptr = new wxBitmap((wxBitmap &) result);
16105 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16106 }
16107 return resultobj;
16108 fail:
16109 return NULL;
16110}
16111
16112
16113static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16114 PyObject *resultobj;
16115 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16116 wxString result;
16117 PyObject * obj0 = 0 ;
16118 char *kwnames[] = {
16119 (char *) "self", NULL
16120 };
16121
16122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16125 {
16126 PyThreadState* __tstate = wxPyBeginAllowThreads();
16127 result = (arg1)->GetLabel();
16128
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 {
16133#if wxUSE_UNICODE
16134 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16135#else
16136 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16137#endif
16138 }
16139 return resultobj;
16140 fail:
16141 return NULL;
16142}
16143
16144
16145static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16146 PyObject *resultobj;
16147 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16148 wxString result;
16149 PyObject * obj0 = 0 ;
16150 char *kwnames[] = {
16151 (char *) "self", NULL
16152 };
16153
16154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16157 {
16158 PyThreadState* __tstate = wxPyBeginAllowThreads();
16159 result = (arg1)->GetShortHelp();
16160
16161 wxPyEndAllowThreads(__tstate);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 {
16165#if wxUSE_UNICODE
16166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16167#else
16168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16169#endif
16170 }
16171 return resultobj;
16172 fail:
16173 return NULL;
16174}
16175
16176
16177static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16178 PyObject *resultobj;
16179 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16180 wxString result;
16181 PyObject * obj0 = 0 ;
16182 char *kwnames[] = {
16183 (char *) "self", NULL
16184 };
16185
16186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16189 {
16190 PyThreadState* __tstate = wxPyBeginAllowThreads();
16191 result = (arg1)->GetLongHelp();
16192
16193 wxPyEndAllowThreads(__tstate);
16194 if (PyErr_Occurred()) SWIG_fail;
16195 }
16196 {
16197#if wxUSE_UNICODE
16198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16199#else
16200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16201#endif
16202 }
16203 return resultobj;
16204 fail:
16205 return NULL;
16206}
16207
16208
16209static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
16210 PyObject *resultobj;
16211 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16212 bool arg2 ;
16213 bool result;
16214 PyObject * obj0 = 0 ;
16215 PyObject * obj1 = 0 ;
16216 char *kwnames[] = {
16217 (char *) "self",(char *) "enable", NULL
16218 };
16219
16220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16223 arg2 = (bool) SWIG_AsBool(obj1);
16224 if (PyErr_Occurred()) SWIG_fail;
16225 {
16226 PyThreadState* __tstate = wxPyBeginAllowThreads();
16227 result = (bool)(arg1)->Enable(arg2);
16228
16229 wxPyEndAllowThreads(__tstate);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 }
16232 {
16233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16234 }
16235 return resultobj;
16236 fail:
16237 return NULL;
16238}
16239
16240
16241static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16242 PyObject *resultobj;
16243 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16244 PyObject * obj0 = 0 ;
16245 char *kwnames[] = {
16246 (char *) "self", NULL
16247 };
16248
16249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
16254 (arg1)->Toggle();
16255
16256 wxPyEndAllowThreads(__tstate);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 Py_INCREF(Py_None); resultobj = Py_None;
16260 return resultobj;
16261 fail:
16262 return NULL;
16263}
16264
16265
16266static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj;
16268 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16269 bool arg2 ;
16270 bool result;
16271 PyObject * obj0 = 0 ;
16272 PyObject * obj1 = 0 ;
16273 char *kwnames[] = {
16274 (char *) "self",(char *) "toggle", NULL
16275 };
16276
16277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16280 arg2 = (bool) SWIG_AsBool(obj1);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (bool)(arg1)->SetToggle(arg2);
16285
16286 wxPyEndAllowThreads(__tstate);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 {
16290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16291 }
16292 return resultobj;
16293 fail:
16294 return NULL;
16295}
16296
16297
16298static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16299 PyObject *resultobj;
16300 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16301 wxString *arg2 = 0 ;
16302 bool result;
16303 bool temp2 = False ;
16304 PyObject * obj0 = 0 ;
16305 PyObject * obj1 = 0 ;
16306 char *kwnames[] = {
16307 (char *) "self",(char *) "help", NULL
16308 };
16309
16310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16313 {
16314 arg2 = wxString_in_helper(obj1);
16315 if (arg2 == NULL) SWIG_fail;
16316 temp2 = True;
16317 }
16318 {
16319 PyThreadState* __tstate = wxPyBeginAllowThreads();
16320 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16321
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 {
16326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16327 }
16328 {
16329 if (temp2)
16330 delete arg2;
16331 }
16332 return resultobj;
16333 fail:
16334 {
16335 if (temp2)
16336 delete arg2;
16337 }
16338 return NULL;
16339}
16340
16341
16342static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16343 PyObject *resultobj;
16344 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16345 wxString *arg2 = 0 ;
16346 bool result;
16347 bool temp2 = False ;
16348 PyObject * obj0 = 0 ;
16349 PyObject * obj1 = 0 ;
16350 char *kwnames[] = {
16351 (char *) "self",(char *) "help", NULL
16352 };
16353
16354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16357 {
16358 arg2 = wxString_in_helper(obj1);
16359 if (arg2 == NULL) SWIG_fail;
16360 temp2 = True;
16361 }
16362 {
16363 PyThreadState* __tstate = wxPyBeginAllowThreads();
16364 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16365
16366 wxPyEndAllowThreads(__tstate);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 }
16369 {
16370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16371 }
16372 {
16373 if (temp2)
16374 delete arg2;
16375 }
16376 return resultobj;
16377 fail:
16378 {
16379 if (temp2)
16380 delete arg2;
16381 }
16382 return NULL;
16383}
16384
16385
16386static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj;
16388 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16389 wxBitmap *arg2 = 0 ;
16390 PyObject * obj0 = 0 ;
16391 PyObject * obj1 = 0 ;
16392 char *kwnames[] = {
16393 (char *) "self",(char *) "bmp", NULL
16394 };
16395
16396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16400 SWIG_POINTER_EXCEPTION | 0)) == -1)
16401 SWIG_fail;
16402 if (arg2 == NULL) {
16403 PyErr_SetString(PyExc_TypeError,"null reference");
16404 SWIG_fail;
16405 }
16406 {
16407 PyThreadState* __tstate = wxPyBeginAllowThreads();
16408 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16409
16410 wxPyEndAllowThreads(__tstate);
16411 if (PyErr_Occurred()) SWIG_fail;
16412 }
16413 Py_INCREF(Py_None); resultobj = Py_None;
16414 return resultobj;
16415 fail:
16416 return NULL;
16417}
16418
16419
16420static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16421 PyObject *resultobj;
16422 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16423 wxBitmap *arg2 = 0 ;
16424 PyObject * obj0 = 0 ;
16425 PyObject * obj1 = 0 ;
16426 char *kwnames[] = {
16427 (char *) "self",(char *) "bmp", NULL
16428 };
16429
16430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16433 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16434 SWIG_POINTER_EXCEPTION | 0)) == -1)
16435 SWIG_fail;
16436 if (arg2 == NULL) {
16437 PyErr_SetString(PyExc_TypeError,"null reference");
16438 SWIG_fail;
16439 }
16440 {
16441 PyThreadState* __tstate = wxPyBeginAllowThreads();
16442 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16443
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 Py_INCREF(Py_None); resultobj = Py_None;
16448 return resultobj;
16449 fail:
16450 return NULL;
16451}
16452
16453
16454static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj;
16456 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16457 wxString *arg2 = 0 ;
16458 bool temp2 = False ;
16459 PyObject * obj0 = 0 ;
16460 PyObject * obj1 = 0 ;
16461 char *kwnames[] = {
16462 (char *) "self",(char *) "label", NULL
16463 };
16464
16465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16468 {
16469 arg2 = wxString_in_helper(obj1);
16470 if (arg2 == NULL) SWIG_fail;
16471 temp2 = True;
16472 }
16473 {
16474 PyThreadState* __tstate = wxPyBeginAllowThreads();
16475 (arg1)->SetLabel((wxString const &)*arg2);
16476
16477 wxPyEndAllowThreads(__tstate);
16478 if (PyErr_Occurred()) SWIG_fail;
16479 }
16480 Py_INCREF(Py_None); resultobj = Py_None;
16481 {
16482 if (temp2)
16483 delete arg2;
16484 }
16485 return resultobj;
16486 fail:
16487 {
16488 if (temp2)
16489 delete arg2;
16490 }
16491 return NULL;
16492}
16493
16494
16495static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
16496 PyObject *resultobj;
16497 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16498 PyObject * obj0 = 0 ;
16499 char *kwnames[] = {
16500 (char *) "self", NULL
16501 };
16502
16503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 (arg1)->Detach();
16509
16510 wxPyEndAllowThreads(__tstate);
16511 if (PyErr_Occurred()) SWIG_fail;
16512 }
16513 Py_INCREF(Py_None); resultobj = Py_None;
16514 return resultobj;
16515 fail:
16516 return NULL;
16517}
16518
16519
16520static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
16521 PyObject *resultobj;
16522 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16523 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16524 PyObject * obj0 = 0 ;
16525 PyObject * obj1 = 0 ;
16526 char *kwnames[] = {
16527 (char *) "self",(char *) "tbar", NULL
16528 };
16529
16530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16533 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16535 {
16536 PyThreadState* __tstate = wxPyBeginAllowThreads();
16537 (arg1)->Attach(arg2);
16538
16539 wxPyEndAllowThreads(__tstate);
16540 if (PyErr_Occurred()) SWIG_fail;
16541 }
16542 Py_INCREF(Py_None); resultobj = Py_None;
16543 return resultobj;
16544 fail:
16545 return NULL;
16546}
16547
16548
16549static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16550 PyObject *resultobj;
16551 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16552 PyObject *result;
16553 PyObject * obj0 = 0 ;
16554 char *kwnames[] = {
16555 (char *) "self", NULL
16556 };
16557
16558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16561 {
16562 PyThreadState* __tstate = wxPyBeginAllowThreads();
16563 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16564
16565 wxPyEndAllowThreads(__tstate);
16566 if (PyErr_Occurred()) SWIG_fail;
16567 }
16568 resultobj = result;
16569 return resultobj;
16570 fail:
16571 return NULL;
16572}
16573
16574
16575static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16576 PyObject *resultobj;
16577 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16578 PyObject *arg2 = (PyObject *) 0 ;
16579 PyObject * obj0 = 0 ;
16580 PyObject * obj1 = 0 ;
16581 char *kwnames[] = {
16582 (char *) "self",(char *) "clientData", NULL
16583 };
16584
16585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16588 arg2 = obj1;
16589 {
16590 PyThreadState* __tstate = wxPyBeginAllowThreads();
16591 wxToolBarToolBase_SetClientData(arg1,arg2);
16592
16593 wxPyEndAllowThreads(__tstate);
16594 if (PyErr_Occurred()) SWIG_fail;
16595 }
16596 Py_INCREF(Py_None); resultobj = Py_None;
16597 return resultobj;
16598 fail:
16599 return NULL;
16600}
16601
16602
16603static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
16604 PyObject *obj;
16605 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16606 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16607 Py_INCREF(obj);
16608 return Py_BuildValue((char *)"");
16609}
16610static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16611 PyObject *resultobj;
16612 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16613 int arg2 ;
16614 wxString *arg3 = 0 ;
16615 wxBitmap *arg4 = 0 ;
16616 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16617 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16618 int arg6 = (int) wxITEM_NORMAL ;
16619 wxString const &arg7_defvalue = wxPyEmptyString ;
16620 wxString *arg7 = (wxString *) &arg7_defvalue ;
16621 wxString const &arg8_defvalue = wxPyEmptyString ;
16622 wxString *arg8 = (wxString *) &arg8_defvalue ;
16623 PyObject *arg9 = (PyObject *) NULL ;
16624 wxToolBarToolBase *result;
16625 bool temp3 = False ;
16626 bool temp7 = False ;
16627 bool temp8 = False ;
16628 PyObject * obj0 = 0 ;
16629 PyObject * obj1 = 0 ;
16630 PyObject * obj2 = 0 ;
16631 PyObject * obj3 = 0 ;
16632 PyObject * obj4 = 0 ;
16633 PyObject * obj5 = 0 ;
16634 PyObject * obj6 = 0 ;
16635 PyObject * obj7 = 0 ;
16636 PyObject * obj8 = 0 ;
16637 char *kwnames[] = {
16638 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16639 };
16640
16641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16644 arg2 = (int) SWIG_AsInt(obj1);
16645 if (PyErr_Occurred()) SWIG_fail;
16646 {
16647 arg3 = wxString_in_helper(obj2);
16648 if (arg3 == NULL) SWIG_fail;
16649 temp3 = True;
16650 }
16651 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16652 SWIG_POINTER_EXCEPTION | 0)) == -1)
16653 SWIG_fail;
16654 if (arg4 == NULL) {
16655 PyErr_SetString(PyExc_TypeError,"null reference");
16656 SWIG_fail;
16657 }
16658 if (obj4) {
16659 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16660 SWIG_POINTER_EXCEPTION | 0)) == -1)
16661 SWIG_fail;
16662 if (arg5 == NULL) {
16663 PyErr_SetString(PyExc_TypeError,"null reference");
16664 SWIG_fail;
16665 }
16666 }
16667 if (obj5) {
16668 arg6 = (wxItemKind) SWIG_AsInt(obj5);
16669 if (PyErr_Occurred()) SWIG_fail;
16670 }
16671 if (obj6) {
16672 {
16673 arg7 = wxString_in_helper(obj6);
16674 if (arg7 == NULL) SWIG_fail;
16675 temp7 = True;
16676 }
16677 }
16678 if (obj7) {
16679 {
16680 arg8 = wxString_in_helper(obj7);
16681 if (arg8 == NULL) SWIG_fail;
16682 temp8 = True;
16683 }
16684 }
16685 if (obj8) {
16686 arg9 = obj8;
16687 }
16688 {
16689 PyThreadState* __tstate = wxPyBeginAllowThreads();
16690 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
16691
16692 wxPyEndAllowThreads(__tstate);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 }
16695 {
16696 resultobj = wxPyMake_wxObject(result);
16697 }
16698 {
16699 if (temp3)
16700 delete arg3;
16701 }
16702 {
16703 if (temp7)
16704 delete arg7;
16705 }
16706 {
16707 if (temp8)
16708 delete arg8;
16709 }
16710 return resultobj;
16711 fail:
16712 {
16713 if (temp3)
16714 delete arg3;
16715 }
16716 {
16717 if (temp7)
16718 delete arg7;
16719 }
16720 {
16721 if (temp8)
16722 delete arg8;
16723 }
16724 return NULL;
16725}
16726
16727
16728static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16729 PyObject *resultobj;
16730 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16731 size_t arg2 ;
16732 int arg3 ;
16733 wxString *arg4 = 0 ;
16734 wxBitmap *arg5 = 0 ;
16735 wxBitmap const &arg6_defvalue = wxNullBitmap ;
16736 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
16737 int arg7 = (int) wxITEM_NORMAL ;
16738 wxString const &arg8_defvalue = wxPyEmptyString ;
16739 wxString *arg8 = (wxString *) &arg8_defvalue ;
16740 wxString const &arg9_defvalue = wxPyEmptyString ;
16741 wxString *arg9 = (wxString *) &arg9_defvalue ;
16742 PyObject *arg10 = (PyObject *) NULL ;
16743 wxToolBarToolBase *result;
16744 bool temp4 = False ;
16745 bool temp8 = False ;
16746 bool temp9 = False ;
16747 PyObject * obj0 = 0 ;
16748 PyObject * obj1 = 0 ;
16749 PyObject * obj2 = 0 ;
16750 PyObject * obj3 = 0 ;
16751 PyObject * obj4 = 0 ;
16752 PyObject * obj5 = 0 ;
16753 PyObject * obj6 = 0 ;
16754 PyObject * obj7 = 0 ;
16755 PyObject * obj8 = 0 ;
16756 PyObject * obj9 = 0 ;
16757 char *kwnames[] = {
16758 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16759 };
16760
16761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
16762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16764 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16765 if (PyErr_Occurred()) SWIG_fail;
16766 arg3 = (int) SWIG_AsInt(obj2);
16767 if (PyErr_Occurred()) SWIG_fail;
16768 {
16769 arg4 = wxString_in_helper(obj3);
16770 if (arg4 == NULL) SWIG_fail;
16771 temp4 = True;
16772 }
16773 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16774 SWIG_POINTER_EXCEPTION | 0)) == -1)
16775 SWIG_fail;
16776 if (arg5 == NULL) {
16777 PyErr_SetString(PyExc_TypeError,"null reference");
16778 SWIG_fail;
16779 }
16780 if (obj5) {
16781 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
16782 SWIG_POINTER_EXCEPTION | 0)) == -1)
16783 SWIG_fail;
16784 if (arg6 == NULL) {
16785 PyErr_SetString(PyExc_TypeError,"null reference");
16786 SWIG_fail;
16787 }
16788 }
16789 if (obj6) {
16790 arg7 = (wxItemKind) SWIG_AsInt(obj6);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 if (obj7) {
16794 {
16795 arg8 = wxString_in_helper(obj7);
16796 if (arg8 == NULL) SWIG_fail;
16797 temp8 = True;
16798 }
16799 }
16800 if (obj8) {
16801 {
16802 arg9 = wxString_in_helper(obj8);
16803 if (arg9 == NULL) SWIG_fail;
16804 temp9 = True;
16805 }
16806 }
16807 if (obj9) {
16808 arg10 = obj9;
16809 }
16810 {
16811 PyThreadState* __tstate = wxPyBeginAllowThreads();
16812 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);
16813
16814 wxPyEndAllowThreads(__tstate);
16815 if (PyErr_Occurred()) SWIG_fail;
16816 }
16817 {
16818 resultobj = wxPyMake_wxObject(result);
16819 }
16820 {
16821 if (temp4)
16822 delete arg4;
16823 }
16824 {
16825 if (temp8)
16826 delete arg8;
16827 }
16828 {
16829 if (temp9)
16830 delete arg9;
16831 }
16832 return resultobj;
16833 fail:
16834 {
16835 if (temp4)
16836 delete arg4;
16837 }
16838 {
16839 if (temp8)
16840 delete arg8;
16841 }
16842 {
16843 if (temp9)
16844 delete arg9;
16845 }
16846 return NULL;
16847}
16848
16849
16850static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16851 PyObject *resultobj;
16852 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16853 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
16854 wxToolBarToolBase *result;
16855 PyObject * obj0 = 0 ;
16856 PyObject * obj1 = 0 ;
16857 char *kwnames[] = {
16858 (char *) "self",(char *) "tool", NULL
16859 };
16860
16861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
16862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16864 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
16865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16866 {
16867 PyThreadState* __tstate = wxPyBeginAllowThreads();
16868 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
16869
16870 wxPyEndAllowThreads(__tstate);
16871 if (PyErr_Occurred()) SWIG_fail;
16872 }
16873 {
16874 resultobj = wxPyMake_wxObject(result);
16875 }
16876 return resultobj;
16877 fail:
16878 return NULL;
16879}
16880
16881
16882static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
16883 PyObject *resultobj;
16884 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16885 size_t arg2 ;
16886 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
16887 wxToolBarToolBase *result;
16888 PyObject * obj0 = 0 ;
16889 PyObject * obj1 = 0 ;
16890 PyObject * obj2 = 0 ;
16891 char *kwnames[] = {
16892 (char *) "self",(char *) "pos",(char *) "tool", NULL
16893 };
16894
16895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
16896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16898 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
16901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
16905
16906 wxPyEndAllowThreads(__tstate);
16907 if (PyErr_Occurred()) SWIG_fail;
16908 }
16909 {
16910 resultobj = wxPyMake_wxObject(result);
16911 }
16912 return resultobj;
16913 fail:
16914 return NULL;
16915}
16916
16917
16918static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16919 PyObject *resultobj;
16920 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16921 wxControl *arg2 = (wxControl *) 0 ;
16922 wxToolBarToolBase *result;
16923 PyObject * obj0 = 0 ;
16924 PyObject * obj1 = 0 ;
16925 char *kwnames[] = {
16926 (char *) "self",(char *) "control", NULL
16927 };
16928
16929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
16930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16932 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
16933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16934 {
16935 PyThreadState* __tstate = wxPyBeginAllowThreads();
16936 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
16937
16938 wxPyEndAllowThreads(__tstate);
16939 if (PyErr_Occurred()) SWIG_fail;
16940 }
16941 {
16942 resultobj = wxPyMake_wxObject(result);
16943 }
16944 return resultobj;
16945 fail:
16946 return NULL;
16947}
16948
16949
16950static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16951 PyObject *resultobj;
16952 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16953 size_t arg2 ;
16954 wxControl *arg3 = (wxControl *) 0 ;
16955 wxToolBarToolBase *result;
16956 PyObject * obj0 = 0 ;
16957 PyObject * obj1 = 0 ;
16958 PyObject * obj2 = 0 ;
16959 char *kwnames[] = {
16960 (char *) "self",(char *) "pos",(char *) "control", NULL
16961 };
16962
16963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
16964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16966 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
16969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16970 {
16971 PyThreadState* __tstate = wxPyBeginAllowThreads();
16972 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
16973
16974 wxPyEndAllowThreads(__tstate);
16975 if (PyErr_Occurred()) SWIG_fail;
16976 }
16977 {
16978 resultobj = wxPyMake_wxObject(result);
16979 }
16980 return resultobj;
16981 fail:
16982 return NULL;
16983}
16984
16985
16986static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16987 PyObject *resultobj;
16988 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16989 int arg2 ;
16990 wxControl *result;
16991 PyObject * obj0 = 0 ;
16992 PyObject * obj1 = 0 ;
16993 char *kwnames[] = {
16994 (char *) "self",(char *) "id", NULL
16995 };
16996
16997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
16998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17000 arg2 = (int) SWIG_AsInt(obj1);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 {
17003 PyThreadState* __tstate = wxPyBeginAllowThreads();
17004 result = (wxControl *)(arg1)->FindControl(arg2);
17005
17006 wxPyEndAllowThreads(__tstate);
17007 if (PyErr_Occurred()) SWIG_fail;
17008 }
17009 {
17010 resultobj = wxPyMake_wxObject(result);
17011 }
17012 return resultobj;
17013 fail:
17014 return NULL;
17015}
17016
17017
17018static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17019 PyObject *resultobj;
17020 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17021 wxToolBarToolBase *result;
17022 PyObject * obj0 = 0 ;
17023 char *kwnames[] = {
17024 (char *) "self", NULL
17025 };
17026
17027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17033
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 {
17038 resultobj = wxPyMake_wxObject(result);
17039 }
17040 return resultobj;
17041 fail:
17042 return NULL;
17043}
17044
17045
17046static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17047 PyObject *resultobj;
17048 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17049 size_t arg2 ;
17050 wxToolBarToolBase *result;
17051 PyObject * obj0 = 0 ;
17052 PyObject * obj1 = 0 ;
17053 char *kwnames[] = {
17054 (char *) "self",(char *) "pos", NULL
17055 };
17056
17057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17060 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17065
17066 wxPyEndAllowThreads(__tstate);
17067 if (PyErr_Occurred()) SWIG_fail;
17068 }
17069 {
17070 resultobj = wxPyMake_wxObject(result);
17071 }
17072 return resultobj;
17073 fail:
17074 return NULL;
17075}
17076
17077
17078static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17079 PyObject *resultobj;
17080 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17081 int arg2 ;
17082 wxToolBarToolBase *result;
17083 PyObject * obj0 = 0 ;
17084 PyObject * obj1 = 0 ;
17085 char *kwnames[] = {
17086 (char *) "self",(char *) "id", NULL
17087 };
17088
17089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17092 arg2 = (int) SWIG_AsInt(obj1);
17093 if (PyErr_Occurred()) SWIG_fail;
17094 {
17095 PyThreadState* __tstate = wxPyBeginAllowThreads();
17096 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17097
17098 wxPyEndAllowThreads(__tstate);
17099 if (PyErr_Occurred()) SWIG_fail;
17100 }
17101 {
17102 resultobj = wxPyMake_wxObject(result);
17103 }
17104 return resultobj;
17105 fail:
17106 return NULL;
17107}
17108
17109
17110static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17111 PyObject *resultobj;
17112 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17113 size_t arg2 ;
17114 bool result;
17115 PyObject * obj0 = 0 ;
17116 PyObject * obj1 = 0 ;
17117 char *kwnames[] = {
17118 (char *) "self",(char *) "pos", NULL
17119 };
17120
17121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17124 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17125 if (PyErr_Occurred()) SWIG_fail;
17126 {
17127 PyThreadState* __tstate = wxPyBeginAllowThreads();
17128 result = (bool)(arg1)->DeleteToolByPos(arg2);
17129
17130 wxPyEndAllowThreads(__tstate);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 }
17133 {
17134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17135 }
17136 return resultobj;
17137 fail:
17138 return NULL;
17139}
17140
17141
17142static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17143 PyObject *resultobj;
17144 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17145 int arg2 ;
17146 bool result;
17147 PyObject * obj0 = 0 ;
17148 PyObject * obj1 = 0 ;
17149 char *kwnames[] = {
17150 (char *) "self",(char *) "id", NULL
17151 };
17152
17153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17156 arg2 = (int) SWIG_AsInt(obj1);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 {
17159 PyThreadState* __tstate = wxPyBeginAllowThreads();
17160 result = (bool)(arg1)->DeleteTool(arg2);
17161
17162 wxPyEndAllowThreads(__tstate);
17163 if (PyErr_Occurred()) SWIG_fail;
17164 }
17165 {
17166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17167 }
17168 return resultobj;
17169 fail:
17170 return NULL;
17171}
17172
17173
17174static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
17175 PyObject *resultobj;
17176 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17177 PyObject * obj0 = 0 ;
17178 char *kwnames[] = {
17179 (char *) "self", NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 (arg1)->ClearTools();
17188
17189 wxPyEndAllowThreads(__tstate);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 }
17192 Py_INCREF(Py_None); resultobj = Py_None;
17193 return resultobj;
17194 fail:
17195 return NULL;
17196}
17197
17198
17199static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
17200 PyObject *resultobj;
17201 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17202 bool result;
17203 PyObject * obj0 = 0 ;
17204 char *kwnames[] = {
17205 (char *) "self", NULL
17206 };
17207
17208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17211 {
17212 PyThreadState* __tstate = wxPyBeginAllowThreads();
17213 result = (bool)(arg1)->Realize();
17214
17215 wxPyEndAllowThreads(__tstate);
17216 if (PyErr_Occurred()) SWIG_fail;
17217 }
17218 {
17219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17220 }
17221 return resultobj;
17222 fail:
17223 return NULL;
17224}
17225
17226
17227static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17228 PyObject *resultobj;
17229 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17230 int arg2 ;
17231 bool arg3 ;
17232 PyObject * obj0 = 0 ;
17233 PyObject * obj1 = 0 ;
17234 PyObject * obj2 = 0 ;
17235 char *kwnames[] = {
17236 (char *) "self",(char *) "id",(char *) "enable", NULL
17237 };
17238
17239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17242 arg2 = (int) SWIG_AsInt(obj1);
17243 if (PyErr_Occurred()) SWIG_fail;
17244 arg3 = (bool) SWIG_AsBool(obj2);
17245 if (PyErr_Occurred()) SWIG_fail;
17246 {
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 (arg1)->EnableTool(arg2,arg3);
17249
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 Py_INCREF(Py_None); resultobj = Py_None;
17254 return resultobj;
17255 fail:
17256 return NULL;
17257}
17258
17259
17260static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj;
17262 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17263 int arg2 ;
17264 bool arg3 ;
17265 PyObject * obj0 = 0 ;
17266 PyObject * obj1 = 0 ;
17267 PyObject * obj2 = 0 ;
17268 char *kwnames[] = {
17269 (char *) "self",(char *) "id",(char *) "toggle", NULL
17270 };
17271
17272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17275 arg2 = (int) SWIG_AsInt(obj1);
17276 if (PyErr_Occurred()) SWIG_fail;
17277 arg3 = (bool) SWIG_AsBool(obj2);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 {
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 (arg1)->ToggleTool(arg2,arg3);
17282
17283 wxPyEndAllowThreads(__tstate);
17284 if (PyErr_Occurred()) SWIG_fail;
17285 }
17286 Py_INCREF(Py_None); resultobj = Py_None;
17287 return resultobj;
17288 fail:
17289 return NULL;
17290}
17291
17292
17293static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
17294 PyObject *resultobj;
17295 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17296 int arg2 ;
17297 bool arg3 ;
17298 PyObject * obj0 = 0 ;
17299 PyObject * obj1 = 0 ;
17300 PyObject * obj2 = 0 ;
17301 char *kwnames[] = {
17302 (char *) "self",(char *) "id",(char *) "toggle", NULL
17303 };
17304
17305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17308 arg2 = (int) SWIG_AsInt(obj1);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 arg3 = (bool) SWIG_AsBool(obj2);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 {
17313 PyThreadState* __tstate = wxPyBeginAllowThreads();
17314 (arg1)->SetToggle(arg2,arg3);
17315
17316 wxPyEndAllowThreads(__tstate);
17317 if (PyErr_Occurred()) SWIG_fail;
17318 }
17319 Py_INCREF(Py_None); resultobj = Py_None;
17320 return resultobj;
17321 fail:
17322 return NULL;
17323}
17324
17325
17326static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17327 PyObject *resultobj;
17328 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17329 int arg2 ;
17330 PyObject *result;
17331 PyObject * obj0 = 0 ;
17332 PyObject * obj1 = 0 ;
17333 char *kwnames[] = {
17334 (char *) "self",(char *) "id", NULL
17335 };
17336
17337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17340 arg2 = (int) SWIG_AsInt(obj1);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 {
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
17344 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17345
17346 wxPyEndAllowThreads(__tstate);
17347 if (PyErr_Occurred()) SWIG_fail;
17348 }
17349 resultobj = result;
17350 return resultobj;
17351 fail:
17352 return NULL;
17353}
17354
17355
17356static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17357 PyObject *resultobj;
17358 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17359 int arg2 ;
17360 PyObject *arg3 = (PyObject *) 0 ;
17361 PyObject * obj0 = 0 ;
17362 PyObject * obj1 = 0 ;
17363 PyObject * obj2 = 0 ;
17364 char *kwnames[] = {
17365 (char *) "self",(char *) "id",(char *) "clientData", NULL
17366 };
17367
17368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17371 arg2 = (int) SWIG_AsInt(obj1);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 arg3 = obj2;
17374 {
17375 PyThreadState* __tstate = wxPyBeginAllowThreads();
17376 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17377
17378 wxPyEndAllowThreads(__tstate);
17379 if (PyErr_Occurred()) SWIG_fail;
17380 }
17381 Py_INCREF(Py_None); resultobj = Py_None;
17382 return resultobj;
17383 fail:
17384 return NULL;
17385}
17386
17387
17388static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17389 PyObject *resultobj;
17390 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17391 int arg2 ;
17392 int result;
17393 PyObject * obj0 = 0 ;
17394 PyObject * obj1 = 0 ;
17395 char *kwnames[] = {
17396 (char *) "self",(char *) "id", NULL
17397 };
17398
17399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17402 arg2 = (int) SWIG_AsInt(obj1);
17403 if (PyErr_Occurred()) SWIG_fail;
17404 {
17405 PyThreadState* __tstate = wxPyBeginAllowThreads();
17406 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17407
17408 wxPyEndAllowThreads(__tstate);
17409 if (PyErr_Occurred()) SWIG_fail;
17410 }
17411 resultobj = SWIG_FromInt((int)result);
17412 return resultobj;
17413 fail:
17414 return NULL;
17415}
17416
17417
17418static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
17419 PyObject *resultobj;
17420 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17421 int arg2 ;
17422 bool result;
17423 PyObject * obj0 = 0 ;
17424 PyObject * obj1 = 0 ;
17425 char *kwnames[] = {
17426 (char *) "self",(char *) "id", NULL
17427 };
17428
17429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17432 arg2 = (int) SWIG_AsInt(obj1);
17433 if (PyErr_Occurred()) SWIG_fail;
17434 {
17435 PyThreadState* __tstate = wxPyBeginAllowThreads();
17436 result = (bool)(arg1)->GetToolState(arg2);
17437
17438 wxPyEndAllowThreads(__tstate);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 {
17442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17443 }
17444 return resultobj;
17445 fail:
17446 return NULL;
17447}
17448
17449
17450static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17451 PyObject *resultobj;
17452 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17453 int arg2 ;
17454 bool result;
17455 PyObject * obj0 = 0 ;
17456 PyObject * obj1 = 0 ;
17457 char *kwnames[] = {
17458 (char *) "self",(char *) "id", NULL
17459 };
17460
17461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17464 arg2 = (int) SWIG_AsInt(obj1);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 {
17467 PyThreadState* __tstate = wxPyBeginAllowThreads();
17468 result = (bool)(arg1)->GetToolEnabled(arg2);
17469
17470 wxPyEndAllowThreads(__tstate);
17471 if (PyErr_Occurred()) SWIG_fail;
17472 }
17473 {
17474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17475 }
17476 return resultobj;
17477 fail:
17478 return NULL;
17479}
17480
17481
17482static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17483 PyObject *resultobj;
17484 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17485 int arg2 ;
17486 wxString *arg3 = 0 ;
17487 bool temp3 = False ;
17488 PyObject * obj0 = 0 ;
17489 PyObject * obj1 = 0 ;
17490 PyObject * obj2 = 0 ;
17491 char *kwnames[] = {
17492 (char *) "self",(char *) "id",(char *) "helpString", NULL
17493 };
17494
17495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17498 arg2 = (int) SWIG_AsInt(obj1);
17499 if (PyErr_Occurred()) SWIG_fail;
17500 {
17501 arg3 = wxString_in_helper(obj2);
17502 if (arg3 == NULL) SWIG_fail;
17503 temp3 = True;
17504 }
17505 {
17506 PyThreadState* __tstate = wxPyBeginAllowThreads();
17507 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17508
17509 wxPyEndAllowThreads(__tstate);
17510 if (PyErr_Occurred()) SWIG_fail;
17511 }
17512 Py_INCREF(Py_None); resultobj = Py_None;
17513 {
17514 if (temp3)
17515 delete arg3;
17516 }
17517 return resultobj;
17518 fail:
17519 {
17520 if (temp3)
17521 delete arg3;
17522 }
17523 return NULL;
17524}
17525
17526
17527static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj;
17529 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17530 int arg2 ;
17531 wxString result;
17532 PyObject * obj0 = 0 ;
17533 PyObject * obj1 = 0 ;
17534 char *kwnames[] = {
17535 (char *) "self",(char *) "id", NULL
17536 };
17537
17538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17541 arg2 = (int) SWIG_AsInt(obj1);
17542 if (PyErr_Occurred()) SWIG_fail;
17543 {
17544 PyThreadState* __tstate = wxPyBeginAllowThreads();
17545 result = (arg1)->GetToolShortHelp(arg2);
17546
17547 wxPyEndAllowThreads(__tstate);
17548 if (PyErr_Occurred()) SWIG_fail;
17549 }
17550 {
17551#if wxUSE_UNICODE
17552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17553#else
17554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17555#endif
17556 }
17557 return resultobj;
17558 fail:
17559 return NULL;
17560}
17561
17562
17563static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17564 PyObject *resultobj;
17565 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17566 int arg2 ;
17567 wxString *arg3 = 0 ;
17568 bool temp3 = False ;
17569 PyObject * obj0 = 0 ;
17570 PyObject * obj1 = 0 ;
17571 PyObject * obj2 = 0 ;
17572 char *kwnames[] = {
17573 (char *) "self",(char *) "id",(char *) "helpString", NULL
17574 };
17575
17576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17579 arg2 = (int) SWIG_AsInt(obj1);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 {
17582 arg3 = wxString_in_helper(obj2);
17583 if (arg3 == NULL) SWIG_fail;
17584 temp3 = True;
17585 }
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17589
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 Py_INCREF(Py_None); resultobj = Py_None;
17594 {
17595 if (temp3)
17596 delete arg3;
17597 }
17598 return resultobj;
17599 fail:
17600 {
17601 if (temp3)
17602 delete arg3;
17603 }
17604 return NULL;
17605}
17606
17607
17608static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17609 PyObject *resultobj;
17610 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17611 int arg2 ;
17612 wxString result;
17613 PyObject * obj0 = 0 ;
17614 PyObject * obj1 = 0 ;
17615 char *kwnames[] = {
17616 (char *) "self",(char *) "id", NULL
17617 };
17618
17619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17622 arg2 = (int) SWIG_AsInt(obj1);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 {
17625 PyThreadState* __tstate = wxPyBeginAllowThreads();
17626 result = (arg1)->GetToolLongHelp(arg2);
17627
17628 wxPyEndAllowThreads(__tstate);
17629 if (PyErr_Occurred()) SWIG_fail;
17630 }
17631 {
17632#if wxUSE_UNICODE
17633 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17634#else
17635 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17636#endif
17637 }
17638 return resultobj;
17639 fail:
17640 return NULL;
17641}
17642
17643
17644static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
17645 PyObject *resultobj;
17646 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17647 int arg2 ;
17648 int arg3 ;
17649 PyObject * obj0 = 0 ;
17650 PyObject * obj1 = 0 ;
17651 PyObject * obj2 = 0 ;
17652 char *kwnames[] = {
17653 (char *) "self",(char *) "x",(char *) "y", NULL
17654 };
17655
17656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17659 arg2 = (int) SWIG_AsInt(obj1);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 arg3 = (int) SWIG_AsInt(obj2);
17662 if (PyErr_Occurred()) SWIG_fail;
17663 {
17664 PyThreadState* __tstate = wxPyBeginAllowThreads();
17665 (arg1)->SetMargins(arg2,arg3);
17666
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 Py_INCREF(Py_None); resultobj = Py_None;
17671 return resultobj;
17672 fail:
17673 return NULL;
17674}
17675
17676
17677static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17678 PyObject *resultobj;
17679 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17680 wxSize *arg2 = 0 ;
17681 wxSize temp2 ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 char *kwnames[] = {
17685 (char *) "self",(char *) "size", NULL
17686 };
17687
17688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
17689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17691 {
17692 arg2 = &temp2;
17693 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17694 }
17695 {
17696 PyThreadState* __tstate = wxPyBeginAllowThreads();
17697 (arg1)->SetMargins((wxSize const &)*arg2);
17698
17699 wxPyEndAllowThreads(__tstate);
17700 if (PyErr_Occurred()) SWIG_fail;
17701 }
17702 Py_INCREF(Py_None); resultobj = Py_None;
17703 return resultobj;
17704 fail:
17705 return NULL;
17706}
17707
17708
17709static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17710 PyObject *resultobj;
17711 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17712 int arg2 ;
17713 PyObject * obj0 = 0 ;
17714 PyObject * obj1 = 0 ;
17715 char *kwnames[] = {
17716 (char *) "self",(char *) "packing", NULL
17717 };
17718
17719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
17720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17722 arg2 = (int) SWIG_AsInt(obj1);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 {
17725 PyThreadState* __tstate = wxPyBeginAllowThreads();
17726 (arg1)->SetToolPacking(arg2);
17727
17728 wxPyEndAllowThreads(__tstate);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 }
17731 Py_INCREF(Py_None); resultobj = Py_None;
17732 return resultobj;
17733 fail:
17734 return NULL;
17735}
17736
17737
17738static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17739 PyObject *resultobj;
17740 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17741 int arg2 ;
17742 PyObject * obj0 = 0 ;
17743 PyObject * obj1 = 0 ;
17744 char *kwnames[] = {
17745 (char *) "self",(char *) "separation", NULL
17746 };
17747
17748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
17749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17751 arg2 = (int) SWIG_AsInt(obj1);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 {
17754 PyThreadState* __tstate = wxPyBeginAllowThreads();
17755 (arg1)->SetToolSeparation(arg2);
17756
17757 wxPyEndAllowThreads(__tstate);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 Py_INCREF(Py_None); resultobj = Py_None;
17761 return resultobj;
17762 fail:
17763 return NULL;
17764}
17765
17766
17767static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17768 PyObject *resultobj;
17769 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17770 wxSize result;
17771 PyObject * obj0 = 0 ;
17772 char *kwnames[] = {
17773 (char *) "self", NULL
17774 };
17775
17776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
17777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17779 {
17780 PyThreadState* __tstate = wxPyBeginAllowThreads();
17781 result = (arg1)->GetToolMargins();
17782
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 {
17787 wxSize * resultptr;
17788 resultptr = new wxSize((wxSize &) result);
17789 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17790 }
17791 return resultobj;
17792 fail:
17793 return NULL;
17794}
17795
17796
17797static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17798 PyObject *resultobj;
17799 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17800 wxSize result;
17801 PyObject * obj0 = 0 ;
17802 char *kwnames[] = {
17803 (char *) "self", NULL
17804 };
17805
17806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
17807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17809 {
17810 PyThreadState* __tstate = wxPyBeginAllowThreads();
17811 result = (arg1)->GetMargins();
17812
17813 wxPyEndAllowThreads(__tstate);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 }
17816 {
17817 wxSize * resultptr;
17818 resultptr = new wxSize((wxSize &) result);
17819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17820 }
17821 return resultobj;
17822 fail:
17823 return NULL;
17824}
17825
17826
17827static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17828 PyObject *resultobj;
17829 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17830 int result;
17831 PyObject * obj0 = 0 ;
17832 char *kwnames[] = {
17833 (char *) "self", NULL
17834 };
17835
17836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
17837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17839 {
17840 PyThreadState* __tstate = wxPyBeginAllowThreads();
17841 result = (int)(arg1)->GetToolPacking();
17842
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 resultobj = SWIG_FromInt((int)result);
17847 return resultobj;
17848 fail:
17849 return NULL;
17850}
17851
17852
17853static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17854 PyObject *resultobj;
17855 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17856 int result;
17857 PyObject * obj0 = 0 ;
17858 char *kwnames[] = {
17859 (char *) "self", NULL
17860 };
17861
17862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
17863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17865 {
17866 PyThreadState* __tstate = wxPyBeginAllowThreads();
17867 result = (int)(arg1)->GetToolSeparation();
17868
17869 wxPyEndAllowThreads(__tstate);
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 resultobj = SWIG_FromInt((int)result);
17873 return resultobj;
17874 fail:
17875 return NULL;
17876}
17877
17878
17879static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17880 PyObject *resultobj;
17881 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17882 int arg2 ;
17883 PyObject * obj0 = 0 ;
17884 PyObject * obj1 = 0 ;
17885 char *kwnames[] = {
17886 (char *) "self",(char *) "nRows", NULL
17887 };
17888
17889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
17890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17892 arg2 = (int) SWIG_AsInt(obj1);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 (arg1)->SetRows(arg2);
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 Py_INCREF(Py_None); resultobj = Py_None;
17902 return resultobj;
17903 fail:
17904 return NULL;
17905}
17906
17907
17908static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17911 int arg2 ;
17912 int arg3 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 PyObject * obj2 = 0 ;
17916 char *kwnames[] = {
17917 (char *) "self",(char *) "rows",(char *) "cols", NULL
17918 };
17919
17920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
17921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17923 arg2 = (int) SWIG_AsInt(obj1);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 arg3 = (int) SWIG_AsInt(obj2);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 (arg1)->SetMaxRowsCols(arg2,arg3);
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
17941static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj;
17943 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17944 int result;
17945 PyObject * obj0 = 0 ;
17946 char *kwnames[] = {
17947 (char *) "self", NULL
17948 };
17949
17950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
17951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17953 {
17954 PyThreadState* __tstate = wxPyBeginAllowThreads();
17955 result = (int)(arg1)->GetMaxRows();
17956
17957 wxPyEndAllowThreads(__tstate);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 }
17960 resultobj = SWIG_FromInt((int)result);
17961 return resultobj;
17962 fail:
17963 return NULL;
17964}
17965
17966
17967static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
17968 PyObject *resultobj;
17969 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17970 int result;
17971 PyObject * obj0 = 0 ;
17972 char *kwnames[] = {
17973 (char *) "self", NULL
17974 };
17975
17976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
17977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17979 {
17980 PyThreadState* __tstate = wxPyBeginAllowThreads();
17981 result = (int)(arg1)->GetMaxCols();
17982
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 resultobj = SWIG_FromInt((int)result);
17987 return resultobj;
17988 fail:
17989 return NULL;
17990}
17991
17992
17993static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj;
17995 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17996 wxSize *arg2 = 0 ;
17997 wxSize temp2 ;
17998 PyObject * obj0 = 0 ;
17999 PyObject * obj1 = 0 ;
18000 char *kwnames[] = {
18001 (char *) "self",(char *) "size", NULL
18002 };
18003
18004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18007 {
18008 arg2 = &temp2;
18009 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18010 }
18011 {
18012 PyThreadState* __tstate = wxPyBeginAllowThreads();
18013 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18014
18015 wxPyEndAllowThreads(__tstate);
18016 if (PyErr_Occurred()) SWIG_fail;
18017 }
18018 Py_INCREF(Py_None); resultobj = Py_None;
18019 return resultobj;
18020 fail:
18021 return NULL;
18022}
18023
18024
18025static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18026 PyObject *resultobj;
18027 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18028 wxSize result;
18029 PyObject * obj0 = 0 ;
18030 char *kwnames[] = {
18031 (char *) "self", NULL
18032 };
18033
18034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 result = (arg1)->GetToolBitmapSize();
18040
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 {
18045 wxSize * resultptr;
18046 resultptr = new wxSize((wxSize &) result);
18047 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18048 }
18049 return resultobj;
18050 fail:
18051 return NULL;
18052}
18053
18054
18055static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18056 PyObject *resultobj;
18057 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18058 wxSize result;
18059 PyObject * obj0 = 0 ;
18060 char *kwnames[] = {
18061 (char *) "self", NULL
18062 };
18063
18064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18067 {
18068 PyThreadState* __tstate = wxPyBeginAllowThreads();
18069 result = (arg1)->GetToolSize();
18070
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 {
18075 wxSize * resultptr;
18076 resultptr = new wxSize((wxSize &) result);
18077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18078 }
18079 return resultobj;
18080 fail:
18081 return NULL;
18082}
18083
18084
18085static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18086 PyObject *resultobj;
18087 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18088 int arg2 ;
18089 int arg3 ;
18090 wxToolBarToolBase *result;
18091 PyObject * obj0 = 0 ;
18092 PyObject * obj1 = 0 ;
18093 PyObject * obj2 = 0 ;
18094 char *kwnames[] = {
18095 (char *) "self",(char *) "x",(char *) "y", NULL
18096 };
18097
18098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18101 arg2 = (int) SWIG_AsInt(obj1);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 arg3 = (int) SWIG_AsInt(obj2);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 {
18106 PyThreadState* __tstate = wxPyBeginAllowThreads();
18107 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18108
18109 wxPyEndAllowThreads(__tstate);
18110 if (PyErr_Occurred()) SWIG_fail;
18111 }
18112 {
18113 resultobj = wxPyMake_wxObject(result);
18114 }
18115 return resultobj;
18116 fail:
18117 return NULL;
18118}
18119
18120
18121static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
18122 PyObject *resultobj;
18123 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18124 int arg2 ;
18125 wxToolBarToolBase *result;
18126 PyObject * obj0 = 0 ;
18127 PyObject * obj1 = 0 ;
18128 char *kwnames[] = {
18129 (char *) "self",(char *) "toolid", NULL
18130 };
18131
18132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18135 arg2 = (int) SWIG_AsInt(obj1);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 {
18138 PyThreadState* __tstate = wxPyBeginAllowThreads();
18139 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18140
18141 wxPyEndAllowThreads(__tstate);
18142 if (PyErr_Occurred()) SWIG_fail;
18143 }
18144 {
18145 resultobj = wxPyMake_wxObject(result);
18146 }
18147 return resultobj;
18148 fail:
18149 return NULL;
18150}
18151
18152
18153static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
18154 PyObject *resultobj;
18155 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18156 bool result;
18157 PyObject * obj0 = 0 ;
18158 char *kwnames[] = {
18159 (char *) "self", NULL
18160 };
18161
18162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18165 {
18166 PyThreadState* __tstate = wxPyBeginAllowThreads();
18167 result = (bool)(arg1)->IsVertical();
18168
18169 wxPyEndAllowThreads(__tstate);
18170 if (PyErr_Occurred()) SWIG_fail;
18171 }
18172 {
18173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18174 }
18175 return resultobj;
18176 fail:
18177 return NULL;
18178}
18179
18180
18181static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
18182 PyObject *obj;
18183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18184 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18185 Py_INCREF(obj);
18186 return Py_BuildValue((char *)"");
18187}
18188static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18189 PyObject *resultobj;
18190 wxWindow *arg1 = (wxWindow *) 0 ;
18191 int arg2 ;
18192 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18193 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18194 wxSize const &arg4_defvalue = wxDefaultSize ;
18195 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18196 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18197 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18198 wxString *arg6 = (wxString *) &arg6_defvalue ;
18199 wxToolBar *result;
18200 wxPoint temp3 ;
18201 wxSize temp4 ;
18202 bool temp6 = False ;
18203 PyObject * obj0 = 0 ;
18204 PyObject * obj1 = 0 ;
18205 PyObject * obj2 = 0 ;
18206 PyObject * obj3 = 0 ;
18207 PyObject * obj4 = 0 ;
18208 PyObject * obj5 = 0 ;
18209 char *kwnames[] = {
18210 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18211 };
18212
18213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18216 arg2 = (int) SWIG_AsInt(obj1);
18217 if (PyErr_Occurred()) SWIG_fail;
18218 if (obj2) {
18219 {
18220 arg3 = &temp3;
18221 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18222 }
18223 }
18224 if (obj3) {
18225 {
18226 arg4 = &temp4;
18227 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18228 }
18229 }
18230 if (obj4) {
18231 arg5 = (long) SWIG_AsLong(obj4);
18232 if (PyErr_Occurred()) SWIG_fail;
18233 }
18234 if (obj5) {
18235 {
18236 arg6 = wxString_in_helper(obj5);
18237 if (arg6 == NULL) SWIG_fail;
18238 temp6 = True;
18239 }
18240 }
18241 {
18242 PyThreadState* __tstate = wxPyBeginAllowThreads();
18243 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18244
18245 wxPyEndAllowThreads(__tstate);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 {
18249 resultobj = wxPyMake_wxObject(result);
18250 }
18251 {
18252 if (temp6)
18253 delete arg6;
18254 }
18255 return resultobj;
18256 fail:
18257 {
18258 if (temp6)
18259 delete arg6;
18260 }
18261 return NULL;
18262}
18263
18264
18265static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18266 PyObject *resultobj;
18267 wxToolBar *result;
18268 char *kwnames[] = {
18269 NULL
18270 };
18271
18272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18273 {
18274 PyThreadState* __tstate = wxPyBeginAllowThreads();
18275 result = (wxToolBar *)new wxToolBar();
18276
18277 wxPyEndAllowThreads(__tstate);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 }
18280 {
18281 resultobj = wxPyMake_wxObject(result);
18282 }
18283 return resultobj;
18284 fail:
18285 return NULL;
18286}
18287
18288
18289static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj;
18291 wxToolBar *arg1 = (wxToolBar *) 0 ;
18292 wxWindow *arg2 = (wxWindow *) 0 ;
18293 int arg3 ;
18294 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18295 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18296 wxSize const &arg5_defvalue = wxDefaultSize ;
18297 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18298 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18299 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18300 wxString *arg7 = (wxString *) &arg7_defvalue ;
18301 bool result;
18302 wxPoint temp4 ;
18303 wxSize temp5 ;
18304 bool temp7 = False ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 PyObject * obj2 = 0 ;
18308 PyObject * obj3 = 0 ;
18309 PyObject * obj4 = 0 ;
18310 PyObject * obj5 = 0 ;
18311 PyObject * obj6 = 0 ;
18312 char *kwnames[] = {
18313 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18314 };
18315
18316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18319 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18321 arg3 = (int) SWIG_AsInt(obj2);
18322 if (PyErr_Occurred()) SWIG_fail;
18323 if (obj3) {
18324 {
18325 arg4 = &temp4;
18326 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18327 }
18328 }
18329 if (obj4) {
18330 {
18331 arg5 = &temp5;
18332 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18333 }
18334 }
18335 if (obj5) {
18336 arg6 = (long) SWIG_AsLong(obj5);
18337 if (PyErr_Occurred()) SWIG_fail;
18338 }
18339 if (obj6) {
18340 {
18341 arg7 = wxString_in_helper(obj6);
18342 if (arg7 == NULL) SWIG_fail;
18343 temp7 = True;
18344 }
18345 }
18346 {
18347 PyThreadState* __tstate = wxPyBeginAllowThreads();
18348 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18349
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 {
18354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18355 }
18356 {
18357 if (temp7)
18358 delete arg7;
18359 }
18360 return resultobj;
18361 fail:
18362 {
18363 if (temp7)
18364 delete arg7;
18365 }
18366 return NULL;
18367}
18368
18369
18370static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18371 PyObject *resultobj;
18372 wxToolBar *arg1 = (wxToolBar *) 0 ;
18373 int arg2 ;
18374 int arg3 ;
18375 wxToolBarToolBase *result;
18376 PyObject * obj0 = 0 ;
18377 PyObject * obj1 = 0 ;
18378 PyObject * obj2 = 0 ;
18379 char *kwnames[] = {
18380 (char *) "self",(char *) "x",(char *) "y", NULL
18381 };
18382
18383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18386 arg2 = (int) SWIG_AsInt(obj1);
18387 if (PyErr_Occurred()) SWIG_fail;
18388 arg3 = (int) SWIG_AsInt(obj2);
18389 if (PyErr_Occurred()) SWIG_fail;
18390 {
18391 PyThreadState* __tstate = wxPyBeginAllowThreads();
18392 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18393
18394 wxPyEndAllowThreads(__tstate);
18395 if (PyErr_Occurred()) SWIG_fail;
18396 }
18397 {
18398 resultobj = wxPyMake_wxObject(result);
18399 }
18400 return resultobj;
18401 fail:
18402 return NULL;
18403}
18404
18405
f20a2e1f
RD
18406static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18407 PyObject *resultobj;
18408 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18409 wxVisualAttributes result;
18410 PyObject * obj0 = 0 ;
18411 char *kwnames[] = {
18412 (char *) "variant", NULL
18413 };
18414
18415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18416 if (obj0) {
18417 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
18420 {
18421 PyThreadState* __tstate = wxPyBeginAllowThreads();
18422 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18423
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 {
18428 wxVisualAttributes * resultptr;
18429 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18430 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18431 }
18432 return resultobj;
18433 fail:
18434 return NULL;
18435}
18436
18437
d55e5bfc
RD
18438static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
18439 PyObject *obj;
18440 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18441 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18442 Py_INCREF(obj);
18443 return Py_BuildValue((char *)"");
18444}
18445static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
18446 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18447 return 1;
18448}
18449
18450
18451static PyObject *_wrap_ListCtrlNameStr_get() {
18452 PyObject *pyobj;
18453
18454 {
18455#if wxUSE_UNICODE
18456 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18457#else
18458 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18459#endif
18460 }
18461 return pyobj;
18462}
18463
18464
18465static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
18466 PyObject *resultobj;
18467 wxColour const &arg1_defvalue = wxNullColour ;
18468 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18469 wxColour const &arg2_defvalue = wxNullColour ;
18470 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18471 wxFont const &arg3_defvalue = wxNullFont ;
18472 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18473 wxListItemAttr *result;
18474 wxColour temp1 ;
18475 wxColour temp2 ;
18476 PyObject * obj0 = 0 ;
18477 PyObject * obj1 = 0 ;
18478 PyObject * obj2 = 0 ;
18479 char *kwnames[] = {
18480 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18481 };
18482
18483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18484 if (obj0) {
18485 {
18486 arg1 = &temp1;
18487 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18488 }
18489 }
18490 if (obj1) {
18491 {
18492 arg2 = &temp2;
18493 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18494 }
18495 }
18496 if (obj2) {
18497 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18498 SWIG_POINTER_EXCEPTION | 0)) == -1)
18499 SWIG_fail;
18500 if (arg3 == NULL) {
18501 PyErr_SetString(PyExc_TypeError,"null reference");
18502 SWIG_fail;
18503 }
18504 }
18505 {
18506 PyThreadState* __tstate = wxPyBeginAllowThreads();
18507 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18508
18509 wxPyEndAllowThreads(__tstate);
18510 if (PyErr_Occurred()) SWIG_fail;
18511 }
18512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18513 return resultobj;
18514 fail:
18515 return NULL;
18516}
18517
18518
18519static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18520 PyObject *resultobj;
18521 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18522 wxColour *arg2 = 0 ;
18523 wxColour temp2 ;
18524 PyObject * obj0 = 0 ;
18525 PyObject * obj1 = 0 ;
18526 char *kwnames[] = {
18527 (char *) "self",(char *) "colText", NULL
18528 };
18529
18530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18533 {
18534 arg2 = &temp2;
18535 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18536 }
18537 {
18538 PyThreadState* __tstate = wxPyBeginAllowThreads();
18539 (arg1)->SetTextColour((wxColour const &)*arg2);
18540
18541 wxPyEndAllowThreads(__tstate);
18542 if (PyErr_Occurred()) SWIG_fail;
18543 }
18544 Py_INCREF(Py_None); resultobj = Py_None;
18545 return resultobj;
18546 fail:
18547 return NULL;
18548}
18549
18550
18551static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18552 PyObject *resultobj;
18553 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18554 wxColour *arg2 = 0 ;
18555 wxColour temp2 ;
18556 PyObject * obj0 = 0 ;
18557 PyObject * obj1 = 0 ;
18558 char *kwnames[] = {
18559 (char *) "self",(char *) "colBack", NULL
18560 };
18561
18562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18565 {
18566 arg2 = &temp2;
18567 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18568 }
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18572
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 Py_INCREF(Py_None); resultobj = Py_None;
18577 return resultobj;
18578 fail:
18579 return NULL;
18580}
18581
18582
18583static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18584 PyObject *resultobj;
18585 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18586 wxFont *arg2 = 0 ;
18587 PyObject * obj0 = 0 ;
18588 PyObject * obj1 = 0 ;
18589 char *kwnames[] = {
18590 (char *) "self",(char *) "font", NULL
18591 };
18592
18593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18596 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18597 SWIG_POINTER_EXCEPTION | 0)) == -1)
18598 SWIG_fail;
18599 if (arg2 == NULL) {
18600 PyErr_SetString(PyExc_TypeError,"null reference");
18601 SWIG_fail;
18602 }
18603 {
18604 PyThreadState* __tstate = wxPyBeginAllowThreads();
18605 (arg1)->SetFont((wxFont const &)*arg2);
18606
18607 wxPyEndAllowThreads(__tstate);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 }
18610 Py_INCREF(Py_None); resultobj = Py_None;
18611 return resultobj;
18612 fail:
18613 return NULL;
18614}
18615
18616
18617static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18618 PyObject *resultobj;
18619 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18620 bool result;
18621 PyObject * obj0 = 0 ;
18622 char *kwnames[] = {
18623 (char *) "self", NULL
18624 };
18625
18626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18629 {
18630 PyThreadState* __tstate = wxPyBeginAllowThreads();
18631 result = (bool)(arg1)->HasTextColour();
18632
18633 wxPyEndAllowThreads(__tstate);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 {
18637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18638 }
18639 return resultobj;
18640 fail:
18641 return NULL;
18642}
18643
18644
18645static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18646 PyObject *resultobj;
18647 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18648 bool result;
18649 PyObject * obj0 = 0 ;
18650 char *kwnames[] = {
18651 (char *) "self", NULL
18652 };
18653
18654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18657 {
18658 PyThreadState* __tstate = wxPyBeginAllowThreads();
18659 result = (bool)(arg1)->HasBackgroundColour();
18660
18661 wxPyEndAllowThreads(__tstate);
18662 if (PyErr_Occurred()) SWIG_fail;
18663 }
18664 {
18665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18666 }
18667 return resultobj;
18668 fail:
18669 return NULL;
18670}
18671
18672
18673static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18674 PyObject *resultobj;
18675 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18676 bool result;
18677 PyObject * obj0 = 0 ;
18678 char *kwnames[] = {
18679 (char *) "self", NULL
18680 };
18681
18682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
18683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18685 {
18686 PyThreadState* __tstate = wxPyBeginAllowThreads();
18687 result = (bool)(arg1)->HasFont();
18688
18689 wxPyEndAllowThreads(__tstate);
18690 if (PyErr_Occurred()) SWIG_fail;
18691 }
18692 {
18693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18694 }
18695 return resultobj;
18696 fail:
18697 return NULL;
18698}
18699
18700
18701static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18702 PyObject *resultobj;
18703 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18704 wxColour result;
18705 PyObject * obj0 = 0 ;
18706 char *kwnames[] = {
18707 (char *) "self", NULL
18708 };
18709
18710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
18711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18713 {
18714 PyThreadState* __tstate = wxPyBeginAllowThreads();
18715 result = (arg1)->GetTextColour();
18716
18717 wxPyEndAllowThreads(__tstate);
18718 if (PyErr_Occurred()) SWIG_fail;
18719 }
18720 {
18721 wxColour * resultptr;
18722 resultptr = new wxColour((wxColour &) result);
18723 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18724 }
18725 return resultobj;
18726 fail:
18727 return NULL;
18728}
18729
18730
18731static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18732 PyObject *resultobj;
18733 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18734 wxColour result;
18735 PyObject * obj0 = 0 ;
18736 char *kwnames[] = {
18737 (char *) "self", NULL
18738 };
18739
18740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
18741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18743 {
18744 PyThreadState* __tstate = wxPyBeginAllowThreads();
18745 result = (arg1)->GetBackgroundColour();
18746
18747 wxPyEndAllowThreads(__tstate);
18748 if (PyErr_Occurred()) SWIG_fail;
18749 }
18750 {
18751 wxColour * resultptr;
18752 resultptr = new wxColour((wxColour &) result);
18753 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18754 }
18755 return resultobj;
18756 fail:
18757 return NULL;
18758}
18759
18760
18761static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18762 PyObject *resultobj;
18763 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18764 wxFont result;
18765 PyObject * obj0 = 0 ;
18766 char *kwnames[] = {
18767 (char *) "self", NULL
18768 };
18769
18770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
18771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18773 {
18774 PyThreadState* __tstate = wxPyBeginAllowThreads();
18775 result = (arg1)->GetFont();
18776
18777 wxPyEndAllowThreads(__tstate);
18778 if (PyErr_Occurred()) SWIG_fail;
18779 }
18780 {
18781 wxFont * resultptr;
18782 resultptr = new wxFont((wxFont &) result);
18783 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18784 }
18785 return resultobj;
18786 fail:
18787 return NULL;
18788}
18789
18790
18791static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
18792 PyObject *resultobj;
18793 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18794 PyObject * obj0 = 0 ;
18795 char *kwnames[] = {
18796 (char *) "self", NULL
18797 };
18798
18799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
18800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18802 {
18803 PyThreadState* __tstate = wxPyBeginAllowThreads();
18804 wxListItemAttr_Destroy(arg1);
18805
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 Py_INCREF(Py_None); resultobj = Py_None;
18810 return resultobj;
18811 fail:
18812 return NULL;
18813}
18814
18815
18816static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
18817 PyObject *obj;
18818 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18819 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
18820 Py_INCREF(obj);
18821 return Py_BuildValue((char *)"");
18822}
18823static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18824 PyObject *resultobj;
18825 wxListItem *result;
18826 char *kwnames[] = {
18827 NULL
18828 };
18829
18830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
18831 {
18832 PyThreadState* __tstate = wxPyBeginAllowThreads();
18833 result = (wxListItem *)new wxListItem();
18834
18835 wxPyEndAllowThreads(__tstate);
18836 if (PyErr_Occurred()) SWIG_fail;
18837 }
18838 {
18839 resultobj = wxPyMake_wxObject(result);
18840 }
18841 return resultobj;
18842 fail:
18843 return NULL;
18844}
18845
18846
18847static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
18848 PyObject *resultobj;
18849 wxListItem *arg1 = (wxListItem *) 0 ;
18850 PyObject * obj0 = 0 ;
18851 char *kwnames[] = {
18852 (char *) "self", NULL
18853 };
18854
18855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
18856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18858 {
18859 PyThreadState* __tstate = wxPyBeginAllowThreads();
18860 delete arg1;
18861
18862 wxPyEndAllowThreads(__tstate);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 }
18865 Py_INCREF(Py_None); resultobj = Py_None;
18866 return resultobj;
18867 fail:
18868 return NULL;
18869}
18870
18871
18872static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
18873 PyObject *resultobj;
18874 wxListItem *arg1 = (wxListItem *) 0 ;
18875 PyObject * obj0 = 0 ;
18876 char *kwnames[] = {
18877 (char *) "self", NULL
18878 };
18879
18880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
18881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18883 {
18884 PyThreadState* __tstate = wxPyBeginAllowThreads();
18885 (arg1)->Clear();
18886
18887 wxPyEndAllowThreads(__tstate);
18888 if (PyErr_Occurred()) SWIG_fail;
18889 }
18890 Py_INCREF(Py_None); resultobj = Py_None;
18891 return resultobj;
18892 fail:
18893 return NULL;
18894}
18895
18896
18897static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18898 PyObject *resultobj;
18899 wxListItem *arg1 = (wxListItem *) 0 ;
18900 PyObject * obj0 = 0 ;
18901 char *kwnames[] = {
18902 (char *) "self", NULL
18903 };
18904
18905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
18906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18908 {
18909 PyThreadState* __tstate = wxPyBeginAllowThreads();
18910 (arg1)->ClearAttributes();
18911
18912 wxPyEndAllowThreads(__tstate);
18913 if (PyErr_Occurred()) SWIG_fail;
18914 }
18915 Py_INCREF(Py_None); resultobj = Py_None;
18916 return resultobj;
18917 fail:
18918 return NULL;
18919}
18920
18921
18922static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
18923 PyObject *resultobj;
18924 wxListItem *arg1 = (wxListItem *) 0 ;
18925 long arg2 ;
18926 PyObject * obj0 = 0 ;
18927 PyObject * obj1 = 0 ;
18928 char *kwnames[] = {
18929 (char *) "self",(char *) "mask", NULL
18930 };
18931
18932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
18933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18935 arg2 = (long) SWIG_AsLong(obj1);
18936 if (PyErr_Occurred()) SWIG_fail;
18937 {
18938 PyThreadState* __tstate = wxPyBeginAllowThreads();
18939 (arg1)->SetMask(arg2);
18940
18941 wxPyEndAllowThreads(__tstate);
18942 if (PyErr_Occurred()) SWIG_fail;
18943 }
18944 Py_INCREF(Py_None); resultobj = Py_None;
18945 return resultobj;
18946 fail:
18947 return NULL;
18948}
18949
18950
18951static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
18952 PyObject *resultobj;
18953 wxListItem *arg1 = (wxListItem *) 0 ;
18954 long arg2 ;
18955 PyObject * obj0 = 0 ;
18956 PyObject * obj1 = 0 ;
18957 char *kwnames[] = {
18958 (char *) "self",(char *) "id", NULL
18959 };
18960
18961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
18962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18964 arg2 = (long) SWIG_AsLong(obj1);
18965 if (PyErr_Occurred()) SWIG_fail;
18966 {
18967 PyThreadState* __tstate = wxPyBeginAllowThreads();
18968 (arg1)->SetId(arg2);
18969
18970 wxPyEndAllowThreads(__tstate);
18971 if (PyErr_Occurred()) SWIG_fail;
18972 }
18973 Py_INCREF(Py_None); resultobj = Py_None;
18974 return resultobj;
18975 fail:
18976 return NULL;
18977}
18978
18979
18980static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj;
18982 wxListItem *arg1 = (wxListItem *) 0 ;
18983 int arg2 ;
18984 PyObject * obj0 = 0 ;
18985 PyObject * obj1 = 0 ;
18986 char *kwnames[] = {
18987 (char *) "self",(char *) "col", NULL
18988 };
18989
18990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
18991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
18992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18993 arg2 = (int) SWIG_AsInt(obj1);
18994 if (PyErr_Occurred()) SWIG_fail;
18995 {
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 (arg1)->SetColumn(arg2);
18998
18999 wxPyEndAllowThreads(__tstate);
19000 if (PyErr_Occurred()) SWIG_fail;
19001 }
19002 Py_INCREF(Py_None); resultobj = Py_None;
19003 return resultobj;
19004 fail:
19005 return NULL;
19006}
19007
19008
19009static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19010 PyObject *resultobj;
19011 wxListItem *arg1 = (wxListItem *) 0 ;
19012 long arg2 ;
19013 PyObject * obj0 = 0 ;
19014 PyObject * obj1 = 0 ;
19015 char *kwnames[] = {
19016 (char *) "self",(char *) "state", NULL
19017 };
19018
19019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19022 arg2 = (long) SWIG_AsLong(obj1);
19023 if (PyErr_Occurred()) SWIG_fail;
19024 {
19025 PyThreadState* __tstate = wxPyBeginAllowThreads();
19026 (arg1)->SetState(arg2);
19027
19028 wxPyEndAllowThreads(__tstate);
19029 if (PyErr_Occurred()) SWIG_fail;
19030 }
19031 Py_INCREF(Py_None); resultobj = Py_None;
19032 return resultobj;
19033 fail:
19034 return NULL;
19035}
19036
19037
19038static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19039 PyObject *resultobj;
19040 wxListItem *arg1 = (wxListItem *) 0 ;
19041 long arg2 ;
19042 PyObject * obj0 = 0 ;
19043 PyObject * obj1 = 0 ;
19044 char *kwnames[] = {
19045 (char *) "self",(char *) "stateMask", NULL
19046 };
19047
19048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19051 arg2 = (long) SWIG_AsLong(obj1);
19052 if (PyErr_Occurred()) SWIG_fail;
19053 {
19054 PyThreadState* __tstate = wxPyBeginAllowThreads();
19055 (arg1)->SetStateMask(arg2);
19056
19057 wxPyEndAllowThreads(__tstate);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 }
19060 Py_INCREF(Py_None); resultobj = Py_None;
19061 return resultobj;
19062 fail:
19063 return NULL;
19064}
19065
19066
19067static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19068 PyObject *resultobj;
19069 wxListItem *arg1 = (wxListItem *) 0 ;
19070 wxString *arg2 = 0 ;
19071 bool temp2 = False ;
19072 PyObject * obj0 = 0 ;
19073 PyObject * obj1 = 0 ;
19074 char *kwnames[] = {
19075 (char *) "self",(char *) "text", NULL
19076 };
19077
19078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19081 {
19082 arg2 = wxString_in_helper(obj1);
19083 if (arg2 == NULL) SWIG_fail;
19084 temp2 = True;
19085 }
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 (arg1)->SetText((wxString const &)*arg2);
19089
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 Py_INCREF(Py_None); resultobj = Py_None;
19094 {
19095 if (temp2)
19096 delete arg2;
19097 }
19098 return resultobj;
19099 fail:
19100 {
19101 if (temp2)
19102 delete arg2;
19103 }
19104 return NULL;
19105}
19106
19107
19108static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19109 PyObject *resultobj;
19110 wxListItem *arg1 = (wxListItem *) 0 ;
19111 int arg2 ;
19112 PyObject * obj0 = 0 ;
19113 PyObject * obj1 = 0 ;
19114 char *kwnames[] = {
19115 (char *) "self",(char *) "image", NULL
19116 };
19117
19118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19121 arg2 = (int) SWIG_AsInt(obj1);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 {
19124 PyThreadState* __tstate = wxPyBeginAllowThreads();
19125 (arg1)->SetImage(arg2);
19126
19127 wxPyEndAllowThreads(__tstate);
19128 if (PyErr_Occurred()) SWIG_fail;
19129 }
19130 Py_INCREF(Py_None); resultobj = Py_None;
19131 return resultobj;
19132 fail:
19133 return NULL;
19134}
19135
19136
19137static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj;
19139 wxListItem *arg1 = (wxListItem *) 0 ;
19140 long arg2 ;
19141 PyObject * obj0 = 0 ;
19142 PyObject * obj1 = 0 ;
19143 char *kwnames[] = {
19144 (char *) "self",(char *) "data", NULL
19145 };
19146
19147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19150 arg2 = (long) SWIG_AsLong(obj1);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 {
19153 PyThreadState* __tstate = wxPyBeginAllowThreads();
19154 (arg1)->SetData(arg2);
19155
19156 wxPyEndAllowThreads(__tstate);
19157 if (PyErr_Occurred()) SWIG_fail;
19158 }
19159 Py_INCREF(Py_None); resultobj = Py_None;
19160 return resultobj;
19161 fail:
19162 return NULL;
19163}
19164
19165
19166static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19167 PyObject *resultobj;
19168 wxListItem *arg1 = (wxListItem *) 0 ;
19169 int arg2 ;
19170 PyObject * obj0 = 0 ;
19171 PyObject * obj1 = 0 ;
19172 char *kwnames[] = {
19173 (char *) "self",(char *) "width", NULL
19174 };
19175
19176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19179 arg2 = (int) SWIG_AsInt(obj1);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 {
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 (arg1)->SetWidth(arg2);
19184
19185 wxPyEndAllowThreads(__tstate);
19186 if (PyErr_Occurred()) SWIG_fail;
19187 }
19188 Py_INCREF(Py_None); resultobj = Py_None;
19189 return resultobj;
19190 fail:
19191 return NULL;
19192}
19193
19194
19195static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19196 PyObject *resultobj;
19197 wxListItem *arg1 = (wxListItem *) 0 ;
19198 int arg2 ;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 char *kwnames[] = {
19202 (char *) "self",(char *) "align", NULL
19203 };
19204
19205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19208 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
19209 if (PyErr_Occurred()) SWIG_fail;
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 (arg1)->SetAlign((wxListColumnFormat )arg2);
19213
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 Py_INCREF(Py_None); resultobj = Py_None;
19218 return resultobj;
19219 fail:
19220 return NULL;
19221}
19222
19223
19224static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj;
19226 wxListItem *arg1 = (wxListItem *) 0 ;
19227 wxColour *arg2 = 0 ;
19228 wxColour temp2 ;
19229 PyObject * obj0 = 0 ;
19230 PyObject * obj1 = 0 ;
19231 char *kwnames[] = {
19232 (char *) "self",(char *) "colText", NULL
19233 };
19234
19235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19238 {
19239 arg2 = &temp2;
19240 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19241 }
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->SetTextColour((wxColour const &)*arg2);
19245
19246 wxPyEndAllowThreads(__tstate);
19247 if (PyErr_Occurred()) SWIG_fail;
19248 }
19249 Py_INCREF(Py_None); resultobj = Py_None;
19250 return resultobj;
19251 fail:
19252 return NULL;
19253}
19254
19255
19256static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19257 PyObject *resultobj;
19258 wxListItem *arg1 = (wxListItem *) 0 ;
19259 wxColour *arg2 = 0 ;
19260 wxColour temp2 ;
19261 PyObject * obj0 = 0 ;
19262 PyObject * obj1 = 0 ;
19263 char *kwnames[] = {
19264 (char *) "self",(char *) "colBack", NULL
19265 };
19266
19267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19270 {
19271 arg2 = &temp2;
19272 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19273 }
19274 {
19275 PyThreadState* __tstate = wxPyBeginAllowThreads();
19276 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19277
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 Py_INCREF(Py_None); resultobj = Py_None;
19282 return resultobj;
19283 fail:
19284 return NULL;
19285}
19286
19287
19288static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj;
19290 wxListItem *arg1 = (wxListItem *) 0 ;
19291 wxFont *arg2 = 0 ;
19292 PyObject * obj0 = 0 ;
19293 PyObject * obj1 = 0 ;
19294 char *kwnames[] = {
19295 (char *) "self",(char *) "font", NULL
19296 };
19297
19298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19301 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19302 SWIG_POINTER_EXCEPTION | 0)) == -1)
19303 SWIG_fail;
19304 if (arg2 == NULL) {
19305 PyErr_SetString(PyExc_TypeError,"null reference");
19306 SWIG_fail;
19307 }
19308 {
19309 PyThreadState* __tstate = wxPyBeginAllowThreads();
19310 (arg1)->SetFont((wxFont const &)*arg2);
19311
19312 wxPyEndAllowThreads(__tstate);
19313 if (PyErr_Occurred()) SWIG_fail;
19314 }
19315 Py_INCREF(Py_None); resultobj = Py_None;
19316 return resultobj;
19317 fail:
19318 return NULL;
19319}
19320
19321
19322static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19323 PyObject *resultobj;
19324 wxListItem *arg1 = (wxListItem *) 0 ;
19325 long result;
19326 PyObject * obj0 = 0 ;
19327 char *kwnames[] = {
19328 (char *) "self", NULL
19329 };
19330
19331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19334 {
19335 PyThreadState* __tstate = wxPyBeginAllowThreads();
19336 result = (long)(arg1)->GetMask();
19337
19338 wxPyEndAllowThreads(__tstate);
19339 if (PyErr_Occurred()) SWIG_fail;
19340 }
19341 resultobj = SWIG_FromLong((long)result);
19342 return resultobj;
19343 fail:
19344 return NULL;
19345}
19346
19347
19348static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19349 PyObject *resultobj;
19350 wxListItem *arg1 = (wxListItem *) 0 ;
19351 long result;
19352 PyObject * obj0 = 0 ;
19353 char *kwnames[] = {
19354 (char *) "self", NULL
19355 };
19356
19357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19360 {
19361 PyThreadState* __tstate = wxPyBeginAllowThreads();
19362 result = (long)(arg1)->GetId();
19363
19364 wxPyEndAllowThreads(__tstate);
19365 if (PyErr_Occurred()) SWIG_fail;
19366 }
19367 resultobj = SWIG_FromLong((long)result);
19368 return resultobj;
19369 fail:
19370 return NULL;
19371}
19372
19373
19374static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19375 PyObject *resultobj;
19376 wxListItem *arg1 = (wxListItem *) 0 ;
19377 int result;
19378 PyObject * obj0 = 0 ;
19379 char *kwnames[] = {
19380 (char *) "self", NULL
19381 };
19382
19383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19386 {
19387 PyThreadState* __tstate = wxPyBeginAllowThreads();
19388 result = (int)(arg1)->GetColumn();
19389
19390 wxPyEndAllowThreads(__tstate);
19391 if (PyErr_Occurred()) SWIG_fail;
19392 }
19393 resultobj = SWIG_FromInt((int)result);
19394 return resultobj;
19395 fail:
19396 return NULL;
19397}
19398
19399
19400static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19401 PyObject *resultobj;
19402 wxListItem *arg1 = (wxListItem *) 0 ;
19403 long result;
19404 PyObject * obj0 = 0 ;
19405 char *kwnames[] = {
19406 (char *) "self", NULL
19407 };
19408
19409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19412 {
19413 PyThreadState* __tstate = wxPyBeginAllowThreads();
19414 result = (long)(arg1)->GetState();
19415
19416 wxPyEndAllowThreads(__tstate);
19417 if (PyErr_Occurred()) SWIG_fail;
19418 }
19419 resultobj = SWIG_FromLong((long)result);
19420 return resultobj;
19421 fail:
19422 return NULL;
19423}
19424
19425
19426static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19427 PyObject *resultobj;
19428 wxListItem *arg1 = (wxListItem *) 0 ;
19429 wxString *result;
19430 PyObject * obj0 = 0 ;
19431 char *kwnames[] = {
19432 (char *) "self", NULL
19433 };
19434
19435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 {
19441 wxString const &_result_ref = (arg1)->GetText();
19442 result = (wxString *) &_result_ref;
19443 }
19444
19445 wxPyEndAllowThreads(__tstate);
19446 if (PyErr_Occurred()) SWIG_fail;
19447 }
19448 {
19449#if wxUSE_UNICODE
19450 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19451#else
19452 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19453#endif
19454 }
19455 return resultobj;
19456 fail:
19457 return NULL;
19458}
19459
19460
19461static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19462 PyObject *resultobj;
19463 wxListItem *arg1 = (wxListItem *) 0 ;
19464 int result;
19465 PyObject * obj0 = 0 ;
19466 char *kwnames[] = {
19467 (char *) "self", NULL
19468 };
19469
19470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19473 {
19474 PyThreadState* __tstate = wxPyBeginAllowThreads();
19475 result = (int)(arg1)->GetImage();
19476
19477 wxPyEndAllowThreads(__tstate);
19478 if (PyErr_Occurred()) SWIG_fail;
19479 }
19480 resultobj = SWIG_FromInt((int)result);
19481 return resultobj;
19482 fail:
19483 return NULL;
19484}
19485
19486
19487static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19488 PyObject *resultobj;
19489 wxListItem *arg1 = (wxListItem *) 0 ;
19490 long result;
19491 PyObject * obj0 = 0 ;
19492 char *kwnames[] = {
19493 (char *) "self", NULL
19494 };
19495
19496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19499 {
19500 PyThreadState* __tstate = wxPyBeginAllowThreads();
19501 result = (long)(arg1)->GetData();
19502
19503 wxPyEndAllowThreads(__tstate);
19504 if (PyErr_Occurred()) SWIG_fail;
19505 }
19506 resultobj = SWIG_FromLong((long)result);
19507 return resultobj;
19508 fail:
19509 return NULL;
19510}
19511
19512
19513static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19514 PyObject *resultobj;
19515 wxListItem *arg1 = (wxListItem *) 0 ;
19516 int result;
19517 PyObject * obj0 = 0 ;
19518 char *kwnames[] = {
19519 (char *) "self", NULL
19520 };
19521
19522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 result = (int)(arg1)->GetWidth();
19528
19529 wxPyEndAllowThreads(__tstate);
19530 if (PyErr_Occurred()) SWIG_fail;
19531 }
19532 resultobj = SWIG_FromInt((int)result);
19533 return resultobj;
19534 fail:
19535 return NULL;
19536}
19537
19538
19539static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19540 PyObject *resultobj;
19541 wxListItem *arg1 = (wxListItem *) 0 ;
19542 int result;
19543 PyObject * obj0 = 0 ;
19544 char *kwnames[] = {
19545 (char *) "self", NULL
19546 };
19547
19548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19551 {
19552 PyThreadState* __tstate = wxPyBeginAllowThreads();
19553 result = (int)(arg1)->GetAlign();
19554
19555 wxPyEndAllowThreads(__tstate);
19556 if (PyErr_Occurred()) SWIG_fail;
19557 }
19558 resultobj = SWIG_FromInt((int)result);
19559 return resultobj;
19560 fail:
19561 return NULL;
19562}
19563
19564
19565static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19566 PyObject *resultobj;
19567 wxListItem *arg1 = (wxListItem *) 0 ;
19568 wxListItemAttr *result;
19569 PyObject * obj0 = 0 ;
19570 char *kwnames[] = {
19571 (char *) "self", NULL
19572 };
19573
19574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19577 {
19578 PyThreadState* __tstate = wxPyBeginAllowThreads();
19579 result = (wxListItemAttr *)(arg1)->GetAttributes();
19580
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19585 return resultobj;
19586 fail:
19587 return NULL;
19588}
19589
19590
19591static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19592 PyObject *resultobj;
19593 wxListItem *arg1 = (wxListItem *) 0 ;
19594 bool result;
19595 PyObject * obj0 = 0 ;
19596 char *kwnames[] = {
19597 (char *) "self", NULL
19598 };
19599
19600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19603 {
19604 PyThreadState* __tstate = wxPyBeginAllowThreads();
19605 result = (bool)(arg1)->HasAttributes();
19606
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 {
19611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19612 }
19613 return resultobj;
19614 fail:
19615 return NULL;
19616}
19617
19618
19619static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19620 PyObject *resultobj;
19621 wxListItem *arg1 = (wxListItem *) 0 ;
19622 wxColour result;
19623 PyObject * obj0 = 0 ;
19624 char *kwnames[] = {
19625 (char *) "self", NULL
19626 };
19627
19628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19631 {
19632 PyThreadState* __tstate = wxPyBeginAllowThreads();
19633 result = ((wxListItem const *)arg1)->GetTextColour();
19634
19635 wxPyEndAllowThreads(__tstate);
19636 if (PyErr_Occurred()) SWIG_fail;
19637 }
19638 {
19639 wxColour * resultptr;
19640 resultptr = new wxColour((wxColour &) result);
19641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19642 }
19643 return resultobj;
19644 fail:
19645 return NULL;
19646}
19647
19648
19649static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19650 PyObject *resultobj;
19651 wxListItem *arg1 = (wxListItem *) 0 ;
19652 wxColour result;
19653 PyObject * obj0 = 0 ;
19654 char *kwnames[] = {
19655 (char *) "self", NULL
19656 };
19657
19658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 result = ((wxListItem const *)arg1)->GetBackgroundColour();
19664
19665 wxPyEndAllowThreads(__tstate);
19666 if (PyErr_Occurred()) SWIG_fail;
19667 }
19668 {
19669 wxColour * resultptr;
19670 resultptr = new wxColour((wxColour &) result);
19671 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19672 }
19673 return resultobj;
19674 fail:
19675 return NULL;
19676}
19677
19678
19679static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19680 PyObject *resultobj;
19681 wxListItem *arg1 = (wxListItem *) 0 ;
19682 wxFont result;
19683 PyObject * obj0 = 0 ;
19684 char *kwnames[] = {
19685 (char *) "self", NULL
19686 };
19687
19688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
19689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19691 {
19692 PyThreadState* __tstate = wxPyBeginAllowThreads();
19693 result = ((wxListItem const *)arg1)->GetFont();
19694
19695 wxPyEndAllowThreads(__tstate);
19696 if (PyErr_Occurred()) SWIG_fail;
19697 }
19698 {
19699 wxFont * resultptr;
19700 resultptr = new wxFont((wxFont &) result);
19701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19702 }
19703 return resultobj;
19704 fail:
19705 return NULL;
19706}
19707
19708
19709static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19710 PyObject *resultobj;
19711 wxListItem *arg1 = (wxListItem *) 0 ;
19712 long arg2 ;
19713 PyObject * obj0 = 0 ;
19714 PyObject * obj1 = 0 ;
19715 char *kwnames[] = {
19716 (char *) "self",(char *) "m_mask", NULL
19717 };
19718
19719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
19720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19722 arg2 = (long) SWIG_AsLong(obj1);
19723 if (PyErr_Occurred()) SWIG_fail;
19724 if (arg1) (arg1)->m_mask = arg2;
19725
19726 Py_INCREF(Py_None); resultobj = Py_None;
19727 return resultobj;
19728 fail:
19729 return NULL;
19730}
19731
19732
19733static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19734 PyObject *resultobj;
19735 wxListItem *arg1 = (wxListItem *) 0 ;
19736 long result;
19737 PyObject * obj0 = 0 ;
19738 char *kwnames[] = {
19739 (char *) "self", NULL
19740 };
19741
19742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
19743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19745 result = (long) ((arg1)->m_mask);
19746
19747 resultobj = SWIG_FromLong((long)result);
19748 return resultobj;
19749 fail:
19750 return NULL;
19751}
19752
19753
19754static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19755 PyObject *resultobj;
19756 wxListItem *arg1 = (wxListItem *) 0 ;
19757 long arg2 ;
19758 PyObject * obj0 = 0 ;
19759 PyObject * obj1 = 0 ;
19760 char *kwnames[] = {
19761 (char *) "self",(char *) "m_itemId", NULL
19762 };
19763
19764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
19765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19767 arg2 = (long) SWIG_AsLong(obj1);
19768 if (PyErr_Occurred()) SWIG_fail;
19769 if (arg1) (arg1)->m_itemId = arg2;
19770
19771 Py_INCREF(Py_None); resultobj = Py_None;
19772 return resultobj;
19773 fail:
19774 return NULL;
19775}
19776
19777
19778static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19779 PyObject *resultobj;
19780 wxListItem *arg1 = (wxListItem *) 0 ;
19781 long result;
19782 PyObject * obj0 = 0 ;
19783 char *kwnames[] = {
19784 (char *) "self", NULL
19785 };
19786
19787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
19788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19790 result = (long) ((arg1)->m_itemId);
19791
19792 resultobj = SWIG_FromLong((long)result);
19793 return resultobj;
19794 fail:
19795 return NULL;
19796}
19797
19798
19799static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19800 PyObject *resultobj;
19801 wxListItem *arg1 = (wxListItem *) 0 ;
19802 int arg2 ;
19803 PyObject * obj0 = 0 ;
19804 PyObject * obj1 = 0 ;
19805 char *kwnames[] = {
19806 (char *) "self",(char *) "m_col", NULL
19807 };
19808
19809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19812 arg2 = (int) SWIG_AsInt(obj1);
19813 if (PyErr_Occurred()) SWIG_fail;
19814 if (arg1) (arg1)->m_col = arg2;
19815
19816 Py_INCREF(Py_None); resultobj = Py_None;
19817 return resultobj;
19818 fail:
19819 return NULL;
19820}
19821
19822
19823static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19824 PyObject *resultobj;
19825 wxListItem *arg1 = (wxListItem *) 0 ;
19826 int result;
19827 PyObject * obj0 = 0 ;
19828 char *kwnames[] = {
19829 (char *) "self", NULL
19830 };
19831
19832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
19833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19835 result = (int) ((arg1)->m_col);
19836
19837 resultobj = SWIG_FromInt((int)result);
19838 return resultobj;
19839 fail:
19840 return NULL;
19841}
19842
19843
19844static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19845 PyObject *resultobj;
19846 wxListItem *arg1 = (wxListItem *) 0 ;
19847 long arg2 ;
19848 PyObject * obj0 = 0 ;
19849 PyObject * obj1 = 0 ;
19850 char *kwnames[] = {
19851 (char *) "self",(char *) "m_state", NULL
19852 };
19853
19854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
19855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19857 arg2 = (long) SWIG_AsLong(obj1);
19858 if (PyErr_Occurred()) SWIG_fail;
19859 if (arg1) (arg1)->m_state = arg2;
19860
19861 Py_INCREF(Py_None); resultobj = Py_None;
19862 return resultobj;
19863 fail:
19864 return NULL;
19865}
19866
19867
19868static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19869 PyObject *resultobj;
19870 wxListItem *arg1 = (wxListItem *) 0 ;
19871 long result;
19872 PyObject * obj0 = 0 ;
19873 char *kwnames[] = {
19874 (char *) "self", NULL
19875 };
19876
19877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
19878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19880 result = (long) ((arg1)->m_state);
19881
19882 resultobj = SWIG_FromLong((long)result);
19883 return resultobj;
19884 fail:
19885 return NULL;
19886}
19887
19888
19889static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19890 PyObject *resultobj;
19891 wxListItem *arg1 = (wxListItem *) 0 ;
19892 long arg2 ;
19893 PyObject * obj0 = 0 ;
19894 PyObject * obj1 = 0 ;
19895 char *kwnames[] = {
19896 (char *) "self",(char *) "m_stateMask", NULL
19897 };
19898
19899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
19900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19902 arg2 = (long) SWIG_AsLong(obj1);
19903 if (PyErr_Occurred()) SWIG_fail;
19904 if (arg1) (arg1)->m_stateMask = arg2;
19905
19906 Py_INCREF(Py_None); resultobj = Py_None;
19907 return resultobj;
19908 fail:
19909 return NULL;
19910}
19911
19912
19913static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19914 PyObject *resultobj;
19915 wxListItem *arg1 = (wxListItem *) 0 ;
19916 long result;
19917 PyObject * obj0 = 0 ;
19918 char *kwnames[] = {
19919 (char *) "self", NULL
19920 };
19921
19922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
19923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19925 result = (long) ((arg1)->m_stateMask);
19926
19927 resultobj = SWIG_FromLong((long)result);
19928 return resultobj;
19929 fail:
19930 return NULL;
19931}
19932
19933
19934static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19935 PyObject *resultobj;
19936 wxListItem *arg1 = (wxListItem *) 0 ;
19937 wxString *arg2 = (wxString *) 0 ;
19938 bool temp2 = False ;
19939 PyObject * obj0 = 0 ;
19940 PyObject * obj1 = 0 ;
19941 char *kwnames[] = {
19942 (char *) "self",(char *) "m_text", NULL
19943 };
19944
19945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
19946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19948 {
19949 arg2 = wxString_in_helper(obj1);
19950 if (arg2 == NULL) SWIG_fail;
19951 temp2 = True;
19952 }
19953 if (arg1) (arg1)->m_text = *arg2;
19954
19955 Py_INCREF(Py_None); resultobj = Py_None;
19956 {
19957 if (temp2)
19958 delete arg2;
19959 }
19960 return resultobj;
19961 fail:
19962 {
19963 if (temp2)
19964 delete arg2;
19965 }
19966 return NULL;
19967}
19968
19969
19970static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19971 PyObject *resultobj;
19972 wxListItem *arg1 = (wxListItem *) 0 ;
19973 wxString *result;
19974 PyObject * obj0 = 0 ;
19975 char *kwnames[] = {
19976 (char *) "self", NULL
19977 };
19978
19979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
19980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19982 result = (wxString *)& ((arg1)->m_text);
19983
19984 {
19985#if wxUSE_UNICODE
19986 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19987#else
19988 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19989#endif
19990 }
19991 return resultobj;
19992 fail:
19993 return NULL;
19994}
19995
19996
19997static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19998 PyObject *resultobj;
19999 wxListItem *arg1 = (wxListItem *) 0 ;
20000 int arg2 ;
20001 PyObject * obj0 = 0 ;
20002 PyObject * obj1 = 0 ;
20003 char *kwnames[] = {
20004 (char *) "self",(char *) "m_image", NULL
20005 };
20006
20007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20010 arg2 = (int) SWIG_AsInt(obj1);
20011 if (PyErr_Occurred()) SWIG_fail;
20012 if (arg1) (arg1)->m_image = arg2;
20013
20014 Py_INCREF(Py_None); resultobj = Py_None;
20015 return resultobj;
20016 fail:
20017 return NULL;
20018}
20019
20020
20021static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20022 PyObject *resultobj;
20023 wxListItem *arg1 = (wxListItem *) 0 ;
20024 int result;
20025 PyObject * obj0 = 0 ;
20026 char *kwnames[] = {
20027 (char *) "self", NULL
20028 };
20029
20030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20033 result = (int) ((arg1)->m_image);
20034
20035 resultobj = SWIG_FromInt((int)result);
20036 return resultobj;
20037 fail:
20038 return NULL;
20039}
20040
20041
20042static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20043 PyObject *resultobj;
20044 wxListItem *arg1 = (wxListItem *) 0 ;
20045 long arg2 ;
20046 PyObject * obj0 = 0 ;
20047 PyObject * obj1 = 0 ;
20048 char *kwnames[] = {
20049 (char *) "self",(char *) "m_data", NULL
20050 };
20051
20052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20055 arg2 = (long) SWIG_AsLong(obj1);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 if (arg1) (arg1)->m_data = arg2;
20058
20059 Py_INCREF(Py_None); resultobj = Py_None;
20060 return resultobj;
20061 fail:
20062 return NULL;
20063}
20064
20065
20066static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20067 PyObject *resultobj;
20068 wxListItem *arg1 = (wxListItem *) 0 ;
20069 long result;
20070 PyObject * obj0 = 0 ;
20071 char *kwnames[] = {
20072 (char *) "self", NULL
20073 };
20074
20075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20078 result = (long) ((arg1)->m_data);
20079
20080 resultobj = SWIG_FromLong((long)result);
20081 return resultobj;
20082 fail:
20083 return NULL;
20084}
20085
20086
20087static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20088 PyObject *resultobj;
20089 wxListItem *arg1 = (wxListItem *) 0 ;
20090 int arg2 ;
20091 PyObject * obj0 = 0 ;
20092 PyObject * obj1 = 0 ;
20093 char *kwnames[] = {
20094 (char *) "self",(char *) "m_format", NULL
20095 };
20096
20097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20100 arg2 = (int) SWIG_AsInt(obj1);
20101 if (PyErr_Occurred()) SWIG_fail;
20102 if (arg1) (arg1)->m_format = arg2;
20103
20104 Py_INCREF(Py_None); resultobj = Py_None;
20105 return resultobj;
20106 fail:
20107 return NULL;
20108}
20109
20110
20111static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20112 PyObject *resultobj;
20113 wxListItem *arg1 = (wxListItem *) 0 ;
20114 int result;
20115 PyObject * obj0 = 0 ;
20116 char *kwnames[] = {
20117 (char *) "self", NULL
20118 };
20119
20120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20123 result = (int) ((arg1)->m_format);
20124
20125 resultobj = SWIG_FromInt((int)result);
20126 return resultobj;
20127 fail:
20128 return NULL;
20129}
20130
20131
20132static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20133 PyObject *resultobj;
20134 wxListItem *arg1 = (wxListItem *) 0 ;
20135 int arg2 ;
20136 PyObject * obj0 = 0 ;
20137 PyObject * obj1 = 0 ;
20138 char *kwnames[] = {
20139 (char *) "self",(char *) "m_width", NULL
20140 };
20141
20142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20145 arg2 = (int) SWIG_AsInt(obj1);
20146 if (PyErr_Occurred()) SWIG_fail;
20147 if (arg1) (arg1)->m_width = arg2;
20148
20149 Py_INCREF(Py_None); resultobj = Py_None;
20150 return resultobj;
20151 fail:
20152 return NULL;
20153}
20154
20155
20156static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20157 PyObject *resultobj;
20158 wxListItem *arg1 = (wxListItem *) 0 ;
20159 int result;
20160 PyObject * obj0 = 0 ;
20161 char *kwnames[] = {
20162 (char *) "self", NULL
20163 };
20164
20165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20168 result = (int) ((arg1)->m_width);
20169
20170 resultobj = SWIG_FromInt((int)result);
20171 return resultobj;
20172 fail:
20173 return NULL;
20174}
20175
20176
20177static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
20178 PyObject *obj;
20179 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20180 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20181 Py_INCREF(obj);
20182 return Py_BuildValue((char *)"");
20183}
20184static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20185 PyObject *resultobj;
20186 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20187 int arg2 = (int) 0 ;
20188 wxListEvent *result;
20189 PyObject * obj0 = 0 ;
20190 PyObject * obj1 = 0 ;
20191 char *kwnames[] = {
20192 (char *) "commandType",(char *) "id", NULL
20193 };
20194
20195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20196 if (obj0) {
20197 arg1 = (wxEventType) SWIG_AsInt(obj0);
20198 if (PyErr_Occurred()) SWIG_fail;
20199 }
20200 if (obj1) {
20201 arg2 = (int) SWIG_AsInt(obj1);
20202 if (PyErr_Occurred()) SWIG_fail;
20203 }
20204 {
20205 PyThreadState* __tstate = wxPyBeginAllowThreads();
20206 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20207
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20212 return resultobj;
20213 fail:
20214 return NULL;
20215}
20216
20217
20218static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj;
20220 wxListEvent *arg1 = (wxListEvent *) 0 ;
20221 int arg2 ;
20222 PyObject * obj0 = 0 ;
20223 PyObject * obj1 = 0 ;
20224 char *kwnames[] = {
20225 (char *) "self",(char *) "m_code", NULL
20226 };
20227
20228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20231 arg2 = (int) SWIG_AsInt(obj1);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 if (arg1) (arg1)->m_code = arg2;
20234
20235 Py_INCREF(Py_None); resultobj = Py_None;
20236 return resultobj;
20237 fail:
20238 return NULL;
20239}
20240
20241
20242static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20243 PyObject *resultobj;
20244 wxListEvent *arg1 = (wxListEvent *) 0 ;
20245 int result;
20246 PyObject * obj0 = 0 ;
20247 char *kwnames[] = {
20248 (char *) "self", NULL
20249 };
20250
20251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20254 result = (int) ((arg1)->m_code);
20255
20256 resultobj = SWIG_FromInt((int)result);
20257 return resultobj;
20258 fail:
20259 return NULL;
20260}
20261
20262
20263static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20264 PyObject *resultobj;
20265 wxListEvent *arg1 = (wxListEvent *) 0 ;
20266 long arg2 ;
20267 PyObject * obj0 = 0 ;
20268 PyObject * obj1 = 0 ;
20269 char *kwnames[] = {
20270 (char *) "self",(char *) "m_oldItemIndex", NULL
20271 };
20272
20273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20276 arg2 = (long) SWIG_AsLong(obj1);
20277 if (PyErr_Occurred()) SWIG_fail;
20278 if (arg1) (arg1)->m_oldItemIndex = arg2;
20279
20280 Py_INCREF(Py_None); resultobj = Py_None;
20281 return resultobj;
20282 fail:
20283 return NULL;
20284}
20285
20286
20287static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20288 PyObject *resultobj;
20289 wxListEvent *arg1 = (wxListEvent *) 0 ;
20290 long result;
20291 PyObject * obj0 = 0 ;
20292 char *kwnames[] = {
20293 (char *) "self", NULL
20294 };
20295
20296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20299 result = (long) ((arg1)->m_oldItemIndex);
20300
20301 resultobj = SWIG_FromLong((long)result);
20302 return resultobj;
20303 fail:
20304 return NULL;
20305}
20306
20307
20308static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20309 PyObject *resultobj;
20310 wxListEvent *arg1 = (wxListEvent *) 0 ;
20311 long arg2 ;
20312 PyObject * obj0 = 0 ;
20313 PyObject * obj1 = 0 ;
20314 char *kwnames[] = {
20315 (char *) "self",(char *) "m_itemIndex", NULL
20316 };
20317
20318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20321 arg2 = (long) SWIG_AsLong(obj1);
20322 if (PyErr_Occurred()) SWIG_fail;
20323 if (arg1) (arg1)->m_itemIndex = arg2;
20324
20325 Py_INCREF(Py_None); resultobj = Py_None;
20326 return resultobj;
20327 fail:
20328 return NULL;
20329}
20330
20331
20332static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20333 PyObject *resultobj;
20334 wxListEvent *arg1 = (wxListEvent *) 0 ;
20335 long result;
20336 PyObject * obj0 = 0 ;
20337 char *kwnames[] = {
20338 (char *) "self", NULL
20339 };
20340
20341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20344 result = (long) ((arg1)->m_itemIndex);
20345
20346 resultobj = SWIG_FromLong((long)result);
20347 return resultobj;
20348 fail:
20349 return NULL;
20350}
20351
20352
20353static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20354 PyObject *resultobj;
20355 wxListEvent *arg1 = (wxListEvent *) 0 ;
20356 int arg2 ;
20357 PyObject * obj0 = 0 ;
20358 PyObject * obj1 = 0 ;
20359 char *kwnames[] = {
20360 (char *) "self",(char *) "m_col", NULL
20361 };
20362
20363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20366 arg2 = (int) SWIG_AsInt(obj1);
20367 if (PyErr_Occurred()) SWIG_fail;
20368 if (arg1) (arg1)->m_col = arg2;
20369
20370 Py_INCREF(Py_None); resultobj = Py_None;
20371 return resultobj;
20372 fail:
20373 return NULL;
20374}
20375
20376
20377static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20378 PyObject *resultobj;
20379 wxListEvent *arg1 = (wxListEvent *) 0 ;
20380 int result;
20381 PyObject * obj0 = 0 ;
20382 char *kwnames[] = {
20383 (char *) "self", NULL
20384 };
20385
20386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20389 result = (int) ((arg1)->m_col);
20390
20391 resultobj = SWIG_FromInt((int)result);
20392 return resultobj;
20393 fail:
20394 return NULL;
20395}
20396
20397
20398static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20399 PyObject *resultobj;
20400 wxListEvent *arg1 = (wxListEvent *) 0 ;
20401 wxPoint *arg2 = (wxPoint *) 0 ;
20402 PyObject * obj0 = 0 ;
20403 PyObject * obj1 = 0 ;
20404 char *kwnames[] = {
20405 (char *) "self",(char *) "m_pointDrag", NULL
20406 };
20407
20408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20411 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20413 if (arg1) (arg1)->m_pointDrag = *arg2;
20414
20415 Py_INCREF(Py_None); resultobj = Py_None;
20416 return resultobj;
20417 fail:
20418 return NULL;
20419}
20420
20421
20422static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20423 PyObject *resultobj;
20424 wxListEvent *arg1 = (wxListEvent *) 0 ;
20425 wxPoint *result;
20426 PyObject * obj0 = 0 ;
20427 char *kwnames[] = {
20428 (char *) "self", NULL
20429 };
20430
20431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20434 result = (wxPoint *)& ((arg1)->m_pointDrag);
20435
20436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20437 return resultobj;
20438 fail:
20439 return NULL;
20440}
20441
20442
20443static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20444 PyObject *resultobj;
20445 wxListEvent *arg1 = (wxListEvent *) 0 ;
20446 wxListItem *result;
20447 PyObject * obj0 = 0 ;
20448 char *kwnames[] = {
20449 (char *) "self", NULL
20450 };
20451
20452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20455 result = (wxListItem *)& ((arg1)->m_item);
20456
20457 {
20458 resultobj = wxPyMake_wxObject(result);
20459 }
20460 return resultobj;
20461 fail:
20462 return NULL;
20463}
20464
20465
20466static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20467 PyObject *resultobj;
20468 wxListEvent *arg1 = (wxListEvent *) 0 ;
20469 int result;
20470 PyObject * obj0 = 0 ;
20471 char *kwnames[] = {
20472 (char *) "self", NULL
20473 };
20474
20475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20478 {
20479 PyThreadState* __tstate = wxPyBeginAllowThreads();
20480 result = (int)(arg1)->GetKeyCode();
20481
20482 wxPyEndAllowThreads(__tstate);
20483 if (PyErr_Occurred()) SWIG_fail;
20484 }
20485 resultobj = SWIG_FromInt((int)result);
20486 return resultobj;
20487 fail:
20488 return NULL;
20489}
20490
20491
20492static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
20493 PyObject *resultobj;
20494 wxListEvent *arg1 = (wxListEvent *) 0 ;
20495 long result;
20496 PyObject * obj0 = 0 ;
20497 char *kwnames[] = {
20498 (char *) "self", NULL
20499 };
20500
20501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20504 {
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 result = (long)(arg1)->GetIndex();
20507
20508 wxPyEndAllowThreads(__tstate);
20509 if (PyErr_Occurred()) SWIG_fail;
20510 }
20511 resultobj = SWIG_FromLong((long)result);
20512 return resultobj;
20513 fail:
20514 return NULL;
20515}
20516
20517
20518static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20519 PyObject *resultobj;
20520 wxListEvent *arg1 = (wxListEvent *) 0 ;
20521 int result;
20522 PyObject * obj0 = 0 ;
20523 char *kwnames[] = {
20524 (char *) "self", NULL
20525 };
20526
20527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 result = (int)(arg1)->GetColumn();
20533
20534 wxPyEndAllowThreads(__tstate);
20535 if (PyErr_Occurred()) SWIG_fail;
20536 }
20537 resultobj = SWIG_FromInt((int)result);
20538 return resultobj;
20539 fail:
20540 return NULL;
20541}
20542
20543
20544static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
20545 PyObject *resultobj;
20546 wxListEvent *arg1 = (wxListEvent *) 0 ;
20547 wxPoint result;
20548 PyObject * obj0 = 0 ;
20549 char *kwnames[] = {
20550 (char *) "self", NULL
20551 };
20552
20553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20556 {
20557 PyThreadState* __tstate = wxPyBeginAllowThreads();
20558 result = (arg1)->GetPoint();
20559
20560 wxPyEndAllowThreads(__tstate);
20561 if (PyErr_Occurred()) SWIG_fail;
20562 }
20563 {
20564 wxPoint * resultptr;
20565 resultptr = new wxPoint((wxPoint &) result);
20566 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20567 }
20568 return resultobj;
20569 fail:
20570 return NULL;
20571}
20572
20573
20574static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20575 PyObject *resultobj;
20576 wxListEvent *arg1 = (wxListEvent *) 0 ;
20577 wxString *result;
20578 PyObject * obj0 = 0 ;
20579 char *kwnames[] = {
20580 (char *) "self", NULL
20581 };
20582
20583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20586 {
20587 PyThreadState* __tstate = wxPyBeginAllowThreads();
20588 {
20589 wxString const &_result_ref = (arg1)->GetLabel();
20590 result = (wxString *) &_result_ref;
20591 }
20592
20593 wxPyEndAllowThreads(__tstate);
20594 if (PyErr_Occurred()) SWIG_fail;
20595 }
20596 {
20597#if wxUSE_UNICODE
20598 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20599#else
20600 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20601#endif
20602 }
20603 return resultobj;
20604 fail:
20605 return NULL;
20606}
20607
20608
20609static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
20610 PyObject *resultobj;
20611 wxListEvent *arg1 = (wxListEvent *) 0 ;
20612 wxString *result;
20613 PyObject * obj0 = 0 ;
20614 char *kwnames[] = {
20615 (char *) "self", NULL
20616 };
20617
20618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20621 {
20622 PyThreadState* __tstate = wxPyBeginAllowThreads();
20623 {
20624 wxString const &_result_ref = (arg1)->GetText();
20625 result = (wxString *) &_result_ref;
20626 }
20627
20628 wxPyEndAllowThreads(__tstate);
20629 if (PyErr_Occurred()) SWIG_fail;
20630 }
20631 {
20632#if wxUSE_UNICODE
20633 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20634#else
20635 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20636#endif
20637 }
20638 return resultobj;
20639 fail:
20640 return NULL;
20641}
20642
20643
20644static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20645 PyObject *resultobj;
20646 wxListEvent *arg1 = (wxListEvent *) 0 ;
20647 int result;
20648 PyObject * obj0 = 0 ;
20649 char *kwnames[] = {
20650 (char *) "self", NULL
20651 };
20652
20653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20656 {
20657 PyThreadState* __tstate = wxPyBeginAllowThreads();
20658 result = (int)(arg1)->GetImage();
20659
20660 wxPyEndAllowThreads(__tstate);
20661 if (PyErr_Occurred()) SWIG_fail;
20662 }
20663 resultobj = SWIG_FromInt((int)result);
20664 return resultobj;
20665 fail:
20666 return NULL;
20667}
20668
20669
20670static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
20671 PyObject *resultobj;
20672 wxListEvent *arg1 = (wxListEvent *) 0 ;
20673 long result;
20674 PyObject * obj0 = 0 ;
20675 char *kwnames[] = {
20676 (char *) "self", NULL
20677 };
20678
20679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
20680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20682 {
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 result = (long)(arg1)->GetData();
20685
20686 wxPyEndAllowThreads(__tstate);
20687 if (PyErr_Occurred()) SWIG_fail;
20688 }
20689 resultobj = SWIG_FromLong((long)result);
20690 return resultobj;
20691 fail:
20692 return NULL;
20693}
20694
20695
20696static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
20697 PyObject *resultobj;
20698 wxListEvent *arg1 = (wxListEvent *) 0 ;
20699 long result;
20700 PyObject * obj0 = 0 ;
20701 char *kwnames[] = {
20702 (char *) "self", NULL
20703 };
20704
20705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
20706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 result = (long)(arg1)->GetMask();
20711
20712 wxPyEndAllowThreads(__tstate);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 }
20715 resultobj = SWIG_FromLong((long)result);
20716 return resultobj;
20717 fail:
20718 return NULL;
20719}
20720
20721
20722static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20723 PyObject *resultobj;
20724 wxListEvent *arg1 = (wxListEvent *) 0 ;
20725 wxListItem *result;
20726 PyObject * obj0 = 0 ;
20727 char *kwnames[] = {
20728 (char *) "self", NULL
20729 };
20730
20731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
20732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20734 {
20735 PyThreadState* __tstate = wxPyBeginAllowThreads();
20736 {
20737 wxListItem const &_result_ref = (arg1)->GetItem();
20738 result = (wxListItem *) &_result_ref;
20739 }
20740
20741 wxPyEndAllowThreads(__tstate);
20742 if (PyErr_Occurred()) SWIG_fail;
20743 }
20744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
20745 return resultobj;
20746 fail:
20747 return NULL;
20748}
20749
20750
20751static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
20752 PyObject *resultobj;
20753 wxListEvent *arg1 = (wxListEvent *) 0 ;
20754 long result;
20755 PyObject * obj0 = 0 ;
20756 char *kwnames[] = {
20757 (char *) "self", NULL
20758 };
20759
20760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
20761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20763 {
20764 PyThreadState* __tstate = wxPyBeginAllowThreads();
20765 result = (long)(arg1)->GetCacheFrom();
20766
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 resultobj = SWIG_FromLong((long)result);
20771 return resultobj;
20772 fail:
20773 return NULL;
20774}
20775
20776
20777static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20778 PyObject *resultobj;
20779 wxListEvent *arg1 = (wxListEvent *) 0 ;
20780 long result;
20781 PyObject * obj0 = 0 ;
20782 char *kwnames[] = {
20783 (char *) "self", NULL
20784 };
20785
20786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
20787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20789 {
20790 PyThreadState* __tstate = wxPyBeginAllowThreads();
20791 result = (long)(arg1)->GetCacheTo();
20792
20793 wxPyEndAllowThreads(__tstate);
20794 if (PyErr_Occurred()) SWIG_fail;
20795 }
20796 resultobj = SWIG_FromLong((long)result);
20797 return resultobj;
20798 fail:
20799 return NULL;
20800}
20801
20802
20803static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
20804 PyObject *resultobj;
20805 wxListEvent *arg1 = (wxListEvent *) 0 ;
20806 bool result;
20807 PyObject * obj0 = 0 ;
20808 char *kwnames[] = {
20809 (char *) "self", NULL
20810 };
20811
20812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
20813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20815 {
20816 PyThreadState* __tstate = wxPyBeginAllowThreads();
20817 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
20818
20819 wxPyEndAllowThreads(__tstate);
20820 if (PyErr_Occurred()) SWIG_fail;
20821 }
20822 {
20823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20824 }
20825 return resultobj;
20826 fail:
20827 return NULL;
20828}
20829
20830
20831static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
20832 PyObject *resultobj;
20833 wxListEvent *arg1 = (wxListEvent *) 0 ;
20834 bool arg2 ;
20835 PyObject * obj0 = 0 ;
20836 PyObject * obj1 = 0 ;
20837 char *kwnames[] = {
20838 (char *) "self",(char *) "editCancelled", NULL
20839 };
20840
20841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
20842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20844 arg2 = (bool) SWIG_AsBool(obj1);
20845 if (PyErr_Occurred()) SWIG_fail;
20846 {
20847 PyThreadState* __tstate = wxPyBeginAllowThreads();
20848 (arg1)->SetEditCanceled(arg2);
20849
20850 wxPyEndAllowThreads(__tstate);
20851 if (PyErr_Occurred()) SWIG_fail;
20852 }
20853 Py_INCREF(Py_None); resultobj = Py_None;
20854 return resultobj;
20855 fail:
20856 return NULL;
20857}
20858
20859
20860static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
20861 PyObject *obj;
20862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20863 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
20864 Py_INCREF(obj);
20865 return Py_BuildValue((char *)"");
20866}
20867static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20868 PyObject *resultobj;
20869 wxWindow *arg1 = (wxWindow *) 0 ;
20870 int arg2 = (int) -1 ;
20871 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20872 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20873 wxSize const &arg4_defvalue = wxDefaultSize ;
20874 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20875 long arg5 = (long) wxLC_ICON ;
20876 wxValidator const &arg6_defvalue = wxDefaultValidator ;
20877 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
20878 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
20879 wxString *arg7 = (wxString *) &arg7_defvalue ;
20880 wxPyListCtrl *result;
20881 wxPoint temp3 ;
20882 wxSize temp4 ;
20883 bool temp7 = False ;
20884 PyObject * obj0 = 0 ;
20885 PyObject * obj1 = 0 ;
20886 PyObject * obj2 = 0 ;
20887 PyObject * obj3 = 0 ;
20888 PyObject * obj4 = 0 ;
20889 PyObject * obj5 = 0 ;
20890 PyObject * obj6 = 0 ;
20891 char *kwnames[] = {
20892 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
20893 };
20894
20895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20898 if (obj1) {
20899 arg2 = (int) SWIG_AsInt(obj1);
20900 if (PyErr_Occurred()) SWIG_fail;
20901 }
20902 if (obj2) {
20903 {
20904 arg3 = &temp3;
20905 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20906 }
20907 }
20908 if (obj3) {
20909 {
20910 arg4 = &temp4;
20911 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20912 }
20913 }
20914 if (obj4) {
20915 arg5 = (long) SWIG_AsLong(obj4);
20916 if (PyErr_Occurred()) SWIG_fail;
20917 }
20918 if (obj5) {
20919 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
20920 SWIG_POINTER_EXCEPTION | 0)) == -1)
20921 SWIG_fail;
20922 if (arg6 == NULL) {
20923 PyErr_SetString(PyExc_TypeError,"null reference");
20924 SWIG_fail;
20925 }
20926 }
20927 if (obj6) {
20928 {
20929 arg7 = wxString_in_helper(obj6);
20930 if (arg7 == NULL) SWIG_fail;
20931 temp7 = True;
20932 }
20933 }
20934 {
20935 PyThreadState* __tstate = wxPyBeginAllowThreads();
20936 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
20937
20938 wxPyEndAllowThreads(__tstate);
20939 if (PyErr_Occurred()) SWIG_fail;
20940 }
20941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20942 {
20943 if (temp7)
20944 delete arg7;
20945 }
20946 return resultobj;
20947 fail:
20948 {
20949 if (temp7)
20950 delete arg7;
20951 }
20952 return NULL;
20953}
20954
20955
20956static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
20957 PyObject *resultobj;
20958 wxPyListCtrl *result;
20959 char *kwnames[] = {
20960 NULL
20961 };
20962
20963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
20964 {
20965 PyThreadState* __tstate = wxPyBeginAllowThreads();
20966 result = (wxPyListCtrl *)new wxPyListCtrl();
20967
20968 wxPyEndAllowThreads(__tstate);
20969 if (PyErr_Occurred()) SWIG_fail;
20970 }
20971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
20972 return resultobj;
20973 fail:
20974 return NULL;
20975}
20976
20977
20978static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
20979 PyObject *resultobj;
20980 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
20981 wxWindow *arg2 = (wxWindow *) 0 ;
20982 int arg3 = (int) -1 ;
20983 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20984 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20985 wxSize const &arg5_defvalue = wxDefaultSize ;
20986 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20987 long arg6 = (long) wxLC_ICON ;
20988 wxValidator const &arg7_defvalue = wxDefaultValidator ;
20989 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
20990 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
20991 wxString *arg8 = (wxString *) &arg8_defvalue ;
20992 bool result;
20993 wxPoint temp4 ;
20994 wxSize temp5 ;
20995 bool temp8 = False ;
20996 PyObject * obj0 = 0 ;
20997 PyObject * obj1 = 0 ;
20998 PyObject * obj2 = 0 ;
20999 PyObject * obj3 = 0 ;
21000 PyObject * obj4 = 0 ;
21001 PyObject * obj5 = 0 ;
21002 PyObject * obj6 = 0 ;
21003 PyObject * obj7 = 0 ;
21004 char *kwnames[] = {
21005 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21006 };
21007
21008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21011 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21013 if (obj2) {
21014 arg3 = (int) SWIG_AsInt(obj2);
21015 if (PyErr_Occurred()) SWIG_fail;
21016 }
21017 if (obj3) {
21018 {
21019 arg4 = &temp4;
21020 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21021 }
21022 }
21023 if (obj4) {
21024 {
21025 arg5 = &temp5;
21026 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21027 }
21028 }
21029 if (obj5) {
21030 arg6 = (long) SWIG_AsLong(obj5);
21031 if (PyErr_Occurred()) SWIG_fail;
21032 }
21033 if (obj6) {
21034 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21035 SWIG_POINTER_EXCEPTION | 0)) == -1)
21036 SWIG_fail;
21037 if (arg7 == NULL) {
21038 PyErr_SetString(PyExc_TypeError,"null reference");
21039 SWIG_fail;
21040 }
21041 }
21042 if (obj7) {
21043 {
21044 arg8 = wxString_in_helper(obj7);
21045 if (arg8 == NULL) SWIG_fail;
21046 temp8 = True;
21047 }
21048 }
21049 {
21050 PyThreadState* __tstate = wxPyBeginAllowThreads();
21051 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21052
21053 wxPyEndAllowThreads(__tstate);
21054 if (PyErr_Occurred()) SWIG_fail;
21055 }
21056 {
21057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21058 }
21059 {
21060 if (temp8)
21061 delete arg8;
21062 }
21063 return resultobj;
21064 fail:
21065 {
21066 if (temp8)
21067 delete arg8;
21068 }
21069 return NULL;
21070}
21071
21072
21073static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21074 PyObject *resultobj;
21075 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21076 PyObject *arg2 = (PyObject *) 0 ;
21077 PyObject *arg3 = (PyObject *) 0 ;
21078 PyObject * obj0 = 0 ;
21079 PyObject * obj1 = 0 ;
21080 PyObject * obj2 = 0 ;
21081 char *kwnames[] = {
21082 (char *) "self",(char *) "self",(char *) "_class", NULL
21083 };
21084
21085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21088 arg2 = obj1;
21089 arg3 = obj2;
21090 {
21091 PyThreadState* __tstate = wxPyBeginAllowThreads();
21092 (arg1)->_setCallbackInfo(arg2,arg3);
21093
21094 wxPyEndAllowThreads(__tstate);
21095 if (PyErr_Occurred()) SWIG_fail;
21096 }
21097 Py_INCREF(Py_None); resultobj = Py_None;
21098 return resultobj;
21099 fail:
21100 return NULL;
21101}
21102
21103
21104static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21105 PyObject *resultobj;
21106 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21107 wxColour *arg2 = 0 ;
21108 bool result;
21109 wxColour temp2 ;
21110 PyObject * obj0 = 0 ;
21111 PyObject * obj1 = 0 ;
21112 char *kwnames[] = {
21113 (char *) "self",(char *) "col", NULL
21114 };
21115
21116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21119 {
21120 arg2 = &temp2;
21121 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21122 }
21123 {
21124 PyThreadState* __tstate = wxPyBeginAllowThreads();
21125 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21126
21127 wxPyEndAllowThreads(__tstate);
21128 if (PyErr_Occurred()) SWIG_fail;
21129 }
21130 {
21131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21132 }
21133 return resultobj;
21134 fail:
21135 return NULL;
21136}
21137
21138
21139static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21140 PyObject *resultobj;
21141 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21142 wxColour *arg2 = 0 ;
21143 bool result;
21144 wxColour temp2 ;
21145 PyObject * obj0 = 0 ;
21146 PyObject * obj1 = 0 ;
21147 char *kwnames[] = {
21148 (char *) "self",(char *) "col", NULL
21149 };
21150
21151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21154 {
21155 arg2 = &temp2;
21156 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21157 }
21158 {
21159 PyThreadState* __tstate = wxPyBeginAllowThreads();
21160 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21161
21162 wxPyEndAllowThreads(__tstate);
21163 if (PyErr_Occurred()) SWIG_fail;
21164 }
21165 {
21166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21167 }
21168 return resultobj;
21169 fail:
21170 return NULL;
21171}
21172
21173
21174static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj;
21176 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21177 int arg2 ;
21178 wxListItem *result;
21179 PyObject * obj0 = 0 ;
21180 PyObject * obj1 = 0 ;
21181 char *kwnames[] = {
21182 (char *) "self",(char *) "col", NULL
21183 };
21184
21185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21188 arg2 = (int) SWIG_AsInt(obj1);
21189 if (PyErr_Occurred()) SWIG_fail;
21190 {
21191 PyThreadState* __tstate = wxPyBeginAllowThreads();
21192 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21193
21194 wxPyEndAllowThreads(__tstate);
21195 if (PyErr_Occurred()) SWIG_fail;
21196 }
21197 {
21198 resultobj = wxPyMake_wxObject(result);
21199 }
21200 return resultobj;
21201 fail:
21202 return NULL;
21203}
21204
21205
21206static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21207 PyObject *resultobj;
21208 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21209 int arg2 ;
21210 wxListItem *arg3 = 0 ;
21211 bool result;
21212 PyObject * obj0 = 0 ;
21213 PyObject * obj1 = 0 ;
21214 PyObject * obj2 = 0 ;
21215 char *kwnames[] = {
21216 (char *) "self",(char *) "col",(char *) "item", NULL
21217 };
21218
21219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21222 arg2 = (int) SWIG_AsInt(obj1);
21223 if (PyErr_Occurred()) SWIG_fail;
21224 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21225 SWIG_POINTER_EXCEPTION | 0)) == -1)
21226 SWIG_fail;
21227 if (arg3 == NULL) {
21228 PyErr_SetString(PyExc_TypeError,"null reference");
21229 SWIG_fail;
21230 }
21231 {
21232 PyThreadState* __tstate = wxPyBeginAllowThreads();
21233 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21234
21235 wxPyEndAllowThreads(__tstate);
21236 if (PyErr_Occurred()) SWIG_fail;
21237 }
21238 {
21239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21240 }
21241 return resultobj;
21242 fail:
21243 return NULL;
21244}
21245
21246
21247static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21248 PyObject *resultobj;
21249 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21250 int arg2 ;
21251 int result;
21252 PyObject * obj0 = 0 ;
21253 PyObject * obj1 = 0 ;
21254 char *kwnames[] = {
21255 (char *) "self",(char *) "col", NULL
21256 };
21257
21258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21261 arg2 = (int) SWIG_AsInt(obj1);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 {
21264 PyThreadState* __tstate = wxPyBeginAllowThreads();
21265 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21266
21267 wxPyEndAllowThreads(__tstate);
21268 if (PyErr_Occurred()) SWIG_fail;
21269 }
21270 resultobj = SWIG_FromInt((int)result);
21271 return resultobj;
21272 fail:
21273 return NULL;
21274}
21275
21276
21277static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21278 PyObject *resultobj;
21279 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21280 int arg2 ;
21281 int arg3 ;
21282 bool result;
21283 PyObject * obj0 = 0 ;
21284 PyObject * obj1 = 0 ;
21285 PyObject * obj2 = 0 ;
21286 char *kwnames[] = {
21287 (char *) "self",(char *) "col",(char *) "width", NULL
21288 };
21289
21290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21293 arg2 = (int) SWIG_AsInt(obj1);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 arg3 = (int) SWIG_AsInt(obj2);
21296 if (PyErr_Occurred()) SWIG_fail;
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21300
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 {
21305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21306 }
21307 return resultobj;
21308 fail:
21309 return NULL;
21310}
21311
21312
21313static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
21314 PyObject *resultobj;
21315 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21316 int result;
21317 PyObject * obj0 = 0 ;
21318 char *kwnames[] = {
21319 (char *) "self", NULL
21320 };
21321
21322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21325 {
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21328
21329 wxPyEndAllowThreads(__tstate);
21330 if (PyErr_Occurred()) SWIG_fail;
21331 }
21332 resultobj = SWIG_FromInt((int)result);
21333 return resultobj;
21334 fail:
21335 return NULL;
21336}
21337
21338
21339static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21340 PyObject *resultobj;
21341 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21342 wxRect result;
21343 PyObject * obj0 = 0 ;
21344 char *kwnames[] = {
21345 (char *) "self", NULL
21346 };
21347
21348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21351 {
21352 PyThreadState* __tstate = wxPyBeginAllowThreads();
21353 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21354
21355 wxPyEndAllowThreads(__tstate);
21356 if (PyErr_Occurred()) SWIG_fail;
21357 }
21358 {
21359 wxRect * resultptr;
21360 resultptr = new wxRect((wxRect &) result);
21361 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21362 }
21363 return resultobj;
21364 fail:
21365 return NULL;
21366}
21367
21368
21369static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21370 PyObject *resultobj;
21371 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21372 long arg2 ;
21373 int arg3 = (int) 0 ;
21374 wxListItem *result;
21375 PyObject * obj0 = 0 ;
21376 PyObject * obj1 = 0 ;
21377 PyObject * obj2 = 0 ;
21378 char *kwnames[] = {
21379 (char *) "self",(char *) "itemId",(char *) "col", NULL
21380 };
21381
21382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21385 arg2 = (long) SWIG_AsLong(obj1);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 if (obj2) {
21388 arg3 = (int) SWIG_AsInt(obj2);
21389 if (PyErr_Occurred()) SWIG_fail;
21390 }
21391 {
21392 PyThreadState* __tstate = wxPyBeginAllowThreads();
21393 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21394
21395 wxPyEndAllowThreads(__tstate);
21396 if (PyErr_Occurred()) SWIG_fail;
21397 }
21398 {
21399 resultobj = wxPyMake_wxObject(result);
21400 }
21401 return resultobj;
21402 fail:
21403 return NULL;
21404}
21405
21406
21407static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21408 PyObject *resultobj;
21409 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21410 wxListItem *arg2 = 0 ;
21411 bool result;
21412 PyObject * obj0 = 0 ;
21413 PyObject * obj1 = 0 ;
21414 char *kwnames[] = {
21415 (char *) "self",(char *) "info", NULL
21416 };
21417
21418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21422 SWIG_POINTER_EXCEPTION | 0)) == -1)
21423 SWIG_fail;
21424 if (arg2 == NULL) {
21425 PyErr_SetString(PyExc_TypeError,"null reference");
21426 SWIG_fail;
21427 }
21428 {
21429 PyThreadState* __tstate = wxPyBeginAllowThreads();
21430 result = (bool)(arg1)->SetItem(*arg2);
21431
21432 wxPyEndAllowThreads(__tstate);
21433 if (PyErr_Occurred()) SWIG_fail;
21434 }
21435 {
21436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21437 }
21438 return resultobj;
21439 fail:
21440 return NULL;
21441}
21442
21443
21444static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21445 PyObject *resultobj;
21446 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21447 long arg2 ;
21448 int arg3 ;
21449 wxString *arg4 = 0 ;
21450 int arg5 = (int) -1 ;
21451 long result;
21452 bool temp4 = False ;
21453 PyObject * obj0 = 0 ;
21454 PyObject * obj1 = 0 ;
21455 PyObject * obj2 = 0 ;
21456 PyObject * obj3 = 0 ;
21457 PyObject * obj4 = 0 ;
21458 char *kwnames[] = {
21459 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21460 };
21461
21462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21465 arg2 = (long) SWIG_AsLong(obj1);
21466 if (PyErr_Occurred()) SWIG_fail;
21467 arg3 = (int) SWIG_AsInt(obj2);
21468 if (PyErr_Occurred()) SWIG_fail;
21469 {
21470 arg4 = wxString_in_helper(obj3);
21471 if (arg4 == NULL) SWIG_fail;
21472 temp4 = True;
21473 }
21474 if (obj4) {
21475 arg5 = (int) SWIG_AsInt(obj4);
21476 if (PyErr_Occurred()) SWIG_fail;
21477 }
21478 {
21479 PyThreadState* __tstate = wxPyBeginAllowThreads();
21480 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21481
21482 wxPyEndAllowThreads(__tstate);
21483 if (PyErr_Occurred()) SWIG_fail;
21484 }
21485 resultobj = SWIG_FromLong((long)result);
21486 {
21487 if (temp4)
21488 delete arg4;
21489 }
21490 return resultobj;
21491 fail:
21492 {
21493 if (temp4)
21494 delete arg4;
21495 }
21496 return NULL;
21497}
21498
21499
21500static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21501 PyObject *resultobj;
21502 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21503 long arg2 ;
21504 long arg3 ;
21505 int result;
21506 PyObject * obj0 = 0 ;
21507 PyObject * obj1 = 0 ;
21508 PyObject * obj2 = 0 ;
21509 char *kwnames[] = {
21510 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21511 };
21512
21513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21516 arg2 = (long) SWIG_AsLong(obj1);
21517 if (PyErr_Occurred()) SWIG_fail;
21518 arg3 = (long) SWIG_AsLong(obj2);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 {
21521 PyThreadState* __tstate = wxPyBeginAllowThreads();
21522 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21523
21524 wxPyEndAllowThreads(__tstate);
21525 if (PyErr_Occurred()) SWIG_fail;
21526 }
21527 resultobj = SWIG_FromInt((int)result);
21528 return resultobj;
21529 fail:
21530 return NULL;
21531}
21532
21533
21534static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21535 PyObject *resultobj;
21536 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21537 long arg2 ;
21538 long arg3 ;
21539 long arg4 ;
21540 bool result;
21541 PyObject * obj0 = 0 ;
21542 PyObject * obj1 = 0 ;
21543 PyObject * obj2 = 0 ;
21544 PyObject * obj3 = 0 ;
21545 char *kwnames[] = {
21546 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21547 };
21548
21549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21552 arg2 = (long) SWIG_AsLong(obj1);
21553 if (PyErr_Occurred()) SWIG_fail;
21554 arg3 = (long) SWIG_AsLong(obj2);
21555 if (PyErr_Occurred()) SWIG_fail;
21556 arg4 = (long) SWIG_AsLong(obj3);
21557 if (PyErr_Occurred()) SWIG_fail;
21558 {
21559 PyThreadState* __tstate = wxPyBeginAllowThreads();
21560 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
21561
21562 wxPyEndAllowThreads(__tstate);
21563 if (PyErr_Occurred()) SWIG_fail;
21564 }
21565 {
21566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21567 }
21568 return resultobj;
21569 fail:
21570 return NULL;
21571}
21572
21573
21574static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
21575 PyObject *resultobj;
21576 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21577 long arg2 ;
21578 int arg3 ;
21579 int arg4 ;
21580 bool result;
21581 PyObject * obj0 = 0 ;
21582 PyObject * obj1 = 0 ;
21583 PyObject * obj2 = 0 ;
21584 PyObject * obj3 = 0 ;
21585 char *kwnames[] = {
21586 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21587 };
21588
21589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21592 arg2 = (long) SWIG_AsLong(obj1);
21593 if (PyErr_Occurred()) SWIG_fail;
21594 arg3 = (int) SWIG_AsInt(obj2);
21595 if (PyErr_Occurred()) SWIG_fail;
21596 arg4 = (int) SWIG_AsInt(obj3);
21597 if (PyErr_Occurred()) SWIG_fail;
21598 {
21599 PyThreadState* __tstate = wxPyBeginAllowThreads();
21600 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21601
21602 wxPyEndAllowThreads(__tstate);
21603 if (PyErr_Occurred()) SWIG_fail;
21604 }
21605 {
21606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21607 }
21608 return resultobj;
21609 fail:
21610 return NULL;
21611}
21612
21613
21614static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21615 PyObject *resultobj;
21616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21617 long arg2 ;
21618 wxString result;
21619 PyObject * obj0 = 0 ;
21620 PyObject * obj1 = 0 ;
21621 char *kwnames[] = {
21622 (char *) "self",(char *) "item", NULL
21623 };
21624
21625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21628 arg2 = (long) SWIG_AsLong(obj1);
21629 if (PyErr_Occurred()) SWIG_fail;
21630 {
21631 PyThreadState* __tstate = wxPyBeginAllowThreads();
21632 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21633
21634 wxPyEndAllowThreads(__tstate);
21635 if (PyErr_Occurred()) SWIG_fail;
21636 }
21637 {
21638#if wxUSE_UNICODE
21639 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21640#else
21641 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21642#endif
21643 }
21644 return resultobj;
21645 fail:
21646 return NULL;
21647}
21648
21649
21650static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21651 PyObject *resultobj;
21652 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21653 long arg2 ;
21654 wxString *arg3 = 0 ;
21655 bool temp3 = False ;
21656 PyObject * obj0 = 0 ;
21657 PyObject * obj1 = 0 ;
21658 PyObject * obj2 = 0 ;
21659 char *kwnames[] = {
21660 (char *) "self",(char *) "item",(char *) "str", NULL
21661 };
21662
21663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
21664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21666 arg2 = (long) SWIG_AsLong(obj1);
21667 if (PyErr_Occurred()) SWIG_fail;
21668 {
21669 arg3 = wxString_in_helper(obj2);
21670 if (arg3 == NULL) SWIG_fail;
21671 temp3 = True;
21672 }
21673 {
21674 PyThreadState* __tstate = wxPyBeginAllowThreads();
21675 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
21676
21677 wxPyEndAllowThreads(__tstate);
21678 if (PyErr_Occurred()) SWIG_fail;
21679 }
21680 Py_INCREF(Py_None); resultobj = Py_None;
21681 {
21682 if (temp3)
21683 delete arg3;
21684 }
21685 return resultobj;
21686 fail:
21687 {
21688 if (temp3)
21689 delete arg3;
21690 }
21691 return NULL;
21692}
21693
21694
21695static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21696 PyObject *resultobj;
21697 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21698 long arg2 ;
21699 long result;
21700 PyObject * obj0 = 0 ;
21701 PyObject * obj1 = 0 ;
21702 char *kwnames[] = {
21703 (char *) "self",(char *) "item", NULL
21704 };
21705
21706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
21707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21709 arg2 = (long) SWIG_AsLong(obj1);
21710 if (PyErr_Occurred()) SWIG_fail;
21711 {
21712 PyThreadState* __tstate = wxPyBeginAllowThreads();
21713 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
21714
21715 wxPyEndAllowThreads(__tstate);
21716 if (PyErr_Occurred()) SWIG_fail;
21717 }
21718 resultobj = SWIG_FromLong((long)result);
21719 return resultobj;
21720 fail:
21721 return NULL;
21722}
21723
21724
21725static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21726 PyObject *resultobj;
21727 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21728 long arg2 ;
21729 long arg3 ;
21730 bool result;
21731 PyObject * obj0 = 0 ;
21732 PyObject * obj1 = 0 ;
21733 PyObject * obj2 = 0 ;
21734 char *kwnames[] = {
21735 (char *) "self",(char *) "item",(char *) "data", NULL
21736 };
21737
21738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21741 arg2 = (long) SWIG_AsLong(obj1);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 arg3 = (long) SWIG_AsLong(obj2);
21744 if (PyErr_Occurred()) SWIG_fail;
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 result = (bool)(arg1)->SetItemData(arg2,arg3);
21748
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 {
21753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21754 }
21755 return resultobj;
21756 fail:
21757 return NULL;
21758}
21759
21760
21761static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21762 PyObject *resultobj;
21763 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21764 long arg2 ;
21765 wxPoint result;
21766 PyObject * obj0 = 0 ;
21767 PyObject * obj1 = 0 ;
21768 char *kwnames[] = {
21769 (char *) "self",(char *) "item", NULL
21770 };
21771
21772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
21773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21775 arg2 = (long) SWIG_AsLong(obj1);
21776 if (PyErr_Occurred()) SWIG_fail;
21777 {
21778 PyThreadState* __tstate = wxPyBeginAllowThreads();
21779 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
21780
21781 wxPyEndAllowThreads(__tstate);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 }
21784 {
21785 wxPoint * resultptr;
21786 resultptr = new wxPoint((wxPoint &) result);
21787 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21788 }
21789 return resultobj;
21790 fail:
21791 return NULL;
21792}
21793
21794
21795static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21796 PyObject *resultobj;
21797 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21798 long arg2 ;
21799 int arg3 = (int) wxLIST_RECT_BOUNDS ;
21800 wxRect result;
21801 PyObject * obj0 = 0 ;
21802 PyObject * obj1 = 0 ;
21803 PyObject * obj2 = 0 ;
21804 char *kwnames[] = {
21805 (char *) "self",(char *) "item",(char *) "code", NULL
21806 };
21807
21808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
21809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21811 arg2 = (long) SWIG_AsLong(obj1);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 if (obj2) {
21814 arg3 = (int) SWIG_AsInt(obj2);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 {
21818 PyThreadState* __tstate = wxPyBeginAllowThreads();
21819 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
21820
21821 wxPyEndAllowThreads(__tstate);
21822 if (PyErr_Occurred()) SWIG_fail;
21823 }
21824 {
21825 wxRect * resultptr;
21826 resultptr = new wxRect((wxRect &) result);
21827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21828 }
21829 return resultobj;
21830 fail:
21831 return NULL;
21832}
21833
21834
21835static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21836 PyObject *resultobj;
21837 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21838 long arg2 ;
21839 wxPoint *arg3 = 0 ;
21840 bool result;
21841 wxPoint temp3 ;
21842 PyObject * obj0 = 0 ;
21843 PyObject * obj1 = 0 ;
21844 PyObject * obj2 = 0 ;
21845 char *kwnames[] = {
21846 (char *) "self",(char *) "item",(char *) "pos", NULL
21847 };
21848
21849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
21850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21852 arg2 = (long) SWIG_AsLong(obj1);
21853 if (PyErr_Occurred()) SWIG_fail;
21854 {
21855 arg3 = &temp3;
21856 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21857 }
21858 {
21859 PyThreadState* __tstate = wxPyBeginAllowThreads();
21860 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
21861
21862 wxPyEndAllowThreads(__tstate);
21863 if (PyErr_Occurred()) SWIG_fail;
21864 }
21865 {
21866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21867 }
21868 return resultobj;
21869 fail:
21870 return NULL;
21871}
21872
21873
21874static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21875 PyObject *resultobj;
21876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21877 int result;
21878 PyObject * obj0 = 0 ;
21879 char *kwnames[] = {
21880 (char *) "self", NULL
21881 };
21882
21883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
21884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
21888 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
21889
21890 wxPyEndAllowThreads(__tstate);
21891 if (PyErr_Occurred()) SWIG_fail;
21892 }
21893 resultobj = SWIG_FromInt((int)result);
21894 return resultobj;
21895 fail:
21896 return NULL;
21897}
21898
21899
21900static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21901 PyObject *resultobj;
21902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21903 int result;
21904 PyObject * obj0 = 0 ;
21905 char *kwnames[] = {
21906 (char *) "self", NULL
21907 };
21908
21909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
21910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
21915
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 resultobj = SWIG_FromInt((int)result);
21920 return resultobj;
21921 fail:
21922 return NULL;
21923}
21924
21925
21926static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21929 wxSize result;
21930 PyObject * obj0 = 0 ;
21931 char *kwnames[] = {
21932 (char *) "self", NULL
21933 };
21934
21935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
21936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
21941
21942 wxPyEndAllowThreads(__tstate);
21943 if (PyErr_Occurred()) SWIG_fail;
21944 }
21945 {
21946 wxSize * resultptr;
21947 resultptr = new wxSize((wxSize &) result);
21948 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
21949 }
21950 return resultobj;
21951 fail:
21952 return NULL;
21953}
21954
21955
21956static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
21957 PyObject *resultobj;
21958 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21959 int arg2 ;
21960 bool arg3 = (bool) False ;
21961 PyObject * obj0 = 0 ;
21962 PyObject * obj1 = 0 ;
21963 PyObject * obj2 = 0 ;
21964 char *kwnames[] = {
21965 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
21966 };
21967
21968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
21969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21971 arg2 = (int) SWIG_AsInt(obj1);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 if (obj2) {
21974 arg3 = (bool) SWIG_AsBool(obj2);
21975 if (PyErr_Occurred()) SWIG_fail;
21976 }
21977 {
21978 PyThreadState* __tstate = wxPyBeginAllowThreads();
21979 (arg1)->SetItemSpacing(arg2,arg3);
21980
21981 wxPyEndAllowThreads(__tstate);
21982 if (PyErr_Occurred()) SWIG_fail;
21983 }
21984 Py_INCREF(Py_None); resultobj = Py_None;
21985 return resultobj;
21986 fail:
21987 return NULL;
21988}
21989
21990
21991static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21992 PyObject *resultobj;
21993 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21994 int result;
21995 PyObject * obj0 = 0 ;
21996 char *kwnames[] = {
21997 (char *) "self", NULL
21998 };
21999
22000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22003 {
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
22005 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22006
22007 wxPyEndAllowThreads(__tstate);
22008 if (PyErr_Occurred()) SWIG_fail;
22009 }
22010 resultobj = SWIG_FromInt((int)result);
22011 return resultobj;
22012 fail:
22013 return NULL;
22014}
22015
22016
22017static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22018 PyObject *resultobj;
22019 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22020 wxColour result;
22021 PyObject * obj0 = 0 ;
22022 char *kwnames[] = {
22023 (char *) "self", NULL
22024 };
22025
22026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22029 {
22030 PyThreadState* __tstate = wxPyBeginAllowThreads();
22031 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22032
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 {
22037 wxColour * resultptr;
22038 resultptr = new wxColour((wxColour &) result);
22039 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22040 }
22041 return resultobj;
22042 fail:
22043 return NULL;
22044}
22045
22046
22047static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22048 PyObject *resultobj;
22049 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22050 wxColour *arg2 = 0 ;
22051 wxColour temp2 ;
22052 PyObject * obj0 = 0 ;
22053 PyObject * obj1 = 0 ;
22054 char *kwnames[] = {
22055 (char *) "self",(char *) "col", NULL
22056 };
22057
22058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22061 {
22062 arg2 = &temp2;
22063 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22064 }
22065 {
22066 PyThreadState* __tstate = wxPyBeginAllowThreads();
22067 (arg1)->SetTextColour((wxColour const &)*arg2);
22068
22069 wxPyEndAllowThreads(__tstate);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 }
22072 Py_INCREF(Py_None); resultobj = Py_None;
22073 return resultobj;
22074 fail:
22075 return NULL;
22076}
22077
22078
22079static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22080 PyObject *resultobj;
22081 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22082 long result;
22083 PyObject * obj0 = 0 ;
22084 char *kwnames[] = {
22085 (char *) "self", NULL
22086 };
22087
22088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22094
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 resultobj = SWIG_FromLong((long)result);
22099 return resultobj;
22100 fail:
22101 return NULL;
22102}
22103
22104
22105static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22106 PyObject *resultobj;
22107 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22108 long arg2 ;
22109 bool arg3 = (bool) True ;
22110 PyObject * obj0 = 0 ;
22111 PyObject * obj1 = 0 ;
22112 PyObject * obj2 = 0 ;
22113 char *kwnames[] = {
22114 (char *) "self",(char *) "style",(char *) "add", NULL
22115 };
22116
22117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22120 arg2 = (long) SWIG_AsLong(obj1);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 if (obj2) {
22123 arg3 = (bool) SWIG_AsBool(obj2);
22124 if (PyErr_Occurred()) SWIG_fail;
22125 }
22126 {
22127 PyThreadState* __tstate = wxPyBeginAllowThreads();
22128 (arg1)->SetSingleStyle(arg2,arg3);
22129
22130 wxPyEndAllowThreads(__tstate);
22131 if (PyErr_Occurred()) SWIG_fail;
22132 }
22133 Py_INCREF(Py_None); resultobj = Py_None;
22134 return resultobj;
22135 fail:
22136 return NULL;
22137}
22138
22139
22140static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22141 PyObject *resultobj;
22142 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22143 long arg2 ;
22144 PyObject * obj0 = 0 ;
22145 PyObject * obj1 = 0 ;
22146 char *kwnames[] = {
22147 (char *) "self",(char *) "style", NULL
22148 };
22149
22150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22153 arg2 = (long) SWIG_AsLong(obj1);
22154 if (PyErr_Occurred()) SWIG_fail;
22155 {
22156 PyThreadState* __tstate = wxPyBeginAllowThreads();
22157 (arg1)->SetWindowStyleFlag(arg2);
22158
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 Py_INCREF(Py_None); resultobj = Py_None;
22163 return resultobj;
22164 fail:
22165 return NULL;
22166}
22167
22168
22169static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj;
22171 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22172 long arg2 ;
22173 int arg3 = (int) wxLIST_NEXT_ALL ;
22174 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22175 long result;
22176 PyObject * obj0 = 0 ;
22177 PyObject * obj1 = 0 ;
22178 PyObject * obj2 = 0 ;
22179 PyObject * obj3 = 0 ;
22180 char *kwnames[] = {
22181 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22182 };
22183
22184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22187 arg2 = (long) SWIG_AsLong(obj1);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 if (obj2) {
22190 arg3 = (int) SWIG_AsInt(obj2);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 if (obj3) {
22194 arg4 = (int) SWIG_AsInt(obj3);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 {
22198 PyThreadState* __tstate = wxPyBeginAllowThreads();
22199 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22200
22201 wxPyEndAllowThreads(__tstate);
22202 if (PyErr_Occurred()) SWIG_fail;
22203 }
22204 resultobj = SWIG_FromLong((long)result);
22205 return resultobj;
22206 fail:
22207 return NULL;
22208}
22209
22210
22211static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22212 PyObject *resultobj;
22213 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22214 int arg2 ;
22215 wxImageList *result;
22216 PyObject * obj0 = 0 ;
22217 PyObject * obj1 = 0 ;
22218 char *kwnames[] = {
22219 (char *) "self",(char *) "which", NULL
22220 };
22221
22222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22225 arg2 = (int) SWIG_AsInt(obj1);
22226 if (PyErr_Occurred()) SWIG_fail;
22227 {
22228 PyThreadState* __tstate = wxPyBeginAllowThreads();
22229 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22230
22231 wxPyEndAllowThreads(__tstate);
22232 if (PyErr_Occurred()) SWIG_fail;
22233 }
22234 {
22235 resultobj = wxPyMake_wxObject(result);
22236 }
22237 return resultobj;
22238 fail:
22239 return NULL;
22240}
22241
22242
22243static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22244 PyObject *resultobj;
22245 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22246 wxImageList *arg2 = (wxImageList *) 0 ;
22247 int arg3 ;
22248 PyObject * obj0 = 0 ;
22249 PyObject * obj1 = 0 ;
22250 PyObject * obj2 = 0 ;
22251 char *kwnames[] = {
22252 (char *) "self",(char *) "imageList",(char *) "which", NULL
22253 };
22254
22255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22258 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22260 arg3 = (int) SWIG_AsInt(obj2);
22261 if (PyErr_Occurred()) SWIG_fail;
22262 {
22263 PyThreadState* __tstate = wxPyBeginAllowThreads();
22264 (arg1)->SetImageList(arg2,arg3);
22265
22266 wxPyEndAllowThreads(__tstate);
22267 if (PyErr_Occurred()) SWIG_fail;
22268 }
22269 Py_INCREF(Py_None); resultobj = Py_None;
22270 return resultobj;
22271 fail:
22272 return NULL;
22273}
22274
22275
22276static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22277 PyObject *resultobj;
22278 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22279 wxImageList *arg2 = (wxImageList *) 0 ;
22280 int arg3 ;
22281 PyObject * obj0 = 0 ;
22282 PyObject * obj1 = 0 ;
22283 PyObject * obj2 = 0 ;
22284 char *kwnames[] = {
22285 (char *) "self",(char *) "imageList",(char *) "which", NULL
22286 };
22287
22288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22292 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22293 arg3 = (int) SWIG_AsInt(obj2);
22294 if (PyErr_Occurred()) SWIG_fail;
22295 {
22296 PyThreadState* __tstate = wxPyBeginAllowThreads();
22297 (arg1)->AssignImageList(arg2,arg3);
22298
22299 wxPyEndAllowThreads(__tstate);
22300 if (PyErr_Occurred()) SWIG_fail;
22301 }
22302 Py_INCREF(Py_None); resultobj = Py_None;
22303 return resultobj;
22304 fail:
22305 return NULL;
22306}
22307
22308
22309static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
22310 PyObject *resultobj;
22311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22312 bool result;
22313 PyObject * obj0 = 0 ;
22314 char *kwnames[] = {
22315 (char *) "self", NULL
22316 };
22317
22318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22321 {
22322 PyThreadState* __tstate = wxPyBeginAllowThreads();
22323 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22324
22325 wxPyEndAllowThreads(__tstate);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 }
22328 {
22329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22330 }
22331 return resultobj;
22332 fail:
22333 return NULL;
22334}
22335
22336
22337static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
22338 PyObject *resultobj;
22339 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22340 bool result;
22341 PyObject * obj0 = 0 ;
22342 char *kwnames[] = {
22343 (char *) "self", NULL
22344 };
22345
22346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22349 {
22350 PyThreadState* __tstate = wxPyBeginAllowThreads();
22351 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22352
22353 wxPyEndAllowThreads(__tstate);
22354 if (PyErr_Occurred()) SWIG_fail;
22355 }
22356 {
22357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22358 }
22359 return resultobj;
22360 fail:
22361 return NULL;
22362}
22363
22364
22365static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22366 PyObject *resultobj;
22367 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22368 long arg2 ;
22369 PyObject * obj0 = 0 ;
22370 PyObject * obj1 = 0 ;
22371 char *kwnames[] = {
22372 (char *) "self",(char *) "item", NULL
22373 };
22374
22375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22378 arg2 = (long) SWIG_AsLong(obj1);
22379 if (PyErr_Occurred()) SWIG_fail;
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 (arg1)->RefreshItem(arg2);
22383
22384 wxPyEndAllowThreads(__tstate);
22385 if (PyErr_Occurred()) SWIG_fail;
22386 }
22387 Py_INCREF(Py_None); resultobj = Py_None;
22388 return resultobj;
22389 fail:
22390 return NULL;
22391}
22392
22393
22394static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22395 PyObject *resultobj;
22396 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22397 long arg2 ;
22398 long arg3 ;
22399 PyObject * obj0 = 0 ;
22400 PyObject * obj1 = 0 ;
22401 PyObject * obj2 = 0 ;
22402 char *kwnames[] = {
22403 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22404 };
22405
22406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22409 arg2 = (long) SWIG_AsLong(obj1);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 arg3 = (long) SWIG_AsLong(obj2);
22412 if (PyErr_Occurred()) SWIG_fail;
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 (arg1)->RefreshItems(arg2,arg3);
22416
22417 wxPyEndAllowThreads(__tstate);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 Py_INCREF(Py_None); resultobj = Py_None;
22421 return resultobj;
22422 fail:
22423 return NULL;
22424}
22425
22426
22427static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
22428 PyObject *resultobj;
22429 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22430 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22431 bool result;
22432 PyObject * obj0 = 0 ;
22433 PyObject * obj1 = 0 ;
22434 char *kwnames[] = {
22435 (char *) "self",(char *) "flag", NULL
22436 };
22437
22438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22441 if (obj1) {
22442 arg2 = (int) SWIG_AsInt(obj1);
22443 if (PyErr_Occurred()) SWIG_fail;
22444 }
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 result = (bool)(arg1)->Arrange(arg2);
22448
22449 wxPyEndAllowThreads(__tstate);
22450 if (PyErr_Occurred()) SWIG_fail;
22451 }
22452 {
22453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22454 }
22455 return resultobj;
22456 fail:
22457 return NULL;
22458}
22459
22460
22461static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22462 PyObject *resultobj;
22463 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22464 long arg2 ;
22465 bool result;
22466 PyObject * obj0 = 0 ;
22467 PyObject * obj1 = 0 ;
22468 char *kwnames[] = {
22469 (char *) "self",(char *) "item", NULL
22470 };
22471
22472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22475 arg2 = (long) SWIG_AsLong(obj1);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 {
22478 PyThreadState* __tstate = wxPyBeginAllowThreads();
22479 result = (bool)(arg1)->DeleteItem(arg2);
22480
22481 wxPyEndAllowThreads(__tstate);
22482 if (PyErr_Occurred()) SWIG_fail;
22483 }
22484 {
22485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22486 }
22487 return resultobj;
22488 fail:
22489 return NULL;
22490}
22491
22492
22493static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22494 PyObject *resultobj;
22495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22496 bool result;
22497 PyObject * obj0 = 0 ;
22498 char *kwnames[] = {
22499 (char *) "self", NULL
22500 };
22501
22502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22505 {
22506 PyThreadState* __tstate = wxPyBeginAllowThreads();
22507 result = (bool)(arg1)->DeleteAllItems();
22508
22509 wxPyEndAllowThreads(__tstate);
22510 if (PyErr_Occurred()) SWIG_fail;
22511 }
22512 {
22513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22514 }
22515 return resultobj;
22516 fail:
22517 return NULL;
22518}
22519
22520
22521static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22522 PyObject *resultobj;
22523 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22524 int arg2 ;
22525 bool result;
22526 PyObject * obj0 = 0 ;
22527 PyObject * obj1 = 0 ;
22528 char *kwnames[] = {
22529 (char *) "self",(char *) "col", NULL
22530 };
22531
22532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22535 arg2 = (int) SWIG_AsInt(obj1);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 result = (bool)(arg1)->DeleteColumn(arg2);
22540
22541 wxPyEndAllowThreads(__tstate);
22542 if (PyErr_Occurred()) SWIG_fail;
22543 }
22544 {
22545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22546 }
22547 return resultobj;
22548 fail:
22549 return NULL;
22550}
22551
22552
22553static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
22554 PyObject *resultobj;
22555 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22556 bool result;
22557 PyObject * obj0 = 0 ;
22558 char *kwnames[] = {
22559 (char *) "self", NULL
22560 };
22561
22562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22565 {
22566 PyThreadState* __tstate = wxPyBeginAllowThreads();
22567 result = (bool)(arg1)->DeleteAllColumns();
22568
22569 wxPyEndAllowThreads(__tstate);
22570 if (PyErr_Occurred()) SWIG_fail;
22571 }
22572 {
22573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22574 }
22575 return resultobj;
22576 fail:
22577 return NULL;
22578}
22579
22580
22581static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
22582 PyObject *resultobj;
22583 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22584 PyObject * obj0 = 0 ;
22585 char *kwnames[] = {
22586 (char *) "self", NULL
22587 };
22588
22589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 (arg1)->ClearAll();
22595
22596 wxPyEndAllowThreads(__tstate);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 Py_INCREF(Py_None); resultobj = Py_None;
22600 return resultobj;
22601 fail:
22602 return NULL;
22603}
22604
22605
22606static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22607 PyObject *resultobj;
22608 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22609 long arg2 ;
22610 PyObject * obj0 = 0 ;
22611 PyObject * obj1 = 0 ;
22612 char *kwnames[] = {
22613 (char *) "self",(char *) "item", NULL
22614 };
22615
22616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22619 arg2 = (long) SWIG_AsLong(obj1);
22620 if (PyErr_Occurred()) SWIG_fail;
22621 {
22622 PyThreadState* __tstate = wxPyBeginAllowThreads();
22623 (arg1)->EditLabel(arg2);
22624
22625 wxPyEndAllowThreads(__tstate);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 Py_INCREF(Py_None); resultobj = Py_None;
22629 return resultobj;
22630 fail:
22631 return NULL;
22632}
22633
22634
22635static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
22636 PyObject *resultobj;
22637 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22638 long arg2 ;
22639 bool result;
22640 PyObject * obj0 = 0 ;
22641 PyObject * obj1 = 0 ;
22642 char *kwnames[] = {
22643 (char *) "self",(char *) "item", NULL
22644 };
22645
22646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22649 arg2 = (long) SWIG_AsLong(obj1);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 {
22652 PyThreadState* __tstate = wxPyBeginAllowThreads();
22653 result = (bool)(arg1)->EnsureVisible(arg2);
22654
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 {
22659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22660 }
22661 return resultobj;
22662 fail:
22663 return NULL;
22664}
22665
22666
22667static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22668 PyObject *resultobj;
22669 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22670 long arg2 ;
22671 wxString *arg3 = 0 ;
22672 bool arg4 = (bool) False ;
22673 long result;
22674 bool temp3 = False ;
22675 PyObject * obj0 = 0 ;
22676 PyObject * obj1 = 0 ;
22677 PyObject * obj2 = 0 ;
22678 PyObject * obj3 = 0 ;
22679 char *kwnames[] = {
22680 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
22681 };
22682
22683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22686 arg2 = (long) SWIG_AsLong(obj1);
22687 if (PyErr_Occurred()) SWIG_fail;
22688 {
22689 arg3 = wxString_in_helper(obj2);
22690 if (arg3 == NULL) SWIG_fail;
22691 temp3 = True;
22692 }
22693 if (obj3) {
22694 arg4 = (bool) SWIG_AsBool(obj3);
22695 if (PyErr_Occurred()) SWIG_fail;
22696 }
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
22700
22701 wxPyEndAllowThreads(__tstate);
22702 if (PyErr_Occurred()) SWIG_fail;
22703 }
22704 resultobj = SWIG_FromLong((long)result);
22705 {
22706 if (temp3)
22707 delete arg3;
22708 }
22709 return resultobj;
22710 fail:
22711 {
22712 if (temp3)
22713 delete arg3;
22714 }
22715 return NULL;
22716}
22717
22718
22719static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22720 PyObject *resultobj;
22721 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22722 long arg2 ;
22723 long arg3 ;
22724 long result;
22725 PyObject * obj0 = 0 ;
22726 PyObject * obj1 = 0 ;
22727 PyObject * obj2 = 0 ;
22728 char *kwnames[] = {
22729 (char *) "self",(char *) "start",(char *) "data", NULL
22730 };
22731
22732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22735 arg2 = (long) SWIG_AsLong(obj1);
22736 if (PyErr_Occurred()) SWIG_fail;
22737 arg3 = (long) SWIG_AsLong(obj2);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 {
22740 PyThreadState* __tstate = wxPyBeginAllowThreads();
22741 result = (long)(arg1)->FindItem(arg2,arg3);
22742
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 resultobj = SWIG_FromLong((long)result);
22747 return resultobj;
22748 fail:
22749 return NULL;
22750}
22751
22752
22753static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
22754 PyObject *resultobj;
22755 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22756 long arg2 ;
22757 wxPoint *arg3 = 0 ;
22758 int arg4 ;
22759 long result;
22760 wxPoint temp3 ;
22761 PyObject * obj0 = 0 ;
22762 PyObject * obj1 = 0 ;
22763 PyObject * obj2 = 0 ;
22764 PyObject * obj3 = 0 ;
22765 char *kwnames[] = {
22766 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
22767 };
22768
22769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22772 arg2 = (long) SWIG_AsLong(obj1);
22773 if (PyErr_Occurred()) SWIG_fail;
22774 {
22775 arg3 = &temp3;
22776 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22777 }
22778 arg4 = (int) SWIG_AsInt(obj3);
22779 if (PyErr_Occurred()) SWIG_fail;
22780 {
22781 PyThreadState* __tstate = wxPyBeginAllowThreads();
22782 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
22783
22784 wxPyEndAllowThreads(__tstate);
22785 if (PyErr_Occurred()) SWIG_fail;
22786 }
22787 resultobj = SWIG_FromLong((long)result);
22788 return resultobj;
22789 fail:
22790 return NULL;
22791}
22792
22793
22794static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
22795 PyObject *resultobj;
22796 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22797 wxPoint *arg2 = 0 ;
22798 int *arg3 = 0 ;
22799 long result;
22800 wxPoint temp2 ;
22801 int temp3 ;
22802 PyObject * obj0 = 0 ;
22803 PyObject * obj1 = 0 ;
22804 char *kwnames[] = {
22805 (char *) "self",(char *) "point", NULL
22806 };
22807
22808 arg3 = &temp3;
22809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
22810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22812 {
22813 arg2 = &temp2;
22814 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22815 }
22816 {
22817 PyThreadState* __tstate = wxPyBeginAllowThreads();
22818 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
22819
22820 wxPyEndAllowThreads(__tstate);
22821 if (PyErr_Occurred()) SWIG_fail;
22822 }
22823 resultobj = SWIG_FromLong((long)result);
22824 {
22825 PyObject *o = PyInt_FromLong((long) (*arg3));
22826 resultobj = t_output_helper(resultobj,o);
22827 }
22828 return resultobj;
22829 fail:
22830 return NULL;
22831}
22832
22833
22834static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22835 PyObject *resultobj;
22836 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22837 wxListItem *arg2 = 0 ;
22838 long result;
22839 PyObject * obj0 = 0 ;
22840 PyObject * obj1 = 0 ;
22841 char *kwnames[] = {
22842 (char *) "self",(char *) "info", NULL
22843 };
22844
22845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
22846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22849 SWIG_POINTER_EXCEPTION | 0)) == -1)
22850 SWIG_fail;
22851 if (arg2 == NULL) {
22852 PyErr_SetString(PyExc_TypeError,"null reference");
22853 SWIG_fail;
22854 }
22855 {
22856 PyThreadState* __tstate = wxPyBeginAllowThreads();
22857 result = (long)(arg1)->InsertItem(*arg2);
22858
22859 wxPyEndAllowThreads(__tstate);
22860 if (PyErr_Occurred()) SWIG_fail;
22861 }
22862 resultobj = SWIG_FromLong((long)result);
22863 return resultobj;
22864 fail:
22865 return NULL;
22866}
22867
22868
22869static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22870 PyObject *resultobj;
22871 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22872 long arg2 ;
22873 wxString *arg3 = 0 ;
22874 long result;
22875 bool temp3 = False ;
22876 PyObject * obj0 = 0 ;
22877 PyObject * obj1 = 0 ;
22878 PyObject * obj2 = 0 ;
22879 char *kwnames[] = {
22880 (char *) "self",(char *) "index",(char *) "label", NULL
22881 };
22882
22883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22886 arg2 = (long) SWIG_AsLong(obj1);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 {
22889 arg3 = wxString_in_helper(obj2);
22890 if (arg3 == NULL) SWIG_fail;
22891 temp3 = True;
22892 }
22893 {
22894 PyThreadState* __tstate = wxPyBeginAllowThreads();
22895 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
22896
22897 wxPyEndAllowThreads(__tstate);
22898 if (PyErr_Occurred()) SWIG_fail;
22899 }
22900 resultobj = SWIG_FromLong((long)result);
22901 {
22902 if (temp3)
22903 delete arg3;
22904 }
22905 return resultobj;
22906 fail:
22907 {
22908 if (temp3)
22909 delete arg3;
22910 }
22911 return NULL;
22912}
22913
22914
22915static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22916 PyObject *resultobj;
22917 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22918 long arg2 ;
22919 int arg3 ;
22920 long result;
22921 PyObject * obj0 = 0 ;
22922 PyObject * obj1 = 0 ;
22923 PyObject * obj2 = 0 ;
22924 char *kwnames[] = {
22925 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
22926 };
22927
22928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22931 arg2 = (long) SWIG_AsLong(obj1);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 arg3 = (int) SWIG_AsInt(obj2);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 {
22936 PyThreadState* __tstate = wxPyBeginAllowThreads();
22937 result = (long)(arg1)->InsertItem(arg2,arg3);
22938
22939 wxPyEndAllowThreads(__tstate);
22940 if (PyErr_Occurred()) SWIG_fail;
22941 }
22942 resultobj = SWIG_FromLong((long)result);
22943 return resultobj;
22944 fail:
22945 return NULL;
22946}
22947
22948
22949static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22950 PyObject *resultobj;
22951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22952 long arg2 ;
22953 wxString *arg3 = 0 ;
22954 int arg4 ;
22955 long result;
22956 bool temp3 = False ;
22957 PyObject * obj0 = 0 ;
22958 PyObject * obj1 = 0 ;
22959 PyObject * obj2 = 0 ;
22960 PyObject * obj3 = 0 ;
22961 char *kwnames[] = {
22962 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
22963 };
22964
22965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22968 arg2 = (long) SWIG_AsLong(obj1);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 {
22971 arg3 = wxString_in_helper(obj2);
22972 if (arg3 == NULL) SWIG_fail;
22973 temp3 = True;
22974 }
22975 arg4 = (int) SWIG_AsInt(obj3);
22976 if (PyErr_Occurred()) SWIG_fail;
22977 {
22978 PyThreadState* __tstate = wxPyBeginAllowThreads();
22979 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
22980
22981 wxPyEndAllowThreads(__tstate);
22982 if (PyErr_Occurred()) SWIG_fail;
22983 }
22984 resultobj = SWIG_FromLong((long)result);
22985 {
22986 if (temp3)
22987 delete arg3;
22988 }
22989 return resultobj;
22990 fail:
22991 {
22992 if (temp3)
22993 delete arg3;
22994 }
22995 return NULL;
22996}
22997
22998
22999static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23000 PyObject *resultobj;
23001 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23002 long arg2 ;
23003 wxListItem *arg3 = 0 ;
23004 long result;
23005 PyObject * obj0 = 0 ;
23006 PyObject * obj1 = 0 ;
23007 PyObject * obj2 = 0 ;
23008 char *kwnames[] = {
23009 (char *) "self",(char *) "col",(char *) "info", NULL
23010 };
23011
23012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23015 arg2 = (long) SWIG_AsLong(obj1);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23018 SWIG_POINTER_EXCEPTION | 0)) == -1)
23019 SWIG_fail;
23020 if (arg3 == NULL) {
23021 PyErr_SetString(PyExc_TypeError,"null reference");
23022 SWIG_fail;
23023 }
23024 {
23025 PyThreadState* __tstate = wxPyBeginAllowThreads();
23026 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23027
23028 wxPyEndAllowThreads(__tstate);
23029 if (PyErr_Occurred()) SWIG_fail;
23030 }
23031 resultobj = SWIG_FromLong((long)result);
23032 return resultobj;
23033 fail:
23034 return NULL;
23035}
23036
23037
23038static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
23039 PyObject *resultobj;
23040 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23041 long arg2 ;
23042 wxString *arg3 = 0 ;
23043 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23044 int arg5 = (int) -1 ;
23045 long result;
23046 bool temp3 = False ;
23047 PyObject * obj0 = 0 ;
23048 PyObject * obj1 = 0 ;
23049 PyObject * obj2 = 0 ;
23050 PyObject * obj3 = 0 ;
23051 PyObject * obj4 = 0 ;
23052 char *kwnames[] = {
23053 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23054 };
23055
23056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23059 arg2 = (long) SWIG_AsLong(obj1);
23060 if (PyErr_Occurred()) SWIG_fail;
23061 {
23062 arg3 = wxString_in_helper(obj2);
23063 if (arg3 == NULL) SWIG_fail;
23064 temp3 = True;
23065 }
23066 if (obj3) {
23067 arg4 = (int) SWIG_AsInt(obj3);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
23070 if (obj4) {
23071 arg5 = (int) SWIG_AsInt(obj4);
23072 if (PyErr_Occurred()) SWIG_fail;
23073 }
23074 {
23075 PyThreadState* __tstate = wxPyBeginAllowThreads();
23076 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23077
23078 wxPyEndAllowThreads(__tstate);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 }
23081 resultobj = SWIG_FromLong((long)result);
23082 {
23083 if (temp3)
23084 delete arg3;
23085 }
23086 return resultobj;
23087 fail:
23088 {
23089 if (temp3)
23090 delete arg3;
23091 }
23092 return NULL;
23093}
23094
23095
23096static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23097 PyObject *resultobj;
23098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23099 long arg2 ;
23100 PyObject * obj0 = 0 ;
23101 PyObject * obj1 = 0 ;
23102 char *kwnames[] = {
23103 (char *) "self",(char *) "count", NULL
23104 };
23105
23106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23109 arg2 = (long) SWIG_AsLong(obj1);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 (arg1)->SetItemCount(arg2);
23114
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 Py_INCREF(Py_None); resultobj = Py_None;
23119 return resultobj;
23120 fail:
23121 return NULL;
23122}
23123
23124
23125static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
23126 PyObject *resultobj;
23127 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23128 int arg2 ;
23129 int arg3 ;
23130 bool result;
23131 PyObject * obj0 = 0 ;
23132 PyObject * obj1 = 0 ;
23133 PyObject * obj2 = 0 ;
23134 char *kwnames[] = {
23135 (char *) "self",(char *) "dx",(char *) "dy", NULL
23136 };
23137
23138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23141 arg2 = (int) SWIG_AsInt(obj1);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 arg3 = (int) SWIG_AsInt(obj2);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 {
23146 PyThreadState* __tstate = wxPyBeginAllowThreads();
23147 result = (bool)(arg1)->ScrollList(arg2,arg3);
23148
23149 wxPyEndAllowThreads(__tstate);
23150 if (PyErr_Occurred()) SWIG_fail;
23151 }
23152 {
23153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23154 }
23155 return resultobj;
23156 fail:
23157 return NULL;
23158}
23159
23160
23161static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23162 PyObject *resultobj;
23163 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23164 long arg2 ;
23165 wxColour *arg3 = 0 ;
23166 wxColour temp3 ;
23167 PyObject * obj0 = 0 ;
23168 PyObject * obj1 = 0 ;
23169 PyObject * obj2 = 0 ;
23170 char *kwnames[] = {
23171 (char *) "self",(char *) "item",(char *) "col", NULL
23172 };
23173
23174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23177 arg2 = (long) SWIG_AsLong(obj1);
23178 if (PyErr_Occurred()) SWIG_fail;
23179 {
23180 arg3 = &temp3;
23181 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23182 }
23183 {
23184 PyThreadState* __tstate = wxPyBeginAllowThreads();
23185 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23186
23187 wxPyEndAllowThreads(__tstate);
23188 if (PyErr_Occurred()) SWIG_fail;
23189 }
23190 Py_INCREF(Py_None); resultobj = Py_None;
23191 return resultobj;
23192 fail:
23193 return NULL;
23194}
23195
23196
23197static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23198 PyObject *resultobj;
23199 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23200 long arg2 ;
23201 wxColour result;
23202 PyObject * obj0 = 0 ;
23203 PyObject * obj1 = 0 ;
23204 char *kwnames[] = {
23205 (char *) "self",(char *) "item", NULL
23206 };
23207
23208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23211 arg2 = (long) SWIG_AsLong(obj1);
23212 if (PyErr_Occurred()) SWIG_fail;
23213 {
23214 PyThreadState* __tstate = wxPyBeginAllowThreads();
23215 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23216
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
23220 {
23221 wxColour * resultptr;
23222 resultptr = new wxColour((wxColour &) result);
23223 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23224 }
23225 return resultobj;
23226 fail:
23227 return NULL;
23228}
23229
23230
23231static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23232 PyObject *resultobj;
23233 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23234 long arg2 ;
23235 wxColour *arg3 = 0 ;
23236 wxColour temp3 ;
23237 PyObject * obj0 = 0 ;
23238 PyObject * obj1 = 0 ;
23239 PyObject * obj2 = 0 ;
23240 char *kwnames[] = {
23241 (char *) "self",(char *) "item",(char *) "col", NULL
23242 };
23243
23244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23247 arg2 = (long) SWIG_AsLong(obj1);
23248 if (PyErr_Occurred()) SWIG_fail;
23249 {
23250 arg3 = &temp3;
23251 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23252 }
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23256
23257 wxPyEndAllowThreads(__tstate);
23258 if (PyErr_Occurred()) SWIG_fail;
23259 }
23260 Py_INCREF(Py_None); resultobj = Py_None;
23261 return resultobj;
23262 fail:
23263 return NULL;
23264}
23265
23266
23267static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23268 PyObject *resultobj;
23269 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23270 long arg2 ;
23271 wxColour result;
23272 PyObject * obj0 = 0 ;
23273 PyObject * obj1 = 0 ;
23274 char *kwnames[] = {
23275 (char *) "self",(char *) "item", NULL
23276 };
23277
23278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23281 arg2 = (long) SWIG_AsLong(obj1);
23282 if (PyErr_Occurred()) SWIG_fail;
23283 {
23284 PyThreadState* __tstate = wxPyBeginAllowThreads();
23285 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23286
23287 wxPyEndAllowThreads(__tstate);
23288 if (PyErr_Occurred()) SWIG_fail;
23289 }
23290 {
23291 wxColour * resultptr;
23292 resultptr = new wxColour((wxColour &) result);
23293 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23294 }
23295 return resultobj;
23296 fail:
23297 return NULL;
23298}
23299
23300
23301static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
23302 PyObject *resultobj;
23303 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23304 PyObject *arg2 = (PyObject *) 0 ;
23305 bool result;
23306 PyObject * obj0 = 0 ;
23307 PyObject * obj1 = 0 ;
23308 char *kwnames[] = {
23309 (char *) "self",(char *) "func", NULL
23310 };
23311
23312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23315 arg2 = obj1;
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23319
23320 wxPyEndAllowThreads(__tstate);
23321 if (PyErr_Occurred()) SWIG_fail;
23322 }
23323 {
23324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23325 }
23326 return resultobj;
23327 fail:
23328 return NULL;
23329}
23330
23331
23332static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
23333 PyObject *resultobj;
23334 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23335 wxWindow *result;
23336 PyObject * obj0 = 0 ;
23337 char *kwnames[] = {
23338 (char *) "self", NULL
23339 };
23340
23341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23347
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 {
23352 resultobj = wxPyMake_wxObject(result);
23353 }
23354 return resultobj;
23355 fail:
23356 return NULL;
23357}
23358
23359
23360static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
23361 PyObject *resultobj;
23362 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23363 wxVisualAttributes result;
23364 PyObject * obj0 = 0 ;
23365 char *kwnames[] = {
23366 (char *) "variant", NULL
23367 };
23368
23369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23370 if (obj0) {
23371 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 {
23375 PyThreadState* __tstate = wxPyBeginAllowThreads();
23376 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23377
23378 wxPyEndAllowThreads(__tstate);
23379 if (PyErr_Occurred()) SWIG_fail;
23380 }
23381 {
23382 wxVisualAttributes * resultptr;
23383 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23384 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23385 }
23386 return resultobj;
23387 fail:
23388 return NULL;
23389}
23390
23391
23392static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
23393 PyObject *obj;
23394 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23395 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23396 Py_INCREF(obj);
23397 return Py_BuildValue((char *)"");
23398}
23399static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23400 PyObject *resultobj;
23401 wxWindow *arg1 = (wxWindow *) 0 ;
23402 int arg2 = (int) -1 ;
23403 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23404 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23405 wxSize const &arg4_defvalue = wxDefaultSize ;
23406 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23407 long arg5 = (long) wxLC_REPORT ;
23408 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23409 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23410 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23411 wxString *arg7 = (wxString *) &arg7_defvalue ;
23412 wxListView *result;
23413 wxPoint temp3 ;
23414 wxSize temp4 ;
23415 bool temp7 = False ;
23416 PyObject * obj0 = 0 ;
23417 PyObject * obj1 = 0 ;
23418 PyObject * obj2 = 0 ;
23419 PyObject * obj3 = 0 ;
23420 PyObject * obj4 = 0 ;
23421 PyObject * obj5 = 0 ;
23422 PyObject * obj6 = 0 ;
23423 char *kwnames[] = {
23424 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23425 };
23426
23427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23430 if (obj1) {
23431 arg2 = (int) SWIG_AsInt(obj1);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 }
23434 if (obj2) {
23435 {
23436 arg3 = &temp3;
23437 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23438 }
23439 }
23440 if (obj3) {
23441 {
23442 arg4 = &temp4;
23443 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23444 }
23445 }
23446 if (obj4) {
23447 arg5 = (long) SWIG_AsLong(obj4);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 }
23450 if (obj5) {
23451 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23452 SWIG_POINTER_EXCEPTION | 0)) == -1)
23453 SWIG_fail;
23454 if (arg6 == NULL) {
23455 PyErr_SetString(PyExc_TypeError,"null reference");
23456 SWIG_fail;
23457 }
23458 }
23459 if (obj6) {
23460 {
23461 arg7 = wxString_in_helper(obj6);
23462 if (arg7 == NULL) SWIG_fail;
23463 temp7 = True;
23464 }
23465 }
23466 {
23467 PyThreadState* __tstate = wxPyBeginAllowThreads();
23468 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23469
23470 wxPyEndAllowThreads(__tstate);
23471 if (PyErr_Occurred()) SWIG_fail;
23472 }
23473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23474 {
23475 if (temp7)
23476 delete arg7;
23477 }
23478 return resultobj;
23479 fail:
23480 {
23481 if (temp7)
23482 delete arg7;
23483 }
23484 return NULL;
23485}
23486
23487
23488static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23489 PyObject *resultobj;
23490 wxListView *result;
23491 char *kwnames[] = {
23492 NULL
23493 };
23494
23495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23496 {
23497 PyThreadState* __tstate = wxPyBeginAllowThreads();
23498 result = (wxListView *)new wxListView();
23499
23500 wxPyEndAllowThreads(__tstate);
23501 if (PyErr_Occurred()) SWIG_fail;
23502 }
23503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23504 return resultobj;
23505 fail:
23506 return NULL;
23507}
23508
23509
23510static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23511 PyObject *resultobj;
23512 wxListView *arg1 = (wxListView *) 0 ;
23513 wxWindow *arg2 = (wxWindow *) 0 ;
23514 int arg3 = (int) -1 ;
23515 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23516 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23517 wxSize const &arg5_defvalue = wxDefaultSize ;
23518 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23519 long arg6 = (long) wxLC_REPORT ;
23520 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23521 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23522 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23523 wxString *arg8 = (wxString *) &arg8_defvalue ;
23524 bool result;
23525 wxPoint temp4 ;
23526 wxSize temp5 ;
23527 bool temp8 = False ;
23528 PyObject * obj0 = 0 ;
23529 PyObject * obj1 = 0 ;
23530 PyObject * obj2 = 0 ;
23531 PyObject * obj3 = 0 ;
23532 PyObject * obj4 = 0 ;
23533 PyObject * obj5 = 0 ;
23534 PyObject * obj6 = 0 ;
23535 PyObject * obj7 = 0 ;
23536 char *kwnames[] = {
23537 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23538 };
23539
23540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23543 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23545 if (obj2) {
23546 arg3 = (int) SWIG_AsInt(obj2);
23547 if (PyErr_Occurred()) SWIG_fail;
23548 }
23549 if (obj3) {
23550 {
23551 arg4 = &temp4;
23552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23553 }
23554 }
23555 if (obj4) {
23556 {
23557 arg5 = &temp5;
23558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23559 }
23560 }
23561 if (obj5) {
23562 arg6 = (long) SWIG_AsLong(obj5);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 if (obj6) {
23566 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23567 SWIG_POINTER_EXCEPTION | 0)) == -1)
23568 SWIG_fail;
23569 if (arg7 == NULL) {
23570 PyErr_SetString(PyExc_TypeError,"null reference");
23571 SWIG_fail;
23572 }
23573 }
23574 if (obj7) {
23575 {
23576 arg8 = wxString_in_helper(obj7);
23577 if (arg8 == NULL) SWIG_fail;
23578 temp8 = True;
23579 }
23580 }
23581 {
23582 PyThreadState* __tstate = wxPyBeginAllowThreads();
23583 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23584
23585 wxPyEndAllowThreads(__tstate);
23586 if (PyErr_Occurred()) SWIG_fail;
23587 }
23588 {
23589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23590 }
23591 {
23592 if (temp8)
23593 delete arg8;
23594 }
23595 return resultobj;
23596 fail:
23597 {
23598 if (temp8)
23599 delete arg8;
23600 }
23601 return NULL;
23602}
23603
23604
23605static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
23606 PyObject *resultobj;
23607 wxListView *arg1 = (wxListView *) 0 ;
23608 long arg2 ;
23609 bool arg3 = (bool) True ;
23610 PyObject * obj0 = 0 ;
23611 PyObject * obj1 = 0 ;
23612 PyObject * obj2 = 0 ;
23613 char *kwnames[] = {
23614 (char *) "self",(char *) "n",(char *) "on", NULL
23615 };
23616
23617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23620 arg2 = (long) SWIG_AsLong(obj1);
23621 if (PyErr_Occurred()) SWIG_fail;
23622 if (obj2) {
23623 arg3 = (bool) SWIG_AsBool(obj2);
23624 if (PyErr_Occurred()) SWIG_fail;
23625 }
23626 {
23627 PyThreadState* __tstate = wxPyBeginAllowThreads();
23628 (arg1)->Select(arg2,arg3);
23629
23630 wxPyEndAllowThreads(__tstate);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 }
23633 Py_INCREF(Py_None); resultobj = Py_None;
23634 return resultobj;
23635 fail:
23636 return NULL;
23637}
23638
23639
23640static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
23641 PyObject *resultobj;
23642 wxListView *arg1 = (wxListView *) 0 ;
23643 long arg2 ;
23644 PyObject * obj0 = 0 ;
23645 PyObject * obj1 = 0 ;
23646 char *kwnames[] = {
23647 (char *) "self",(char *) "index", NULL
23648 };
23649
23650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23653 arg2 = (long) SWIG_AsLong(obj1);
23654 if (PyErr_Occurred()) SWIG_fail;
23655 {
23656 PyThreadState* __tstate = wxPyBeginAllowThreads();
23657 (arg1)->Focus(arg2);
23658
23659 wxPyEndAllowThreads(__tstate);
23660 if (PyErr_Occurred()) SWIG_fail;
23661 }
23662 Py_INCREF(Py_None); resultobj = Py_None;
23663 return resultobj;
23664 fail:
23665 return NULL;
23666}
23667
23668
23669static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23670 PyObject *resultobj;
23671 wxListView *arg1 = (wxListView *) 0 ;
23672 long result;
23673 PyObject * obj0 = 0 ;
23674 char *kwnames[] = {
23675 (char *) "self", NULL
23676 };
23677
23678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
23679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 result = (long)((wxListView const *)arg1)->GetFocusedItem();
23684
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 resultobj = SWIG_FromLong((long)result);
23689 return resultobj;
23690 fail:
23691 return NULL;
23692}
23693
23694
23695static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23696 PyObject *resultobj;
23697 wxListView *arg1 = (wxListView *) 0 ;
23698 long arg2 ;
23699 long result;
23700 PyObject * obj0 = 0 ;
23701 PyObject * obj1 = 0 ;
23702 char *kwnames[] = {
23703 (char *) "self",(char *) "item", NULL
23704 };
23705
23706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
23707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23709 arg2 = (long) SWIG_AsLong(obj1);
23710 if (PyErr_Occurred()) SWIG_fail;
23711 {
23712 PyThreadState* __tstate = wxPyBeginAllowThreads();
23713 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
23714
23715 wxPyEndAllowThreads(__tstate);
23716 if (PyErr_Occurred()) SWIG_fail;
23717 }
23718 resultobj = SWIG_FromLong((long)result);
23719 return resultobj;
23720 fail:
23721 return NULL;
23722}
23723
23724
23725static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23726 PyObject *resultobj;
23727 wxListView *arg1 = (wxListView *) 0 ;
23728 long result;
23729 PyObject * obj0 = 0 ;
23730 char *kwnames[] = {
23731 (char *) "self", NULL
23732 };
23733
23734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
23735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23737 {
23738 PyThreadState* __tstate = wxPyBeginAllowThreads();
23739 result = (long)((wxListView const *)arg1)->GetFirstSelected();
23740
23741 wxPyEndAllowThreads(__tstate);
23742 if (PyErr_Occurred()) SWIG_fail;
23743 }
23744 resultobj = SWIG_FromLong((long)result);
23745 return resultobj;
23746 fail:
23747 return NULL;
23748}
23749
23750
23751static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23752 PyObject *resultobj;
23753 wxListView *arg1 = (wxListView *) 0 ;
23754 long arg2 ;
23755 bool result;
23756 PyObject * obj0 = 0 ;
23757 PyObject * obj1 = 0 ;
23758 char *kwnames[] = {
23759 (char *) "self",(char *) "index", NULL
23760 };
23761
23762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
23763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23765 arg2 = (long) SWIG_AsLong(obj1);
23766 if (PyErr_Occurred()) SWIG_fail;
23767 {
23768 PyThreadState* __tstate = wxPyBeginAllowThreads();
23769 result = (bool)(arg1)->IsSelected(arg2);
23770
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 {
23775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23776 }
23777 return resultobj;
23778 fail:
23779 return NULL;
23780}
23781
23782
23783static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23784 PyObject *resultobj;
23785 wxListView *arg1 = (wxListView *) 0 ;
23786 int arg2 ;
23787 int arg3 ;
23788 PyObject * obj0 = 0 ;
23789 PyObject * obj1 = 0 ;
23790 PyObject * obj2 = 0 ;
23791 char *kwnames[] = {
23792 (char *) "self",(char *) "col",(char *) "image", NULL
23793 };
23794
23795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
23796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23798 arg2 = (int) SWIG_AsInt(obj1);
23799 if (PyErr_Occurred()) SWIG_fail;
23800 arg3 = (int) SWIG_AsInt(obj2);
23801 if (PyErr_Occurred()) SWIG_fail;
23802 {
23803 PyThreadState* __tstate = wxPyBeginAllowThreads();
23804 (arg1)->SetColumnImage(arg2,arg3);
23805
23806 wxPyEndAllowThreads(__tstate);
23807 if (PyErr_Occurred()) SWIG_fail;
23808 }
23809 Py_INCREF(Py_None); resultobj = Py_None;
23810 return resultobj;
23811 fail:
23812 return NULL;
23813}
23814
23815
23816static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23817 PyObject *resultobj;
23818 wxListView *arg1 = (wxListView *) 0 ;
23819 int arg2 ;
23820 PyObject * obj0 = 0 ;
23821 PyObject * obj1 = 0 ;
23822 char *kwnames[] = {
23823 (char *) "self",(char *) "col", NULL
23824 };
23825
23826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
23827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23829 arg2 = (int) SWIG_AsInt(obj1);
23830 if (PyErr_Occurred()) SWIG_fail;
23831 {
23832 PyThreadState* __tstate = wxPyBeginAllowThreads();
23833 (arg1)->ClearColumnImage(arg2);
23834
23835 wxPyEndAllowThreads(__tstate);
23836 if (PyErr_Occurred()) SWIG_fail;
23837 }
23838 Py_INCREF(Py_None); resultobj = Py_None;
23839 return resultobj;
23840 fail:
23841 return NULL;
23842}
23843
23844
23845static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
23846 PyObject *obj;
23847 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23848 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
23849 Py_INCREF(obj);
23850 return Py_BuildValue((char *)"");
23851}
23852static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
23853 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
23854 return 1;
23855}
23856
23857
23858static PyObject *_wrap_TreeCtrlNameStr_get() {
23859 PyObject *pyobj;
23860
23861 {
23862#if wxUSE_UNICODE
23863 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23864#else
23865 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
23866#endif
23867 }
23868 return pyobj;
23869}
23870
23871
23872static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23873 PyObject *resultobj;
23874 wxTreeItemId *result;
23875 char *kwnames[] = {
23876 NULL
23877 };
23878
23879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
23880 {
23881 PyThreadState* __tstate = wxPyBeginAllowThreads();
23882 result = (wxTreeItemId *)new wxTreeItemId();
23883
23884 wxPyEndAllowThreads(__tstate);
23885 if (PyErr_Occurred()) SWIG_fail;
23886 }
23887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
23888 return resultobj;
23889 fail:
23890 return NULL;
23891}
23892
23893
23894static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
23895 PyObject *resultobj;
23896 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23897 PyObject * obj0 = 0 ;
23898 char *kwnames[] = {
23899 (char *) "self", NULL
23900 };
23901
23902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
23903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23905 {
23906 PyThreadState* __tstate = wxPyBeginAllowThreads();
23907 delete arg1;
23908
23909 wxPyEndAllowThreads(__tstate);
23910 if (PyErr_Occurred()) SWIG_fail;
23911 }
23912 Py_INCREF(Py_None); resultobj = Py_None;
23913 return resultobj;
23914 fail:
23915 return NULL;
23916}
23917
23918
23919static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
23920 PyObject *resultobj;
23921 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23922 bool result;
23923 PyObject * obj0 = 0 ;
23924 char *kwnames[] = {
23925 (char *) "self", NULL
23926 };
23927
23928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
23929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23931 {
23932 PyThreadState* __tstate = wxPyBeginAllowThreads();
23933 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
23934
23935 wxPyEndAllowThreads(__tstate);
23936 if (PyErr_Occurred()) SWIG_fail;
23937 }
23938 {
23939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23940 }
23941 return resultobj;
23942 fail:
23943 return NULL;
23944}
23945
23946
23947static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23948 PyObject *resultobj;
23949 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23950 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23951 bool result;
23952 PyObject * obj0 = 0 ;
23953 PyObject * obj1 = 0 ;
23954 char *kwnames[] = {
23955 (char *) "self",(char *) "other", NULL
23956 };
23957
23958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
23959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23961 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23963 {
23964 PyThreadState* __tstate = wxPyBeginAllowThreads();
23965 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
23966
23967 wxPyEndAllowThreads(__tstate);
23968 if (PyErr_Occurred()) SWIG_fail;
23969 }
23970 {
23971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23972 }
23973 return resultobj;
23974 fail:
23975 return NULL;
23976}
23977
23978
23979static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23980 PyObject *resultobj;
23981 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
23982 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
23983 bool result;
23984 PyObject * obj0 = 0 ;
23985 PyObject * obj1 = 0 ;
23986 char *kwnames[] = {
23987 (char *) "self",(char *) "other", NULL
23988 };
23989
23990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
23991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
23992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23993 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
23994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23995 {
23996 PyThreadState* __tstate = wxPyBeginAllowThreads();
23997 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
23998
23999 wxPyEndAllowThreads(__tstate);
24000 if (PyErr_Occurred()) SWIG_fail;
24001 }
24002 {
24003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24004 }
24005 return resultobj;
24006 fail:
24007 return NULL;
24008}
24009
24010
24011static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj;
24013 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24014 void *arg2 = (void *) 0 ;
24015 PyObject * obj0 = 0 ;
24016 PyObject * obj1 = 0 ;
24017 char *kwnames[] = {
24018 (char *) "self",(char *) "m_pItem", NULL
24019 };
24020
24021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24024 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24025 if (arg1) (arg1)->m_pItem = arg2;
24026
24027 Py_INCREF(Py_None); resultobj = Py_None;
24028 return resultobj;
24029 fail:
24030 return NULL;
24031}
24032
24033
24034static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
24035 PyObject *resultobj;
24036 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24037 void *result;
24038 PyObject * obj0 = 0 ;
24039 char *kwnames[] = {
24040 (char *) "self", NULL
24041 };
24042
24043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24046 result = (void *) ((arg1)->m_pItem);
24047
24048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24049 return resultobj;
24050 fail:
24051 return NULL;
24052}
24053
24054
24055static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
24056 PyObject *obj;
24057 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24058 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24059 Py_INCREF(obj);
24060 return Py_BuildValue((char *)"");
24061}
24062static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24063 PyObject *resultobj;
24064 PyObject *arg1 = (PyObject *) NULL ;
24065 wxPyTreeItemData *result;
24066 PyObject * obj0 = 0 ;
24067 char *kwnames[] = {
24068 (char *) "obj", NULL
24069 };
24070
24071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24072 if (obj0) {
24073 arg1 = obj0;
24074 }
24075 {
24076 PyThreadState* __tstate = wxPyBeginAllowThreads();
24077 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24078
24079 wxPyEndAllowThreads(__tstate);
24080 if (PyErr_Occurred()) SWIG_fail;
24081 }
24082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24083 return resultobj;
24084 fail:
24085 return NULL;
24086}
24087
24088
24089static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24090 PyObject *resultobj;
24091 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24092 PyObject *result;
24093 PyObject * obj0 = 0 ;
24094 char *kwnames[] = {
24095 (char *) "self", NULL
24096 };
24097
24098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24101 {
24102 PyThreadState* __tstate = wxPyBeginAllowThreads();
24103 result = (PyObject *)(arg1)->GetData();
24104
24105 wxPyEndAllowThreads(__tstate);
24106 if (PyErr_Occurred()) SWIG_fail;
24107 }
24108 resultobj = result;
24109 return resultobj;
24110 fail:
24111 return NULL;
24112}
24113
24114
24115static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24116 PyObject *resultobj;
24117 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24118 PyObject *arg2 = (PyObject *) 0 ;
24119 PyObject * obj0 = 0 ;
24120 PyObject * obj1 = 0 ;
24121 char *kwnames[] = {
24122 (char *) "self",(char *) "obj", NULL
24123 };
24124
24125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24128 arg2 = obj1;
24129 {
24130 PyThreadState* __tstate = wxPyBeginAllowThreads();
24131 (arg1)->SetData(arg2);
24132
24133 wxPyEndAllowThreads(__tstate);
24134 if (PyErr_Occurred()) SWIG_fail;
24135 }
24136 Py_INCREF(Py_None); resultobj = Py_None;
24137 return resultobj;
24138 fail:
24139 return NULL;
24140}
24141
24142
24143static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24144 PyObject *resultobj;
24145 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24146 wxTreeItemId *result;
24147 PyObject * obj0 = 0 ;
24148 char *kwnames[] = {
24149 (char *) "self", NULL
24150 };
24151
24152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24155 {
24156 PyThreadState* __tstate = wxPyBeginAllowThreads();
24157 {
24158 wxTreeItemId const &_result_ref = (arg1)->GetId();
24159 result = (wxTreeItemId *) &_result_ref;
24160 }
24161
24162 wxPyEndAllowThreads(__tstate);
24163 if (PyErr_Occurred()) SWIG_fail;
24164 }
24165 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24166 return resultobj;
24167 fail:
24168 return NULL;
24169}
24170
24171
24172static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24173 PyObject *resultobj;
24174 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24175 wxTreeItemId *arg2 = 0 ;
24176 PyObject * obj0 = 0 ;
24177 PyObject * obj1 = 0 ;
24178 char *kwnames[] = {
24179 (char *) "self",(char *) "id", NULL
24180 };
24181
24182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24186 SWIG_POINTER_EXCEPTION | 0)) == -1)
24187 SWIG_fail;
24188 if (arg2 == NULL) {
24189 PyErr_SetString(PyExc_TypeError,"null reference");
24190 SWIG_fail;
24191 }
24192 {
24193 PyThreadState* __tstate = wxPyBeginAllowThreads();
24194 (arg1)->SetId((wxTreeItemId const &)*arg2);
24195
24196 wxPyEndAllowThreads(__tstate);
24197 if (PyErr_Occurred()) SWIG_fail;
24198 }
24199 Py_INCREF(Py_None); resultobj = Py_None;
24200 return resultobj;
24201 fail:
24202 return NULL;
24203}
24204
24205
24206static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
24207 PyObject *resultobj;
24208 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24209 PyObject * obj0 = 0 ;
24210 char *kwnames[] = {
24211 (char *) "self", NULL
24212 };
24213
24214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24217 {
24218 PyThreadState* __tstate = wxPyBeginAllowThreads();
24219 wxPyTreeItemData_Destroy(arg1);
24220
24221 wxPyEndAllowThreads(__tstate);
24222 if (PyErr_Occurred()) SWIG_fail;
24223 }
24224 Py_INCREF(Py_None); resultobj = Py_None;
24225 return resultobj;
24226 fail:
24227 return NULL;
24228}
24229
24230
24231static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
24232 PyObject *obj;
24233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24234 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24235 Py_INCREF(obj);
24236 return Py_BuildValue((char *)"");
24237}
24238static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24239 PyObject *resultobj;
24240 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24241 int arg2 = (int) 0 ;
24242 wxTreeEvent *result;
24243 PyObject * obj0 = 0 ;
24244 PyObject * obj1 = 0 ;
24245 char *kwnames[] = {
24246 (char *) "commandType",(char *) "id", NULL
24247 };
24248
24249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24250 if (obj0) {
24251 arg1 = (wxEventType) SWIG_AsInt(obj0);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 if (obj1) {
24255 arg2 = (int) SWIG_AsInt(obj1);
24256 if (PyErr_Occurred()) SWIG_fail;
24257 }
24258 {
24259 PyThreadState* __tstate = wxPyBeginAllowThreads();
24260 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24261
24262 wxPyEndAllowThreads(__tstate);
24263 if (PyErr_Occurred()) SWIG_fail;
24264 }
24265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24266 return resultobj;
24267 fail:
24268 return NULL;
24269}
24270
24271
24272static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24273 PyObject *resultobj;
24274 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24275 wxTreeItemId result;
24276 PyObject * obj0 = 0 ;
24277 char *kwnames[] = {
24278 (char *) "self", NULL
24279 };
24280
24281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24284 {
24285 PyThreadState* __tstate = wxPyBeginAllowThreads();
24286 result = ((wxTreeEvent const *)arg1)->GetItem();
24287
24288 wxPyEndAllowThreads(__tstate);
24289 if (PyErr_Occurred()) SWIG_fail;
24290 }
24291 {
24292 wxTreeItemId * resultptr;
24293 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24294 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24295 }
24296 return resultobj;
24297 fail:
24298 return NULL;
24299}
24300
24301
24302static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24303 PyObject *resultobj;
24304 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24305 wxTreeItemId *arg2 = 0 ;
24306 PyObject * obj0 = 0 ;
24307 PyObject * obj1 = 0 ;
24308 char *kwnames[] = {
24309 (char *) "self",(char *) "item", NULL
24310 };
24311
24312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24316 SWIG_POINTER_EXCEPTION | 0)) == -1)
24317 SWIG_fail;
24318 if (arg2 == NULL) {
24319 PyErr_SetString(PyExc_TypeError,"null reference");
24320 SWIG_fail;
24321 }
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24325
24326 wxPyEndAllowThreads(__tstate);
24327 if (PyErr_Occurred()) SWIG_fail;
24328 }
24329 Py_INCREF(Py_None); resultobj = Py_None;
24330 return resultobj;
24331 fail:
24332 return NULL;
24333}
24334
24335
24336static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24337 PyObject *resultobj;
24338 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24339 wxTreeItemId result;
24340 PyObject * obj0 = 0 ;
24341 char *kwnames[] = {
24342 (char *) "self", NULL
24343 };
24344
24345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24348 {
24349 PyThreadState* __tstate = wxPyBeginAllowThreads();
24350 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24351
24352 wxPyEndAllowThreads(__tstate);
24353 if (PyErr_Occurred()) SWIG_fail;
24354 }
24355 {
24356 wxTreeItemId * resultptr;
24357 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24358 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24359 }
24360 return resultobj;
24361 fail:
24362 return NULL;
24363}
24364
24365
24366static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24367 PyObject *resultobj;
24368 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24369 wxTreeItemId *arg2 = 0 ;
24370 PyObject * obj0 = 0 ;
24371 PyObject * obj1 = 0 ;
24372 char *kwnames[] = {
24373 (char *) "self",(char *) "item", NULL
24374 };
24375
24376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24379 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24380 SWIG_POINTER_EXCEPTION | 0)) == -1)
24381 SWIG_fail;
24382 if (arg2 == NULL) {
24383 PyErr_SetString(PyExc_TypeError,"null reference");
24384 SWIG_fail;
24385 }
24386 {
24387 PyThreadState* __tstate = wxPyBeginAllowThreads();
24388 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24389
24390 wxPyEndAllowThreads(__tstate);
24391 if (PyErr_Occurred()) SWIG_fail;
24392 }
24393 Py_INCREF(Py_None); resultobj = Py_None;
24394 return resultobj;
24395 fail:
24396 return NULL;
24397}
24398
24399
24400static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24401 PyObject *resultobj;
24402 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24403 wxPoint result;
24404 PyObject * obj0 = 0 ;
24405 char *kwnames[] = {
24406 (char *) "self", NULL
24407 };
24408
24409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 result = ((wxTreeEvent const *)arg1)->GetPoint();
24415
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 {
24420 wxPoint * resultptr;
24421 resultptr = new wxPoint((wxPoint &) result);
24422 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24423 }
24424 return resultobj;
24425 fail:
24426 return NULL;
24427}
24428
24429
24430static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24431 PyObject *resultobj;
24432 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24433 wxPoint *arg2 = 0 ;
24434 wxPoint temp2 ;
24435 PyObject * obj0 = 0 ;
24436 PyObject * obj1 = 0 ;
24437 char *kwnames[] = {
24438 (char *) "self",(char *) "pt", NULL
24439 };
24440
24441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24444 {
24445 arg2 = &temp2;
24446 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24447 }
24448 {
24449 PyThreadState* __tstate = wxPyBeginAllowThreads();
24450 (arg1)->SetPoint((wxPoint const &)*arg2);
24451
24452 wxPyEndAllowThreads(__tstate);
24453 if (PyErr_Occurred()) SWIG_fail;
24454 }
24455 Py_INCREF(Py_None); resultobj = Py_None;
24456 return resultobj;
24457 fail:
24458 return NULL;
24459}
24460
24461
24462static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24463 PyObject *resultobj;
24464 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24465 wxKeyEvent *result;
24466 PyObject * obj0 = 0 ;
24467 char *kwnames[] = {
24468 (char *) "self", NULL
24469 };
24470
24471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24474 {
24475 PyThreadState* __tstate = wxPyBeginAllowThreads();
24476 {
24477 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24478 result = (wxKeyEvent *) &_result_ref;
24479 }
24480
24481 wxPyEndAllowThreads(__tstate);
24482 if (PyErr_Occurred()) SWIG_fail;
24483 }
24484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24485 return resultobj;
24486 fail:
24487 return NULL;
24488}
24489
24490
24491static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
24492 PyObject *resultobj;
24493 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24494 int result;
24495 PyObject * obj0 = 0 ;
24496 char *kwnames[] = {
24497 (char *) "self", NULL
24498 };
24499
24500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24503 {
24504 PyThreadState* __tstate = wxPyBeginAllowThreads();
24505 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24506
24507 wxPyEndAllowThreads(__tstate);
24508 if (PyErr_Occurred()) SWIG_fail;
24509 }
24510 resultobj = SWIG_FromInt((int)result);
24511 return resultobj;
24512 fail:
24513 return NULL;
24514}
24515
24516
24517static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj;
24519 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24520 wxKeyEvent *arg2 = 0 ;
24521 PyObject * obj0 = 0 ;
24522 PyObject * obj1 = 0 ;
24523 char *kwnames[] = {
24524 (char *) "self",(char *) "evt", NULL
24525 };
24526
24527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24531 SWIG_POINTER_EXCEPTION | 0)) == -1)
24532 SWIG_fail;
24533 if (arg2 == NULL) {
24534 PyErr_SetString(PyExc_TypeError,"null reference");
24535 SWIG_fail;
24536 }
24537 {
24538 PyThreadState* __tstate = wxPyBeginAllowThreads();
24539 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24540
24541 wxPyEndAllowThreads(__tstate);
24542 if (PyErr_Occurred()) SWIG_fail;
24543 }
24544 Py_INCREF(Py_None); resultobj = Py_None;
24545 return resultobj;
24546 fail:
24547 return NULL;
24548}
24549
24550
24551static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24552 PyObject *resultobj;
24553 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24554 wxString *result;
24555 PyObject * obj0 = 0 ;
24556 char *kwnames[] = {
24557 (char *) "self", NULL
24558 };
24559
24560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24563 {
24564 PyThreadState* __tstate = wxPyBeginAllowThreads();
24565 {
24566 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24567 result = (wxString *) &_result_ref;
24568 }
24569
24570 wxPyEndAllowThreads(__tstate);
24571 if (PyErr_Occurred()) SWIG_fail;
24572 }
24573 {
24574#if wxUSE_UNICODE
24575 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24576#else
24577 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24578#endif
24579 }
24580 return resultobj;
24581 fail:
24582 return NULL;
24583}
24584
24585
24586static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24587 PyObject *resultobj;
24588 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24589 wxString *arg2 = 0 ;
24590 bool temp2 = False ;
24591 PyObject * obj0 = 0 ;
24592 PyObject * obj1 = 0 ;
24593 char *kwnames[] = {
24594 (char *) "self",(char *) "label", NULL
24595 };
24596
24597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24600 {
24601 arg2 = wxString_in_helper(obj1);
24602 if (arg2 == NULL) SWIG_fail;
24603 temp2 = True;
24604 }
24605 {
24606 PyThreadState* __tstate = wxPyBeginAllowThreads();
24607 (arg1)->SetLabel((wxString const &)*arg2);
24608
24609 wxPyEndAllowThreads(__tstate);
24610 if (PyErr_Occurred()) SWIG_fail;
24611 }
24612 Py_INCREF(Py_None); resultobj = Py_None;
24613 {
24614 if (temp2)
24615 delete arg2;
24616 }
24617 return resultobj;
24618 fail:
24619 {
24620 if (temp2)
24621 delete arg2;
24622 }
24623 return NULL;
24624}
24625
24626
24627static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
24628 PyObject *resultobj;
24629 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24630 bool result;
24631 PyObject * obj0 = 0 ;
24632 char *kwnames[] = {
24633 (char *) "self", NULL
24634 };
24635
24636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24639 {
24640 PyThreadState* __tstate = wxPyBeginAllowThreads();
24641 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24642
24643 wxPyEndAllowThreads(__tstate);
24644 if (PyErr_Occurred()) SWIG_fail;
24645 }
24646 {
24647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24648 }
24649 return resultobj;
24650 fail:
24651 return NULL;
24652}
24653
24654
24655static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
24656 PyObject *resultobj;
24657 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24658 bool arg2 ;
24659 PyObject * obj0 = 0 ;
24660 PyObject * obj1 = 0 ;
24661 char *kwnames[] = {
24662 (char *) "self",(char *) "editCancelled", NULL
24663 };
24664
24665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
24666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24668 arg2 = (bool) SWIG_AsBool(obj1);
24669 if (PyErr_Occurred()) SWIG_fail;
24670 {
24671 PyThreadState* __tstate = wxPyBeginAllowThreads();
24672 (arg1)->SetEditCanceled(arg2);
24673
24674 wxPyEndAllowThreads(__tstate);
24675 if (PyErr_Occurred()) SWIG_fail;
24676 }
24677 Py_INCREF(Py_None); resultobj = Py_None;
24678 return resultobj;
24679 fail:
24680 return NULL;
24681}
24682
24683
24684static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
24685 PyObject *resultobj;
24686 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24687 wxString *arg2 = 0 ;
24688 bool temp2 = False ;
24689 PyObject * obj0 = 0 ;
24690 PyObject * obj1 = 0 ;
24691 char *kwnames[] = {
24692 (char *) "self",(char *) "toolTip", NULL
24693 };
24694
24695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
24696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24698 {
24699 arg2 = wxString_in_helper(obj1);
24700 if (arg2 == NULL) SWIG_fail;
24701 temp2 = True;
24702 }
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 (arg1)->SetToolTip((wxString const &)*arg2);
24706
24707 wxPyEndAllowThreads(__tstate);
24708 if (PyErr_Occurred()) SWIG_fail;
24709 }
24710 Py_INCREF(Py_None); resultobj = Py_None;
24711 {
24712 if (temp2)
24713 delete arg2;
24714 }
24715 return resultobj;
24716 fail:
24717 {
24718 if (temp2)
24719 delete arg2;
24720 }
24721 return NULL;
24722}
24723
24724
24725static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
24726 PyObject *obj;
24727 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24728 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
24729 Py_INCREF(obj);
24730 return Py_BuildValue((char *)"");
24731}
24732static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24733 PyObject *resultobj;
24734 wxWindow *arg1 = (wxWindow *) 0 ;
24735 int arg2 = (int) -1 ;
24736 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24737 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24738 wxSize const &arg4_defvalue = wxDefaultSize ;
24739 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24740 long arg5 = (long) wxTR_DEFAULT_STYLE ;
24741 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24742 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24743 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
24744 wxString *arg7 = (wxString *) &arg7_defvalue ;
24745 wxPyTreeCtrl *result;
24746 wxPoint temp3 ;
24747 wxSize temp4 ;
24748 bool temp7 = False ;
24749 PyObject * obj0 = 0 ;
24750 PyObject * obj1 = 0 ;
24751 PyObject * obj2 = 0 ;
24752 PyObject * obj3 = 0 ;
24753 PyObject * obj4 = 0 ;
24754 PyObject * obj5 = 0 ;
24755 PyObject * obj6 = 0 ;
24756 char *kwnames[] = {
24757 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24758 };
24759
24760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24763 if (obj1) {
24764 arg2 = (int) SWIG_AsInt(obj1);
24765 if (PyErr_Occurred()) SWIG_fail;
24766 }
24767 if (obj2) {
24768 {
24769 arg3 = &temp3;
24770 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24771 }
24772 }
24773 if (obj3) {
24774 {
24775 arg4 = &temp4;
24776 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24777 }
24778 }
24779 if (obj4) {
24780 arg5 = (long) SWIG_AsLong(obj4);
24781 if (PyErr_Occurred()) SWIG_fail;
24782 }
24783 if (obj5) {
24784 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24785 SWIG_POINTER_EXCEPTION | 0)) == -1)
24786 SWIG_fail;
24787 if (arg6 == NULL) {
24788 PyErr_SetString(PyExc_TypeError,"null reference");
24789 SWIG_fail;
24790 }
24791 }
24792 if (obj6) {
24793 {
24794 arg7 = wxString_in_helper(obj6);
24795 if (arg7 == NULL) SWIG_fail;
24796 temp7 = True;
24797 }
24798 }
24799 {
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24802
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 {
24807 resultobj = wxPyMake_wxObject(result);
24808 }
24809 {
24810 if (temp7)
24811 delete arg7;
24812 }
24813 return resultobj;
24814 fail:
24815 {
24816 if (temp7)
24817 delete arg7;
24818 }
24819 return NULL;
24820}
24821
24822
24823static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24824 PyObject *resultobj;
24825 wxPyTreeCtrl *result;
24826 char *kwnames[] = {
24827 NULL
24828 };
24829
24830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
24831 {
24832 PyThreadState* __tstate = wxPyBeginAllowThreads();
24833 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
24834
24835 wxPyEndAllowThreads(__tstate);
24836 if (PyErr_Occurred()) SWIG_fail;
24837 }
24838 {
24839 resultobj = wxPyMake_wxObject(result);
24840 }
24841 return resultobj;
24842 fail:
24843 return NULL;
24844}
24845
24846
24847static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
24848 PyObject *resultobj;
24849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24850 wxWindow *arg2 = (wxWindow *) 0 ;
24851 int arg3 = (int) -1 ;
24852 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24853 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24854 wxSize const &arg5_defvalue = wxDefaultSize ;
24855 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24856 long arg6 = (long) wxTR_DEFAULT_STYLE ;
24857 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24858 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24859 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
24860 wxString *arg8 = (wxString *) &arg8_defvalue ;
24861 bool result;
24862 wxPoint temp4 ;
24863 wxSize temp5 ;
24864 bool temp8 = False ;
24865 PyObject * obj0 = 0 ;
24866 PyObject * obj1 = 0 ;
24867 PyObject * obj2 = 0 ;
24868 PyObject * obj3 = 0 ;
24869 PyObject * obj4 = 0 ;
24870 PyObject * obj5 = 0 ;
24871 PyObject * obj6 = 0 ;
24872 PyObject * obj7 = 0 ;
24873 char *kwnames[] = {
24874 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24875 };
24876
24877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24882 if (obj2) {
24883 arg3 = (int) SWIG_AsInt(obj2);
24884 if (PyErr_Occurred()) SWIG_fail;
24885 }
24886 if (obj3) {
24887 {
24888 arg4 = &temp4;
24889 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24890 }
24891 }
24892 if (obj4) {
24893 {
24894 arg5 = &temp5;
24895 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24896 }
24897 }
24898 if (obj5) {
24899 arg6 = (long) SWIG_AsLong(obj5);
24900 if (PyErr_Occurred()) SWIG_fail;
24901 }
24902 if (obj6) {
24903 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24904 SWIG_POINTER_EXCEPTION | 0)) == -1)
24905 SWIG_fail;
24906 if (arg7 == NULL) {
24907 PyErr_SetString(PyExc_TypeError,"null reference");
24908 SWIG_fail;
24909 }
24910 }
24911 if (obj7) {
24912 {
24913 arg8 = wxString_in_helper(obj7);
24914 if (arg8 == NULL) SWIG_fail;
24915 temp8 = True;
24916 }
24917 }
24918 {
24919 PyThreadState* __tstate = wxPyBeginAllowThreads();
24920 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24921
24922 wxPyEndAllowThreads(__tstate);
24923 if (PyErr_Occurred()) SWIG_fail;
24924 }
24925 {
24926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24927 }
24928 {
24929 if (temp8)
24930 delete arg8;
24931 }
24932 return resultobj;
24933 fail:
24934 {
24935 if (temp8)
24936 delete arg8;
24937 }
24938 return NULL;
24939}
24940
24941
24942static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24943 PyObject *resultobj;
24944 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24945 PyObject *arg2 = (PyObject *) 0 ;
24946 PyObject *arg3 = (PyObject *) 0 ;
24947 PyObject * obj0 = 0 ;
24948 PyObject * obj1 = 0 ;
24949 PyObject * obj2 = 0 ;
24950 char *kwnames[] = {
24951 (char *) "self",(char *) "self",(char *) "_class", NULL
24952 };
24953
24954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24957 arg2 = obj1;
24958 arg3 = obj2;
24959 {
24960 PyThreadState* __tstate = wxPyBeginAllowThreads();
24961 (arg1)->_setCallbackInfo(arg2,arg3);
24962
24963 wxPyEndAllowThreads(__tstate);
24964 if (PyErr_Occurred()) SWIG_fail;
24965 }
24966 Py_INCREF(Py_None); resultobj = Py_None;
24967 return resultobj;
24968 fail:
24969 return NULL;
24970}
24971
24972
24973static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24974 PyObject *resultobj;
24975 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
24976 size_t result;
24977 PyObject * obj0 = 0 ;
24978 char *kwnames[] = {
24979 (char *) "self", NULL
24980 };
24981
24982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
24983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
24984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24985 {
24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
24987 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
24988
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24993 return resultobj;
24994 fail:
24995 return NULL;
24996}
24997
24998
24999static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25000 PyObject *resultobj;
25001 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25002 unsigned int result;
25003 PyObject * obj0 = 0 ;
25004 char *kwnames[] = {
25005 (char *) "self", NULL
25006 };
25007
25008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25011 {
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
25013 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25014
25015 wxPyEndAllowThreads(__tstate);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25019 return resultobj;
25020 fail:
25021 return NULL;
25022}
25023
25024
25025static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25026 PyObject *resultobj;
25027 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25028 unsigned int arg2 ;
25029 PyObject * obj0 = 0 ;
25030 PyObject * obj1 = 0 ;
25031 char *kwnames[] = {
25032 (char *) "self",(char *) "indent", NULL
25033 };
25034
25035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25038 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25039 if (PyErr_Occurred()) SWIG_fail;
25040 {
25041 PyThreadState* __tstate = wxPyBeginAllowThreads();
25042 (arg1)->SetIndent(arg2);
25043
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 Py_INCREF(Py_None); resultobj = Py_None;
25048 return resultobj;
25049 fail:
25050 return NULL;
25051}
25052
25053
25054static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25055 PyObject *resultobj;
25056 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25057 unsigned int result;
25058 PyObject * obj0 = 0 ;
25059 char *kwnames[] = {
25060 (char *) "self", NULL
25061 };
25062
25063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25066 {
25067 PyThreadState* __tstate = wxPyBeginAllowThreads();
25068 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25069
25070 wxPyEndAllowThreads(__tstate);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25074 return resultobj;
25075 fail:
25076 return NULL;
25077}
25078
25079
25080static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25081 PyObject *resultobj;
25082 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25083 unsigned int arg2 ;
25084 PyObject * obj0 = 0 ;
25085 PyObject * obj1 = 0 ;
25086 char *kwnames[] = {
25087 (char *) "self",(char *) "spacing", NULL
25088 };
25089
25090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25093 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25094 if (PyErr_Occurred()) SWIG_fail;
25095 {
25096 PyThreadState* __tstate = wxPyBeginAllowThreads();
25097 (arg1)->SetSpacing(arg2);
25098
25099 wxPyEndAllowThreads(__tstate);
25100 if (PyErr_Occurred()) SWIG_fail;
25101 }
25102 Py_INCREF(Py_None); resultobj = Py_None;
25103 return resultobj;
25104 fail:
25105 return NULL;
25106}
25107
25108
25109static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25110 PyObject *resultobj;
25111 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25112 wxImageList *result;
25113 PyObject * obj0 = 0 ;
25114 char *kwnames[] = {
25115 (char *) "self", NULL
25116 };
25117
25118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25121 {
25122 PyThreadState* __tstate = wxPyBeginAllowThreads();
25123 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25124
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 {
25129 resultobj = wxPyMake_wxObject(result);
25130 }
25131 return resultobj;
25132 fail:
25133 return NULL;
25134}
25135
25136
25137static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25138 PyObject *resultobj;
25139 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25140 wxImageList *result;
25141 PyObject * obj0 = 0 ;
25142 char *kwnames[] = {
25143 (char *) "self", NULL
25144 };
25145
25146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25149 {
25150 PyThreadState* __tstate = wxPyBeginAllowThreads();
25151 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25152
25153 wxPyEndAllowThreads(__tstate);
25154 if (PyErr_Occurred()) SWIG_fail;
25155 }
25156 {
25157 resultobj = wxPyMake_wxObject(result);
25158 }
25159 return resultobj;
25160 fail:
25161 return NULL;
25162}
25163
25164
25165static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25166 PyObject *resultobj;
25167 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25168 wxImageList *arg2 = (wxImageList *) 0 ;
25169 PyObject * obj0 = 0 ;
25170 PyObject * obj1 = 0 ;
25171 char *kwnames[] = {
25172 (char *) "self",(char *) "imageList", NULL
25173 };
25174
25175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25178 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25180 {
25181 PyThreadState* __tstate = wxPyBeginAllowThreads();
25182 (arg1)->SetImageList(arg2);
25183
25184 wxPyEndAllowThreads(__tstate);
25185 if (PyErr_Occurred()) SWIG_fail;
25186 }
25187 Py_INCREF(Py_None); resultobj = Py_None;
25188 return resultobj;
25189 fail:
25190 return NULL;
25191}
25192
25193
25194static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25195 PyObject *resultobj;
25196 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25197 wxImageList *arg2 = (wxImageList *) 0 ;
25198 PyObject * obj0 = 0 ;
25199 PyObject * obj1 = 0 ;
25200 char *kwnames[] = {
25201 (char *) "self",(char *) "imageList", NULL
25202 };
25203
25204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25207 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25209 {
25210 PyThreadState* __tstate = wxPyBeginAllowThreads();
25211 (arg1)->SetStateImageList(arg2);
25212
25213 wxPyEndAllowThreads(__tstate);
25214 if (PyErr_Occurred()) SWIG_fail;
25215 }
25216 Py_INCREF(Py_None); resultobj = Py_None;
25217 return resultobj;
25218 fail:
25219 return NULL;
25220}
25221
25222
25223static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25224 PyObject *resultobj;
25225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25226 wxImageList *arg2 = (wxImageList *) 0 ;
25227 PyObject * obj0 = 0 ;
25228 PyObject * obj1 = 0 ;
25229 char *kwnames[] = {
25230 (char *) "self",(char *) "imageList", NULL
25231 };
25232
25233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25236 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25237 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25238 {
25239 PyThreadState* __tstate = wxPyBeginAllowThreads();
25240 (arg1)->AssignImageList(arg2);
25241
25242 wxPyEndAllowThreads(__tstate);
25243 if (PyErr_Occurred()) SWIG_fail;
25244 }
25245 Py_INCREF(Py_None); resultobj = Py_None;
25246 return resultobj;
25247 fail:
25248 return NULL;
25249}
25250
25251
25252static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25253 PyObject *resultobj;
25254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25255 wxImageList *arg2 = (wxImageList *) 0 ;
25256 PyObject * obj0 = 0 ;
25257 PyObject * obj1 = 0 ;
25258 char *kwnames[] = {
25259 (char *) "self",(char *) "imageList", NULL
25260 };
25261
25262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25265 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25266 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25267 {
25268 PyThreadState* __tstate = wxPyBeginAllowThreads();
25269 (arg1)->AssignStateImageList(arg2);
25270
25271 wxPyEndAllowThreads(__tstate);
25272 if (PyErr_Occurred()) SWIG_fail;
25273 }
25274 Py_INCREF(Py_None); resultobj = Py_None;
25275 return resultobj;
25276 fail:
25277 return NULL;
25278}
25279
25280
25281static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25282 PyObject *resultobj;
25283 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25284 wxTreeItemId *arg2 = 0 ;
25285 wxString result;
25286 PyObject * obj0 = 0 ;
25287 PyObject * obj1 = 0 ;
25288 char *kwnames[] = {
25289 (char *) "self",(char *) "item", NULL
25290 };
25291
25292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25296 SWIG_POINTER_EXCEPTION | 0)) == -1)
25297 SWIG_fail;
25298 if (arg2 == NULL) {
25299 PyErr_SetString(PyExc_TypeError,"null reference");
25300 SWIG_fail;
25301 }
25302 {
25303 PyThreadState* __tstate = wxPyBeginAllowThreads();
25304 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25305
25306 wxPyEndAllowThreads(__tstate);
25307 if (PyErr_Occurred()) SWIG_fail;
25308 }
25309 {
25310#if wxUSE_UNICODE
25311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25312#else
25313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25314#endif
25315 }
25316 return resultobj;
25317 fail:
25318 return NULL;
25319}
25320
25321
25322static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25323 PyObject *resultobj;
25324 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25325 wxTreeItemId *arg2 = 0 ;
25326 int arg3 = (int) wxTreeItemIcon_Normal ;
25327 int result;
25328 PyObject * obj0 = 0 ;
25329 PyObject * obj1 = 0 ;
25330 PyObject * obj2 = 0 ;
25331 char *kwnames[] = {
25332 (char *) "self",(char *) "item",(char *) "which", NULL
25333 };
25334
25335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25338 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25339 SWIG_POINTER_EXCEPTION | 0)) == -1)
25340 SWIG_fail;
25341 if (arg2 == NULL) {
25342 PyErr_SetString(PyExc_TypeError,"null reference");
25343 SWIG_fail;
25344 }
25345 if (obj2) {
25346 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 {
25350 PyThreadState* __tstate = wxPyBeginAllowThreads();
25351 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25352
25353 wxPyEndAllowThreads(__tstate);
25354 if (PyErr_Occurred()) SWIG_fail;
25355 }
25356 resultobj = SWIG_FromInt((int)result);
25357 return resultobj;
25358 fail:
25359 return NULL;
25360}
25361
25362
25363static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25364 PyObject *resultobj;
25365 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25366 wxTreeItemId *arg2 = 0 ;
25367 wxPyTreeItemData *result;
25368 PyObject * obj0 = 0 ;
25369 PyObject * obj1 = 0 ;
25370 char *kwnames[] = {
25371 (char *) "self",(char *) "item", NULL
25372 };
25373
25374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25378 SWIG_POINTER_EXCEPTION | 0)) == -1)
25379 SWIG_fail;
25380 if (arg2 == NULL) {
25381 PyErr_SetString(PyExc_TypeError,"null reference");
25382 SWIG_fail;
25383 }
25384 {
25385 PyThreadState* __tstate = wxPyBeginAllowThreads();
25386 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25387
25388 wxPyEndAllowThreads(__tstate);
25389 if (PyErr_Occurred()) SWIG_fail;
25390 }
25391 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25392 return resultobj;
25393 fail:
25394 return NULL;
25395}
25396
25397
25398static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25399 PyObject *resultobj;
25400 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25401 wxTreeItemId *arg2 = 0 ;
25402 PyObject *result;
25403 PyObject * obj0 = 0 ;
25404 PyObject * obj1 = 0 ;
25405 char *kwnames[] = {
25406 (char *) "self",(char *) "item", NULL
25407 };
25408
25409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25412 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25413 SWIG_POINTER_EXCEPTION | 0)) == -1)
25414 SWIG_fail;
25415 if (arg2 == NULL) {
25416 PyErr_SetString(PyExc_TypeError,"null reference");
25417 SWIG_fail;
25418 }
25419 {
25420 PyThreadState* __tstate = wxPyBeginAllowThreads();
25421 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25422
25423 wxPyEndAllowThreads(__tstate);
25424 if (PyErr_Occurred()) SWIG_fail;
25425 }
25426 resultobj = result;
25427 return resultobj;
25428 fail:
25429 return NULL;
25430}
25431
25432
25433static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25434 PyObject *resultobj;
25435 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25436 wxTreeItemId *arg2 = 0 ;
25437 wxColour result;
25438 PyObject * obj0 = 0 ;
25439 PyObject * obj1 = 0 ;
25440 char *kwnames[] = {
25441 (char *) "self",(char *) "item", NULL
25442 };
25443
25444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25447 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25448 SWIG_POINTER_EXCEPTION | 0)) == -1)
25449 SWIG_fail;
25450 if (arg2 == NULL) {
25451 PyErr_SetString(PyExc_TypeError,"null reference");
25452 SWIG_fail;
25453 }
25454 {
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25457
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 {
25462 wxColour * resultptr;
25463 resultptr = new wxColour((wxColour &) result);
25464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25465 }
25466 return resultobj;
25467 fail:
25468 return NULL;
25469}
25470
25471
25472static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25473 PyObject *resultobj;
25474 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25475 wxTreeItemId *arg2 = 0 ;
25476 wxColour result;
25477 PyObject * obj0 = 0 ;
25478 PyObject * obj1 = 0 ;
25479 char *kwnames[] = {
25480 (char *) "self",(char *) "item", NULL
25481 };
25482
25483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25486 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25487 SWIG_POINTER_EXCEPTION | 0)) == -1)
25488 SWIG_fail;
25489 if (arg2 == NULL) {
25490 PyErr_SetString(PyExc_TypeError,"null reference");
25491 SWIG_fail;
25492 }
25493 {
25494 PyThreadState* __tstate = wxPyBeginAllowThreads();
25495 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25496
25497 wxPyEndAllowThreads(__tstate);
25498 if (PyErr_Occurred()) SWIG_fail;
25499 }
25500 {
25501 wxColour * resultptr;
25502 resultptr = new wxColour((wxColour &) result);
25503 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25504 }
25505 return resultobj;
25506 fail:
25507 return NULL;
25508}
25509
25510
25511static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25512 PyObject *resultobj;
25513 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25514 wxTreeItemId *arg2 = 0 ;
25515 wxFont result;
25516 PyObject * obj0 = 0 ;
25517 PyObject * obj1 = 0 ;
25518 char *kwnames[] = {
25519 (char *) "self",(char *) "item", NULL
25520 };
25521
25522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25526 SWIG_POINTER_EXCEPTION | 0)) == -1)
25527 SWIG_fail;
25528 if (arg2 == NULL) {
25529 PyErr_SetString(PyExc_TypeError,"null reference");
25530 SWIG_fail;
25531 }
25532 {
25533 PyThreadState* __tstate = wxPyBeginAllowThreads();
25534 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25535
25536 wxPyEndAllowThreads(__tstate);
25537 if (PyErr_Occurred()) SWIG_fail;
25538 }
25539 {
25540 wxFont * resultptr;
25541 resultptr = new wxFont((wxFont &) result);
25542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25543 }
25544 return resultobj;
25545 fail:
25546 return NULL;
25547}
25548
25549
25550static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25551 PyObject *resultobj;
25552 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25553 wxTreeItemId *arg2 = 0 ;
25554 wxString *arg3 = 0 ;
25555 bool temp3 = False ;
25556 PyObject * obj0 = 0 ;
25557 PyObject * obj1 = 0 ;
25558 PyObject * obj2 = 0 ;
25559 char *kwnames[] = {
25560 (char *) "self",(char *) "item",(char *) "text", NULL
25561 };
25562
25563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25567 SWIG_POINTER_EXCEPTION | 0)) == -1)
25568 SWIG_fail;
25569 if (arg2 == NULL) {
25570 PyErr_SetString(PyExc_TypeError,"null reference");
25571 SWIG_fail;
25572 }
25573 {
25574 arg3 = wxString_in_helper(obj2);
25575 if (arg3 == NULL) SWIG_fail;
25576 temp3 = True;
25577 }
25578 {
25579 PyThreadState* __tstate = wxPyBeginAllowThreads();
25580 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25581
25582 wxPyEndAllowThreads(__tstate);
25583 if (PyErr_Occurred()) SWIG_fail;
25584 }
25585 Py_INCREF(Py_None); resultobj = Py_None;
25586 {
25587 if (temp3)
25588 delete arg3;
25589 }
25590 return resultobj;
25591 fail:
25592 {
25593 if (temp3)
25594 delete arg3;
25595 }
25596 return NULL;
25597}
25598
25599
25600static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25601 PyObject *resultobj;
25602 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25603 wxTreeItemId *arg2 = 0 ;
25604 int arg3 ;
25605 int arg4 = (int) wxTreeItemIcon_Normal ;
25606 PyObject * obj0 = 0 ;
25607 PyObject * obj1 = 0 ;
25608 PyObject * obj2 = 0 ;
25609 PyObject * obj3 = 0 ;
25610 char *kwnames[] = {
25611 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25612 };
25613
25614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25617 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25618 SWIG_POINTER_EXCEPTION | 0)) == -1)
25619 SWIG_fail;
25620 if (arg2 == NULL) {
25621 PyErr_SetString(PyExc_TypeError,"null reference");
25622 SWIG_fail;
25623 }
25624 arg3 = (int) SWIG_AsInt(obj2);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 if (obj3) {
25627 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
25628 if (PyErr_Occurred()) SWIG_fail;
25629 }
25630 {
25631 PyThreadState* __tstate = wxPyBeginAllowThreads();
25632 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25633
25634 wxPyEndAllowThreads(__tstate);
25635 if (PyErr_Occurred()) SWIG_fail;
25636 }
25637 Py_INCREF(Py_None); resultobj = Py_None;
25638 return resultobj;
25639 fail:
25640 return NULL;
25641}
25642
25643
25644static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25645 PyObject *resultobj;
25646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25647 wxTreeItemId *arg2 = 0 ;
25648 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25649 PyObject * obj0 = 0 ;
25650 PyObject * obj1 = 0 ;
25651 PyObject * obj2 = 0 ;
25652 char *kwnames[] = {
25653 (char *) "self",(char *) "item",(char *) "data", NULL
25654 };
25655
25656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25659 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25660 SWIG_POINTER_EXCEPTION | 0)) == -1)
25661 SWIG_fail;
25662 if (arg2 == NULL) {
25663 PyErr_SetString(PyExc_TypeError,"null reference");
25664 SWIG_fail;
25665 }
25666 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
25667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25668 {
25669 PyThreadState* __tstate = wxPyBeginAllowThreads();
25670 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
25671
25672 wxPyEndAllowThreads(__tstate);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 Py_INCREF(Py_None); resultobj = Py_None;
25676 return resultobj;
25677 fail:
25678 return NULL;
25679}
25680
25681
25682static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25683 PyObject *resultobj;
25684 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25685 wxTreeItemId *arg2 = 0 ;
25686 PyObject *arg3 = (PyObject *) 0 ;
25687 PyObject * obj0 = 0 ;
25688 PyObject * obj1 = 0 ;
25689 PyObject * obj2 = 0 ;
25690 char *kwnames[] = {
25691 (char *) "self",(char *) "item",(char *) "obj", NULL
25692 };
25693
25694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25697 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25698 SWIG_POINTER_EXCEPTION | 0)) == -1)
25699 SWIG_fail;
25700 if (arg2 == NULL) {
25701 PyErr_SetString(PyExc_TypeError,"null reference");
25702 SWIG_fail;
25703 }
25704 arg3 = obj2;
25705 {
25706 PyThreadState* __tstate = wxPyBeginAllowThreads();
25707 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
25708
25709 wxPyEndAllowThreads(__tstate);
25710 if (PyErr_Occurred()) SWIG_fail;
25711 }
25712 Py_INCREF(Py_None); resultobj = Py_None;
25713 return resultobj;
25714 fail:
25715 return NULL;
25716}
25717
25718
25719static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25720 PyObject *resultobj;
25721 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25722 wxTreeItemId *arg2 = 0 ;
25723 bool arg3 = (bool) True ;
25724 PyObject * obj0 = 0 ;
25725 PyObject * obj1 = 0 ;
25726 PyObject * obj2 = 0 ;
25727 char *kwnames[] = {
25728 (char *) "self",(char *) "item",(char *) "has", NULL
25729 };
25730
25731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
25732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25735 SWIG_POINTER_EXCEPTION | 0)) == -1)
25736 SWIG_fail;
25737 if (arg2 == NULL) {
25738 PyErr_SetString(PyExc_TypeError,"null reference");
25739 SWIG_fail;
25740 }
25741 if (obj2) {
25742 arg3 = (bool) SWIG_AsBool(obj2);
25743 if (PyErr_Occurred()) SWIG_fail;
25744 }
25745 {
25746 PyThreadState* __tstate = wxPyBeginAllowThreads();
25747 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
25748
25749 wxPyEndAllowThreads(__tstate);
25750 if (PyErr_Occurred()) SWIG_fail;
25751 }
25752 Py_INCREF(Py_None); resultobj = Py_None;
25753 return resultobj;
25754 fail:
25755 return NULL;
25756}
25757
25758
25759static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25760 PyObject *resultobj;
25761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25762 wxTreeItemId *arg2 = 0 ;
25763 bool arg3 = (bool) True ;
25764 PyObject * obj0 = 0 ;
25765 PyObject * obj1 = 0 ;
25766 PyObject * obj2 = 0 ;
25767 char *kwnames[] = {
25768 (char *) "self",(char *) "item",(char *) "bold", NULL
25769 };
25770
25771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
25772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25775 SWIG_POINTER_EXCEPTION | 0)) == -1)
25776 SWIG_fail;
25777 if (arg2 == NULL) {
25778 PyErr_SetString(PyExc_TypeError,"null reference");
25779 SWIG_fail;
25780 }
25781 if (obj2) {
25782 arg3 = (bool) SWIG_AsBool(obj2);
25783 if (PyErr_Occurred()) SWIG_fail;
25784 }
25785 {
25786 PyThreadState* __tstate = wxPyBeginAllowThreads();
25787 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
25788
25789 wxPyEndAllowThreads(__tstate);
25790 if (PyErr_Occurred()) SWIG_fail;
25791 }
25792 Py_INCREF(Py_None); resultobj = Py_None;
25793 return resultobj;
25794 fail:
25795 return NULL;
25796}
25797
25798
25799static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25800 PyObject *resultobj;
25801 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25802 wxTreeItemId *arg2 = 0 ;
25803 wxColour *arg3 = 0 ;
25804 wxColour temp3 ;
25805 PyObject * obj0 = 0 ;
25806 PyObject * obj1 = 0 ;
25807 PyObject * obj2 = 0 ;
25808 char *kwnames[] = {
25809 (char *) "self",(char *) "item",(char *) "col", NULL
25810 };
25811
25812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25816 SWIG_POINTER_EXCEPTION | 0)) == -1)
25817 SWIG_fail;
25818 if (arg2 == NULL) {
25819 PyErr_SetString(PyExc_TypeError,"null reference");
25820 SWIG_fail;
25821 }
25822 {
25823 arg3 = &temp3;
25824 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25825 }
25826 {
25827 PyThreadState* __tstate = wxPyBeginAllowThreads();
25828 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25829
25830 wxPyEndAllowThreads(__tstate);
25831 if (PyErr_Occurred()) SWIG_fail;
25832 }
25833 Py_INCREF(Py_None); resultobj = Py_None;
25834 return resultobj;
25835 fail:
25836 return NULL;
25837}
25838
25839
25840static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25841 PyObject *resultobj;
25842 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25843 wxTreeItemId *arg2 = 0 ;
25844 wxColour *arg3 = 0 ;
25845 wxColour temp3 ;
25846 PyObject * obj0 = 0 ;
25847 PyObject * obj1 = 0 ;
25848 PyObject * obj2 = 0 ;
25849 char *kwnames[] = {
25850 (char *) "self",(char *) "item",(char *) "col", NULL
25851 };
25852
25853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
25854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25856 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25857 SWIG_POINTER_EXCEPTION | 0)) == -1)
25858 SWIG_fail;
25859 if (arg2 == NULL) {
25860 PyErr_SetString(PyExc_TypeError,"null reference");
25861 SWIG_fail;
25862 }
25863 {
25864 arg3 = &temp3;
25865 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25866 }
25867 {
25868 PyThreadState* __tstate = wxPyBeginAllowThreads();
25869 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
25870
25871 wxPyEndAllowThreads(__tstate);
25872 if (PyErr_Occurred()) SWIG_fail;
25873 }
25874 Py_INCREF(Py_None); resultobj = Py_None;
25875 return resultobj;
25876 fail:
25877 return NULL;
25878}
25879
25880
25881static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25882 PyObject *resultobj;
25883 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25884 wxTreeItemId *arg2 = 0 ;
25885 wxFont *arg3 = 0 ;
25886 PyObject * obj0 = 0 ;
25887 PyObject * obj1 = 0 ;
25888 PyObject * obj2 = 0 ;
25889 char *kwnames[] = {
25890 (char *) "self",(char *) "item",(char *) "font", NULL
25891 };
25892
25893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
25894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25897 SWIG_POINTER_EXCEPTION | 0)) == -1)
25898 SWIG_fail;
25899 if (arg2 == NULL) {
25900 PyErr_SetString(PyExc_TypeError,"null reference");
25901 SWIG_fail;
25902 }
25903 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
25904 SWIG_POINTER_EXCEPTION | 0)) == -1)
25905 SWIG_fail;
25906 if (arg3 == NULL) {
25907 PyErr_SetString(PyExc_TypeError,"null reference");
25908 SWIG_fail;
25909 }
25910 {
25911 PyThreadState* __tstate = wxPyBeginAllowThreads();
25912 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
25913
25914 wxPyEndAllowThreads(__tstate);
25915 if (PyErr_Occurred()) SWIG_fail;
25916 }
25917 Py_INCREF(Py_None); resultobj = Py_None;
25918 return resultobj;
25919 fail:
25920 return NULL;
25921}
25922
25923
25924static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
25925 PyObject *resultobj;
25926 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25927 wxTreeItemId *arg2 = 0 ;
25928 bool result;
25929 PyObject * obj0 = 0 ;
25930 PyObject * obj1 = 0 ;
25931 char *kwnames[] = {
25932 (char *) "self",(char *) "item", NULL
25933 };
25934
25935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
25936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25938 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25939 SWIG_POINTER_EXCEPTION | 0)) == -1)
25940 SWIG_fail;
25941 if (arg2 == NULL) {
25942 PyErr_SetString(PyExc_TypeError,"null reference");
25943 SWIG_fail;
25944 }
25945 {
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
25948
25949 wxPyEndAllowThreads(__tstate);
25950 if (PyErr_Occurred()) SWIG_fail;
25951 }
25952 {
25953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25954 }
25955 return resultobj;
25956 fail:
25957 return NULL;
25958}
25959
25960
25961static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25962 PyObject *resultobj;
25963 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25964 wxTreeItemId *arg2 = 0 ;
25965 bool result;
25966 PyObject * obj0 = 0 ;
25967 PyObject * obj1 = 0 ;
25968 char *kwnames[] = {
25969 (char *) "self",(char *) "item", NULL
25970 };
25971
25972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
25973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25975 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25976 SWIG_POINTER_EXCEPTION | 0)) == -1)
25977 SWIG_fail;
25978 if (arg2 == NULL) {
25979 PyErr_SetString(PyExc_TypeError,"null reference");
25980 SWIG_fail;
25981 }
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
25985
25986 wxPyEndAllowThreads(__tstate);
25987 if (PyErr_Occurred()) SWIG_fail;
25988 }
25989 {
25990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25991 }
25992 return resultobj;
25993 fail:
25994 return NULL;
25995}
25996
25997
25998static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
25999 PyObject *resultobj;
26000 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26001 wxTreeItemId *arg2 = 0 ;
26002 bool result;
26003 PyObject * obj0 = 0 ;
26004 PyObject * obj1 = 0 ;
26005 char *kwnames[] = {
26006 (char *) "self",(char *) "item", NULL
26007 };
26008
26009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26012 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26013 SWIG_POINTER_EXCEPTION | 0)) == -1)
26014 SWIG_fail;
26015 if (arg2 == NULL) {
26016 PyErr_SetString(PyExc_TypeError,"null reference");
26017 SWIG_fail;
26018 }
26019 {
26020 PyThreadState* __tstate = wxPyBeginAllowThreads();
26021 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26022
26023 wxPyEndAllowThreads(__tstate);
26024 if (PyErr_Occurred()) SWIG_fail;
26025 }
26026 {
26027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26028 }
26029 return resultobj;
26030 fail:
26031 return NULL;
26032}
26033
26034
26035static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
26036 PyObject *resultobj;
26037 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26038 wxTreeItemId *arg2 = 0 ;
26039 bool result;
26040 PyObject * obj0 = 0 ;
26041 PyObject * obj1 = 0 ;
26042 char *kwnames[] = {
26043 (char *) "self",(char *) "item", NULL
26044 };
26045
26046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26049 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26050 SWIG_POINTER_EXCEPTION | 0)) == -1)
26051 SWIG_fail;
26052 if (arg2 == NULL) {
26053 PyErr_SetString(PyExc_TypeError,"null reference");
26054 SWIG_fail;
26055 }
26056 {
26057 PyThreadState* __tstate = wxPyBeginAllowThreads();
26058 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26059
26060 wxPyEndAllowThreads(__tstate);
26061 if (PyErr_Occurred()) SWIG_fail;
26062 }
26063 {
26064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26065 }
26066 return resultobj;
26067 fail:
26068 return NULL;
26069}
26070
26071
26072static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
26073 PyObject *resultobj;
26074 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26075 wxTreeItemId *arg2 = 0 ;
26076 bool result;
26077 PyObject * obj0 = 0 ;
26078 PyObject * obj1 = 0 ;
26079 char *kwnames[] = {
26080 (char *) "self",(char *) "item", NULL
26081 };
26082
26083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26086 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26087 SWIG_POINTER_EXCEPTION | 0)) == -1)
26088 SWIG_fail;
26089 if (arg2 == NULL) {
26090 PyErr_SetString(PyExc_TypeError,"null reference");
26091 SWIG_fail;
26092 }
26093 {
26094 PyThreadState* __tstate = wxPyBeginAllowThreads();
26095 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26096
26097 wxPyEndAllowThreads(__tstate);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 }
26100 {
26101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26102 }
26103 return resultobj;
26104 fail:
26105 return NULL;
26106}
26107
26108
26109static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
26110 PyObject *resultobj;
26111 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26112 wxTreeItemId *arg2 = 0 ;
26113 bool arg3 = (bool) True ;
26114 size_t result;
26115 PyObject * obj0 = 0 ;
26116 PyObject * obj1 = 0 ;
26117 PyObject * obj2 = 0 ;
26118 char *kwnames[] = {
26119 (char *) "self",(char *) "item",(char *) "recursively", NULL
26120 };
26121
26122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26125 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26126 SWIG_POINTER_EXCEPTION | 0)) == -1)
26127 SWIG_fail;
26128 if (arg2 == NULL) {
26129 PyErr_SetString(PyExc_TypeError,"null reference");
26130 SWIG_fail;
26131 }
26132 if (obj2) {
26133 arg3 = (bool) SWIG_AsBool(obj2);
26134 if (PyErr_Occurred()) SWIG_fail;
26135 }
26136 {
26137 PyThreadState* __tstate = wxPyBeginAllowThreads();
26138 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26139
26140 wxPyEndAllowThreads(__tstate);
26141 if (PyErr_Occurred()) SWIG_fail;
26142 }
26143 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
26144 return resultobj;
26145 fail:
26146 return NULL;
26147}
26148
26149
26150static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26151 PyObject *resultobj;
26152 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26153 wxTreeItemId result;
26154 PyObject * obj0 = 0 ;
26155 char *kwnames[] = {
26156 (char *) "self", NULL
26157 };
26158
26159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26162 {
26163 PyThreadState* __tstate = wxPyBeginAllowThreads();
26164 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26165
26166 wxPyEndAllowThreads(__tstate);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 }
26169 {
26170 wxTreeItemId * resultptr;
26171 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26172 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26173 }
26174 return resultobj;
26175 fail:
26176 return NULL;
26177}
26178
26179
26180static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26181 PyObject *resultobj;
26182 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26183 wxTreeItemId result;
26184 PyObject * obj0 = 0 ;
26185 char *kwnames[] = {
26186 (char *) "self", NULL
26187 };
26188
26189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26192 {
26193 PyThreadState* __tstate = wxPyBeginAllowThreads();
26194 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26195
26196 wxPyEndAllowThreads(__tstate);
26197 if (PyErr_Occurred()) SWIG_fail;
26198 }
26199 {
26200 wxTreeItemId * resultptr;
26201 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26202 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26203 }
26204 return resultobj;
26205 fail:
26206 return NULL;
26207}
26208
26209
26210static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
26211 PyObject *resultobj;
26212 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26213 PyObject *result;
26214 PyObject * obj0 = 0 ;
26215 char *kwnames[] = {
26216 (char *) "self", NULL
26217 };
26218
26219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26222 {
26223 PyThreadState* __tstate = wxPyBeginAllowThreads();
26224 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26225
26226 wxPyEndAllowThreads(__tstate);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = result;
26230 return resultobj;
26231 fail:
26232 return NULL;
26233}
26234
26235
26236static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
26237 PyObject *resultobj;
26238 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26239 wxTreeItemId *arg2 = 0 ;
26240 wxTreeItemId result;
26241 PyObject * obj0 = 0 ;
26242 PyObject * obj1 = 0 ;
26243 char *kwnames[] = {
26244 (char *) "self",(char *) "item", NULL
26245 };
26246
26247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26250 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26251 SWIG_POINTER_EXCEPTION | 0)) == -1)
26252 SWIG_fail;
26253 if (arg2 == NULL) {
26254 PyErr_SetString(PyExc_TypeError,"null reference");
26255 SWIG_fail;
26256 }
26257 {
26258 PyThreadState* __tstate = wxPyBeginAllowThreads();
26259 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26260
26261 wxPyEndAllowThreads(__tstate);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 {
26265 wxTreeItemId * resultptr;
26266 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26267 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26268 }
26269 return resultobj;
26270 fail:
26271 return NULL;
26272}
26273
26274
26275static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26276 PyObject *resultobj;
26277 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26278 wxTreeItemId *arg2 = 0 ;
26279 PyObject *result;
26280 PyObject * obj0 = 0 ;
26281 PyObject * obj1 = 0 ;
26282 char *kwnames[] = {
26283 (char *) "self",(char *) "item", NULL
26284 };
26285
26286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26289 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26290 SWIG_POINTER_EXCEPTION | 0)) == -1)
26291 SWIG_fail;
26292 if (arg2 == NULL) {
26293 PyErr_SetString(PyExc_TypeError,"null reference");
26294 SWIG_fail;
26295 }
26296 {
26297 PyThreadState* __tstate = wxPyBeginAllowThreads();
26298 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26299
26300 wxPyEndAllowThreads(__tstate);
26301 if (PyErr_Occurred()) SWIG_fail;
26302 }
26303 resultobj = result;
26304 return resultobj;
26305 fail:
26306 return NULL;
26307}
26308
26309
26310static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26311 PyObject *resultobj;
26312 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26313 wxTreeItemId *arg2 = 0 ;
26314 void *arg3 = (void *) 0 ;
26315 PyObject *result;
26316 PyObject * obj0 = 0 ;
26317 PyObject * obj1 = 0 ;
26318 PyObject * obj2 = 0 ;
26319 char *kwnames[] = {
26320 (char *) "self",(char *) "item",(char *) "cookie", NULL
26321 };
26322
26323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26326 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26327 SWIG_POINTER_EXCEPTION | 0)) == -1)
26328 SWIG_fail;
26329 if (arg2 == NULL) {
26330 PyErr_SetString(PyExc_TypeError,"null reference");
26331 SWIG_fail;
26332 }
26333 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26334 {
26335 PyThreadState* __tstate = wxPyBeginAllowThreads();
26336 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26337
26338 wxPyEndAllowThreads(__tstate);
26339 if (PyErr_Occurred()) SWIG_fail;
26340 }
26341 resultobj = result;
26342 return resultobj;
26343 fail:
26344 return NULL;
26345}
26346
26347
26348static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26349 PyObject *resultobj;
26350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26351 wxTreeItemId *arg2 = 0 ;
26352 wxTreeItemId result;
26353 PyObject * obj0 = 0 ;
26354 PyObject * obj1 = 0 ;
26355 char *kwnames[] = {
26356 (char *) "self",(char *) "item", NULL
26357 };
26358
26359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26362 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26363 SWIG_POINTER_EXCEPTION | 0)) == -1)
26364 SWIG_fail;
26365 if (arg2 == NULL) {
26366 PyErr_SetString(PyExc_TypeError,"null reference");
26367 SWIG_fail;
26368 }
26369 {
26370 PyThreadState* __tstate = wxPyBeginAllowThreads();
26371 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26372
26373 wxPyEndAllowThreads(__tstate);
26374 if (PyErr_Occurred()) SWIG_fail;
26375 }
26376 {
26377 wxTreeItemId * resultptr;
26378 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26380 }
26381 return resultobj;
26382 fail:
26383 return NULL;
26384}
26385
26386
26387static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26388 PyObject *resultobj;
26389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26390 wxTreeItemId *arg2 = 0 ;
26391 wxTreeItemId result;
26392 PyObject * obj0 = 0 ;
26393 PyObject * obj1 = 0 ;
26394 char *kwnames[] = {
26395 (char *) "self",(char *) "item", NULL
26396 };
26397
26398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26402 SWIG_POINTER_EXCEPTION | 0)) == -1)
26403 SWIG_fail;
26404 if (arg2 == NULL) {
26405 PyErr_SetString(PyExc_TypeError,"null reference");
26406 SWIG_fail;
26407 }
26408 {
26409 PyThreadState* __tstate = wxPyBeginAllowThreads();
26410 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26411
26412 wxPyEndAllowThreads(__tstate);
26413 if (PyErr_Occurred()) SWIG_fail;
26414 }
26415 {
26416 wxTreeItemId * resultptr;
26417 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26418 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26419 }
26420 return resultobj;
26421 fail:
26422 return NULL;
26423}
26424
26425
26426static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26427 PyObject *resultobj;
26428 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26429 wxTreeItemId *arg2 = 0 ;
26430 wxTreeItemId result;
26431 PyObject * obj0 = 0 ;
26432 PyObject * obj1 = 0 ;
26433 char *kwnames[] = {
26434 (char *) "self",(char *) "item", NULL
26435 };
26436
26437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26440 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26441 SWIG_POINTER_EXCEPTION | 0)) == -1)
26442 SWIG_fail;
26443 if (arg2 == NULL) {
26444 PyErr_SetString(PyExc_TypeError,"null reference");
26445 SWIG_fail;
26446 }
26447 {
26448 PyThreadState* __tstate = wxPyBeginAllowThreads();
26449 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26450
26451 wxPyEndAllowThreads(__tstate);
26452 if (PyErr_Occurred()) SWIG_fail;
26453 }
26454 {
26455 wxTreeItemId * resultptr;
26456 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26457 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26458 }
26459 return resultobj;
26460 fail:
26461 return NULL;
26462}
26463
26464
26465static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26466 PyObject *resultobj;
26467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26468 wxTreeItemId result;
26469 PyObject * obj0 = 0 ;
26470 char *kwnames[] = {
26471 (char *) "self", NULL
26472 };
26473
26474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26477 {
26478 PyThreadState* __tstate = wxPyBeginAllowThreads();
26479 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26480
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 {
26485 wxTreeItemId * resultptr;
26486 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26487 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26488 }
26489 return resultobj;
26490 fail:
26491 return NULL;
26492}
26493
26494
26495static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26496 PyObject *resultobj;
26497 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26498 wxTreeItemId *arg2 = 0 ;
26499 wxTreeItemId result;
26500 PyObject * obj0 = 0 ;
26501 PyObject * obj1 = 0 ;
26502 char *kwnames[] = {
26503 (char *) "self",(char *) "item", NULL
26504 };
26505
26506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26509 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26510 SWIG_POINTER_EXCEPTION | 0)) == -1)
26511 SWIG_fail;
26512 if (arg2 == NULL) {
26513 PyErr_SetString(PyExc_TypeError,"null reference");
26514 SWIG_fail;
26515 }
26516 {
26517 PyThreadState* __tstate = wxPyBeginAllowThreads();
26518 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26519
26520 wxPyEndAllowThreads(__tstate);
26521 if (PyErr_Occurred()) SWIG_fail;
26522 }
26523 {
26524 wxTreeItemId * resultptr;
26525 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26526 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26527 }
26528 return resultobj;
26529 fail:
26530 return NULL;
26531}
26532
26533
26534static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26535 PyObject *resultobj;
26536 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26537 wxTreeItemId *arg2 = 0 ;
26538 wxTreeItemId result;
26539 PyObject * obj0 = 0 ;
26540 PyObject * obj1 = 0 ;
26541 char *kwnames[] = {
26542 (char *) "self",(char *) "item", NULL
26543 };
26544
26545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26549 SWIG_POINTER_EXCEPTION | 0)) == -1)
26550 SWIG_fail;
26551 if (arg2 == NULL) {
26552 PyErr_SetString(PyExc_TypeError,"null reference");
26553 SWIG_fail;
26554 }
26555 {
26556 PyThreadState* __tstate = wxPyBeginAllowThreads();
26557 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26558
26559 wxPyEndAllowThreads(__tstate);
26560 if (PyErr_Occurred()) SWIG_fail;
26561 }
26562 {
26563 wxTreeItemId * resultptr;
26564 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26566 }
26567 return resultobj;
26568 fail:
26569 return NULL;
26570}
26571
26572
26573static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
26574 PyObject *resultobj;
26575 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26576 wxString *arg2 = 0 ;
26577 int arg3 = (int) -1 ;
26578 int arg4 = (int) -1 ;
26579 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26580 wxTreeItemId result;
26581 bool temp2 = False ;
26582 PyObject * obj0 = 0 ;
26583 PyObject * obj1 = 0 ;
26584 PyObject * obj2 = 0 ;
26585 PyObject * obj3 = 0 ;
26586 PyObject * obj4 = 0 ;
26587 char *kwnames[] = {
26588 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26589 };
26590
26591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26594 {
26595 arg2 = wxString_in_helper(obj1);
26596 if (arg2 == NULL) SWIG_fail;
26597 temp2 = True;
26598 }
26599 if (obj2) {
26600 arg3 = (int) SWIG_AsInt(obj2);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 if (obj3) {
26604 arg4 = (int) SWIG_AsInt(obj3);
26605 if (PyErr_Occurred()) SWIG_fail;
26606 }
26607 if (obj4) {
26608 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26610 }
26611 {
26612 PyThreadState* __tstate = wxPyBeginAllowThreads();
26613 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26614
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 {
26619 wxTreeItemId * resultptr;
26620 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26621 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26622 }
26623 {
26624 if (temp2)
26625 delete arg2;
26626 }
26627 return resultobj;
26628 fail:
26629 {
26630 if (temp2)
26631 delete arg2;
26632 }
26633 return NULL;
26634}
26635
26636
26637static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26638 PyObject *resultobj;
26639 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26640 wxTreeItemId *arg2 = 0 ;
26641 wxString *arg3 = 0 ;
26642 int arg4 = (int) -1 ;
26643 int arg5 = (int) -1 ;
26644 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26645 wxTreeItemId result;
26646 bool temp3 = False ;
26647 PyObject * obj0 = 0 ;
26648 PyObject * obj1 = 0 ;
26649 PyObject * obj2 = 0 ;
26650 PyObject * obj3 = 0 ;
26651 PyObject * obj4 = 0 ;
26652 PyObject * obj5 = 0 ;
26653 char *kwnames[] = {
26654 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26655 };
26656
26657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26661 SWIG_POINTER_EXCEPTION | 0)) == -1)
26662 SWIG_fail;
26663 if (arg2 == NULL) {
26664 PyErr_SetString(PyExc_TypeError,"null reference");
26665 SWIG_fail;
26666 }
26667 {
26668 arg3 = wxString_in_helper(obj2);
26669 if (arg3 == NULL) SWIG_fail;
26670 temp3 = True;
26671 }
26672 if (obj3) {
26673 arg4 = (int) SWIG_AsInt(obj3);
26674 if (PyErr_Occurred()) SWIG_fail;
26675 }
26676 if (obj4) {
26677 arg5 = (int) SWIG_AsInt(obj4);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 if (obj5) {
26681 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26683 }
26684 {
26685 PyThreadState* __tstate = wxPyBeginAllowThreads();
26686 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26687
26688 wxPyEndAllowThreads(__tstate);
26689 if (PyErr_Occurred()) SWIG_fail;
26690 }
26691 {
26692 wxTreeItemId * resultptr;
26693 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26694 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26695 }
26696 {
26697 if (temp3)
26698 delete arg3;
26699 }
26700 return resultobj;
26701 fail:
26702 {
26703 if (temp3)
26704 delete arg3;
26705 }
26706 return NULL;
26707}
26708
26709
26710static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26711 PyObject *resultobj;
26712 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26713 wxTreeItemId *arg2 = 0 ;
26714 wxTreeItemId *arg3 = 0 ;
26715 wxString *arg4 = 0 ;
26716 int arg5 = (int) -1 ;
26717 int arg6 = (int) -1 ;
26718 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26719 wxTreeItemId result;
26720 bool temp4 = False ;
26721 PyObject * obj0 = 0 ;
26722 PyObject * obj1 = 0 ;
26723 PyObject * obj2 = 0 ;
26724 PyObject * obj3 = 0 ;
26725 PyObject * obj4 = 0 ;
26726 PyObject * obj5 = 0 ;
26727 PyObject * obj6 = 0 ;
26728 char *kwnames[] = {
26729 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26730 };
26731
26732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26735 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26736 SWIG_POINTER_EXCEPTION | 0)) == -1)
26737 SWIG_fail;
26738 if (arg2 == NULL) {
26739 PyErr_SetString(PyExc_TypeError,"null reference");
26740 SWIG_fail;
26741 }
26742 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
26743 SWIG_POINTER_EXCEPTION | 0)) == -1)
26744 SWIG_fail;
26745 if (arg3 == NULL) {
26746 PyErr_SetString(PyExc_TypeError,"null reference");
26747 SWIG_fail;
26748 }
26749 {
26750 arg4 = wxString_in_helper(obj3);
26751 if (arg4 == NULL) SWIG_fail;
26752 temp4 = True;
26753 }
26754 if (obj4) {
26755 arg5 = (int) SWIG_AsInt(obj4);
26756 if (PyErr_Occurred()) SWIG_fail;
26757 }
26758 if (obj5) {
26759 arg6 = (int) SWIG_AsInt(obj5);
26760 if (PyErr_Occurred()) SWIG_fail;
26761 }
26762 if (obj6) {
26763 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26765 }
26766 {
26767 PyThreadState* __tstate = wxPyBeginAllowThreads();
26768 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26769
26770 wxPyEndAllowThreads(__tstate);
26771 if (PyErr_Occurred()) SWIG_fail;
26772 }
26773 {
26774 wxTreeItemId * resultptr;
26775 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26776 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26777 }
26778 {
26779 if (temp4)
26780 delete arg4;
26781 }
26782 return resultobj;
26783 fail:
26784 {
26785 if (temp4)
26786 delete arg4;
26787 }
26788 return NULL;
26789}
26790
26791
26792static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
26793 PyObject *resultobj;
26794 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26795 wxTreeItemId *arg2 = 0 ;
26796 size_t arg3 ;
26797 wxString *arg4 = 0 ;
26798 int arg5 = (int) -1 ;
26799 int arg6 = (int) -1 ;
26800 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26801 wxTreeItemId result;
26802 bool temp4 = False ;
26803 PyObject * obj0 = 0 ;
26804 PyObject * obj1 = 0 ;
26805 PyObject * obj2 = 0 ;
26806 PyObject * obj3 = 0 ;
26807 PyObject * obj4 = 0 ;
26808 PyObject * obj5 = 0 ;
26809 PyObject * obj6 = 0 ;
26810 char *kwnames[] = {
26811 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26812 };
26813
26814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26817 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26818 SWIG_POINTER_EXCEPTION | 0)) == -1)
26819 SWIG_fail;
26820 if (arg2 == NULL) {
26821 PyErr_SetString(PyExc_TypeError,"null reference");
26822 SWIG_fail;
26823 }
26824 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
26825 if (PyErr_Occurred()) SWIG_fail;
26826 {
26827 arg4 = wxString_in_helper(obj3);
26828 if (arg4 == NULL) SWIG_fail;
26829 temp4 = True;
26830 }
26831 if (obj4) {
26832 arg5 = (int) SWIG_AsInt(obj4);
26833 if (PyErr_Occurred()) SWIG_fail;
26834 }
26835 if (obj5) {
26836 arg6 = (int) SWIG_AsInt(obj5);
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
26839 if (obj6) {
26840 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26842 }
26843 {
26844 PyThreadState* __tstate = wxPyBeginAllowThreads();
26845 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26846
26847 wxPyEndAllowThreads(__tstate);
26848 if (PyErr_Occurred()) SWIG_fail;
26849 }
26850 {
26851 wxTreeItemId * resultptr;
26852 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26853 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26854 }
26855 {
26856 if (temp4)
26857 delete arg4;
26858 }
26859 return resultobj;
26860 fail:
26861 {
26862 if (temp4)
26863 delete arg4;
26864 }
26865 return NULL;
26866}
26867
26868
26869static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26870 PyObject *resultobj;
26871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26872 wxTreeItemId *arg2 = 0 ;
26873 wxString *arg3 = 0 ;
26874 int arg4 = (int) -1 ;
26875 int arg5 = (int) -1 ;
26876 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26877 wxTreeItemId result;
26878 bool temp3 = False ;
26879 PyObject * obj0 = 0 ;
26880 PyObject * obj1 = 0 ;
26881 PyObject * obj2 = 0 ;
26882 PyObject * obj3 = 0 ;
26883 PyObject * obj4 = 0 ;
26884 PyObject * obj5 = 0 ;
26885 char *kwnames[] = {
26886 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26887 };
26888
26889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26892 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26893 SWIG_POINTER_EXCEPTION | 0)) == -1)
26894 SWIG_fail;
26895 if (arg2 == NULL) {
26896 PyErr_SetString(PyExc_TypeError,"null reference");
26897 SWIG_fail;
26898 }
26899 {
26900 arg3 = wxString_in_helper(obj2);
26901 if (arg3 == NULL) SWIG_fail;
26902 temp3 = True;
26903 }
26904 if (obj3) {
26905 arg4 = (int) SWIG_AsInt(obj3);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 if (obj4) {
26909 arg5 = (int) SWIG_AsInt(obj4);
26910 if (PyErr_Occurred()) SWIG_fail;
26911 }
26912 if (obj5) {
26913 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26915 }
26916 {
26917 PyThreadState* __tstate = wxPyBeginAllowThreads();
26918 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26919
26920 wxPyEndAllowThreads(__tstate);
26921 if (PyErr_Occurred()) SWIG_fail;
26922 }
26923 {
26924 wxTreeItemId * resultptr;
26925 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26926 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26927 }
26928 {
26929 if (temp3)
26930 delete arg3;
26931 }
26932 return resultobj;
26933 fail:
26934 {
26935 if (temp3)
26936 delete arg3;
26937 }
26938 return NULL;
26939}
26940
26941
26942static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
26943 PyObject *resultobj;
26944 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26945 wxTreeItemId *arg2 = 0 ;
26946 PyObject * obj0 = 0 ;
26947 PyObject * obj1 = 0 ;
26948 char *kwnames[] = {
26949 (char *) "self",(char *) "item", NULL
26950 };
26951
26952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
26953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26955 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26956 SWIG_POINTER_EXCEPTION | 0)) == -1)
26957 SWIG_fail;
26958 if (arg2 == NULL) {
26959 PyErr_SetString(PyExc_TypeError,"null reference");
26960 SWIG_fail;
26961 }
26962 {
26963 PyThreadState* __tstate = wxPyBeginAllowThreads();
26964 (arg1)->Delete((wxTreeItemId const &)*arg2);
26965
26966 wxPyEndAllowThreads(__tstate);
26967 if (PyErr_Occurred()) SWIG_fail;
26968 }
26969 Py_INCREF(Py_None); resultobj = Py_None;
26970 return resultobj;
26971 fail:
26972 return NULL;
26973}
26974
26975
26976static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26977 PyObject *resultobj;
26978 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26979 wxTreeItemId *arg2 = 0 ;
26980 PyObject * obj0 = 0 ;
26981 PyObject * obj1 = 0 ;
26982 char *kwnames[] = {
26983 (char *) "self",(char *) "item", NULL
26984 };
26985
26986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
26987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26989 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26990 SWIG_POINTER_EXCEPTION | 0)) == -1)
26991 SWIG_fail;
26992 if (arg2 == NULL) {
26993 PyErr_SetString(PyExc_TypeError,"null reference");
26994 SWIG_fail;
26995 }
26996 {
26997 PyThreadState* __tstate = wxPyBeginAllowThreads();
26998 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
26999
27000 wxPyEndAllowThreads(__tstate);
27001 if (PyErr_Occurred()) SWIG_fail;
27002 }
27003 Py_INCREF(Py_None); resultobj = Py_None;
27004 return resultobj;
27005 fail:
27006 return NULL;
27007}
27008
27009
27010static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
27011 PyObject *resultobj;
27012 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27013 PyObject * obj0 = 0 ;
27014 char *kwnames[] = {
27015 (char *) "self", NULL
27016 };
27017
27018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27021 {
27022 PyThreadState* __tstate = wxPyBeginAllowThreads();
27023 (arg1)->DeleteAllItems();
27024
27025 wxPyEndAllowThreads(__tstate);
27026 if (PyErr_Occurred()) SWIG_fail;
27027 }
27028 Py_INCREF(Py_None); resultobj = Py_None;
27029 return resultobj;
27030 fail:
27031 return NULL;
27032}
27033
27034
27035static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
27036 PyObject *resultobj;
27037 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27038 wxTreeItemId *arg2 = 0 ;
27039 PyObject * obj0 = 0 ;
27040 PyObject * obj1 = 0 ;
27041 char *kwnames[] = {
27042 (char *) "self",(char *) "item", NULL
27043 };
27044
27045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27048 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27049 SWIG_POINTER_EXCEPTION | 0)) == -1)
27050 SWIG_fail;
27051 if (arg2 == NULL) {
27052 PyErr_SetString(PyExc_TypeError,"null reference");
27053 SWIG_fail;
27054 }
27055 {
27056 PyThreadState* __tstate = wxPyBeginAllowThreads();
27057 (arg1)->Expand((wxTreeItemId const &)*arg2);
27058
27059 wxPyEndAllowThreads(__tstate);
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 Py_INCREF(Py_None); resultobj = Py_None;
27063 return resultobj;
27064 fail:
27065 return NULL;
27066}
27067
27068
27069static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
27070 PyObject *resultobj;
27071 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27072 wxTreeItemId *arg2 = 0 ;
27073 PyObject * obj0 = 0 ;
27074 PyObject * obj1 = 0 ;
27075 char *kwnames[] = {
27076 (char *) "self",(char *) "item", NULL
27077 };
27078
27079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27083 SWIG_POINTER_EXCEPTION | 0)) == -1)
27084 SWIG_fail;
27085 if (arg2 == NULL) {
27086 PyErr_SetString(PyExc_TypeError,"null reference");
27087 SWIG_fail;
27088 }
27089 {
27090 PyThreadState* __tstate = wxPyBeginAllowThreads();
27091 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27092
27093 wxPyEndAllowThreads(__tstate);
27094 if (PyErr_Occurred()) SWIG_fail;
27095 }
27096 Py_INCREF(Py_None); resultobj = Py_None;
27097 return resultobj;
27098 fail:
27099 return NULL;
27100}
27101
27102
27103static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
27104 PyObject *resultobj;
27105 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27106 wxTreeItemId *arg2 = 0 ;
27107 PyObject * obj0 = 0 ;
27108 PyObject * obj1 = 0 ;
27109 char *kwnames[] = {
27110 (char *) "self",(char *) "item", NULL
27111 };
27112
27113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27117 SWIG_POINTER_EXCEPTION | 0)) == -1)
27118 SWIG_fail;
27119 if (arg2 == NULL) {
27120 PyErr_SetString(PyExc_TypeError,"null reference");
27121 SWIG_fail;
27122 }
27123 {
27124 PyThreadState* __tstate = wxPyBeginAllowThreads();
27125 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27126
27127 wxPyEndAllowThreads(__tstate);
27128 if (PyErr_Occurred()) SWIG_fail;
27129 }
27130 Py_INCREF(Py_None); resultobj = Py_None;
27131 return resultobj;
27132 fail:
27133 return NULL;
27134}
27135
27136
27137static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
27138 PyObject *resultobj;
27139 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27140 wxTreeItemId *arg2 = 0 ;
27141 PyObject * obj0 = 0 ;
27142 PyObject * obj1 = 0 ;
27143 char *kwnames[] = {
27144 (char *) "self",(char *) "item", NULL
27145 };
27146
27147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27150 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27151 SWIG_POINTER_EXCEPTION | 0)) == -1)
27152 SWIG_fail;
27153 if (arg2 == NULL) {
27154 PyErr_SetString(PyExc_TypeError,"null reference");
27155 SWIG_fail;
27156 }
27157 {
27158 PyThreadState* __tstate = wxPyBeginAllowThreads();
27159 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27160
27161 wxPyEndAllowThreads(__tstate);
27162 if (PyErr_Occurred()) SWIG_fail;
27163 }
27164 Py_INCREF(Py_None); resultobj = Py_None;
27165 return resultobj;
27166 fail:
27167 return NULL;
27168}
27169
27170
27171static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
27172 PyObject *resultobj;
27173 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27174 PyObject * obj0 = 0 ;
27175 char *kwnames[] = {
27176 (char *) "self", NULL
27177 };
27178
27179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27182 {
27183 PyThreadState* __tstate = wxPyBeginAllowThreads();
27184 (arg1)->Unselect();
27185
27186 wxPyEndAllowThreads(__tstate);
27187 if (PyErr_Occurred()) SWIG_fail;
27188 }
27189 Py_INCREF(Py_None); resultobj = Py_None;
27190 return resultobj;
27191 fail:
27192 return NULL;
27193}
27194
27195
27196static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27197 PyObject *resultobj;
27198 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27199 wxTreeItemId *arg2 = 0 ;
27200 PyObject * obj0 = 0 ;
27201 PyObject * obj1 = 0 ;
27202 char *kwnames[] = {
27203 (char *) "self",(char *) "item", NULL
27204 };
27205
27206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27210 SWIG_POINTER_EXCEPTION | 0)) == -1)
27211 SWIG_fail;
27212 if (arg2 == NULL) {
27213 PyErr_SetString(PyExc_TypeError,"null reference");
27214 SWIG_fail;
27215 }
27216 {
27217 PyThreadState* __tstate = wxPyBeginAllowThreads();
27218 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27219
27220 wxPyEndAllowThreads(__tstate);
27221 if (PyErr_Occurred()) SWIG_fail;
27222 }
27223 Py_INCREF(Py_None); resultobj = Py_None;
27224 return resultobj;
27225 fail:
27226 return NULL;
27227}
27228
27229
27230static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
27231 PyObject *resultobj;
27232 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27233 PyObject * obj0 = 0 ;
27234 char *kwnames[] = {
27235 (char *) "self", NULL
27236 };
27237
27238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27241 {
27242 PyThreadState* __tstate = wxPyBeginAllowThreads();
27243 (arg1)->UnselectAll();
27244
27245 wxPyEndAllowThreads(__tstate);
27246 if (PyErr_Occurred()) SWIG_fail;
27247 }
27248 Py_INCREF(Py_None); resultobj = Py_None;
27249 return resultobj;
27250 fail:
27251 return NULL;
27252}
27253
27254
27255static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27256 PyObject *resultobj;
27257 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27258 wxTreeItemId *arg2 = 0 ;
27259 bool arg3 = (bool) True ;
27260 PyObject * obj0 = 0 ;
27261 PyObject * obj1 = 0 ;
27262 PyObject * obj2 = 0 ;
27263 char *kwnames[] = {
27264 (char *) "self",(char *) "item",(char *) "select", NULL
27265 };
27266
27267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27270 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27271 SWIG_POINTER_EXCEPTION | 0)) == -1)
27272 SWIG_fail;
27273 if (arg2 == NULL) {
27274 PyErr_SetString(PyExc_TypeError,"null reference");
27275 SWIG_fail;
27276 }
27277 if (obj2) {
27278 arg3 = (bool) SWIG_AsBool(obj2);
27279 if (PyErr_Occurred()) SWIG_fail;
27280 }
27281 {
27282 PyThreadState* __tstate = wxPyBeginAllowThreads();
27283 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27284
27285 wxPyEndAllowThreads(__tstate);
27286 if (PyErr_Occurred()) SWIG_fail;
27287 }
27288 Py_INCREF(Py_None); resultobj = Py_None;
27289 return resultobj;
27290 fail:
27291 return NULL;
27292}
27293
27294
27295static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27296 PyObject *resultobj;
27297 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27298 wxTreeItemId *arg2 = 0 ;
27299 PyObject * obj0 = 0 ;
27300 PyObject * obj1 = 0 ;
27301 char *kwnames[] = {
27302 (char *) "self",(char *) "item", NULL
27303 };
27304
27305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27309 SWIG_POINTER_EXCEPTION | 0)) == -1)
27310 SWIG_fail;
27311 if (arg2 == NULL) {
27312 PyErr_SetString(PyExc_TypeError,"null reference");
27313 SWIG_fail;
27314 }
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27318
27319 wxPyEndAllowThreads(__tstate);
27320 if (PyErr_Occurred()) SWIG_fail;
27321 }
27322 Py_INCREF(Py_None); resultobj = Py_None;
27323 return resultobj;
27324 fail:
27325 return NULL;
27326}
27327
27328
27329static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
27330 PyObject *resultobj;
27331 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27332 wxTreeItemId *arg2 = 0 ;
27333 PyObject * obj0 = 0 ;
27334 PyObject * obj1 = 0 ;
27335 char *kwnames[] = {
27336 (char *) "self",(char *) "item", NULL
27337 };
27338
27339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27342 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27343 SWIG_POINTER_EXCEPTION | 0)) == -1)
27344 SWIG_fail;
27345 if (arg2 == NULL) {
27346 PyErr_SetString(PyExc_TypeError,"null reference");
27347 SWIG_fail;
27348 }
27349 {
27350 PyThreadState* __tstate = wxPyBeginAllowThreads();
27351 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27352
27353 wxPyEndAllowThreads(__tstate);
27354 if (PyErr_Occurred()) SWIG_fail;
27355 }
27356 Py_INCREF(Py_None); resultobj = Py_None;
27357 return resultobj;
27358 fail:
27359 return NULL;
27360}
27361
27362
27363static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
27364 PyObject *resultobj;
27365 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27366 wxTreeItemId *arg2 = 0 ;
27367 PyObject * obj0 = 0 ;
27368 PyObject * obj1 = 0 ;
27369 char *kwnames[] = {
27370 (char *) "self",(char *) "item", NULL
27371 };
27372
27373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27377 SWIG_POINTER_EXCEPTION | 0)) == -1)
27378 SWIG_fail;
27379 if (arg2 == NULL) {
27380 PyErr_SetString(PyExc_TypeError,"null reference");
27381 SWIG_fail;
27382 }
27383 {
27384 PyThreadState* __tstate = wxPyBeginAllowThreads();
27385 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27386
27387 wxPyEndAllowThreads(__tstate);
27388 if (PyErr_Occurred()) SWIG_fail;
27389 }
27390 Py_INCREF(Py_None); resultobj = Py_None;
27391 return resultobj;
27392 fail:
27393 return NULL;
27394}
27395
27396
27397static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27398 PyObject *resultobj;
27399 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27400 wxTreeItemId *arg2 = 0 ;
27401 PyObject * obj0 = 0 ;
27402 PyObject * obj1 = 0 ;
27403 char *kwnames[] = {
27404 (char *) "self",(char *) "item", NULL
27405 };
27406
27407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27411 SWIG_POINTER_EXCEPTION | 0)) == -1)
27412 SWIG_fail;
27413 if (arg2 == NULL) {
27414 PyErr_SetString(PyExc_TypeError,"null reference");
27415 SWIG_fail;
27416 }
27417 {
27418 PyThreadState* __tstate = wxPyBeginAllowThreads();
27419 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27420
27421 wxPyEndAllowThreads(__tstate);
27422 if (PyErr_Occurred()) SWIG_fail;
27423 }
27424 Py_INCREF(Py_None); resultobj = Py_None;
27425 return resultobj;
27426 fail:
27427 return NULL;
27428}
27429
27430
27431static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27432 PyObject *resultobj;
27433 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27434 wxTextCtrl *result;
27435 PyObject * obj0 = 0 ;
27436 char *kwnames[] = {
27437 (char *) "self", NULL
27438 };
27439
27440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27443 {
27444 PyThreadState* __tstate = wxPyBeginAllowThreads();
27445 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27446
27447 wxPyEndAllowThreads(__tstate);
27448 if (PyErr_Occurred()) SWIG_fail;
27449 }
27450 {
27451 resultobj = wxPyMake_wxObject(result);
27452 }
27453 return resultobj;
27454 fail:
27455 return NULL;
27456}
27457
27458
27459static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27460 PyObject *resultobj;
27461 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27462 wxTreeItemId *arg2 = 0 ;
27463 PyObject * obj0 = 0 ;
27464 PyObject * obj1 = 0 ;
27465 char *kwnames[] = {
27466 (char *) "self",(char *) "item", NULL
27467 };
27468
27469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27473 SWIG_POINTER_EXCEPTION | 0)) == -1)
27474 SWIG_fail;
27475 if (arg2 == NULL) {
27476 PyErr_SetString(PyExc_TypeError,"null reference");
27477 SWIG_fail;
27478 }
27479 {
27480 PyThreadState* __tstate = wxPyBeginAllowThreads();
27481 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27482
27483 wxPyEndAllowThreads(__tstate);
27484 if (PyErr_Occurred()) SWIG_fail;
27485 }
27486 Py_INCREF(Py_None); resultobj = Py_None;
27487 return resultobj;
27488 fail:
27489 return NULL;
27490}
27491
27492
27493static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27494 PyObject *resultobj;
27495 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27496 wxPoint *arg2 = 0 ;
27497 int *arg3 = 0 ;
27498 wxTreeItemId result;
27499 wxPoint temp2 ;
27500 int temp3 ;
27501 PyObject * obj0 = 0 ;
27502 PyObject * obj1 = 0 ;
27503 char *kwnames[] = {
27504 (char *) "self",(char *) "point", NULL
27505 };
27506
27507 arg3 = &temp3;
27508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27511 {
27512 arg2 = &temp2;
27513 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27514 }
27515 {
27516 PyThreadState* __tstate = wxPyBeginAllowThreads();
27517 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27518
27519 wxPyEndAllowThreads(__tstate);
27520 if (PyErr_Occurred()) SWIG_fail;
27521 }
27522 {
27523 wxTreeItemId * resultptr;
27524 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27526 }
27527 {
27528 PyObject *o = PyInt_FromLong((long) (*arg3));
27529 resultobj = t_output_helper(resultobj,o);
27530 }
27531 return resultobj;
27532 fail:
27533 return NULL;
27534}
27535
27536
27537static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
27538 PyObject *resultobj;
27539 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27540 wxTreeItemId *arg2 = 0 ;
27541 bool arg3 = (bool) False ;
27542 PyObject *result;
27543 PyObject * obj0 = 0 ;
27544 PyObject * obj1 = 0 ;
27545 PyObject * obj2 = 0 ;
27546 char *kwnames[] = {
27547 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27548 };
27549
27550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27554 SWIG_POINTER_EXCEPTION | 0)) == -1)
27555 SWIG_fail;
27556 if (arg2 == NULL) {
27557 PyErr_SetString(PyExc_TypeError,"null reference");
27558 SWIG_fail;
27559 }
27560 if (obj2) {
27561 arg3 = (bool) SWIG_AsBool(obj2);
27562 if (PyErr_Occurred()) SWIG_fail;
27563 }
27564 {
27565 PyThreadState* __tstate = wxPyBeginAllowThreads();
27566 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27567
27568 wxPyEndAllowThreads(__tstate);
27569 if (PyErr_Occurred()) SWIG_fail;
27570 }
27571 resultobj = result;
27572 return resultobj;
27573 fail:
27574 return NULL;
27575}
27576
27577
27578static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27579 PyObject *resultobj;
27580 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27581 wxVisualAttributes result;
27582 PyObject * obj0 = 0 ;
27583 char *kwnames[] = {
27584 (char *) "variant", NULL
27585 };
27586
27587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27588 if (obj0) {
27589 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
27590 if (PyErr_Occurred()) SWIG_fail;
27591 }
27592 {
27593 PyThreadState* __tstate = wxPyBeginAllowThreads();
27594 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27595
27596 wxPyEndAllowThreads(__tstate);
27597 if (PyErr_Occurred()) SWIG_fail;
27598 }
27599 {
27600 wxVisualAttributes * resultptr;
27601 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27602 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27603 }
27604 return resultobj;
27605 fail:
27606 return NULL;
27607}
27608
27609
27610static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
27611 PyObject *obj;
27612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27613 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27614 Py_INCREF(obj);
27615 return Py_BuildValue((char *)"");
27616}
27617static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
27618 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27619 return 1;
27620}
27621
27622
27623static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27624 PyObject *pyobj;
27625
27626 {
27627#if wxUSE_UNICODE
27628 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27629#else
27630 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27631#endif
27632 }
27633 return pyobj;
27634}
27635
27636
27637static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27638 PyObject *resultobj;
27639 wxWindow *arg1 = (wxWindow *) 0 ;
27640 int arg2 = (int) (int)-1 ;
27641 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27642 wxString *arg3 = (wxString *) &arg3_defvalue ;
27643 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27644 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27645 wxSize const &arg5_defvalue = wxDefaultSize ;
27646 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27647 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27648 wxString const &arg7_defvalue = wxPyEmptyString ;
27649 wxString *arg7 = (wxString *) &arg7_defvalue ;
27650 int arg8 = (int) 0 ;
27651 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27652 wxString *arg9 = (wxString *) &arg9_defvalue ;
27653 wxGenericDirCtrl *result;
27654 bool temp3 = False ;
27655 wxPoint temp4 ;
27656 wxSize temp5 ;
27657 bool temp7 = False ;
27658 bool temp9 = False ;
27659 PyObject * obj0 = 0 ;
27660 PyObject * obj1 = 0 ;
27661 PyObject * obj2 = 0 ;
27662 PyObject * obj3 = 0 ;
27663 PyObject * obj4 = 0 ;
27664 PyObject * obj5 = 0 ;
27665 PyObject * obj6 = 0 ;
27666 PyObject * obj7 = 0 ;
27667 PyObject * obj8 = 0 ;
27668 char *kwnames[] = {
27669 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27670 };
27671
27672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
27673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27675 if (obj1) {
27676 arg2 = (int const) SWIG_AsInt(obj1);
27677 if (PyErr_Occurred()) SWIG_fail;
27678 }
27679 if (obj2) {
27680 {
27681 arg3 = wxString_in_helper(obj2);
27682 if (arg3 == NULL) SWIG_fail;
27683 temp3 = True;
27684 }
27685 }
27686 if (obj3) {
27687 {
27688 arg4 = &temp4;
27689 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27690 }
27691 }
27692 if (obj4) {
27693 {
27694 arg5 = &temp5;
27695 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27696 }
27697 }
27698 if (obj5) {
27699 arg6 = (long) SWIG_AsLong(obj5);
27700 if (PyErr_Occurred()) SWIG_fail;
27701 }
27702 if (obj6) {
27703 {
27704 arg7 = wxString_in_helper(obj6);
27705 if (arg7 == NULL) SWIG_fail;
27706 temp7 = True;
27707 }
27708 }
27709 if (obj7) {
27710 arg8 = (int) SWIG_AsInt(obj7);
27711 if (PyErr_Occurred()) SWIG_fail;
27712 }
27713 if (obj8) {
27714 {
27715 arg9 = wxString_in_helper(obj8);
27716 if (arg9 == NULL) SWIG_fail;
27717 temp9 = True;
27718 }
27719 }
27720 {
27721 PyThreadState* __tstate = wxPyBeginAllowThreads();
27722 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
27723
27724 wxPyEndAllowThreads(__tstate);
27725 if (PyErr_Occurred()) SWIG_fail;
27726 }
27727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27728 {
27729 if (temp3)
27730 delete arg3;
27731 }
27732 {
27733 if (temp7)
27734 delete arg7;
27735 }
27736 {
27737 if (temp9)
27738 delete arg9;
27739 }
27740 return resultobj;
27741 fail:
27742 {
27743 if (temp3)
27744 delete arg3;
27745 }
27746 {
27747 if (temp7)
27748 delete arg7;
27749 }
27750 {
27751 if (temp9)
27752 delete arg9;
27753 }
27754 return NULL;
27755}
27756
27757
27758static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27759 PyObject *resultobj;
27760 wxGenericDirCtrl *result;
27761 char *kwnames[] = {
27762 NULL
27763 };
27764
27765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
27766 {
27767 PyThreadState* __tstate = wxPyBeginAllowThreads();
27768 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
27769
27770 wxPyEndAllowThreads(__tstate);
27771 if (PyErr_Occurred()) SWIG_fail;
27772 }
27773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27774 return resultobj;
27775 fail:
27776 return NULL;
27777}
27778
27779
27780static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27781 PyObject *resultobj;
27782 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27783 wxWindow *arg2 = (wxWindow *) 0 ;
27784 int arg3 = (int) (int)-1 ;
27785 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
27786 wxString *arg4 = (wxString *) &arg4_defvalue ;
27787 wxPoint const &arg5_defvalue = wxDefaultPosition ;
27788 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
27789 wxSize const &arg6_defvalue = wxDefaultSize ;
27790 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
27791 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27792 wxString const &arg8_defvalue = wxPyEmptyString ;
27793 wxString *arg8 = (wxString *) &arg8_defvalue ;
27794 int arg9 = (int) 0 ;
27795 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
27796 wxString *arg10 = (wxString *) &arg10_defvalue ;
27797 bool result;
27798 bool temp4 = False ;
27799 wxPoint temp5 ;
27800 wxSize temp6 ;
27801 bool temp8 = False ;
27802 bool temp10 = False ;
27803 PyObject * obj0 = 0 ;
27804 PyObject * obj1 = 0 ;
27805 PyObject * obj2 = 0 ;
27806 PyObject * obj3 = 0 ;
27807 PyObject * obj4 = 0 ;
27808 PyObject * obj5 = 0 ;
27809 PyObject * obj6 = 0 ;
27810 PyObject * obj7 = 0 ;
27811 PyObject * obj8 = 0 ;
27812 PyObject * obj9 = 0 ;
27813 char *kwnames[] = {
27814 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27815 };
27816
27817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
27818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
27821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27822 if (obj2) {
27823 arg3 = (int const) SWIG_AsInt(obj2);
27824 if (PyErr_Occurred()) SWIG_fail;
27825 }
27826 if (obj3) {
27827 {
27828 arg4 = wxString_in_helper(obj3);
27829 if (arg4 == NULL) SWIG_fail;
27830 temp4 = True;
27831 }
27832 }
27833 if (obj4) {
27834 {
27835 arg5 = &temp5;
27836 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
27837 }
27838 }
27839 if (obj5) {
27840 {
27841 arg6 = &temp6;
27842 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
27843 }
27844 }
27845 if (obj6) {
27846 arg7 = (long) SWIG_AsLong(obj6);
27847 if (PyErr_Occurred()) SWIG_fail;
27848 }
27849 if (obj7) {
27850 {
27851 arg8 = wxString_in_helper(obj7);
27852 if (arg8 == NULL) SWIG_fail;
27853 temp8 = True;
27854 }
27855 }
27856 if (obj8) {
27857 arg9 = (int) SWIG_AsInt(obj8);
27858 if (PyErr_Occurred()) SWIG_fail;
27859 }
27860 if (obj9) {
27861 {
27862 arg10 = wxString_in_helper(obj9);
27863 if (arg10 == NULL) SWIG_fail;
27864 temp10 = True;
27865 }
27866 }
27867 {
27868 PyThreadState* __tstate = wxPyBeginAllowThreads();
27869 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
27870
27871 wxPyEndAllowThreads(__tstate);
27872 if (PyErr_Occurred()) SWIG_fail;
27873 }
27874 {
27875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27876 }
27877 {
27878 if (temp4)
27879 delete arg4;
27880 }
27881 {
27882 if (temp8)
27883 delete arg8;
27884 }
27885 {
27886 if (temp10)
27887 delete arg10;
27888 }
27889 return resultobj;
27890 fail:
27891 {
27892 if (temp4)
27893 delete arg4;
27894 }
27895 {
27896 if (temp8)
27897 delete arg8;
27898 }
27899 {
27900 if (temp10)
27901 delete arg10;
27902 }
27903 return NULL;
27904}
27905
27906
27907static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27908 PyObject *resultobj;
27909 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27910 wxString *arg2 = 0 ;
27911 bool result;
27912 bool temp2 = False ;
27913 PyObject * obj0 = 0 ;
27914 PyObject * obj1 = 0 ;
27915 char *kwnames[] = {
27916 (char *) "self",(char *) "path", NULL
27917 };
27918
27919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
27920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27922 {
27923 arg2 = wxString_in_helper(obj1);
27924 if (arg2 == NULL) SWIG_fail;
27925 temp2 = True;
27926 }
27927 {
27928 PyThreadState* __tstate = wxPyBeginAllowThreads();
27929 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
27930
27931 wxPyEndAllowThreads(__tstate);
27932 if (PyErr_Occurred()) SWIG_fail;
27933 }
27934 {
27935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27936 }
27937 {
27938 if (temp2)
27939 delete arg2;
27940 }
27941 return resultobj;
27942 fail:
27943 {
27944 if (temp2)
27945 delete arg2;
27946 }
27947 return NULL;
27948}
27949
27950
27951static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27952 PyObject *resultobj;
27953 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27954 wxString result;
27955 PyObject * obj0 = 0 ;
27956 char *kwnames[] = {
27957 (char *) "self", NULL
27958 };
27959
27960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
27961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27963 {
27964 PyThreadState* __tstate = wxPyBeginAllowThreads();
27965 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
27966
27967 wxPyEndAllowThreads(__tstate);
27968 if (PyErr_Occurred()) SWIG_fail;
27969 }
27970 {
27971#if wxUSE_UNICODE
27972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27973#else
27974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27975#endif
27976 }
27977 return resultobj;
27978 fail:
27979 return NULL;
27980}
27981
27982
27983static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
27984 PyObject *resultobj;
27985 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27986 wxString *arg2 = 0 ;
27987 bool temp2 = False ;
27988 PyObject * obj0 = 0 ;
27989 PyObject * obj1 = 0 ;
27990 char *kwnames[] = {
27991 (char *) "self",(char *) "path", NULL
27992 };
27993
27994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
27995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
27996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27997 {
27998 arg2 = wxString_in_helper(obj1);
27999 if (arg2 == NULL) SWIG_fail;
28000 temp2 = True;
28001 }
28002 {
28003 PyThreadState* __tstate = wxPyBeginAllowThreads();
28004 (arg1)->SetDefaultPath((wxString const &)*arg2);
28005
28006 wxPyEndAllowThreads(__tstate);
28007 if (PyErr_Occurred()) SWIG_fail;
28008 }
28009 Py_INCREF(Py_None); resultobj = Py_None;
28010 {
28011 if (temp2)
28012 delete arg2;
28013 }
28014 return resultobj;
28015 fail:
28016 {
28017 if (temp2)
28018 delete arg2;
28019 }
28020 return NULL;
28021}
28022
28023
28024static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28025 PyObject *resultobj;
28026 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28027 wxString result;
28028 PyObject * obj0 = 0 ;
28029 char *kwnames[] = {
28030 (char *) "self", NULL
28031 };
28032
28033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28036 {
28037 PyThreadState* __tstate = wxPyBeginAllowThreads();
28038 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28039
28040 wxPyEndAllowThreads(__tstate);
28041 if (PyErr_Occurred()) SWIG_fail;
28042 }
28043 {
28044#if wxUSE_UNICODE
28045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28046#else
28047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28048#endif
28049 }
28050 return resultobj;
28051 fail:
28052 return NULL;
28053}
28054
28055
28056static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
28057 PyObject *resultobj;
28058 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28059 wxString result;
28060 PyObject * obj0 = 0 ;
28061 char *kwnames[] = {
28062 (char *) "self", NULL
28063 };
28064
28065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28068 {
28069 PyThreadState* __tstate = wxPyBeginAllowThreads();
28070 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28071
28072 wxPyEndAllowThreads(__tstate);
28073 if (PyErr_Occurred()) SWIG_fail;
28074 }
28075 {
28076#if wxUSE_UNICODE
28077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28078#else
28079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28080#endif
28081 }
28082 return resultobj;
28083 fail:
28084 return NULL;
28085}
28086
28087
28088static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28089 PyObject *resultobj;
28090 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28091 wxString *arg2 = 0 ;
28092 bool temp2 = False ;
28093 PyObject * obj0 = 0 ;
28094 PyObject * obj1 = 0 ;
28095 char *kwnames[] = {
28096 (char *) "self",(char *) "path", NULL
28097 };
28098
28099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28102 {
28103 arg2 = wxString_in_helper(obj1);
28104 if (arg2 == NULL) SWIG_fail;
28105 temp2 = True;
28106 }
28107 {
28108 PyThreadState* __tstate = wxPyBeginAllowThreads();
28109 (arg1)->SetPath((wxString const &)*arg2);
28110
28111 wxPyEndAllowThreads(__tstate);
28112 if (PyErr_Occurred()) SWIG_fail;
28113 }
28114 Py_INCREF(Py_None); resultobj = Py_None;
28115 {
28116 if (temp2)
28117 delete arg2;
28118 }
28119 return resultobj;
28120 fail:
28121 {
28122 if (temp2)
28123 delete arg2;
28124 }
28125 return NULL;
28126}
28127
28128
28129static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28130 PyObject *resultobj;
28131 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28132 bool arg2 ;
28133 PyObject * obj0 = 0 ;
28134 PyObject * obj1 = 0 ;
28135 char *kwnames[] = {
28136 (char *) "self",(char *) "show", NULL
28137 };
28138
28139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28142 arg2 = (bool) SWIG_AsBool(obj1);
28143 if (PyErr_Occurred()) SWIG_fail;
28144 {
28145 PyThreadState* __tstate = wxPyBeginAllowThreads();
28146 (arg1)->ShowHidden(arg2);
28147
28148 wxPyEndAllowThreads(__tstate);
28149 if (PyErr_Occurred()) SWIG_fail;
28150 }
28151 Py_INCREF(Py_None); resultobj = Py_None;
28152 return resultobj;
28153 fail:
28154 return NULL;
28155}
28156
28157
28158static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28159 PyObject *resultobj;
28160 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28161 bool result;
28162 PyObject * obj0 = 0 ;
28163 char *kwnames[] = {
28164 (char *) "self", NULL
28165 };
28166
28167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28170 {
28171 PyThreadState* __tstate = wxPyBeginAllowThreads();
28172 result = (bool)(arg1)->GetShowHidden();
28173
28174 wxPyEndAllowThreads(__tstate);
28175 if (PyErr_Occurred()) SWIG_fail;
28176 }
28177 {
28178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28179 }
28180 return resultobj;
28181 fail:
28182 return NULL;
28183}
28184
28185
28186static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28187 PyObject *resultobj;
28188 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28189 wxString result;
28190 PyObject * obj0 = 0 ;
28191 char *kwnames[] = {
28192 (char *) "self", NULL
28193 };
28194
28195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28198 {
28199 PyThreadState* __tstate = wxPyBeginAllowThreads();
28200 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28201
28202 wxPyEndAllowThreads(__tstate);
28203 if (PyErr_Occurred()) SWIG_fail;
28204 }
28205 {
28206#if wxUSE_UNICODE
28207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28208#else
28209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28210#endif
28211 }
28212 return resultobj;
28213 fail:
28214 return NULL;
28215}
28216
28217
28218static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28219 PyObject *resultobj;
28220 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28221 wxString *arg2 = 0 ;
28222 bool temp2 = False ;
28223 PyObject * obj0 = 0 ;
28224 PyObject * obj1 = 0 ;
28225 char *kwnames[] = {
28226 (char *) "self",(char *) "filter", NULL
28227 };
28228
28229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28232 {
28233 arg2 = wxString_in_helper(obj1);
28234 if (arg2 == NULL) SWIG_fail;
28235 temp2 = True;
28236 }
28237 {
28238 PyThreadState* __tstate = wxPyBeginAllowThreads();
28239 (arg1)->SetFilter((wxString const &)*arg2);
28240
28241 wxPyEndAllowThreads(__tstate);
28242 if (PyErr_Occurred()) SWIG_fail;
28243 }
28244 Py_INCREF(Py_None); resultobj = Py_None;
28245 {
28246 if (temp2)
28247 delete arg2;
28248 }
28249 return resultobj;
28250 fail:
28251 {
28252 if (temp2)
28253 delete arg2;
28254 }
28255 return NULL;
28256}
28257
28258
28259static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28260 PyObject *resultobj;
28261 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28262 int result;
28263 PyObject * obj0 = 0 ;
28264 char *kwnames[] = {
28265 (char *) "self", NULL
28266 };
28267
28268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28271 {
28272 PyThreadState* __tstate = wxPyBeginAllowThreads();
28273 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28274
28275 wxPyEndAllowThreads(__tstate);
28276 if (PyErr_Occurred()) SWIG_fail;
28277 }
28278 resultobj = SWIG_FromInt((int)result);
28279 return resultobj;
28280 fail:
28281 return NULL;
28282}
28283
28284
28285static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28286 PyObject *resultobj;
28287 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28288 int arg2 ;
28289 PyObject * obj0 = 0 ;
28290 PyObject * obj1 = 0 ;
28291 char *kwnames[] = {
28292 (char *) "self",(char *) "n", NULL
28293 };
28294
28295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28298 arg2 = (int) SWIG_AsInt(obj1);
28299 if (PyErr_Occurred()) SWIG_fail;
28300 {
28301 PyThreadState* __tstate = wxPyBeginAllowThreads();
28302 (arg1)->SetFilterIndex(arg2);
28303
28304 wxPyEndAllowThreads(__tstate);
28305 if (PyErr_Occurred()) SWIG_fail;
28306 }
28307 Py_INCREF(Py_None); resultobj = Py_None;
28308 return resultobj;
28309 fail:
28310 return NULL;
28311}
28312
28313
28314static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
28315 PyObject *resultobj;
28316 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28317 wxTreeItemId result;
28318 PyObject * obj0 = 0 ;
28319 char *kwnames[] = {
28320 (char *) "self", NULL
28321 };
28322
28323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28326 {
28327 PyThreadState* __tstate = wxPyBeginAllowThreads();
28328 result = (arg1)->GetRootId();
28329
28330 wxPyEndAllowThreads(__tstate);
28331 if (PyErr_Occurred()) SWIG_fail;
28332 }
28333 {
28334 wxTreeItemId * resultptr;
28335 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28336 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28337 }
28338 return resultobj;
28339 fail:
28340 return NULL;
28341}
28342
28343
28344static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28345 PyObject *resultobj;
28346 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28347 wxPyTreeCtrl *result;
28348 PyObject * obj0 = 0 ;
28349 char *kwnames[] = {
28350 (char *) "self", NULL
28351 };
28352
28353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28356 {
28357 PyThreadState* __tstate = wxPyBeginAllowThreads();
28358 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28359
28360 wxPyEndAllowThreads(__tstate);
28361 if (PyErr_Occurred()) SWIG_fail;
28362 }
28363 {
28364 resultobj = wxPyMake_wxObject(result);
28365 }
28366 return resultobj;
28367 fail:
28368 return NULL;
28369}
28370
28371
28372static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28373 PyObject *resultobj;
28374 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28375 wxDirFilterListCtrl *result;
28376 PyObject * obj0 = 0 ;
28377 char *kwnames[] = {
28378 (char *) "self", NULL
28379 };
28380
28381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28384 {
28385 PyThreadState* __tstate = wxPyBeginAllowThreads();
28386 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28387
28388 wxPyEndAllowThreads(__tstate);
28389 if (PyErr_Occurred()) SWIG_fail;
28390 }
28391 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28392 return resultobj;
28393 fail:
28394 return NULL;
28395}
28396
28397
28398static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28399 PyObject *resultobj;
28400 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28401 wxTreeItemId arg2 ;
28402 wxString *arg3 = 0 ;
28403 bool *arg4 = 0 ;
28404 wxTreeItemId result;
28405 wxTreeItemId *argp2 ;
28406 bool temp3 = False ;
28407 bool temp4 ;
28408 PyObject * obj0 = 0 ;
28409 PyObject * obj1 = 0 ;
28410 PyObject * obj2 = 0 ;
28411 char *kwnames[] = {
28412 (char *) "self",(char *) "parentId",(char *) "path", NULL
28413 };
28414
28415 arg4 = &temp4;
28416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28419 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28420 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28421 arg2 = *argp2;
28422 {
28423 arg3 = wxString_in_helper(obj2);
28424 if (arg3 == NULL) SWIG_fail;
28425 temp3 = True;
28426 }
28427 {
28428 PyThreadState* __tstate = wxPyBeginAllowThreads();
28429 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28430
28431 wxPyEndAllowThreads(__tstate);
28432 if (PyErr_Occurred()) SWIG_fail;
28433 }
28434 {
28435 wxTreeItemId * resultptr;
28436 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28437 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28438 }
28439 {
28440 PyObject *o = PyInt_FromLong((long) (*arg4));
28441 resultobj = t_output_helper(resultobj,o);
28442 }
28443 {
28444 if (temp3)
28445 delete arg3;
28446 }
28447 return resultobj;
28448 fail:
28449 {
28450 if (temp3)
28451 delete arg3;
28452 }
28453 return NULL;
28454}
28455
28456
28457static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
28458 PyObject *resultobj;
28459 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28460 PyObject * obj0 = 0 ;
28461 char *kwnames[] = {
28462 (char *) "self", NULL
28463 };
28464
28465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28468 {
28469 PyThreadState* __tstate = wxPyBeginAllowThreads();
28470 (arg1)->DoResize();
28471
28472 wxPyEndAllowThreads(__tstate);
28473 if (PyErr_Occurred()) SWIG_fail;
28474 }
28475 Py_INCREF(Py_None); resultobj = Py_None;
28476 return resultobj;
28477 fail:
28478 return NULL;
28479}
28480
28481
28482static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
28483 PyObject *resultobj;
28484 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28485 PyObject * obj0 = 0 ;
28486 char *kwnames[] = {
28487 (char *) "self", NULL
28488 };
28489
28490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28493 {
28494 PyThreadState* __tstate = wxPyBeginAllowThreads();
28495 (arg1)->ReCreateTree();
28496
28497 wxPyEndAllowThreads(__tstate);
28498 if (PyErr_Occurred()) SWIG_fail;
28499 }
28500 Py_INCREF(Py_None); resultobj = Py_None;
28501 return resultobj;
28502 fail:
28503 return NULL;
28504}
28505
28506
28507static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
28508 PyObject *obj;
28509 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28510 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28511 Py_INCREF(obj);
28512 return Py_BuildValue((char *)"");
28513}
28514static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28515 PyObject *resultobj;
28516 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28517 int arg2 = (int) (int)-1 ;
28518 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28519 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28520 wxSize const &arg4_defvalue = wxDefaultSize ;
28521 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28522 long arg5 = (long) 0 ;
28523 wxDirFilterListCtrl *result;
28524 wxPoint temp3 ;
28525 wxSize temp4 ;
28526 PyObject * obj0 = 0 ;
28527 PyObject * obj1 = 0 ;
28528 PyObject * obj2 = 0 ;
28529 PyObject * obj3 = 0 ;
28530 PyObject * obj4 = 0 ;
28531 char *kwnames[] = {
28532 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28533 };
28534
28535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28538 if (obj1) {
28539 arg2 = (int const) SWIG_AsInt(obj1);
28540 if (PyErr_Occurred()) SWIG_fail;
28541 }
28542 if (obj2) {
28543 {
28544 arg3 = &temp3;
28545 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28546 }
28547 }
28548 if (obj3) {
28549 {
28550 arg4 = &temp4;
28551 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28552 }
28553 }
28554 if (obj4) {
28555 arg5 = (long) SWIG_AsLong(obj4);
28556 if (PyErr_Occurred()) SWIG_fail;
28557 }
28558 {
28559 PyThreadState* __tstate = wxPyBeginAllowThreads();
28560 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28561
28562 wxPyEndAllowThreads(__tstate);
28563 if (PyErr_Occurred()) SWIG_fail;
28564 }
28565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28566 return resultobj;
28567 fail:
28568 return NULL;
28569}
28570
28571
28572static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28573 PyObject *resultobj;
28574 wxDirFilterListCtrl *result;
28575 char *kwnames[] = {
28576 NULL
28577 };
28578
28579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28580 {
28581 PyThreadState* __tstate = wxPyBeginAllowThreads();
28582 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28583
28584 wxPyEndAllowThreads(__tstate);
28585 if (PyErr_Occurred()) SWIG_fail;
28586 }
28587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28588 return resultobj;
28589 fail:
28590 return NULL;
28591}
28592
28593
28594static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28595 PyObject *resultobj;
28596 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28597 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28598 int arg3 = (int) (int)-1 ;
28599 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28600 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28601 wxSize const &arg5_defvalue = wxDefaultSize ;
28602 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28603 long arg6 = (long) 0 ;
28604 bool result;
28605 wxPoint temp4 ;
28606 wxSize temp5 ;
28607 PyObject * obj0 = 0 ;
28608 PyObject * obj1 = 0 ;
28609 PyObject * obj2 = 0 ;
28610 PyObject * obj3 = 0 ;
28611 PyObject * obj4 = 0 ;
28612 PyObject * obj5 = 0 ;
28613 char *kwnames[] = {
28614 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28615 };
28616
28617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28620 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28622 if (obj2) {
28623 arg3 = (int const) SWIG_AsInt(obj2);
28624 if (PyErr_Occurred()) SWIG_fail;
28625 }
28626 if (obj3) {
28627 {
28628 arg4 = &temp4;
28629 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28630 }
28631 }
28632 if (obj4) {
28633 {
28634 arg5 = &temp5;
28635 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28636 }
28637 }
28638 if (obj5) {
28639 arg6 = (long) SWIG_AsLong(obj5);
28640 if (PyErr_Occurred()) SWIG_fail;
28641 }
28642 {
28643 PyThreadState* __tstate = wxPyBeginAllowThreads();
28644 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28645
28646 wxPyEndAllowThreads(__tstate);
28647 if (PyErr_Occurred()) SWIG_fail;
28648 }
28649 {
28650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28651 }
28652 return resultobj;
28653 fail:
28654 return NULL;
28655}
28656
28657
28658static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
28659 PyObject *resultobj;
28660 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28661 wxString *arg2 = 0 ;
28662 int arg3 ;
28663 bool temp2 = False ;
28664 PyObject * obj0 = 0 ;
28665 PyObject * obj1 = 0 ;
28666 PyObject * obj2 = 0 ;
28667 char *kwnames[] = {
28668 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
28669 };
28670
28671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
28672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28674 {
28675 arg2 = wxString_in_helper(obj1);
28676 if (arg2 == NULL) SWIG_fail;
28677 temp2 = True;
28678 }
28679 arg3 = (int) SWIG_AsInt(obj2);
28680 if (PyErr_Occurred()) SWIG_fail;
28681 {
28682 PyThreadState* __tstate = wxPyBeginAllowThreads();
28683 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
28684
28685 wxPyEndAllowThreads(__tstate);
28686 if (PyErr_Occurred()) SWIG_fail;
28687 }
28688 Py_INCREF(Py_None); resultobj = Py_None;
28689 {
28690 if (temp2)
28691 delete arg2;
28692 }
28693 return resultobj;
28694 fail:
28695 {
28696 if (temp2)
28697 delete arg2;
28698 }
28699 return NULL;
28700}
28701
28702
28703static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
28704 PyObject *obj;
28705 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28706 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
28707 Py_INCREF(obj);
28708 return Py_BuildValue((char *)"");
28709}
28710static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28711 PyObject *resultobj;
28712 wxWindow *arg1 = (wxWindow *) 0 ;
28713 int arg2 ;
28714 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28715 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28716 wxSize const &arg4_defvalue = wxDefaultSize ;
28717 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28718 long arg5 = (long) 0 ;
28719 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28720 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28721 wxString const &arg7_defvalue = wxPyControlNameStr ;
28722 wxString *arg7 = (wxString *) &arg7_defvalue ;
28723 wxPyControl *result;
28724 wxPoint temp3 ;
28725 wxSize temp4 ;
28726 bool temp7 = False ;
28727 PyObject * obj0 = 0 ;
28728 PyObject * obj1 = 0 ;
28729 PyObject * obj2 = 0 ;
28730 PyObject * obj3 = 0 ;
28731 PyObject * obj4 = 0 ;
28732 PyObject * obj5 = 0 ;
28733 PyObject * obj6 = 0 ;
28734 char *kwnames[] = {
28735 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28736 };
28737
28738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
28739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28741 arg2 = (int const) SWIG_AsInt(obj1);
28742 if (PyErr_Occurred()) SWIG_fail;
28743 if (obj2) {
28744 {
28745 arg3 = &temp3;
28746 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28747 }
28748 }
28749 if (obj3) {
28750 {
28751 arg4 = &temp4;
28752 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28753 }
28754 }
28755 if (obj4) {
28756 arg5 = (long) SWIG_AsLong(obj4);
28757 if (PyErr_Occurred()) SWIG_fail;
28758 }
28759 if (obj5) {
28760 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
28761 SWIG_POINTER_EXCEPTION | 0)) == -1)
28762 SWIG_fail;
28763 if (arg6 == NULL) {
28764 PyErr_SetString(PyExc_TypeError,"null reference");
28765 SWIG_fail;
28766 }
28767 }
28768 if (obj6) {
28769 {
28770 arg7 = wxString_in_helper(obj6);
28771 if (arg7 == NULL) SWIG_fail;
28772 temp7 = True;
28773 }
28774 }
28775 {
28776 PyThreadState* __tstate = wxPyBeginAllowThreads();
28777 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28778
28779 wxPyEndAllowThreads(__tstate);
28780 if (PyErr_Occurred()) SWIG_fail;
28781 }
28782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28783 {
28784 if (temp7)
28785 delete arg7;
28786 }
28787 return resultobj;
28788 fail:
28789 {
28790 if (temp7)
28791 delete arg7;
28792 }
28793 return NULL;
28794}
28795
28796
28797static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28798 PyObject *resultobj;
28799 wxPyControl *result;
28800 char *kwnames[] = {
28801 NULL
28802 };
28803
28804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
28805 {
28806 PyThreadState* __tstate = wxPyBeginAllowThreads();
28807 result = (wxPyControl *)new wxPyControl();
28808
28809 wxPyEndAllowThreads(__tstate);
28810 if (PyErr_Occurred()) SWIG_fail;
28811 }
28812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28813 return resultobj;
28814 fail:
28815 return NULL;
28816}
28817
28818
28819static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28820 PyObject *resultobj;
28821 wxPyControl *arg1 = (wxPyControl *) 0 ;
28822 PyObject *arg2 = (PyObject *) 0 ;
28823 PyObject *arg3 = (PyObject *) 0 ;
28824 PyObject * obj0 = 0 ;
28825 PyObject * obj1 = 0 ;
28826 PyObject * obj2 = 0 ;
28827 char *kwnames[] = {
28828 (char *) "self",(char *) "self",(char *) "_class", NULL
28829 };
28830
28831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
28832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28834 arg2 = obj1;
28835 arg3 = obj2;
28836 {
28837 PyThreadState* __tstate = wxPyBeginAllowThreads();
28838 (arg1)->_setCallbackInfo(arg2,arg3);
28839
28840 wxPyEndAllowThreads(__tstate);
28841 if (PyErr_Occurred()) SWIG_fail;
28842 }
28843 Py_INCREF(Py_None); resultobj = Py_None;
28844 return resultobj;
28845 fail:
28846 return NULL;
28847}
28848
28849
a5ee0656
RD
28850static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28851 PyObject *resultobj;
28852 wxPyControl *arg1 = (wxPyControl *) 0 ;
28853 wxSize *arg2 = 0 ;
28854 wxSize temp2 ;
28855 PyObject * obj0 = 0 ;
28856 PyObject * obj1 = 0 ;
28857 char *kwnames[] = {
28858 (char *) "self",(char *) "size", NULL
28859 };
28860
28861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
28862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28864 {
28865 arg2 = &temp2;
28866 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
28867 }
28868 {
28869 PyThreadState* __tstate = wxPyBeginAllowThreads();
28870 (arg1)->SetBestSize((wxSize const &)*arg2);
28871
28872 wxPyEndAllowThreads(__tstate);
28873 if (PyErr_Occurred()) SWIG_fail;
28874 }
28875 Py_INCREF(Py_None); resultobj = Py_None;
28876 return resultobj;
28877 fail:
28878 return NULL;
28879}
28880
28881
d55e5bfc
RD
28882static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28883 PyObject *resultobj;
28884 wxPyControl *arg1 = (wxPyControl *) 0 ;
28885 int arg2 ;
28886 int arg3 ;
28887 int arg4 ;
28888 int arg5 ;
28889 PyObject * obj0 = 0 ;
28890 PyObject * obj1 = 0 ;
28891 PyObject * obj2 = 0 ;
28892 PyObject * obj3 = 0 ;
28893 PyObject * obj4 = 0 ;
28894 char *kwnames[] = {
28895 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28896 };
28897
28898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28901 arg2 = (int) SWIG_AsInt(obj1);
28902 if (PyErr_Occurred()) SWIG_fail;
28903 arg3 = (int) SWIG_AsInt(obj2);
28904 if (PyErr_Occurred()) SWIG_fail;
28905 arg4 = (int) SWIG_AsInt(obj3);
28906 if (PyErr_Occurred()) SWIG_fail;
28907 arg5 = (int) SWIG_AsInt(obj4);
28908 if (PyErr_Occurred()) SWIG_fail;
28909 {
28910 PyThreadState* __tstate = wxPyBeginAllowThreads();
28911 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
28912
28913 wxPyEndAllowThreads(__tstate);
28914 if (PyErr_Occurred()) SWIG_fail;
28915 }
28916 Py_INCREF(Py_None); resultobj = Py_None;
28917 return resultobj;
28918 fail:
28919 return NULL;
28920}
28921
28922
28923static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28924 PyObject *resultobj;
28925 wxPyControl *arg1 = (wxPyControl *) 0 ;
28926 int arg2 ;
28927 int arg3 ;
28928 int arg4 ;
28929 int arg5 ;
28930 int arg6 = (int) wxSIZE_AUTO ;
28931 PyObject * obj0 = 0 ;
28932 PyObject * obj1 = 0 ;
28933 PyObject * obj2 = 0 ;
28934 PyObject * obj3 = 0 ;
28935 PyObject * obj4 = 0 ;
28936 PyObject * obj5 = 0 ;
28937 char *kwnames[] = {
28938 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
28939 };
28940
28941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28944 arg2 = (int) SWIG_AsInt(obj1);
28945 if (PyErr_Occurred()) SWIG_fail;
28946 arg3 = (int) SWIG_AsInt(obj2);
28947 if (PyErr_Occurred()) SWIG_fail;
28948 arg4 = (int) SWIG_AsInt(obj3);
28949 if (PyErr_Occurred()) SWIG_fail;
28950 arg5 = (int) SWIG_AsInt(obj4);
28951 if (PyErr_Occurred()) SWIG_fail;
28952 if (obj5) {
28953 arg6 = (int) SWIG_AsInt(obj5);
28954 if (PyErr_Occurred()) SWIG_fail;
28955 }
28956 {
28957 PyThreadState* __tstate = wxPyBeginAllowThreads();
28958 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
28959
28960 wxPyEndAllowThreads(__tstate);
28961 if (PyErr_Occurred()) SWIG_fail;
28962 }
28963 Py_INCREF(Py_None); resultobj = Py_None;
28964 return resultobj;
28965 fail:
28966 return NULL;
28967}
28968
28969
28970static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
28971 PyObject *resultobj;
28972 wxPyControl *arg1 = (wxPyControl *) 0 ;
28973 int arg2 ;
28974 int arg3 ;
28975 PyObject * obj0 = 0 ;
28976 PyObject * obj1 = 0 ;
28977 PyObject * obj2 = 0 ;
28978 char *kwnames[] = {
28979 (char *) "self",(char *) "width",(char *) "height", NULL
28980 };
28981
28982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
28983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
28984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28985 arg2 = (int) SWIG_AsInt(obj1);
28986 if (PyErr_Occurred()) SWIG_fail;
28987 arg3 = (int) SWIG_AsInt(obj2);
28988 if (PyErr_Occurred()) SWIG_fail;
28989 {
28990 PyThreadState* __tstate = wxPyBeginAllowThreads();
28991 (arg1)->base_DoSetClientSize(arg2,arg3);
28992
28993 wxPyEndAllowThreads(__tstate);
28994 if (PyErr_Occurred()) SWIG_fail;
28995 }
28996 Py_INCREF(Py_None); resultobj = Py_None;
28997 return resultobj;
28998 fail:
28999 return NULL;
29000}
29001
29002
29003static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29004 PyObject *resultobj;
29005 wxPyControl *arg1 = (wxPyControl *) 0 ;
29006 int arg2 ;
29007 int arg3 ;
29008 PyObject * obj0 = 0 ;
29009 PyObject * obj1 = 0 ;
29010 PyObject * obj2 = 0 ;
29011 char *kwnames[] = {
29012 (char *) "self",(char *) "x",(char *) "y", NULL
29013 };
29014
29015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29018 arg2 = (int) SWIG_AsInt(obj1);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 arg3 = (int) SWIG_AsInt(obj2);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 {
29023 PyThreadState* __tstate = wxPyBeginAllowThreads();
29024 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29025
29026 wxPyEndAllowThreads(__tstate);
29027 if (PyErr_Occurred()) SWIG_fail;
29028 }
29029 Py_INCREF(Py_None); resultobj = Py_None;
29030 return resultobj;
29031 fail:
29032 return NULL;
29033}
29034
29035
29036static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29037 PyObject *resultobj;
29038 wxPyControl *arg1 = (wxPyControl *) 0 ;
29039 int *arg2 = (int *) 0 ;
29040 int *arg3 = (int *) 0 ;
29041 int temp2 ;
29042 int temp3 ;
29043 PyObject * obj0 = 0 ;
29044 char *kwnames[] = {
29045 (char *) "self", NULL
29046 };
29047
29048 arg2 = &temp2;
29049 arg3 = &temp3;
29050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29053 {
29054 PyThreadState* __tstate = wxPyBeginAllowThreads();
29055 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29056
29057 wxPyEndAllowThreads(__tstate);
29058 if (PyErr_Occurred()) SWIG_fail;
29059 }
29060 Py_INCREF(Py_None); resultobj = Py_None;
29061 {
29062 PyObject *o = PyInt_FromLong((long) (*arg2));
29063 resultobj = t_output_helper(resultobj,o);
29064 }
29065 {
29066 PyObject *o = PyInt_FromLong((long) (*arg3));
29067 resultobj = t_output_helper(resultobj,o);
29068 }
29069 return resultobj;
29070 fail:
29071 return NULL;
29072}
29073
29074
29075static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29076 PyObject *resultobj;
29077 wxPyControl *arg1 = (wxPyControl *) 0 ;
29078 int *arg2 = (int *) 0 ;
29079 int *arg3 = (int *) 0 ;
29080 int temp2 ;
29081 int temp3 ;
29082 PyObject * obj0 = 0 ;
29083 char *kwnames[] = {
29084 (char *) "self", NULL
29085 };
29086
29087 arg2 = &temp2;
29088 arg3 = &temp3;
29089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29092 {
29093 PyThreadState* __tstate = wxPyBeginAllowThreads();
29094 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29095
29096 wxPyEndAllowThreads(__tstate);
29097 if (PyErr_Occurred()) SWIG_fail;
29098 }
29099 Py_INCREF(Py_None); resultobj = Py_None;
29100 {
29101 PyObject *o = PyInt_FromLong((long) (*arg2));
29102 resultobj = t_output_helper(resultobj,o);
29103 }
29104 {
29105 PyObject *o = PyInt_FromLong((long) (*arg3));
29106 resultobj = t_output_helper(resultobj,o);
29107 }
29108 return resultobj;
29109 fail:
29110 return NULL;
29111}
29112
29113
29114static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29115 PyObject *resultobj;
29116 wxPyControl *arg1 = (wxPyControl *) 0 ;
29117 int *arg2 = (int *) 0 ;
29118 int *arg3 = (int *) 0 ;
29119 int temp2 ;
29120 int temp3 ;
29121 PyObject * obj0 = 0 ;
29122 char *kwnames[] = {
29123 (char *) "self", NULL
29124 };
29125
29126 arg2 = &temp2;
29127 arg3 = &temp3;
29128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29131 {
29132 PyThreadState* __tstate = wxPyBeginAllowThreads();
29133 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29134
29135 wxPyEndAllowThreads(__tstate);
29136 if (PyErr_Occurred()) SWIG_fail;
29137 }
29138 Py_INCREF(Py_None); resultobj = Py_None;
29139 {
29140 PyObject *o = PyInt_FromLong((long) (*arg2));
29141 resultobj = t_output_helper(resultobj,o);
29142 }
29143 {
29144 PyObject *o = PyInt_FromLong((long) (*arg3));
29145 resultobj = t_output_helper(resultobj,o);
29146 }
29147 return resultobj;
29148 fail:
29149 return NULL;
29150}
29151
29152
29153static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29154 PyObject *resultobj;
29155 wxPyControl *arg1 = (wxPyControl *) 0 ;
29156 wxSize result;
29157 PyObject * obj0 = 0 ;
29158 char *kwnames[] = {
29159 (char *) "self", NULL
29160 };
29161
29162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29165 {
29166 PyThreadState* __tstate = wxPyBeginAllowThreads();
29167 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29168
29169 wxPyEndAllowThreads(__tstate);
29170 if (PyErr_Occurred()) SWIG_fail;
29171 }
29172 {
29173 wxSize * resultptr;
29174 resultptr = new wxSize((wxSize &) result);
29175 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29176 }
29177 return resultobj;
29178 fail:
29179 return NULL;
29180}
29181
29182
29183static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29184 PyObject *resultobj;
29185 wxPyControl *arg1 = (wxPyControl *) 0 ;
29186 wxSize result;
29187 PyObject * obj0 = 0 ;
29188 char *kwnames[] = {
29189 (char *) "self", NULL
29190 };
29191
29192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29195 {
29196 PyThreadState* __tstate = wxPyBeginAllowThreads();
29197 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29198
29199 wxPyEndAllowThreads(__tstate);
29200 if (PyErr_Occurred()) SWIG_fail;
29201 }
29202 {
29203 wxSize * resultptr;
29204 resultptr = new wxSize((wxSize &) result);
29205 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29206 }
29207 return resultobj;
29208 fail:
29209 return NULL;
29210}
29211
29212
29213static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
29214 PyObject *resultobj;
29215 wxPyControl *arg1 = (wxPyControl *) 0 ;
29216 PyObject * obj0 = 0 ;
29217 char *kwnames[] = {
29218 (char *) "self", NULL
29219 };
29220
29221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29224 {
29225 PyThreadState* __tstate = wxPyBeginAllowThreads();
29226 (arg1)->base_InitDialog();
29227
29228 wxPyEndAllowThreads(__tstate);
29229 if (PyErr_Occurred()) SWIG_fail;
29230 }
29231 Py_INCREF(Py_None); resultobj = Py_None;
29232 return resultobj;
29233 fail:
29234 return NULL;
29235}
29236
29237
29238static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29239 PyObject *resultobj;
29240 wxPyControl *arg1 = (wxPyControl *) 0 ;
29241 bool result;
29242 PyObject * obj0 = 0 ;
29243 char *kwnames[] = {
29244 (char *) "self", NULL
29245 };
29246
29247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29250 {
29251 PyThreadState* __tstate = wxPyBeginAllowThreads();
29252 result = (bool)(arg1)->base_TransferDataToWindow();
29253
29254 wxPyEndAllowThreads(__tstate);
29255 if (PyErr_Occurred()) SWIG_fail;
29256 }
29257 {
29258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29259 }
29260 return resultobj;
29261 fail:
29262 return NULL;
29263}
29264
29265
29266static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29267 PyObject *resultobj;
29268 wxPyControl *arg1 = (wxPyControl *) 0 ;
29269 bool result;
29270 PyObject * obj0 = 0 ;
29271 char *kwnames[] = {
29272 (char *) "self", NULL
29273 };
29274
29275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29278 {
29279 PyThreadState* __tstate = wxPyBeginAllowThreads();
29280 result = (bool)(arg1)->base_TransferDataFromWindow();
29281
29282 wxPyEndAllowThreads(__tstate);
29283 if (PyErr_Occurred()) SWIG_fail;
29284 }
29285 {
29286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29287 }
29288 return resultobj;
29289 fail:
29290 return NULL;
29291}
29292
29293
29294static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
29295 PyObject *resultobj;
29296 wxPyControl *arg1 = (wxPyControl *) 0 ;
29297 bool result;
29298 PyObject * obj0 = 0 ;
29299 char *kwnames[] = {
29300 (char *) "self", NULL
29301 };
29302
29303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29306 {
29307 PyThreadState* __tstate = wxPyBeginAllowThreads();
29308 result = (bool)(arg1)->base_Validate();
29309
29310 wxPyEndAllowThreads(__tstate);
29311 if (PyErr_Occurred()) SWIG_fail;
29312 }
29313 {
29314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29315 }
29316 return resultobj;
29317 fail:
29318 return NULL;
29319}
29320
29321
29322static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
29323 PyObject *resultobj;
29324 wxPyControl *arg1 = (wxPyControl *) 0 ;
29325 bool result;
29326 PyObject * obj0 = 0 ;
29327 char *kwnames[] = {
29328 (char *) "self", NULL
29329 };
29330
29331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29334 {
29335 PyThreadState* __tstate = wxPyBeginAllowThreads();
29336 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29337
29338 wxPyEndAllowThreads(__tstate);
29339 if (PyErr_Occurred()) SWIG_fail;
29340 }
29341 {
29342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29343 }
29344 return resultobj;
29345 fail:
29346 return NULL;
29347}
29348
29349
29350static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
29351 PyObject *resultobj;
29352 wxPyControl *arg1 = (wxPyControl *) 0 ;
29353 bool result;
29354 PyObject * obj0 = 0 ;
29355 char *kwnames[] = {
29356 (char *) "self", NULL
29357 };
29358
29359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29362 {
29363 PyThreadState* __tstate = wxPyBeginAllowThreads();
29364 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29365
29366 wxPyEndAllowThreads(__tstate);
29367 if (PyErr_Occurred()) SWIG_fail;
29368 }
29369 {
29370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29371 }
29372 return resultobj;
29373 fail:
29374 return NULL;
29375}
29376
29377
29378static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29379 PyObject *resultobj;
29380 wxPyControl *arg1 = (wxPyControl *) 0 ;
29381 wxSize result;
29382 PyObject * obj0 = 0 ;
29383 char *kwnames[] = {
29384 (char *) "self", NULL
29385 };
29386
29387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29390 {
29391 PyThreadState* __tstate = wxPyBeginAllowThreads();
29392 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29393
29394 wxPyEndAllowThreads(__tstate);
29395 if (PyErr_Occurred()) SWIG_fail;
29396 }
29397 {
29398 wxSize * resultptr;
29399 resultptr = new wxSize((wxSize &) result);
29400 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29401 }
29402 return resultobj;
29403 fail:
29404 return NULL;
29405}
29406
29407
29408static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29409 PyObject *resultobj;
29410 wxPyControl *arg1 = (wxPyControl *) 0 ;
29411 wxWindow *arg2 = (wxWindow *) 0 ;
29412 PyObject * obj0 = 0 ;
29413 PyObject * obj1 = 0 ;
29414 char *kwnames[] = {
29415 (char *) "self",(char *) "child", NULL
29416 };
29417
29418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
29419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29423 {
29424 PyThreadState* __tstate = wxPyBeginAllowThreads();
29425 (arg1)->base_AddChild(arg2);
29426
29427 wxPyEndAllowThreads(__tstate);
29428 if (PyErr_Occurred()) SWIG_fail;
29429 }
29430 Py_INCREF(Py_None); resultobj = Py_None;
29431 return resultobj;
29432 fail:
29433 return NULL;
29434}
29435
29436
29437static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29438 PyObject *resultobj;
29439 wxPyControl *arg1 = (wxPyControl *) 0 ;
29440 wxWindow *arg2 = (wxWindow *) 0 ;
29441 PyObject * obj0 = 0 ;
29442 PyObject * obj1 = 0 ;
29443 char *kwnames[] = {
29444 (char *) "self",(char *) "child", NULL
29445 };
29446
29447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29452 {
29453 PyThreadState* __tstate = wxPyBeginAllowThreads();
29454 (arg1)->base_RemoveChild(arg2);
29455
29456 wxPyEndAllowThreads(__tstate);
29457 if (PyErr_Occurred()) SWIG_fail;
29458 }
29459 Py_INCREF(Py_None); resultobj = Py_None;
29460 return resultobj;
29461 fail:
29462 return NULL;
29463}
29464
29465
29466static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
29467 PyObject *resultobj;
29468 wxPyControl *arg1 = (wxPyControl *) 0 ;
29469 bool result;
29470 PyObject * obj0 = 0 ;
29471 char *kwnames[] = {
29472 (char *) "self", NULL
29473 };
29474
29475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29478 {
29479 PyThreadState* __tstate = wxPyBeginAllowThreads();
a5ee0656 29480 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
d55e5bfc
RD
29481
29482 wxPyEndAllowThreads(__tstate);
29483 if (PyErr_Occurred()) SWIG_fail;
29484 }
29485 {
29486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29487 }
29488 return resultobj;
29489 fail:
29490 return NULL;
29491}
29492
29493
29494static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
29495 PyObject *resultobj;
29496 wxPyControl *arg1 = (wxPyControl *) 0 ;
29497 wxColour *arg2 = 0 ;
29498 wxColour temp2 ;
29499 PyObject * obj0 = 0 ;
29500 PyObject * obj1 = 0 ;
29501 char *kwnames[] = {
29502 (char *) "self",(char *) "c", NULL
29503 };
29504
29505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29508 {
29509 arg2 = &temp2;
29510 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29511 }
29512 {
29513 PyThreadState* __tstate = wxPyBeginAllowThreads();
29514 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29515
29516 wxPyEndAllowThreads(__tstate);
29517 if (PyErr_Occurred()) SWIG_fail;
29518 }
29519 Py_INCREF(Py_None); resultobj = Py_None;
29520 return resultobj;
29521 fail:
29522 return NULL;
29523}
29524
29525
a5ee0656
RD
29526static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
29527 PyObject *resultobj;
29528 wxPyControl *arg1 = (wxPyControl *) 0 ;
29529 wxVisualAttributes result;
29530 PyObject * obj0 = 0 ;
29531 char *kwnames[] = {
29532 (char *) "self", NULL
29533 };
29534
29535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
29536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29538 {
29539 PyThreadState* __tstate = wxPyBeginAllowThreads();
29540 result = (arg1)->base_GetDefaultAttributes();
29541
29542 wxPyEndAllowThreads(__tstate);
29543 if (PyErr_Occurred()) SWIG_fail;
29544 }
29545 {
29546 wxVisualAttributes * resultptr;
29547 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
29548 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
29549 }
29550 return resultobj;
29551 fail:
29552 return NULL;
29553}
29554
29555
d55e5bfc
RD
29556static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
29557 PyObject *obj;
29558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29559 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29560 Py_INCREF(obj);
29561 return Py_BuildValue((char *)"");
29562}
29563static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
29564 PyObject *resultobj;
29565 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29566 int arg2 = (int) 0 ;
29567 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29568 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29569 wxHelpEvent *result;
29570 wxPoint temp3 ;
29571 PyObject * obj0 = 0 ;
29572 PyObject * obj1 = 0 ;
29573 PyObject * obj2 = 0 ;
29574 char *kwnames[] = {
29575 (char *) "type",(char *) "winid",(char *) "pt", NULL
29576 };
29577
29578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29579 if (obj0) {
29580 arg1 = (wxEventType) SWIG_AsInt(obj0);
29581 if (PyErr_Occurred()) SWIG_fail;
29582 }
29583 if (obj1) {
29584 arg2 = (int) SWIG_AsInt(obj1);
29585 if (PyErr_Occurred()) SWIG_fail;
29586 }
29587 if (obj2) {
29588 {
29589 arg3 = &temp3;
29590 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29591 }
29592 }
29593 {
29594 PyThreadState* __tstate = wxPyBeginAllowThreads();
29595 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29596
29597 wxPyEndAllowThreads(__tstate);
29598 if (PyErr_Occurred()) SWIG_fail;
29599 }
29600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29601 return resultobj;
29602 fail:
29603 return NULL;
29604}
29605
29606
29607static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29608 PyObject *resultobj;
29609 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29610 wxPoint result;
29611 PyObject * obj0 = 0 ;
29612 char *kwnames[] = {
29613 (char *) "self", NULL
29614 };
29615
29616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29619 {
29620 PyThreadState* __tstate = wxPyBeginAllowThreads();
29621 result = ((wxHelpEvent const *)arg1)->GetPosition();
29622
29623 wxPyEndAllowThreads(__tstate);
29624 if (PyErr_Occurred()) SWIG_fail;
29625 }
29626 {
29627 wxPoint * resultptr;
29628 resultptr = new wxPoint((wxPoint &) result);
29629 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29630 }
29631 return resultobj;
29632 fail:
29633 return NULL;
29634}
29635
29636
29637static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29638 PyObject *resultobj;
29639 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29640 wxPoint *arg2 = 0 ;
29641 wxPoint temp2 ;
29642 PyObject * obj0 = 0 ;
29643 PyObject * obj1 = 0 ;
29644 char *kwnames[] = {
29645 (char *) "self",(char *) "pos", NULL
29646 };
29647
29648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29651 {
29652 arg2 = &temp2;
29653 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29654 }
29655 {
29656 PyThreadState* __tstate = wxPyBeginAllowThreads();
29657 (arg1)->SetPosition((wxPoint const &)*arg2);
29658
29659 wxPyEndAllowThreads(__tstate);
29660 if (PyErr_Occurred()) SWIG_fail;
29661 }
29662 Py_INCREF(Py_None); resultobj = Py_None;
29663 return resultobj;
29664 fail:
29665 return NULL;
29666}
29667
29668
29669static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29670 PyObject *resultobj;
29671 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29672 wxString *result;
29673 PyObject * obj0 = 0 ;
29674 char *kwnames[] = {
29675 (char *) "self", NULL
29676 };
29677
29678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
29679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29681 {
29682 PyThreadState* __tstate = wxPyBeginAllowThreads();
29683 {
29684 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
29685 result = (wxString *) &_result_ref;
29686 }
29687
29688 wxPyEndAllowThreads(__tstate);
29689 if (PyErr_Occurred()) SWIG_fail;
29690 }
29691 {
29692#if wxUSE_UNICODE
29693 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29694#else
29695 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29696#endif
29697 }
29698 return resultobj;
29699 fail:
29700 return NULL;
29701}
29702
29703
29704static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29705 PyObject *resultobj;
29706 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29707 wxString *arg2 = 0 ;
29708 bool temp2 = False ;
29709 PyObject * obj0 = 0 ;
29710 PyObject * obj1 = 0 ;
29711 char *kwnames[] = {
29712 (char *) "self",(char *) "link", NULL
29713 };
29714
29715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
29716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29718 {
29719 arg2 = wxString_in_helper(obj1);
29720 if (arg2 == NULL) SWIG_fail;
29721 temp2 = True;
29722 }
29723 {
29724 PyThreadState* __tstate = wxPyBeginAllowThreads();
29725 (arg1)->SetLink((wxString const &)*arg2);
29726
29727 wxPyEndAllowThreads(__tstate);
29728 if (PyErr_Occurred()) SWIG_fail;
29729 }
29730 Py_INCREF(Py_None); resultobj = Py_None;
29731 {
29732 if (temp2)
29733 delete arg2;
29734 }
29735 return resultobj;
29736 fail:
29737 {
29738 if (temp2)
29739 delete arg2;
29740 }
29741 return NULL;
29742}
29743
29744
29745static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29746 PyObject *resultobj;
29747 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29748 wxString *result;
29749 PyObject * obj0 = 0 ;
29750 char *kwnames[] = {
29751 (char *) "self", NULL
29752 };
29753
29754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
29755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29757 {
29758 PyThreadState* __tstate = wxPyBeginAllowThreads();
29759 {
29760 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
29761 result = (wxString *) &_result_ref;
29762 }
29763
29764 wxPyEndAllowThreads(__tstate);
29765 if (PyErr_Occurred()) SWIG_fail;
29766 }
29767 {
29768#if wxUSE_UNICODE
29769 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29770#else
29771 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29772#endif
29773 }
29774 return resultobj;
29775 fail:
29776 return NULL;
29777}
29778
29779
29780static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29781 PyObject *resultobj;
29782 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29783 wxString *arg2 = 0 ;
29784 bool temp2 = False ;
29785 PyObject * obj0 = 0 ;
29786 PyObject * obj1 = 0 ;
29787 char *kwnames[] = {
29788 (char *) "self",(char *) "target", NULL
29789 };
29790
29791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
29792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29794 {
29795 arg2 = wxString_in_helper(obj1);
29796 if (arg2 == NULL) SWIG_fail;
29797 temp2 = True;
29798 }
29799 {
29800 PyThreadState* __tstate = wxPyBeginAllowThreads();
29801 (arg1)->SetTarget((wxString const &)*arg2);
29802
29803 wxPyEndAllowThreads(__tstate);
29804 if (PyErr_Occurred()) SWIG_fail;
29805 }
29806 Py_INCREF(Py_None); resultobj = Py_None;
29807 {
29808 if (temp2)
29809 delete arg2;
29810 }
29811 return resultobj;
29812 fail:
29813 {
29814 if (temp2)
29815 delete arg2;
29816 }
29817 return NULL;
29818}
29819
29820
29821static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
29822 PyObject *obj;
29823 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29824 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
29825 Py_INCREF(obj);
29826 return Py_BuildValue((char *)"");
29827}
29828static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29829 PyObject *resultobj;
29830 wxWindow *arg1 = (wxWindow *) NULL ;
29831 bool arg2 = (bool) True ;
29832 wxContextHelp *result;
29833 PyObject * obj0 = 0 ;
29834 PyObject * obj1 = 0 ;
29835 char *kwnames[] = {
29836 (char *) "window",(char *) "doNow", NULL
29837 };
29838
29839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
29840 if (obj0) {
29841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29843 }
29844 if (obj1) {
29845 arg2 = (bool) SWIG_AsBool(obj1);
29846 if (PyErr_Occurred()) SWIG_fail;
29847 }
29848 {
29849 PyThreadState* __tstate = wxPyBeginAllowThreads();
29850 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
29851
29852 wxPyEndAllowThreads(__tstate);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 }
29855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
29856 return resultobj;
29857 fail:
29858 return NULL;
29859}
29860
29861
29862static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29863 PyObject *resultobj;
29864 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29865 PyObject * obj0 = 0 ;
29866 char *kwnames[] = {
29867 (char *) "self", NULL
29868 };
29869
29870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
29871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29873 {
29874 PyThreadState* __tstate = wxPyBeginAllowThreads();
29875 delete arg1;
29876
29877 wxPyEndAllowThreads(__tstate);
29878 if (PyErr_Occurred()) SWIG_fail;
29879 }
29880 Py_INCREF(Py_None); resultobj = Py_None;
29881 return resultobj;
29882 fail:
29883 return NULL;
29884}
29885
29886
29887static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29888 PyObject *resultobj;
29889 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29890 wxWindow *arg2 = (wxWindow *) NULL ;
29891 bool result;
29892 PyObject * obj0 = 0 ;
29893 PyObject * obj1 = 0 ;
29894 char *kwnames[] = {
29895 (char *) "self",(char *) "window", NULL
29896 };
29897
29898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
29899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29901 if (obj1) {
29902 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29904 }
29905 {
29906 PyThreadState* __tstate = wxPyBeginAllowThreads();
29907 result = (bool)(arg1)->BeginContextHelp(arg2);
29908
29909 wxPyEndAllowThreads(__tstate);
29910 if (PyErr_Occurred()) SWIG_fail;
29911 }
29912 {
29913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29914 }
29915 return resultobj;
29916 fail:
29917 return NULL;
29918}
29919
29920
29921static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
29922 PyObject *resultobj;
29923 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
29924 bool result;
29925 PyObject * obj0 = 0 ;
29926 char *kwnames[] = {
29927 (char *) "self", NULL
29928 };
29929
29930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
29931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
29932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29933 {
29934 PyThreadState* __tstate = wxPyBeginAllowThreads();
29935 result = (bool)(arg1)->EndContextHelp();
29936
29937 wxPyEndAllowThreads(__tstate);
29938 if (PyErr_Occurred()) SWIG_fail;
29939 }
29940 {
29941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29942 }
29943 return resultobj;
29944 fail:
29945 return NULL;
29946}
29947
29948
29949static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
29950 PyObject *obj;
29951 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29952 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
29953 Py_INCREF(obj);
29954 return Py_BuildValue((char *)"");
29955}
29956static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
29957 PyObject *resultobj;
29958 wxWindow *arg1 = (wxWindow *) 0 ;
29959 int arg2 = (int) wxID_CONTEXT_HELP ;
29960 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29961 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29962 wxSize const &arg4_defvalue = wxDefaultSize ;
29963 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29964 long arg5 = (long) wxBU_AUTODRAW ;
29965 wxContextHelpButton *result;
29966 wxPoint temp3 ;
29967 wxSize temp4 ;
29968 PyObject * obj0 = 0 ;
29969 PyObject * obj1 = 0 ;
29970 PyObject * obj2 = 0 ;
29971 PyObject * obj3 = 0 ;
29972 PyObject * obj4 = 0 ;
29973 char *kwnames[] = {
29974 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29975 };
29976
29977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29980 if (obj1) {
29981 arg2 = (int) SWIG_AsInt(obj1);
29982 if (PyErr_Occurred()) SWIG_fail;
29983 }
29984 if (obj2) {
29985 {
29986 arg3 = &temp3;
29987 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29988 }
29989 }
29990 if (obj3) {
29991 {
29992 arg4 = &temp4;
29993 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29994 }
29995 }
29996 if (obj4) {
29997 arg5 = (long) SWIG_AsLong(obj4);
29998 if (PyErr_Occurred()) SWIG_fail;
29999 }
30000 {
30001 PyThreadState* __tstate = wxPyBeginAllowThreads();
30002 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30003
30004 wxPyEndAllowThreads(__tstate);
30005 if (PyErr_Occurred()) SWIG_fail;
30006 }
30007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30008 return resultobj;
30009 fail:
30010 return NULL;
30011}
30012
30013
30014static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
30015 PyObject *obj;
30016 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30017 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30018 Py_INCREF(obj);
30019 return Py_BuildValue((char *)"");
30020}
30021static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
30022 PyObject *resultobj;
30023 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30024 wxHelpProvider *result;
30025 PyObject * obj0 = 0 ;
30026 char *kwnames[] = {
30027 (char *) "helpProvider", NULL
30028 };
30029
30030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30033 {
30034 PyThreadState* __tstate = wxPyBeginAllowThreads();
30035 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30036
30037 wxPyEndAllowThreads(__tstate);
30038 if (PyErr_Occurred()) SWIG_fail;
30039 }
30040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30041 return resultobj;
30042 fail:
30043 return NULL;
30044}
30045
30046
30047static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
30048 PyObject *resultobj;
30049 wxHelpProvider *result;
30050 char *kwnames[] = {
30051 NULL
30052 };
30053
30054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30055 {
30056 PyThreadState* __tstate = wxPyBeginAllowThreads();
30057 result = (wxHelpProvider *)wxHelpProvider::Get();
30058
30059 wxPyEndAllowThreads(__tstate);
30060 if (PyErr_Occurred()) SWIG_fail;
30061 }
30062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30063 return resultobj;
30064 fail:
30065 return NULL;
30066}
30067
30068
30069static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30070 PyObject *resultobj;
30071 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30072 wxWindow *arg2 = (wxWindow *) 0 ;
30073 wxString result;
30074 PyObject * obj0 = 0 ;
30075 PyObject * obj1 = 0 ;
30076 char *kwnames[] = {
30077 (char *) "self",(char *) "window", NULL
30078 };
30079
30080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30085 {
30086 PyThreadState* __tstate = wxPyBeginAllowThreads();
30087 result = (arg1)->GetHelp((wxWindow const *)arg2);
30088
30089 wxPyEndAllowThreads(__tstate);
30090 if (PyErr_Occurred()) SWIG_fail;
30091 }
30092 {
30093#if wxUSE_UNICODE
30094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30095#else
30096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30097#endif
30098 }
30099 return resultobj;
30100 fail:
30101 return NULL;
30102}
30103
30104
30105static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30106 PyObject *resultobj;
30107 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30108 wxWindow *arg2 = (wxWindow *) 0 ;
30109 bool result;
30110 PyObject * obj0 = 0 ;
30111 PyObject * obj1 = 0 ;
30112 char *kwnames[] = {
30113 (char *) "self",(char *) "window", NULL
30114 };
30115
30116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30119 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30121 {
30122 PyThreadState* __tstate = wxPyBeginAllowThreads();
30123 result = (bool)(arg1)->ShowHelp(arg2);
30124
30125 wxPyEndAllowThreads(__tstate);
30126 if (PyErr_Occurred()) SWIG_fail;
30127 }
30128 {
30129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30130 }
30131 return resultobj;
30132 fail:
30133 return NULL;
30134}
30135
30136
30137static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30138 PyObject *resultobj;
30139 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30140 wxWindow *arg2 = (wxWindow *) 0 ;
30141 wxString *arg3 = 0 ;
30142 bool temp3 = False ;
30143 PyObject * obj0 = 0 ;
30144 PyObject * obj1 = 0 ;
30145 PyObject * obj2 = 0 ;
30146 char *kwnames[] = {
30147 (char *) "self",(char *) "window",(char *) "text", NULL
30148 };
30149
30150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30155 {
30156 arg3 = wxString_in_helper(obj2);
30157 if (arg3 == NULL) SWIG_fail;
30158 temp3 = True;
30159 }
30160 {
30161 PyThreadState* __tstate = wxPyBeginAllowThreads();
30162 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30163
30164 wxPyEndAllowThreads(__tstate);
30165 if (PyErr_Occurred()) SWIG_fail;
30166 }
30167 Py_INCREF(Py_None); resultobj = Py_None;
30168 {
30169 if (temp3)
30170 delete arg3;
30171 }
30172 return resultobj;
30173 fail:
30174 {
30175 if (temp3)
30176 delete arg3;
30177 }
30178 return NULL;
30179}
30180
30181
30182static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
30183 PyObject *resultobj;
30184 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30185 int arg2 ;
30186 wxString *arg3 = 0 ;
30187 bool temp3 = False ;
30188 PyObject * obj0 = 0 ;
30189 PyObject * obj1 = 0 ;
30190 PyObject * obj2 = 0 ;
30191 char *kwnames[] = {
30192 (char *) "self",(char *) "id",(char *) "text", NULL
30193 };
30194
30195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30198 arg2 = (int) SWIG_AsInt(obj1);
30199 if (PyErr_Occurred()) SWIG_fail;
30200 {
30201 arg3 = wxString_in_helper(obj2);
30202 if (arg3 == NULL) SWIG_fail;
30203 temp3 = True;
30204 }
30205 {
30206 PyThreadState* __tstate = wxPyBeginAllowThreads();
30207 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30208
30209 wxPyEndAllowThreads(__tstate);
30210 if (PyErr_Occurred()) SWIG_fail;
30211 }
30212 Py_INCREF(Py_None); resultobj = Py_None;
30213 {
30214 if (temp3)
30215 delete arg3;
30216 }
30217 return resultobj;
30218 fail:
30219 {
30220 if (temp3)
30221 delete arg3;
30222 }
30223 return NULL;
30224}
30225
30226
30227static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30228 PyObject *resultobj;
30229 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30230 wxWindow *arg2 = (wxWindow *) 0 ;
30231 PyObject * obj0 = 0 ;
30232 PyObject * obj1 = 0 ;
30233 char *kwnames[] = {
30234 (char *) "self",(char *) "window", NULL
30235 };
30236
30237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30242 {
30243 PyThreadState* __tstate = wxPyBeginAllowThreads();
30244 (arg1)->RemoveHelp(arg2);
30245
30246 wxPyEndAllowThreads(__tstate);
30247 if (PyErr_Occurred()) SWIG_fail;
30248 }
30249 Py_INCREF(Py_None); resultobj = Py_None;
30250 return resultobj;
30251 fail:
30252 return NULL;
30253}
30254
30255
30256static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30257 PyObject *resultobj;
30258 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30259 PyObject * obj0 = 0 ;
30260 char *kwnames[] = {
30261 (char *) "self", NULL
30262 };
30263
30264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30267 {
30268 PyThreadState* __tstate = wxPyBeginAllowThreads();
30269 wxHelpProvider_Destroy(arg1);
30270
30271 wxPyEndAllowThreads(__tstate);
30272 if (PyErr_Occurred()) SWIG_fail;
30273 }
30274 Py_INCREF(Py_None); resultobj = Py_None;
30275 return resultobj;
30276 fail:
30277 return NULL;
30278}
30279
30280
30281static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
30282 PyObject *obj;
30283 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30284 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30285 Py_INCREF(obj);
30286 return Py_BuildValue((char *)"");
30287}
30288static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
30289 PyObject *resultobj;
30290 wxSimpleHelpProvider *result;
30291 char *kwnames[] = {
30292 NULL
30293 };
30294
30295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30296 {
30297 PyThreadState* __tstate = wxPyBeginAllowThreads();
30298 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30299
30300 wxPyEndAllowThreads(__tstate);
30301 if (PyErr_Occurred()) SWIG_fail;
30302 }
30303 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30304 return resultobj;
30305 fail:
30306 return NULL;
30307}
30308
30309
30310static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
30311 PyObject *obj;
30312 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30313 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30314 Py_INCREF(obj);
30315 return Py_BuildValue((char *)"");
30316}
30317static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30318 PyObject *resultobj;
30319 wxBitmap *arg1 = 0 ;
30320 wxCursor const &arg2_defvalue = wxNullCursor ;
30321 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30322 wxGenericDragImage *result;
30323 PyObject * obj0 = 0 ;
30324 PyObject * obj1 = 0 ;
30325 char *kwnames[] = {
30326 (char *) "image",(char *) "cursor", NULL
30327 };
30328
30329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30331 SWIG_POINTER_EXCEPTION | 0)) == -1)
30332 SWIG_fail;
30333 if (arg1 == NULL) {
30334 PyErr_SetString(PyExc_TypeError,"null reference");
30335 SWIG_fail;
30336 }
30337 if (obj1) {
30338 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30339 SWIG_POINTER_EXCEPTION | 0)) == -1)
30340 SWIG_fail;
30341 if (arg2 == NULL) {
30342 PyErr_SetString(PyExc_TypeError,"null reference");
30343 SWIG_fail;
30344 }
30345 }
30346 {
30347 PyThreadState* __tstate = wxPyBeginAllowThreads();
30348 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30349
30350 wxPyEndAllowThreads(__tstate);
30351 if (PyErr_Occurred()) SWIG_fail;
30352 }
30353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30354 return resultobj;
30355 fail:
30356 return NULL;
30357}
30358
30359
30360static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
30361 PyObject *resultobj;
30362 wxIcon *arg1 = 0 ;
30363 wxCursor const &arg2_defvalue = wxNullCursor ;
30364 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30365 wxGenericDragImage *result;
30366 PyObject * obj0 = 0 ;
30367 PyObject * obj1 = 0 ;
30368 char *kwnames[] = {
30369 (char *) "image",(char *) "cursor", NULL
30370 };
30371
30372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30374 SWIG_POINTER_EXCEPTION | 0)) == -1)
30375 SWIG_fail;
30376 if (arg1 == NULL) {
30377 PyErr_SetString(PyExc_TypeError,"null reference");
30378 SWIG_fail;
30379 }
30380 if (obj1) {
30381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30382 SWIG_POINTER_EXCEPTION | 0)) == -1)
30383 SWIG_fail;
30384 if (arg2 == NULL) {
30385 PyErr_SetString(PyExc_TypeError,"null reference");
30386 SWIG_fail;
30387 }
30388 }
30389 {
30390 PyThreadState* __tstate = wxPyBeginAllowThreads();
30391 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30392
30393 wxPyEndAllowThreads(__tstate);
30394 if (PyErr_Occurred()) SWIG_fail;
30395 }
30396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30397 return resultobj;
30398 fail:
30399 return NULL;
30400}
30401
30402
30403static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
30404 PyObject *resultobj;
30405 wxString *arg1 = 0 ;
30406 wxCursor const &arg2_defvalue = wxNullCursor ;
30407 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30408 wxGenericDragImage *result;
30409 bool temp1 = False ;
30410 PyObject * obj0 = 0 ;
30411 PyObject * obj1 = 0 ;
30412 char *kwnames[] = {
30413 (char *) "str",(char *) "cursor", NULL
30414 };
30415
30416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30417 {
30418 arg1 = wxString_in_helper(obj0);
30419 if (arg1 == NULL) SWIG_fail;
30420 temp1 = True;
30421 }
30422 if (obj1) {
30423 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30424 SWIG_POINTER_EXCEPTION | 0)) == -1)
30425 SWIG_fail;
30426 if (arg2 == NULL) {
30427 PyErr_SetString(PyExc_TypeError,"null reference");
30428 SWIG_fail;
30429 }
30430 }
30431 {
30432 PyThreadState* __tstate = wxPyBeginAllowThreads();
30433 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30434
30435 wxPyEndAllowThreads(__tstate);
30436 if (PyErr_Occurred()) SWIG_fail;
30437 }
30438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30439 {
30440 if (temp1)
30441 delete arg1;
30442 }
30443 return resultobj;
30444 fail:
30445 {
30446 if (temp1)
30447 delete arg1;
30448 }
30449 return NULL;
30450}
30451
30452
30453static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30454 PyObject *resultobj;
30455 wxPyTreeCtrl *arg1 = 0 ;
30456 wxTreeItemId *arg2 = 0 ;
30457 wxGenericDragImage *result;
30458 PyObject * obj0 = 0 ;
30459 PyObject * obj1 = 0 ;
30460 char *kwnames[] = {
30461 (char *) "treeCtrl",(char *) "id", NULL
30462 };
30463
30464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30466 SWIG_POINTER_EXCEPTION | 0)) == -1)
30467 SWIG_fail;
30468 if (arg1 == NULL) {
30469 PyErr_SetString(PyExc_TypeError,"null reference");
30470 SWIG_fail;
30471 }
30472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30473 SWIG_POINTER_EXCEPTION | 0)) == -1)
30474 SWIG_fail;
30475 if (arg2 == NULL) {
30476 PyErr_SetString(PyExc_TypeError,"null reference");
30477 SWIG_fail;
30478 }
30479 {
30480 PyThreadState* __tstate = wxPyBeginAllowThreads();
30481 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30482
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30487 return resultobj;
30488 fail:
30489 return NULL;
30490}
30491
30492
30493static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30494 PyObject *resultobj;
30495 wxPyListCtrl *arg1 = 0 ;
30496 long arg2 ;
30497 wxGenericDragImage *result;
30498 PyObject * obj0 = 0 ;
30499 PyObject * obj1 = 0 ;
30500 char *kwnames[] = {
30501 (char *) "listCtrl",(char *) "id", NULL
30502 };
30503
30504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30506 SWIG_POINTER_EXCEPTION | 0)) == -1)
30507 SWIG_fail;
30508 if (arg1 == NULL) {
30509 PyErr_SetString(PyExc_TypeError,"null reference");
30510 SWIG_fail;
30511 }
30512 arg2 = (long) SWIG_AsLong(obj1);
30513 if (PyErr_Occurred()) SWIG_fail;
30514 {
30515 PyThreadState* __tstate = wxPyBeginAllowThreads();
30516 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30517
30518 wxPyEndAllowThreads(__tstate);
30519 if (PyErr_Occurred()) SWIG_fail;
30520 }
30521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30522 return resultobj;
30523 fail:
30524 return NULL;
30525}
30526
30527
30528static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30529 PyObject *resultobj;
30530 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30531 PyObject * obj0 = 0 ;
30532 char *kwnames[] = {
30533 (char *) "self", NULL
30534 };
30535
30536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30539 {
30540 PyThreadState* __tstate = wxPyBeginAllowThreads();
30541 delete arg1;
30542
30543 wxPyEndAllowThreads(__tstate);
30544 if (PyErr_Occurred()) SWIG_fail;
30545 }
30546 Py_INCREF(Py_None); resultobj = Py_None;
30547 return resultobj;
30548 fail:
30549 return NULL;
30550}
30551
30552
30553static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30554 PyObject *resultobj;
30555 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30556 wxBitmap *arg2 = (wxBitmap *) 0 ;
30557 PyObject * obj0 = 0 ;
30558 PyObject * obj1 = 0 ;
30559 char *kwnames[] = {
30560 (char *) "self",(char *) "bitmap", NULL
30561 };
30562
30563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30568 {
30569 PyThreadState* __tstate = wxPyBeginAllowThreads();
30570 (arg1)->SetBackingBitmap(arg2);
30571
30572 wxPyEndAllowThreads(__tstate);
30573 if (PyErr_Occurred()) SWIG_fail;
30574 }
30575 Py_INCREF(Py_None); resultobj = Py_None;
30576 return resultobj;
30577 fail:
30578 return NULL;
30579}
30580
30581
30582static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30583 PyObject *resultobj;
30584 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30585 wxPoint *arg2 = 0 ;
30586 wxWindow *arg3 = (wxWindow *) 0 ;
30587 bool arg4 = (bool) False ;
30588 wxRect *arg5 = (wxRect *) NULL ;
30589 bool result;
30590 wxPoint temp2 ;
30591 PyObject * obj0 = 0 ;
30592 PyObject * obj1 = 0 ;
30593 PyObject * obj2 = 0 ;
30594 PyObject * obj3 = 0 ;
30595 PyObject * obj4 = 0 ;
30596 char *kwnames[] = {
30597 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30598 };
30599
30600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30603 {
30604 arg2 = &temp2;
30605 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30606 }
30607 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30609 if (obj3) {
30610 arg4 = (bool) SWIG_AsBool(obj3);
30611 if (PyErr_Occurred()) SWIG_fail;
30612 }
30613 if (obj4) {
30614 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30616 }
30617 {
30618 PyThreadState* __tstate = wxPyBeginAllowThreads();
30619 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30620
30621 wxPyEndAllowThreads(__tstate);
30622 if (PyErr_Occurred()) SWIG_fail;
30623 }
30624 {
30625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30626 }
30627 return resultobj;
30628 fail:
30629 return NULL;
30630}
30631
30632
30633static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
30634 PyObject *resultobj;
30635 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30636 wxPoint *arg2 = 0 ;
30637 wxWindow *arg3 = (wxWindow *) 0 ;
30638 wxWindow *arg4 = (wxWindow *) 0 ;
30639 bool result;
30640 wxPoint temp2 ;
30641 PyObject * obj0 = 0 ;
30642 PyObject * obj1 = 0 ;
30643 PyObject * obj2 = 0 ;
30644 PyObject * obj3 = 0 ;
30645 char *kwnames[] = {
30646 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30647 };
30648
30649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30652 {
30653 arg2 = &temp2;
30654 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30655 }
30656 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30658 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
30659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30660 {
30661 PyThreadState* __tstate = wxPyBeginAllowThreads();
30662 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
30663
30664 wxPyEndAllowThreads(__tstate);
30665 if (PyErr_Occurred()) SWIG_fail;
30666 }
30667 {
30668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30669 }
30670 return resultobj;
30671 fail:
30672 return NULL;
30673}
30674
30675
30676static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30677 PyObject *resultobj;
30678 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30679 bool result;
30680 PyObject * obj0 = 0 ;
30681 char *kwnames[] = {
30682 (char *) "self", NULL
30683 };
30684
30685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
30686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30688 {
30689 PyThreadState* __tstate = wxPyBeginAllowThreads();
30690 result = (bool)(arg1)->EndDrag();
30691
30692 wxPyEndAllowThreads(__tstate);
30693 if (PyErr_Occurred()) SWIG_fail;
30694 }
30695 {
30696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30697 }
30698 return resultobj;
30699 fail:
30700 return NULL;
30701}
30702
30703
30704static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
30705 PyObject *resultobj;
30706 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30707 wxPoint *arg2 = 0 ;
30708 bool result;
30709 wxPoint temp2 ;
30710 PyObject * obj0 = 0 ;
30711 PyObject * obj1 = 0 ;
30712 char *kwnames[] = {
30713 (char *) "self",(char *) "pt", NULL
30714 };
30715
30716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
30717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30719 {
30720 arg2 = &temp2;
30721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30722 }
30723 {
30724 PyThreadState* __tstate = wxPyBeginAllowThreads();
30725 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
30726
30727 wxPyEndAllowThreads(__tstate);
30728 if (PyErr_Occurred()) SWIG_fail;
30729 }
30730 {
30731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30732 }
30733 return resultobj;
30734 fail:
30735 return NULL;
30736}
30737
30738
30739static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
30740 PyObject *resultobj;
30741 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30742 bool result;
30743 PyObject * obj0 = 0 ;
30744 char *kwnames[] = {
30745 (char *) "self", NULL
30746 };
30747
30748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
30749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30751 {
30752 PyThreadState* __tstate = wxPyBeginAllowThreads();
30753 result = (bool)(arg1)->Show();
30754
30755 wxPyEndAllowThreads(__tstate);
30756 if (PyErr_Occurred()) SWIG_fail;
30757 }
30758 {
30759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30760 }
30761 return resultobj;
30762 fail:
30763 return NULL;
30764}
30765
30766
30767static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
30768 PyObject *resultobj;
30769 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30770 bool result;
30771 PyObject * obj0 = 0 ;
30772 char *kwnames[] = {
30773 (char *) "self", NULL
30774 };
30775
30776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
30777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30779 {
30780 PyThreadState* __tstate = wxPyBeginAllowThreads();
30781 result = (bool)(arg1)->Hide();
30782
30783 wxPyEndAllowThreads(__tstate);
30784 if (PyErr_Occurred()) SWIG_fail;
30785 }
30786 {
30787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30788 }
30789 return resultobj;
30790 fail:
30791 return NULL;
30792}
30793
30794
30795static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
30796 PyObject *resultobj;
30797 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30798 wxPoint *arg2 = 0 ;
30799 wxRect result;
30800 wxPoint temp2 ;
30801 PyObject * obj0 = 0 ;
30802 PyObject * obj1 = 0 ;
30803 char *kwnames[] = {
30804 (char *) "self",(char *) "pos", NULL
30805 };
30806
30807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
30808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30810 {
30811 arg2 = &temp2;
30812 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30813 }
30814 {
30815 PyThreadState* __tstate = wxPyBeginAllowThreads();
30816 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
30817
30818 wxPyEndAllowThreads(__tstate);
30819 if (PyErr_Occurred()) SWIG_fail;
30820 }
30821 {
30822 wxRect * resultptr;
30823 resultptr = new wxRect((wxRect &) result);
30824 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
30825 }
30826 return resultobj;
30827 fail:
30828 return NULL;
30829}
30830
30831
30832static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30833 PyObject *resultobj;
30834 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30835 wxDC *arg2 = 0 ;
30836 wxPoint *arg3 = 0 ;
30837 bool result;
30838 wxPoint temp3 ;
30839 PyObject * obj0 = 0 ;
30840 PyObject * obj1 = 0 ;
30841 PyObject * obj2 = 0 ;
30842 char *kwnames[] = {
30843 (char *) "self",(char *) "dc",(char *) "pos", NULL
30844 };
30845
30846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
30847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30849 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30850 SWIG_POINTER_EXCEPTION | 0)) == -1)
30851 SWIG_fail;
30852 if (arg2 == NULL) {
30853 PyErr_SetString(PyExc_TypeError,"null reference");
30854 SWIG_fail;
30855 }
30856 {
30857 arg3 = &temp3;
30858 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30859 }
30860 {
30861 PyThreadState* __tstate = wxPyBeginAllowThreads();
30862 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
30863
30864 wxPyEndAllowThreads(__tstate);
30865 if (PyErr_Occurred()) SWIG_fail;
30866 }
30867 {
30868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30869 }
30870 return resultobj;
30871 fail:
30872 return NULL;
30873}
30874
30875
30876static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30877 PyObject *resultobj;
30878 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30879 wxDC *arg2 = 0 ;
30880 wxMemoryDC *arg3 = 0 ;
30881 wxRect *arg4 = 0 ;
30882 wxRect *arg5 = 0 ;
30883 bool result;
30884 wxRect temp4 ;
30885 wxRect temp5 ;
30886 PyObject * obj0 = 0 ;
30887 PyObject * obj1 = 0 ;
30888 PyObject * obj2 = 0 ;
30889 PyObject * obj3 = 0 ;
30890 PyObject * obj4 = 0 ;
30891 char *kwnames[] = {
30892 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
30893 };
30894
30895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30898 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
30899 SWIG_POINTER_EXCEPTION | 0)) == -1)
30900 SWIG_fail;
30901 if (arg2 == NULL) {
30902 PyErr_SetString(PyExc_TypeError,"null reference");
30903 SWIG_fail;
30904 }
30905 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
30906 SWIG_POINTER_EXCEPTION | 0)) == -1)
30907 SWIG_fail;
30908 if (arg3 == NULL) {
30909 PyErr_SetString(PyExc_TypeError,"null reference");
30910 SWIG_fail;
30911 }
30912 {
30913 arg4 = &temp4;
30914 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30915 }
30916 {
30917 arg5 = &temp5;
30918 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
30919 }
30920 {
30921 PyThreadState* __tstate = wxPyBeginAllowThreads();
30922 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
30923
30924 wxPyEndAllowThreads(__tstate);
30925 if (PyErr_Occurred()) SWIG_fail;
30926 }
30927 {
30928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30929 }
30930 return resultobj;
30931 fail:
30932 return NULL;
30933}
30934
30935
30936static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30937 PyObject *resultobj;
30938 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30939 wxPoint *arg2 = 0 ;
30940 wxPoint *arg3 = 0 ;
30941 bool arg4 ;
30942 bool arg5 ;
30943 bool result;
30944 wxPoint temp2 ;
30945 wxPoint temp3 ;
30946 PyObject * obj0 = 0 ;
30947 PyObject * obj1 = 0 ;
30948 PyObject * obj2 = 0 ;
30949 PyObject * obj3 = 0 ;
30950 PyObject * obj4 = 0 ;
30951 char *kwnames[] = {
30952 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
30953 };
30954
30955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30958 {
30959 arg2 = &temp2;
30960 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30961 }
30962 {
30963 arg3 = &temp3;
30964 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30965 }
30966 arg4 = (bool) SWIG_AsBool(obj3);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 arg5 = (bool) SWIG_AsBool(obj4);
30969 if (PyErr_Occurred()) SWIG_fail;
30970 {
30971 PyThreadState* __tstate = wxPyBeginAllowThreads();
30972 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
30973
30974 wxPyEndAllowThreads(__tstate);
30975 if (PyErr_Occurred()) SWIG_fail;
30976 }
30977 {
30978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30979 }
30980 return resultobj;
30981 fail:
30982 return NULL;
30983}
30984
30985
30986static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
30987 PyObject *obj;
30988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30989 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
30990 Py_INCREF(obj);
30991 return Py_BuildValue((char *)"");
30992}
30993static PyMethodDef SwigMethods[] = {
30994 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
30995 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
30996 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
30997 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
30998 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 30999 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31000 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
31001 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
31002 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
31003 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
31004 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31005 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31006 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31007 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31008 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31009 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31010 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31011 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31012 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
31013 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
31014 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
31015 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
31016 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
31017 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
31018 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
31019 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31020 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31021 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31022 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
31023 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
31024 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
31025 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31026 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31027 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
31028 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
31029 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
31030 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
31031 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
31032 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31033 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31034 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31035 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
31036 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
31037 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
31038 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
31039 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31040 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31041 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
31042 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
31043 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
31044 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31045 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31046 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31047 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
31048 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31049 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
121b9a67
RD
31050 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31051 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31052 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
31053 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31054 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31055 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31056 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
31057 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
31058 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
31059 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
31060 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
31061 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
31062 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
31063 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
31064 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
31065 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31066 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31067 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
31068 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31069 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31070 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
31071 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
31072 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
31073 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31074 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31075 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
31076 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
31077 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
31078 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
31079 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
31080 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31081 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31082 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
31083 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
31084 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
31085 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31086 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31087 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
31088 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
31089 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
31090 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
31091 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31092 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
31093 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31094 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31095 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
31096 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
31097 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
31098 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
31099 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
31100 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
31101 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
31102 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
31103 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31104 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
31105 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
31106 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
31107 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31108 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
31109 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
31110 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
31111 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31112 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
31113 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
31114 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
31115 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31116 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31117 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31118 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
31119 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
31120 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
31121 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
31122 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31123 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
31124 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
31125 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
31126 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
31127 { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS },
31128 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
31129 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
31130 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31131 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31132 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31133 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
31134 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
31135 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31136 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
31137 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
31138 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31139 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31140 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31141 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
31142 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
31143 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
31144 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
31145 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
31146 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31147 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31148 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31149 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
31150 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
31151 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31152 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
31153 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
31154 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
31155 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
31156 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
31157 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
31158 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
31159 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31160 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31161 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31162 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
31163 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
31164 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
31165 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
31166 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
31167 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
31168 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
31169 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
31170 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31171 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31172 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
31173 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
31174 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
31175 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
31176 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
31177 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
31178 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
31179 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
31180 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
31181 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
31182 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
31183 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
31184 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
31185 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31186 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31187 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
31188 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
31189 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
31190 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31191 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
31192 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
31193 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
31194 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
31195 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
31196 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
31197 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
31198 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
31199 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
31200 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
31201 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31202 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31203 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31204 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31205 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31206 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
31207 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
31208 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
31209 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31210 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31211 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
31212 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
31213 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
31214 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
31215 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
31216 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
31217 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
31218 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
31219 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
31220 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31221 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
31222 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31223 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
31224 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
31225 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31226 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31227 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31228 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
31229 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
31230 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
31231 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
31232 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31233 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
31234 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
31235 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31236 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
31237 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
31238 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
31239 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31240 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31241 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
31242 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
31243 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
31244 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31245 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31246 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31247 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
31248 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
31249 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
31250 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
31251 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31252 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31253 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
31254 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
31255 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31256 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31257 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
31258 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
31259 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
31260 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
31261 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31262 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
31263 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31264 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31265 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
31266 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
31267 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
31268 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
31269 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
31270 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
31271 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31272 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31273 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31274 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31275 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
31276 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
31277 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
31278 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
31279 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31280 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31281 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31282 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
31283 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
31284 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
31285 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
31286 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
31287 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
31288 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
31289 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
31290 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
31291 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
31292 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
31293 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
31294 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31295 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
31296 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31297 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
31298 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
31299 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
31300 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
31301 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
31302 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
31303 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
31304 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
31305 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
31306 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31307 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31308 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
31309 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
31310 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
121b9a67
RD
31311 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
31312 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31313 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31314 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31315 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31316 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
31317 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
31318 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
31319 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31320 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
31321 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
31322 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31323 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31324 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31325 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
31326 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
31327 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31328 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31329 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
31330 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
31331 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
31332 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
31333 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
31334 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31335 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31336 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31337 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
31338 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
31339 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
31340 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
31341 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
31342 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
31343 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
31344 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
31345 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
31346 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
31347 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31348 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
31349 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
31350 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
31351 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31352 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31353 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
31354 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
31355 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
31356 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
31357 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
31358 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
31359 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
31360 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
31361 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
31362 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
31363 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
31364 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31365 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31366 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
31367 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
31368 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
31369 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31370 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31371 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
31372 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
31373 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
31374 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
31375 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
31376 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
31377 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
31378 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
31379 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
31380 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
31381 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
31382 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
31383 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
31384 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31385 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31386 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31387 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
31388 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
31389 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
31390 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
31391 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
31392 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31393 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
31394 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
31395 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31396 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31397 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
31398 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
31399 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
31400 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
31401 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
31402 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
31403 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
31404 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
31405 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
31406 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
31407 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
31408 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
31409 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
31410 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
31411 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
31412 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
31413 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
31414 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
31415 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
31416 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
31417 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
31418 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
31419 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31420 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
31421 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
31422 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
31423 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
31424 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
31425 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31426 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31427 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31428 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31429 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
31430 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
31431 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
31432 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31433 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
31434 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
31435 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
31436 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31437 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
31438 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
31439 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
31440 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
31441 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31442 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31443 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
31444 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31445 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
31446 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
31447 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
31448 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
31449 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
31450 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
31451 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31452 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31453 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
31454 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
31455 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31456 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31457 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31458 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31459 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31460 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31461 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31462 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31463 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31464 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
31465 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
31466 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
31467 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
31468 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
31469 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
31470 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
31471 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
31472 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
31473 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
31474 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
31475 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
31476 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
31477 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
31478 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
31479 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
31480 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31481 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31482 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
31483 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
31484 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
31485 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
31486 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
31487 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
31488 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
31489 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
31490 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
31491 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
31492 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
31493 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
31494 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31495 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31496 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
31497 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
31498 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
31499 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
31500 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
31501 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
31502 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
31503 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
31504 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
31505 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
31506 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
31507 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
31508 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
31509 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
31510 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
31511 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
31512 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
31513 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
31514 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
31515 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
31516 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
31517 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
31518 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
31519 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
31520 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
31521 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
31522 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
31523 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
31524 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
31525 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
31526 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
31527 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
31528 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
31529 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
31530 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31531 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
31532 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
31533 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31534 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31535 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
31536 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
31537 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
31538 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
31539 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31540 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
31541 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
31542 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31543 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31544 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
31545 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
31546 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
31547 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31548 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31549 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
31550 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31551 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
31552 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
31553 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31554 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31555 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
31556 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
31557 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
31558 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
31559 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
31560 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
31561 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
31562 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31563 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31564 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31565 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31566 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31567 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
31568 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
31569 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
31570 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
31571 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31572 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31573 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31574 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
31575 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31576 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31577 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
31578 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
31579 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
31580 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31581 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31582 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31583 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31584 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
31585 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
31586 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
31587 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
31588 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
31589 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
31590 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31591 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
31592 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
31593 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
31594 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31595 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31596 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
31597 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
31598 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
31599 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31600 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31601 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
31602 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
31603 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
31604 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
31605 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
31606 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
31607 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
31608 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31609 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31610 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31611 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31612 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
31613 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
31614 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31615 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
31616 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
31617 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
31618 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
31619 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
31620 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
31621 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
31622 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
31623 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
31624 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
31625 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
31626 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
31627 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
31628 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31629 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31630 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
31631 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
31632 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
31633 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
31634 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
31635 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
31636 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
31637 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
31638 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
31639 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
31640 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
31641 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
31642 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
31643 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
31644 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31645 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
31646 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
31647 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
31648 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31649 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
31650 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31651 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31652 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31653 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31654 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
31655 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31656 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31657 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
31658 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
31659 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
31660 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31661 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31662 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31663 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
31664 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
31665 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
31666 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
31667 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
31668 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31669 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
31670 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31671 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
31672 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31673 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
31674 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31675 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
31676 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31677 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
31678 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31679 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31680 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
31681 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31682 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31683 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31684 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
31685 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31686 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
31687 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31688 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31689 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31690 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
31691 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31692 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
31693 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
31694 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
31695 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
31696 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
31697 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31698 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
31699 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
31700 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
31701 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
31702 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
31703 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
31704 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
31705 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
31706 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
31707 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
31708 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
31709 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
31710 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31711 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
31712 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
31713 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
31714 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
31715 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31716 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
31717 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
31718 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
31719 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
31720 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
31721 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
31722 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
31723 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
31724 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
31725 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31726 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
31727 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31728 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31729 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
31730 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31731 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
31732 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31733 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
31734 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31735 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31736 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31737 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
31738 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31739 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31740 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
31741 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
31742 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
31743 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
31744 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
31745 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
31746 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
31747 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31748 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31749 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
31750 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31751 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31752 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
31753 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
31754 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
31755 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
31756 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31757 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31758 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31759 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
31760 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
31761 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
31762 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS },
31763 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
a5ee0656 31764 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31765 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
31766 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
31767 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
31768 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31769 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
31770 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
31771 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
31772 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31773 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
31774 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
31775 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
31776 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
31777 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
31778 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
31779 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
31780 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
31781 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
31782 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
31783 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
31784 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS },
a5ee0656 31785 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31786 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
31787 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
31788 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31789 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31790 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
31791 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
31792 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
31793 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
31794 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
31795 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31796 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
31797 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
31798 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
31799 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
31800 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
31801 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
31802 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
31803 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
31804 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
31805 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
31806 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
31807 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
31808 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
31809 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
31810 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
31811 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
31812 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
31813 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
31814 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
31815 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
31816 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
31817 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
31818 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
31819 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
31820 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
31821 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
31822 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
31823 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
31824 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
31825 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
31826 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
31827 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
31828 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
31829 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
31830 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
31831 { NULL, NULL }
31832};
31833
31834
31835/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31836
31837static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
31838 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31839}
31840static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
31841 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
31842}
31843static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
31844 return (void *)((wxSizer *) ((wxBoxSizer *) x));
31845}
31846static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
31847 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
31848}
31849static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
31850 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31851}
31852static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
31853 return (void *)((wxSizer *) ((wxGridSizer *) x));
31854}
31855static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
31856 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
31857}
31858static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
31859 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
31860}
31861static void *_p_wxPySizerTo_p_wxSizer(void *x) {
31862 return (void *)((wxSizer *) ((wxPySizer *) x));
31863}
31864static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
31865 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
31866}
31867static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
31868 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
31869}
31870static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
31871 return (void *)((wxEvent *) ((wxMenuEvent *) x));
31872}
31873static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
31874 return (void *)((wxEvent *) ((wxCloseEvent *) x));
31875}
31876static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
31877 return (void *)((wxEvent *) ((wxMouseEvent *) x));
31878}
31879static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
31880 return (void *)((wxEvent *) ((wxEraseEvent *) x));
31881}
31882static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
31883 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
31884}
31885static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
31886 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
31887}
31888static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
31889 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
31890}
31891static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
31892 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
31893}
31894static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
31895 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
31896}
31897static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
31898 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
31899}
31900static void *_p_wxPyEventTo_p_wxEvent(void *x) {
31901 return (void *)((wxEvent *) ((wxPyEvent *) x));
31902}
31903static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
31904 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
31905}
31906static void *_p_wxListEventTo_p_wxEvent(void *x) {
31907 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
31908}
31909static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
31910 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
31911}
31912static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
31913 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
31914}
31915static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
31916 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
31917}
31918static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
31919 return (void *)((wxEvent *) ((wxIdleEvent *) x));
31920}
31921static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
31922 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
31923}
31924static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
31925 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
31926}
31927static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
31928 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
31929}
31930static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
31931 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
31932}
31933static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
31934 return (void *)((wxEvent *) ((wxActivateEvent *) x));
31935}
31936static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
31937 return (void *)((wxEvent *) ((wxSizeEvent *) x));
31938}
31939static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
31940 return (void *)((wxEvent *) ((wxMoveEvent *) x));
31941}
31942static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
31943 return (void *)((wxEvent *) ((wxPaintEvent *) x));
31944}
31945static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
31946 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
31947}
31948static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
31949 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
31950}
31951static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
31952 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
31953}
31954static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
31955 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
31956}
31957static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
31958 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31959}
31960static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
31961 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
31962}
31963static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
31964 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
31965}
31966static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
31967 return (void *)((wxEvent *) ((wxFocusEvent *) x));
31968}
31969static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
31970 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
31971}
31972static void *_p_wxShowEventTo_p_wxEvent(void *x) {
31973 return (void *)((wxEvent *) ((wxShowEvent *) x));
31974}
31975static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
31976 return (void *)((wxEvent *) ((wxCommandEvent *) x));
31977}
31978static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
31979 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
31980}
31981static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
31982 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31983}
31984static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
31985 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
31986}
31987static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
31988 return (void *)((wxEvent *) ((wxKeyEvent *) x));
31989}
31990static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
31991 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
31992}
31993static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
31994 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
31995}
31996static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
31997 return (void *)((wxItemContainer *) ((wxComboBox *) x));
31998}
31999static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32000 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32001}
32002static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32003 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32004}
32005static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32006 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32007}
32008static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32009 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32010}
32011static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32012 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32013}
32014static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32015 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32016}
32017static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32018 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32019}
32020static void *_p_wxListBoxTo_p_wxControl(void *x) {
32021 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32022}
32023static void *_p_wxChoiceTo_p_wxControl(void *x) {
32024 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32025}
32026static void *_p_wxToolBarTo_p_wxControl(void *x) {
32027 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32028}
32029static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32030 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32031}
32032static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32033 return (void *)((wxControl *) ((wxComboBox *) x));
32034}
32035static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32036 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32037}
32038static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32039 return (void *)((wxControl *) ((wxStaticBox *) x));
32040}
32041static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32042 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32043}
32044static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32045 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32046}
32047static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32048 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32049}
32050static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32051 return (void *)((wxControl *) ((wxScrollBar *) x));
32052}
32053static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32054 return (void *)((wxControl *) ((wxBookCtrl *) x));
32055}
32056static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32057 return (void *)((wxControl *) ((wxRadioButton *) x));
32058}
32059static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32060 return (void *)((wxControl *) ((wxToggleButton *) x));
32061}
32062static void *_p_wxGaugeTo_p_wxControl(void *x) {
32063 return (void *)((wxControl *) ((wxGauge *) x));
32064}
32065static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32066 return (void *)((wxControl *) ((wxToolBarBase *) x));
32067}
32068static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32069 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32070}
32071static void *_p_wxButtonTo_p_wxControl(void *x) {
32072 return (void *)((wxControl *) ((wxButton *) x));
32073}
32074static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32075 return (void *)((wxControl *) ((wxSpinButton *) x));
32076}
32077static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32078 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32079}
32080static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32081 return (void *)((wxControl *) ((wxControlWithItems *) x));
32082}
32083static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32084 return (void *)((wxControl *) ((wxRadioBox *) x));
32085}
32086static void *_p_wxNotebookTo_p_wxControl(void *x) {
32087 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32088}
32089static void *_p_wxListbookTo_p_wxControl(void *x) {
32090 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32091}
32092static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32093 return (void *)((wxControl *) ((wxCheckBox *) x));
32094}
32095static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32096 return (void *)((wxControl *) ((wxTextCtrl *) x));
32097}
32098static void *_p_wxListViewTo_p_wxControl(void *x) {
32099 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32100}
32101static void *_p_wxSliderTo_p_wxControl(void *x) {
32102 return (void *)((wxControl *) ((wxSlider *) x));
32103}
32104static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32105 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32106}
32107static void *_p_wxPyControlTo_p_wxControl(void *x) {
32108 return (void *)((wxControl *) ((wxPyControl *) x));
32109}
32110static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32111 return (void *)((wxControl *) ((wxStaticLine *) x));
32112}
32113static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32114 return (void *)((wxControl *) ((wxStaticText *) x));
32115}
32116static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32117 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32118}
32119static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32120 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32121}
32122static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32123 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32124}
32125static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32126 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32127}
32128static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32129 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32130}
32131static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32132 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32133}
32134static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32135 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32136}
32137static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32138 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32139}
32140static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32141 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32142}
32143static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32144 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32145}
32146static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32147 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32148}
32149static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32150 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32151}
32152static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32153 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32154}
32155static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32156 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32157}
32158static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32159 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32160}
32161static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32162 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32163}
32164static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32165 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32166}
32167static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32168 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32169}
32170static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32171 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32172}
32173static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32174 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32175}
32176static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32177 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
32178}
32179static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32180 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32181}
32182static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32183 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32184}
32185static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32186 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32187}
32188static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32189 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32190}
32191static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32192 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32193}
32194static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32195 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32196}
32197static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32198 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32199}
32200static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32201 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32202}
32203static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32204 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32205}
32206static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32207 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32208}
32209static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32210 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32211}
32212static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32213 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32214}
32215static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32216 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32217}
32218static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32219 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32220}
32221static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32222 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32223}
32224static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32225 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32226}
32227static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32228 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32229}
32230static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32231 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32232}
32233static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32234 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32235}
32236static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32237 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32238}
32239static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32240 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32241}
32242static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32243 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32244}
32245static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32246 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32247}
32248static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32249 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32250}
32251static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32252 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32253}
32254static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32255 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32256}
32257static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32258 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32259}
32260static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32261 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32262}
32263static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32264 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32265}
32266static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32267 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32268}
32269static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32270 return (void *)((wxButton *) ((wxBitmapButton *) x));
32271}
32272static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32273 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32274}
32275static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32276 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32277}
32278static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32279 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32280}
32281static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32282 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32283}
32284static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32285 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32286}
32287static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32288 return (void *)((wxObject *) ((wxSizerItem *) x));
32289}
32290static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32291 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32292}
32293static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32294 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32295}
32296static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32297 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32298}
32299static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32300 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32301}
32302static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32303 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32304}
32305static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32306 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32307}
32308static void *_p_wxSizerTo_p_wxObject(void *x) {
32309 return (void *)((wxObject *) ((wxSizer *) x));
32310}
32311static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32312 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32313}
32314static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32315 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32316}
32317static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32318 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32319}
32320static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32321 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32322}
32323static void *_p_wxEventTo_p_wxObject(void *x) {
32324 return (void *)((wxObject *) ((wxEvent *) x));
32325}
32326static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32327 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32328}
32329static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32330 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32331}
32332static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32333 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32334}
32335static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32336 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32337}
32338static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32340}
32341static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32342 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32343}
32344static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32345 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32346}
32347static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32348 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32349}
32350static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32351 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32352}
32353static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32354 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32355}
32356static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32357 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32358}
32359static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32360 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32361}
32362static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32363 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32364}
32365static void *_p_wxControlTo_p_wxObject(void *x) {
32366 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32367}
32368static void *_p_wxPyControlTo_p_wxObject(void *x) {
32369 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32370}
32371static void *_p_wxGaugeTo_p_wxObject(void *x) {
32372 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32373}
32374static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32375 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32376}
32377static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32379}
32380static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32381 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32382}
32383static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32384 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32385}
32386static void *_p_wxChoiceTo_p_wxObject(void *x) {
32387 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32388}
32389static void *_p_wxFSFileTo_p_wxObject(void *x) {
32390 return (void *)((wxObject *) ((wxFSFile *) x));
32391}
32392static void *_p_wxPySizerTo_p_wxObject(void *x) {
32393 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32394}
32395static void *_p_wxListViewTo_p_wxObject(void *x) {
32396 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32397}
32398static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32400}
32401static void *_p_wxNotebookTo_p_wxObject(void *x) {
32402 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32403}
32404static void *_p_wxPyEventTo_p_wxObject(void *x) {
32405 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32406}
32407static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32408 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32409}
32410static void *_p_wxListbookTo_p_wxObject(void *x) {
32411 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32412}
32413static void *_p_wxShowEventTo_p_wxObject(void *x) {
32414 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32415}
32416static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32417 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32418}
32419static void *_p_wxSliderTo_p_wxObject(void *x) {
32420 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32421}
32422static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32423 return (void *)((wxObject *) ((wxMenuItem *) x));
32424}
32425static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32426 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32427}
32428static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32429 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32430}
32431static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32432 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32433}
32434static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32435 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32436}
32437static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32438 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32439}
32440static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32441 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32442}
32443static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32444 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32445}
32446static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32447 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32448}
32449static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32450 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32451}
32452static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32453 return (void *)((wxObject *) ((wxContextHelp *) x));
32454}
32455static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32456 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32457}
32458static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32459 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32460}
32461static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32462 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32463}
32464static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32465 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32466}
32467static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32468 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32469}
32470static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32471 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32472}
32473static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32474 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32475}
32476static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32477 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32478}
32479static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32480 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32481}
32482static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32483 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32484}
32485static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32486 return (void *)((wxObject *) ((wxImageHandler *) x));
32487}
32488static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32489 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32490}
32491static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32492 return (void *)((wxObject *) ((wxEvtHandler *) x));
32493}
32494static void *_p_wxListEventTo_p_wxObject(void *x) {
32495 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32496}
32497static void *_p_wxListBoxTo_p_wxObject(void *x) {
32498 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32499}
32500static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32501 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32502}
32503static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32504 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32505}
32506static void *_p_wxButtonTo_p_wxObject(void *x) {
32507 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32508}
32509static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32510 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32511}
32512static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32513 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32514}
32515static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32516 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32517}
32518static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32519 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32520}
32521static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32522 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32523}
32524static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32525 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32526}
32527static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32528 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
32529}
32530static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32531 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32532}
32533static void *_p_wxListItemTo_p_wxObject(void *x) {
32534 return (void *)((wxObject *) ((wxListItem *) x));
32535}
32536static void *_p_wxImageTo_p_wxObject(void *x) {
32537 return (void *)((wxObject *) ((wxImage *) x));
32538}
32539static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32540 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32541}
32542static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32543 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32544}
32545static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32546 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32547}
32548static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32549 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32550}
32551static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32552 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32553}
32554static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32555 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32556}
32557static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32558 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32559}
32560static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32561 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32562}
32563static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32564 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32565}
32566static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32567 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32568}
32569static void *_p_wxWindowTo_p_wxObject(void *x) {
32570 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32571}
32572static void *_p_wxMenuTo_p_wxObject(void *x) {
32573 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32574}
32575static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32576 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32577}
32578static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32579 return (void *)((wxObject *) ((wxFileSystem *) x));
32580}
32581static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32582 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32583}
32584static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32585 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32586}
32587static void *_p_wxPyAppTo_p_wxObject(void *x) {
32588 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32589}
32590static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32591 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32592}
32593static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32594 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32595}
32596static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32597 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32598}
32599static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32600 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32601}
32602static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32603 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32604}
32605static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32606 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32607}
32608static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32609 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32610}
32611static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32612 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32613}
32614static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32615 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32616}
32617static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32618 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32619}
32620static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32621 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32622}
32623static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32624 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32625}
32626static void *_p_wxToolBarTo_p_wxObject(void *x) {
32627 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32628}
32629static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32630 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32631}
32632static void *_p_wxValidatorTo_p_wxObject(void *x) {
32633 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32634}
32635static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32636 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32637}
32638static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32639 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32640}
32641static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32642 return (void *)((wxWindow *) ((wxMenuBar *) x));
32643}
32644static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32645 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32646}
32647static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32648 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
32649}
32650static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
32651 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
32652}
32653static void *_p_wxPyControlTo_p_wxWindow(void *x) {
32654 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
32655}
32656static void *_p_wxControlTo_p_wxWindow(void *x) {
32657 return (void *)((wxWindow *) ((wxControl *) x));
32658}
32659static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
32660 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
32661}
32662static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
32663 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32664}
32665static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
32666 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
32667}
32668static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
32669 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
32670}
32671static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
32672 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
32673}
32674static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
32675 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
32676}
32677static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32678 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32679}
32680static void *_p_wxGaugeTo_p_wxWindow(void *x) {
32681 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
32682}
32683static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
32684 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
32685}
32686static void *_p_wxListbookTo_p_wxWindow(void *x) {
32687 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32688}
32689static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
32690 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
32691}
32692static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
32693 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
32694}
32695static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
32696 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
32697}
32698static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
32699 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32700}
32701static void *_p_wxChoiceTo_p_wxWindow(void *x) {
32702 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32703}
32704static void *_p_wxListBoxTo_p_wxWindow(void *x) {
32705 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32706}
32707static void *_p_wxListViewTo_p_wxWindow(void *x) {
32708 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32709}
32710static void *_p_wxNotebookTo_p_wxWindow(void *x) {
32711 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32712}
32713static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
32714 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
32715}
32716static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
32717 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
32718}
32719static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
32720 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
32721}
32722static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
32723 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
32724}
32725static void *_p_wxSliderTo_p_wxWindow(void *x) {
32726 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
32727}
32728static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
32729 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
32730}
32731static void *_p_wxButtonTo_p_wxWindow(void *x) {
32732 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
32733}
32734static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
32735 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
32736}
32737static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
32738 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32739}
32740static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
32741 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
32742}
32743static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
32744 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32745}
32746static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
32747 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32748}
32749static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
32750 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
32751}
32752static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
32753 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
32754}
32755static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
32756 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
32757}
32758static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
32759 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
32760}
32761static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
32762 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
32763}
32764static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
32765 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32766}
32767static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
32768 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32769}
32770static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
32771 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
32772}
32773static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
32774 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
32775}
32776static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
32777 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
32778}
32779static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
32780 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
32781}
32782static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
32783 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
32784}
32785static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
32786 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
32787}
32788static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
32789 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
32790}
32791static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
32792 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
32793}
32794static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
32795 return (void *)((wxControlWithItems *) ((wxChoice *) x));
32796}
32797static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
32798 return (void *)((wxControlWithItems *) ((wxListBox *) x));
32799}
32800static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
32801 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
32802}
32803static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
32804 return (void *)((wxValidator *) ((wxPyValidator *) x));
32805}
32806static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0, 0, 0, 0},{"_p_wxTextUrlEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32807static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32808static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32809static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0, 0, 0, 0},{"_p_wxCheckBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32810static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32811static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32812static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0, 0, 0, 0},{"_p_wxGenericDirCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32813static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32814static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0, 0, 0, 0},{"_p_wxPyTreeItemData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32815static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32816static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32817static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32818static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32819static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32820static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0, 0, 0, 0},{"_p_wxPyControl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32821static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0, 0, 0, 0},{"_p_wxGauge", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32822static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0, 0, 0, 0},{"_p_wxToolBarBase", 0, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32823static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32824static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0, 0, 0, 0},{"_p_wxToggleButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32825static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0, 0, 0, 0},{"_p_wxRadioButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32826static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32827static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32828static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0, 0, 0, 0},{"_p_wxListItemAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32829static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32830static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32831static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32832static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32833static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0, 0, 0, 0},{"_p_wxListView", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32834static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32835static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32836static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32837static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0, 0, 0, 0},{"_p_wxNotebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32838static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32839static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32840static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0, 0, 0, 0},{"_p_wxListbook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32841static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0, 0, 0, 0},{"_p_wxStaticBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32842static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0, 0, 0, 0},{"_p_wxSlider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32843static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32844static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32845static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0, 0, 0, 0},{"_p_wxContextHelp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32846static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32847static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32848static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32849static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32850static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32851static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32852static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0, 0, 0, 0},{"_p_wxSpinButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32853static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32854static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0, 0, 0, 0},{"_p_wxBitmapButton", 0, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32855static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32856static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0, 0, 0, 0},{"_p_wxContextHelpButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32857static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0, 0, 0, 0},{"_p_wxRadioBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32858static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0, 0, 0, 0},{"_p_wxScrollBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32859static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32860static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0, 0, 0, 0},{"_p_wxTreeItemId", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32861static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0, 0, 0, 0},{"_p_wxComboBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32862static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0, 0, 0, 0},{"_p_wxHelpEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32863static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0, 0, 0, 0},{"_p_wxListItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32864static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0, 0, 0, 0},{"_p_wxNotebookSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32865static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0, 0, 0, 0},{"_p_wxSpinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32866static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0, 0, 0, 0},{"_p_wxGenericDragImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32867static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0, 0, 0, 0},{"_p_wxSpinCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32868static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32869static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0, 0, 0, 0},{"_p_wxHelpProvider", 0, 0, 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32870static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0, 0, 0, 0},{"_p_wxTextAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32871static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32872static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32873static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0, 0, 0, 0},{"_p_wxListbookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32874static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32875static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32876static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32877static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32878static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32879static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32880static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32881static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32882static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32883static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32884static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32885static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32886static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0, 0, 0, 0},{"_p_wxToolBarToolBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32887static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32888static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32889static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0, 0, 0, 0},{"_p_wxBookCtrlSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32890static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
32891
32892static swig_type_info *swig_types_initial[] = {
32893_swigt__p_wxTextUrlEvent,
32894_swigt__p_wxBookCtrlEvent,
32895_swigt__p_wxSizer,
32896_swigt__p_wxCheckBox,
32897_swigt__p_wxPyTreeCtrl,
32898_swigt__p_wxEvent,
32899_swigt__p_wxGenericDirCtrl,
32900_swigt__p_bool,
32901_swigt__p_wxPyTreeItemData,
32902_swigt__p_wxItemContainer,
32903_swigt__p_wxPyListCtrl,
32904_swigt__p_wxDirFilterListCtrl,
32905_swigt__p_wxStaticLine,
32906_swigt__p_wxControl,
32907_swigt__p_wxPyControl,
32908_swigt__p_wxGauge,
32909_swigt__p_wxToolBarBase,
32910_swigt__p_wxFont,
32911_swigt__p_wxToggleButton,
32912_swigt__p_wxRadioButton,
32913_swigt__p_wxChoice,
32914_swigt__p_wxMemoryDC,
32915_swigt__p_wxListItemAttr,
32916_swigt__p_void,
32917_swigt__p_int,
32918_swigt__p_wxSize,
32919_swigt__p_wxDC,
32920_swigt__p_wxListView,
32921_swigt__p_wxIcon,
32922_swigt__p_wxVisualAttributes,
32923_swigt__p_wxTextCtrl,
32924_swigt__p_wxNotebook,
32925_swigt__p_wxNotifyEvent,
32926_swigt__p_wxArrayString,
32927_swigt__p_wxListbook,
32928_swigt__p_wxStaticBitmap,
32929_swigt__p_wxSlider,
32930_swigt__p_wxStaticBox,
32931_swigt__p_wxArrayInt,
32932_swigt__p_wxContextHelp,
32933_swigt__p_long,
32934_swigt__p_wxEvtHandler,
32935_swigt__p_wxListEvent,
32936_swigt__p_wxCheckListBox,
32937_swigt__p_wxListBox,
32938_swigt__p_wxBookCtrl,
32939_swigt__p_wxSpinButton,
32940_swigt__p_wxButton,
32941_swigt__p_wxBitmapButton,
32942_swigt__p_wxRect,
32943_swigt__p_wxContextHelpButton,
32944_swigt__p_wxRadioBox,
32945_swigt__p_wxScrollBar,
32946_swigt__p_char,
32947_swigt__p_wxTreeItemId,
32948_swigt__p_wxComboBox,
32949_swigt__p_wxHelpEvent,
32950_swigt__p_wxListItem,
32951_swigt__p_wxNotebookSizer,
32952_swigt__p_wxSpinEvent,
32953_swigt__p_wxGenericDragImage,
32954_swigt__p_wxSpinCtrl,
32955_swigt__p_wxImageList,
32956_swigt__p_wxHelpProvider,
32957_swigt__p_wxTextAttr,
32958_swigt__p_wxSimpleHelpProvider,
32959_swigt__p_wxPoint,
32960_swigt__p_wxListbookEvent,
32961_swigt__p_wxNotebookEvent,
32962_swigt__p_wxObject,
32963_swigt__p_wxCursor,
32964_swigt__p_wxKeyEvent,
32965_swigt__p_wxWindow,
32966_swigt__p_wxString,
32967_swigt__p_wxBitmap,
32968_swigt__p_wxTreeEvent,
32969_swigt__p_wxMouseEvent,
32970_swigt__p_wxCommandEvent,
32971_swigt__p_wxStaticText,
32972_swigt__p_wxControlWithItems,
32973_swigt__p_wxToolBarToolBase,
32974_swigt__p_wxColour,
32975_swigt__p_wxToolBar,
32976_swigt__p_wxBookCtrlSizer,
32977_swigt__p_wxValidator,
329780
32979};
32980
32981
32982/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32983
32984static swig_const_info swig_const_table[] = {
32985{0}};
32986
32987#ifdef __cplusplus
32988}
32989#endif
32990
32991#ifdef __cplusplus
32992extern "C"
32993#endif
32994SWIGEXPORT(void) SWIG_init(void) {
32995 static PyObject *SWIG_globals = 0;
32996 static int typeinit = 0;
32997 PyObject *m, *d;
32998 int i;
32999 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33000 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33001 d = PyModule_GetDict(m);
33002
33003 if (!typeinit) {
33004 for (i = 0; swig_types_initial[i]; i++) {
33005 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33006 }
33007 typeinit = 1;
33008 }
33009 SWIG_InstallConstants(d,swig_const_table);
33010
33011 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33012 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33013 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
33014 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
33015 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
33016 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
33017 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
33018 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
33019 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33020 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
33021 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
33022 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33023 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
33024 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
33025 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
33026 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33027 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33028 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33029 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
33030 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
33031 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
33032 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
33033 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33034 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33035 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33036 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33037 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33038 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
33039 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
33040 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
33041 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
33042 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
33043 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
33044 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
33045 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
33046 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
33047 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
33048 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
33049 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
33050 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
33051 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
33052 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
33053 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
33054 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
33055 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
33056 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
33057 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
33058 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
33059 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
33060 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
33061 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33062 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
33063 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33064 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
33065 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
33066 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
33067 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
33068 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
33069 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
33070 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
33071 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
33072 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
33073 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
33074 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
33075 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
33076 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
33077 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
33078 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
33079 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33080 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33081 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33082 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33083 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33084 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33085 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33086 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
33087 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
33088 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
33089 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
33090 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33091 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33092 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33093 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33094 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33095 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33096 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33097 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
33098 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
33099 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
33100 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
33101 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
33102 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
33103 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
33104 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
33105 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
33106 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
33107 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33108 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33109 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
33110 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
33111 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
33112 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
33113 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
33114 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
33115 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33116 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33117 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
33118 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
33119 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
33120 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
33121 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
33122 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
33123 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
33124 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
33125 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
33126 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
33127 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
33128 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
33129 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
33130 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
33131 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33132 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
33133 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
33134 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
33135 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
33136 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
33137 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
33138 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
33139 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
33140 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
33141 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
33142 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
33143 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
33144 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
33145 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
33146 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
33147 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
33148 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
33149 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
33150 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
33151 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
33152 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
33153 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
33154 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
33155 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
33156 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
33157 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
33158 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
33159 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
33160 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
33161 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
33162 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
33163 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
33164 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
33165 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
33166 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
33167 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
33168 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
33169 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
33170 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
33171 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
33172 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
33173 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
33174 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
33175 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
33176 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
33177 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
33178 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
33179 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
33180 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
33181 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
33182 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
33183 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
33184 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
33185 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
33186 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
33187 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
33188 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
33189 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
33190 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
33191 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
33192 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
33193 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
33194 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
33195 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
33196 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
33197 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
33198 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
33199 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
33200 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33201 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33202 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33203 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33204 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33205 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33206 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33207 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33208 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33209 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33210 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33211 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33212 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33213 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33214 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33215 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33216 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33217 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33218 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33219 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33220 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33221 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33222
33223 // Map renamed classes back to their common name for OOR
33224 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33225
33226 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33227 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
33228 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
33229 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
33230 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
33231 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
33232 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
33233 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
33234 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33235 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
33236 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
33237 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
33238 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
33239 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
33240 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
33241 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
33242 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
33243 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
33244 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
33245 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
33246 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
33247 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
33248 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
33249 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
33250 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
33251 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
33252 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
33253 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
33254 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
33255 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
33256 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
33257 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
33258 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
33259 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
33260 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
33261 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
33262 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33263 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33264 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33265 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33266 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33267 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33268 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33269 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33270 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33271 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33272 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33273 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33274 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33275 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33276 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33277 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33278 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33279 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33280 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33281 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33282
33283 // Map renamed classes back to their common name for OOR
33284 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33285 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33286
33287 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33288 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
33289 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
33290 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
33291 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
33292 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
33293 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
33294 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
33295 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33296 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33297
33298 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33299
33300}
33301