]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
typo fix
[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
d55e5bfc
RD
652 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
653void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
654 // Python aware sorting function for wxPyListCtrl
655 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
656 int retval = 0;
657 PyObject* func = (PyObject*)funcPtr;
658 bool blocked = wxPyBeginBlockThreads();
659
660 PyObject* args = Py_BuildValue("(ii)", item1, item2);
661 PyObject* result = PyEval_CallObject(func, args);
662 Py_DECREF(args);
663 if (result) {
664 retval = PyInt_AsLong(result);
665 Py_DECREF(result);
666 }
667
668 wxPyEndBlockThreads(blocked);
669 return retval;
670 }
671
672 // C++ Version of a Python aware class
673class wxPyListCtrl : public wxListCtrl {
674 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
675public:
676 wxPyListCtrl() : wxListCtrl() {}
677 wxPyListCtrl(wxWindow* parent, wxWindowID id,
678 const wxPoint& pos,
679 const wxSize& size,
680 long style,
681 const wxValidator& validator,
682 const wxString& name) :
683 wxListCtrl(parent, id, pos, size, style, validator, name) {}
684
685 bool Create(wxWindow* parent, wxWindowID id,
686 const wxPoint& pos,
687 const wxSize& size,
688 long style,
689 const wxValidator& validator,
690 const wxString& name) {
691 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
692 }
693
694 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
695 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
696 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
697
698 PYPRIVATE;
699};
700
701IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
702
703IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
704IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
705IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
706
707wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
708 wxListItem item;
709 item.SetMask( wxLIST_MASK_STATE |
710 wxLIST_MASK_TEXT |
711 wxLIST_MASK_IMAGE |
712 wxLIST_MASK_DATA |
713 wxLIST_SET_ITEM |
714 wxLIST_MASK_WIDTH |
715 wxLIST_MASK_FORMAT
716 );
717 if (self->GetColumn(col, item))
718 return new wxListItem(item);
719 else
720 return NULL;
721 }
722wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
723 wxListItem* info = new wxListItem;
724 info->m_itemId = itemId;
725 info->m_col = col;
726 info->m_mask = 0xFFFF;
727 self->GetItem(*info);
728 return info;
729 }
730wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
731 wxPoint pos;
732 self->GetItemPosition(item, pos);
733 return pos;
734 }
735wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
736 wxRect rect;
737 self->GetItemRect(item, rect, code);
738 return rect;
739 }
740bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
741 if (!PyCallable_Check(func))
742 return False;
743 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
744 }
745wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
746
747
748
749 return (wxWindow*)self->m_mainWin;
750
751 }
752
753#include <wx/treectrl.h>
754#include "wx/wxPython/pytree.h"
755
756 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
757bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
758bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
759void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
760 // C++ version of Python aware wxTreeCtrl
761class wxPyTreeCtrl : public wxTreeCtrl {
762 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
763public:
764 wxPyTreeCtrl() : wxTreeCtrl() {}
765 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
766 const wxPoint& pos,
767 const wxSize& size,
768 long style,
769 const wxValidator& validator,
770 const wxString& name) :
771 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
772
773 bool Create(wxWindow *parent, wxWindowID id,
774 const wxPoint& pos,
775 const wxSize& size,
776 long style,
777 const wxValidator& validator,
778 const wxString& name) {
779 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
780 }
781
782
783 int OnCompareItems(const wxTreeItemId& item1,
784 const wxTreeItemId& item2) {
785 int rval = 0;
786 bool found;
787 bool blocked = wxPyBeginBlockThreads();
788 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
789 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
790 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
791 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
792 Py_DECREF(o1);
793 Py_DECREF(o2);
794 }
795 wxPyEndBlockThreads(blocked);
796 if (! found)
797 rval = wxTreeCtrl::OnCompareItems(item1, item2);
798 return rval;
799 }
800 PYPRIVATE;
801};
802
803IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
804
805
806
807#if UINT_MAX < LONG_MAX
808#define SWIG_FromUnsignedInt SWIG_FromLong
809#else
810#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
811#endif
812
813
814SWIGSTATICINLINE(unsigned long)
815SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
816 unsigned long max_value)
817{
818 if (!PyErr_Occurred()) {
819 if (value > max_value) {
820 PyObject *err =
821 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
822 value, type, max_value);
823 PyErr_SetObject(PyExc_OverflowError, err);
824 Py_DECREF(err);
825 }
826 }
827 return value;
828}
829
830
831#if UINT_MAX != ULONG_MAX
832SWIGSTATICINLINE(unsigned int)
833SWIG_AsUnsignedInt(PyObject *obj)
834{
835 return swig_numeric_cast(unsigned int,
836 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
837 "unsigned int", UINT_MAX));
838}
839#else
840#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
841#endif
842
843
844SWIGSTATICINLINE(int)
845SWIG_CheckUnsignedInt(PyObject* obj)
846{
847 SWIG_AsUnsignedInt(obj);
848 if (PyErr_Occurred()) {
849 PyErr_Clear();
850 return 0;
851 } else {
852 return 1;
853 }
854}
855
856wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
857 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
858 if (data == NULL) {
859 data = new wxPyTreeItemData();
860 data->SetId(item); // set the id
861 self->SetItemData(item, data);
862 }
863 return data;
864 }
865PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
866 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
867 if (data == NULL) {
868 data = new wxPyTreeItemData();
869 data->SetId(item); // set the id
870 self->SetItemData(item, data);
871 }
872 return data->GetData();
873 }
874void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
875 data->SetId(item); // set the id
876 self->SetItemData(item, data);
877 }
878void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
879 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
880 if (data == NULL) {
881 data = new wxPyTreeItemData(obj);
882 data->SetId(item); // set the id
883 self->SetItemData(item, data);
884 } else
885 data->SetData(obj);
886 }
887PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
888 bool blocked = wxPyBeginBlockThreads();
889 PyObject* rval = PyList_New(0);
890 wxArrayTreeItemIds array;
891 size_t num, x;
892 num = self->GetSelections(array);
893 for (x=0; x < num; x++) {
894 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
895 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
896 PyList_Append(rval, item);
68e533f8 897 Py_DECREF(item);
d55e5bfc
RD
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 ;
bfddbb17
RD
1043 int arg2 = (int) -1 ;
1044 wxString const &arg3_defvalue = wxPyEmptyString ;
1045 wxString *arg3 = (wxString *) &arg3_defvalue ;
d55e5bfc
RD
1046 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1047 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1048 wxSize const &arg5_defvalue = wxDefaultSize ;
1049 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1050 long arg6 = (long) 0 ;
1051 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1052 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1053 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1054 wxString *arg8 = (wxString *) &arg8_defvalue ;
1055 wxButton *result;
1056 bool temp3 = False ;
1057 wxPoint temp4 ;
1058 wxSize temp5 ;
1059 bool temp8 = False ;
1060 PyObject * obj0 = 0 ;
1061 PyObject * obj1 = 0 ;
1062 PyObject * obj2 = 0 ;
1063 PyObject * obj3 = 0 ;
1064 PyObject * obj4 = 0 ;
1065 PyObject * obj5 = 0 ;
1066 PyObject * obj6 = 0 ;
1067 PyObject * obj7 = 0 ;
1068 char *kwnames[] = {
1069 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1070 };
1071
bfddbb17 1072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
1073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
1075 if (obj1) {
1076 arg2 = (int) SWIG_AsInt(obj1);
1077 if (PyErr_Occurred()) SWIG_fail;
1078 }
1079 if (obj2) {
1080 {
1081 arg3 = wxString_in_helper(obj2);
1082 if (arg3 == NULL) SWIG_fail;
1083 temp3 = True;
1084 }
d55e5bfc
RD
1085 }
1086 if (obj3) {
1087 {
1088 arg4 = &temp4;
1089 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1090 }
1091 }
1092 if (obj4) {
1093 {
1094 arg5 = &temp5;
1095 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1096 }
1097 }
1098 if (obj5) {
1099 arg6 = (long) SWIG_AsLong(obj5);
1100 if (PyErr_Occurred()) SWIG_fail;
1101 }
1102 if (obj6) {
1103 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1104 SWIG_POINTER_EXCEPTION | 0)) == -1)
1105 SWIG_fail;
1106 if (arg7 == NULL) {
1107 PyErr_SetString(PyExc_TypeError,"null reference");
1108 SWIG_fail;
1109 }
1110 }
1111 if (obj7) {
1112 {
1113 arg8 = wxString_in_helper(obj7);
1114 if (arg8 == NULL) SWIG_fail;
1115 temp8 = True;
1116 }
1117 }
1118 {
0439c23b 1119 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1120 PyThreadState* __tstate = wxPyBeginAllowThreads();
1121 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1122
1123 wxPyEndAllowThreads(__tstate);
110da5b0 1124 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 1125 }
b0f7404b 1126 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
d55e5bfc
RD
1127 {
1128 if (temp3)
1129 delete arg3;
1130 }
1131 {
1132 if (temp8)
1133 delete arg8;
1134 }
1135 return resultobj;
1136 fail:
1137 {
1138 if (temp3)
1139 delete arg3;
1140 }
1141 {
1142 if (temp8)
1143 delete arg8;
1144 }
1145 return NULL;
1146}
1147
1148
1149static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1150 PyObject *resultobj;
1151 wxButton *result;
1152 char *kwnames[] = {
1153 NULL
1154 };
1155
1156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1157 {
0439c23b 1158 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1159 PyThreadState* __tstate = wxPyBeginAllowThreads();
1160 result = (wxButton *)new wxButton();
1161
1162 wxPyEndAllowThreads(__tstate);
110da5b0 1163 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 1164 }
b0f7404b 1165 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
d55e5bfc
RD
1166 return resultobj;
1167 fail:
1168 return NULL;
1169}
1170
1171
1172static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1173 PyObject *resultobj;
1174 wxButton *arg1 = (wxButton *) 0 ;
1175 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
1176 int arg3 = (int) -1 ;
1177 wxString const &arg4_defvalue = wxPyEmptyString ;
1178 wxString *arg4 = (wxString *) &arg4_defvalue ;
d55e5bfc
RD
1179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1181 wxSize const &arg6_defvalue = wxDefaultSize ;
1182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1183 long arg7 = (long) 0 ;
1184 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1185 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1186 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1187 wxString *arg9 = (wxString *) &arg9_defvalue ;
1188 bool result;
1189 bool temp4 = False ;
1190 wxPoint temp5 ;
1191 wxSize temp6 ;
1192 bool temp9 = False ;
1193 PyObject * obj0 = 0 ;
1194 PyObject * obj1 = 0 ;
1195 PyObject * obj2 = 0 ;
1196 PyObject * obj3 = 0 ;
1197 PyObject * obj4 = 0 ;
1198 PyObject * obj5 = 0 ;
1199 PyObject * obj6 = 0 ;
1200 PyObject * obj7 = 0 ;
1201 PyObject * obj8 = 0 ;
1202 char *kwnames[] = {
1203 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1204 };
1205
bfddbb17 1206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d55e5bfc
RD
1207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
1211 if (obj2) {
1212 arg3 = (int) SWIG_AsInt(obj2);
1213 if (PyErr_Occurred()) SWIG_fail;
1214 }
1215 if (obj3) {
1216 {
1217 arg4 = wxString_in_helper(obj3);
1218 if (arg4 == NULL) SWIG_fail;
1219 temp4 = True;
1220 }
d55e5bfc
RD
1221 }
1222 if (obj4) {
1223 {
1224 arg5 = &temp5;
1225 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1226 }
1227 }
1228 if (obj5) {
1229 {
1230 arg6 = &temp6;
1231 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1232 }
1233 }
1234 if (obj6) {
1235 arg7 = (long) SWIG_AsLong(obj6);
1236 if (PyErr_Occurred()) SWIG_fail;
1237 }
1238 if (obj7) {
1239 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1240 SWIG_POINTER_EXCEPTION | 0)) == -1)
1241 SWIG_fail;
1242 if (arg8 == NULL) {
1243 PyErr_SetString(PyExc_TypeError,"null reference");
1244 SWIG_fail;
1245 }
1246 }
1247 if (obj8) {
1248 {
1249 arg9 = wxString_in_helper(obj8);
1250 if (arg9 == NULL) SWIG_fail;
1251 temp9 = True;
1252 }
1253 }
1254 {
1255 PyThreadState* __tstate = wxPyBeginAllowThreads();
1256 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1257
1258 wxPyEndAllowThreads(__tstate);
1259 if (PyErr_Occurred()) SWIG_fail;
1260 }
1261 {
1262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1263 }
1264 {
1265 if (temp4)
1266 delete arg4;
1267 }
1268 {
1269 if (temp9)
1270 delete arg9;
1271 }
1272 return resultobj;
1273 fail:
1274 {
1275 if (temp4)
1276 delete arg4;
1277 }
1278 {
1279 if (temp9)
1280 delete arg9;
1281 }
1282 return NULL;
1283}
1284
1285
1286static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1287 PyObject *resultobj;
1288 wxButton *arg1 = (wxButton *) 0 ;
1289 PyObject * obj0 = 0 ;
1290 char *kwnames[] = {
1291 (char *) "self", NULL
1292 };
1293
1294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1297 {
1298 PyThreadState* __tstate = wxPyBeginAllowThreads();
1299 (arg1)->SetDefault();
1300
1301 wxPyEndAllowThreads(__tstate);
1302 if (PyErr_Occurred()) SWIG_fail;
1303 }
1304 Py_INCREF(Py_None); resultobj = Py_None;
1305 return resultobj;
1306 fail:
1307 return NULL;
1308}
1309
1310
1311static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1312 PyObject *resultobj;
1313 wxSize result;
1314 char *kwnames[] = {
1315 NULL
1316 };
1317
1318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1319 {
1320 PyThreadState* __tstate = wxPyBeginAllowThreads();
1321 result = wxButton::GetDefaultSize();
1322
1323 wxPyEndAllowThreads(__tstate);
1324 if (PyErr_Occurred()) SWIG_fail;
1325 }
1326 {
1327 wxSize * resultptr;
1328 resultptr = new wxSize((wxSize &) result);
1329 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1330 }
1331 return resultobj;
1332 fail:
1333 return NULL;
1334}
1335
1336
f20a2e1f
RD
1337static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1338 PyObject *resultobj;
1339 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1340 wxVisualAttributes result;
1341 PyObject * obj0 = 0 ;
1342 char *kwnames[] = {
1343 (char *) "variant", NULL
1344 };
1345
1346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1347 if (obj0) {
1348 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
1349 if (PyErr_Occurred()) SWIG_fail;
1350 }
1351 {
0439c23b 1352 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
1353 PyThreadState* __tstate = wxPyBeginAllowThreads();
1354 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1355
1356 wxPyEndAllowThreads(__tstate);
110da5b0 1357 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
1358 }
1359 {
1360 wxVisualAttributes * resultptr;
1361 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1362 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1363 }
1364 return resultobj;
1365 fail:
1366 return NULL;
1367}
1368
1369
d55e5bfc
RD
1370static PyObject * Button_swigregister(PyObject *self, PyObject *args) {
1371 PyObject *obj;
1372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1373 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1374 Py_INCREF(obj);
1375 return Py_BuildValue((char *)"");
1376}
1377static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1378 PyObject *resultobj;
1379 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
1380 int arg2 = (int) -1 ;
1381 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1382 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
d55e5bfc
RD
1383 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1384 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1385 wxSize const &arg5_defvalue = wxDefaultSize ;
1386 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1387 long arg6 = (long) wxBU_AUTODRAW ;
1388 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1389 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1390 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1391 wxString *arg8 = (wxString *) &arg8_defvalue ;
1392 wxBitmapButton *result;
1393 wxPoint temp4 ;
1394 wxSize temp5 ;
1395 bool temp8 = False ;
1396 PyObject * obj0 = 0 ;
1397 PyObject * obj1 = 0 ;
1398 PyObject * obj2 = 0 ;
1399 PyObject * obj3 = 0 ;
1400 PyObject * obj4 = 0 ;
1401 PyObject * obj5 = 0 ;
1402 PyObject * obj6 = 0 ;
1403 PyObject * obj7 = 0 ;
1404 char *kwnames[] = {
1405 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1406 };
1407
bfddbb17 1408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
1409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
1411 if (obj1) {
1412 arg2 = (int) SWIG_AsInt(obj1);
1413 if (PyErr_Occurred()) SWIG_fail;
1414 }
1415 if (obj2) {
1416 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1417 SWIG_POINTER_EXCEPTION | 0)) == -1)
d55e5bfc 1418 SWIG_fail;
bfddbb17
RD
1419 if (arg3 == NULL) {
1420 PyErr_SetString(PyExc_TypeError,"null reference");
1421 SWIG_fail;
1422 }
d55e5bfc
RD
1423 }
1424 if (obj3) {
1425 {
1426 arg4 = &temp4;
1427 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1428 }
1429 }
1430 if (obj4) {
1431 {
1432 arg5 = &temp5;
1433 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1434 }
1435 }
1436 if (obj5) {
1437 arg6 = (long) SWIG_AsLong(obj5);
1438 if (PyErr_Occurred()) SWIG_fail;
1439 }
1440 if (obj6) {
1441 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1442 SWIG_POINTER_EXCEPTION | 0)) == -1)
1443 SWIG_fail;
1444 if (arg7 == NULL) {
1445 PyErr_SetString(PyExc_TypeError,"null reference");
1446 SWIG_fail;
1447 }
1448 }
1449 if (obj7) {
1450 {
1451 arg8 = wxString_in_helper(obj7);
1452 if (arg8 == NULL) SWIG_fail;
1453 temp8 = True;
1454 }
1455 }
1456 {
0439c23b 1457 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1458 PyThreadState* __tstate = wxPyBeginAllowThreads();
1459 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1460
1461 wxPyEndAllowThreads(__tstate);
110da5b0 1462 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 1463 }
b0f7404b 1464 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
d55e5bfc
RD
1465 {
1466 if (temp8)
1467 delete arg8;
1468 }
1469 return resultobj;
1470 fail:
1471 {
1472 if (temp8)
1473 delete arg8;
1474 }
1475 return NULL;
1476}
1477
1478
1479static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1480 PyObject *resultobj;
1481 wxBitmapButton *result;
1482 char *kwnames[] = {
1483 NULL
1484 };
1485
1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1487 {
0439c23b 1488 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1489 PyThreadState* __tstate = wxPyBeginAllowThreads();
1490 result = (wxBitmapButton *)new wxBitmapButton();
1491
1492 wxPyEndAllowThreads(__tstate);
110da5b0 1493 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 1494 }
b0f7404b 1495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
d55e5bfc
RD
1496 return resultobj;
1497 fail:
1498 return NULL;
1499}
1500
1501
1502static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1503 PyObject *resultobj;
1504 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1505 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
1506 int arg3 = (int) -1 ;
1507 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1508 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
d55e5bfc
RD
1509 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1510 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1511 wxSize const &arg6_defvalue = wxDefaultSize ;
1512 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1513 long arg7 = (long) wxBU_AUTODRAW ;
1514 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1515 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1516 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1517 wxString *arg9 = (wxString *) &arg9_defvalue ;
1518 bool result;
1519 wxPoint temp5 ;
1520 wxSize temp6 ;
1521 bool temp9 = False ;
1522 PyObject * obj0 = 0 ;
1523 PyObject * obj1 = 0 ;
1524 PyObject * obj2 = 0 ;
1525 PyObject * obj3 = 0 ;
1526 PyObject * obj4 = 0 ;
1527 PyObject * obj5 = 0 ;
1528 PyObject * obj6 = 0 ;
1529 PyObject * obj7 = 0 ;
1530 PyObject * obj8 = 0 ;
1531 char *kwnames[] = {
1532 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1533 };
1534
bfddbb17 1535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d55e5bfc
RD
1536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
1540 if (obj2) {
1541 arg3 = (int) SWIG_AsInt(obj2);
1542 if (PyErr_Occurred()) SWIG_fail;
1543 }
1544 if (obj3) {
1545 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1546 SWIG_POINTER_EXCEPTION | 0)) == -1)
d55e5bfc 1547 SWIG_fail;
bfddbb17
RD
1548 if (arg4 == NULL) {
1549 PyErr_SetString(PyExc_TypeError,"null reference");
1550 SWIG_fail;
1551 }
d55e5bfc
RD
1552 }
1553 if (obj4) {
1554 {
1555 arg5 = &temp5;
1556 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1557 }
1558 }
1559 if (obj5) {
1560 {
1561 arg6 = &temp6;
1562 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1563 }
1564 }
1565 if (obj6) {
1566 arg7 = (long) SWIG_AsLong(obj6);
1567 if (PyErr_Occurred()) SWIG_fail;
1568 }
1569 if (obj7) {
1570 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1571 SWIG_POINTER_EXCEPTION | 0)) == -1)
1572 SWIG_fail;
1573 if (arg8 == NULL) {
1574 PyErr_SetString(PyExc_TypeError,"null reference");
1575 SWIG_fail;
1576 }
1577 }
1578 if (obj8) {
1579 {
1580 arg9 = wxString_in_helper(obj8);
1581 if (arg9 == NULL) SWIG_fail;
1582 temp9 = True;
1583 }
1584 }
1585 {
1586 PyThreadState* __tstate = wxPyBeginAllowThreads();
1587 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1588
1589 wxPyEndAllowThreads(__tstate);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 }
1592 {
1593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1594 }
1595 {
1596 if (temp9)
1597 delete arg9;
1598 }
1599 return resultobj;
1600 fail:
1601 {
1602 if (temp9)
1603 delete arg9;
1604 }
1605 return NULL;
1606}
1607
1608
1609static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1610 PyObject *resultobj;
1611 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1612 wxBitmap result;
1613 PyObject * obj0 = 0 ;
1614 char *kwnames[] = {
1615 (char *) "self", NULL
1616 };
1617
1618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1621 {
1622 PyThreadState* __tstate = wxPyBeginAllowThreads();
1623 result = (arg1)->GetBitmapLabel();
1624
1625 wxPyEndAllowThreads(__tstate);
1626 if (PyErr_Occurred()) SWIG_fail;
1627 }
1628 {
1629 wxBitmap * resultptr;
1630 resultptr = new wxBitmap((wxBitmap &) result);
1631 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1632 }
1633 return resultobj;
1634 fail:
1635 return NULL;
1636}
1637
1638
1639static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1640 PyObject *resultobj;
1641 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1642 wxBitmap result;
1643 PyObject * obj0 = 0 ;
1644 char *kwnames[] = {
1645 (char *) "self", NULL
1646 };
1647
1648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1651 {
1652 PyThreadState* __tstate = wxPyBeginAllowThreads();
1653 result = (arg1)->GetBitmapDisabled();
1654
1655 wxPyEndAllowThreads(__tstate);
1656 if (PyErr_Occurred()) SWIG_fail;
1657 }
1658 {
1659 wxBitmap * resultptr;
1660 resultptr = new wxBitmap((wxBitmap &) result);
1661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1662 }
1663 return resultobj;
1664 fail:
1665 return NULL;
1666}
1667
1668
1669static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1670 PyObject *resultobj;
1671 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1672 wxBitmap result;
1673 PyObject * obj0 = 0 ;
1674 char *kwnames[] = {
1675 (char *) "self", NULL
1676 };
1677
1678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1681 {
1682 PyThreadState* __tstate = wxPyBeginAllowThreads();
1683 result = (arg1)->GetBitmapFocus();
1684
1685 wxPyEndAllowThreads(__tstate);
1686 if (PyErr_Occurred()) SWIG_fail;
1687 }
1688 {
1689 wxBitmap * resultptr;
1690 resultptr = new wxBitmap((wxBitmap &) result);
1691 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1692 }
1693 return resultobj;
1694 fail:
1695 return NULL;
1696}
1697
1698
1699static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1700 PyObject *resultobj;
1701 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1702 wxBitmap result;
1703 PyObject * obj0 = 0 ;
1704 char *kwnames[] = {
1705 (char *) "self", NULL
1706 };
1707
1708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1711 {
1712 PyThreadState* __tstate = wxPyBeginAllowThreads();
1713 result = (arg1)->GetBitmapSelected();
1714
1715 wxPyEndAllowThreads(__tstate);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 }
1718 {
1719 wxBitmap * resultptr;
1720 resultptr = new wxBitmap((wxBitmap &) result);
1721 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1722 }
1723 return resultobj;
1724 fail:
1725 return NULL;
1726}
1727
1728
1729static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1730 PyObject *resultobj;
1731 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1732 wxBitmap *arg2 = 0 ;
1733 PyObject * obj0 = 0 ;
1734 PyObject * obj1 = 0 ;
1735 char *kwnames[] = {
1736 (char *) "self",(char *) "bitmap", NULL
1737 };
1738
1739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1742 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1743 SWIG_POINTER_EXCEPTION | 0)) == -1)
1744 SWIG_fail;
1745 if (arg2 == NULL) {
1746 PyErr_SetString(PyExc_TypeError,"null reference");
1747 SWIG_fail;
1748 }
1749 {
1750 PyThreadState* __tstate = wxPyBeginAllowThreads();
1751 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1752
1753 wxPyEndAllowThreads(__tstate);
1754 if (PyErr_Occurred()) SWIG_fail;
1755 }
1756 Py_INCREF(Py_None); resultobj = Py_None;
1757 return resultobj;
1758 fail:
1759 return NULL;
1760}
1761
1762
1763static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1764 PyObject *resultobj;
1765 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1766 wxBitmap *arg2 = 0 ;
1767 PyObject * obj0 = 0 ;
1768 PyObject * obj1 = 0 ;
1769 char *kwnames[] = {
1770 (char *) "self",(char *) "bitmap", NULL
1771 };
1772
1773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1776 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1777 SWIG_POINTER_EXCEPTION | 0)) == -1)
1778 SWIG_fail;
1779 if (arg2 == NULL) {
1780 PyErr_SetString(PyExc_TypeError,"null reference");
1781 SWIG_fail;
1782 }
1783 {
1784 PyThreadState* __tstate = wxPyBeginAllowThreads();
1785 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1786
1787 wxPyEndAllowThreads(__tstate);
1788 if (PyErr_Occurred()) SWIG_fail;
1789 }
1790 Py_INCREF(Py_None); resultobj = Py_None;
1791 return resultobj;
1792 fail:
1793 return NULL;
1794}
1795
1796
1797static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1798 PyObject *resultobj;
1799 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1800 wxBitmap *arg2 = 0 ;
1801 PyObject * obj0 = 0 ;
1802 PyObject * obj1 = 0 ;
1803 char *kwnames[] = {
1804 (char *) "self",(char *) "bitmap", NULL
1805 };
1806
1807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1810 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1811 SWIG_POINTER_EXCEPTION | 0)) == -1)
1812 SWIG_fail;
1813 if (arg2 == NULL) {
1814 PyErr_SetString(PyExc_TypeError,"null reference");
1815 SWIG_fail;
1816 }
1817 {
1818 PyThreadState* __tstate = wxPyBeginAllowThreads();
1819 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1820
1821 wxPyEndAllowThreads(__tstate);
1822 if (PyErr_Occurred()) SWIG_fail;
1823 }
1824 Py_INCREF(Py_None); resultobj = Py_None;
1825 return resultobj;
1826 fail:
1827 return NULL;
1828}
1829
1830
1831static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1832 PyObject *resultobj;
1833 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1834 wxBitmap *arg2 = 0 ;
1835 PyObject * obj0 = 0 ;
1836 PyObject * obj1 = 0 ;
1837 char *kwnames[] = {
1838 (char *) "self",(char *) "bitmap", NULL
1839 };
1840
1841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1844 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1845 SWIG_POINTER_EXCEPTION | 0)) == -1)
1846 SWIG_fail;
1847 if (arg2 == NULL) {
1848 PyErr_SetString(PyExc_TypeError,"null reference");
1849 SWIG_fail;
1850 }
1851 {
1852 PyThreadState* __tstate = wxPyBeginAllowThreads();
1853 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1854
1855 wxPyEndAllowThreads(__tstate);
1856 if (PyErr_Occurred()) SWIG_fail;
1857 }
1858 Py_INCREF(Py_None); resultobj = Py_None;
1859 return resultobj;
1860 fail:
1861 return NULL;
1862}
1863
1864
1865static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1866 PyObject *resultobj;
1867 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1868 int arg2 ;
1869 int arg3 ;
1870 PyObject * obj0 = 0 ;
1871 PyObject * obj1 = 0 ;
1872 PyObject * obj2 = 0 ;
1873 char *kwnames[] = {
1874 (char *) "self",(char *) "x",(char *) "y", NULL
1875 };
1876
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
1878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1880 arg2 = (int) SWIG_AsInt(obj1);
1881 if (PyErr_Occurred()) SWIG_fail;
1882 arg3 = (int) SWIG_AsInt(obj2);
1883 if (PyErr_Occurred()) SWIG_fail;
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 (arg1)->SetMargins(arg2,arg3);
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 Py_INCREF(Py_None); resultobj = Py_None;
1892 return resultobj;
1893 fail:
1894 return NULL;
1895}
1896
1897
1898static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1901 int result;
1902 PyObject * obj0 = 0 ;
1903 char *kwnames[] = {
1904 (char *) "self", NULL
1905 };
1906
1907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
1908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1910 {
1911 PyThreadState* __tstate = wxPyBeginAllowThreads();
1912 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
1913
1914 wxPyEndAllowThreads(__tstate);
1915 if (PyErr_Occurred()) SWIG_fail;
1916 }
1917 resultobj = SWIG_FromInt((int)result);
1918 return resultobj;
1919 fail:
1920 return NULL;
1921}
1922
1923
1924static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1925 PyObject *resultobj;
1926 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1927 int result;
1928 PyObject * obj0 = 0 ;
1929 char *kwnames[] = {
1930 (char *) "self", NULL
1931 };
1932
1933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
1934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1936 {
1937 PyThreadState* __tstate = wxPyBeginAllowThreads();
1938 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
1939
1940 wxPyEndAllowThreads(__tstate);
1941 if (PyErr_Occurred()) SWIG_fail;
1942 }
1943 resultobj = SWIG_FromInt((int)result);
1944 return resultobj;
1945 fail:
1946 return NULL;
1947}
1948
1949
1950static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) {
1951 PyObject *obj;
1952 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1953 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
1954 Py_INCREF(obj);
1955 return Py_BuildValue((char *)"");
1956}
1957static int _wrap_CheckBoxNameStr_set(PyObject *_val) {
1958 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
1959 return 1;
1960}
1961
1962
1963static PyObject *_wrap_CheckBoxNameStr_get() {
1964 PyObject *pyobj;
1965
1966 {
1967#if wxUSE_UNICODE
1968 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1969#else
1970 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
1971#endif
1972 }
1973 return pyobj;
1974}
1975
1976
1977static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1978 PyObject *resultobj;
1979 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
1980 int arg2 = (int) -1 ;
1981 wxString const &arg3_defvalue = wxPyEmptyString ;
1982 wxString *arg3 = (wxString *) &arg3_defvalue ;
d55e5bfc
RD
1983 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1984 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1985 wxSize const &arg5_defvalue = wxDefaultSize ;
1986 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1987 long arg6 = (long) 0 ;
1988 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1989 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1990 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
1991 wxString *arg8 = (wxString *) &arg8_defvalue ;
1992 wxCheckBox *result;
1993 bool temp3 = False ;
1994 wxPoint temp4 ;
1995 wxSize temp5 ;
1996 bool temp8 = False ;
1997 PyObject * obj0 = 0 ;
1998 PyObject * obj1 = 0 ;
1999 PyObject * obj2 = 0 ;
2000 PyObject * obj3 = 0 ;
2001 PyObject * obj4 = 0 ;
2002 PyObject * obj5 = 0 ;
2003 PyObject * obj6 = 0 ;
2004 PyObject * obj7 = 0 ;
2005 char *kwnames[] = {
2006 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2007 };
2008
bfddbb17 2009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
2010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
2012 if (obj1) {
2013 arg2 = (int) SWIG_AsInt(obj1);
2014 if (PyErr_Occurred()) SWIG_fail;
2015 }
2016 if (obj2) {
2017 {
2018 arg3 = wxString_in_helper(obj2);
2019 if (arg3 == NULL) SWIG_fail;
2020 temp3 = True;
2021 }
d55e5bfc
RD
2022 }
2023 if (obj3) {
2024 {
2025 arg4 = &temp4;
2026 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2027 }
2028 }
2029 if (obj4) {
2030 {
2031 arg5 = &temp5;
2032 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2033 }
2034 }
2035 if (obj5) {
2036 arg6 = (long) SWIG_AsLong(obj5);
2037 if (PyErr_Occurred()) SWIG_fail;
2038 }
2039 if (obj6) {
2040 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2041 SWIG_POINTER_EXCEPTION | 0)) == -1)
2042 SWIG_fail;
2043 if (arg7 == NULL) {
2044 PyErr_SetString(PyExc_TypeError,"null reference");
2045 SWIG_fail;
2046 }
2047 }
2048 if (obj7) {
2049 {
2050 arg8 = wxString_in_helper(obj7);
2051 if (arg8 == NULL) SWIG_fail;
2052 temp8 = True;
2053 }
2054 }
2055 {
0439c23b 2056 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2057 PyThreadState* __tstate = wxPyBeginAllowThreads();
2058 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2059
2060 wxPyEndAllowThreads(__tstate);
110da5b0 2061 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2062 }
2063 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2064 {
2065 if (temp3)
2066 delete arg3;
2067 }
2068 {
2069 if (temp8)
2070 delete arg8;
2071 }
2072 return resultobj;
2073 fail:
2074 {
2075 if (temp3)
2076 delete arg3;
2077 }
2078 {
2079 if (temp8)
2080 delete arg8;
2081 }
2082 return NULL;
2083}
2084
2085
2086static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2087 PyObject *resultobj;
2088 wxCheckBox *result;
2089 char *kwnames[] = {
2090 NULL
2091 };
2092
2093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2094 {
0439c23b 2095 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2096 PyThreadState* __tstate = wxPyBeginAllowThreads();
2097 result = (wxCheckBox *)new wxCheckBox();
2098
2099 wxPyEndAllowThreads(__tstate);
110da5b0 2100 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2101 }
2102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2103 return resultobj;
2104 fail:
2105 return NULL;
2106}
2107
2108
2109static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2110 PyObject *resultobj;
2111 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2112 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
2113 int arg3 = (int) -1 ;
2114 wxString const &arg4_defvalue = wxPyEmptyString ;
2115 wxString *arg4 = (wxString *) &arg4_defvalue ;
d55e5bfc
RD
2116 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2117 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2118 wxSize const &arg6_defvalue = wxDefaultSize ;
2119 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2120 long arg7 = (long) 0 ;
2121 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2122 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2123 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2124 wxString *arg9 = (wxString *) &arg9_defvalue ;
2125 bool result;
2126 bool temp4 = False ;
2127 wxPoint temp5 ;
2128 wxSize temp6 ;
2129 bool temp9 = False ;
2130 PyObject * obj0 = 0 ;
2131 PyObject * obj1 = 0 ;
2132 PyObject * obj2 = 0 ;
2133 PyObject * obj3 = 0 ;
2134 PyObject * obj4 = 0 ;
2135 PyObject * obj5 = 0 ;
2136 PyObject * obj6 = 0 ;
2137 PyObject * obj7 = 0 ;
2138 PyObject * obj8 = 0 ;
2139 char *kwnames[] = {
2140 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2141 };
2142
bfddbb17 2143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d55e5bfc
RD
2144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2146 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
2148 if (obj2) {
2149 arg3 = (int) SWIG_AsInt(obj2);
2150 if (PyErr_Occurred()) SWIG_fail;
2151 }
2152 if (obj3) {
2153 {
2154 arg4 = wxString_in_helper(obj3);
2155 if (arg4 == NULL) SWIG_fail;
2156 temp4 = True;
2157 }
d55e5bfc
RD
2158 }
2159 if (obj4) {
2160 {
2161 arg5 = &temp5;
2162 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2163 }
2164 }
2165 if (obj5) {
2166 {
2167 arg6 = &temp6;
2168 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2169 }
2170 }
2171 if (obj6) {
2172 arg7 = (long) SWIG_AsLong(obj6);
2173 if (PyErr_Occurred()) SWIG_fail;
2174 }
2175 if (obj7) {
2176 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2177 SWIG_POINTER_EXCEPTION | 0)) == -1)
2178 SWIG_fail;
2179 if (arg8 == NULL) {
2180 PyErr_SetString(PyExc_TypeError,"null reference");
2181 SWIG_fail;
2182 }
2183 }
2184 if (obj8) {
2185 {
2186 arg9 = wxString_in_helper(obj8);
2187 if (arg9 == NULL) SWIG_fail;
2188 temp9 = True;
2189 }
2190 }
2191 {
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 {
2199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2200 }
2201 {
2202 if (temp4)
2203 delete arg4;
2204 }
2205 {
2206 if (temp9)
2207 delete arg9;
2208 }
2209 return resultobj;
2210 fail:
2211 {
2212 if (temp4)
2213 delete arg4;
2214 }
2215 {
2216 if (temp9)
2217 delete arg9;
2218 }
2219 return NULL;
2220}
2221
2222
2223static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2224 PyObject *resultobj;
2225 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2226 bool result;
2227 PyObject * obj0 = 0 ;
2228 char *kwnames[] = {
2229 (char *) "self", NULL
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2235 {
2236 PyThreadState* __tstate = wxPyBeginAllowThreads();
2237 result = (bool)(arg1)->GetValue();
2238
2239 wxPyEndAllowThreads(__tstate);
2240 if (PyErr_Occurred()) SWIG_fail;
2241 }
2242 {
2243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2244 }
2245 return resultobj;
2246 fail:
2247 return NULL;
2248}
2249
2250
2251static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2252 PyObject *resultobj;
2253 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2254 bool result;
2255 PyObject * obj0 = 0 ;
2256 char *kwnames[] = {
2257 (char *) "self", NULL
2258 };
2259
2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2263 {
2264 PyThreadState* __tstate = wxPyBeginAllowThreads();
2265 result = (bool)(arg1)->IsChecked();
2266
2267 wxPyEndAllowThreads(__tstate);
2268 if (PyErr_Occurred()) SWIG_fail;
2269 }
2270 {
2271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2272 }
2273 return resultobj;
2274 fail:
2275 return NULL;
2276}
2277
2278
2279static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject *resultobj;
2281 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2282 bool arg2 ;
2283 PyObject * obj0 = 0 ;
2284 PyObject * obj1 = 0 ;
2285 char *kwnames[] = {
2286 (char *) "self",(char *) "state", NULL
2287 };
2288
2289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2292 arg2 = (bool const) SWIG_AsBool(obj1);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 {
2295 PyThreadState* __tstate = wxPyBeginAllowThreads();
2296 (arg1)->SetValue(arg2);
2297
2298 wxPyEndAllowThreads(__tstate);
2299 if (PyErr_Occurred()) SWIG_fail;
2300 }
2301 Py_INCREF(Py_None); resultobj = Py_None;
2302 return resultobj;
2303 fail:
2304 return NULL;
2305}
2306
2307
2308static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2309 PyObject *resultobj;
2310 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2311 int result;
2312 PyObject * obj0 = 0 ;
2313 char *kwnames[] = {
2314 (char *) "self", NULL
2315 };
2316
2317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2320 {
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
2322 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2323
2324 wxPyEndAllowThreads(__tstate);
2325 if (PyErr_Occurred()) SWIG_fail;
2326 }
2327 resultobj = SWIG_FromInt((int)result);
2328 return resultobj;
2329 fail:
2330 return NULL;
2331}
2332
2333
2334static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2335 PyObject *resultobj;
2336 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2337 int arg2 ;
2338 PyObject * obj0 = 0 ;
2339 PyObject * obj1 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "self",(char *) "state", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2347 arg2 = (wxCheckBoxState) SWIG_AsInt(obj1);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 {
2350 PyThreadState* __tstate = wxPyBeginAllowThreads();
2351 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2352
2353 wxPyEndAllowThreads(__tstate);
2354 if (PyErr_Occurred()) SWIG_fail;
2355 }
2356 Py_INCREF(Py_None); resultobj = Py_None;
2357 return resultobj;
2358 fail:
2359 return NULL;
2360}
2361
2362
2363static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2364 PyObject *resultobj;
2365 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2366 bool result;
2367 PyObject * obj0 = 0 ;
2368 char *kwnames[] = {
2369 (char *) "self", NULL
2370 };
2371
2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2375 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) SWIG_fail;
2381 }
2382 {
2383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2384 }
2385 return resultobj;
2386 fail:
2387 return NULL;
2388}
2389
2390
2391static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2392 PyObject *resultobj;
2393 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2394 bool result;
2395 PyObject * obj0 = 0 ;
2396 char *kwnames[] = {
2397 (char *) "self", NULL
2398 };
2399
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2403 {
2404 PyThreadState* __tstate = wxPyBeginAllowThreads();
2405 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2406
2407 wxPyEndAllowThreads(__tstate);
2408 if (PyErr_Occurred()) SWIG_fail;
2409 }
2410 {
2411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2412 }
2413 return resultobj;
2414 fail:
2415 return NULL;
2416}
2417
2418
f20a2e1f
RD
2419static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2420 PyObject *resultobj;
2421 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2422 wxVisualAttributes result;
2423 PyObject * obj0 = 0 ;
2424 char *kwnames[] = {
2425 (char *) "variant", NULL
2426 };
2427
2428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2429 if (obj0) {
2430 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 }
2433 {
0439c23b 2434 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
2435 PyThreadState* __tstate = wxPyBeginAllowThreads();
2436 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2437
2438 wxPyEndAllowThreads(__tstate);
110da5b0 2439 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
2440 }
2441 {
2442 wxVisualAttributes * resultptr;
2443 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2444 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2445 }
2446 return resultobj;
2447 fail:
2448 return NULL;
2449}
2450
2451
d55e5bfc
RD
2452static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) {
2453 PyObject *obj;
2454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2455 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2456 Py_INCREF(obj);
2457 return Py_BuildValue((char *)"");
2458}
2459static int _wrap_ChoiceNameStr_set(PyObject *_val) {
2460 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2461 return 1;
2462}
2463
2464
2465static PyObject *_wrap_ChoiceNameStr_get() {
2466 PyObject *pyobj;
2467
2468 {
2469#if wxUSE_UNICODE
2470 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2471#else
2472 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2473#endif
2474 }
2475 return pyobj;
2476}
2477
2478
2479static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxWindow *arg1 = (wxWindow *) 0 ;
2482 int arg2 = (int) -1 ;
2483 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2484 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2485 wxSize const &arg4_defvalue = wxDefaultSize ;
2486 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2487 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2488 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2489 long arg6 = (long) 0 ;
2490 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2491 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2492 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2493 wxString *arg8 = (wxString *) &arg8_defvalue ;
2494 wxChoice *result;
2495 wxPoint temp3 ;
2496 wxSize temp4 ;
2497 bool temp5 = False ;
2498 bool temp8 = False ;
2499 PyObject * obj0 = 0 ;
2500 PyObject * obj1 = 0 ;
2501 PyObject * obj2 = 0 ;
2502 PyObject * obj3 = 0 ;
2503 PyObject * obj4 = 0 ;
2504 PyObject * obj5 = 0 ;
2505 PyObject * obj6 = 0 ;
2506 PyObject * obj7 = 0 ;
2507 char *kwnames[] = {
2508 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2509 };
2510
2511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2514 if (obj1) {
2515 arg2 = (int) SWIG_AsInt(obj1);
2516 if (PyErr_Occurred()) SWIG_fail;
2517 }
2518 if (obj2) {
2519 {
2520 arg3 = &temp3;
2521 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2522 }
2523 }
2524 if (obj3) {
2525 {
2526 arg4 = &temp4;
2527 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2528 }
2529 }
2530 if (obj4) {
2531 {
2532 if (! PySequence_Check(obj4)) {
2533 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2534 SWIG_fail;
2535 }
2536 arg5 = new wxArrayString;
2537 temp5 = True;
2538 int i, len=PySequence_Length(obj4);
2539 for (i=0; i<len; i++) {
2540 PyObject* item = PySequence_GetItem(obj4, i);
2541#if wxUSE_UNICODE
2542 PyObject* str = PyObject_Unicode(item);
2543#else
2544 PyObject* str = PyObject_Str(item);
2545#endif
2546 if (PyErr_Occurred()) SWIG_fail;
2547 arg5->Add(Py2wxString(str));
2548 Py_DECREF(item);
2549 Py_DECREF(str);
2550 }
2551 }
2552 }
2553 if (obj5) {
2554 arg6 = (long) SWIG_AsLong(obj5);
2555 if (PyErr_Occurred()) SWIG_fail;
2556 }
2557 if (obj6) {
2558 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2559 SWIG_POINTER_EXCEPTION | 0)) == -1)
2560 SWIG_fail;
2561 if (arg7 == NULL) {
2562 PyErr_SetString(PyExc_TypeError,"null reference");
2563 SWIG_fail;
2564 }
2565 }
2566 if (obj7) {
2567 {
2568 arg8 = wxString_in_helper(obj7);
2569 if (arg8 == NULL) SWIG_fail;
2570 temp8 = True;
2571 }
2572 }
2573 {
0439c23b 2574 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2575 PyThreadState* __tstate = wxPyBeginAllowThreads();
2576 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2577
2578 wxPyEndAllowThreads(__tstate);
110da5b0 2579 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2580 }
2581 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2582 {
2583 if (temp5) delete arg5;
2584 }
2585 {
2586 if (temp8)
2587 delete arg8;
2588 }
2589 return resultobj;
2590 fail:
2591 {
2592 if (temp5) delete arg5;
2593 }
2594 {
2595 if (temp8)
2596 delete arg8;
2597 }
2598 return NULL;
2599}
2600
2601
2602static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2603 PyObject *resultobj;
2604 wxChoice *result;
2605 char *kwnames[] = {
2606 NULL
2607 };
2608
2609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2610 {
0439c23b 2611 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2612 PyThreadState* __tstate = wxPyBeginAllowThreads();
2613 result = (wxChoice *)new wxChoice();
2614
2615 wxPyEndAllowThreads(__tstate);
110da5b0 2616 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2617 }
2618 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2619 return resultobj;
2620 fail:
2621 return NULL;
2622}
2623
2624
2625static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2626 PyObject *resultobj;
2627 wxChoice *arg1 = (wxChoice *) 0 ;
2628 wxWindow *arg2 = (wxWindow *) 0 ;
2629 int arg3 = (int) -1 ;
2630 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2631 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2632 wxSize const &arg5_defvalue = wxDefaultSize ;
2633 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2634 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2635 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2636 long arg7 = (long) 0 ;
2637 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2638 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2639 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2640 wxString *arg9 = (wxString *) &arg9_defvalue ;
2641 bool result;
2642 wxPoint temp4 ;
2643 wxSize temp5 ;
2644 bool temp6 = False ;
2645 bool temp9 = False ;
2646 PyObject * obj0 = 0 ;
2647 PyObject * obj1 = 0 ;
2648 PyObject * obj2 = 0 ;
2649 PyObject * obj3 = 0 ;
2650 PyObject * obj4 = 0 ;
2651 PyObject * obj5 = 0 ;
2652 PyObject * obj6 = 0 ;
2653 PyObject * obj7 = 0 ;
2654 PyObject * obj8 = 0 ;
2655 char *kwnames[] = {
2656 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2657 };
2658
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2662 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2664 if (obj2) {
2665 arg3 = (int) SWIG_AsInt(obj2);
2666 if (PyErr_Occurred()) SWIG_fail;
2667 }
2668 if (obj3) {
2669 {
2670 arg4 = &temp4;
2671 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2672 }
2673 }
2674 if (obj4) {
2675 {
2676 arg5 = &temp5;
2677 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2678 }
2679 }
2680 if (obj5) {
2681 {
2682 if (! PySequence_Check(obj5)) {
2683 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2684 SWIG_fail;
2685 }
2686 arg6 = new wxArrayString;
2687 temp6 = True;
2688 int i, len=PySequence_Length(obj5);
2689 for (i=0; i<len; i++) {
2690 PyObject* item = PySequence_GetItem(obj5, i);
2691#if wxUSE_UNICODE
2692 PyObject* str = PyObject_Unicode(item);
2693#else
2694 PyObject* str = PyObject_Str(item);
2695#endif
2696 if (PyErr_Occurred()) SWIG_fail;
2697 arg6->Add(Py2wxString(str));
2698 Py_DECREF(item);
2699 Py_DECREF(str);
2700 }
2701 }
2702 }
2703 if (obj6) {
2704 arg7 = (long) SWIG_AsLong(obj6);
2705 if (PyErr_Occurred()) SWIG_fail;
2706 }
2707 if (obj7) {
2708 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2709 SWIG_POINTER_EXCEPTION | 0)) == -1)
2710 SWIG_fail;
2711 if (arg8 == NULL) {
2712 PyErr_SetString(PyExc_TypeError,"null reference");
2713 SWIG_fail;
2714 }
2715 }
2716 if (obj8) {
2717 {
2718 arg9 = wxString_in_helper(obj8);
2719 if (arg9 == NULL) SWIG_fail;
2720 temp9 = True;
2721 }
2722 }
2723 {
2724 PyThreadState* __tstate = wxPyBeginAllowThreads();
2725 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2726
2727 wxPyEndAllowThreads(__tstate);
2728 if (PyErr_Occurred()) SWIG_fail;
2729 }
2730 {
2731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2732 }
2733 {
2734 if (temp6) delete arg6;
2735 }
2736 {
2737 if (temp9)
2738 delete arg9;
2739 }
2740 return resultobj;
2741 fail:
2742 {
2743 if (temp6) delete arg6;
2744 }
2745 {
2746 if (temp9)
2747 delete arg9;
2748 }
2749 return NULL;
2750}
2751
2752
2753static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2754 PyObject *resultobj;
2755 wxChoice *arg1 = (wxChoice *) 0 ;
2756 int arg2 ;
2757 PyObject * obj0 = 0 ;
2758 PyObject * obj1 = 0 ;
2759 char *kwnames[] = {
2760 (char *) "self",(char *) "n", NULL
2761 };
2762
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2766 arg2 = (int const) SWIG_AsInt(obj1);
2767 if (PyErr_Occurred()) SWIG_fail;
2768 {
2769 PyThreadState* __tstate = wxPyBeginAllowThreads();
2770 (arg1)->SetSelection(arg2);
2771
2772 wxPyEndAllowThreads(__tstate);
2773 if (PyErr_Occurred()) SWIG_fail;
2774 }
2775 Py_INCREF(Py_None); resultobj = Py_None;
2776 return resultobj;
2777 fail:
2778 return NULL;
2779}
2780
2781
2782static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2783 PyObject *resultobj;
2784 wxChoice *arg1 = (wxChoice *) 0 ;
2785 wxString *arg2 = 0 ;
121b9a67 2786 bool result;
d55e5bfc
RD
2787 bool temp2 = False ;
2788 PyObject * obj0 = 0 ;
2789 PyObject * obj1 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "self",(char *) "string", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2797 {
2798 arg2 = wxString_in_helper(obj1);
2799 if (arg2 == NULL) SWIG_fail;
2800 temp2 = True;
2801 }
2802 {
2803 PyThreadState* __tstate = wxPyBeginAllowThreads();
121b9a67 2804 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
d55e5bfc
RD
2805
2806 wxPyEndAllowThreads(__tstate);
2807 if (PyErr_Occurred()) SWIG_fail;
2808 }
121b9a67
RD
2809 {
2810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2811 }
d55e5bfc
RD
2812 {
2813 if (temp2)
2814 delete arg2;
2815 }
2816 return resultobj;
2817 fail:
2818 {
2819 if (temp2)
2820 delete arg2;
2821 }
2822 return NULL;
2823}
2824
2825
2826static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2827 PyObject *resultobj;
2828 wxChoice *arg1 = (wxChoice *) 0 ;
2829 int arg2 ;
2830 wxString *arg3 = 0 ;
2831 bool temp3 = False ;
2832 PyObject * obj0 = 0 ;
2833 PyObject * obj1 = 0 ;
2834 PyObject * obj2 = 0 ;
2835 char *kwnames[] = {
2836 (char *) "self",(char *) "n",(char *) "string", NULL
2837 };
2838
2839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2842 arg2 = (int) SWIG_AsInt(obj1);
2843 if (PyErr_Occurred()) SWIG_fail;
2844 {
2845 arg3 = wxString_in_helper(obj2);
2846 if (arg3 == NULL) SWIG_fail;
2847 temp3 = True;
2848 }
2849 {
2850 PyThreadState* __tstate = wxPyBeginAllowThreads();
2851 (arg1)->SetString(arg2,(wxString const &)*arg3);
2852
2853 wxPyEndAllowThreads(__tstate);
2854 if (PyErr_Occurred()) SWIG_fail;
2855 }
2856 Py_INCREF(Py_None); resultobj = Py_None;
2857 {
2858 if (temp3)
2859 delete arg3;
2860 }
2861 return resultobj;
2862 fail:
2863 {
2864 if (temp3)
2865 delete arg3;
2866 }
2867 return NULL;
2868}
2869
2870
f20a2e1f
RD
2871static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
2872 PyObject *resultobj;
2873 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2874 wxVisualAttributes result;
2875 PyObject * obj0 = 0 ;
2876 char *kwnames[] = {
2877 (char *) "variant", NULL
2878 };
2879
2880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2881 if (obj0) {
2882 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
2883 if (PyErr_Occurred()) SWIG_fail;
2884 }
2885 {
0439c23b 2886 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
2887 PyThreadState* __tstate = wxPyBeginAllowThreads();
2888 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
2889
2890 wxPyEndAllowThreads(__tstate);
110da5b0 2891 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
2892 }
2893 {
2894 wxVisualAttributes * resultptr;
2895 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2896 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2897 }
2898 return resultobj;
2899 fail:
2900 return NULL;
2901}
2902
2903
d55e5bfc
RD
2904static PyObject * Choice_swigregister(PyObject *self, PyObject *args) {
2905 PyObject *obj;
2906 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2907 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
2908 Py_INCREF(obj);
2909 return Py_BuildValue((char *)"");
2910}
2911static int _wrap_ComboBoxNameStr_set(PyObject *_val) {
2912 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
2913 return 1;
2914}
2915
2916
2917static PyObject *_wrap_ComboBoxNameStr_get() {
2918 PyObject *pyobj;
2919
2920 {
2921#if wxUSE_UNICODE
2922 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2923#else
2924 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
2925#endif
2926 }
2927 return pyobj;
2928}
2929
2930
2931static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2932 PyObject *resultobj;
2933 wxWindow *arg1 = (wxWindow *) 0 ;
2934 int arg2 = (int) -1 ;
2935 wxString const &arg3_defvalue = wxPyEmptyString ;
2936 wxString *arg3 = (wxString *) &arg3_defvalue ;
2937 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2938 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2939 wxSize const &arg5_defvalue = wxDefaultSize ;
2940 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2941 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2942 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2943 long arg7 = (long) 0 ;
2944 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2945 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2946 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
2947 wxString *arg9 = (wxString *) &arg9_defvalue ;
2948 wxComboBox *result;
2949 bool temp3 = False ;
2950 wxPoint temp4 ;
2951 wxSize temp5 ;
2952 bool temp6 = False ;
2953 bool temp9 = False ;
2954 PyObject * obj0 = 0 ;
2955 PyObject * obj1 = 0 ;
2956 PyObject * obj2 = 0 ;
2957 PyObject * obj3 = 0 ;
2958 PyObject * obj4 = 0 ;
2959 PyObject * obj5 = 0 ;
2960 PyObject * obj6 = 0 ;
2961 PyObject * obj7 = 0 ;
2962 PyObject * obj8 = 0 ;
2963 char *kwnames[] = {
2964 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2965 };
2966
2967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2970 if (obj1) {
2971 arg2 = (int) SWIG_AsInt(obj1);
2972 if (PyErr_Occurred()) SWIG_fail;
2973 }
2974 if (obj2) {
2975 {
2976 arg3 = wxString_in_helper(obj2);
2977 if (arg3 == NULL) SWIG_fail;
2978 temp3 = True;
2979 }
2980 }
2981 if (obj3) {
2982 {
2983 arg4 = &temp4;
2984 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2985 }
2986 }
2987 if (obj4) {
2988 {
2989 arg5 = &temp5;
2990 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2991 }
2992 }
2993 if (obj5) {
2994 {
2995 if (! PySequence_Check(obj5)) {
2996 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2997 SWIG_fail;
2998 }
2999 arg6 = new wxArrayString;
3000 temp6 = True;
3001 int i, len=PySequence_Length(obj5);
3002 for (i=0; i<len; i++) {
3003 PyObject* item = PySequence_GetItem(obj5, i);
3004#if wxUSE_UNICODE
3005 PyObject* str = PyObject_Unicode(item);
3006#else
3007 PyObject* str = PyObject_Str(item);
3008#endif
3009 if (PyErr_Occurred()) SWIG_fail;
3010 arg6->Add(Py2wxString(str));
3011 Py_DECREF(item);
3012 Py_DECREF(str);
3013 }
3014 }
3015 }
3016 if (obj6) {
3017 arg7 = (long) SWIG_AsLong(obj6);
3018 if (PyErr_Occurred()) SWIG_fail;
3019 }
3020 if (obj7) {
3021 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3022 SWIG_POINTER_EXCEPTION | 0)) == -1)
3023 SWIG_fail;
3024 if (arg8 == NULL) {
3025 PyErr_SetString(PyExc_TypeError,"null reference");
3026 SWIG_fail;
3027 }
3028 }
3029 if (obj8) {
3030 {
3031 arg9 = wxString_in_helper(obj8);
3032 if (arg9 == NULL) SWIG_fail;
3033 temp9 = True;
3034 }
3035 }
3036 {
0439c23b 3037 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3038 PyThreadState* __tstate = wxPyBeginAllowThreads();
3039 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);
3040
3041 wxPyEndAllowThreads(__tstate);
110da5b0 3042 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3043 }
3044 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3045 {
3046 if (temp3)
3047 delete arg3;
3048 }
3049 {
3050 if (temp6) delete arg6;
3051 }
3052 {
3053 if (temp9)
3054 delete arg9;
3055 }
3056 return resultobj;
3057 fail:
3058 {
3059 if (temp3)
3060 delete arg3;
3061 }
3062 {
3063 if (temp6) delete arg6;
3064 }
3065 {
3066 if (temp9)
3067 delete arg9;
3068 }
3069 return NULL;
3070}
3071
3072
3073static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3074 PyObject *resultobj;
3075 wxComboBox *result;
3076 char *kwnames[] = {
3077 NULL
3078 };
3079
3080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3081 {
0439c23b 3082 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3083 PyThreadState* __tstate = wxPyBeginAllowThreads();
3084 result = (wxComboBox *)new wxComboBox();
3085
3086 wxPyEndAllowThreads(__tstate);
110da5b0 3087 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3088 }
3089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3090 return resultobj;
3091 fail:
3092 return NULL;
3093}
3094
3095
3096static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3097 PyObject *resultobj;
3098 wxComboBox *arg1 = (wxComboBox *) 0 ;
3099 wxWindow *arg2 = (wxWindow *) 0 ;
3100 int arg3 = (int) -1 ;
3101 wxString const &arg4_defvalue = wxPyEmptyString ;
3102 wxString *arg4 = (wxString *) &arg4_defvalue ;
3103 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3104 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3105 wxSize const &arg6_defvalue = wxDefaultSize ;
3106 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3107 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3108 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3109 long arg8 = (long) 0 ;
3110 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3111 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3112 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3113 wxString *arg10 = (wxString *) &arg10_defvalue ;
3114 bool result;
3115 bool temp4 = False ;
3116 wxPoint temp5 ;
3117 wxSize temp6 ;
3118 bool temp7 = False ;
3119 bool temp10 = False ;
3120 PyObject * obj0 = 0 ;
3121 PyObject * obj1 = 0 ;
3122 PyObject * obj2 = 0 ;
3123 PyObject * obj3 = 0 ;
3124 PyObject * obj4 = 0 ;
3125 PyObject * obj5 = 0 ;
3126 PyObject * obj6 = 0 ;
3127 PyObject * obj7 = 0 ;
3128 PyObject * obj8 = 0 ;
3129 PyObject * obj9 = 0 ;
3130 char *kwnames[] = {
3131 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3132 };
3133
3134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3139 if (obj2) {
3140 arg3 = (int) SWIG_AsInt(obj2);
3141 if (PyErr_Occurred()) SWIG_fail;
3142 }
3143 if (obj3) {
3144 {
3145 arg4 = wxString_in_helper(obj3);
3146 if (arg4 == NULL) SWIG_fail;
3147 temp4 = True;
3148 }
3149 }
3150 if (obj4) {
3151 {
3152 arg5 = &temp5;
3153 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3154 }
3155 }
3156 if (obj5) {
3157 {
3158 arg6 = &temp6;
3159 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3160 }
3161 }
3162 if (obj6) {
3163 {
3164 if (! PySequence_Check(obj6)) {
3165 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3166 SWIG_fail;
3167 }
3168 arg7 = new wxArrayString;
3169 temp7 = True;
3170 int i, len=PySequence_Length(obj6);
3171 for (i=0; i<len; i++) {
3172 PyObject* item = PySequence_GetItem(obj6, i);
3173#if wxUSE_UNICODE
3174 PyObject* str = PyObject_Unicode(item);
3175#else
3176 PyObject* str = PyObject_Str(item);
3177#endif
3178 if (PyErr_Occurred()) SWIG_fail;
3179 arg7->Add(Py2wxString(str));
3180 Py_DECREF(item);
3181 Py_DECREF(str);
3182 }
3183 }
3184 }
3185 if (obj7) {
3186 arg8 = (long) SWIG_AsLong(obj7);
3187 if (PyErr_Occurred()) SWIG_fail;
3188 }
3189 if (obj8) {
3190 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3191 SWIG_POINTER_EXCEPTION | 0)) == -1)
3192 SWIG_fail;
3193 if (arg9 == NULL) {
3194 PyErr_SetString(PyExc_TypeError,"null reference");
3195 SWIG_fail;
3196 }
3197 }
3198 if (obj9) {
3199 {
3200 arg10 = wxString_in_helper(obj9);
3201 if (arg10 == NULL) SWIG_fail;
3202 temp10 = True;
3203 }
3204 }
3205 {
3206 PyThreadState* __tstate = wxPyBeginAllowThreads();
3207 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);
3208
3209 wxPyEndAllowThreads(__tstate);
3210 if (PyErr_Occurred()) SWIG_fail;
3211 }
3212 {
3213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3214 }
3215 {
3216 if (temp4)
3217 delete arg4;
3218 }
3219 {
3220 if (temp7) delete arg7;
3221 }
3222 {
3223 if (temp10)
3224 delete arg10;
3225 }
3226 return resultobj;
3227 fail:
3228 {
3229 if (temp4)
3230 delete arg4;
3231 }
3232 {
3233 if (temp7) delete arg7;
3234 }
3235 {
3236 if (temp10)
3237 delete arg10;
3238 }
3239 return NULL;
3240}
3241
3242
3243static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3244 PyObject *resultobj;
3245 wxComboBox *arg1 = (wxComboBox *) 0 ;
3246 wxString result;
3247 PyObject * obj0 = 0 ;
3248 char *kwnames[] = {
3249 (char *) "self", NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3255 {
3256 PyThreadState* __tstate = wxPyBeginAllowThreads();
3257 result = ((wxComboBox const *)arg1)->GetValue();
3258
3259 wxPyEndAllowThreads(__tstate);
3260 if (PyErr_Occurred()) SWIG_fail;
3261 }
3262 {
3263#if wxUSE_UNICODE
3264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3265#else
3266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3267#endif
3268 }
3269 return resultobj;
3270 fail:
3271 return NULL;
3272}
3273
3274
3275static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3276 PyObject *resultobj;
3277 wxComboBox *arg1 = (wxComboBox *) 0 ;
3278 wxString *arg2 = 0 ;
3279 bool temp2 = False ;
3280 PyObject * obj0 = 0 ;
3281 PyObject * obj1 = 0 ;
3282 char *kwnames[] = {
3283 (char *) "self",(char *) "value", NULL
3284 };
3285
3286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3289 {
3290 arg2 = wxString_in_helper(obj1);
3291 if (arg2 == NULL) SWIG_fail;
3292 temp2 = True;
3293 }
3294 {
3295 PyThreadState* __tstate = wxPyBeginAllowThreads();
3296 (arg1)->SetValue((wxString const &)*arg2);
3297
3298 wxPyEndAllowThreads(__tstate);
3299 if (PyErr_Occurred()) SWIG_fail;
3300 }
3301 Py_INCREF(Py_None); resultobj = Py_None;
3302 {
3303 if (temp2)
3304 delete arg2;
3305 }
3306 return resultobj;
3307 fail:
3308 {
3309 if (temp2)
3310 delete arg2;
3311 }
3312 return NULL;
3313}
3314
3315
3316static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3317 PyObject *resultobj;
3318 wxComboBox *arg1 = (wxComboBox *) 0 ;
3319 PyObject * obj0 = 0 ;
3320 char *kwnames[] = {
3321 (char *) "self", NULL
3322 };
3323
3324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3327 {
3328 PyThreadState* __tstate = wxPyBeginAllowThreads();
3329 (arg1)->Copy();
3330
3331 wxPyEndAllowThreads(__tstate);
3332 if (PyErr_Occurred()) SWIG_fail;
3333 }
3334 Py_INCREF(Py_None); resultobj = Py_None;
3335 return resultobj;
3336 fail:
3337 return NULL;
3338}
3339
3340
3341static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3342 PyObject *resultobj;
3343 wxComboBox *arg1 = (wxComboBox *) 0 ;
3344 PyObject * obj0 = 0 ;
3345 char *kwnames[] = {
3346 (char *) "self", NULL
3347 };
3348
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3352 {
3353 PyThreadState* __tstate = wxPyBeginAllowThreads();
3354 (arg1)->Cut();
3355
3356 wxPyEndAllowThreads(__tstate);
3357 if (PyErr_Occurred()) SWIG_fail;
3358 }
3359 Py_INCREF(Py_None); resultobj = Py_None;
3360 return resultobj;
3361 fail:
3362 return NULL;
3363}
3364
3365
3366static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3367 PyObject *resultobj;
3368 wxComboBox *arg1 = (wxComboBox *) 0 ;
3369 PyObject * obj0 = 0 ;
3370 char *kwnames[] = {
3371 (char *) "self", NULL
3372 };
3373
3374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 (arg1)->Paste();
3380
3381 wxPyEndAllowThreads(__tstate);
3382 if (PyErr_Occurred()) SWIG_fail;
3383 }
3384 Py_INCREF(Py_None); resultobj = Py_None;
3385 return resultobj;
3386 fail:
3387 return NULL;
3388}
3389
3390
3391static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3392 PyObject *resultobj;
3393 wxComboBox *arg1 = (wxComboBox *) 0 ;
3394 long arg2 ;
3395 PyObject * obj0 = 0 ;
3396 PyObject * obj1 = 0 ;
3397 char *kwnames[] = {
3398 (char *) "self",(char *) "pos", NULL
3399 };
3400
3401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3404 arg2 = (long) SWIG_AsLong(obj1);
3405 if (PyErr_Occurred()) SWIG_fail;
3406 {
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 (arg1)->SetInsertionPoint(arg2);
3409
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 Py_INCREF(Py_None); resultobj = Py_None;
3414 return resultobj;
3415 fail:
3416 return NULL;
3417}
3418
3419
3420static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3421 PyObject *resultobj;
3422 wxComboBox *arg1 = (wxComboBox *) 0 ;
3423 long result;
3424 PyObject * obj0 = 0 ;
3425 char *kwnames[] = {
3426 (char *) "self", NULL
3427 };
3428
3429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3432 {
3433 PyThreadState* __tstate = wxPyBeginAllowThreads();
3434 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3435
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
3439 resultobj = SWIG_FromLong((long)result);
3440 return resultobj;
3441 fail:
3442 return NULL;
3443}
3444
3445
3446static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3447 PyObject *resultobj;
3448 wxComboBox *arg1 = (wxComboBox *) 0 ;
3449 long result;
3450 PyObject * obj0 = 0 ;
3451 char *kwnames[] = {
3452 (char *) "self", NULL
3453 };
3454
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3458 {
3459 PyThreadState* __tstate = wxPyBeginAllowThreads();
3460 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3461
3462 wxPyEndAllowThreads(__tstate);
3463 if (PyErr_Occurred()) SWIG_fail;
3464 }
3465 resultobj = SWIG_FromLong((long)result);
3466 return resultobj;
3467 fail:
3468 return NULL;
3469}
3470
3471
3472static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3473 PyObject *resultobj;
3474 wxComboBox *arg1 = (wxComboBox *) 0 ;
3475 long arg2 ;
3476 long arg3 ;
3477 wxString *arg4 = 0 ;
3478 bool temp4 = False ;
3479 PyObject * obj0 = 0 ;
3480 PyObject * obj1 = 0 ;
3481 PyObject * obj2 = 0 ;
3482 PyObject * obj3 = 0 ;
3483 char *kwnames[] = {
3484 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3485 };
3486
3487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3490 arg2 = (long) SWIG_AsLong(obj1);
3491 if (PyErr_Occurred()) SWIG_fail;
3492 arg3 = (long) SWIG_AsLong(obj2);
3493 if (PyErr_Occurred()) SWIG_fail;
3494 {
3495 arg4 = wxString_in_helper(obj3);
3496 if (arg4 == NULL) SWIG_fail;
3497 temp4 = True;
3498 }
3499 {
3500 PyThreadState* __tstate = wxPyBeginAllowThreads();
3501 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3502
3503 wxPyEndAllowThreads(__tstate);
3504 if (PyErr_Occurred()) SWIG_fail;
3505 }
3506 Py_INCREF(Py_None); resultobj = Py_None;
3507 {
3508 if (temp4)
3509 delete arg4;
3510 }
3511 return resultobj;
3512 fail:
3513 {
3514 if (temp4)
3515 delete arg4;
3516 }
3517 return NULL;
3518}
3519
3520
3521static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject *resultobj;
3523 wxComboBox *arg1 = (wxComboBox *) 0 ;
3524 int arg2 ;
3525 PyObject * obj0 = 0 ;
3526 PyObject * obj1 = 0 ;
3527 char *kwnames[] = {
3528 (char *) "self",(char *) "n", NULL
3529 };
3530
3531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3534 arg2 = (int) SWIG_AsInt(obj1);
3535 if (PyErr_Occurred()) SWIG_fail;
3536 {
3537 PyThreadState* __tstate = wxPyBeginAllowThreads();
3538 (arg1)->SetSelection(arg2);
3539
3540 wxPyEndAllowThreads(__tstate);
3541 if (PyErr_Occurred()) SWIG_fail;
3542 }
3543 Py_INCREF(Py_None); resultobj = Py_None;
3544 return resultobj;
3545 fail:
3546 return NULL;
3547}
3548
3549
3550static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3551 PyObject *resultobj;
3552 wxComboBox *arg1 = (wxComboBox *) 0 ;
3553 long arg2 ;
3554 long arg3 ;
3555 PyObject * obj0 = 0 ;
3556 PyObject * obj1 = 0 ;
3557 PyObject * obj2 = 0 ;
3558 char *kwnames[] = {
3559 (char *) "self",(char *) "from",(char *) "to", NULL
3560 };
3561
3562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3565 arg2 = (long) SWIG_AsLong(obj1);
3566 if (PyErr_Occurred()) SWIG_fail;
3567 arg3 = (long) SWIG_AsLong(obj2);
3568 if (PyErr_Occurred()) SWIG_fail;
3569 {
3570 PyThreadState* __tstate = wxPyBeginAllowThreads();
3571 (arg1)->SetSelection(arg2,arg3);
3572
3573 wxPyEndAllowThreads(__tstate);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 Py_INCREF(Py_None); resultobj = Py_None;
3577 return resultobj;
3578 fail:
3579 return NULL;
3580}
3581
3582
121b9a67
RD
3583static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3584 PyObject *resultobj;
3585 wxComboBox *arg1 = (wxComboBox *) 0 ;
3586 wxString *arg2 = 0 ;
3587 bool result;
3588 bool temp2 = False ;
3589 PyObject * obj0 = 0 ;
3590 PyObject * obj1 = 0 ;
3591 char *kwnames[] = {
3592 (char *) "self",(char *) "string", NULL
3593 };
3594
3595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3598 {
3599 arg2 = wxString_in_helper(obj1);
3600 if (arg2 == NULL) SWIG_fail;
3601 temp2 = True;
3602 }
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 {
3611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3612 }
3613 {
3614 if (temp2)
3615 delete arg2;
3616 }
3617 return resultobj;
3618 fail:
3619 {
3620 if (temp2)
3621 delete arg2;
3622 }
3623 return NULL;
3624}
3625
3626
3627static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3628 PyObject *resultobj;
3629 wxComboBox *arg1 = (wxComboBox *) 0 ;
3630 int arg2 ;
3631 wxString *arg3 = 0 ;
3632 bool temp3 = False ;
3633 PyObject * obj0 = 0 ;
3634 PyObject * obj1 = 0 ;
3635 PyObject * obj2 = 0 ;
3636 char *kwnames[] = {
3637 (char *) "self",(char *) "n",(char *) "string", NULL
3638 };
3639
3640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3643 arg2 = (int) SWIG_AsInt(obj1);
3644 if (PyErr_Occurred()) SWIG_fail;
3645 {
3646 arg3 = wxString_in_helper(obj2);
3647 if (arg3 == NULL) SWIG_fail;
3648 temp3 = True;
3649 }
3650 {
3651 PyThreadState* __tstate = wxPyBeginAllowThreads();
3652 (arg1)->SetString(arg2,(wxString const &)*arg3);
3653
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 Py_INCREF(Py_None); resultobj = Py_None;
3658 {
3659 if (temp3)
3660 delete arg3;
3661 }
3662 return resultobj;
3663 fail:
3664 {
3665 if (temp3)
3666 delete arg3;
3667 }
3668 return NULL;
3669}
3670
3671
d55e5bfc
RD
3672static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3673 PyObject *resultobj;
3674 wxComboBox *arg1 = (wxComboBox *) 0 ;
3675 bool arg2 ;
3676 PyObject * obj0 = 0 ;
3677 PyObject * obj1 = 0 ;
3678 char *kwnames[] = {
3679 (char *) "self",(char *) "editable", NULL
3680 };
3681
3682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3685 arg2 = (bool) SWIG_AsBool(obj1);
3686 if (PyErr_Occurred()) SWIG_fail;
3687 {
3688 PyThreadState* __tstate = wxPyBeginAllowThreads();
3689 (arg1)->SetEditable(arg2);
3690
3691 wxPyEndAllowThreads(__tstate);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 }
3694 Py_INCREF(Py_None); resultobj = Py_None;
3695 return resultobj;
3696 fail:
3697 return NULL;
3698}
3699
3700
3701static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3702 PyObject *resultobj;
3703 wxComboBox *arg1 = (wxComboBox *) 0 ;
3704 PyObject * obj0 = 0 ;
3705 char *kwnames[] = {
3706 (char *) "self", NULL
3707 };
3708
3709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3712 {
3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
3714 (arg1)->SetInsertionPointEnd();
3715
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 Py_INCREF(Py_None); resultobj = Py_None;
3720 return resultobj;
3721 fail:
3722 return NULL;
3723}
3724
3725
3726static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3727 PyObject *resultobj;
3728 wxComboBox *arg1 = (wxComboBox *) 0 ;
3729 long arg2 ;
3730 long arg3 ;
3731 PyObject * obj0 = 0 ;
3732 PyObject * obj1 = 0 ;
3733 PyObject * obj2 = 0 ;
3734 char *kwnames[] = {
3735 (char *) "self",(char *) "from",(char *) "to", NULL
3736 };
3737
3738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3741 arg2 = (long) SWIG_AsLong(obj1);
3742 if (PyErr_Occurred()) SWIG_fail;
3743 arg3 = (long) SWIG_AsLong(obj2);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 {
3746 PyThreadState* __tstate = wxPyBeginAllowThreads();
3747 (arg1)->Remove(arg2,arg3);
3748
3749 wxPyEndAllowThreads(__tstate);
3750 if (PyErr_Occurred()) SWIG_fail;
3751 }
3752 Py_INCREF(Py_None); resultobj = Py_None;
3753 return resultobj;
3754 fail:
3755 return NULL;
3756}
3757
3758
f20a2e1f
RD
3759static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
3760 PyObject *resultobj;
3761 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3762 wxVisualAttributes result;
3763 PyObject * obj0 = 0 ;
3764 char *kwnames[] = {
3765 (char *) "variant", NULL
3766 };
3767
3768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3769 if (obj0) {
3770 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 {
0439c23b 3774 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
3775 PyThreadState* __tstate = wxPyBeginAllowThreads();
3776 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3777
3778 wxPyEndAllowThreads(__tstate);
110da5b0 3779 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
3780 }
3781 {
3782 wxVisualAttributes * resultptr;
3783 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3784 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3785 }
3786 return resultobj;
3787 fail:
3788 return NULL;
3789}
3790
3791
d55e5bfc
RD
3792static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) {
3793 PyObject *obj;
3794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3795 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3796 Py_INCREF(obj);
3797 return Py_BuildValue((char *)"");
3798}
3799static int _wrap_GaugeNameStr_set(PyObject *_val) {
3800 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3801 return 1;
3802}
3803
3804
3805static PyObject *_wrap_GaugeNameStr_get() {
3806 PyObject *pyobj;
3807
3808 {
3809#if wxUSE_UNICODE
3810 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3811#else
3812 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3813#endif
3814 }
3815 return pyobj;
3816}
3817
3818
3819static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3820 PyObject *resultobj;
3821 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
3822 int arg2 = (int) -1 ;
3823 int arg3 = (int) 100 ;
d55e5bfc
RD
3824 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3825 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3826 wxSize const &arg5_defvalue = wxDefaultSize ;
3827 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3828 long arg6 = (long) wxGA_HORIZONTAL ;
3829 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3830 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3831 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3832 wxString *arg8 = (wxString *) &arg8_defvalue ;
3833 wxGauge *result;
3834 wxPoint temp4 ;
3835 wxSize temp5 ;
3836 bool temp8 = False ;
3837 PyObject * obj0 = 0 ;
3838 PyObject * obj1 = 0 ;
3839 PyObject * obj2 = 0 ;
3840 PyObject * obj3 = 0 ;
3841 PyObject * obj4 = 0 ;
3842 PyObject * obj5 = 0 ;
3843 PyObject * obj6 = 0 ;
3844 PyObject * obj7 = 0 ;
3845 char *kwnames[] = {
3846 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3847 };
3848
bfddbb17 3849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
3850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
3852 if (obj1) {
3853 arg2 = (int) SWIG_AsInt(obj1);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 if (obj2) {
3857 arg3 = (int) SWIG_AsInt(obj2);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
d55e5bfc
RD
3860 if (obj3) {
3861 {
3862 arg4 = &temp4;
3863 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3864 }
3865 }
3866 if (obj4) {
3867 {
3868 arg5 = &temp5;
3869 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3870 }
3871 }
3872 if (obj5) {
3873 arg6 = (long) SWIG_AsLong(obj5);
3874 if (PyErr_Occurred()) SWIG_fail;
3875 }
3876 if (obj6) {
3877 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
3878 SWIG_POINTER_EXCEPTION | 0)) == -1)
3879 SWIG_fail;
3880 if (arg7 == NULL) {
3881 PyErr_SetString(PyExc_TypeError,"null reference");
3882 SWIG_fail;
3883 }
3884 }
3885 if (obj7) {
3886 {
3887 arg8 = wxString_in_helper(obj7);
3888 if (arg8 == NULL) SWIG_fail;
3889 temp8 = True;
3890 }
3891 }
3892 {
0439c23b 3893 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3894 PyThreadState* __tstate = wxPyBeginAllowThreads();
3895 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3896
3897 wxPyEndAllowThreads(__tstate);
110da5b0 3898 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3899 }
3900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3901 {
3902 if (temp8)
3903 delete arg8;
3904 }
3905 return resultobj;
3906 fail:
3907 {
3908 if (temp8)
3909 delete arg8;
3910 }
3911 return NULL;
3912}
3913
3914
3915static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3916 PyObject *resultobj;
3917 wxGauge *result;
3918 char *kwnames[] = {
3919 NULL
3920 };
3921
3922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
3923 {
0439c23b 3924 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3925 PyThreadState* __tstate = wxPyBeginAllowThreads();
3926 result = (wxGauge *)new wxGauge();
3927
3928 wxPyEndAllowThreads(__tstate);
110da5b0 3929 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3930 }
3931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
3932 return resultobj;
3933 fail:
3934 return NULL;
3935}
3936
3937
3938static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3939 PyObject *resultobj;
3940 wxGauge *arg1 = (wxGauge *) 0 ;
3941 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
3942 int arg3 = (int) -1 ;
3943 int arg4 = (int) 100 ;
d55e5bfc
RD
3944 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3945 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3946 wxSize const &arg6_defvalue = wxDefaultSize ;
3947 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3948 long arg7 = (long) wxGA_HORIZONTAL ;
3949 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3950 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3951 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
3952 wxString *arg9 = (wxString *) &arg9_defvalue ;
3953 bool result;
3954 wxPoint temp5 ;
3955 wxSize temp6 ;
3956 bool temp9 = False ;
3957 PyObject * obj0 = 0 ;
3958 PyObject * obj1 = 0 ;
3959 PyObject * obj2 = 0 ;
3960 PyObject * obj3 = 0 ;
3961 PyObject * obj4 = 0 ;
3962 PyObject * obj5 = 0 ;
3963 PyObject * obj6 = 0 ;
3964 PyObject * obj7 = 0 ;
3965 PyObject * obj8 = 0 ;
3966 char *kwnames[] = {
3967 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3968 };
3969
bfddbb17 3970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d55e5bfc
RD
3971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
3972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3973 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
3975 if (obj2) {
3976 arg3 = (int) SWIG_AsInt(obj2);
3977 if (PyErr_Occurred()) SWIG_fail;
3978 }
3979 if (obj3) {
3980 arg4 = (int) SWIG_AsInt(obj3);
3981 if (PyErr_Occurred()) SWIG_fail;
3982 }
d55e5bfc
RD
3983 if (obj4) {
3984 {
3985 arg5 = &temp5;
3986 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3987 }
3988 }
3989 if (obj5) {
3990 {
3991 arg6 = &temp6;
3992 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3993 }
3994 }
3995 if (obj6) {
3996 arg7 = (long) SWIG_AsLong(obj6);
3997 if (PyErr_Occurred()) SWIG_fail;
3998 }
3999 if (obj7) {
4000 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4001 SWIG_POINTER_EXCEPTION | 0)) == -1)
4002 SWIG_fail;
4003 if (arg8 == NULL) {
4004 PyErr_SetString(PyExc_TypeError,"null reference");
4005 SWIG_fail;
4006 }
4007 }
4008 if (obj8) {
4009 {
4010 arg9 = wxString_in_helper(obj8);
4011 if (arg9 == NULL) SWIG_fail;
4012 temp9 = True;
4013 }
4014 }
4015 {
4016 PyThreadState* __tstate = wxPyBeginAllowThreads();
4017 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4018
4019 wxPyEndAllowThreads(__tstate);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 }
4022 {
4023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4024 }
4025 {
4026 if (temp9)
4027 delete arg9;
4028 }
4029 return resultobj;
4030 fail:
4031 {
4032 if (temp9)
4033 delete arg9;
4034 }
4035 return NULL;
4036}
4037
4038
4039static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4040 PyObject *resultobj;
4041 wxGauge *arg1 = (wxGauge *) 0 ;
4042 int arg2 ;
4043 PyObject * obj0 = 0 ;
4044 PyObject * obj1 = 0 ;
4045 char *kwnames[] = {
4046 (char *) "self",(char *) "range", NULL
4047 };
4048
4049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4052 arg2 = (int) SWIG_AsInt(obj1);
4053 if (PyErr_Occurred()) SWIG_fail;
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 (arg1)->SetRange(arg2);
4057
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 Py_INCREF(Py_None); resultobj = Py_None;
4062 return resultobj;
4063 fail:
4064 return NULL;
4065}
4066
4067
4068static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4069 PyObject *resultobj;
4070 wxGauge *arg1 = (wxGauge *) 0 ;
4071 int result;
4072 PyObject * obj0 = 0 ;
4073 char *kwnames[] = {
4074 (char *) "self", NULL
4075 };
4076
4077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4080 {
4081 PyThreadState* __tstate = wxPyBeginAllowThreads();
4082 result = (int)((wxGauge const *)arg1)->GetRange();
4083
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 resultobj = SWIG_FromInt((int)result);
4088 return resultobj;
4089 fail:
4090 return NULL;
4091}
4092
4093
4094static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4095 PyObject *resultobj;
4096 wxGauge *arg1 = (wxGauge *) 0 ;
4097 int arg2 ;
4098 PyObject * obj0 = 0 ;
4099 PyObject * obj1 = 0 ;
4100 char *kwnames[] = {
4101 (char *) "self",(char *) "pos", NULL
4102 };
4103
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4107 arg2 = (int) SWIG_AsInt(obj1);
4108 if (PyErr_Occurred()) SWIG_fail;
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 (arg1)->SetValue(arg2);
4112
4113 wxPyEndAllowThreads(__tstate);
4114 if (PyErr_Occurred()) SWIG_fail;
4115 }
4116 Py_INCREF(Py_None); resultobj = Py_None;
4117 return resultobj;
4118 fail:
4119 return NULL;
4120}
4121
4122
4123static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4124 PyObject *resultobj;
4125 wxGauge *arg1 = (wxGauge *) 0 ;
4126 int result;
4127 PyObject * obj0 = 0 ;
4128 char *kwnames[] = {
4129 (char *) "self", NULL
4130 };
4131
4132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4135 {
4136 PyThreadState* __tstate = wxPyBeginAllowThreads();
4137 result = (int)((wxGauge const *)arg1)->GetValue();
4138
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_FromInt((int)result);
4143 return resultobj;
4144 fail:
4145 return NULL;
4146}
4147
4148
4149static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj;
4151 wxGauge *arg1 = (wxGauge *) 0 ;
4152 bool result;
4153 PyObject * obj0 = 0 ;
4154 char *kwnames[] = {
4155 (char *) "self", NULL
4156 };
4157
4158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = (bool)((wxGauge const *)arg1)->IsVertical();
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 {
4169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4170 }
4171 return resultobj;
4172 fail:
4173 return NULL;
4174}
4175
4176
4177static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj;
4179 wxGauge *arg1 = (wxGauge *) 0 ;
4180 int arg2 ;
4181 PyObject * obj0 = 0 ;
4182 PyObject * obj1 = 0 ;
4183 char *kwnames[] = {
4184 (char *) "self",(char *) "w", NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4190 arg2 = (int) SWIG_AsInt(obj1);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 (arg1)->SetShadowWidth(arg2);
4195
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 Py_INCREF(Py_None); resultobj = Py_None;
4200 return resultobj;
4201 fail:
4202 return NULL;
4203}
4204
4205
4206static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4207 PyObject *resultobj;
4208 wxGauge *arg1 = (wxGauge *) 0 ;
4209 int result;
4210 PyObject * obj0 = 0 ;
4211 char *kwnames[] = {
4212 (char *) "self", NULL
4213 };
4214
4215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_FromInt((int)result);
4226 return resultobj;
4227 fail:
4228 return NULL;
4229}
4230
4231
4232static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj;
4234 wxGauge *arg1 = (wxGauge *) 0 ;
4235 int arg2 ;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 char *kwnames[] = {
4239 (char *) "self",(char *) "w", NULL
4240 };
4241
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4245 arg2 = (int) SWIG_AsInt(obj1);
4246 if (PyErr_Occurred()) SWIG_fail;
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 (arg1)->SetBezelFace(arg2);
4250
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 Py_INCREF(Py_None); resultobj = Py_None;
4255 return resultobj;
4256 fail:
4257 return NULL;
4258}
4259
4260
4261static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj;
4263 wxGauge *arg1 = (wxGauge *) 0 ;
4264 int result;
4265 PyObject * obj0 = 0 ;
4266 char *kwnames[] = {
4267 (char *) "self", NULL
4268 };
4269
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 resultobj = SWIG_FromInt((int)result);
4281 return resultobj;
4282 fail:
4283 return NULL;
4284}
4285
4286
f20a2e1f
RD
4287static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4290 wxVisualAttributes result;
4291 PyObject * obj0 = 0 ;
4292 char *kwnames[] = {
4293 (char *) "variant", NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4297 if (obj0) {
4298 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 {
0439c23b 4302 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
4303 PyThreadState* __tstate = wxPyBeginAllowThreads();
4304 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4305
4306 wxPyEndAllowThreads(__tstate);
110da5b0 4307 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
4308 }
4309 {
4310 wxVisualAttributes * resultptr;
4311 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4312 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4313 }
4314 return resultobj;
4315 fail:
4316 return NULL;
4317}
4318
4319
d55e5bfc
RD
4320static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) {
4321 PyObject *obj;
4322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4323 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4324 Py_INCREF(obj);
4325 return Py_BuildValue((char *)"");
4326}
4327static int _wrap_StaticBitmapNameStr_set(PyObject *_val) {
4328 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4329 return 1;
4330}
4331
4332
4333static PyObject *_wrap_StaticBitmapNameStr_get() {
4334 PyObject *pyobj;
4335
4336 {
4337#if wxUSE_UNICODE
4338 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4339#else
4340 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4341#endif
4342 }
4343 return pyobj;
4344}
4345
4346
4347static int _wrap_StaticBoxNameStr_set(PyObject *_val) {
4348 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4349 return 1;
4350}
4351
4352
4353static PyObject *_wrap_StaticBoxNameStr_get() {
4354 PyObject *pyobj;
4355
4356 {
4357#if wxUSE_UNICODE
4358 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4359#else
4360 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4361#endif
4362 }
4363 return pyobj;
4364}
4365
4366
4367static int _wrap_StaticTextNameStr_set(PyObject *_val) {
4368 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4369 return 1;
4370}
4371
4372
4373static PyObject *_wrap_StaticTextNameStr_get() {
4374 PyObject *pyobj;
4375
4376 {
4377#if wxUSE_UNICODE
4378 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4379#else
4380 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4381#endif
4382 }
4383 return pyobj;
4384}
4385
4386
4387static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj;
4389 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
4390 int arg2 = (int) -1 ;
4391 wxString const &arg3_defvalue = wxPyEmptyString ;
4392 wxString *arg3 = (wxString *) &arg3_defvalue ;
d55e5bfc
RD
4393 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4394 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4395 wxSize const &arg5_defvalue = wxDefaultSize ;
4396 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4397 long arg6 = (long) 0 ;
4398 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4399 wxString *arg7 = (wxString *) &arg7_defvalue ;
4400 wxStaticBox *result;
4401 bool temp3 = False ;
4402 wxPoint temp4 ;
4403 wxSize temp5 ;
4404 bool temp7 = False ;
4405 PyObject * obj0 = 0 ;
4406 PyObject * obj1 = 0 ;
4407 PyObject * obj2 = 0 ;
4408 PyObject * obj3 = 0 ;
4409 PyObject * obj4 = 0 ;
4410 PyObject * obj5 = 0 ;
4411 PyObject * obj6 = 0 ;
4412 char *kwnames[] = {
4413 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4414 };
4415
bfddbb17 4416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
4417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
4419 if (obj1) {
4420 arg2 = (int) SWIG_AsInt(obj1);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 if (obj2) {
4424 {
4425 arg3 = wxString_in_helper(obj2);
4426 if (arg3 == NULL) SWIG_fail;
4427 temp3 = True;
4428 }
d55e5bfc
RD
4429 }
4430 if (obj3) {
4431 {
4432 arg4 = &temp4;
4433 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4434 }
4435 }
4436 if (obj4) {
4437 {
4438 arg5 = &temp5;
4439 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4440 }
4441 }
4442 if (obj5) {
4443 arg6 = (long) SWIG_AsLong(obj5);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 if (obj6) {
4447 {
4448 arg7 = wxString_in_helper(obj6);
4449 if (arg7 == NULL) SWIG_fail;
4450 temp7 = True;
4451 }
4452 }
4453 {
0439c23b 4454 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4455 PyThreadState* __tstate = wxPyBeginAllowThreads();
4456 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4457
4458 wxPyEndAllowThreads(__tstate);
110da5b0 4459 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4460 }
b0f7404b 4461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
d55e5bfc
RD
4462 {
4463 if (temp3)
4464 delete arg3;
4465 }
4466 {
4467 if (temp7)
4468 delete arg7;
4469 }
4470 return resultobj;
4471 fail:
4472 {
4473 if (temp3)
4474 delete arg3;
4475 }
4476 {
4477 if (temp7)
4478 delete arg7;
4479 }
4480 return NULL;
4481}
4482
4483
4484static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4485 PyObject *resultobj;
4486 wxStaticBox *result;
4487 char *kwnames[] = {
4488 NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4492 {
0439c23b 4493 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4494 PyThreadState* __tstate = wxPyBeginAllowThreads();
4495 result = (wxStaticBox *)new wxStaticBox();
4496
4497 wxPyEndAllowThreads(__tstate);
110da5b0 4498 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4499 }
b0f7404b 4500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
d55e5bfc
RD
4501 return resultobj;
4502 fail:
4503 return NULL;
4504}
4505
4506
4507static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4508 PyObject *resultobj;
4509 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4510 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
4511 int arg3 = (int) -1 ;
4512 wxString const &arg4_defvalue = wxPyEmptyString ;
4513 wxString *arg4 = (wxString *) &arg4_defvalue ;
d55e5bfc
RD
4514 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4515 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4516 wxSize const &arg6_defvalue = wxDefaultSize ;
4517 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4518 long arg7 = (long) 0 ;
4519 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4520 wxString *arg8 = (wxString *) &arg8_defvalue ;
4521 bool result;
4522 bool temp4 = False ;
4523 wxPoint temp5 ;
4524 wxSize temp6 ;
4525 bool temp8 = False ;
4526 PyObject * obj0 = 0 ;
4527 PyObject * obj1 = 0 ;
4528 PyObject * obj2 = 0 ;
4529 PyObject * obj3 = 0 ;
4530 PyObject * obj4 = 0 ;
4531 PyObject * obj5 = 0 ;
4532 PyObject * obj6 = 0 ;
4533 PyObject * obj7 = 0 ;
4534 char *kwnames[] = {
4535 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4536 };
4537
bfddbb17 4538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
4539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4541 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
4543 if (obj2) {
4544 arg3 = (int) SWIG_AsInt(obj2);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 if (obj3) {
4548 {
4549 arg4 = wxString_in_helper(obj3);
4550 if (arg4 == NULL) SWIG_fail;
4551 temp4 = True;
4552 }
d55e5bfc
RD
4553 }
4554 if (obj4) {
4555 {
4556 arg5 = &temp5;
4557 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4558 }
4559 }
4560 if (obj5) {
4561 {
4562 arg6 = &temp6;
4563 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4564 }
4565 }
4566 if (obj6) {
4567 arg7 = (long) SWIG_AsLong(obj6);
4568 if (PyErr_Occurred()) SWIG_fail;
4569 }
4570 if (obj7) {
4571 {
4572 arg8 = wxString_in_helper(obj7);
4573 if (arg8 == NULL) SWIG_fail;
4574 temp8 = True;
4575 }
4576 }
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 {
4585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4586 }
4587 {
4588 if (temp4)
4589 delete arg4;
4590 }
4591 {
4592 if (temp8)
4593 delete arg8;
4594 }
4595 return resultobj;
4596 fail:
4597 {
4598 if (temp4)
4599 delete arg4;
4600 }
4601 {
4602 if (temp8)
4603 delete arg8;
4604 }
4605 return NULL;
4606}
4607
4608
f20a2e1f
RD
4609static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4610 PyObject *resultobj;
4611 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4612 wxVisualAttributes result;
4613 PyObject * obj0 = 0 ;
4614 char *kwnames[] = {
4615 (char *) "variant", NULL
4616 };
4617
4618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4619 if (obj0) {
4620 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 {
0439c23b 4624 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4627
4628 wxPyEndAllowThreads(__tstate);
110da5b0 4629 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
4630 }
4631 {
4632 wxVisualAttributes * resultptr;
4633 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4634 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4635 }
4636 return resultobj;
4637 fail:
4638 return NULL;
4639}
4640
4641
d55e5bfc
RD
4642static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) {
4643 PyObject *obj;
4644 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4645 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4646 Py_INCREF(obj);
4647 return Py_BuildValue((char *)"");
4648}
4649static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4650 PyObject *resultobj;
4651 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17 4652 int arg2 = (int) -1 ;
d55e5bfc
RD
4653 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4654 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4655 wxSize const &arg4_defvalue = wxDefaultSize ;
4656 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4657 long arg5 = (long) wxLI_HORIZONTAL ;
4658 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4659 wxString *arg6 = (wxString *) &arg6_defvalue ;
4660 wxStaticLine *result;
4661 wxPoint temp3 ;
4662 wxSize temp4 ;
4663 bool temp6 = False ;
4664 PyObject * obj0 = 0 ;
4665 PyObject * obj1 = 0 ;
4666 PyObject * obj2 = 0 ;
4667 PyObject * obj3 = 0 ;
4668 PyObject * obj4 = 0 ;
4669 PyObject * obj5 = 0 ;
4670 char *kwnames[] = {
4671 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4672 };
4673
bfddbb17 4674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
4675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
4677 if (obj1) {
4678 arg2 = (int) SWIG_AsInt(obj1);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
d55e5bfc
RD
4681 if (obj2) {
4682 {
4683 arg3 = &temp3;
4684 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4685 }
4686 }
4687 if (obj3) {
4688 {
4689 arg4 = &temp4;
4690 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4691 }
4692 }
4693 if (obj4) {
4694 arg5 = (long) SWIG_AsLong(obj4);
4695 if (PyErr_Occurred()) SWIG_fail;
4696 }
4697 if (obj5) {
4698 {
4699 arg6 = wxString_in_helper(obj5);
4700 if (arg6 == NULL) SWIG_fail;
4701 temp6 = True;
4702 }
4703 }
4704 {
0439c23b 4705 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4708
4709 wxPyEndAllowThreads(__tstate);
110da5b0 4710 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4711 }
4712 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4713 {
4714 if (temp6)
4715 delete arg6;
4716 }
4717 return resultobj;
4718 fail:
4719 {
4720 if (temp6)
4721 delete arg6;
4722 }
4723 return NULL;
4724}
4725
4726
4727static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4728 PyObject *resultobj;
4729 wxStaticLine *result;
4730 char *kwnames[] = {
4731 NULL
4732 };
4733
4734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4735 {
0439c23b 4736 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4737 PyThreadState* __tstate = wxPyBeginAllowThreads();
4738 result = (wxStaticLine *)new wxStaticLine();
4739
4740 wxPyEndAllowThreads(__tstate);
110da5b0 4741 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4742 }
4743 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4744 return resultobj;
4745 fail:
4746 return NULL;
4747}
4748
4749
4750static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4751 PyObject *resultobj;
4752 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4753 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17 4754 int arg3 = (int) -1 ;
d55e5bfc
RD
4755 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4756 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4757 wxSize const &arg5_defvalue = wxDefaultSize ;
4758 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4759 long arg6 = (long) wxLI_HORIZONTAL ;
4760 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4761 wxString *arg7 = (wxString *) &arg7_defvalue ;
4762 bool result;
4763 wxPoint temp4 ;
4764 wxSize temp5 ;
4765 bool temp7 = False ;
4766 PyObject * obj0 = 0 ;
4767 PyObject * obj1 = 0 ;
4768 PyObject * obj2 = 0 ;
4769 PyObject * obj3 = 0 ;
4770 PyObject * obj4 = 0 ;
4771 PyObject * obj5 = 0 ;
4772 PyObject * obj6 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4775 };
4776
bfddbb17 4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
4778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4780 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
4782 if (obj2) {
4783 arg3 = (int) SWIG_AsInt(obj2);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
d55e5bfc
RD
4786 if (obj3) {
4787 {
4788 arg4 = &temp4;
4789 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4790 }
4791 }
4792 if (obj4) {
4793 {
4794 arg5 = &temp5;
4795 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4796 }
4797 }
4798 if (obj5) {
4799 arg6 = (long) SWIG_AsLong(obj5);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 if (obj6) {
4803 {
4804 arg7 = wxString_in_helper(obj6);
4805 if (arg7 == NULL) SWIG_fail;
4806 temp7 = True;
4807 }
4808 }
4809 {
4810 PyThreadState* __tstate = wxPyBeginAllowThreads();
4811 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4812
4813 wxPyEndAllowThreads(__tstate);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 {
4817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4818 }
4819 {
4820 if (temp7)
4821 delete arg7;
4822 }
4823 return resultobj;
4824 fail:
4825 {
4826 if (temp7)
4827 delete arg7;
4828 }
4829 return NULL;
4830}
4831
4832
4833static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4834 PyObject *resultobj;
4835 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4836 bool result;
4837 PyObject * obj0 = 0 ;
4838 char *kwnames[] = {
4839 (char *) "self", NULL
4840 };
4841
4842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4845 {
4846 PyThreadState* __tstate = wxPyBeginAllowThreads();
4847 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4848
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856 fail:
4857 return NULL;
4858}
4859
4860
4861static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj;
4863 int result;
4864 char *kwnames[] = {
4865 NULL
4866 };
4867
4868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
4869 {
4870 PyThreadState* __tstate = wxPyBeginAllowThreads();
4871 result = (int)wxStaticLine::GetDefaultSize();
4872
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 resultobj = SWIG_FromInt((int)result);
4877 return resultobj;
4878 fail:
4879 return NULL;
4880}
4881
4882
f20a2e1f
RD
4883static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
4884 PyObject *resultobj;
4885 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4886 wxVisualAttributes result;
4887 PyObject * obj0 = 0 ;
4888 char *kwnames[] = {
4889 (char *) "variant", NULL
4890 };
4891
4892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4893 if (obj0) {
4894 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 {
0439c23b 4898 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
4901
4902 wxPyEndAllowThreads(__tstate);
110da5b0 4903 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
4904 }
4905 {
4906 wxVisualAttributes * resultptr;
4907 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4908 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4909 }
4910 return resultobj;
4911 fail:
4912 return NULL;
4913}
4914
4915
d55e5bfc
RD
4916static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) {
4917 PyObject *obj;
4918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4919 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
4920 Py_INCREF(obj);
4921 return Py_BuildValue((char *)"");
4922}
4923static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4924 PyObject *resultobj;
4925 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
4926 int arg2 = (int) -1 ;
4927 wxString const &arg3_defvalue = wxPyEmptyString ;
4928 wxString *arg3 = (wxString *) &arg3_defvalue ;
d55e5bfc
RD
4929 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4930 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4931 wxSize const &arg5_defvalue = wxDefaultSize ;
4932 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4933 long arg6 = (long) 0 ;
4934 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4935 wxString *arg7 = (wxString *) &arg7_defvalue ;
4936 wxStaticText *result;
4937 bool temp3 = False ;
4938 wxPoint temp4 ;
4939 wxSize temp5 ;
4940 bool temp7 = False ;
4941 PyObject * obj0 = 0 ;
4942 PyObject * obj1 = 0 ;
4943 PyObject * obj2 = 0 ;
4944 PyObject * obj3 = 0 ;
4945 PyObject * obj4 = 0 ;
4946 PyObject * obj5 = 0 ;
4947 PyObject * obj6 = 0 ;
4948 char *kwnames[] = {
4949 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4950 };
4951
bfddbb17 4952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
4953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
4955 if (obj1) {
4956 arg2 = (int) SWIG_AsInt(obj1);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 if (obj2) {
4960 {
4961 arg3 = wxString_in_helper(obj2);
4962 if (arg3 == NULL) SWIG_fail;
4963 temp3 = True;
4964 }
d55e5bfc
RD
4965 }
4966 if (obj3) {
4967 {
4968 arg4 = &temp4;
4969 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4970 }
4971 }
4972 if (obj4) {
4973 {
4974 arg5 = &temp5;
4975 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4976 }
4977 }
4978 if (obj5) {
4979 arg6 = (long) SWIG_AsLong(obj5);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 if (obj6) {
4983 {
4984 arg7 = wxString_in_helper(obj6);
4985 if (arg7 == NULL) SWIG_fail;
4986 temp7 = True;
4987 }
4988 }
4989 {
0439c23b 4990 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4993
4994 wxPyEndAllowThreads(__tstate);
110da5b0 4995 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4996 }
4997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
4998 {
4999 if (temp3)
5000 delete arg3;
5001 }
5002 {
5003 if (temp7)
5004 delete arg7;
5005 }
5006 return resultobj;
5007 fail:
5008 {
5009 if (temp3)
5010 delete arg3;
5011 }
5012 {
5013 if (temp7)
5014 delete arg7;
5015 }
5016 return NULL;
5017}
5018
5019
5020static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
5021 PyObject *resultobj;
5022 wxStaticText *result;
5023 char *kwnames[] = {
5024 NULL
5025 };
5026
5027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5028 {
0439c23b 5029 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5030 PyThreadState* __tstate = wxPyBeginAllowThreads();
5031 result = (wxStaticText *)new wxStaticText();
5032
5033 wxPyEndAllowThreads(__tstate);
110da5b0 5034 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5035 }
5036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5037 return resultobj;
5038 fail:
5039 return NULL;
5040}
5041
5042
5043static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5044 PyObject *resultobj;
5045 wxStaticText *arg1 = (wxStaticText *) 0 ;
5046 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
5047 int arg3 = (int) -1 ;
5048 wxString const &arg4_defvalue = wxPyEmptyString ;
5049 wxString *arg4 = (wxString *) &arg4_defvalue ;
d55e5bfc
RD
5050 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5051 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5052 wxSize const &arg6_defvalue = wxDefaultSize ;
5053 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5054 long arg7 = (long) 0 ;
5055 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5056 wxString *arg8 = (wxString *) &arg8_defvalue ;
5057 bool result;
5058 bool temp4 = False ;
5059 wxPoint temp5 ;
5060 wxSize temp6 ;
5061 bool temp8 = False ;
5062 PyObject * obj0 = 0 ;
5063 PyObject * obj1 = 0 ;
5064 PyObject * obj2 = 0 ;
5065 PyObject * obj3 = 0 ;
5066 PyObject * obj4 = 0 ;
5067 PyObject * obj5 = 0 ;
5068 PyObject * obj6 = 0 ;
5069 PyObject * obj7 = 0 ;
5070 char *kwnames[] = {
5071 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5072 };
5073
bfddbb17 5074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
5075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
5079 if (obj2) {
5080 arg3 = (int) SWIG_AsInt(obj2);
5081 if (PyErr_Occurred()) SWIG_fail;
5082 }
5083 if (obj3) {
5084 {
5085 arg4 = wxString_in_helper(obj3);
5086 if (arg4 == NULL) SWIG_fail;
5087 temp4 = True;
5088 }
d55e5bfc
RD
5089 }
5090 if (obj4) {
5091 {
5092 arg5 = &temp5;
5093 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5094 }
5095 }
5096 if (obj5) {
5097 {
5098 arg6 = &temp6;
5099 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5100 }
5101 }
5102 if (obj6) {
5103 arg7 = (long) SWIG_AsLong(obj6);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 if (obj7) {
5107 {
5108 arg8 = wxString_in_helper(obj7);
5109 if (arg8 == NULL) SWIG_fail;
5110 temp8 = True;
5111 }
5112 }
5113 {
5114 PyThreadState* __tstate = wxPyBeginAllowThreads();
5115 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5116
5117 wxPyEndAllowThreads(__tstate);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 {
5121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5122 }
5123 {
5124 if (temp4)
5125 delete arg4;
5126 }
5127 {
5128 if (temp8)
5129 delete arg8;
5130 }
5131 return resultobj;
5132 fail:
5133 {
5134 if (temp4)
5135 delete arg4;
5136 }
5137 {
5138 if (temp8)
5139 delete arg8;
5140 }
5141 return NULL;
5142}
5143
5144
f20a2e1f
RD
5145static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5146 PyObject *resultobj;
5147 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5148 wxVisualAttributes result;
5149 PyObject * obj0 = 0 ;
5150 char *kwnames[] = {
5151 (char *) "variant", NULL
5152 };
5153
5154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5155 if (obj0) {
5156 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 {
0439c23b 5160 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5163
5164 wxPyEndAllowThreads(__tstate);
110da5b0 5165 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
5166 }
5167 {
5168 wxVisualAttributes * resultptr;
5169 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5170 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5171 }
5172 return resultobj;
5173 fail:
5174 return NULL;
5175}
5176
5177
d55e5bfc
RD
5178static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) {
5179 PyObject *obj;
5180 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5181 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5182 Py_INCREF(obj);
5183 return Py_BuildValue((char *)"");
5184}
5185static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5186 PyObject *resultobj;
5187 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
5188 int arg2 = (int) -1 ;
5189 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5190 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
d55e5bfc
RD
5191 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5192 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5193 wxSize const &arg5_defvalue = wxDefaultSize ;
5194 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5195 long arg6 = (long) 0 ;
5196 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5197 wxString *arg7 = (wxString *) &arg7_defvalue ;
5198 wxStaticBitmap *result;
5199 wxPoint temp4 ;
5200 wxSize temp5 ;
5201 bool temp7 = False ;
5202 PyObject * obj0 = 0 ;
5203 PyObject * obj1 = 0 ;
5204 PyObject * obj2 = 0 ;
5205 PyObject * obj3 = 0 ;
5206 PyObject * obj4 = 0 ;
5207 PyObject * obj5 = 0 ;
5208 PyObject * obj6 = 0 ;
5209 char *kwnames[] = {
5210 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5211 };
5212
bfddbb17 5213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
5214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
5216 if (obj1) {
5217 arg2 = (int) SWIG_AsInt(obj1);
5218 if (PyErr_Occurred()) SWIG_fail;
5219 }
5220 if (obj2) {
5221 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5222 SWIG_POINTER_EXCEPTION | 0)) == -1)
d55e5bfc 5223 SWIG_fail;
bfddbb17
RD
5224 if (arg3 == NULL) {
5225 PyErr_SetString(PyExc_TypeError,"null reference");
5226 SWIG_fail;
5227 }
d55e5bfc
RD
5228 }
5229 if (obj3) {
5230 {
5231 arg4 = &temp4;
5232 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5233 }
5234 }
5235 if (obj4) {
5236 {
5237 arg5 = &temp5;
5238 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5239 }
5240 }
5241 if (obj5) {
5242 arg6 = (long) SWIG_AsLong(obj5);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 if (obj6) {
5246 {
5247 arg7 = wxString_in_helper(obj6);
5248 if (arg7 == NULL) SWIG_fail;
5249 temp7 = True;
5250 }
5251 }
5252 {
0439c23b 5253 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5256
5257 wxPyEndAllowThreads(__tstate);
110da5b0 5258 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5259 }
5260 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5261 {
5262 if (temp7)
5263 delete arg7;
5264 }
5265 return resultobj;
5266 fail:
5267 {
5268 if (temp7)
5269 delete arg7;
5270 }
5271 return NULL;
5272}
5273
5274
5275static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5276 PyObject *resultobj;
5277 wxStaticBitmap *result;
5278 char *kwnames[] = {
5279 NULL
5280 };
5281
5282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5283 {
0439c23b 5284 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 result = (wxStaticBitmap *)new wxStaticBitmap();
5287
5288 wxPyEndAllowThreads(__tstate);
110da5b0 5289 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5290 }
5291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5292 return resultobj;
5293 fail:
5294 return NULL;
5295}
5296
5297
5298static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5301 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
5302 int arg3 = (int) -1 ;
5303 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5304 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
d55e5bfc
RD
5305 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5306 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5307 wxSize const &arg6_defvalue = wxDefaultSize ;
5308 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5309 long arg7 = (long) 0 ;
5310 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5311 wxString *arg8 = (wxString *) &arg8_defvalue ;
5312 bool result;
5313 wxPoint temp5 ;
5314 wxSize temp6 ;
5315 bool temp8 = False ;
5316 PyObject * obj0 = 0 ;
5317 PyObject * obj1 = 0 ;
5318 PyObject * obj2 = 0 ;
5319 PyObject * obj3 = 0 ;
5320 PyObject * obj4 = 0 ;
5321 PyObject * obj5 = 0 ;
5322 PyObject * obj6 = 0 ;
5323 PyObject * obj7 = 0 ;
5324 char *kwnames[] = {
5325 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5326 };
5327
bfddbb17 5328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
5329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5331 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
5333 if (obj2) {
5334 arg3 = (int) SWIG_AsInt(obj2);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 if (obj3) {
5338 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5339 SWIG_POINTER_EXCEPTION | 0)) == -1)
d55e5bfc 5340 SWIG_fail;
bfddbb17
RD
5341 if (arg4 == NULL) {
5342 PyErr_SetString(PyExc_TypeError,"null reference");
5343 SWIG_fail;
5344 }
d55e5bfc
RD
5345 }
5346 if (obj4) {
5347 {
5348 arg5 = &temp5;
5349 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5350 }
5351 }
5352 if (obj5) {
5353 {
5354 arg6 = &temp6;
5355 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5356 }
5357 }
5358 if (obj6) {
5359 arg7 = (long) SWIG_AsLong(obj6);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
5362 if (obj7) {
5363 {
5364 arg8 = wxString_in_helper(obj7);
5365 if (arg8 == NULL) SWIG_fail;
5366 temp8 = True;
5367 }
5368 }
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5372
5373 wxPyEndAllowThreads(__tstate);
5374 if (PyErr_Occurred()) SWIG_fail;
5375 }
5376 {
5377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5378 }
5379 {
5380 if (temp8)
5381 delete arg8;
5382 }
5383 return resultobj;
5384 fail:
5385 {
5386 if (temp8)
5387 delete arg8;
5388 }
5389 return NULL;
5390}
5391
5392
5393static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5394 PyObject *resultobj;
5395 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5396 wxBitmap result;
5397 PyObject * obj0 = 0 ;
5398 char *kwnames[] = {
5399 (char *) "self", NULL
5400 };
5401
5402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (arg1)->GetBitmap();
5408
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 {
5413 wxBitmap * resultptr;
5414 resultptr = new wxBitmap((wxBitmap &) result);
5415 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5416 }
5417 return resultobj;
5418 fail:
5419 return NULL;
5420}
5421
5422
5423static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5424 PyObject *resultobj;
5425 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5426 wxBitmap *arg2 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 PyObject * obj1 = 0 ;
5429 char *kwnames[] = {
5430 (char *) "self",(char *) "bitmap", NULL
5431 };
5432
5433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5437 SWIG_POINTER_EXCEPTION | 0)) == -1)
5438 SWIG_fail;
5439 if (arg2 == NULL) {
5440 PyErr_SetString(PyExc_TypeError,"null reference");
5441 SWIG_fail;
5442 }
5443 {
5444 PyThreadState* __tstate = wxPyBeginAllowThreads();
5445 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5446
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 Py_INCREF(Py_None); resultobj = Py_None;
5451 return resultobj;
5452 fail:
5453 return NULL;
5454}
5455
5456
5457static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj;
5459 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5460 wxIcon *arg2 = 0 ;
5461 PyObject * obj0 = 0 ;
5462 PyObject * obj1 = 0 ;
5463 char *kwnames[] = {
5464 (char *) "self",(char *) "icon", NULL
5465 };
5466
5467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5471 SWIG_POINTER_EXCEPTION | 0)) == -1)
5472 SWIG_fail;
5473 if (arg2 == NULL) {
5474 PyErr_SetString(PyExc_TypeError,"null reference");
5475 SWIG_fail;
5476 }
5477 {
5478 PyThreadState* __tstate = wxPyBeginAllowThreads();
5479 (arg1)->SetIcon((wxIcon const &)*arg2);
5480
5481 wxPyEndAllowThreads(__tstate);
5482 if (PyErr_Occurred()) SWIG_fail;
5483 }
5484 Py_INCREF(Py_None); resultobj = Py_None;
5485 return resultobj;
5486 fail:
5487 return NULL;
5488}
5489
5490
f20a2e1f
RD
5491static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5492 PyObject *resultobj;
5493 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5494 wxVisualAttributes result;
5495 PyObject * obj0 = 0 ;
5496 char *kwnames[] = {
5497 (char *) "variant", NULL
5498 };
5499
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5501 if (obj0) {
5502 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
5503 if (PyErr_Occurred()) SWIG_fail;
5504 }
5505 {
0439c23b 5506 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
5507 PyThreadState* __tstate = wxPyBeginAllowThreads();
5508 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5509
5510 wxPyEndAllowThreads(__tstate);
110da5b0 5511 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
5512 }
5513 {
5514 wxVisualAttributes * resultptr;
5515 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5516 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5517 }
5518 return resultobj;
5519 fail:
5520 return NULL;
5521}
5522
5523
d55e5bfc
RD
5524static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) {
5525 PyObject *obj;
5526 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5527 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5528 Py_INCREF(obj);
5529 return Py_BuildValue((char *)"");
5530}
5531static int _wrap_ListBoxNameStr_set(PyObject *_val) {
5532 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5533 return 1;
5534}
5535
5536
5537static PyObject *_wrap_ListBoxNameStr_get() {
5538 PyObject *pyobj;
5539
5540 {
5541#if wxUSE_UNICODE
5542 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5543#else
5544 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5545#endif
5546 }
5547 return pyobj;
5548}
5549
5550
5551static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5552 PyObject *resultobj;
5553 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17 5554 int arg2 = (int) -1 ;
d55e5bfc
RD
5555 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5556 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5557 wxSize const &arg4_defvalue = wxDefaultSize ;
5558 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5559 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5560 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5561 long arg6 = (long) 0 ;
5562 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5563 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5564 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5565 wxString *arg8 = (wxString *) &arg8_defvalue ;
5566 wxListBox *result;
5567 wxPoint temp3 ;
5568 wxSize temp4 ;
5569 bool temp5 = False ;
5570 bool temp8 = False ;
5571 PyObject * obj0 = 0 ;
5572 PyObject * obj1 = 0 ;
5573 PyObject * obj2 = 0 ;
5574 PyObject * obj3 = 0 ;
5575 PyObject * obj4 = 0 ;
5576 PyObject * obj5 = 0 ;
5577 PyObject * obj6 = 0 ;
5578 PyObject * obj7 = 0 ;
5579 char *kwnames[] = {
5580 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5581 };
5582
bfddbb17 5583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
5584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
5586 if (obj1) {
5587 arg2 = (int) SWIG_AsInt(obj1);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
d55e5bfc
RD
5590 if (obj2) {
5591 {
5592 arg3 = &temp3;
5593 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5594 }
5595 }
5596 if (obj3) {
5597 {
5598 arg4 = &temp4;
5599 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5600 }
5601 }
5602 if (obj4) {
5603 {
5604 if (! PySequence_Check(obj4)) {
5605 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5606 SWIG_fail;
5607 }
5608 arg5 = new wxArrayString;
5609 temp5 = True;
5610 int i, len=PySequence_Length(obj4);
5611 for (i=0; i<len; i++) {
5612 PyObject* item = PySequence_GetItem(obj4, i);
5613#if wxUSE_UNICODE
5614 PyObject* str = PyObject_Unicode(item);
5615#else
5616 PyObject* str = PyObject_Str(item);
5617#endif
5618 if (PyErr_Occurred()) SWIG_fail;
5619 arg5->Add(Py2wxString(str));
5620 Py_DECREF(item);
5621 Py_DECREF(str);
5622 }
5623 }
5624 }
5625 if (obj5) {
5626 arg6 = (long) SWIG_AsLong(obj5);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 if (obj6) {
5630 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5631 SWIG_POINTER_EXCEPTION | 0)) == -1)
5632 SWIG_fail;
5633 if (arg7 == NULL) {
5634 PyErr_SetString(PyExc_TypeError,"null reference");
5635 SWIG_fail;
5636 }
5637 }
5638 if (obj7) {
5639 {
5640 arg8 = wxString_in_helper(obj7);
5641 if (arg8 == NULL) SWIG_fail;
5642 temp8 = True;
5643 }
5644 }
5645 {
0439c23b 5646 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5649
5650 wxPyEndAllowThreads(__tstate);
110da5b0 5651 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5652 }
5653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5654 {
5655 if (temp5) delete arg5;
5656 }
5657 {
5658 if (temp8)
5659 delete arg8;
5660 }
5661 return resultobj;
5662 fail:
5663 {
5664 if (temp5) delete arg5;
5665 }
5666 {
5667 if (temp8)
5668 delete arg8;
5669 }
5670 return NULL;
5671}
5672
5673
5674static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5675 PyObject *resultobj;
5676 wxListBox *result;
5677 char *kwnames[] = {
5678 NULL
5679 };
5680
5681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5682 {
0439c23b 5683 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5684 PyThreadState* __tstate = wxPyBeginAllowThreads();
5685 result = (wxListBox *)new wxListBox();
5686
5687 wxPyEndAllowThreads(__tstate);
110da5b0 5688 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5689 }
5690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5691 return resultobj;
5692 fail:
5693 return NULL;
5694}
5695
5696
5697static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj;
5699 wxListBox *arg1 = (wxListBox *) 0 ;
5700 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17 5701 int arg3 = (int) -1 ;
d55e5bfc
RD
5702 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5703 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5704 wxSize const &arg5_defvalue = wxDefaultSize ;
5705 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5706 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5707 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5708 long arg7 = (long) 0 ;
5709 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5710 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5711 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5712 wxString *arg9 = (wxString *) &arg9_defvalue ;
5713 bool result;
5714 wxPoint temp4 ;
5715 wxSize temp5 ;
5716 bool temp6 = False ;
5717 bool temp9 = False ;
5718 PyObject * obj0 = 0 ;
5719 PyObject * obj1 = 0 ;
5720 PyObject * obj2 = 0 ;
5721 PyObject * obj3 = 0 ;
5722 PyObject * obj4 = 0 ;
5723 PyObject * obj5 = 0 ;
5724 PyObject * obj6 = 0 ;
5725 PyObject * obj7 = 0 ;
5726 PyObject * obj8 = 0 ;
5727 char *kwnames[] = {
5728 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5729 };
5730
bfddbb17 5731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d55e5bfc
RD
5732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
5736 if (obj2) {
5737 arg3 = (int) SWIG_AsInt(obj2);
5738 if (PyErr_Occurred()) SWIG_fail;
5739 }
d55e5bfc
RD
5740 if (obj3) {
5741 {
5742 arg4 = &temp4;
5743 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5744 }
5745 }
5746 if (obj4) {
5747 {
5748 arg5 = &temp5;
5749 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5750 }
5751 }
5752 if (obj5) {
5753 {
5754 if (! PySequence_Check(obj5)) {
5755 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5756 SWIG_fail;
5757 }
5758 arg6 = new wxArrayString;
5759 temp6 = True;
5760 int i, len=PySequence_Length(obj5);
5761 for (i=0; i<len; i++) {
5762 PyObject* item = PySequence_GetItem(obj5, i);
5763#if wxUSE_UNICODE
5764 PyObject* str = PyObject_Unicode(item);
5765#else
5766 PyObject* str = PyObject_Str(item);
5767#endif
5768 if (PyErr_Occurred()) SWIG_fail;
5769 arg6->Add(Py2wxString(str));
5770 Py_DECREF(item);
5771 Py_DECREF(str);
5772 }
5773 }
5774 }
5775 if (obj6) {
5776 arg7 = (long) SWIG_AsLong(obj6);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 if (obj7) {
5780 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5781 SWIG_POINTER_EXCEPTION | 0)) == -1)
5782 SWIG_fail;
5783 if (arg8 == NULL) {
5784 PyErr_SetString(PyExc_TypeError,"null reference");
5785 SWIG_fail;
5786 }
5787 }
5788 if (obj8) {
5789 {
5790 arg9 = wxString_in_helper(obj8);
5791 if (arg9 == NULL) SWIG_fail;
5792 temp9 = True;
5793 }
5794 }
5795 {
5796 PyThreadState* __tstate = wxPyBeginAllowThreads();
5797 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5798
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 {
5803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5804 }
5805 {
5806 if (temp6) delete arg6;
5807 }
5808 {
5809 if (temp9)
5810 delete arg9;
5811 }
5812 return resultobj;
5813 fail:
5814 {
5815 if (temp6) delete arg6;
5816 }
5817 {
5818 if (temp9)
5819 delete arg9;
5820 }
5821 return NULL;
5822}
5823
5824
5825static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
5826 PyObject *resultobj;
5827 wxListBox *arg1 = (wxListBox *) 0 ;
5828 wxString *arg2 = 0 ;
5829 int arg3 ;
5830 PyObject *arg4 = (PyObject *) NULL ;
5831 bool temp2 = False ;
5832 PyObject * obj0 = 0 ;
5833 PyObject * obj1 = 0 ;
5834 PyObject * obj2 = 0 ;
5835 PyObject * obj3 = 0 ;
5836 char *kwnames[] = {
5837 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5838 };
5839
5840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5843 {
5844 arg2 = wxString_in_helper(obj1);
5845 if (arg2 == NULL) SWIG_fail;
5846 temp2 = True;
5847 }
5848 arg3 = (int) SWIG_AsInt(obj2);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 if (obj3) {
5851 arg4 = obj3;
5852 }
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5856
5857 wxPyEndAllowThreads(__tstate);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
5860 Py_INCREF(Py_None); resultobj = Py_None;
5861 {
5862 if (temp2)
5863 delete arg2;
5864 }
5865 return resultobj;
5866 fail:
5867 {
5868 if (temp2)
5869 delete arg2;
5870 }
5871 return NULL;
5872}
5873
5874
5875static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 wxListBox *arg1 = (wxListBox *) 0 ;
5878 wxArrayString *arg2 = 0 ;
5879 int arg3 ;
5880 bool temp2 = False ;
5881 PyObject * obj0 = 0 ;
5882 PyObject * obj1 = 0 ;
5883 PyObject * obj2 = 0 ;
5884 char *kwnames[] = {
5885 (char *) "self",(char *) "items",(char *) "pos", NULL
5886 };
5887
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
5889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5891 {
5892 if (! PySequence_Check(obj1)) {
5893 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5894 SWIG_fail;
5895 }
5896 arg2 = new wxArrayString;
5897 temp2 = True;
5898 int i, len=PySequence_Length(obj1);
5899 for (i=0; i<len; i++) {
5900 PyObject* item = PySequence_GetItem(obj1, i);
5901#if wxUSE_UNICODE
5902 PyObject* str = PyObject_Unicode(item);
5903#else
5904 PyObject* str = PyObject_Str(item);
5905#endif
5906 if (PyErr_Occurred()) SWIG_fail;
5907 arg2->Add(Py2wxString(str));
5908 Py_DECREF(item);
5909 Py_DECREF(str);
5910 }
5911 }
5912 arg3 = (int) SWIG_AsInt(obj2);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
5917
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 Py_INCREF(Py_None); resultobj = Py_None;
5922 {
5923 if (temp2) delete arg2;
5924 }
5925 return resultobj;
5926 fail:
5927 {
5928 if (temp2) delete arg2;
5929 }
5930 return NULL;
5931}
5932
5933
5934static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5935 PyObject *resultobj;
5936 wxListBox *arg1 = (wxListBox *) 0 ;
5937 wxArrayString *arg2 = 0 ;
5938 bool temp2 = False ;
5939 PyObject * obj0 = 0 ;
5940 PyObject * obj1 = 0 ;
5941 char *kwnames[] = {
5942 (char *) "self",(char *) "items", NULL
5943 };
5944
5945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
5946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5948 {
5949 if (! PySequence_Check(obj1)) {
5950 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5951 SWIG_fail;
5952 }
5953 arg2 = new wxArrayString;
5954 temp2 = True;
5955 int i, len=PySequence_Length(obj1);
5956 for (i=0; i<len; i++) {
5957 PyObject* item = PySequence_GetItem(obj1, i);
5958#if wxUSE_UNICODE
5959 PyObject* str = PyObject_Unicode(item);
5960#else
5961 PyObject* str = PyObject_Str(item);
5962#endif
5963 if (PyErr_Occurred()) SWIG_fail;
5964 arg2->Add(Py2wxString(str));
5965 Py_DECREF(item);
5966 Py_DECREF(str);
5967 }
5968 }
5969 {
5970 PyThreadState* __tstate = wxPyBeginAllowThreads();
5971 (arg1)->Set((wxArrayString const &)*arg2);
5972
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 Py_INCREF(Py_None); resultobj = Py_None;
5977 {
5978 if (temp2) delete arg2;
5979 }
5980 return resultobj;
5981 fail:
5982 {
5983 if (temp2) delete arg2;
5984 }
5985 return NULL;
5986}
5987
5988
5989static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5990 PyObject *resultobj;
5991 wxListBox *arg1 = (wxListBox *) 0 ;
5992 int arg2 ;
5993 bool result;
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_IsSelected",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 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6008
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 {
6013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6014 }
6015 return resultobj;
6016 fail:
6017 return NULL;
6018}
6019
6020
6021static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6022 PyObject *resultobj;
6023 wxListBox *arg1 = (wxListBox *) 0 ;
6024 int arg2 ;
6025 bool arg3 = (bool) True ;
6026 PyObject * obj0 = 0 ;
6027 PyObject * obj1 = 0 ;
6028 PyObject * obj2 = 0 ;
6029 char *kwnames[] = {
6030 (char *) "self",(char *) "n",(char *) "select", NULL
6031 };
6032
6033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6036 arg2 = (int) SWIG_AsInt(obj1);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 if (obj2) {
6039 arg3 = (bool) SWIG_AsBool(obj2);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 {
6043 PyThreadState* __tstate = wxPyBeginAllowThreads();
6044 (arg1)->SetSelection(arg2,arg3);
6045
6046 wxPyEndAllowThreads(__tstate);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 Py_INCREF(Py_None); resultobj = Py_None;
6050 return resultobj;
6051 fail:
6052 return NULL;
6053}
6054
6055
6056static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
6057 PyObject *resultobj;
6058 wxListBox *arg1 = (wxListBox *) 0 ;
6059 int arg2 ;
6060 PyObject * obj0 = 0 ;
6061 PyObject * obj1 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "self",(char *) "n", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6069 arg2 = (int) SWIG_AsInt(obj1);
6070 if (PyErr_Occurred()) SWIG_fail;
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 (arg1)->Select(arg2);
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 Py_INCREF(Py_None); resultobj = Py_None;
6079 return resultobj;
6080 fail:
6081 return NULL;
6082}
6083
6084
6085static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj;
6087 wxListBox *arg1 = (wxListBox *) 0 ;
6088 int arg2 ;
6089 PyObject * obj0 = 0 ;
6090 PyObject * obj1 = 0 ;
6091 char *kwnames[] = {
6092 (char *) "self",(char *) "n", NULL
6093 };
6094
6095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6098 arg2 = (int) SWIG_AsInt(obj1);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 (arg1)->Deselect(arg2);
6103
6104 wxPyEndAllowThreads(__tstate);
6105 if (PyErr_Occurred()) SWIG_fail;
6106 }
6107 Py_INCREF(Py_None); resultobj = Py_None;
6108 return resultobj;
6109 fail:
6110 return NULL;
6111}
6112
6113
6114static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject *resultobj;
6116 wxListBox *arg1 = (wxListBox *) 0 ;
6117 int arg2 = (int) -1 ;
6118 PyObject * obj0 = 0 ;
6119 PyObject * obj1 = 0 ;
6120 char *kwnames[] = {
6121 (char *) "self",(char *) "itemToLeaveSelected", NULL
6122 };
6123
6124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6127 if (obj1) {
6128 arg2 = (int) SWIG_AsInt(obj1);
6129 if (PyErr_Occurred()) SWIG_fail;
6130 }
6131 {
6132 PyThreadState* __tstate = wxPyBeginAllowThreads();
6133 (arg1)->DeselectAll(arg2);
6134
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) SWIG_fail;
6137 }
6138 Py_INCREF(Py_None); resultobj = Py_None;
6139 return resultobj;
6140 fail:
6141 return NULL;
6142}
6143
6144
6145static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6146 PyObject *resultobj;
6147 wxListBox *arg1 = (wxListBox *) 0 ;
6148 wxString *arg2 = 0 ;
6149 bool arg3 = (bool) True ;
6150 bool result;
6151 bool temp2 = False ;
6152 PyObject * obj0 = 0 ;
6153 PyObject * obj1 = 0 ;
6154 PyObject * obj2 = 0 ;
6155 char *kwnames[] = {
6156 (char *) "self",(char *) "s",(char *) "select", NULL
6157 };
6158
6159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6162 {
6163 arg2 = wxString_in_helper(obj1);
6164 if (arg2 == NULL) SWIG_fail;
6165 temp2 = True;
6166 }
6167 if (obj2) {
6168 arg3 = (bool) SWIG_AsBool(obj2);
6169 if (PyErr_Occurred()) SWIG_fail;
6170 }
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6174
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 {
6179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6180 }
6181 {
6182 if (temp2)
6183 delete arg2;
6184 }
6185 return resultobj;
6186 fail:
6187 {
6188 if (temp2)
6189 delete arg2;
6190 }
6191 return NULL;
6192}
6193
6194
6195static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj;
6197 wxListBox *arg1 = (wxListBox *) 0 ;
6198 PyObject *result;
6199 PyObject * obj0 = 0 ;
6200 char *kwnames[] = {
6201 (char *) "self", NULL
6202 };
6203
6204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 result = (PyObject *)wxListBox_GetSelections(arg1);
6210
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 resultobj = result;
6215 return resultobj;
6216 fail:
6217 return NULL;
6218}
6219
6220
6221static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6222 PyObject *resultobj;
6223 wxListBox *arg1 = (wxListBox *) 0 ;
6224 int arg2 ;
6225 PyObject * obj0 = 0 ;
6226 PyObject * obj1 = 0 ;
6227 char *kwnames[] = {
6228 (char *) "self",(char *) "n", NULL
6229 };
6230
6231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6234 arg2 = (int) SWIG_AsInt(obj1);
6235 if (PyErr_Occurred()) SWIG_fail;
6236 {
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 (arg1)->SetFirstItem(arg2);
6239
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 Py_INCREF(Py_None); resultobj = Py_None;
6244 return resultobj;
6245 fail:
6246 return NULL;
6247}
6248
6249
6250static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj;
6252 wxListBox *arg1 = (wxListBox *) 0 ;
6253 wxString *arg2 = 0 ;
6254 bool temp2 = False ;
6255 PyObject * obj0 = 0 ;
6256 PyObject * obj1 = 0 ;
6257 char *kwnames[] = {
6258 (char *) "self",(char *) "s", NULL
6259 };
6260
6261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6264 {
6265 arg2 = wxString_in_helper(obj1);
6266 if (arg2 == NULL) SWIG_fail;
6267 temp2 = True;
6268 }
6269 {
6270 PyThreadState* __tstate = wxPyBeginAllowThreads();
6271 (arg1)->SetFirstItem((wxString const &)*arg2);
6272
6273 wxPyEndAllowThreads(__tstate);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 Py_INCREF(Py_None); resultobj = Py_None;
6277 {
6278 if (temp2)
6279 delete arg2;
6280 }
6281 return resultobj;
6282 fail:
6283 {
6284 if (temp2)
6285 delete arg2;
6286 }
6287 return NULL;
6288}
6289
6290
6291static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6292 PyObject *resultobj;
6293 wxListBox *arg1 = (wxListBox *) 0 ;
6294 int arg2 ;
6295 PyObject * obj0 = 0 ;
6296 PyObject * obj1 = 0 ;
6297 char *kwnames[] = {
6298 (char *) "self",(char *) "n", NULL
6299 };
6300
6301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6304 arg2 = (int) SWIG_AsInt(obj1);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 {
6307 PyThreadState* __tstate = wxPyBeginAllowThreads();
6308 (arg1)->EnsureVisible(arg2);
6309
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 Py_INCREF(Py_None); resultobj = Py_None;
6314 return resultobj;
6315 fail:
6316 return NULL;
6317}
6318
6319
6320static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6321 PyObject *resultobj;
6322 wxListBox *arg1 = (wxListBox *) 0 ;
6323 wxString *arg2 = 0 ;
6324 bool temp2 = False ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char *kwnames[] = {
6328 (char *) "self",(char *) "s", NULL
6329 };
6330
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6334 {
6335 arg2 = wxString_in_helper(obj1);
6336 if (arg2 == NULL) SWIG_fail;
6337 temp2 = True;
6338 }
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6342
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 Py_INCREF(Py_None); resultobj = Py_None;
6347 {
6348 if (temp2)
6349 delete arg2;
6350 }
6351 return resultobj;
6352 fail:
6353 {
6354 if (temp2)
6355 delete arg2;
6356 }
6357 return NULL;
6358}
6359
6360
6361static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj;
6363 wxListBox *arg1 = (wxListBox *) 0 ;
6364 bool result;
6365 PyObject * obj0 = 0 ;
6366 char *kwnames[] = {
6367 (char *) "self", NULL
6368 };
6369
6370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6373 {
6374 PyThreadState* __tstate = wxPyBeginAllowThreads();
6375 result = (bool)((wxListBox const *)arg1)->IsSorted();
6376
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 {
6381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6382 }
6383 return resultobj;
6384 fail:
6385 return NULL;
6386}
6387
6388
6389static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6390 PyObject *resultobj;
6391 wxListBox *arg1 = (wxListBox *) 0 ;
6392 int arg2 ;
6393 wxColour *arg3 = 0 ;
6394 wxColour temp3 ;
6395 PyObject * obj0 = 0 ;
6396 PyObject * obj1 = 0 ;
6397 PyObject * obj2 = 0 ;
6398 char *kwnames[] = {
6399 (char *) "self",(char *) "item",(char *) "c", NULL
6400 };
6401
6402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6405 arg2 = (int) SWIG_AsInt(obj1);
6406 if (PyErr_Occurred()) SWIG_fail;
6407 {
6408 arg3 = &temp3;
6409 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6410 }
6411 {
6412 PyThreadState* __tstate = wxPyBeginAllowThreads();
6413 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6414
6415 wxPyEndAllowThreads(__tstate);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 Py_INCREF(Py_None); resultobj = Py_None;
6419 return resultobj;
6420 fail:
6421 return NULL;
6422}
6423
6424
6425static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6426 PyObject *resultobj;
6427 wxListBox *arg1 = (wxListBox *) 0 ;
6428 int arg2 ;
6429 wxColour *arg3 = 0 ;
6430 wxColour temp3 ;
6431 PyObject * obj0 = 0 ;
6432 PyObject * obj1 = 0 ;
6433 PyObject * obj2 = 0 ;
6434 char *kwnames[] = {
6435 (char *) "self",(char *) "item",(char *) "c", NULL
6436 };
6437
6438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6441 arg2 = (int) SWIG_AsInt(obj1);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 {
6444 arg3 = &temp3;
6445 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6446 }
6447 {
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6450
6451 wxPyEndAllowThreads(__tstate);
6452 if (PyErr_Occurred()) SWIG_fail;
6453 }
6454 Py_INCREF(Py_None); resultobj = Py_None;
6455 return resultobj;
6456 fail:
6457 return NULL;
6458}
6459
6460
6461static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6462 PyObject *resultobj;
6463 wxListBox *arg1 = (wxListBox *) 0 ;
6464 int arg2 ;
6465 wxFont *arg3 = 0 ;
6466 PyObject * obj0 = 0 ;
6467 PyObject * obj1 = 0 ;
6468 PyObject * obj2 = 0 ;
6469 char *kwnames[] = {
6470 (char *) "self",(char *) "item",(char *) "f", NULL
6471 };
6472
6473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6476 arg2 = (int) SWIG_AsInt(obj1);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6479 SWIG_POINTER_EXCEPTION | 0)) == -1)
6480 SWIG_fail;
6481 if (arg3 == NULL) {
6482 PyErr_SetString(PyExc_TypeError,"null reference");
6483 SWIG_fail;
6484 }
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6488
6489 wxPyEndAllowThreads(__tstate);
6490 if (PyErr_Occurred()) SWIG_fail;
6491 }
6492 Py_INCREF(Py_None); resultobj = Py_None;
6493 return resultobj;
6494 fail:
6495 return NULL;
6496}
6497
6498
6499static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6500 PyObject *resultobj;
6501 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6502 wxVisualAttributes result;
6503 PyObject * obj0 = 0 ;
6504 char *kwnames[] = {
6505 (char *) "variant", NULL
6506 };
6507
6508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6509 if (obj0) {
6510 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
6511 if (PyErr_Occurred()) SWIG_fail;
6512 }
6513 {
0439c23b 6514 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6517
6518 wxPyEndAllowThreads(__tstate);
110da5b0 6519 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6520 }
6521 {
6522 wxVisualAttributes * resultptr;
6523 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6524 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6525 }
6526 return resultobj;
6527 fail:
6528 return NULL;
6529}
6530
6531
6532static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) {
6533 PyObject *obj;
6534 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6535 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6536 Py_INCREF(obj);
6537 return Py_BuildValue((char *)"");
6538}
6539static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj;
6541 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17 6542 int arg2 = (int) -1 ;
d55e5bfc
RD
6543 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6544 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6545 wxSize const &arg4_defvalue = wxDefaultSize ;
6546 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6547 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6548 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6549 long arg6 = (long) 0 ;
6550 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6551 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6552 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6553 wxString *arg8 = (wxString *) &arg8_defvalue ;
6554 wxCheckListBox *result;
6555 wxPoint temp3 ;
6556 wxSize temp4 ;
6557 bool temp5 = False ;
6558 bool temp8 = False ;
6559 PyObject * obj0 = 0 ;
6560 PyObject * obj1 = 0 ;
6561 PyObject * obj2 = 0 ;
6562 PyObject * obj3 = 0 ;
6563 PyObject * obj4 = 0 ;
6564 PyObject * obj5 = 0 ;
6565 PyObject * obj6 = 0 ;
6566 PyObject * obj7 = 0 ;
6567 char *kwnames[] = {
6568 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6569 };
6570
bfddbb17 6571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
6572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
6574 if (obj1) {
6575 arg2 = (int) SWIG_AsInt(obj1);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
d55e5bfc
RD
6578 if (obj2) {
6579 {
6580 arg3 = &temp3;
6581 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6582 }
6583 }
6584 if (obj3) {
6585 {
6586 arg4 = &temp4;
6587 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6588 }
6589 }
6590 if (obj4) {
6591 {
6592 if (! PySequence_Check(obj4)) {
6593 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6594 SWIG_fail;
6595 }
6596 arg5 = new wxArrayString;
6597 temp5 = True;
6598 int i, len=PySequence_Length(obj4);
6599 for (i=0; i<len; i++) {
6600 PyObject* item = PySequence_GetItem(obj4, i);
6601#if wxUSE_UNICODE
6602 PyObject* str = PyObject_Unicode(item);
6603#else
6604 PyObject* str = PyObject_Str(item);
6605#endif
6606 if (PyErr_Occurred()) SWIG_fail;
6607 arg5->Add(Py2wxString(str));
6608 Py_DECREF(item);
6609 Py_DECREF(str);
6610 }
6611 }
6612 }
6613 if (obj5) {
6614 arg6 = (long) SWIG_AsLong(obj5);
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
6617 if (obj6) {
6618 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6619 SWIG_POINTER_EXCEPTION | 0)) == -1)
6620 SWIG_fail;
6621 if (arg7 == NULL) {
6622 PyErr_SetString(PyExc_TypeError,"null reference");
6623 SWIG_fail;
6624 }
6625 }
6626 if (obj7) {
6627 {
6628 arg8 = wxString_in_helper(obj7);
6629 if (arg8 == NULL) SWIG_fail;
6630 temp8 = True;
6631 }
6632 }
6633 {
0439c23b 6634 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
6636 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6637
6638 wxPyEndAllowThreads(__tstate);
110da5b0 6639 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6640 }
6641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6642 {
6643 if (temp5) delete arg5;
6644 }
6645 {
6646 if (temp8)
6647 delete arg8;
6648 }
6649 return resultobj;
6650 fail:
6651 {
6652 if (temp5) delete arg5;
6653 }
6654 {
6655 if (temp8)
6656 delete arg8;
6657 }
6658 return NULL;
6659}
6660
6661
6662static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6663 PyObject *resultobj;
6664 wxCheckListBox *result;
6665 char *kwnames[] = {
6666 NULL
6667 };
6668
6669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6670 {
0439c23b 6671 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6672 PyThreadState* __tstate = wxPyBeginAllowThreads();
6673 result = (wxCheckListBox *)new wxCheckListBox();
6674
6675 wxPyEndAllowThreads(__tstate);
110da5b0 6676 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6677 }
6678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6679 return resultobj;
6680 fail:
6681 return NULL;
6682}
6683
6684
6685static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6686 PyObject *resultobj;
6687 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6688 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17 6689 int arg3 = (int) -1 ;
d55e5bfc
RD
6690 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6691 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6692 wxSize const &arg5_defvalue = wxDefaultSize ;
6693 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6694 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6695 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6696 long arg7 = (long) 0 ;
6697 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6698 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6699 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6700 wxString *arg9 = (wxString *) &arg9_defvalue ;
6701 bool result;
6702 wxPoint temp4 ;
6703 wxSize temp5 ;
6704 bool temp6 = False ;
6705 bool temp9 = False ;
6706 PyObject * obj0 = 0 ;
6707 PyObject * obj1 = 0 ;
6708 PyObject * obj2 = 0 ;
6709 PyObject * obj3 = 0 ;
6710 PyObject * obj4 = 0 ;
6711 PyObject * obj5 = 0 ;
6712 PyObject * obj6 = 0 ;
6713 PyObject * obj7 = 0 ;
6714 PyObject * obj8 = 0 ;
6715 char *kwnames[] = {
6716 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6717 };
6718
bfddbb17 6719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d55e5bfc
RD
6720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6722 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
6724 if (obj2) {
6725 arg3 = (int) SWIG_AsInt(obj2);
6726 if (PyErr_Occurred()) SWIG_fail;
6727 }
d55e5bfc
RD
6728 if (obj3) {
6729 {
6730 arg4 = &temp4;
6731 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6732 }
6733 }
6734 if (obj4) {
6735 {
6736 arg5 = &temp5;
6737 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6738 }
6739 }
6740 if (obj5) {
6741 {
6742 if (! PySequence_Check(obj5)) {
6743 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6744 SWIG_fail;
6745 }
6746 arg6 = new wxArrayString;
6747 temp6 = True;
6748 int i, len=PySequence_Length(obj5);
6749 for (i=0; i<len; i++) {
6750 PyObject* item = PySequence_GetItem(obj5, i);
6751#if wxUSE_UNICODE
6752 PyObject* str = PyObject_Unicode(item);
6753#else
6754 PyObject* str = PyObject_Str(item);
6755#endif
6756 if (PyErr_Occurred()) SWIG_fail;
6757 arg6->Add(Py2wxString(str));
6758 Py_DECREF(item);
6759 Py_DECREF(str);
6760 }
6761 }
6762 }
6763 if (obj6) {
6764 arg7 = (long) SWIG_AsLong(obj6);
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 if (obj7) {
6768 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6769 SWIG_POINTER_EXCEPTION | 0)) == -1)
6770 SWIG_fail;
6771 if (arg8 == NULL) {
6772 PyErr_SetString(PyExc_TypeError,"null reference");
6773 SWIG_fail;
6774 }
6775 }
6776 if (obj8) {
6777 {
6778 arg9 = wxString_in_helper(obj8);
6779 if (arg9 == NULL) SWIG_fail;
6780 temp9 = True;
6781 }
6782 }
6783 {
6784 PyThreadState* __tstate = wxPyBeginAllowThreads();
6785 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6786
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 {
6791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6792 }
6793 {
6794 if (temp6) delete arg6;
6795 }
6796 {
6797 if (temp9)
6798 delete arg9;
6799 }
6800 return resultobj;
6801 fail:
6802 {
6803 if (temp6) delete arg6;
6804 }
6805 {
6806 if (temp9)
6807 delete arg9;
6808 }
6809 return NULL;
6810}
6811
6812
6813static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj;
6815 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6816 int arg2 ;
6817 bool result;
6818 PyObject * obj0 = 0 ;
6819 PyObject * obj1 = 0 ;
6820 char *kwnames[] = {
6821 (char *) "self",(char *) "index", NULL
6822 };
6823
6824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) 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 {
6830 PyThreadState* __tstate = wxPyBeginAllowThreads();
6831 result = (bool)(arg1)->IsChecked(arg2);
6832
6833 wxPyEndAllowThreads(__tstate);
6834 if (PyErr_Occurred()) SWIG_fail;
6835 }
6836 {
6837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6838 }
6839 return resultobj;
6840 fail:
6841 return NULL;
6842}
6843
6844
6845static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj;
6847 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6848 int arg2 ;
6849 int arg3 = (int) True ;
6850 PyObject * obj0 = 0 ;
6851 PyObject * obj1 = 0 ;
6852 PyObject * obj2 = 0 ;
6853 char *kwnames[] = {
6854 (char *) "self",(char *) "index",(char *) "check", NULL
6855 };
6856
6857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6860 arg2 = (int) SWIG_AsInt(obj1);
6861 if (PyErr_Occurred()) SWIG_fail;
6862 if (obj2) {
6863 arg3 = (int) SWIG_AsInt(obj2);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 {
6867 PyThreadState* __tstate = wxPyBeginAllowThreads();
6868 (arg1)->Check(arg2,arg3);
6869
6870 wxPyEndAllowThreads(__tstate);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 }
6873 Py_INCREF(Py_None); resultobj = Py_None;
6874 return resultobj;
6875 fail:
6876 return NULL;
6877}
6878
6879
6880static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6881 PyObject *resultobj;
6882 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6883 wxPoint *arg2 = 0 ;
6884 int result;
6885 wxPoint temp2 ;
6886 PyObject * obj0 = 0 ;
6887 PyObject * obj1 = 0 ;
6888 char *kwnames[] = {
6889 (char *) "self",(char *) "pt", NULL
6890 };
6891
6892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
6893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6895 {
6896 arg2 = &temp2;
6897 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6898 }
6899 {
6900 PyThreadState* __tstate = wxPyBeginAllowThreads();
6901 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
6902
6903 wxPyEndAllowThreads(__tstate);
6904 if (PyErr_Occurred()) SWIG_fail;
6905 }
6906 resultobj = SWIG_FromInt((int)result);
6907 return resultobj;
6908 fail:
6909 return NULL;
6910}
6911
6912
6913static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6914 PyObject *resultobj;
6915 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6916 int arg2 ;
6917 int arg3 ;
6918 int result;
6919 PyObject * obj0 = 0 ;
6920 PyObject * obj1 = 0 ;
6921 PyObject * obj2 = 0 ;
6922 char *kwnames[] = {
6923 (char *) "self",(char *) "x",(char *) "y", NULL
6924 };
6925
6926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6929 arg2 = (int) SWIG_AsInt(obj1);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 arg3 = (int) SWIG_AsInt(obj2);
6932 if (PyErr_Occurred()) SWIG_fail;
6933 {
6934 PyThreadState* __tstate = wxPyBeginAllowThreads();
6935 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
6936
6937 wxPyEndAllowThreads(__tstate);
6938 if (PyErr_Occurred()) SWIG_fail;
6939 }
6940 resultobj = SWIG_FromInt((int)result);
6941 return resultobj;
6942 fail:
6943 return NULL;
6944}
6945
6946
6947static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) {
6948 PyObject *obj;
6949 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6950 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
6951 Py_INCREF(obj);
6952 return Py_BuildValue((char *)"");
6953}
6954static int _wrap_TextCtrlNameStr_set(PyObject *_val) {
6955 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
6956 return 1;
6957}
6958
6959
6960static PyObject *_wrap_TextCtrlNameStr_get() {
6961 PyObject *pyobj;
6962
6963 {
6964#if wxUSE_UNICODE
6965 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6966#else
6967 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
6968#endif
6969 }
6970 return pyobj;
6971}
6972
6973
908b74cd 6974static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 6975 PyObject *resultobj;
908b74cd
RD
6976 wxColour const &arg1_defvalue = wxNullColour ;
6977 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
d55e5bfc
RD
6978 wxColour const &arg2_defvalue = wxNullColour ;
6979 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6980 wxFont const &arg3_defvalue = wxNullFont ;
6981 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
6982 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
6983 wxTextAttr *result;
6984 wxColour temp1 ;
6985 wxColour temp2 ;
6986 PyObject * obj0 = 0 ;
6987 PyObject * obj1 = 0 ;
6988 PyObject * obj2 = 0 ;
6989 PyObject * obj3 = 0 ;
908b74cd
RD
6990 char *kwnames[] = {
6991 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
6992 };
d55e5bfc 6993
908b74cd
RD
6994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6995 if (obj0) {
6996 {
6997 arg1 = &temp1;
6998 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
6999 }
d55e5bfc
RD
7000 }
7001 if (obj1) {
7002 {
7003 arg2 = &temp2;
7004 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7005 }
7006 }
7007 if (obj2) {
7008 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7009 SWIG_POINTER_EXCEPTION | 0)) == -1)
7010 SWIG_fail;
7011 if (arg3 == NULL) {
7012 PyErr_SetString(PyExc_TypeError,"null reference");
7013 SWIG_fail;
7014 }
7015 }
7016 if (obj3) {
7017 arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 {
7021 PyThreadState* __tstate = wxPyBeginAllowThreads();
7022 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7023
7024 wxPyEndAllowThreads(__tstate);
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7028 return resultobj;
7029 fail:
7030 return NULL;
7031}
7032
7033
d55e5bfc
RD
7034static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7035 PyObject *resultobj;
7036 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7037 PyObject * obj0 = 0 ;
7038 char *kwnames[] = {
7039 (char *) "self", NULL
7040 };
7041
7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 delete arg1;
7048
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 Py_INCREF(Py_None); resultobj = Py_None;
7053 return resultobj;
7054 fail:
7055 return NULL;
7056}
7057
7058
7059static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
7060 PyObject *resultobj;
7061 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7062 PyObject * obj0 = 0 ;
7063 char *kwnames[] = {
7064 (char *) "self", NULL
7065 };
7066
7067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7070 {
7071 PyThreadState* __tstate = wxPyBeginAllowThreads();
7072 (arg1)->Init();
7073
7074 wxPyEndAllowThreads(__tstate);
7075 if (PyErr_Occurred()) SWIG_fail;
7076 }
7077 Py_INCREF(Py_None); resultobj = Py_None;
7078 return resultobj;
7079 fail:
7080 return NULL;
7081}
7082
7083
7084static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7085 PyObject *resultobj;
7086 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7087 wxColour *arg2 = 0 ;
7088 wxColour temp2 ;
7089 PyObject * obj0 = 0 ;
7090 PyObject * obj1 = 0 ;
7091 char *kwnames[] = {
7092 (char *) "self",(char *) "colText", NULL
7093 };
7094
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7098 {
7099 arg2 = &temp2;
7100 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7101 }
7102 {
7103 PyThreadState* __tstate = wxPyBeginAllowThreads();
7104 (arg1)->SetTextColour((wxColour const &)*arg2);
7105
7106 wxPyEndAllowThreads(__tstate);
7107 if (PyErr_Occurred()) SWIG_fail;
7108 }
7109 Py_INCREF(Py_None); resultobj = Py_None;
7110 return resultobj;
7111 fail:
7112 return NULL;
7113}
7114
7115
7116static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7117 PyObject *resultobj;
7118 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7119 wxColour *arg2 = 0 ;
7120 wxColour temp2 ;
7121 PyObject * obj0 = 0 ;
7122 PyObject * obj1 = 0 ;
7123 char *kwnames[] = {
7124 (char *) "self",(char *) "colBack", NULL
7125 };
7126
7127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7130 {
7131 arg2 = &temp2;
7132 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7133 }
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7137
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 Py_INCREF(Py_None); resultobj = Py_None;
7142 return resultobj;
7143 fail:
7144 return NULL;
7145}
7146
7147
7148static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7149 PyObject *resultobj;
7150 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7151 wxFont *arg2 = 0 ;
7152 long arg3 = (long) wxTEXT_ATTR_FONT ;
7153 PyObject * obj0 = 0 ;
7154 PyObject * obj1 = 0 ;
7155 PyObject * obj2 = 0 ;
7156 char *kwnames[] = {
7157 (char *) "self",(char *) "font",(char *) "flags", NULL
7158 };
7159
7160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7164 SWIG_POINTER_EXCEPTION | 0)) == -1)
7165 SWIG_fail;
7166 if (arg2 == NULL) {
7167 PyErr_SetString(PyExc_TypeError,"null reference");
7168 SWIG_fail;
7169 }
7170 if (obj2) {
7171 arg3 = (long) SWIG_AsLong(obj2);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 {
7175 PyThreadState* __tstate = wxPyBeginAllowThreads();
7176 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7177
7178 wxPyEndAllowThreads(__tstate);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 Py_INCREF(Py_None); resultobj = Py_None;
7182 return resultobj;
7183 fail:
7184 return NULL;
7185}
7186
7187
7188static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7189 PyObject *resultobj;
7190 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7191 int arg2 ;
7192 PyObject * obj0 = 0 ;
7193 PyObject * obj1 = 0 ;
7194 char *kwnames[] = {
7195 (char *) "self",(char *) "alignment", NULL
7196 };
7197
7198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7201 arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 {
7204 PyThreadState* __tstate = wxPyBeginAllowThreads();
7205 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7206
7207 wxPyEndAllowThreads(__tstate);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 }
7210 Py_INCREF(Py_None); resultobj = Py_None;
7211 return resultobj;
7212 fail:
7213 return NULL;
7214}
7215
7216
7217static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7218 PyObject *resultobj;
7219 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7220 wxArrayInt *arg2 = 0 ;
7221 bool temp2 = False ;
7222 PyObject * obj0 = 0 ;
7223 PyObject * obj1 = 0 ;
7224 char *kwnames[] = {
7225 (char *) "self",(char *) "tabs", NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7231 {
7232 if (! PySequence_Check(obj1)) {
7233 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7234 SWIG_fail;
7235 }
7236 arg2 = new wxArrayInt;
7237 temp2 = True;
7238 int i, len=PySequence_Length(obj1);
7239 for (i=0; i<len; i++) {
7240 PyObject* item = PySequence_GetItem(obj1, i);
7241 PyObject* number = PyNumber_Int(item);
7242 arg2->Add(PyInt_AS_LONG(number));
7243 Py_DECREF(item);
7244 Py_DECREF(number);
7245 }
7246 }
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7250
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 Py_INCREF(Py_None); resultobj = Py_None;
7255 {
7256 if (temp2) delete arg2;
7257 }
7258 return resultobj;
7259 fail:
7260 {
7261 if (temp2) delete arg2;
7262 }
7263 return NULL;
7264}
7265
7266
7267static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7268 PyObject *resultobj;
7269 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7270 int arg2 ;
68e533f8 7271 int arg3 = (int) 0 ;
d55e5bfc
RD
7272 PyObject * obj0 = 0 ;
7273 PyObject * obj1 = 0 ;
68e533f8 7274 PyObject * obj2 = 0 ;
d55e5bfc 7275 char *kwnames[] = {
68e533f8 7276 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
d55e5bfc
RD
7277 };
7278
68e533f8 7279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
7280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7282 arg2 = (int) SWIG_AsInt(obj1);
7283 if (PyErr_Occurred()) SWIG_fail;
68e533f8
RD
7284 if (obj2) {
7285 arg3 = (int) SWIG_AsInt(obj2);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
d55e5bfc
RD
7288 {
7289 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 7290 (arg1)->SetLeftIndent(arg2,arg3);
d55e5bfc
RD
7291
7292 wxPyEndAllowThreads(__tstate);
7293 if (PyErr_Occurred()) SWIG_fail;
7294 }
7295 Py_INCREF(Py_None); resultobj = Py_None;
7296 return resultobj;
7297 fail:
7298 return NULL;
7299}
7300
7301
7302static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7303 PyObject *resultobj;
7304 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7305 int arg2 ;
7306 PyObject * obj0 = 0 ;
7307 PyObject * obj1 = 0 ;
7308 char *kwnames[] = {
7309 (char *) "self",(char *) "indent", NULL
7310 };
7311
7312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7315 arg2 = (int) SWIG_AsInt(obj1);
7316 if (PyErr_Occurred()) SWIG_fail;
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 (arg1)->SetRightIndent(arg2);
7320
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 Py_INCREF(Py_None); resultobj = Py_None;
7325 return resultobj;
7326 fail:
7327 return NULL;
7328}
7329
7330
7331static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7332 PyObject *resultobj;
7333 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7334 long arg2 ;
7335 PyObject * obj0 = 0 ;
7336 PyObject * obj1 = 0 ;
7337 char *kwnames[] = {
7338 (char *) "self",(char *) "flags", NULL
7339 };
7340
7341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7344 arg2 = (long) SWIG_AsLong(obj1);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 {
7347 PyThreadState* __tstate = wxPyBeginAllowThreads();
7348 (arg1)->SetFlags(arg2);
7349
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 Py_INCREF(Py_None); resultobj = Py_None;
7354 return resultobj;
7355 fail:
7356 return NULL;
7357}
7358
7359
7360static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7361 PyObject *resultobj;
7362 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7363 bool result;
7364 PyObject * obj0 = 0 ;
7365 char *kwnames[] = {
7366 (char *) "self", NULL
7367 };
7368
7369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7375
7376 wxPyEndAllowThreads(__tstate);
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 {
7380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7381 }
7382 return resultobj;
7383 fail:
7384 return NULL;
7385}
7386
7387
7388static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj;
7390 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7391 bool result;
7392 PyObject * obj0 = 0 ;
7393 char *kwnames[] = {
7394 (char *) "self", NULL
7395 };
7396
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7403
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 {
7408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7409 }
7410 return resultobj;
7411 fail:
7412 return NULL;
7413}
7414
7415
7416static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7417 PyObject *resultobj;
7418 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7419 bool result;
7420 PyObject * obj0 = 0 ;
7421 char *kwnames[] = {
7422 (char *) "self", NULL
7423 };
7424
7425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7428 {
7429 PyThreadState* __tstate = wxPyBeginAllowThreads();
7430 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7431
7432 wxPyEndAllowThreads(__tstate);
7433 if (PyErr_Occurred()) SWIG_fail;
7434 }
7435 {
7436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7437 }
7438 return resultobj;
7439 fail:
7440 return NULL;
7441}
7442
7443
7444static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7445 PyObject *resultobj;
7446 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7447 bool result;
7448 PyObject * obj0 = 0 ;
7449 char *kwnames[] = {
7450 (char *) "self", NULL
7451 };
7452
7453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7456 {
7457 PyThreadState* __tstate = wxPyBeginAllowThreads();
7458 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7459
7460 wxPyEndAllowThreads(__tstate);
7461 if (PyErr_Occurred()) SWIG_fail;
7462 }
7463 {
7464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7465 }
7466 return resultobj;
7467 fail:
7468 return NULL;
7469}
7470
7471
7472static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7473 PyObject *resultobj;
7474 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7475 bool result;
7476 PyObject * obj0 = 0 ;
7477 char *kwnames[] = {
7478 (char *) "self", NULL
7479 };
7480
7481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7484 {
7485 PyThreadState* __tstate = wxPyBeginAllowThreads();
7486 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7487
7488 wxPyEndAllowThreads(__tstate);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 {
7492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7493 }
7494 return resultobj;
7495 fail:
7496 return NULL;
7497}
7498
7499
7500static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7501 PyObject *resultobj;
7502 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7503 bool result;
7504 PyObject * obj0 = 0 ;
7505 char *kwnames[] = {
7506 (char *) "self", NULL
7507 };
7508
7509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7512 {
7513 PyThreadState* __tstate = wxPyBeginAllowThreads();
7514 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7515
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 {
7520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7521 }
7522 return resultobj;
7523 fail:
7524 return NULL;
7525}
7526
7527
7528static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7529 PyObject *resultobj;
7530 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7531 bool result;
7532 PyObject * obj0 = 0 ;
7533 char *kwnames[] = {
7534 (char *) "self", NULL
7535 };
7536
7537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 {
7548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7549 }
7550 return resultobj;
7551 fail:
7552 return NULL;
7553}
7554
7555
7556static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
7557 PyObject *resultobj;
7558 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7559 long arg2 ;
7560 bool result;
7561 PyObject * obj0 = 0 ;
7562 PyObject * obj1 = 0 ;
7563 char *kwnames[] = {
7564 (char *) "self",(char *) "flag", NULL
7565 };
7566
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7570 arg2 = (long) SWIG_AsLong(obj1);
7571 if (PyErr_Occurred()) SWIG_fail;
7572 {
7573 PyThreadState* __tstate = wxPyBeginAllowThreads();
7574 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7575
7576 wxPyEndAllowThreads(__tstate);
7577 if (PyErr_Occurred()) SWIG_fail;
7578 }
7579 {
7580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7581 }
7582 return resultobj;
7583 fail:
7584 return NULL;
7585}
7586
7587
7588static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7589 PyObject *resultobj;
7590 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7591 wxColour *result;
7592 PyObject * obj0 = 0 ;
7593 char *kwnames[] = {
7594 (char *) "self", NULL
7595 };
7596
7597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 {
7603 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7604 result = (wxColour *) &_result_ref;
7605 }
7606
7607 wxPyEndAllowThreads(__tstate);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7611 return resultobj;
7612 fail:
7613 return NULL;
7614}
7615
7616
7617static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7618 PyObject *resultobj;
7619 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7620 wxColour *result;
7621 PyObject * obj0 = 0 ;
7622 char *kwnames[] = {
7623 (char *) "self", NULL
7624 };
7625
7626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 {
7632 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7633 result = (wxColour *) &_result_ref;
7634 }
7635
7636 wxPyEndAllowThreads(__tstate);
7637 if (PyErr_Occurred()) SWIG_fail;
7638 }
7639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7640 return resultobj;
7641 fail:
7642 return NULL;
7643}
7644
7645
7646static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7647 PyObject *resultobj;
7648 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7649 wxFont *result;
7650 PyObject * obj0 = 0 ;
7651 char *kwnames[] = {
7652 (char *) "self", NULL
7653 };
7654
7655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7658 {
7659 PyThreadState* __tstate = wxPyBeginAllowThreads();
7660 {
7661 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7662 result = (wxFont *) &_result_ref;
7663 }
7664
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 wxFont* resultptr = new wxFont(*result);
7670 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7671 }
7672 return resultobj;
7673 fail:
7674 return NULL;
7675}
7676
7677
7678static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
7679 PyObject *resultobj;
7680 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7681 int result;
7682 PyObject * obj0 = 0 ;
7683 char *kwnames[] = {
7684 (char *) "self", NULL
7685 };
7686
7687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7690 {
7691 PyThreadState* __tstate = wxPyBeginAllowThreads();
7692 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7693
7694 wxPyEndAllowThreads(__tstate);
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 resultobj = SWIG_FromInt((int)result);
7698 return resultobj;
7699 fail:
7700 return NULL;
7701}
7702
7703
7704static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
7705 PyObject *resultobj;
7706 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7707 wxArrayInt *result;
7708 PyObject * obj0 = 0 ;
7709 char *kwnames[] = {
7710 (char *) "self", NULL
7711 };
7712
7713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 {
7719 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7720 result = (wxArrayInt *) &_result_ref;
7721 }
7722
7723 wxPyEndAllowThreads(__tstate);
7724 if (PyErr_Occurred()) SWIG_fail;
7725 }
7726 {
7727 resultobj = PyList_New(0);
7728 size_t idx;
7729 for (idx = 0; idx < result->GetCount(); idx += 1) {
7730 PyObject* val = PyInt_FromLong( result->Item(idx) );
7731 PyList_Append(resultobj, val);
7732 Py_DECREF(val);
7733 }
7734 }
7735 return resultobj;
7736 fail:
7737 return NULL;
7738}
7739
7740
7741static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7742 PyObject *resultobj;
7743 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7744 long result;
7745 PyObject * obj0 = 0 ;
7746 char *kwnames[] = {
7747 (char *) "self", NULL
7748 };
7749
7750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7753 {
7754 PyThreadState* __tstate = wxPyBeginAllowThreads();
7755 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7756
7757 wxPyEndAllowThreads(__tstate);
7758 if (PyErr_Occurred()) SWIG_fail;
7759 }
7760 resultobj = SWIG_FromLong((long)result);
7761 return resultobj;
7762 fail:
7763 return NULL;
7764}
7765
7766
68e533f8
RD
7767static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7768 PyObject *resultobj;
7769 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7770 long result;
7771 PyObject * obj0 = 0 ;
7772 char *kwnames[] = {
7773 (char *) "self", NULL
7774 };
7775
7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7779 {
7780 PyThreadState* __tstate = wxPyBeginAllowThreads();
7781 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7782
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 resultobj = SWIG_FromLong((long)result);
7787 return resultobj;
7788 fail:
7789 return NULL;
7790}
7791
7792
d55e5bfc
RD
7793static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
7794 PyObject *resultobj;
7795 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7796 long result;
7797 PyObject * obj0 = 0 ;
7798 char *kwnames[] = {
7799 (char *) "self", NULL
7800 };
7801
7802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7805 {
7806 PyThreadState* __tstate = wxPyBeginAllowThreads();
7807 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7808
7809 wxPyEndAllowThreads(__tstate);
7810 if (PyErr_Occurred()) SWIG_fail;
7811 }
7812 resultobj = SWIG_FromLong((long)result);
7813 return resultobj;
7814 fail:
7815 return NULL;
7816}
7817
7818
7819static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
7820 PyObject *resultobj;
7821 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7822 long result;
7823 PyObject * obj0 = 0 ;
7824 char *kwnames[] = {
7825 (char *) "self", NULL
7826 };
7827
7828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7831 {
7832 PyThreadState* __tstate = wxPyBeginAllowThreads();
7833 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7834
7835 wxPyEndAllowThreads(__tstate);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 resultobj = SWIG_FromLong((long)result);
7839 return resultobj;
7840 fail:
7841 return NULL;
7842}
7843
7844
7845static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7846 PyObject *resultobj;
7847 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7848 bool result;
7849 PyObject * obj0 = 0 ;
7850 char *kwnames[] = {
7851 (char *) "self", NULL
7852 };
7853
7854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
7855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7857 {
7858 PyThreadState* __tstate = wxPyBeginAllowThreads();
7859 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
7860
7861 wxPyEndAllowThreads(__tstate);
7862 if (PyErr_Occurred()) SWIG_fail;
7863 }
7864 {
7865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7866 }
7867 return resultobj;
7868 fail:
7869 return NULL;
7870}
7871
7872
7873static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7874 PyObject *resultobj;
7875 wxTextAttr *arg1 = 0 ;
7876 wxTextAttr *arg2 = 0 ;
7877 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
7878 wxTextAttr result;
7879 PyObject * obj0 = 0 ;
7880 PyObject * obj1 = 0 ;
7881 PyObject * obj2 = 0 ;
7882 char *kwnames[] = {
7883 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
7884 };
7885
7886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
7887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7888 SWIG_POINTER_EXCEPTION | 0)) == -1)
7889 SWIG_fail;
7890 if (arg1 == NULL) {
7891 PyErr_SetString(PyExc_TypeError,"null reference");
7892 SWIG_fail;
7893 }
7894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
7895 SWIG_POINTER_EXCEPTION | 0)) == -1)
7896 SWIG_fail;
7897 if (arg2 == NULL) {
7898 PyErr_SetString(PyExc_TypeError,"null reference");
7899 SWIG_fail;
7900 }
7901 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
7902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
7906
7907 wxPyEndAllowThreads(__tstate);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 {
7911 wxTextAttr * resultptr;
7912 resultptr = new wxTextAttr((wxTextAttr &) result);
7913 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
7914 }
7915 return resultobj;
7916 fail:
7917 return NULL;
7918}
7919
7920
7921static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) {
7922 PyObject *obj;
7923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7924 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
7925 Py_INCREF(obj);
7926 return Py_BuildValue((char *)"");
7927}
7928static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7929 PyObject *resultobj;
7930 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17 7931 int arg2 = (int) -1 ;
d55e5bfc
RD
7932 wxString const &arg3_defvalue = wxPyEmptyString ;
7933 wxString *arg3 = (wxString *) &arg3_defvalue ;
7934 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7935 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7936 wxSize const &arg5_defvalue = wxDefaultSize ;
7937 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7938 long arg6 = (long) 0 ;
7939 wxValidator const &arg7_defvalue = wxDefaultValidator ;
7940 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
7941 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
7942 wxString *arg8 = (wxString *) &arg8_defvalue ;
7943 wxTextCtrl *result;
7944 bool temp3 = False ;
7945 wxPoint temp4 ;
7946 wxSize temp5 ;
7947 bool temp8 = False ;
7948 PyObject * obj0 = 0 ;
7949 PyObject * obj1 = 0 ;
7950 PyObject * obj2 = 0 ;
7951 PyObject * obj3 = 0 ;
7952 PyObject * obj4 = 0 ;
7953 PyObject * obj5 = 0 ;
7954 PyObject * obj6 = 0 ;
7955 PyObject * obj7 = 0 ;
7956 char *kwnames[] = {
7957 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
7958 };
7959
bfddbb17 7960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
7961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
7963 if (obj1) {
7964 arg2 = (int) SWIG_AsInt(obj1);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
d55e5bfc
RD
7967 if (obj2) {
7968 {
7969 arg3 = wxString_in_helper(obj2);
7970 if (arg3 == NULL) SWIG_fail;
7971 temp3 = True;
7972 }
7973 }
7974 if (obj3) {
7975 {
7976 arg4 = &temp4;
7977 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7978 }
7979 }
7980 if (obj4) {
7981 {
7982 arg5 = &temp5;
7983 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7984 }
7985 }
7986 if (obj5) {
7987 arg6 = (long) SWIG_AsLong(obj5);
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 if (obj6) {
7991 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7992 SWIG_POINTER_EXCEPTION | 0)) == -1)
7993 SWIG_fail;
7994 if (arg7 == NULL) {
7995 PyErr_SetString(PyExc_TypeError,"null reference");
7996 SWIG_fail;
7997 }
7998 }
7999 if (obj7) {
8000 {
8001 arg8 = wxString_in_helper(obj7);
8002 if (arg8 == NULL) SWIG_fail;
8003 temp8 = True;
8004 }
8005 }
8006 {
0439c23b 8007 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8008 PyThreadState* __tstate = wxPyBeginAllowThreads();
8009 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8010
8011 wxPyEndAllowThreads(__tstate);
110da5b0 8012 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 8013 }
b0f7404b 8014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
d55e5bfc
RD
8015 {
8016 if (temp3)
8017 delete arg3;
8018 }
8019 {
8020 if (temp8)
8021 delete arg8;
8022 }
8023 return resultobj;
8024 fail:
8025 {
8026 if (temp3)
8027 delete arg3;
8028 }
8029 {
8030 if (temp8)
8031 delete arg8;
8032 }
8033 return NULL;
8034}
8035
8036
8037static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
8038 PyObject *resultobj;
8039 wxTextCtrl *result;
8040 char *kwnames[] = {
8041 NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8045 {
0439c23b 8046 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8047 PyThreadState* __tstate = wxPyBeginAllowThreads();
8048 result = (wxTextCtrl *)new wxTextCtrl();
8049
8050 wxPyEndAllowThreads(__tstate);
110da5b0 8051 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 8052 }
b0f7404b 8053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
d55e5bfc
RD
8054 return resultobj;
8055 fail:
8056 return NULL;
8057}
8058
8059
8060static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8061 PyObject *resultobj;
8062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8063 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17 8064 int arg3 = (int) -1 ;
d55e5bfc
RD
8065 wxString const &arg4_defvalue = wxPyEmptyString ;
8066 wxString *arg4 = (wxString *) &arg4_defvalue ;
8067 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8068 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8069 wxSize const &arg6_defvalue = wxDefaultSize ;
8070 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8071 long arg7 = (long) 0 ;
8072 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8073 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8074 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8075 wxString *arg9 = (wxString *) &arg9_defvalue ;
8076 bool result;
8077 bool temp4 = False ;
8078 wxPoint temp5 ;
8079 wxSize temp6 ;
8080 bool temp9 = False ;
8081 PyObject * obj0 = 0 ;
8082 PyObject * obj1 = 0 ;
8083 PyObject * obj2 = 0 ;
8084 PyObject * obj3 = 0 ;
8085 PyObject * obj4 = 0 ;
8086 PyObject * obj5 = 0 ;
8087 PyObject * obj6 = 0 ;
8088 PyObject * obj7 = 0 ;
8089 PyObject * obj8 = 0 ;
8090 char *kwnames[] = {
8091 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8092 };
8093
bfddbb17 8094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d55e5bfc
RD
8095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8097 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
8099 if (obj2) {
8100 arg3 = (int) SWIG_AsInt(obj2);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
d55e5bfc
RD
8103 if (obj3) {
8104 {
8105 arg4 = wxString_in_helper(obj3);
8106 if (arg4 == NULL) SWIG_fail;
8107 temp4 = True;
8108 }
8109 }
8110 if (obj4) {
8111 {
8112 arg5 = &temp5;
8113 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8114 }
8115 }
8116 if (obj5) {
8117 {
8118 arg6 = &temp6;
8119 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8120 }
8121 }
8122 if (obj6) {
8123 arg7 = (long) SWIG_AsLong(obj6);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 if (obj7) {
8127 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8128 SWIG_POINTER_EXCEPTION | 0)) == -1)
8129 SWIG_fail;
8130 if (arg8 == NULL) {
8131 PyErr_SetString(PyExc_TypeError,"null reference");
8132 SWIG_fail;
8133 }
8134 }
8135 if (obj8) {
8136 {
8137 arg9 = wxString_in_helper(obj8);
8138 if (arg9 == NULL) SWIG_fail;
8139 temp9 = True;
8140 }
8141 }
8142 {
8143 PyThreadState* __tstate = wxPyBeginAllowThreads();
8144 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8145
8146 wxPyEndAllowThreads(__tstate);
8147 if (PyErr_Occurred()) SWIG_fail;
8148 }
8149 {
8150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8151 }
8152 {
8153 if (temp4)
8154 delete arg4;
8155 }
8156 {
8157 if (temp9)
8158 delete arg9;
8159 }
8160 return resultobj;
8161 fail:
8162 {
8163 if (temp4)
8164 delete arg4;
8165 }
8166 {
8167 if (temp9)
8168 delete arg9;
8169 }
8170 return NULL;
8171}
8172
8173
8174static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8175 PyObject *resultobj;
8176 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8177 wxString result;
8178 PyObject * obj0 = 0 ;
8179 char *kwnames[] = {
8180 (char *) "self", NULL
8181 };
8182
8183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8186 {
8187 PyThreadState* __tstate = wxPyBeginAllowThreads();
8188 result = ((wxTextCtrl const *)arg1)->GetValue();
8189
8190 wxPyEndAllowThreads(__tstate);
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 {
8194#if wxUSE_UNICODE
8195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8196#else
8197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8198#endif
8199 }
8200 return resultobj;
8201 fail:
8202 return NULL;
8203}
8204
8205
8206static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8207 PyObject *resultobj;
8208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8209 wxString *arg2 = 0 ;
8210 bool temp2 = False ;
8211 PyObject * obj0 = 0 ;
8212 PyObject * obj1 = 0 ;
8213 char *kwnames[] = {
8214 (char *) "self",(char *) "value", NULL
8215 };
8216
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8220 {
8221 arg2 = wxString_in_helper(obj1);
8222 if (arg2 == NULL) SWIG_fail;
8223 temp2 = True;
8224 }
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 (arg1)->SetValue((wxString const &)*arg2);
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 Py_INCREF(Py_None); resultobj = Py_None;
8233 {
8234 if (temp2)
8235 delete arg2;
8236 }
8237 return resultobj;
8238 fail:
8239 {
8240 if (temp2)
8241 delete arg2;
8242 }
8243 return NULL;
8244}
8245
8246
8247static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8248 PyObject *resultobj;
8249 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8250 long arg2 ;
8251 long arg3 ;
8252 wxString result;
8253 PyObject * obj0 = 0 ;
8254 PyObject * obj1 = 0 ;
8255 PyObject * obj2 = 0 ;
8256 char *kwnames[] = {
8257 (char *) "self",(char *) "from",(char *) "to", NULL
8258 };
8259
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) 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 arg3 = (long) SWIG_AsLong(obj2);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 {
8268 PyThreadState* __tstate = wxPyBeginAllowThreads();
8269 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8270
8271 wxPyEndAllowThreads(__tstate);
8272 if (PyErr_Occurred()) SWIG_fail;
8273 }
8274 {
8275#if wxUSE_UNICODE
8276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8277#else
8278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8279#endif
8280 }
8281 return resultobj;
8282 fail:
8283 return NULL;
8284}
8285
8286
8287static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8288 PyObject *resultobj;
8289 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8290 long arg2 ;
8291 int result;
8292 PyObject * obj0 = 0 ;
8293 PyObject * obj1 = 0 ;
8294 char *kwnames[] = {
8295 (char *) "self",(char *) "lineNo", NULL
8296 };
8297
8298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8301 arg2 = (long) SWIG_AsLong(obj1);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 resultobj = SWIG_FromInt((int)result);
8311 return resultobj;
8312 fail:
8313 return NULL;
8314}
8315
8316
8317static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
8318 PyObject *resultobj;
8319 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8320 long arg2 ;
8321 wxString result;
8322 PyObject * obj0 = 0 ;
8323 PyObject * obj1 = 0 ;
8324 char *kwnames[] = {
8325 (char *) "self",(char *) "lineNo", NULL
8326 };
8327
8328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8331 arg2 = (long) SWIG_AsLong(obj1);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 {
8334 PyThreadState* __tstate = wxPyBeginAllowThreads();
8335 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8336
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 {
8341#if wxUSE_UNICODE
8342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8343#else
8344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8345#endif
8346 }
8347 return resultobj;
8348 fail:
8349 return NULL;
8350}
8351
8352
8353static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
8354 PyObject *resultobj;
8355 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8356 int result;
8357 PyObject * obj0 = 0 ;
8358 char *kwnames[] = {
8359 (char *) "self", NULL
8360 };
8361
8362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8365 {
8366 PyThreadState* __tstate = wxPyBeginAllowThreads();
8367 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8368
8369 wxPyEndAllowThreads(__tstate);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 }
8372 resultobj = SWIG_FromInt((int)result);
8373 return resultobj;
8374 fail:
8375 return NULL;
8376}
8377
8378
8379static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
8380 PyObject *resultobj;
8381 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8382 bool result;
8383 PyObject * obj0 = 0 ;
8384 char *kwnames[] = {
8385 (char *) "self", NULL
8386 };
8387
8388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8391 {
8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
8393 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8394
8395 wxPyEndAllowThreads(__tstate);
8396 if (PyErr_Occurred()) SWIG_fail;
8397 }
8398 {
8399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8400 }
8401 return resultobj;
8402 fail:
8403 return NULL;
8404}
8405
8406
8407static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8408 PyObject *resultobj;
8409 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8410 bool result;
8411 PyObject * obj0 = 0 ;
8412 char *kwnames[] = {
8413 (char *) "self", NULL
8414 };
8415
8416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8419 {
8420 PyThreadState* __tstate = wxPyBeginAllowThreads();
8421 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8422
8423 wxPyEndAllowThreads(__tstate);
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 {
8427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8428 }
8429 return resultobj;
8430 fail:
8431 return NULL;
8432}
8433
8434
8435static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8436 PyObject *resultobj;
8437 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8438 bool result;
8439 PyObject * obj0 = 0 ;
8440 char *kwnames[] = {
8441 (char *) "self", NULL
8442 };
8443
8444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8447 {
8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
8449 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8450
8451 wxPyEndAllowThreads(__tstate);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 {
8455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8456 }
8457 return resultobj;
8458 fail:
8459 return NULL;
8460}
8461
8462
8463static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8464 PyObject *resultobj;
8465 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8466 bool result;
8467 PyObject * obj0 = 0 ;
8468 char *kwnames[] = {
8469 (char *) "self", NULL
8470 };
8471
8472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8475 {
8476 PyThreadState* __tstate = wxPyBeginAllowThreads();
8477 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8478
8479 wxPyEndAllowThreads(__tstate);
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 {
8483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8484 }
8485 return resultobj;
8486 fail:
8487 return NULL;
8488}
8489
8490
8491static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8492 PyObject *resultobj;
8493 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8494 long *arg2 = (long *) 0 ;
8495 long *arg3 = (long *) 0 ;
8496 long temp2 ;
8497 long temp3 ;
8498 PyObject * obj0 = 0 ;
8499 char *kwnames[] = {
8500 (char *) "self", NULL
8501 };
8502
8503 arg2 = &temp2;
8504 arg3 = &temp3;
8505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8508 {
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8511
8512 wxPyEndAllowThreads(__tstate);
8513 if (PyErr_Occurred()) SWIG_fail;
8514 }
8515 Py_INCREF(Py_None); resultobj = Py_None;
8516 {
8517 PyObject *o = PyInt_FromLong((long) (*arg2));
8518 resultobj = t_output_helper(resultobj,o);
8519 }
8520 {
8521 PyObject *o = PyInt_FromLong((long) (*arg3));
8522 resultobj = t_output_helper(resultobj,o);
8523 }
8524 return resultobj;
8525 fail:
8526 return NULL;
8527}
8528
8529
8530static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8531 PyObject *resultobj;
8532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8533 wxString result;
8534 PyObject * obj0 = 0 ;
8535 char *kwnames[] = {
8536 (char *) "self", NULL
8537 };
8538
8539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8542 {
8543 PyThreadState* __tstate = wxPyBeginAllowThreads();
8544 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8545
8546 wxPyEndAllowThreads(__tstate);
8547 if (PyErr_Occurred()) SWIG_fail;
8548 }
8549 {
8550#if wxUSE_UNICODE
8551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8552#else
8553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8554#endif
8555 }
8556 return resultobj;
8557 fail:
8558 return NULL;
8559}
8560
8561
8562static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj;
8564 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8565 PyObject * obj0 = 0 ;
8566 char *kwnames[] = {
8567 (char *) "self", NULL
8568 };
8569
8570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8573 {
8574 PyThreadState* __tstate = wxPyBeginAllowThreads();
8575 (arg1)->Clear();
8576
8577 wxPyEndAllowThreads(__tstate);
8578 if (PyErr_Occurred()) SWIG_fail;
8579 }
8580 Py_INCREF(Py_None); resultobj = Py_None;
8581 return resultobj;
8582 fail:
8583 return NULL;
8584}
8585
8586
8587static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj;
8589 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8590 long arg2 ;
8591 long arg3 ;
8592 wxString *arg4 = 0 ;
8593 bool temp4 = False ;
8594 PyObject * obj0 = 0 ;
8595 PyObject * obj1 = 0 ;
8596 PyObject * obj2 = 0 ;
8597 PyObject * obj3 = 0 ;
8598 char *kwnames[] = {
8599 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8600 };
8601
8602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8605 arg2 = (long) SWIG_AsLong(obj1);
8606 if (PyErr_Occurred()) SWIG_fail;
8607 arg3 = (long) SWIG_AsLong(obj2);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 {
8610 arg4 = wxString_in_helper(obj3);
8611 if (arg4 == NULL) SWIG_fail;
8612 temp4 = True;
8613 }
8614 {
8615 PyThreadState* __tstate = wxPyBeginAllowThreads();
8616 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8617
8618 wxPyEndAllowThreads(__tstate);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 Py_INCREF(Py_None); resultobj = Py_None;
8622 {
8623 if (temp4)
8624 delete arg4;
8625 }
8626 return resultobj;
8627 fail:
8628 {
8629 if (temp4)
8630 delete arg4;
8631 }
8632 return NULL;
8633}
8634
8635
8636static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8637 PyObject *resultobj;
8638 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8639 long arg2 ;
8640 long arg3 ;
8641 PyObject * obj0 = 0 ;
8642 PyObject * obj1 = 0 ;
8643 PyObject * obj2 = 0 ;
8644 char *kwnames[] = {
8645 (char *) "self",(char *) "from",(char *) "to", NULL
8646 };
8647
8648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8651 arg2 = (long) SWIG_AsLong(obj1);
8652 if (PyErr_Occurred()) SWIG_fail;
8653 arg3 = (long) SWIG_AsLong(obj2);
8654 if (PyErr_Occurred()) SWIG_fail;
8655 {
8656 PyThreadState* __tstate = wxPyBeginAllowThreads();
8657 (arg1)->Remove(arg2,arg3);
8658
8659 wxPyEndAllowThreads(__tstate);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 Py_INCREF(Py_None); resultobj = Py_None;
8663 return resultobj;
8664 fail:
8665 return NULL;
8666}
8667
8668
8669static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8670 PyObject *resultobj;
8671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8672 wxString *arg2 = 0 ;
8673 bool result;
8674 bool temp2 = False ;
8675 PyObject * obj0 = 0 ;
8676 PyObject * obj1 = 0 ;
8677 char *kwnames[] = {
8678 (char *) "self",(char *) "file", NULL
8679 };
8680
8681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8684 {
8685 arg2 = wxString_in_helper(obj1);
8686 if (arg2 == NULL) SWIG_fail;
8687 temp2 = True;
8688 }
8689 {
8690 PyThreadState* __tstate = wxPyBeginAllowThreads();
8691 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8692
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 {
8697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8698 }
8699 {
8700 if (temp2)
8701 delete arg2;
8702 }
8703 return resultobj;
8704 fail:
8705 {
8706 if (temp2)
8707 delete arg2;
8708 }
8709 return NULL;
8710}
8711
8712
8713static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8714 PyObject *resultobj;
8715 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8716 wxString const &arg2_defvalue = wxPyEmptyString ;
8717 wxString *arg2 = (wxString *) &arg2_defvalue ;
8718 bool result;
8719 bool temp2 = False ;
8720 PyObject * obj0 = 0 ;
8721 PyObject * obj1 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "self",(char *) "file", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8729 if (obj1) {
8730 {
8731 arg2 = wxString_in_helper(obj1);
8732 if (arg2 == NULL) SWIG_fail;
8733 temp2 = True;
8734 }
8735 }
8736 {
8737 PyThreadState* __tstate = wxPyBeginAllowThreads();
8738 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8739
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 {
8744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8745 }
8746 {
8747 if (temp2)
8748 delete arg2;
8749 }
8750 return resultobj;
8751 fail:
8752 {
8753 if (temp2)
8754 delete arg2;
8755 }
8756 return NULL;
8757}
8758
8759
8760static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
8761 PyObject *resultobj;
8762 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8763 PyObject * obj0 = 0 ;
8764 char *kwnames[] = {
8765 (char *) "self", NULL
8766 };
8767
8768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8771 {
8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
8773 (arg1)->MarkDirty();
8774
8775 wxPyEndAllowThreads(__tstate);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 Py_INCREF(Py_None); resultobj = Py_None;
8779 return resultobj;
8780 fail:
8781 return NULL;
8782}
8783
8784
8785static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj;
8787 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8788 PyObject * obj0 = 0 ;
8789 char *kwnames[] = {
8790 (char *) "self", NULL
8791 };
8792
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8796 {
8797 PyThreadState* __tstate = wxPyBeginAllowThreads();
8798 (arg1)->DiscardEdits();
8799
8800 wxPyEndAllowThreads(__tstate);
8801 if (PyErr_Occurred()) SWIG_fail;
8802 }
8803 Py_INCREF(Py_None); resultobj = Py_None;
8804 return resultobj;
8805 fail:
8806 return NULL;
8807}
8808
8809
8810static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8811 PyObject *resultobj;
8812 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8813 unsigned long arg2 ;
8814 PyObject * obj0 = 0 ;
8815 PyObject * obj1 = 0 ;
8816 char *kwnames[] = {
8817 (char *) "self",(char *) "len", NULL
8818 };
8819
8820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8823 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
8824 if (PyErr_Occurred()) SWIG_fail;
8825 {
8826 PyThreadState* __tstate = wxPyBeginAllowThreads();
8827 (arg1)->SetMaxLength(arg2);
8828
8829 wxPyEndAllowThreads(__tstate);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 Py_INCREF(Py_None); resultobj = Py_None;
8833 return resultobj;
8834 fail:
8835 return NULL;
8836}
8837
8838
8839static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj;
8841 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8842 wxString *arg2 = 0 ;
8843 bool temp2 = False ;
8844 PyObject * obj0 = 0 ;
8845 PyObject * obj1 = 0 ;
8846 char *kwnames[] = {
8847 (char *) "self",(char *) "text", NULL
8848 };
8849
8850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
8851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8853 {
8854 arg2 = wxString_in_helper(obj1);
8855 if (arg2 == NULL) SWIG_fail;
8856 temp2 = True;
8857 }
8858 {
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 (arg1)->WriteText((wxString const &)*arg2);
8861
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 Py_INCREF(Py_None); resultobj = Py_None;
8866 {
8867 if (temp2)
8868 delete arg2;
8869 }
8870 return resultobj;
8871 fail:
8872 {
8873 if (temp2)
8874 delete arg2;
8875 }
8876 return NULL;
8877}
8878
8879
8880static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
8881 PyObject *resultobj;
8882 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8883 wxString *arg2 = 0 ;
8884 bool temp2 = False ;
8885 PyObject * obj0 = 0 ;
8886 PyObject * obj1 = 0 ;
8887 char *kwnames[] = {
8888 (char *) "self",(char *) "text", NULL
8889 };
8890
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
8892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8894 {
8895 arg2 = wxString_in_helper(obj1);
8896 if (arg2 == NULL) SWIG_fail;
8897 temp2 = True;
8898 }
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 (arg1)->AppendText((wxString const &)*arg2);
8902
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 Py_INCREF(Py_None); resultobj = Py_None;
8907 {
8908 if (temp2)
8909 delete arg2;
8910 }
8911 return resultobj;
8912 fail:
8913 {
8914 if (temp2)
8915 delete arg2;
8916 }
8917 return NULL;
8918}
8919
8920
8921static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject *resultobj;
8923 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8924 wxKeyEvent *arg2 = 0 ;
8925 bool result;
8926 PyObject * obj0 = 0 ;
8927 PyObject * obj1 = 0 ;
8928 char *kwnames[] = {
8929 (char *) "self",(char *) "event", NULL
8930 };
8931
8932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
8933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
8936 SWIG_POINTER_EXCEPTION | 0)) == -1)
8937 SWIG_fail;
8938 if (arg2 == NULL) {
8939 PyErr_SetString(PyExc_TypeError,"null reference");
8940 SWIG_fail;
8941 }
8942 {
8943 PyThreadState* __tstate = wxPyBeginAllowThreads();
8944 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
8945
8946 wxPyEndAllowThreads(__tstate);
8947 if (PyErr_Occurred()) SWIG_fail;
8948 }
8949 {
8950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8951 }
8952 return resultobj;
8953 fail:
8954 return NULL;
8955}
8956
8957
8958static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8959 PyObject *resultobj;
8960 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8961 long arg2 ;
8962 long arg3 ;
8963 wxTextAttr *arg4 = 0 ;
8964 bool result;
8965 PyObject * obj0 = 0 ;
8966 PyObject * obj1 = 0 ;
8967 PyObject * obj2 = 0 ;
8968 PyObject * obj3 = 0 ;
8969 char *kwnames[] = {
8970 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
8971 };
8972
8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8976 arg2 = (long) SWIG_AsLong(obj1);
8977 if (PyErr_Occurred()) SWIG_fail;
8978 arg3 = (long) SWIG_AsLong(obj2);
8979 if (PyErr_Occurred()) SWIG_fail;
8980 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
8981 SWIG_POINTER_EXCEPTION | 0)) == -1)
8982 SWIG_fail;
8983 if (arg4 == NULL) {
8984 PyErr_SetString(PyExc_TypeError,"null reference");
8985 SWIG_fail;
8986 }
8987 {
8988 PyThreadState* __tstate = wxPyBeginAllowThreads();
8989 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
8990
8991 wxPyEndAllowThreads(__tstate);
8992 if (PyErr_Occurred()) SWIG_fail;
8993 }
8994 {
8995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8996 }
8997 return resultobj;
8998 fail:
8999 return NULL;
9000}
9001
9002
9003static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9004 PyObject *resultobj;
9005 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9006 long arg2 ;
9007 wxTextAttr *arg3 = 0 ;
9008 bool result;
9009 PyObject * obj0 = 0 ;
9010 PyObject * obj1 = 0 ;
9011 PyObject * obj2 = 0 ;
9012 char *kwnames[] = {
9013 (char *) "self",(char *) "position",(char *) "style", NULL
9014 };
9015
9016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9019 arg2 = (long) SWIG_AsLong(obj1);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9022 SWIG_POINTER_EXCEPTION | 0)) == -1)
9023 SWIG_fail;
9024 if (arg3 == NULL) {
9025 PyErr_SetString(PyExc_TypeError,"null reference");
9026 SWIG_fail;
9027 }
9028 {
9029 PyThreadState* __tstate = wxPyBeginAllowThreads();
9030 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9031
9032 wxPyEndAllowThreads(__tstate);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 }
9035 {
9036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9037 }
9038 return resultobj;
9039 fail:
9040 return NULL;
9041}
9042
9043
9044static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9045 PyObject *resultobj;
9046 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9047 wxTextAttr *arg2 = 0 ;
9048 bool result;
9049 PyObject * obj0 = 0 ;
9050 PyObject * obj1 = 0 ;
9051 char *kwnames[] = {
9052 (char *) "self",(char *) "style", NULL
9053 };
9054
9055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9059 SWIG_POINTER_EXCEPTION | 0)) == -1)
9060 SWIG_fail;
9061 if (arg2 == NULL) {
9062 PyErr_SetString(PyExc_TypeError,"null reference");
9063 SWIG_fail;
9064 }
9065 {
9066 PyThreadState* __tstate = wxPyBeginAllowThreads();
9067 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9068
9069 wxPyEndAllowThreads(__tstate);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 {
9073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9074 }
9075 return resultobj;
9076 fail:
9077 return NULL;
9078}
9079
9080
9081static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9082 PyObject *resultobj;
9083 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9084 wxTextAttr *result;
9085 PyObject * obj0 = 0 ;
9086 char *kwnames[] = {
9087 (char *) "self", NULL
9088 };
9089
9090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9093 {
9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
9095 {
9096 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9097 result = (wxTextAttr *) &_result_ref;
9098 }
9099
9100 wxPyEndAllowThreads(__tstate);
9101 if (PyErr_Occurred()) SWIG_fail;
9102 }
9103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9104 return resultobj;
9105 fail:
9106 return NULL;
9107}
9108
9109
9110static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9111 PyObject *resultobj;
9112 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9113 long arg2 ;
9114 long arg3 ;
9115 long result;
9116 PyObject * obj0 = 0 ;
9117 PyObject * obj1 = 0 ;
9118 PyObject * obj2 = 0 ;
9119 char *kwnames[] = {
9120 (char *) "self",(char *) "x",(char *) "y", NULL
9121 };
9122
9123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9126 arg2 = (long) SWIG_AsLong(obj1);
9127 if (PyErr_Occurred()) SWIG_fail;
9128 arg3 = (long) SWIG_AsLong(obj2);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9133
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_FromLong((long)result);
9138 return resultobj;
9139 fail:
9140 return NULL;
9141}
9142
9143
9144static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9145 PyObject *resultobj;
9146 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9147 long arg2 ;
9148 long *arg3 = (long *) 0 ;
9149 long *arg4 = (long *) 0 ;
9150 long temp3 ;
9151 long temp4 ;
9152 PyObject * obj0 = 0 ;
9153 PyObject * obj1 = 0 ;
9154 char *kwnames[] = {
9155 (char *) "self",(char *) "pos", NULL
9156 };
9157
9158 arg3 = &temp3;
9159 arg4 = &temp4;
9160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9163 arg2 = (long) SWIG_AsLong(obj1);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 {
9166 PyThreadState* __tstate = wxPyBeginAllowThreads();
9167 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9168
9169 wxPyEndAllowThreads(__tstate);
9170 if (PyErr_Occurred()) SWIG_fail;
9171 }
9172 Py_INCREF(Py_None); resultobj = Py_None;
9173 {
9174 PyObject *o = PyInt_FromLong((long) (*arg3));
9175 resultobj = t_output_helper(resultobj,o);
9176 }
9177 {
9178 PyObject *o = PyInt_FromLong((long) (*arg4));
9179 resultobj = t_output_helper(resultobj,o);
9180 }
9181 return resultobj;
9182 fail:
9183 return NULL;
9184}
9185
9186
9187static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9188 PyObject *resultobj;
9189 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9190 long arg2 ;
9191 PyObject * obj0 = 0 ;
9192 PyObject * obj1 = 0 ;
9193 char *kwnames[] = {
9194 (char *) "self",(char *) "pos", NULL
9195 };
9196
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9200 arg2 = (long) SWIG_AsLong(obj1);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 {
9203 PyThreadState* __tstate = wxPyBeginAllowThreads();
9204 (arg1)->ShowPosition(arg2);
9205
9206 wxPyEndAllowThreads(__tstate);
9207 if (PyErr_Occurred()) SWIG_fail;
9208 }
9209 Py_INCREF(Py_None); resultobj = Py_None;
9210 return resultobj;
9211 fail:
9212 return NULL;
9213}
9214
9215
9216static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj;
9218 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9219 wxPoint *arg2 = 0 ;
9220 long *arg3 = (long *) 0 ;
9221 long *arg4 = (long *) 0 ;
9222 int result;
9223 wxPoint temp2 ;
9224 long temp3 ;
9225 long temp4 ;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 char *kwnames[] = {
9229 (char *) "self",(char *) "pt", NULL
9230 };
9231
9232 arg3 = &temp3;
9233 arg4 = &temp4;
9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9237 {
9238 arg2 = &temp2;
9239 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9240 }
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9244
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_FromInt((int)result);
9249 {
9250 PyObject *o = PyInt_FromLong((long) (*arg3));
9251 resultobj = t_output_helper(resultobj,o);
9252 }
9253 {
9254 PyObject *o = PyInt_FromLong((long) (*arg4));
9255 resultobj = t_output_helper(resultobj,o);
9256 }
9257 return resultobj;
9258 fail:
9259 return NULL;
9260}
9261
9262
4896ac9e
RD
9263static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *self, PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj;
9265 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9266 wxPoint *arg2 = 0 ;
9267 long *arg3 = (long *) 0 ;
9268 int result;
9269 wxPoint temp2 ;
9270 long temp3 ;
9271 PyObject * obj0 = 0 ;
9272 PyObject * obj1 = 0 ;
9273 char *kwnames[] = {
9274 (char *) "self",(char *) "pt", NULL
9275 };
9276
9277 arg3 = &temp3;
9278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9281 {
9282 arg2 = &temp2;
9283 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9284 }
9285 {
9286 PyThreadState* __tstate = wxPyBeginAllowThreads();
9287 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9288
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 resultobj = SWIG_FromInt((int)result);
9293 {
9294 PyObject *o = PyInt_FromLong((long) (*arg3));
9295 resultobj = t_output_helper(resultobj,o);
9296 }
9297 return resultobj;
9298 fail:
9299 return NULL;
9300}
9301
9302
d55e5bfc
RD
9303static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9304 PyObject *resultobj;
9305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9306 PyObject * obj0 = 0 ;
9307 char *kwnames[] = {
9308 (char *) "self", NULL
9309 };
9310
9311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9314 {
9315 PyThreadState* __tstate = wxPyBeginAllowThreads();
9316 (arg1)->Copy();
9317
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 Py_INCREF(Py_None); resultobj = Py_None;
9322 return resultobj;
9323 fail:
9324 return NULL;
9325}
9326
9327
9328static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
9329 PyObject *resultobj;
9330 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9331 PyObject * obj0 = 0 ;
9332 char *kwnames[] = {
9333 (char *) "self", NULL
9334 };
9335
9336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 (arg1)->Cut();
9342
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 Py_INCREF(Py_None); resultobj = Py_None;
9347 return resultobj;
9348 fail:
9349 return NULL;
9350}
9351
9352
9353static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj;
9355 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9356 PyObject * obj0 = 0 ;
9357 char *kwnames[] = {
9358 (char *) "self", NULL
9359 };
9360
9361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 (arg1)->Paste();
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 Py_INCREF(Py_None); resultobj = Py_None;
9372 return resultobj;
9373 fail:
9374 return NULL;
9375}
9376
9377
9378static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
9379 PyObject *resultobj;
9380 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9381 bool result;
9382 PyObject * obj0 = 0 ;
9383 char *kwnames[] = {
9384 (char *) "self", NULL
9385 };
9386
9387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",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 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9393
9394 wxPyEndAllowThreads(__tstate);
9395 if (PyErr_Occurred()) SWIG_fail;
9396 }
9397 {
9398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9399 }
9400 return resultobj;
9401 fail:
9402 return NULL;
9403}
9404
9405
9406static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
9407 PyObject *resultobj;
9408 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9409 bool result;
9410 PyObject * obj0 = 0 ;
9411 char *kwnames[] = {
9412 (char *) "self", NULL
9413 };
9414
9415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9418 {
9419 PyThreadState* __tstate = wxPyBeginAllowThreads();
9420 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9421
9422 wxPyEndAllowThreads(__tstate);
9423 if (PyErr_Occurred()) SWIG_fail;
9424 }
9425 {
9426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9427 }
9428 return resultobj;
9429 fail:
9430 return NULL;
9431}
9432
9433
9434static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
9435 PyObject *resultobj;
9436 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9437 bool result;
9438 PyObject * obj0 = 0 ;
9439 char *kwnames[] = {
9440 (char *) "self", NULL
9441 };
9442
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9446 {
9447 PyThreadState* __tstate = wxPyBeginAllowThreads();
9448 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9449
9450 wxPyEndAllowThreads(__tstate);
9451 if (PyErr_Occurred()) SWIG_fail;
9452 }
9453 {
9454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9455 }
9456 return resultobj;
9457 fail:
9458 return NULL;
9459}
9460
9461
9462static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
9463 PyObject *resultobj;
9464 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9465 PyObject * obj0 = 0 ;
9466 char *kwnames[] = {
9467 (char *) "self", NULL
9468 };
9469
9470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 (arg1)->Undo();
9476
9477 wxPyEndAllowThreads(__tstate);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 }
9480 Py_INCREF(Py_None); resultobj = Py_None;
9481 return resultobj;
9482 fail:
9483 return NULL;
9484}
9485
9486
9487static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
9488 PyObject *resultobj;
9489 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9490 PyObject * obj0 = 0 ;
9491 char *kwnames[] = {
9492 (char *) "self", NULL
9493 };
9494
9495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 (arg1)->Redo();
9501
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 Py_INCREF(Py_None); resultobj = Py_None;
9506 return resultobj;
9507 fail:
9508 return NULL;
9509}
9510
9511
9512static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
9513 PyObject *resultobj;
9514 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9515 bool result;
9516 PyObject * obj0 = 0 ;
9517 char *kwnames[] = {
9518 (char *) "self", NULL
9519 };
9520
9521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9527
9528 wxPyEndAllowThreads(__tstate);
9529 if (PyErr_Occurred()) SWIG_fail;
9530 }
9531 {
9532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9533 }
9534 return resultobj;
9535 fail:
9536 return NULL;
9537}
9538
9539
9540static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj;
9542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9543 bool result;
9544 PyObject * obj0 = 0 ;
9545 char *kwnames[] = {
9546 (char *) "self", NULL
9547 };
9548
9549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",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 = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 {
9560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9561 }
9562 return resultobj;
9563 fail:
9564 return NULL;
9565}
9566
9567
9568static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9569 PyObject *resultobj;
9570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9571 long arg2 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj1 = 0 ;
9574 char *kwnames[] = {
9575 (char *) "self",(char *) "pos", NULL
9576 };
9577
9578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) 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 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 (arg1)->SetInsertionPoint(arg2);
9586
9587 wxPyEndAllowThreads(__tstate);
9588 if (PyErr_Occurred()) SWIG_fail;
9589 }
9590 Py_INCREF(Py_None); resultobj = Py_None;
9591 return resultobj;
9592 fail:
9593 return NULL;
9594}
9595
9596
9597static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj;
9599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9600 PyObject * obj0 = 0 ;
9601 char *kwnames[] = {
9602 (char *) "self", NULL
9603 };
9604
9605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 (arg1)->SetInsertionPointEnd();
9611
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 Py_INCREF(Py_None); resultobj = Py_None;
9616 return resultobj;
9617 fail:
9618 return NULL;
9619}
9620
9621
9622static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj;
9624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9625 long result;
9626 PyObject * obj0 = 0 ;
9627 char *kwnames[] = {
9628 (char *) "self", NULL
9629 };
9630
9631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9637
9638 wxPyEndAllowThreads(__tstate);
9639 if (PyErr_Occurred()) SWIG_fail;
9640 }
9641 resultobj = SWIG_FromLong((long)result);
9642 return resultobj;
9643 fail:
9644 return NULL;
9645}
9646
9647
9648static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9649 PyObject *resultobj;
9650 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9651 long result;
9652 PyObject * obj0 = 0 ;
9653 char *kwnames[] = {
9654 (char *) "self", NULL
9655 };
9656
9657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9660 {
9661 PyThreadState* __tstate = wxPyBeginAllowThreads();
9662 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9663
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 resultobj = SWIG_FromLong((long)result);
9668 return resultobj;
9669 fail:
9670 return NULL;
9671}
9672
9673
9674static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9675 PyObject *resultobj;
9676 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9677 long arg2 ;
9678 long arg3 ;
9679 PyObject * obj0 = 0 ;
9680 PyObject * obj1 = 0 ;
9681 PyObject * obj2 = 0 ;
9682 char *kwnames[] = {
9683 (char *) "self",(char *) "from",(char *) "to", NULL
9684 };
9685
9686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9689 arg2 = (long) SWIG_AsLong(obj1);
9690 if (PyErr_Occurred()) SWIG_fail;
9691 arg3 = (long) SWIG_AsLong(obj2);
9692 if (PyErr_Occurred()) SWIG_fail;
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 (arg1)->SetSelection(arg2,arg3);
9696
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 Py_INCREF(Py_None); resultobj = Py_None;
9701 return resultobj;
9702 fail:
9703 return NULL;
9704}
9705
9706
9707static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9708 PyObject *resultobj;
9709 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9710 PyObject * obj0 = 0 ;
9711 char *kwnames[] = {
9712 (char *) "self", NULL
9713 };
9714
9715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9718 {
9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
9720 (arg1)->SelectAll();
9721
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 Py_INCREF(Py_None); resultobj = Py_None;
9726 return resultobj;
9727 fail:
9728 return NULL;
9729}
9730
9731
9732static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj;
9734 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9735 bool arg2 ;
9736 PyObject * obj0 = 0 ;
9737 PyObject * obj1 = 0 ;
9738 char *kwnames[] = {
9739 (char *) "self",(char *) "editable", NULL
9740 };
9741
9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9745 arg2 = (bool) SWIG_AsBool(obj1);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 {
9748 PyThreadState* __tstate = wxPyBeginAllowThreads();
9749 (arg1)->SetEditable(arg2);
9750
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 Py_INCREF(Py_None); resultobj = Py_None;
9755 return resultobj;
9756 fail:
9757 return NULL;
9758}
9759
9760
9761static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
9762 PyObject *resultobj;
9763 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9764 wxString *arg2 = 0 ;
9765 bool temp2 = False ;
9766 PyObject * obj0 = 0 ;
9767 PyObject * obj1 = 0 ;
9768 char *kwnames[] = {
9769 (char *) "self",(char *) "text", NULL
9770 };
9771
9772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9775 {
9776 arg2 = wxString_in_helper(obj1);
9777 if (arg2 == NULL) SWIG_fail;
9778 temp2 = True;
9779 }
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9783
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 Py_INCREF(Py_None); resultobj = Py_None;
9788 {
9789 if (temp2)
9790 delete arg2;
9791 }
9792 return resultobj;
9793 fail:
9794 {
9795 if (temp2)
9796 delete arg2;
9797 }
9798 return NULL;
9799}
9800
9801
9802static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9805 long arg2 ;
9806 long arg3 ;
9807 wxString result;
9808 PyObject * obj0 = 0 ;
9809 PyObject * obj1 = 0 ;
9810 PyObject * obj2 = 0 ;
9811 char *kwnames[] = {
9812 (char *) "self",(char *) "from",(char *) "to", NULL
9813 };
9814
9815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9818 arg2 = (long) SWIG_AsLong(obj1);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 arg3 = (long) SWIG_AsLong(obj2);
9821 if (PyErr_Occurred()) SWIG_fail;
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 result = wxTextCtrl_GetString(arg1,arg2,arg3);
9825
9826 wxPyEndAllowThreads(__tstate);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 {
9830#if wxUSE_UNICODE
9831 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9832#else
9833 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9834#endif
9835 }
9836 return resultobj;
9837 fail:
9838 return NULL;
9839}
9840
9841
f20a2e1f
RD
9842static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj;
9844 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
9845 wxVisualAttributes result;
9846 PyObject * obj0 = 0 ;
9847 char *kwnames[] = {
9848 (char *) "variant", NULL
9849 };
9850
9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
9852 if (obj0) {
9853 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 {
0439c23b 9857 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
9860
9861 wxPyEndAllowThreads(__tstate);
110da5b0 9862 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
9863 }
9864 {
9865 wxVisualAttributes * resultptr;
9866 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
9867 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
9868 }
9869 return resultobj;
9870 fail:
9871 return NULL;
9872}
9873
9874
d55e5bfc
RD
9875static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) {
9876 PyObject *obj;
9877 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9878 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
9879 Py_INCREF(obj);
9880 return Py_BuildValue((char *)"");
9881}
9882static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj;
9884 int arg1 ;
9885 wxMouseEvent *arg2 = 0 ;
9886 long arg3 ;
9887 long arg4 ;
9888 wxTextUrlEvent *result;
9889 PyObject * obj0 = 0 ;
9890 PyObject * obj1 = 0 ;
9891 PyObject * obj2 = 0 ;
9892 PyObject * obj3 = 0 ;
9893 char *kwnames[] = {
9894 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
9895 };
9896
9897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9898 arg1 = (int) SWIG_AsInt(obj0);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
9901 SWIG_POINTER_EXCEPTION | 0)) == -1)
9902 SWIG_fail;
9903 if (arg2 == NULL) {
9904 PyErr_SetString(PyExc_TypeError,"null reference");
9905 SWIG_fail;
9906 }
9907 arg3 = (long) SWIG_AsLong(obj2);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 arg4 = (long) SWIG_AsLong(obj3);
9910 if (PyErr_Occurred()) SWIG_fail;
9911 {
9912 PyThreadState* __tstate = wxPyBeginAllowThreads();
9913 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
9914
9915 wxPyEndAllowThreads(__tstate);
9916 if (PyErr_Occurred()) SWIG_fail;
9917 }
9918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
9919 return resultobj;
9920 fail:
9921 return NULL;
9922}
9923
9924
9925static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9926 PyObject *resultobj;
9927 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9928 wxMouseEvent *result;
9929 PyObject * obj0 = 0 ;
9930 char *kwnames[] = {
9931 (char *) "self", NULL
9932 };
9933
9934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
9935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9937 {
9938 PyThreadState* __tstate = wxPyBeginAllowThreads();
9939 {
9940 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
9941 result = (wxMouseEvent *) &_result_ref;
9942 }
9943
9944 wxPyEndAllowThreads(__tstate);
9945 if (PyErr_Occurred()) SWIG_fail;
9946 }
9947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
9948 return resultobj;
9949 fail:
9950 return NULL;
9951}
9952
9953
9954static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj;
9956 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9957 long result;
9958 PyObject * obj0 = 0 ;
9959 char *kwnames[] = {
9960 (char *) "self", NULL
9961 };
9962
9963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
9964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9966 {
9967 PyThreadState* __tstate = wxPyBeginAllowThreads();
9968 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
9969
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 resultobj = SWIG_FromLong((long)result);
9974 return resultobj;
9975 fail:
9976 return NULL;
9977}
9978
9979
9980static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9981 PyObject *resultobj;
9982 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
9983 long result;
9984 PyObject * obj0 = 0 ;
9985 char *kwnames[] = {
9986 (char *) "self", NULL
9987 };
9988
9989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
9990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
9991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9992 {
9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
9994 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
9995
9996 wxPyEndAllowThreads(__tstate);
9997 if (PyErr_Occurred()) SWIG_fail;
9998 }
9999 resultobj = SWIG_FromLong((long)result);
10000 return resultobj;
10001 fail:
10002 return NULL;
10003}
10004
10005
10006static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) {
10007 PyObject *obj;
10008 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10009 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10010 Py_INCREF(obj);
10011 return Py_BuildValue((char *)"");
10012}
10013static int _wrap_ScrollBarNameStr_set(PyObject *_val) {
10014 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10015 return 1;
10016}
10017
10018
10019static PyObject *_wrap_ScrollBarNameStr_get() {
10020 PyObject *pyobj;
10021
10022 {
10023#if wxUSE_UNICODE
10024 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10025#else
10026 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10027#endif
10028 }
10029 return pyobj;
10030}
10031
10032
10033static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10034 PyObject *resultobj;
10035 wxWindow *arg1 = (wxWindow *) 0 ;
10036 int arg2 = (int) -1 ;
10037 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10038 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10039 wxSize const &arg4_defvalue = wxDefaultSize ;
10040 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10041 long arg5 = (long) wxSB_HORIZONTAL ;
10042 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10043 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10044 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10045 wxString *arg7 = (wxString *) &arg7_defvalue ;
10046 wxScrollBar *result;
10047 wxPoint temp3 ;
10048 wxSize temp4 ;
10049 bool temp7 = False ;
10050 PyObject * obj0 = 0 ;
10051 PyObject * obj1 = 0 ;
10052 PyObject * obj2 = 0 ;
10053 PyObject * obj3 = 0 ;
10054 PyObject * obj4 = 0 ;
10055 PyObject * obj5 = 0 ;
10056 PyObject * obj6 = 0 ;
10057 char *kwnames[] = {
10058 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10059 };
10060
10061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10064 if (obj1) {
10065 arg2 = (int) SWIG_AsInt(obj1);
10066 if (PyErr_Occurred()) SWIG_fail;
10067 }
10068 if (obj2) {
10069 {
10070 arg3 = &temp3;
10071 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10072 }
10073 }
10074 if (obj3) {
10075 {
10076 arg4 = &temp4;
10077 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10078 }
10079 }
10080 if (obj4) {
10081 arg5 = (long) SWIG_AsLong(obj4);
10082 if (PyErr_Occurred()) SWIG_fail;
10083 }
10084 if (obj5) {
10085 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10086 SWIG_POINTER_EXCEPTION | 0)) == -1)
10087 SWIG_fail;
10088 if (arg6 == NULL) {
10089 PyErr_SetString(PyExc_TypeError,"null reference");
10090 SWIG_fail;
10091 }
10092 }
10093 if (obj6) {
10094 {
10095 arg7 = wxString_in_helper(obj6);
10096 if (arg7 == NULL) SWIG_fail;
10097 temp7 = True;
10098 }
10099 }
10100 {
0439c23b 10101 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10104
10105 wxPyEndAllowThreads(__tstate);
110da5b0 10106 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
10107 }
10108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10109 {
10110 if (temp7)
10111 delete arg7;
10112 }
10113 return resultobj;
10114 fail:
10115 {
10116 if (temp7)
10117 delete arg7;
10118 }
10119 return NULL;
10120}
10121
10122
10123static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
10124 PyObject *resultobj;
10125 wxScrollBar *result;
10126 char *kwnames[] = {
10127 NULL
10128 };
10129
10130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10131 {
0439c23b 10132 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 result = (wxScrollBar *)new wxScrollBar();
10135
10136 wxPyEndAllowThreads(__tstate);
110da5b0 10137 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
10138 }
10139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10140 return resultobj;
10141 fail:
10142 return NULL;
10143}
10144
10145
10146static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10147 PyObject *resultobj;
10148 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10149 wxWindow *arg2 = (wxWindow *) 0 ;
10150 int arg3 = (int) -1 ;
10151 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10152 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10153 wxSize const &arg5_defvalue = wxDefaultSize ;
10154 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10155 long arg6 = (long) wxSB_HORIZONTAL ;
10156 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10157 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10158 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10159 wxString *arg8 = (wxString *) &arg8_defvalue ;
10160 bool result;
10161 wxPoint temp4 ;
10162 wxSize temp5 ;
10163 bool temp8 = False ;
10164 PyObject * obj0 = 0 ;
10165 PyObject * obj1 = 0 ;
10166 PyObject * obj2 = 0 ;
10167 PyObject * obj3 = 0 ;
10168 PyObject * obj4 = 0 ;
10169 PyObject * obj5 = 0 ;
10170 PyObject * obj6 = 0 ;
10171 PyObject * obj7 = 0 ;
10172 char *kwnames[] = {
10173 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10174 };
10175
10176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10179 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10181 if (obj2) {
10182 arg3 = (int) SWIG_AsInt(obj2);
10183 if (PyErr_Occurred()) SWIG_fail;
10184 }
10185 if (obj3) {
10186 {
10187 arg4 = &temp4;
10188 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10189 }
10190 }
10191 if (obj4) {
10192 {
10193 arg5 = &temp5;
10194 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10195 }
10196 }
10197 if (obj5) {
10198 arg6 = (long) SWIG_AsLong(obj5);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 if (obj6) {
10202 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10203 SWIG_POINTER_EXCEPTION | 0)) == -1)
10204 SWIG_fail;
10205 if (arg7 == NULL) {
10206 PyErr_SetString(PyExc_TypeError,"null reference");
10207 SWIG_fail;
10208 }
10209 }
10210 if (obj7) {
10211 {
10212 arg8 = wxString_in_helper(obj7);
10213 if (arg8 == NULL) SWIG_fail;
10214 temp8 = True;
10215 }
10216 }
10217 {
10218 PyThreadState* __tstate = wxPyBeginAllowThreads();
10219 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10220
10221 wxPyEndAllowThreads(__tstate);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 }
10224 {
10225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10226 }
10227 {
10228 if (temp8)
10229 delete arg8;
10230 }
10231 return resultobj;
10232 fail:
10233 {
10234 if (temp8)
10235 delete arg8;
10236 }
10237 return NULL;
10238}
10239
10240
10241static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj;
10243 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10244 int result;
10245 PyObject * obj0 = 0 ;
10246 char *kwnames[] = {
10247 (char *) "self", NULL
10248 };
10249
10250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10256
10257 wxPyEndAllowThreads(__tstate);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 }
10260 resultobj = SWIG_FromInt((int)result);
10261 return resultobj;
10262 fail:
10263 return NULL;
10264}
10265
10266
10267static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10268 PyObject *resultobj;
10269 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10270 int result;
10271 PyObject * obj0 = 0 ;
10272 char *kwnames[] = {
10273 (char *) "self", NULL
10274 };
10275
10276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10279 {
10280 PyThreadState* __tstate = wxPyBeginAllowThreads();
10281 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10282
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 resultobj = SWIG_FromInt((int)result);
10287 return resultobj;
10288 fail:
10289 return NULL;
10290}
10291
10292
10293static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10294 PyObject *resultobj;
10295 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10296 int result;
10297 PyObject * obj0 = 0 ;
10298 char *kwnames[] = {
10299 (char *) "self", NULL
10300 };
10301
10302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10308
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 resultobj = SWIG_FromInt((int)result);
10313 return resultobj;
10314 fail:
10315 return NULL;
10316}
10317
10318
10319static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj;
10321 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10322 int result;
10323 PyObject * obj0 = 0 ;
10324 char *kwnames[] = {
10325 (char *) "self", NULL
10326 };
10327
10328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10331 {
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 result = (int)((wxScrollBar const *)arg1)->GetRange();
10334
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 resultobj = SWIG_FromInt((int)result);
10339 return resultobj;
10340 fail:
10341 return NULL;
10342}
10343
10344
10345static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj;
10347 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10348 bool result;
10349 PyObject * obj0 = 0 ;
10350 char *kwnames[] = {
10351 (char *) "self", NULL
10352 };
10353
10354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
10359 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10360
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 {
10365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10366 }
10367 return resultobj;
10368 fail:
10369 return NULL;
10370}
10371
10372
10373static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj;
10375 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10376 int arg2 ;
10377 PyObject * obj0 = 0 ;
10378 PyObject * obj1 = 0 ;
10379 char *kwnames[] = {
10380 (char *) "self",(char *) "viewStart", NULL
10381 };
10382
10383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10386 arg2 = (int) SWIG_AsInt(obj1);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 {
10389 PyThreadState* __tstate = wxPyBeginAllowThreads();
10390 (arg1)->SetThumbPosition(arg2);
10391
10392 wxPyEndAllowThreads(__tstate);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 }
10395 Py_INCREF(Py_None); resultobj = Py_None;
10396 return resultobj;
10397 fail:
10398 return NULL;
10399}
10400
10401
10402static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
10403 PyObject *resultobj;
10404 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10405 int arg2 ;
10406 int arg3 ;
10407 int arg4 ;
10408 int arg5 ;
10409 bool arg6 = (bool) True ;
10410 PyObject * obj0 = 0 ;
10411 PyObject * obj1 = 0 ;
10412 PyObject * obj2 = 0 ;
10413 PyObject * obj3 = 0 ;
10414 PyObject * obj4 = 0 ;
10415 PyObject * obj5 = 0 ;
10416 char *kwnames[] = {
10417 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10418 };
10419
10420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10423 arg2 = (int) SWIG_AsInt(obj1);
10424 if (PyErr_Occurred()) SWIG_fail;
10425 arg3 = (int) SWIG_AsInt(obj2);
10426 if (PyErr_Occurred()) SWIG_fail;
10427 arg4 = (int) SWIG_AsInt(obj3);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 arg5 = (int) SWIG_AsInt(obj4);
10430 if (PyErr_Occurred()) SWIG_fail;
10431 if (obj5) {
10432 arg6 = (bool) SWIG_AsBool(obj5);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 {
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10438
10439 wxPyEndAllowThreads(__tstate);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 Py_INCREF(Py_None); resultobj = Py_None;
10443 return resultobj;
10444 fail:
10445 return NULL;
10446}
10447
10448
f20a2e1f
RD
10449static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
10450 PyObject *resultobj;
10451 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10452 wxVisualAttributes result;
10453 PyObject * obj0 = 0 ;
10454 char *kwnames[] = {
10455 (char *) "variant", NULL
10456 };
10457
10458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10459 if (obj0) {
10460 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 {
0439c23b 10464 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
10465 PyThreadState* __tstate = wxPyBeginAllowThreads();
10466 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10467
10468 wxPyEndAllowThreads(__tstate);
110da5b0 10469 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
10470 }
10471 {
10472 wxVisualAttributes * resultptr;
10473 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10474 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10475 }
10476 return resultobj;
10477 fail:
10478 return NULL;
10479}
10480
10481
d55e5bfc
RD
10482static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) {
10483 PyObject *obj;
10484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10485 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10486 Py_INCREF(obj);
10487 return Py_BuildValue((char *)"");
10488}
10489static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) {
10490 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10491 return 1;
10492}
10493
10494
10495static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10496 PyObject *pyobj;
10497
10498 {
10499#if wxUSE_UNICODE
10500 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10501#else
10502 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10503#endif
10504 }
10505 return pyobj;
10506}
10507
10508
10509static int _wrap_SpinCtrlNameStr_set(PyObject *_val) {
10510 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10511 return 1;
10512}
10513
10514
10515static PyObject *_wrap_SpinCtrlNameStr_get() {
10516 PyObject *pyobj;
10517
10518 {
10519#if wxUSE_UNICODE
10520 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10521#else
10522 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10523#endif
10524 }
10525 return pyobj;
10526}
10527
10528
10529static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10530 PyObject *resultobj;
10531 wxWindow *arg1 = (wxWindow *) 0 ;
10532 int arg2 = (int) -1 ;
10533 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10534 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10535 wxSize const &arg4_defvalue = wxDefaultSize ;
10536 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10537 long arg5 = (long) wxSP_HORIZONTAL ;
10538 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10539 wxString *arg6 = (wxString *) &arg6_defvalue ;
10540 wxSpinButton *result;
10541 wxPoint temp3 ;
10542 wxSize temp4 ;
10543 bool temp6 = False ;
10544 PyObject * obj0 = 0 ;
10545 PyObject * obj1 = 0 ;
10546 PyObject * obj2 = 0 ;
10547 PyObject * obj3 = 0 ;
10548 PyObject * obj4 = 0 ;
10549 PyObject * obj5 = 0 ;
10550 char *kwnames[] = {
10551 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10552 };
10553
10554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10557 if (obj1) {
10558 arg2 = (int) SWIG_AsInt(obj1);
10559 if (PyErr_Occurred()) SWIG_fail;
10560 }
10561 if (obj2) {
10562 {
10563 arg3 = &temp3;
10564 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10565 }
10566 }
10567 if (obj3) {
10568 {
10569 arg4 = &temp4;
10570 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10571 }
10572 }
10573 if (obj4) {
10574 arg5 = (long) SWIG_AsLong(obj4);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 if (obj5) {
10578 {
10579 arg6 = wxString_in_helper(obj5);
10580 if (arg6 == NULL) SWIG_fail;
10581 temp6 = True;
10582 }
10583 }
10584 {
0439c23b 10585 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10588
10589 wxPyEndAllowThreads(__tstate);
110da5b0 10590 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
10591 }
10592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10593 {
10594 if (temp6)
10595 delete arg6;
10596 }
10597 return resultobj;
10598 fail:
10599 {
10600 if (temp6)
10601 delete arg6;
10602 }
10603 return NULL;
10604}
10605
10606
10607static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10608 PyObject *resultobj;
10609 wxSpinButton *result;
10610 char *kwnames[] = {
10611 NULL
10612 };
10613
10614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10615 {
0439c23b 10616 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
10617 PyThreadState* __tstate = wxPyBeginAllowThreads();
10618 result = (wxSpinButton *)new wxSpinButton();
10619
10620 wxPyEndAllowThreads(__tstate);
110da5b0 10621 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
10622 }
10623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10624 return resultobj;
10625 fail:
10626 return NULL;
10627}
10628
10629
10630static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10631 PyObject *resultobj;
10632 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10633 wxWindow *arg2 = (wxWindow *) 0 ;
10634 int arg3 = (int) -1 ;
10635 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10636 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10637 wxSize const &arg5_defvalue = wxDefaultSize ;
10638 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10639 long arg6 = (long) wxSP_HORIZONTAL ;
10640 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10641 wxString *arg7 = (wxString *) &arg7_defvalue ;
10642 bool result;
10643 wxPoint temp4 ;
10644 wxSize temp5 ;
10645 bool temp7 = False ;
10646 PyObject * obj0 = 0 ;
10647 PyObject * obj1 = 0 ;
10648 PyObject * obj2 = 0 ;
10649 PyObject * obj3 = 0 ;
10650 PyObject * obj4 = 0 ;
10651 PyObject * obj5 = 0 ;
10652 PyObject * obj6 = 0 ;
10653 char *kwnames[] = {
10654 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10655 };
10656
10657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10662 if (obj2) {
10663 arg3 = (int) SWIG_AsInt(obj2);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 if (obj3) {
10667 {
10668 arg4 = &temp4;
10669 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10670 }
10671 }
10672 if (obj4) {
10673 {
10674 arg5 = &temp5;
10675 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10676 }
10677 }
10678 if (obj5) {
10679 arg6 = (long) SWIG_AsLong(obj5);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 if (obj6) {
10683 {
10684 arg7 = wxString_in_helper(obj6);
10685 if (arg7 == NULL) SWIG_fail;
10686 temp7 = True;
10687 }
10688 }
10689 {
10690 PyThreadState* __tstate = wxPyBeginAllowThreads();
10691 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10692
10693 wxPyEndAllowThreads(__tstate);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 }
10696 {
10697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10698 }
10699 {
10700 if (temp7)
10701 delete arg7;
10702 }
10703 return resultobj;
10704 fail:
10705 {
10706 if (temp7)
10707 delete arg7;
10708 }
10709 return NULL;
10710}
10711
10712
10713static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10714 PyObject *resultobj;
10715 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10716 int result;
10717 PyObject * obj0 = 0 ;
10718 char *kwnames[] = {
10719 (char *) "self", NULL
10720 };
10721
10722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 result = (int)((wxSpinButton const *)arg1)->GetValue();
10728
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 resultobj = SWIG_FromInt((int)result);
10733 return resultobj;
10734 fail:
10735 return NULL;
10736}
10737
10738
10739static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10740 PyObject *resultobj;
10741 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10742 int result;
10743 PyObject * obj0 = 0 ;
10744 char *kwnames[] = {
10745 (char *) "self", NULL
10746 };
10747
10748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10751 {
10752 PyThreadState* __tstate = wxPyBeginAllowThreads();
10753 result = (int)((wxSpinButton const *)arg1)->GetMin();
10754
10755 wxPyEndAllowThreads(__tstate);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 }
10758 resultobj = SWIG_FromInt((int)result);
10759 return resultobj;
10760 fail:
10761 return NULL;
10762}
10763
10764
10765static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10766 PyObject *resultobj;
10767 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10768 int result;
10769 PyObject * obj0 = 0 ;
10770 char *kwnames[] = {
10771 (char *) "self", NULL
10772 };
10773
10774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10777 {
10778 PyThreadState* __tstate = wxPyBeginAllowThreads();
10779 result = (int)((wxSpinButton const *)arg1)->GetMax();
10780
10781 wxPyEndAllowThreads(__tstate);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 }
10784 resultobj = SWIG_FromInt((int)result);
10785 return resultobj;
10786 fail:
10787 return NULL;
10788}
10789
10790
10791static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj;
10793 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10794 int arg2 ;
10795 PyObject * obj0 = 0 ;
10796 PyObject * obj1 = 0 ;
10797 char *kwnames[] = {
10798 (char *) "self",(char *) "val", NULL
10799 };
10800
10801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
10802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10804 arg2 = (int) SWIG_AsInt(obj1);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 {
10807 PyThreadState* __tstate = wxPyBeginAllowThreads();
10808 (arg1)->SetValue(arg2);
10809
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 Py_INCREF(Py_None); resultobj = Py_None;
10814 return resultobj;
10815 fail:
10816 return NULL;
10817}
10818
10819
10820static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10821 PyObject *resultobj;
10822 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10823 int arg2 ;
10824 PyObject * obj0 = 0 ;
10825 PyObject * obj1 = 0 ;
10826 char *kwnames[] = {
10827 (char *) "self",(char *) "minVal", NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
10831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10833 arg2 = (int) SWIG_AsInt(obj1);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 {
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 (arg1)->SetMin(arg2);
10838
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 }
10842 Py_INCREF(Py_None); resultobj = Py_None;
10843 return resultobj;
10844 fail:
10845 return NULL;
10846}
10847
10848
10849static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10850 PyObject *resultobj;
10851 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10852 int arg2 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 char *kwnames[] = {
10856 (char *) "self",(char *) "maxVal", NULL
10857 };
10858
10859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
10860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10862 arg2 = (int) SWIG_AsInt(obj1);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 (arg1)->SetMax(arg2);
10867
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 Py_INCREF(Py_None); resultobj = Py_None;
10872 return resultobj;
10873 fail:
10874 return NULL;
10875}
10876
10877
10878static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10879 PyObject *resultobj;
10880 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10881 int arg2 ;
10882 int arg3 ;
10883 PyObject * obj0 = 0 ;
10884 PyObject * obj1 = 0 ;
10885 PyObject * obj2 = 0 ;
10886 char *kwnames[] = {
10887 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
10888 };
10889
10890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
10891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10893 arg2 = (int) SWIG_AsInt(obj1);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 arg3 = (int) SWIG_AsInt(obj2);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 (arg1)->SetRange(arg2,arg3);
10900
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
f20a2e1f
RD
10904 Py_INCREF(Py_None); resultobj = Py_None;
10905 return resultobj;
10906 fail:
10907 return NULL;
10908}
10909
10910
10911static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
10912 PyObject *resultobj;
10913 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10914 bool result;
10915 PyObject * obj0 = 0 ;
10916 char *kwnames[] = {
10917 (char *) "self", NULL
10918 };
10919
10920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
10921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10923 {
10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
10925 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
10926
10927 wxPyEndAllowThreads(__tstate);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 }
10930 {
10931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10932 }
d55e5bfc
RD
10933 return resultobj;
10934 fail:
10935 return NULL;
10936}
10937
10938
f20a2e1f 10939static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 10940 PyObject *resultobj;
f20a2e1f
RD
10941 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10942 wxVisualAttributes result;
d55e5bfc
RD
10943 PyObject * obj0 = 0 ;
10944 char *kwnames[] = {
f20a2e1f 10945 (char *) "variant", NULL
d55e5bfc
RD
10946 };
10947
f20a2e1f
RD
10948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10949 if (obj0) {
10950 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 }
d55e5bfc 10953 {
0439c23b 10954 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
f20a2e1f 10956 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
d55e5bfc
RD
10957
10958 wxPyEndAllowThreads(__tstate);
110da5b0 10959 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
10960 }
10961 {
f20a2e1f
RD
10962 wxVisualAttributes * resultptr;
10963 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10964 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
d55e5bfc
RD
10965 }
10966 return resultobj;
10967 fail:
10968 return NULL;
10969}
10970
10971
10972static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) {
10973 PyObject *obj;
10974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10975 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
10976 Py_INCREF(obj);
10977 return Py_BuildValue((char *)"");
10978}
10979static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10980 PyObject *resultobj;
10981 wxWindow *arg1 = (wxWindow *) 0 ;
10982 int arg2 = (int) -1 ;
10983 wxString const &arg3_defvalue = wxPyEmptyString ;
10984 wxString *arg3 = (wxString *) &arg3_defvalue ;
10985 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10986 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10987 wxSize const &arg5_defvalue = wxDefaultSize ;
10988 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10989 long arg6 = (long) wxSP_ARROW_KEYS ;
10990 int arg7 = (int) 0 ;
10991 int arg8 = (int) 100 ;
10992 int arg9 = (int) 0 ;
10993 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
10994 wxString *arg10 = (wxString *) &arg10_defvalue ;
10995 wxSpinCtrl *result;
10996 bool temp3 = False ;
10997 wxPoint temp4 ;
10998 wxSize temp5 ;
10999 bool temp10 = False ;
11000 PyObject * obj0 = 0 ;
11001 PyObject * obj1 = 0 ;
11002 PyObject * obj2 = 0 ;
11003 PyObject * obj3 = 0 ;
11004 PyObject * obj4 = 0 ;
11005 PyObject * obj5 = 0 ;
11006 PyObject * obj6 = 0 ;
11007 PyObject * obj7 = 0 ;
11008 PyObject * obj8 = 0 ;
11009 PyObject * obj9 = 0 ;
11010 char *kwnames[] = {
11011 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11012 };
11013
11014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11017 if (obj1) {
11018 arg2 = (int) SWIG_AsInt(obj1);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 if (obj2) {
11022 {
11023 arg3 = wxString_in_helper(obj2);
11024 if (arg3 == NULL) SWIG_fail;
11025 temp3 = True;
11026 }
11027 }
11028 if (obj3) {
11029 {
11030 arg4 = &temp4;
11031 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11032 }
11033 }
11034 if (obj4) {
11035 {
11036 arg5 = &temp5;
11037 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11038 }
11039 }
11040 if (obj5) {
11041 arg6 = (long) SWIG_AsLong(obj5);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 if (obj6) {
11045 arg7 = (int) SWIG_AsInt(obj6);
11046 if (PyErr_Occurred()) SWIG_fail;
11047 }
11048 if (obj7) {
11049 arg8 = (int) SWIG_AsInt(obj7);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 if (obj8) {
11053 arg9 = (int) SWIG_AsInt(obj8);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 }
11056 if (obj9) {
11057 {
11058 arg10 = wxString_in_helper(obj9);
11059 if (arg10 == NULL) SWIG_fail;
11060 temp10 = True;
11061 }
11062 }
11063 {
0439c23b 11064 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11067
11068 wxPyEndAllowThreads(__tstate);
110da5b0 11069 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11070 }
11071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11072 {
11073 if (temp3)
11074 delete arg3;
11075 }
11076 {
11077 if (temp10)
11078 delete arg10;
11079 }
11080 return resultobj;
11081 fail:
11082 {
11083 if (temp3)
11084 delete arg3;
11085 }
11086 {
11087 if (temp10)
11088 delete arg10;
11089 }
11090 return NULL;
11091}
11092
11093
11094static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
11095 PyObject *resultobj;
11096 wxSpinCtrl *result;
11097 char *kwnames[] = {
11098 NULL
11099 };
11100
11101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11102 {
0439c23b 11103 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11104 PyThreadState* __tstate = wxPyBeginAllowThreads();
11105 result = (wxSpinCtrl *)new wxSpinCtrl();
11106
11107 wxPyEndAllowThreads(__tstate);
110da5b0 11108 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11109 }
11110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11111 return resultobj;
11112 fail:
11113 return NULL;
11114}
11115
11116
11117static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11118 PyObject *resultobj;
11119 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11120 wxWindow *arg2 = (wxWindow *) 0 ;
11121 int arg3 = (int) -1 ;
11122 wxString const &arg4_defvalue = wxPyEmptyString ;
11123 wxString *arg4 = (wxString *) &arg4_defvalue ;
11124 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11125 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11126 wxSize const &arg6_defvalue = wxDefaultSize ;
11127 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11128 long arg7 = (long) wxSP_ARROW_KEYS ;
11129 int arg8 = (int) 0 ;
11130 int arg9 = (int) 100 ;
11131 int arg10 = (int) 0 ;
11132 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11133 wxString *arg11 = (wxString *) &arg11_defvalue ;
11134 bool result;
11135 bool temp4 = False ;
11136 wxPoint temp5 ;
11137 wxSize temp6 ;
11138 bool temp11 = False ;
11139 PyObject * obj0 = 0 ;
11140 PyObject * obj1 = 0 ;
11141 PyObject * obj2 = 0 ;
11142 PyObject * obj3 = 0 ;
11143 PyObject * obj4 = 0 ;
11144 PyObject * obj5 = 0 ;
11145 PyObject * obj6 = 0 ;
11146 PyObject * obj7 = 0 ;
11147 PyObject * obj8 = 0 ;
11148 PyObject * obj9 = 0 ;
11149 PyObject * obj10 = 0 ;
11150 char *kwnames[] = {
11151 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11152 };
11153
11154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11157 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11159 if (obj2) {
11160 arg3 = (int) SWIG_AsInt(obj2);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 }
11163 if (obj3) {
11164 {
11165 arg4 = wxString_in_helper(obj3);
11166 if (arg4 == NULL) SWIG_fail;
11167 temp4 = True;
11168 }
11169 }
11170 if (obj4) {
11171 {
11172 arg5 = &temp5;
11173 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11174 }
11175 }
11176 if (obj5) {
11177 {
11178 arg6 = &temp6;
11179 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11180 }
11181 }
11182 if (obj6) {
11183 arg7 = (long) SWIG_AsLong(obj6);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 if (obj7) {
11187 arg8 = (int) SWIG_AsInt(obj7);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 if (obj8) {
11191 arg9 = (int) SWIG_AsInt(obj8);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 if (obj9) {
11195 arg10 = (int) SWIG_AsInt(obj9);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 }
11198 if (obj10) {
11199 {
11200 arg11 = wxString_in_helper(obj10);
11201 if (arg11 == NULL) SWIG_fail;
11202 temp11 = True;
11203 }
11204 }
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11208
11209 wxPyEndAllowThreads(__tstate);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 {
11213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11214 }
11215 {
11216 if (temp4)
11217 delete arg4;
11218 }
11219 {
11220 if (temp11)
11221 delete arg11;
11222 }
11223 return resultobj;
11224 fail:
11225 {
11226 if (temp4)
11227 delete arg4;
11228 }
11229 {
11230 if (temp11)
11231 delete arg11;
11232 }
11233 return NULL;
11234}
11235
11236
11237static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11238 PyObject *resultobj;
11239 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11240 int result;
11241 PyObject * obj0 = 0 ;
11242 char *kwnames[] = {
11243 (char *) "self", NULL
11244 };
11245
11246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11249 {
11250 PyThreadState* __tstate = wxPyBeginAllowThreads();
11251 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11252
11253 wxPyEndAllowThreads(__tstate);
11254 if (PyErr_Occurred()) SWIG_fail;
11255 }
11256 resultobj = SWIG_FromInt((int)result);
11257 return resultobj;
11258 fail:
11259 return NULL;
11260}
11261
11262
11263static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11264 PyObject *resultobj;
11265 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11266 int arg2 ;
11267 PyObject * obj0 = 0 ;
11268 PyObject * obj1 = 0 ;
11269 char *kwnames[] = {
11270 (char *) "self",(char *) "value", NULL
11271 };
11272
11273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11276 arg2 = (int) SWIG_AsInt(obj1);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 {
11279 PyThreadState* __tstate = wxPyBeginAllowThreads();
11280 (arg1)->SetValue(arg2);
11281
11282 wxPyEndAllowThreads(__tstate);
11283 if (PyErr_Occurred()) SWIG_fail;
11284 }
11285 Py_INCREF(Py_None); resultobj = Py_None;
11286 return resultobj;
11287 fail:
11288 return NULL;
11289}
11290
11291
11292static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) {
11293 PyObject *resultobj;
11294 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11295 wxString *arg2 = 0 ;
11296 bool temp2 = False ;
11297 PyObject * obj0 = 0 ;
11298 PyObject * obj1 = 0 ;
11299 char *kwnames[] = {
11300 (char *) "self",(char *) "text", NULL
11301 };
11302
11303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11306 {
11307 arg2 = wxString_in_helper(obj1);
11308 if (arg2 == NULL) SWIG_fail;
11309 temp2 = True;
11310 }
11311 {
11312 PyThreadState* __tstate = wxPyBeginAllowThreads();
11313 (arg1)->SetValue((wxString const &)*arg2);
11314
11315 wxPyEndAllowThreads(__tstate);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 Py_INCREF(Py_None); resultobj = Py_None;
11319 {
11320 if (temp2)
11321 delete arg2;
11322 }
11323 return resultobj;
11324 fail:
11325 {
11326 if (temp2)
11327 delete arg2;
11328 }
11329 return NULL;
11330}
11331
11332
11333static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11334 PyObject *resultobj;
11335 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11336 int arg2 ;
11337 int arg3 ;
11338 PyObject * obj0 = 0 ;
11339 PyObject * obj1 = 0 ;
11340 PyObject * obj2 = 0 ;
11341 char *kwnames[] = {
11342 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11343 };
11344
11345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11348 arg2 = (int) SWIG_AsInt(obj1);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 arg3 = (int) SWIG_AsInt(obj2);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 {
11353 PyThreadState* __tstate = wxPyBeginAllowThreads();
11354 (arg1)->SetRange(arg2,arg3);
11355
11356 wxPyEndAllowThreads(__tstate);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 }
11359 Py_INCREF(Py_None); resultobj = Py_None;
11360 return resultobj;
11361 fail:
11362 return NULL;
11363}
11364
11365
11366static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11367 PyObject *resultobj;
11368 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11369 int result;
11370 PyObject * obj0 = 0 ;
11371 char *kwnames[] = {
11372 (char *) "self", NULL
11373 };
11374
11375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11378 {
11379 PyThreadState* __tstate = wxPyBeginAllowThreads();
11380 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11381
11382 wxPyEndAllowThreads(__tstate);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 resultobj = SWIG_FromInt((int)result);
11386 return resultobj;
11387 fail:
11388 return NULL;
11389}
11390
11391
11392static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11393 PyObject *resultobj;
11394 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11395 int result;
11396 PyObject * obj0 = 0 ;
11397 char *kwnames[] = {
11398 (char *) "self", NULL
11399 };
11400
11401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11407
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 resultobj = SWIG_FromInt((int)result);
11412 return resultobj;
11413 fail:
11414 return NULL;
11415}
11416
11417
11418static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11419 PyObject *resultobj;
11420 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11421 long arg2 ;
11422 long arg3 ;
11423 PyObject * obj0 = 0 ;
11424 PyObject * obj1 = 0 ;
11425 PyObject * obj2 = 0 ;
11426 char *kwnames[] = {
11427 (char *) "self",(char *) "from",(char *) "to", NULL
11428 };
11429
11430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11433 arg2 = (long) SWIG_AsLong(obj1);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 arg3 = (long) SWIG_AsLong(obj2);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 {
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 (arg1)->SetSelection(arg2,arg3);
11440
11441 wxPyEndAllowThreads(__tstate);
11442 if (PyErr_Occurred()) SWIG_fail;
11443 }
11444 Py_INCREF(Py_None); resultobj = Py_None;
11445 return resultobj;
11446 fail:
11447 return NULL;
11448}
11449
11450
f20a2e1f
RD
11451static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
11452 PyObject *resultobj;
11453 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11454 wxVisualAttributes result;
11455 PyObject * obj0 = 0 ;
11456 char *kwnames[] = {
11457 (char *) "variant", NULL
11458 };
11459
11460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11461 if (obj0) {
11462 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 }
11465 {
0439c23b 11466 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
11467 PyThreadState* __tstate = wxPyBeginAllowThreads();
11468 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11469
11470 wxPyEndAllowThreads(__tstate);
110da5b0 11471 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
11472 }
11473 {
11474 wxVisualAttributes * resultptr;
11475 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11476 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11477 }
11478 return resultobj;
11479 fail:
11480 return NULL;
11481}
11482
11483
d55e5bfc
RD
11484static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) {
11485 PyObject *obj;
11486 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11487 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11488 Py_INCREF(obj);
11489 return Py_BuildValue((char *)"");
11490}
11491static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11492 PyObject *resultobj;
11493 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11494 int arg2 = (int) 0 ;
11495 wxSpinEvent *result;
11496 PyObject * obj0 = 0 ;
11497 PyObject * obj1 = 0 ;
11498 char *kwnames[] = {
11499 (char *) "commandType",(char *) "winid", NULL
11500 };
11501
11502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11503 if (obj0) {
11504 arg1 = (wxEventType) SWIG_AsInt(obj0);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 if (obj1) {
11508 arg2 = (int) SWIG_AsInt(obj1);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 {
11512 PyThreadState* __tstate = wxPyBeginAllowThreads();
11513 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11514
11515 wxPyEndAllowThreads(__tstate);
11516 if (PyErr_Occurred()) SWIG_fail;
11517 }
11518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11519 return resultobj;
11520 fail:
11521 return NULL;
11522}
11523
11524
11525static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11526 PyObject *resultobj;
11527 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11528 int result;
11529 PyObject * obj0 = 0 ;
11530 char *kwnames[] = {
11531 (char *) "self", NULL
11532 };
11533
11534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11537 {
11538 PyThreadState* __tstate = wxPyBeginAllowThreads();
11539 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11540
11541 wxPyEndAllowThreads(__tstate);
11542 if (PyErr_Occurred()) SWIG_fail;
11543 }
11544 resultobj = SWIG_FromInt((int)result);
11545 return resultobj;
11546 fail:
11547 return NULL;
11548}
11549
11550
11551static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11552 PyObject *resultobj;
11553 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11554 int arg2 ;
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 char *kwnames[] = {
11558 (char *) "self",(char *) "pos", NULL
11559 };
11560
11561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11564 arg2 = (int) SWIG_AsInt(obj1);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 {
11567 PyThreadState* __tstate = wxPyBeginAllowThreads();
11568 (arg1)->SetPosition(arg2);
11569
11570 wxPyEndAllowThreads(__tstate);
11571 if (PyErr_Occurred()) SWIG_fail;
11572 }
11573 Py_INCREF(Py_None); resultobj = Py_None;
11574 return resultobj;
11575 fail:
11576 return NULL;
11577}
11578
11579
11580static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) {
11581 PyObject *obj;
11582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11583 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11584 Py_INCREF(obj);
11585 return Py_BuildValue((char *)"");
11586}
11587static int _wrap_RadioBoxNameStr_set(PyObject *_val) {
11588 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11589 return 1;
11590}
11591
11592
11593static PyObject *_wrap_RadioBoxNameStr_get() {
11594 PyObject *pyobj;
11595
11596 {
11597#if wxUSE_UNICODE
11598 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11599#else
11600 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11601#endif
11602 }
11603 return pyobj;
11604}
11605
11606
11607static int _wrap_RadioButtonNameStr_set(PyObject *_val) {
11608 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11609 return 1;
11610}
11611
11612
11613static PyObject *_wrap_RadioButtonNameStr_get() {
11614 PyObject *pyobj;
11615
11616 {
11617#if wxUSE_UNICODE
11618 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11619#else
11620 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11621#endif
11622 }
11623 return pyobj;
11624}
11625
11626
11627static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11628 PyObject *resultobj;
11629 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
11630 int arg2 = (int) -1 ;
11631 wxString const &arg3_defvalue = wxPyEmptyString ;
11632 wxString *arg3 = (wxString *) &arg3_defvalue ;
d55e5bfc
RD
11633 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11634 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11635 wxSize const &arg5_defvalue = wxDefaultSize ;
11636 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11637 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11638 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11639 int arg7 = (int) 0 ;
11640 long arg8 = (long) wxRA_HORIZONTAL ;
11641 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11642 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11643 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11644 wxString *arg10 = (wxString *) &arg10_defvalue ;
11645 wxRadioBox *result;
11646 bool temp3 = False ;
11647 wxPoint temp4 ;
11648 wxSize temp5 ;
11649 bool temp6 = False ;
11650 bool temp10 = False ;
11651 PyObject * obj0 = 0 ;
11652 PyObject * obj1 = 0 ;
11653 PyObject * obj2 = 0 ;
11654 PyObject * obj3 = 0 ;
11655 PyObject * obj4 = 0 ;
11656 PyObject * obj5 = 0 ;
11657 PyObject * obj6 = 0 ;
11658 PyObject * obj7 = 0 ;
11659 PyObject * obj8 = 0 ;
11660 PyObject * obj9 = 0 ;
11661 char *kwnames[] = {
11662 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11663 };
11664
bfddbb17 11665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
d55e5bfc
RD
11666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
11668 if (obj1) {
11669 arg2 = (int) SWIG_AsInt(obj1);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 if (obj2) {
11673 {
11674 arg3 = wxString_in_helper(obj2);
11675 if (arg3 == NULL) SWIG_fail;
11676 temp3 = True;
11677 }
d55e5bfc
RD
11678 }
11679 if (obj3) {
11680 {
11681 arg4 = &temp4;
11682 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11683 }
11684 }
11685 if (obj4) {
11686 {
11687 arg5 = &temp5;
11688 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11689 }
11690 }
11691 if (obj5) {
11692 {
11693 if (! PySequence_Check(obj5)) {
11694 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11695 SWIG_fail;
11696 }
11697 arg6 = new wxArrayString;
11698 temp6 = True;
11699 int i, len=PySequence_Length(obj5);
11700 for (i=0; i<len; i++) {
11701 PyObject* item = PySequence_GetItem(obj5, i);
11702#if wxUSE_UNICODE
11703 PyObject* str = PyObject_Unicode(item);
11704#else
11705 PyObject* str = PyObject_Str(item);
11706#endif
11707 if (PyErr_Occurred()) SWIG_fail;
11708 arg6->Add(Py2wxString(str));
11709 Py_DECREF(item);
11710 Py_DECREF(str);
11711 }
11712 }
11713 }
11714 if (obj6) {
11715 arg7 = (int) SWIG_AsInt(obj6);
11716 if (PyErr_Occurred()) SWIG_fail;
11717 }
11718 if (obj7) {
11719 arg8 = (long) SWIG_AsLong(obj7);
11720 if (PyErr_Occurred()) SWIG_fail;
11721 }
11722 if (obj8) {
11723 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11724 SWIG_POINTER_EXCEPTION | 0)) == -1)
11725 SWIG_fail;
11726 if (arg9 == NULL) {
11727 PyErr_SetString(PyExc_TypeError,"null reference");
11728 SWIG_fail;
11729 }
11730 }
11731 if (obj9) {
11732 {
11733 arg10 = wxString_in_helper(obj9);
11734 if (arg10 == NULL) SWIG_fail;
11735 temp10 = True;
11736 }
11737 }
11738 {
0439c23b 11739 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 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);
11742
11743 wxPyEndAllowThreads(__tstate);
110da5b0 11744 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11745 }
11746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11747 {
11748 if (temp3)
11749 delete arg3;
11750 }
11751 {
11752 if (temp6) delete arg6;
11753 }
11754 {
11755 if (temp10)
11756 delete arg10;
11757 }
11758 return resultobj;
11759 fail:
11760 {
11761 if (temp3)
11762 delete arg3;
11763 }
11764 {
11765 if (temp6) delete arg6;
11766 }
11767 {
11768 if (temp10)
11769 delete arg10;
11770 }
11771 return NULL;
11772}
11773
11774
11775static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11776 PyObject *resultobj;
11777 wxRadioBox *result;
11778 char *kwnames[] = {
11779 NULL
11780 };
11781
11782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11783 {
0439c23b 11784 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 result = (wxRadioBox *)new wxRadioBox();
11787
11788 wxPyEndAllowThreads(__tstate);
110da5b0 11789 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11790 }
11791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11792 return resultobj;
11793 fail:
11794 return NULL;
11795}
11796
11797
11798static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11799 PyObject *resultobj;
11800 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11801 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
11802 int arg3 = (int) -1 ;
11803 wxString const &arg4_defvalue = wxPyEmptyString ;
11804 wxString *arg4 = (wxString *) &arg4_defvalue ;
d55e5bfc
RD
11805 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11806 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11807 wxSize const &arg6_defvalue = wxDefaultSize ;
11808 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11809 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
11810 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
11811 int arg8 = (int) 0 ;
11812 long arg9 = (long) wxRA_HORIZONTAL ;
11813 wxValidator const &arg10_defvalue = wxDefaultValidator ;
11814 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
11815 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
11816 wxString *arg11 = (wxString *) &arg11_defvalue ;
11817 bool result;
11818 bool temp4 = False ;
11819 wxPoint temp5 ;
11820 wxSize temp6 ;
11821 bool temp7 = False ;
11822 bool temp11 = False ;
11823 PyObject * obj0 = 0 ;
11824 PyObject * obj1 = 0 ;
11825 PyObject * obj2 = 0 ;
11826 PyObject * obj3 = 0 ;
11827 PyObject * obj4 = 0 ;
11828 PyObject * obj5 = 0 ;
11829 PyObject * obj6 = 0 ;
11830 PyObject * obj7 = 0 ;
11831 PyObject * obj8 = 0 ;
11832 PyObject * obj9 = 0 ;
11833 PyObject * obj10 = 0 ;
11834 char *kwnames[] = {
11835 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11836 };
11837
bfddbb17 11838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
d55e5bfc
RD
11839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11841 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
11843 if (obj2) {
11844 arg3 = (int) SWIG_AsInt(obj2);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 if (obj3) {
11848 {
11849 arg4 = wxString_in_helper(obj3);
11850 if (arg4 == NULL) SWIG_fail;
11851 temp4 = True;
11852 }
d55e5bfc
RD
11853 }
11854 if (obj4) {
11855 {
11856 arg5 = &temp5;
11857 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11858 }
11859 }
11860 if (obj5) {
11861 {
11862 arg6 = &temp6;
11863 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11864 }
11865 }
11866 if (obj6) {
11867 {
11868 if (! PySequence_Check(obj6)) {
11869 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11870 SWIG_fail;
11871 }
11872 arg7 = new wxArrayString;
11873 temp7 = True;
11874 int i, len=PySequence_Length(obj6);
11875 for (i=0; i<len; i++) {
11876 PyObject* item = PySequence_GetItem(obj6, i);
11877#if wxUSE_UNICODE
11878 PyObject* str = PyObject_Unicode(item);
11879#else
11880 PyObject* str = PyObject_Str(item);
11881#endif
11882 if (PyErr_Occurred()) SWIG_fail;
11883 arg7->Add(Py2wxString(str));
11884 Py_DECREF(item);
11885 Py_DECREF(str);
11886 }
11887 }
11888 }
11889 if (obj7) {
11890 arg8 = (int) SWIG_AsInt(obj7);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 if (obj8) {
11894 arg9 = (long) SWIG_AsLong(obj8);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 }
11897 if (obj9) {
11898 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
11899 SWIG_POINTER_EXCEPTION | 0)) == -1)
11900 SWIG_fail;
11901 if (arg10 == NULL) {
11902 PyErr_SetString(PyExc_TypeError,"null reference");
11903 SWIG_fail;
11904 }
11905 }
11906 if (obj10) {
11907 {
11908 arg11 = wxString_in_helper(obj10);
11909 if (arg11 == NULL) SWIG_fail;
11910 temp11 = True;
11911 }
11912 }
11913 {
11914 PyThreadState* __tstate = wxPyBeginAllowThreads();
11915 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);
11916
11917 wxPyEndAllowThreads(__tstate);
11918 if (PyErr_Occurred()) SWIG_fail;
11919 }
11920 {
11921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11922 }
11923 {
11924 if (temp4)
11925 delete arg4;
11926 }
11927 {
11928 if (temp7) delete arg7;
11929 }
11930 {
11931 if (temp11)
11932 delete arg11;
11933 }
11934 return resultobj;
11935 fail:
11936 {
11937 if (temp4)
11938 delete arg4;
11939 }
11940 {
11941 if (temp7) delete arg7;
11942 }
11943 {
11944 if (temp11)
11945 delete arg11;
11946 }
11947 return NULL;
11948}
11949
11950
11951static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11952 PyObject *resultobj;
11953 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11954 int arg2 ;
11955 PyObject * obj0 = 0 ;
11956 PyObject * obj1 = 0 ;
11957 char *kwnames[] = {
11958 (char *) "self",(char *) "n", NULL
11959 };
11960
11961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
11962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11964 arg2 = (int) SWIG_AsInt(obj1);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 {
11967 PyThreadState* __tstate = wxPyBeginAllowThreads();
11968 (arg1)->SetSelection(arg2);
11969
11970 wxPyEndAllowThreads(__tstate);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 }
11973 Py_INCREF(Py_None); resultobj = Py_None;
11974 return resultobj;
11975 fail:
11976 return NULL;
11977}
11978
11979
11980static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11981 PyObject *resultobj;
11982 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
11983 int result;
11984 PyObject * obj0 = 0 ;
11985 char *kwnames[] = {
11986 (char *) "self", NULL
11987 };
11988
11989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
11990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
11991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11992 {
11993 PyThreadState* __tstate = wxPyBeginAllowThreads();
11994 result = (int)((wxRadioBox const *)arg1)->GetSelection();
11995
11996 wxPyEndAllowThreads(__tstate);
11997 if (PyErr_Occurred()) SWIG_fail;
11998 }
11999 resultobj = SWIG_FromInt((int)result);
12000 return resultobj;
12001 fail:
12002 return NULL;
12003}
12004
12005
12006static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12007 PyObject *resultobj;
12008 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12009 wxString result;
12010 PyObject * obj0 = 0 ;
12011 char *kwnames[] = {
12012 (char *) "self", NULL
12013 };
12014
12015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12021
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026#if wxUSE_UNICODE
12027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12028#else
12029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12030#endif
12031 }
12032 return resultobj;
12033 fail:
12034 return NULL;
12035}
12036
12037
12038static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12039 PyObject *resultobj;
12040 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12041 wxString *arg2 = 0 ;
12042 bool result;
12043 bool temp2 = False ;
12044 PyObject * obj0 = 0 ;
12045 PyObject * obj1 = 0 ;
12046 char *kwnames[] = {
12047 (char *) "self",(char *) "s", NULL
12048 };
12049
12050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12053 {
12054 arg2 = wxString_in_helper(obj1);
12055 if (arg2 == NULL) SWIG_fail;
12056 temp2 = True;
12057 }
12058 {
12059 PyThreadState* __tstate = wxPyBeginAllowThreads();
12060 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12061
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 {
12066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12067 }
12068 {
12069 if (temp2)
12070 delete arg2;
12071 }
12072 return resultobj;
12073 fail:
12074 {
12075 if (temp2)
12076 delete arg2;
12077 }
12078 return NULL;
12079}
12080
12081
12082static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj;
12084 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12085 int result;
12086 PyObject * obj0 = 0 ;
12087 char *kwnames[] = {
12088 (char *) "self", NULL
12089 };
12090
12091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 result = (int)((wxRadioBox const *)arg1)->GetCount();
12097
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 resultobj = SWIG_FromInt((int)result);
12102 return resultobj;
12103 fail:
12104 return NULL;
12105}
12106
12107
12108static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
12109 PyObject *resultobj;
12110 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12111 wxString *arg2 = 0 ;
12112 int result;
12113 bool temp2 = False ;
12114 PyObject * obj0 = 0 ;
12115 PyObject * obj1 = 0 ;
12116 char *kwnames[] = {
12117 (char *) "self",(char *) "s", NULL
12118 };
12119
12120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12123 {
12124 arg2 = wxString_in_helper(obj1);
12125 if (arg2 == NULL) SWIG_fail;
12126 temp2 = True;
12127 }
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12131
12132 wxPyEndAllowThreads(__tstate);
12133 if (PyErr_Occurred()) SWIG_fail;
12134 }
12135 resultobj = SWIG_FromInt((int)result);
12136 {
12137 if (temp2)
12138 delete arg2;
12139 }
12140 return resultobj;
12141 fail:
12142 {
12143 if (temp2)
12144 delete arg2;
12145 }
12146 return NULL;
12147}
12148
12149
12150static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12151 PyObject *resultobj;
12152 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12153 int arg2 ;
12154 wxString result;
12155 PyObject * obj0 = 0 ;
12156 PyObject * obj1 = 0 ;
12157 char *kwnames[] = {
12158 (char *) "self",(char *) "n", NULL
12159 };
12160
12161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12164 arg2 = (int) SWIG_AsInt(obj1);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 {
12167 PyThreadState* __tstate = wxPyBeginAllowThreads();
12168 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12169
12170 wxPyEndAllowThreads(__tstate);
12171 if (PyErr_Occurred()) SWIG_fail;
12172 }
12173 {
12174#if wxUSE_UNICODE
12175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12176#else
12177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12178#endif
12179 }
12180 return resultobj;
12181 fail:
12182 return NULL;
12183}
12184
12185
12186static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12187 PyObject *resultobj;
12188 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12189 int arg2 ;
12190 wxString *arg3 = 0 ;
12191 bool temp3 = False ;
12192 PyObject * obj0 = 0 ;
12193 PyObject * obj1 = 0 ;
12194 PyObject * obj2 = 0 ;
12195 char *kwnames[] = {
12196 (char *) "self",(char *) "n",(char *) "label", NULL
12197 };
12198
12199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12202 arg2 = (int) SWIG_AsInt(obj1);
12203 if (PyErr_Occurred()) SWIG_fail;
12204 {
12205 arg3 = wxString_in_helper(obj2);
12206 if (arg3 == NULL) SWIG_fail;
12207 temp3 = True;
12208 }
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 (arg1)->SetString(arg2,(wxString const &)*arg3);
12212
12213 wxPyEndAllowThreads(__tstate);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 Py_INCREF(Py_None); resultobj = Py_None;
12217 {
12218 if (temp3)
12219 delete arg3;
12220 }
12221 return resultobj;
12222 fail:
12223 {
12224 if (temp3)
12225 delete arg3;
12226 }
12227 return NULL;
12228}
12229
12230
12231static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12232 PyObject *resultobj;
12233 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12234 int arg2 ;
12235 bool arg3 = (bool) True ;
12236 PyObject * obj0 = 0 ;
12237 PyObject * obj1 = 0 ;
12238 PyObject * obj2 = 0 ;
12239 char *kwnames[] = {
12240 (char *) "self",(char *) "n",(char *) "enable", NULL
12241 };
12242
12243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12246 arg2 = (int) SWIG_AsInt(obj1);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 if (obj2) {
12249 arg3 = (bool) SWIG_AsBool(obj2);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 {
12253 PyThreadState* __tstate = wxPyBeginAllowThreads();
12254 (arg1)->Enable(arg2,arg3);
12255
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 Py_INCREF(Py_None); resultobj = Py_None;
12260 return resultobj;
12261 fail:
12262 return NULL;
12263}
12264
12265
12266static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12267 PyObject *resultobj;
12268 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12269 int arg2 ;
12270 bool arg3 = (bool) True ;
12271 PyObject * obj0 = 0 ;
12272 PyObject * obj1 = 0 ;
12273 PyObject * obj2 = 0 ;
12274 char *kwnames[] = {
12275 (char *) "self",(char *) "n",(char *) "show", NULL
12276 };
12277
12278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12281 arg2 = (int) SWIG_AsInt(obj1);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 if (obj2) {
12284 arg3 = (bool) SWIG_AsBool(obj2);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 (arg1)->Show(arg2,arg3);
12290
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 Py_INCREF(Py_None); resultobj = Py_None;
12295 return resultobj;
12296 fail:
12297 return NULL;
12298}
12299
12300
12301static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12302 PyObject *resultobj;
12303 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12304 int result;
12305 PyObject * obj0 = 0 ;
12306 char *kwnames[] = {
12307 (char *) "self", NULL
12308 };
12309
12310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12313 {
12314 PyThreadState* __tstate = wxPyBeginAllowThreads();
12315 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12316
12317 wxPyEndAllowThreads(__tstate);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 resultobj = SWIG_FromInt((int)result);
12321 return resultobj;
12322 fail:
12323 return NULL;
12324}
12325
12326
12327static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12328 PyObject *resultobj;
12329 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12330 int result;
12331 PyObject * obj0 = 0 ;
12332 char *kwnames[] = {
12333 (char *) "self", NULL
12334 };
12335
12336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12342
12343 wxPyEndAllowThreads(__tstate);
12344 if (PyErr_Occurred()) SWIG_fail;
12345 }
12346 resultobj = SWIG_FromInt((int)result);
12347 return resultobj;
12348 fail:
12349 return NULL;
12350}
12351
12352
12353static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
12354 PyObject *resultobj;
12355 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12356 int arg2 ;
12357 int arg3 ;
12358 long arg4 ;
12359 int result;
12360 PyObject * obj0 = 0 ;
12361 PyObject * obj1 = 0 ;
12362 PyObject * obj2 = 0 ;
12363 PyObject * obj3 = 0 ;
12364 char *kwnames[] = {
12365 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12366 };
12367
12368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12371 arg2 = (int) SWIG_AsInt(obj1);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 arg3 = (wxDirection) SWIG_AsInt(obj2);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 arg4 = (long) SWIG_AsLong(obj3);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 {
12378 PyThreadState* __tstate = wxPyBeginAllowThreads();
12379 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12380
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 resultobj = SWIG_FromInt((int)result);
12385 return resultobj;
12386 fail:
12387 return NULL;
12388}
12389
12390
f20a2e1f
RD
12391static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12392 PyObject *resultobj;
12393 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12394 wxVisualAttributes result;
12395 PyObject * obj0 = 0 ;
12396 char *kwnames[] = {
12397 (char *) "variant", NULL
12398 };
12399
12400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12401 if (obj0) {
12402 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 {
0439c23b 12406 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
12407 PyThreadState* __tstate = wxPyBeginAllowThreads();
12408 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12409
12410 wxPyEndAllowThreads(__tstate);
110da5b0 12411 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
12412 }
12413 {
12414 wxVisualAttributes * resultptr;
12415 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12416 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12417 }
12418 return resultobj;
12419 fail:
12420 return NULL;
12421}
12422
12423
d55e5bfc
RD
12424static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) {
12425 PyObject *obj;
12426 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12427 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12428 Py_INCREF(obj);
12429 return Py_BuildValue((char *)"");
12430}
12431static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12432 PyObject *resultobj;
12433 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
12434 int arg2 = (int) -1 ;
12435 wxString const &arg3_defvalue = wxPyEmptyString ;
12436 wxString *arg3 = (wxString *) &arg3_defvalue ;
d55e5bfc
RD
12437 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12438 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12439 wxSize const &arg5_defvalue = wxDefaultSize ;
12440 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12441 long arg6 = (long) 0 ;
12442 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12443 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12444 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12445 wxString *arg8 = (wxString *) &arg8_defvalue ;
12446 wxRadioButton *result;
12447 bool temp3 = False ;
12448 wxPoint temp4 ;
12449 wxSize temp5 ;
12450 bool temp8 = False ;
12451 PyObject * obj0 = 0 ;
12452 PyObject * obj1 = 0 ;
12453 PyObject * obj2 = 0 ;
12454 PyObject * obj3 = 0 ;
12455 PyObject * obj4 = 0 ;
12456 PyObject * obj5 = 0 ;
12457 PyObject * obj6 = 0 ;
12458 PyObject * obj7 = 0 ;
12459 char *kwnames[] = {
12460 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12461 };
12462
bfddbb17 12463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
12464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
12466 if (obj1) {
12467 arg2 = (int) SWIG_AsInt(obj1);
12468 if (PyErr_Occurred()) SWIG_fail;
12469 }
12470 if (obj2) {
12471 {
12472 arg3 = wxString_in_helper(obj2);
12473 if (arg3 == NULL) SWIG_fail;
12474 temp3 = True;
12475 }
d55e5bfc
RD
12476 }
12477 if (obj3) {
12478 {
12479 arg4 = &temp4;
12480 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12481 }
12482 }
12483 if (obj4) {
12484 {
12485 arg5 = &temp5;
12486 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12487 }
12488 }
12489 if (obj5) {
12490 arg6 = (long) SWIG_AsLong(obj5);
12491 if (PyErr_Occurred()) SWIG_fail;
12492 }
12493 if (obj6) {
12494 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1)
12496 SWIG_fail;
12497 if (arg7 == NULL) {
12498 PyErr_SetString(PyExc_TypeError,"null reference");
12499 SWIG_fail;
12500 }
12501 }
12502 if (obj7) {
12503 {
12504 arg8 = wxString_in_helper(obj7);
12505 if (arg8 == NULL) SWIG_fail;
12506 temp8 = True;
12507 }
12508 }
12509 {
0439c23b 12510 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12511 PyThreadState* __tstate = wxPyBeginAllowThreads();
12512 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12513
12514 wxPyEndAllowThreads(__tstate);
110da5b0 12515 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12516 }
12517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12518 {
12519 if (temp3)
12520 delete arg3;
12521 }
12522 {
12523 if (temp8)
12524 delete arg8;
12525 }
12526 return resultobj;
12527 fail:
12528 {
12529 if (temp3)
12530 delete arg3;
12531 }
12532 {
12533 if (temp8)
12534 delete arg8;
12535 }
12536 return NULL;
12537}
12538
12539
12540static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12541 PyObject *resultobj;
12542 wxRadioButton *result;
12543 char *kwnames[] = {
12544 NULL
12545 };
12546
12547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12548 {
0439c23b 12549 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12550 PyThreadState* __tstate = wxPyBeginAllowThreads();
12551 result = (wxRadioButton *)new wxRadioButton();
12552
12553 wxPyEndAllowThreads(__tstate);
110da5b0 12554 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12555 }
12556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12557 return resultobj;
12558 fail:
12559 return NULL;
12560}
12561
12562
12563static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12564 PyObject *resultobj;
12565 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12566 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
12567 int arg3 = (int) -1 ;
12568 wxString const &arg4_defvalue = wxPyEmptyString ;
12569 wxString *arg4 = (wxString *) &arg4_defvalue ;
d55e5bfc
RD
12570 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12571 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12572 wxSize const &arg6_defvalue = wxDefaultSize ;
12573 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12574 long arg7 = (long) 0 ;
12575 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12576 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12577 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12578 wxString *arg9 = (wxString *) &arg9_defvalue ;
12579 bool result;
12580 bool temp4 = False ;
12581 wxPoint temp5 ;
12582 wxSize temp6 ;
12583 bool temp9 = False ;
12584 PyObject * obj0 = 0 ;
12585 PyObject * obj1 = 0 ;
12586 PyObject * obj2 = 0 ;
12587 PyObject * obj3 = 0 ;
12588 PyObject * obj4 = 0 ;
12589 PyObject * obj5 = 0 ;
12590 PyObject * obj6 = 0 ;
12591 PyObject * obj7 = 0 ;
12592 PyObject * obj8 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12595 };
12596
bfddbb17 12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d55e5bfc
RD
12598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12600 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
12602 if (obj2) {
12603 arg3 = (int) SWIG_AsInt(obj2);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 if (obj3) {
12607 {
12608 arg4 = wxString_in_helper(obj3);
12609 if (arg4 == NULL) SWIG_fail;
12610 temp4 = True;
12611 }
d55e5bfc
RD
12612 }
12613 if (obj4) {
12614 {
12615 arg5 = &temp5;
12616 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12617 }
12618 }
12619 if (obj5) {
12620 {
12621 arg6 = &temp6;
12622 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12623 }
12624 }
12625 if (obj6) {
12626 arg7 = (long) SWIG_AsLong(obj6);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 if (obj7) {
12630 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12631 SWIG_POINTER_EXCEPTION | 0)) == -1)
12632 SWIG_fail;
12633 if (arg8 == NULL) {
12634 PyErr_SetString(PyExc_TypeError,"null reference");
12635 SWIG_fail;
12636 }
12637 }
12638 if (obj8) {
12639 {
12640 arg9 = wxString_in_helper(obj8);
12641 if (arg9 == NULL) SWIG_fail;
12642 temp9 = True;
12643 }
12644 }
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12648
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 {
12653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12654 }
12655 {
12656 if (temp4)
12657 delete arg4;
12658 }
12659 {
12660 if (temp9)
12661 delete arg9;
12662 }
12663 return resultobj;
12664 fail:
12665 {
12666 if (temp4)
12667 delete arg4;
12668 }
12669 {
12670 if (temp9)
12671 delete arg9;
12672 }
12673 return NULL;
12674}
12675
12676
12677static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12678 PyObject *resultobj;
12679 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12680 bool result;
12681 PyObject * obj0 = 0 ;
12682 char *kwnames[] = {
12683 (char *) "self", NULL
12684 };
12685
12686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12689 {
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 result = (bool)(arg1)->GetValue();
12692
12693 wxPyEndAllowThreads(__tstate);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 }
12696 {
12697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12698 }
12699 return resultobj;
12700 fail:
12701 return NULL;
12702}
12703
12704
12705static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12706 PyObject *resultobj;
12707 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12708 bool arg2 ;
12709 PyObject * obj0 = 0 ;
12710 PyObject * obj1 = 0 ;
12711 char *kwnames[] = {
12712 (char *) "self",(char *) "value", NULL
12713 };
12714
12715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12718 arg2 = (bool) SWIG_AsBool(obj1);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 (arg1)->SetValue(arg2);
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 Py_INCREF(Py_None); resultobj = Py_None;
12728 return resultobj;
12729 fail:
12730 return NULL;
12731}
12732
12733
f20a2e1f
RD
12734static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
12735 PyObject *resultobj;
12736 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12737 wxVisualAttributes result;
12738 PyObject * obj0 = 0 ;
12739 char *kwnames[] = {
12740 (char *) "variant", NULL
12741 };
12742
12743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12744 if (obj0) {
12745 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 {
0439c23b 12749 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
12750 PyThreadState* __tstate = wxPyBeginAllowThreads();
12751 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12752
12753 wxPyEndAllowThreads(__tstate);
110da5b0 12754 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
12755 }
12756 {
12757 wxVisualAttributes * resultptr;
12758 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12760 }
12761 return resultobj;
12762 fail:
12763 return NULL;
12764}
12765
12766
d55e5bfc
RD
12767static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) {
12768 PyObject *obj;
12769 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12770 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12771 Py_INCREF(obj);
12772 return Py_BuildValue((char *)"");
12773}
12774static int _wrap_SliderNameStr_set(PyObject *_val) {
12775 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12776 return 1;
12777}
12778
12779
12780static PyObject *_wrap_SliderNameStr_get() {
12781 PyObject *pyobj;
12782
12783 {
12784#if wxUSE_UNICODE
12785 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12786#else
12787 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
12788#endif
12789 }
12790 return pyobj;
12791}
12792
12793
12794static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) {
12795 PyObject *resultobj;
12796 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
12797 int arg2 = (int) -1 ;
12798 int arg3 = (int) 0 ;
12799 int arg4 = (int) 0 ;
12800 int arg5 = (int) 100 ;
d55e5bfc
RD
12801 wxPoint const &arg6_defvalue = wxDefaultPosition ;
12802 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
12803 wxSize const &arg7_defvalue = wxDefaultSize ;
12804 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
12805 long arg8 = (long) wxSL_HORIZONTAL ;
12806 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12807 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12808 wxString const &arg10_defvalue = wxPySliderNameStr ;
12809 wxString *arg10 = (wxString *) &arg10_defvalue ;
12810 wxSlider *result;
12811 wxPoint temp6 ;
12812 wxSize temp7 ;
12813 bool temp10 = False ;
12814 PyObject * obj0 = 0 ;
12815 PyObject * obj1 = 0 ;
12816 PyObject * obj2 = 0 ;
12817 PyObject * obj3 = 0 ;
12818 PyObject * obj4 = 0 ;
12819 PyObject * obj5 = 0 ;
12820 PyObject * obj6 = 0 ;
12821 PyObject * obj7 = 0 ;
12822 PyObject * obj8 = 0 ;
12823 PyObject * obj9 = 0 ;
12824 char *kwnames[] = {
12825 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12826 };
12827
bfddbb17 12828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
d55e5bfc
RD
12829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
12831 if (obj1) {
12832 arg2 = (int) SWIG_AsInt(obj1);
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 if (obj2) {
12836 arg3 = (int) SWIG_AsInt(obj2);
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 if (obj3) {
12840 arg4 = (int) SWIG_AsInt(obj3);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 if (obj4) {
12844 arg5 = (int) SWIG_AsInt(obj4);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
d55e5bfc
RD
12847 if (obj5) {
12848 {
12849 arg6 = &temp6;
12850 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
12851 }
12852 }
12853 if (obj6) {
12854 {
12855 arg7 = &temp7;
12856 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
12857 }
12858 }
12859 if (obj7) {
12860 arg8 = (long) SWIG_AsLong(obj7);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
12863 if (obj8) {
12864 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12865 SWIG_POINTER_EXCEPTION | 0)) == -1)
12866 SWIG_fail;
12867 if (arg9 == NULL) {
12868 PyErr_SetString(PyExc_TypeError,"null reference");
12869 SWIG_fail;
12870 }
12871 }
12872 if (obj9) {
12873 {
12874 arg10 = wxString_in_helper(obj9);
12875 if (arg10 == NULL) SWIG_fail;
12876 temp10 = True;
12877 }
12878 }
12879 {
0439c23b 12880 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
12883
12884 wxPyEndAllowThreads(__tstate);
110da5b0 12885 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12886 }
12887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12888 {
12889 if (temp10)
12890 delete arg10;
12891 }
12892 return resultobj;
12893 fail:
12894 {
12895 if (temp10)
12896 delete arg10;
12897 }
12898 return NULL;
12899}
12900
12901
12902static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
12903 PyObject *resultobj;
12904 wxSlider *result;
12905 char *kwnames[] = {
12906 NULL
12907 };
12908
12909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
12910 {
0439c23b 12911 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 result = (wxSlider *)new wxSlider();
12914
12915 wxPyEndAllowThreads(__tstate);
110da5b0 12916 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12917 }
12918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
12919 return resultobj;
12920 fail:
12921 return NULL;
12922}
12923
12924
12925static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12926 PyObject *resultobj;
12927 wxSlider *arg1 = (wxSlider *) 0 ;
12928 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
12929 int arg3 = (int) -1 ;
12930 int arg4 = (int) 0 ;
12931 int arg5 = (int) 0 ;
12932 int arg6 = (int) 100 ;
d55e5bfc
RD
12933 wxPoint const &arg7_defvalue = wxDefaultPosition ;
12934 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
12935 wxSize const &arg8_defvalue = wxDefaultSize ;
12936 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
12937 long arg9 = (long) wxSL_HORIZONTAL ;
12938 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12939 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12940 wxString const &arg11_defvalue = wxPySliderNameStr ;
12941 wxString *arg11 = (wxString *) &arg11_defvalue ;
12942 bool result;
12943 wxPoint temp7 ;
12944 wxSize temp8 ;
12945 bool temp11 = False ;
12946 PyObject * obj0 = 0 ;
12947 PyObject * obj1 = 0 ;
12948 PyObject * obj2 = 0 ;
12949 PyObject * obj3 = 0 ;
12950 PyObject * obj4 = 0 ;
12951 PyObject * obj5 = 0 ;
12952 PyObject * obj6 = 0 ;
12953 PyObject * obj7 = 0 ;
12954 PyObject * obj8 = 0 ;
12955 PyObject * obj9 = 0 ;
12956 PyObject * obj10 = 0 ;
12957 char *kwnames[] = {
12958 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12959 };
12960
bfddbb17 12961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
d55e5bfc
RD
12962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
12963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
12966 if (obj2) {
12967 arg3 = (int) SWIG_AsInt(obj2);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 if (obj3) {
12971 arg4 = (int) SWIG_AsInt(obj3);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 if (obj4) {
12975 arg5 = (int) SWIG_AsInt(obj4);
12976 if (PyErr_Occurred()) SWIG_fail;
12977 }
12978 if (obj5) {
12979 arg6 = (int) SWIG_AsInt(obj5);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 }
d55e5bfc
RD
12982 if (obj6) {
12983 {
12984 arg7 = &temp7;
12985 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
12986 }
12987 }
12988 if (obj7) {
12989 {
12990 arg8 = &temp8;
12991 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
12992 }
12993 }
12994 if (obj8) {
12995 arg9 = (long) SWIG_AsLong(obj8);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 if (obj9) {
12999 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13000 SWIG_POINTER_EXCEPTION | 0)) == -1)
13001 SWIG_fail;
13002 if (arg10 == NULL) {
13003 PyErr_SetString(PyExc_TypeError,"null reference");
13004 SWIG_fail;
13005 }
13006 }
13007 if (obj10) {
13008 {
13009 arg11 = wxString_in_helper(obj10);
13010 if (arg11 == NULL) SWIG_fail;
13011 temp11 = True;
13012 }
13013 }
13014 {
13015 PyThreadState* __tstate = wxPyBeginAllowThreads();
13016 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13017
13018 wxPyEndAllowThreads(__tstate);
13019 if (PyErr_Occurred()) SWIG_fail;
13020 }
13021 {
13022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13023 }
13024 {
13025 if (temp11)
13026 delete arg11;
13027 }
13028 return resultobj;
13029 fail:
13030 {
13031 if (temp11)
13032 delete arg11;
13033 }
13034 return NULL;
13035}
13036
13037
13038static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13039 PyObject *resultobj;
13040 wxSlider *arg1 = (wxSlider *) 0 ;
13041 int result;
13042 PyObject * obj0 = 0 ;
13043 char *kwnames[] = {
13044 (char *) "self", NULL
13045 };
13046
13047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13050 {
13051 PyThreadState* __tstate = wxPyBeginAllowThreads();
13052 result = (int)((wxSlider const *)arg1)->GetValue();
13053
13054 wxPyEndAllowThreads(__tstate);
13055 if (PyErr_Occurred()) SWIG_fail;
13056 }
13057 resultobj = SWIG_FromInt((int)result);
13058 return resultobj;
13059 fail:
13060 return NULL;
13061}
13062
13063
13064static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13065 PyObject *resultobj;
13066 wxSlider *arg1 = (wxSlider *) 0 ;
13067 int arg2 ;
13068 PyObject * obj0 = 0 ;
13069 PyObject * obj1 = 0 ;
13070 char *kwnames[] = {
13071 (char *) "self",(char *) "value", NULL
13072 };
13073
13074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13077 arg2 = (int) SWIG_AsInt(obj1);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 (arg1)->SetValue(arg2);
13082
13083 wxPyEndAllowThreads(__tstate);
13084 if (PyErr_Occurred()) SWIG_fail;
13085 }
13086 Py_INCREF(Py_None); resultobj = Py_None;
13087 return resultobj;
13088 fail:
13089 return NULL;
13090}
13091
13092
13093static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
13094 PyObject *resultobj;
13095 wxSlider *arg1 = (wxSlider *) 0 ;
13096 int arg2 ;
13097 int arg3 ;
13098 PyObject * obj0 = 0 ;
13099 PyObject * obj1 = 0 ;
13100 PyObject * obj2 = 0 ;
13101 char *kwnames[] = {
13102 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13103 };
13104
13105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13108 arg2 = (int) SWIG_AsInt(obj1);
13109 if (PyErr_Occurred()) SWIG_fail;
13110 arg3 = (int) SWIG_AsInt(obj2);
13111 if (PyErr_Occurred()) SWIG_fail;
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 (arg1)->SetRange(arg2,arg3);
13115
13116 wxPyEndAllowThreads(__tstate);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 }
13119 Py_INCREF(Py_None); resultobj = Py_None;
13120 return resultobj;
13121 fail:
13122 return NULL;
13123}
13124
13125
13126static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13127 PyObject *resultobj;
13128 wxSlider *arg1 = (wxSlider *) 0 ;
13129 int result;
13130 PyObject * obj0 = 0 ;
13131 char *kwnames[] = {
13132 (char *) "self", NULL
13133 };
13134
13135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13138 {
13139 PyThreadState* __tstate = wxPyBeginAllowThreads();
13140 result = (int)((wxSlider const *)arg1)->GetMin();
13141
13142 wxPyEndAllowThreads(__tstate);
13143 if (PyErr_Occurred()) SWIG_fail;
13144 }
13145 resultobj = SWIG_FromInt((int)result);
13146 return resultobj;
13147 fail:
13148 return NULL;
13149}
13150
13151
13152static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13153 PyObject *resultobj;
13154 wxSlider *arg1 = (wxSlider *) 0 ;
13155 int result;
13156 PyObject * obj0 = 0 ;
13157 char *kwnames[] = {
13158 (char *) "self", NULL
13159 };
13160
13161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13164 {
13165 PyThreadState* __tstate = wxPyBeginAllowThreads();
13166 result = (int)((wxSlider const *)arg1)->GetMax();
13167
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 resultobj = SWIG_FromInt((int)result);
13172 return resultobj;
13173 fail:
13174 return NULL;
13175}
13176
13177
13178static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
13179 PyObject *resultobj;
13180 wxSlider *arg1 = (wxSlider *) 0 ;
13181 int arg2 ;
13182 PyObject * obj0 = 0 ;
13183 PyObject * obj1 = 0 ;
13184 char *kwnames[] = {
13185 (char *) "self",(char *) "minValue", NULL
13186 };
13187
13188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13191 arg2 = (int) SWIG_AsInt(obj1);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 (arg1)->SetMin(arg2);
13196
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 Py_INCREF(Py_None); resultobj = Py_None;
13201 return resultobj;
13202 fail:
13203 return NULL;
13204}
13205
13206
13207static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
13208 PyObject *resultobj;
13209 wxSlider *arg1 = (wxSlider *) 0 ;
13210 int arg2 ;
13211 PyObject * obj0 = 0 ;
13212 PyObject * obj1 = 0 ;
13213 char *kwnames[] = {
13214 (char *) "self",(char *) "maxValue", NULL
13215 };
13216
13217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13220 arg2 = (int) SWIG_AsInt(obj1);
13221 if (PyErr_Occurred()) SWIG_fail;
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 (arg1)->SetMax(arg2);
13225
13226 wxPyEndAllowThreads(__tstate);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 Py_INCREF(Py_None); resultobj = Py_None;
13230 return resultobj;
13231 fail:
13232 return NULL;
13233}
13234
13235
13236static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13237 PyObject *resultobj;
13238 wxSlider *arg1 = (wxSlider *) 0 ;
13239 int arg2 ;
13240 PyObject * obj0 = 0 ;
13241 PyObject * obj1 = 0 ;
13242 char *kwnames[] = {
13243 (char *) "self",(char *) "lineSize", NULL
13244 };
13245
13246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13249 arg2 = (int) SWIG_AsInt(obj1);
13250 if (PyErr_Occurred()) SWIG_fail;
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 (arg1)->SetLineSize(arg2);
13254
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 Py_INCREF(Py_None); resultobj = Py_None;
13259 return resultobj;
13260 fail:
13261 return NULL;
13262}
13263
13264
13265static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13266 PyObject *resultobj;
13267 wxSlider *arg1 = (wxSlider *) 0 ;
13268 int arg2 ;
13269 PyObject * obj0 = 0 ;
13270 PyObject * obj1 = 0 ;
13271 char *kwnames[] = {
13272 (char *) "self",(char *) "pageSize", NULL
13273 };
13274
13275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13278 arg2 = (int) SWIG_AsInt(obj1);
13279 if (PyErr_Occurred()) SWIG_fail;
13280 {
13281 PyThreadState* __tstate = wxPyBeginAllowThreads();
13282 (arg1)->SetPageSize(arg2);
13283
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 Py_INCREF(Py_None); resultobj = Py_None;
13288 return resultobj;
13289 fail:
13290 return NULL;
13291}
13292
13293
13294static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13295 PyObject *resultobj;
13296 wxSlider *arg1 = (wxSlider *) 0 ;
13297 int result;
13298 PyObject * obj0 = 0 ;
13299 char *kwnames[] = {
13300 (char *) "self", NULL
13301 };
13302
13303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 result = (int)((wxSlider const *)arg1)->GetLineSize();
13309
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 resultobj = SWIG_FromInt((int)result);
13314 return resultobj;
13315 fail:
13316 return NULL;
13317}
13318
13319
13320static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13321 PyObject *resultobj;
13322 wxSlider *arg1 = (wxSlider *) 0 ;
13323 int result;
13324 PyObject * obj0 = 0 ;
13325 char *kwnames[] = {
13326 (char *) "self", NULL
13327 };
13328
13329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13332 {
13333 PyThreadState* __tstate = wxPyBeginAllowThreads();
13334 result = (int)((wxSlider const *)arg1)->GetPageSize();
13335
13336 wxPyEndAllowThreads(__tstate);
13337 if (PyErr_Occurred()) SWIG_fail;
13338 }
13339 resultobj = SWIG_FromInt((int)result);
13340 return resultobj;
13341 fail:
13342 return NULL;
13343}
13344
13345
13346static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13347 PyObject *resultobj;
13348 wxSlider *arg1 = (wxSlider *) 0 ;
13349 int arg2 ;
13350 PyObject * obj0 = 0 ;
13351 PyObject * obj1 = 0 ;
13352 char *kwnames[] = {
13353 (char *) "self",(char *) "lenPixels", NULL
13354 };
13355
13356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13359 arg2 = (int) SWIG_AsInt(obj1);
13360 if (PyErr_Occurred()) SWIG_fail;
13361 {
13362 PyThreadState* __tstate = wxPyBeginAllowThreads();
13363 (arg1)->SetThumbLength(arg2);
13364
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
13368 Py_INCREF(Py_None); resultobj = Py_None;
13369 return resultobj;
13370 fail:
13371 return NULL;
13372}
13373
13374
13375static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
13376 PyObject *resultobj;
13377 wxSlider *arg1 = (wxSlider *) 0 ;
13378 int result;
13379 PyObject * obj0 = 0 ;
13380 char *kwnames[] = {
13381 (char *) "self", NULL
13382 };
13383
13384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13387 {
13388 PyThreadState* __tstate = wxPyBeginAllowThreads();
13389 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13390
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 resultobj = SWIG_FromInt((int)result);
13395 return resultobj;
13396 fail:
13397 return NULL;
13398}
13399
13400
13401static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13402 PyObject *resultobj;
13403 wxSlider *arg1 = (wxSlider *) 0 ;
13404 int arg2 ;
13405 int arg3 = (int) 1 ;
13406 PyObject * obj0 = 0 ;
13407 PyObject * obj1 = 0 ;
13408 PyObject * obj2 = 0 ;
13409 char *kwnames[] = {
13410 (char *) "self",(char *) "n",(char *) "pos", NULL
13411 };
13412
13413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13416 arg2 = (int) SWIG_AsInt(obj1);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 if (obj2) {
13419 arg3 = (int) SWIG_AsInt(obj2);
13420 if (PyErr_Occurred()) SWIG_fail;
13421 }
13422 {
13423 PyThreadState* __tstate = wxPyBeginAllowThreads();
13424 (arg1)->SetTickFreq(arg2,arg3);
13425
13426 wxPyEndAllowThreads(__tstate);
13427 if (PyErr_Occurred()) SWIG_fail;
13428 }
13429 Py_INCREF(Py_None); resultobj = Py_None;
13430 return resultobj;
13431 fail:
13432 return NULL;
13433}
13434
13435
13436static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
13437 PyObject *resultobj;
13438 wxSlider *arg1 = (wxSlider *) 0 ;
13439 int result;
13440 PyObject * obj0 = 0 ;
13441 char *kwnames[] = {
13442 (char *) "self", NULL
13443 };
13444
13445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13448 {
13449 PyThreadState* __tstate = wxPyBeginAllowThreads();
13450 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13451
13452 wxPyEndAllowThreads(__tstate);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 resultobj = SWIG_FromInt((int)result);
13456 return resultobj;
13457 fail:
13458 return NULL;
13459}
13460
13461
13462static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
13463 PyObject *resultobj;
13464 wxSlider *arg1 = (wxSlider *) 0 ;
13465 PyObject * obj0 = 0 ;
13466 char *kwnames[] = {
13467 (char *) "self", NULL
13468 };
13469
13470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 (arg1)->ClearTicks();
13476
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 Py_INCREF(Py_None); resultobj = Py_None;
13481 return resultobj;
13482 fail:
13483 return NULL;
13484}
13485
13486
13487static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
13488 PyObject *resultobj;
13489 wxSlider *arg1 = (wxSlider *) 0 ;
13490 int arg2 ;
13491 PyObject * obj0 = 0 ;
13492 PyObject * obj1 = 0 ;
13493 char *kwnames[] = {
13494 (char *) "self",(char *) "tickPos", NULL
13495 };
13496
13497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13500 arg2 = (int) SWIG_AsInt(obj1);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 {
13503 PyThreadState* __tstate = wxPyBeginAllowThreads();
13504 (arg1)->SetTick(arg2);
13505
13506 wxPyEndAllowThreads(__tstate);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 Py_INCREF(Py_None); resultobj = Py_None;
13510 return resultobj;
13511 fail:
13512 return NULL;
13513}
13514
13515
13516static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
13517 PyObject *resultobj;
13518 wxSlider *arg1 = (wxSlider *) 0 ;
13519 PyObject * obj0 = 0 ;
13520 char *kwnames[] = {
13521 (char *) "self", NULL
13522 };
13523
13524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13527 {
13528 PyThreadState* __tstate = wxPyBeginAllowThreads();
13529 (arg1)->ClearSel();
13530
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 Py_INCREF(Py_None); resultobj = Py_None;
13535 return resultobj;
13536 fail:
13537 return NULL;
13538}
13539
13540
13541static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
13542 PyObject *resultobj;
13543 wxSlider *arg1 = (wxSlider *) 0 ;
13544 int result;
13545 PyObject * obj0 = 0 ;
13546 char *kwnames[] = {
13547 (char *) "self", NULL
13548 };
13549
13550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13553 {
13554 PyThreadState* __tstate = wxPyBeginAllowThreads();
13555 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13556
13557 wxPyEndAllowThreads(__tstate);
13558 if (PyErr_Occurred()) SWIG_fail;
13559 }
13560 resultobj = SWIG_FromInt((int)result);
13561 return resultobj;
13562 fail:
13563 return NULL;
13564}
13565
13566
13567static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
13568 PyObject *resultobj;
13569 wxSlider *arg1 = (wxSlider *) 0 ;
13570 int result;
13571 PyObject * obj0 = 0 ;
13572 char *kwnames[] = {
13573 (char *) "self", NULL
13574 };
13575
13576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = (int)((wxSlider const *)arg1)->GetSelStart();
13582
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = SWIG_FromInt((int)result);
13587 return resultobj;
13588 fail:
13589 return NULL;
13590}
13591
13592
13593static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj;
13595 wxSlider *arg1 = (wxSlider *) 0 ;
13596 int arg2 ;
13597 int arg3 ;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 PyObject * obj2 = 0 ;
13601 char *kwnames[] = {
13602 (char *) "self",(char *) "min",(char *) "max", NULL
13603 };
13604
13605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13608 arg2 = (int) SWIG_AsInt(obj1);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 arg3 = (int) SWIG_AsInt(obj2);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 {
13613 PyThreadState* __tstate = wxPyBeginAllowThreads();
13614 (arg1)->SetSelection(arg2,arg3);
13615
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 Py_INCREF(Py_None); resultobj = Py_None;
13620 return resultobj;
13621 fail:
13622 return NULL;
13623}
13624
13625
f20a2e1f
RD
13626static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
13627 PyObject *resultobj;
13628 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13629 wxVisualAttributes result;
13630 PyObject * obj0 = 0 ;
13631 char *kwnames[] = {
13632 (char *) "variant", NULL
13633 };
13634
13635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13636 if (obj0) {
13637 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 {
0439c23b 13641 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
13642 PyThreadState* __tstate = wxPyBeginAllowThreads();
13643 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13644
13645 wxPyEndAllowThreads(__tstate);
110da5b0 13646 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
13647 }
13648 {
13649 wxVisualAttributes * resultptr;
13650 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13651 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13652 }
13653 return resultobj;
13654 fail:
13655 return NULL;
13656}
13657
13658
d55e5bfc
RD
13659static PyObject * Slider_swigregister(PyObject *self, PyObject *args) {
13660 PyObject *obj;
13661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13662 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13663 Py_INCREF(obj);
13664 return Py_BuildValue((char *)"");
13665}
13666static int _wrap_ToggleButtonNameStr_set(PyObject *_val) {
13667 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13668 return 1;
13669}
13670
13671
13672static PyObject *_wrap_ToggleButtonNameStr_get() {
13673 PyObject *pyobj;
13674
13675 {
13676#if wxUSE_UNICODE
13677 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13678#else
13679 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13680#endif
13681 }
13682 return pyobj;
13683}
13684
13685
13686static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13687 PyObject *resultobj;
13688 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17
RD
13689 int arg2 = (int) -1 ;
13690 wxString const &arg3_defvalue = wxPyEmptyString ;
13691 wxString *arg3 = (wxString *) &arg3_defvalue ;
d55e5bfc
RD
13692 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13693 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13694 wxSize const &arg5_defvalue = wxDefaultSize ;
13695 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13696 long arg6 = (long) 0 ;
13697 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13698 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13699 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13700 wxString *arg8 = (wxString *) &arg8_defvalue ;
13701 wxToggleButton *result;
13702 bool temp3 = False ;
13703 wxPoint temp4 ;
13704 wxSize temp5 ;
13705 bool temp8 = False ;
13706 PyObject * obj0 = 0 ;
13707 PyObject * obj1 = 0 ;
13708 PyObject * obj2 = 0 ;
13709 PyObject * obj3 = 0 ;
13710 PyObject * obj4 = 0 ;
13711 PyObject * obj5 = 0 ;
13712 PyObject * obj6 = 0 ;
13713 PyObject * obj7 = 0 ;
13714 char *kwnames[] = {
13715 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13716 };
13717
bfddbb17 13718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
13719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
13721 if (obj1) {
13722 arg2 = (int) SWIG_AsInt(obj1);
13723 if (PyErr_Occurred()) SWIG_fail;
13724 }
13725 if (obj2) {
13726 {
13727 arg3 = wxString_in_helper(obj2);
13728 if (arg3 == NULL) SWIG_fail;
13729 temp3 = True;
13730 }
d55e5bfc
RD
13731 }
13732 if (obj3) {
13733 {
13734 arg4 = &temp4;
13735 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13736 }
13737 }
13738 if (obj4) {
13739 {
13740 arg5 = &temp5;
13741 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13742 }
13743 }
13744 if (obj5) {
13745 arg6 = (long) SWIG_AsLong(obj5);
13746 if (PyErr_Occurred()) SWIG_fail;
13747 }
13748 if (obj6) {
13749 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13750 SWIG_POINTER_EXCEPTION | 0)) == -1)
13751 SWIG_fail;
13752 if (arg7 == NULL) {
13753 PyErr_SetString(PyExc_TypeError,"null reference");
13754 SWIG_fail;
13755 }
13756 }
13757 if (obj7) {
13758 {
13759 arg8 = wxString_in_helper(obj7);
13760 if (arg8 == NULL) SWIG_fail;
13761 temp8 = True;
13762 }
13763 }
13764 {
0439c23b 13765 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
13766 PyThreadState* __tstate = wxPyBeginAllowThreads();
13767 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13768
13769 wxPyEndAllowThreads(__tstate);
110da5b0 13770 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
13771 }
13772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13773 {
13774 if (temp3)
13775 delete arg3;
13776 }
13777 {
13778 if (temp8)
13779 delete arg8;
13780 }
13781 return resultobj;
13782 fail:
13783 {
13784 if (temp3)
13785 delete arg3;
13786 }
13787 {
13788 if (temp8)
13789 delete arg8;
13790 }
13791 return NULL;
13792}
13793
13794
13795static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13796 PyObject *resultobj;
13797 wxToggleButton *result;
13798 char *kwnames[] = {
13799 NULL
13800 };
13801
13802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
13803 {
0439c23b 13804 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
13805 PyThreadState* __tstate = wxPyBeginAllowThreads();
13806 result = (wxToggleButton *)new wxToggleButton();
13807
13808 wxPyEndAllowThreads(__tstate);
110da5b0 13809 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
13810 }
13811 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13812 return resultobj;
13813 fail:
13814 return NULL;
13815}
13816
13817
121b9a67
RD
13818static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13819 PyObject *resultobj;
13820 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13821 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17
RD
13822 int arg3 = (int) -1 ;
13823 wxString const &arg4_defvalue = wxPyEmptyString ;
13824 wxString *arg4 = (wxString *) &arg4_defvalue ;
121b9a67
RD
13825 wxPoint const &arg5_defvalue = wxDefaultPosition ;
13826 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
13827 wxSize const &arg6_defvalue = wxDefaultSize ;
13828 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
13829 long arg7 = (long) 0 ;
13830 wxValidator const &arg8_defvalue = wxDefaultValidator ;
13831 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
13832 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
13833 wxString *arg9 = (wxString *) &arg9_defvalue ;
13834 bool result;
13835 bool temp4 = False ;
13836 wxPoint temp5 ;
13837 wxSize temp6 ;
13838 bool temp9 = False ;
13839 PyObject * obj0 = 0 ;
13840 PyObject * obj1 = 0 ;
13841 PyObject * obj2 = 0 ;
13842 PyObject * obj3 = 0 ;
13843 PyObject * obj4 = 0 ;
13844 PyObject * obj5 = 0 ;
13845 PyObject * obj6 = 0 ;
13846 PyObject * obj7 = 0 ;
13847 PyObject * obj8 = 0 ;
13848 char *kwnames[] = {
13849 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13850 };
13851
bfddbb17 13852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
121b9a67
RD
13853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
13857 if (obj2) {
13858 arg3 = (int) SWIG_AsInt(obj2);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 if (obj3) {
13862 {
13863 arg4 = wxString_in_helper(obj3);
13864 if (arg4 == NULL) SWIG_fail;
13865 temp4 = True;
13866 }
121b9a67
RD
13867 }
13868 if (obj4) {
13869 {
13870 arg5 = &temp5;
13871 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13872 }
13873 }
13874 if (obj5) {
13875 {
13876 arg6 = &temp6;
13877 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13878 }
13879 }
13880 if (obj6) {
13881 arg7 = (long) SWIG_AsLong(obj6);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 if (obj7) {
13885 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13886 SWIG_POINTER_EXCEPTION | 0)) == -1)
13887 SWIG_fail;
13888 if (arg8 == NULL) {
13889 PyErr_SetString(PyExc_TypeError,"null reference");
13890 SWIG_fail;
13891 }
13892 }
13893 if (obj8) {
13894 {
13895 arg9 = wxString_in_helper(obj8);
13896 if (arg9 == NULL) SWIG_fail;
13897 temp9 = True;
13898 }
13899 }
13900 {
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13903
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 {
13908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13909 }
13910 {
13911 if (temp4)
13912 delete arg4;
13913 }
13914 {
13915 if (temp9)
13916 delete arg9;
13917 }
13918 return resultobj;
13919 fail:
13920 {
13921 if (temp4)
13922 delete arg4;
13923 }
13924 {
13925 if (temp9)
13926 delete arg9;
13927 }
13928 return NULL;
13929}
13930
13931
13932static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj;
13934 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13935 bool arg2 ;
13936 PyObject * obj0 = 0 ;
13937 PyObject * obj1 = 0 ;
13938 char *kwnames[] = {
13939 (char *) "self",(char *) "value", NULL
13940 };
13941
13942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13945 arg2 = (bool) SWIG_AsBool(obj1);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 {
13948 PyThreadState* __tstate = wxPyBeginAllowThreads();
13949 (arg1)->SetValue(arg2);
13950
13951 wxPyEndAllowThreads(__tstate);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 Py_INCREF(Py_None); resultobj = Py_None;
13955 return resultobj;
13956 fail:
13957 return NULL;
13958}
13959
13960
13961static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13962 PyObject *resultobj;
13963 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13964 bool result;
13965 PyObject * obj0 = 0 ;
13966 char *kwnames[] = {
13967 (char *) "self", NULL
13968 };
13969
13970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
13971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
13972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 result = (bool)((wxToggleButton const *)arg1)->GetValue();
13976
13977 wxPyEndAllowThreads(__tstate);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 }
13980 {
13981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13982 }
13983 return resultobj;
13984 fail:
13985 return NULL;
13986}
13987
13988
13989static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
13990 PyObject *resultobj;
13991 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
13992 wxString *arg2 = 0 ;
13993 bool temp2 = False ;
13994 PyObject * obj0 = 0 ;
13995 PyObject * obj1 = 0 ;
13996 char *kwnames[] = {
13997 (char *) "self",(char *) "label", NULL
13998 };
13999
14000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14003 {
14004 arg2 = wxString_in_helper(obj1);
14005 if (arg2 == NULL) SWIG_fail;
14006 temp2 = True;
14007 }
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
14010 (arg1)->SetLabel((wxString const &)*arg2);
14011
14012 wxPyEndAllowThreads(__tstate);
14013 if (PyErr_Occurred()) SWIG_fail;
14014 }
14015 Py_INCREF(Py_None); resultobj = Py_None;
14016 {
14017 if (temp2)
14018 delete arg2;
14019 }
14020 return resultobj;
14021 fail:
14022 {
14023 if (temp2)
14024 delete arg2;
14025 }
14026 return NULL;
14027}
14028
14029
f20a2e1f
RD
14030static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14031 PyObject *resultobj;
14032 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14033 wxVisualAttributes result;
14034 PyObject * obj0 = 0 ;
14035 char *kwnames[] = {
14036 (char *) "variant", NULL
14037 };
14038
14039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14040 if (obj0) {
14041 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14042 if (PyErr_Occurred()) SWIG_fail;
14043 }
14044 {
0439c23b 14045 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
14046 PyThreadState* __tstate = wxPyBeginAllowThreads();
14047 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14048
14049 wxPyEndAllowThreads(__tstate);
110da5b0 14050 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
14051 }
14052 {
14053 wxVisualAttributes * resultptr;
14054 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14055 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14056 }
14057 return resultobj;
14058 fail:
14059 return NULL;
14060}
14061
14062
d55e5bfc
RD
14063static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) {
14064 PyObject *obj;
14065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14066 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14067 Py_INCREF(obj);
14068 return Py_BuildValue((char *)"");
14069}
14070static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) {
14071 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14072 return 1;
14073}
14074
14075
14076static PyObject *_wrap_NOTEBOOK_NAME_get() {
14077 PyObject *pyobj;
14078
14079 {
14080#if wxUSE_UNICODE
14081 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14082#else
14083 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14084#endif
14085 }
14086 return pyobj;
14087}
14088
14089
14090static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14091 PyObject *resultobj;
14092 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14093 size_t result;
14094 PyObject * obj0 = 0 ;
14095 char *kwnames[] = {
14096 (char *) "self", NULL
14097 };
14098
14099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14102 {
14103 PyThreadState* __tstate = wxPyBeginAllowThreads();
14104 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14105
14106 wxPyEndAllowThreads(__tstate);
14107 if (PyErr_Occurred()) SWIG_fail;
14108 }
14109 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14110 return resultobj;
14111 fail:
14112 return NULL;
14113}
14114
14115
14116static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14117 PyObject *resultobj;
14118 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14119 size_t arg2 ;
14120 wxWindow *result;
14121 PyObject * obj0 = 0 ;
14122 PyObject * obj1 = 0 ;
14123 char *kwnames[] = {
14124 (char *) "self",(char *) "n", NULL
14125 };
14126
14127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14130 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = (wxWindow *)(arg1)->GetPage(arg2);
14135
14136 wxPyEndAllowThreads(__tstate);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 }
14139 {
412d302d 14140 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
14141 }
14142 return resultobj;
14143 fail:
14144 return NULL;
14145}
14146
14147
14148static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14149 PyObject *resultobj;
14150 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14151 int result;
14152 PyObject * obj0 = 0 ;
14153 char *kwnames[] = {
14154 (char *) "self", NULL
14155 };
14156
14157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14160 {
14161 PyThreadState* __tstate = wxPyBeginAllowThreads();
14162 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14163
14164 wxPyEndAllowThreads(__tstate);
14165 if (PyErr_Occurred()) SWIG_fail;
14166 }
14167 resultobj = SWIG_FromInt((int)result);
14168 return resultobj;
14169 fail:
14170 return NULL;
14171}
14172
14173
14174static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14175 PyObject *resultobj;
14176 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14177 size_t arg2 ;
14178 wxString *arg3 = 0 ;
14179 bool result;
14180 bool temp3 = False ;
14181 PyObject * obj0 = 0 ;
14182 PyObject * obj1 = 0 ;
14183 PyObject * obj2 = 0 ;
14184 char *kwnames[] = {
14185 (char *) "self",(char *) "n",(char *) "strText", NULL
14186 };
14187
14188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14191 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14192 if (PyErr_Occurred()) SWIG_fail;
14193 {
14194 arg3 = wxString_in_helper(obj2);
14195 if (arg3 == NULL) SWIG_fail;
14196 temp3 = True;
14197 }
14198 {
14199 PyThreadState* __tstate = wxPyBeginAllowThreads();
14200 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14201
14202 wxPyEndAllowThreads(__tstate);
14203 if (PyErr_Occurred()) SWIG_fail;
14204 }
14205 {
14206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14207 }
14208 {
14209 if (temp3)
14210 delete arg3;
14211 }
14212 return resultobj;
14213 fail:
14214 {
14215 if (temp3)
14216 delete arg3;
14217 }
14218 return NULL;
14219}
14220
14221
14222static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) {
14223 PyObject *resultobj;
14224 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14225 size_t arg2 ;
14226 wxString result;
14227 PyObject * obj0 = 0 ;
14228 PyObject * obj1 = 0 ;
14229 char *kwnames[] = {
14230 (char *) "self",(char *) "n", NULL
14231 };
14232
14233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14236 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14241
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 {
14246#if wxUSE_UNICODE
14247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14248#else
14249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14250#endif
14251 }
14252 return resultobj;
14253 fail:
14254 return NULL;
14255}
14256
14257
14258static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14259 PyObject *resultobj;
14260 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14261 wxImageList *arg2 = (wxImageList *) 0 ;
14262 PyObject * obj0 = 0 ;
14263 PyObject * obj1 = 0 ;
14264 char *kwnames[] = {
14265 (char *) "self",(char *) "imageList", NULL
14266 };
14267
14268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14271 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14273 {
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 (arg1)->SetImageList(arg2);
14276
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 Py_INCREF(Py_None); resultobj = Py_None;
14281 return resultobj;
14282 fail:
14283 return NULL;
14284}
14285
14286
14287static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14288 PyObject *resultobj;
14289 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14290 wxImageList *arg2 = (wxImageList *) 0 ;
14291 PyObject * obj0 = 0 ;
14292 PyObject * obj1 = 0 ;
14293 char *kwnames[] = {
14294 (char *) "self",(char *) "imageList", NULL
14295 };
14296
14297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14301 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14302 {
14303 PyThreadState* __tstate = wxPyBeginAllowThreads();
14304 (arg1)->AssignImageList(arg2);
14305
14306 wxPyEndAllowThreads(__tstate);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 }
14309 Py_INCREF(Py_None); resultobj = Py_None;
14310 return resultobj;
14311 fail:
14312 return NULL;
14313}
14314
14315
14316static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14317 PyObject *resultobj;
14318 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14319 wxImageList *result;
14320 PyObject * obj0 = 0 ;
14321 char *kwnames[] = {
14322 (char *) "self", NULL
14323 };
14324
14325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14328 {
14329 PyThreadState* __tstate = wxPyBeginAllowThreads();
14330 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14331
14332 wxPyEndAllowThreads(__tstate);
14333 if (PyErr_Occurred()) SWIG_fail;
14334 }
14335 {
412d302d 14336 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
14337 }
14338 return resultobj;
14339 fail:
14340 return NULL;
14341}
14342
14343
14344static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14345 PyObject *resultobj;
14346 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14347 size_t arg2 ;
14348 int result;
14349 PyObject * obj0 = 0 ;
14350 PyObject * obj1 = 0 ;
14351 char *kwnames[] = {
14352 (char *) "self",(char *) "n", NULL
14353 };
14354
14355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14358 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14359 if (PyErr_Occurred()) SWIG_fail;
14360 {
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
14362 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14363
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 resultobj = SWIG_FromInt((int)result);
14368 return resultobj;
14369 fail:
14370 return NULL;
14371}
14372
14373
14374static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) {
14375 PyObject *resultobj;
14376 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14377 size_t arg2 ;
14378 int arg3 ;
14379 bool result;
14380 PyObject * obj0 = 0 ;
14381 PyObject * obj1 = 0 ;
14382 PyObject * obj2 = 0 ;
14383 char *kwnames[] = {
14384 (char *) "self",(char *) "n",(char *) "imageId", NULL
14385 };
14386
14387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14390 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14391 if (PyErr_Occurred()) SWIG_fail;
14392 arg3 = (int) SWIG_AsInt(obj2);
14393 if (PyErr_Occurred()) SWIG_fail;
14394 {
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14397
14398 wxPyEndAllowThreads(__tstate);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 }
14401 {
14402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14403 }
14404 return resultobj;
14405 fail:
14406 return NULL;
14407}
14408
14409
14410static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14411 PyObject *resultobj;
14412 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14413 wxSize *arg2 = 0 ;
14414 wxSize temp2 ;
14415 PyObject * obj0 = 0 ;
14416 PyObject * obj1 = 0 ;
14417 char *kwnames[] = {
14418 (char *) "self",(char *) "size", NULL
14419 };
14420
14421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14424 {
14425 arg2 = &temp2;
14426 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14427 }
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 (arg1)->SetPageSize((wxSize const &)*arg2);
14431
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 Py_INCREF(Py_None); resultobj = Py_None;
14436 return resultobj;
14437 fail:
14438 return NULL;
14439}
14440
14441
14442static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj;
14444 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14445 wxSize *arg2 = 0 ;
14446 wxSize result;
14447 wxSize temp2 ;
14448 PyObject * obj0 = 0 ;
14449 PyObject * obj1 = 0 ;
14450 char *kwnames[] = {
14451 (char *) "self",(char *) "sizePage", NULL
14452 };
14453
14454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14457 {
14458 arg2 = &temp2;
14459 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14460 }
14461 {
14462 PyThreadState* __tstate = wxPyBeginAllowThreads();
14463 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14464
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
14468 {
14469 wxSize * resultptr;
14470 resultptr = new wxSize((wxSize &) result);
14471 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14472 }
14473 return resultobj;
14474 fail:
14475 return NULL;
14476}
14477
14478
14479static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14480 PyObject *resultobj;
14481 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14482 size_t arg2 ;
14483 bool result;
14484 PyObject * obj0 = 0 ;
14485 PyObject * obj1 = 0 ;
14486 char *kwnames[] = {
14487 (char *) "self",(char *) "n", NULL
14488 };
14489
14490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14493 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = (bool)(arg1)->DeletePage(arg2);
14498
14499 wxPyEndAllowThreads(__tstate);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 {
14503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14504 }
14505 return resultobj;
14506 fail:
14507 return NULL;
14508}
14509
14510
14511static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) {
14512 PyObject *resultobj;
14513 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14514 size_t arg2 ;
14515 bool result;
14516 PyObject * obj0 = 0 ;
14517 PyObject * obj1 = 0 ;
14518 char *kwnames[] = {
14519 (char *) "self",(char *) "n", NULL
14520 };
14521
14522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14525 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 {
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = (bool)(arg1)->RemovePage(arg2);
14530
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 {
14535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14536 }
14537 return resultobj;
14538 fail:
14539 return NULL;
14540}
14541
14542
14543static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
14544 PyObject *resultobj;
14545 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14546 bool result;
14547 PyObject * obj0 = 0 ;
14548 char *kwnames[] = {
14549 (char *) "self", NULL
14550 };
14551
14552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14555 {
14556 PyThreadState* __tstate = wxPyBeginAllowThreads();
14557 result = (bool)(arg1)->DeleteAllPages();
14558
14559 wxPyEndAllowThreads(__tstate);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 }
14562 {
14563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14564 }
14565 return resultobj;
14566 fail:
14567 return NULL;
14568}
14569
14570
14571static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14572 PyObject *resultobj;
14573 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14574 wxWindow *arg2 = (wxWindow *) 0 ;
14575 wxString *arg3 = 0 ;
14576 bool arg4 = (bool) False ;
14577 int arg5 = (int) -1 ;
14578 bool result;
14579 bool temp3 = False ;
14580 PyObject * obj0 = 0 ;
14581 PyObject * obj1 = 0 ;
14582 PyObject * obj2 = 0 ;
14583 PyObject * obj3 = 0 ;
14584 PyObject * obj4 = 0 ;
14585 char *kwnames[] = {
14586 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14587 };
14588
14589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14594 {
14595 arg3 = wxString_in_helper(obj2);
14596 if (arg3 == NULL) SWIG_fail;
14597 temp3 = True;
14598 }
14599 if (obj3) {
14600 arg4 = (bool) SWIG_AsBool(obj3);
14601 if (PyErr_Occurred()) SWIG_fail;
14602 }
14603 if (obj4) {
14604 arg5 = (int) SWIG_AsInt(obj4);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 {
14608 PyThreadState* __tstate = wxPyBeginAllowThreads();
14609 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14610
14611 wxPyEndAllowThreads(__tstate);
14612 if (PyErr_Occurred()) SWIG_fail;
14613 }
14614 {
14615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14616 }
14617 {
14618 if (temp3)
14619 delete arg3;
14620 }
14621 return resultobj;
14622 fail:
14623 {
14624 if (temp3)
14625 delete arg3;
14626 }
14627 return NULL;
14628}
14629
14630
14631static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj;
14633 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14634 size_t arg2 ;
14635 wxWindow *arg3 = (wxWindow *) 0 ;
14636 wxString *arg4 = 0 ;
14637 bool arg5 = (bool) False ;
14638 int arg6 = (int) -1 ;
14639 bool result;
14640 bool temp4 = False ;
14641 PyObject * obj0 = 0 ;
14642 PyObject * obj1 = 0 ;
14643 PyObject * obj2 = 0 ;
14644 PyObject * obj3 = 0 ;
14645 PyObject * obj4 = 0 ;
14646 PyObject * obj5 = 0 ;
14647 char *kwnames[] = {
14648 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14649 };
14650
14651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14654 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14658 {
14659 arg4 = wxString_in_helper(obj3);
14660 if (arg4 == NULL) SWIG_fail;
14661 temp4 = True;
14662 }
14663 if (obj4) {
14664 arg5 = (bool) SWIG_AsBool(obj4);
14665 if (PyErr_Occurred()) SWIG_fail;
14666 }
14667 if (obj5) {
14668 arg6 = (int) SWIG_AsInt(obj5);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 }
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14674
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 {
14679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14680 }
14681 {
14682 if (temp4)
14683 delete arg4;
14684 }
14685 return resultobj;
14686 fail:
14687 {
14688 if (temp4)
14689 delete arg4;
14690 }
14691 return NULL;
14692}
14693
14694
14695static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14698 size_t arg2 ;
14699 int result;
14700 PyObject * obj0 = 0 ;
14701 PyObject * obj1 = 0 ;
14702 char *kwnames[] = {
14703 (char *) "self",(char *) "n", NULL
14704 };
14705
14706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14709 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = (int)(arg1)->SetSelection(arg2);
14714
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 resultobj = SWIG_FromInt((int)result);
14719 return resultobj;
14720 fail:
14721 return NULL;
14722}
14723
14724
14725static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj;
14727 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14728 bool arg2 = (bool) True ;
14729 PyObject * obj0 = 0 ;
14730 PyObject * obj1 = 0 ;
14731 char *kwnames[] = {
14732 (char *) "self",(char *) "forward", NULL
14733 };
14734
14735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14738 if (obj1) {
14739 arg2 = (bool) SWIG_AsBool(obj1);
14740 if (PyErr_Occurred()) SWIG_fail;
14741 }
14742 {
14743 PyThreadState* __tstate = wxPyBeginAllowThreads();
14744 (arg1)->AdvanceSelection(arg2);
14745
14746 wxPyEndAllowThreads(__tstate);
14747 if (PyErr_Occurred()) SWIG_fail;
14748 }
14749 Py_INCREF(Py_None); resultobj = Py_None;
14750 return resultobj;
14751 fail:
14752 return NULL;
14753}
14754
14755
f20a2e1f
RD
14756static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14757 PyObject *resultobj;
14758 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14759 wxVisualAttributes result;
14760 PyObject * obj0 = 0 ;
14761 char *kwnames[] = {
14762 (char *) "variant", NULL
14763 };
14764
14765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14766 if (obj0) {
14767 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14768 if (PyErr_Occurred()) SWIG_fail;
14769 }
14770 {
0439c23b 14771 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14774
14775 wxPyEndAllowThreads(__tstate);
110da5b0 14776 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
14777 }
14778 {
14779 wxVisualAttributes * resultptr;
14780 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14781 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14782 }
14783 return resultobj;
14784 fail:
14785 return NULL;
14786}
14787
14788
d55e5bfc
RD
14789static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) {
14790 PyObject *obj;
14791 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14792 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
14793 Py_INCREF(obj);
14794 return Py_BuildValue((char *)"");
14795}
14796static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14797 PyObject *resultobj;
14798 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14799 int arg2 = (int) 0 ;
14800 int arg3 = (int) -1 ;
14801 int arg4 = (int) -1 ;
14802 wxBookCtrlEvent *result;
14803 PyObject * obj0 = 0 ;
14804 PyObject * obj1 = 0 ;
14805 PyObject * obj2 = 0 ;
14806 PyObject * obj3 = 0 ;
14807 char *kwnames[] = {
14808 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
14809 };
14810
14811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14812 if (obj0) {
14813 arg1 = (wxEventType) SWIG_AsInt(obj0);
14814 if (PyErr_Occurred()) SWIG_fail;
14815 }
14816 if (obj1) {
14817 arg2 = (int) SWIG_AsInt(obj1);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 if (obj2) {
14821 arg3 = (int) SWIG_AsInt(obj2);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 if (obj3) {
14825 arg4 = (int) SWIG_AsInt(obj3);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 }
14828 {
14829 PyThreadState* __tstate = wxPyBeginAllowThreads();
14830 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
14831
14832 wxPyEndAllowThreads(__tstate);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 }
14835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
14836 return resultobj;
14837 fail:
14838 return NULL;
14839}
14840
14841
14842static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14843 PyObject *resultobj;
14844 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14845 int result;
14846 PyObject * obj0 = 0 ;
14847 char *kwnames[] = {
14848 (char *) "self", NULL
14849 };
14850
14851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
14852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14854 {
14855 PyThreadState* __tstate = wxPyBeginAllowThreads();
14856 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
14857
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 resultobj = SWIG_FromInt((int)result);
14862 return resultobj;
14863 fail:
14864 return NULL;
14865}
14866
14867
14868static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14869 PyObject *resultobj;
14870 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14871 int arg2 ;
14872 PyObject * obj0 = 0 ;
14873 PyObject * obj1 = 0 ;
14874 char *kwnames[] = {
14875 (char *) "self",(char *) "nSel", NULL
14876 };
14877
14878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14881 arg2 = (int) SWIG_AsInt(obj1);
14882 if (PyErr_Occurred()) SWIG_fail;
14883 {
14884 PyThreadState* __tstate = wxPyBeginAllowThreads();
14885 (arg1)->SetSelection(arg2);
14886
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 Py_INCREF(Py_None); resultobj = Py_None;
14891 return resultobj;
14892 fail:
14893 return NULL;
14894}
14895
14896
14897static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14898 PyObject *resultobj;
14899 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14900 int result;
14901 PyObject * obj0 = 0 ;
14902 char *kwnames[] = {
14903 (char *) "self", NULL
14904 };
14905
14906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
14907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
14912
14913 wxPyEndAllowThreads(__tstate);
14914 if (PyErr_Occurred()) SWIG_fail;
14915 }
14916 resultobj = SWIG_FromInt((int)result);
14917 return resultobj;
14918 fail:
14919 return NULL;
14920}
14921
14922
14923static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj;
14925 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
14926 int arg2 ;
14927 PyObject * obj0 = 0 ;
14928 PyObject * obj1 = 0 ;
14929 char *kwnames[] = {
14930 (char *) "self",(char *) "nOldSel", NULL
14931 };
14932
14933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
14934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
14935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14936 arg2 = (int) SWIG_AsInt(obj1);
14937 if (PyErr_Occurred()) SWIG_fail;
14938 {
14939 PyThreadState* __tstate = wxPyBeginAllowThreads();
14940 (arg1)->SetOldSelection(arg2);
14941
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 Py_INCREF(Py_None); resultobj = Py_None;
14946 return resultobj;
14947 fail:
14948 return NULL;
14949}
14950
14951
14952static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) {
14953 PyObject *obj;
14954 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14955 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
14956 Py_INCREF(obj);
14957 return Py_BuildValue((char *)"");
14958}
14959static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) {
14960 PyObject *resultobj;
14961 wxWindow *arg1 = (wxWindow *) 0 ;
14962 int arg2 = (int) -1 ;
14963 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14964 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14965 wxSize const &arg4_defvalue = wxDefaultSize ;
14966 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14967 long arg5 = (long) 0 ;
14968 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
14969 wxString *arg6 = (wxString *) &arg6_defvalue ;
14970 wxNotebook *result;
14971 wxPoint temp3 ;
14972 wxSize temp4 ;
14973 bool temp6 = False ;
14974 PyObject * obj0 = 0 ;
14975 PyObject * obj1 = 0 ;
14976 PyObject * obj2 = 0 ;
14977 PyObject * obj3 = 0 ;
14978 PyObject * obj4 = 0 ;
14979 PyObject * obj5 = 0 ;
14980 char *kwnames[] = {
14981 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14982 };
14983
14984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14987 if (obj1) {
14988 arg2 = (int) SWIG_AsInt(obj1);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 if (obj2) {
14992 {
14993 arg3 = &temp3;
14994 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14995 }
14996 }
14997 if (obj3) {
14998 {
14999 arg4 = &temp4;
15000 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15001 }
15002 }
15003 if (obj4) {
15004 arg5 = (long) SWIG_AsLong(obj4);
15005 if (PyErr_Occurred()) SWIG_fail;
15006 }
15007 if (obj5) {
15008 {
15009 arg6 = wxString_in_helper(obj5);
15010 if (arg6 == NULL) SWIG_fail;
15011 temp6 = True;
15012 }
15013 }
15014 {
0439c23b 15015 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15016 PyThreadState* __tstate = wxPyBeginAllowThreads();
15017 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15018
15019 wxPyEndAllowThreads(__tstate);
110da5b0 15020 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 15021 }
b0f7404b 15022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
d55e5bfc
RD
15023 {
15024 if (temp6)
15025 delete arg6;
15026 }
15027 return resultobj;
15028 fail:
15029 {
15030 if (temp6)
15031 delete arg6;
15032 }
15033 return NULL;
15034}
15035
15036
15037static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15038 PyObject *resultobj;
15039 wxNotebook *result;
15040 char *kwnames[] = {
15041 NULL
15042 };
15043
15044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15045 {
0439c23b 15046 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15047 PyThreadState* __tstate = wxPyBeginAllowThreads();
15048 result = (wxNotebook *)new wxNotebook();
15049
15050 wxPyEndAllowThreads(__tstate);
110da5b0 15051 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 15052 }
b0f7404b 15053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
d55e5bfc
RD
15054 return resultobj;
15055 fail:
15056 return NULL;
15057}
15058
15059
15060static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15061 PyObject *resultobj;
15062 wxNotebook *arg1 = (wxNotebook *) 0 ;
15063 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17 15064 int arg3 = (int) -1 ;
d55e5bfc
RD
15065 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15066 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15067 wxSize const &arg5_defvalue = wxDefaultSize ;
15068 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15069 long arg6 = (long) 0 ;
15070 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15071 wxString *arg7 = (wxString *) &arg7_defvalue ;
15072 bool result;
15073 wxPoint temp4 ;
15074 wxSize temp5 ;
15075 bool temp7 = False ;
15076 PyObject * obj0 = 0 ;
15077 PyObject * obj1 = 0 ;
15078 PyObject * obj2 = 0 ;
15079 PyObject * obj3 = 0 ;
15080 PyObject * obj4 = 0 ;
15081 PyObject * obj5 = 0 ;
15082 PyObject * obj6 = 0 ;
15083 char *kwnames[] = {
15084 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15085 };
15086
bfddbb17 15087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
15088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15090 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
15092 if (obj2) {
15093 arg3 = (int) SWIG_AsInt(obj2);
15094 if (PyErr_Occurred()) SWIG_fail;
15095 }
d55e5bfc
RD
15096 if (obj3) {
15097 {
15098 arg4 = &temp4;
15099 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15100 }
15101 }
15102 if (obj4) {
15103 {
15104 arg5 = &temp5;
15105 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15106 }
15107 }
15108 if (obj5) {
15109 arg6 = (long) SWIG_AsLong(obj5);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 if (obj6) {
15113 {
15114 arg7 = wxString_in_helper(obj6);
15115 if (arg7 == NULL) SWIG_fail;
15116 temp7 = True;
15117 }
15118 }
15119 {
15120 PyThreadState* __tstate = wxPyBeginAllowThreads();
15121 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15122
15123 wxPyEndAllowThreads(__tstate);
15124 if (PyErr_Occurred()) SWIG_fail;
15125 }
15126 {
15127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15128 }
15129 {
15130 if (temp7)
15131 delete arg7;
15132 }
15133 return resultobj;
15134 fail:
15135 {
15136 if (temp7)
15137 delete arg7;
15138 }
15139 return NULL;
15140}
15141
15142
15143static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15144 PyObject *resultobj;
15145 wxNotebook *arg1 = (wxNotebook *) 0 ;
15146 int result;
15147 PyObject * obj0 = 0 ;
15148 char *kwnames[] = {
15149 (char *) "self", NULL
15150 };
15151
15152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15155 {
15156 PyThreadState* __tstate = wxPyBeginAllowThreads();
15157 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15158
15159 wxPyEndAllowThreads(__tstate);
15160 if (PyErr_Occurred()) SWIG_fail;
15161 }
15162 resultobj = SWIG_FromInt((int)result);
15163 return resultobj;
15164 fail:
15165 return NULL;
15166}
15167
15168
15169static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) {
15170 PyObject *resultobj;
15171 wxNotebook *arg1 = (wxNotebook *) 0 ;
15172 wxSize *arg2 = 0 ;
15173 wxSize temp2 ;
15174 PyObject * obj0 = 0 ;
15175 PyObject * obj1 = 0 ;
15176 char *kwnames[] = {
15177 (char *) "self",(char *) "padding", NULL
15178 };
15179
15180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15183 {
15184 arg2 = &temp2;
15185 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15186 }
15187 {
15188 PyThreadState* __tstate = wxPyBeginAllowThreads();
15189 (arg1)->SetPadding((wxSize const &)*arg2);
15190
15191 wxPyEndAllowThreads(__tstate);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 Py_INCREF(Py_None); resultobj = Py_None;
15195 return resultobj;
15196 fail:
15197 return NULL;
15198}
15199
15200
15201static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15202 PyObject *resultobj;
15203 wxNotebook *arg1 = (wxNotebook *) 0 ;
15204 wxSize *arg2 = 0 ;
15205 wxSize temp2 ;
15206 PyObject * obj0 = 0 ;
15207 PyObject * obj1 = 0 ;
15208 char *kwnames[] = {
15209 (char *) "self",(char *) "sz", NULL
15210 };
15211
15212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15215 {
15216 arg2 = &temp2;
15217 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15218 }
15219 {
15220 PyThreadState* __tstate = wxPyBeginAllowThreads();
15221 (arg1)->SetTabSize((wxSize const &)*arg2);
15222
15223 wxPyEndAllowThreads(__tstate);
15224 if (PyErr_Occurred()) SWIG_fail;
15225 }
15226 Py_INCREF(Py_None); resultobj = Py_None;
15227 return resultobj;
15228 fail:
15229 return NULL;
15230}
15231
15232
15233static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
15234 PyObject *resultobj;
15235 wxNotebook *arg1 = (wxNotebook *) 0 ;
15236 wxPoint *arg2 = 0 ;
15237 long *arg3 = (long *) 0 ;
15238 int result;
15239 wxPoint temp2 ;
15240 long temp3 ;
15241 PyObject * obj0 = 0 ;
15242 PyObject * obj1 = 0 ;
15243 char *kwnames[] = {
15244 (char *) "self",(char *) "pt", NULL
15245 };
15246
15247 arg3 = &temp3;
15248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15251 {
15252 arg2 = &temp2;
15253 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15254 }
15255 {
15256 PyThreadState* __tstate = wxPyBeginAllowThreads();
15257 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15258
15259 wxPyEndAllowThreads(__tstate);
15260 if (PyErr_Occurred()) SWIG_fail;
15261 }
15262 resultobj = SWIG_FromInt((int)result);
15263 {
15264 PyObject *o = PyInt_FromLong((long) (*arg3));
15265 resultobj = t_output_helper(resultobj,o);
15266 }
15267 return resultobj;
15268 fail:
15269 return NULL;
15270}
15271
15272
15273static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
15274 PyObject *resultobj;
15275 wxNotebook *arg1 = (wxNotebook *) 0 ;
15276 wxSize *arg2 = 0 ;
15277 wxSize result;
15278 wxSize temp2 ;
15279 PyObject * obj0 = 0 ;
15280 PyObject * obj1 = 0 ;
15281 char *kwnames[] = {
15282 (char *) "self",(char *) "sizePage", NULL
15283 };
15284
15285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15288 {
15289 arg2 = &temp2;
15290 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15291 }
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15295
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 {
15300 wxSize * resultptr;
15301 resultptr = new wxSize((wxSize &) result);
15302 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15303 }
15304 return resultobj;
15305 fail:
15306 return NULL;
15307}
15308
15309
f20a2e1f
RD
15310static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
15311 PyObject *resultobj;
15312 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15313 wxVisualAttributes result;
15314 PyObject * obj0 = 0 ;
15315 char *kwnames[] = {
15316 (char *) "variant", NULL
15317 };
15318
15319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15320 if (obj0) {
15321 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 {
0439c23b 15325 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
15326 PyThreadState* __tstate = wxPyBeginAllowThreads();
15327 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15328
15329 wxPyEndAllowThreads(__tstate);
110da5b0 15330 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
15331 }
15332 {
15333 wxVisualAttributes * resultptr;
15334 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15335 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15336 }
15337 return resultobj;
15338 fail:
15339 return NULL;
15340}
15341
15342
d55e5bfc
RD
15343static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) {
15344 PyObject *obj;
15345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15346 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15347 Py_INCREF(obj);
15348 return Py_BuildValue((char *)"");
15349}
15350static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15351 PyObject *resultobj;
15352 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15353 int arg2 = (int) 0 ;
15354 int arg3 = (int) -1 ;
15355 int arg4 = (int) -1 ;
15356 wxNotebookEvent *result;
15357 PyObject * obj0 = 0 ;
15358 PyObject * obj1 = 0 ;
15359 PyObject * obj2 = 0 ;
15360 PyObject * obj3 = 0 ;
15361 char *kwnames[] = {
15362 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15363 };
15364
15365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15366 if (obj0) {
15367 arg1 = (wxEventType) SWIG_AsInt(obj0);
15368 if (PyErr_Occurred()) SWIG_fail;
15369 }
15370 if (obj1) {
15371 arg2 = (int) SWIG_AsInt(obj1);
15372 if (PyErr_Occurred()) SWIG_fail;
15373 }
15374 if (obj2) {
15375 arg3 = (int) SWIG_AsInt(obj2);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 if (obj3) {
15379 arg4 = (int) SWIG_AsInt(obj3);
15380 if (PyErr_Occurred()) SWIG_fail;
15381 }
15382 {
15383 PyThreadState* __tstate = wxPyBeginAllowThreads();
15384 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15385
15386 wxPyEndAllowThreads(__tstate);
15387 if (PyErr_Occurred()) SWIG_fail;
15388 }
15389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15390 return resultobj;
15391 fail:
15392 return NULL;
15393}
15394
15395
15396static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) {
15397 PyObject *obj;
15398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15399 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15400 Py_INCREF(obj);
15401 return Py_BuildValue((char *)"");
15402}
15403static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15404 PyObject *resultobj;
15405 wxWindow *arg1 = (wxWindow *) 0 ;
15406 int arg2 = (int) -1 ;
15407 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15408 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15409 wxSize const &arg4_defvalue = wxDefaultSize ;
15410 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15411 long arg5 = (long) 0 ;
15412 wxString const &arg6_defvalue = wxPyEmptyString ;
15413 wxString *arg6 = (wxString *) &arg6_defvalue ;
15414 wxListbook *result;
15415 wxPoint temp3 ;
15416 wxSize temp4 ;
15417 bool temp6 = False ;
15418 PyObject * obj0 = 0 ;
15419 PyObject * obj1 = 0 ;
15420 PyObject * obj2 = 0 ;
15421 PyObject * obj3 = 0 ;
15422 PyObject * obj4 = 0 ;
15423 PyObject * obj5 = 0 ;
15424 char *kwnames[] = {
15425 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15426 };
15427
15428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15431 if (obj1) {
15432 arg2 = (int) SWIG_AsInt(obj1);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 if (obj2) {
15436 {
15437 arg3 = &temp3;
15438 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15439 }
15440 }
15441 if (obj3) {
15442 {
15443 arg4 = &temp4;
15444 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15445 }
15446 }
15447 if (obj4) {
15448 arg5 = (long) SWIG_AsLong(obj4);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 if (obj5) {
15452 {
15453 arg6 = wxString_in_helper(obj5);
15454 if (arg6 == NULL) SWIG_fail;
15455 temp6 = True;
15456 }
15457 }
15458 {
0439c23b 15459 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15460 PyThreadState* __tstate = wxPyBeginAllowThreads();
15461 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15462
15463 wxPyEndAllowThreads(__tstate);
110da5b0 15464 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15465 }
15466 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15467 {
15468 if (temp6)
15469 delete arg6;
15470 }
15471 return resultobj;
15472 fail:
15473 {
15474 if (temp6)
15475 delete arg6;
15476 }
15477 return NULL;
15478}
15479
15480
15481static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj;
15483 wxListbook *result;
15484 char *kwnames[] = {
15485 NULL
15486 };
15487
15488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15489 {
0439c23b 15490 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15491 PyThreadState* __tstate = wxPyBeginAllowThreads();
15492 result = (wxListbook *)new wxListbook();
15493
15494 wxPyEndAllowThreads(__tstate);
110da5b0 15495 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15496 }
15497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15498 return resultobj;
15499 fail:
15500 return NULL;
15501}
15502
15503
15504static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj;
15506 wxListbook *arg1 = (wxListbook *) 0 ;
15507 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17 15508 int arg3 = (int) -1 ;
d55e5bfc
RD
15509 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15510 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15511 wxSize const &arg5_defvalue = wxDefaultSize ;
15512 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15513 long arg6 = (long) 0 ;
15514 wxString const &arg7_defvalue = wxPyEmptyString ;
15515 wxString *arg7 = (wxString *) &arg7_defvalue ;
15516 bool result;
15517 wxPoint temp4 ;
15518 wxSize temp5 ;
15519 bool temp7 = False ;
15520 PyObject * obj0 = 0 ;
15521 PyObject * obj1 = 0 ;
15522 PyObject * obj2 = 0 ;
15523 PyObject * obj3 = 0 ;
15524 PyObject * obj4 = 0 ;
15525 PyObject * obj5 = 0 ;
15526 PyObject * obj6 = 0 ;
15527 char *kwnames[] = {
15528 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15529 };
15530
bfddbb17 15531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
15532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
15536 if (obj2) {
15537 arg3 = (int) SWIG_AsInt(obj2);
15538 if (PyErr_Occurred()) SWIG_fail;
15539 }
d55e5bfc
RD
15540 if (obj3) {
15541 {
15542 arg4 = &temp4;
15543 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15544 }
15545 }
15546 if (obj4) {
15547 {
15548 arg5 = &temp5;
15549 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15550 }
15551 }
15552 if (obj5) {
15553 arg6 = (long) SWIG_AsLong(obj5);
15554 if (PyErr_Occurred()) SWIG_fail;
15555 }
15556 if (obj6) {
15557 {
15558 arg7 = wxString_in_helper(obj6);
15559 if (arg7 == NULL) SWIG_fail;
15560 temp7 = True;
15561 }
15562 }
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15566
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 {
15571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15572 }
15573 {
15574 if (temp7)
15575 delete arg7;
15576 }
15577 return resultobj;
15578 fail:
15579 {
15580 if (temp7)
15581 delete arg7;
15582 }
15583 return NULL;
15584}
15585
15586
15587static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
15588 PyObject *resultobj;
15589 wxListbook *arg1 = (wxListbook *) 0 ;
15590 bool result;
15591 PyObject * obj0 = 0 ;
15592 char *kwnames[] = {
15593 (char *) "self", NULL
15594 };
15595
15596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15599 {
15600 PyThreadState* __tstate = wxPyBeginAllowThreads();
15601 result = (bool)((wxListbook const *)arg1)->IsVertical();
15602
15603 wxPyEndAllowThreads(__tstate);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 }
15606 {
15607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15608 }
15609 return resultobj;
15610 fail:
15611 return NULL;
15612}
15613
15614
15615static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) {
15616 PyObject *obj;
15617 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15618 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15619 Py_INCREF(obj);
15620 return Py_BuildValue((char *)"");
15621}
15622static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15623 PyObject *resultobj;
15624 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15625 int arg2 = (int) 0 ;
15626 int arg3 = (int) -1 ;
15627 int arg4 = (int) -1 ;
15628 wxListbookEvent *result;
15629 PyObject * obj0 = 0 ;
15630 PyObject * obj1 = 0 ;
15631 PyObject * obj2 = 0 ;
15632 PyObject * obj3 = 0 ;
15633 char *kwnames[] = {
15634 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15635 };
15636
15637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15638 if (obj0) {
15639 arg1 = (wxEventType) SWIG_AsInt(obj0);
15640 if (PyErr_Occurred()) SWIG_fail;
15641 }
15642 if (obj1) {
15643 arg2 = (int) SWIG_AsInt(obj1);
15644 if (PyErr_Occurred()) SWIG_fail;
15645 }
15646 if (obj2) {
15647 arg3 = (int) SWIG_AsInt(obj2);
15648 if (PyErr_Occurred()) SWIG_fail;
15649 }
15650 if (obj3) {
15651 arg4 = (int) SWIG_AsInt(obj3);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 {
15655 PyThreadState* __tstate = wxPyBeginAllowThreads();
15656 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15657
15658 wxPyEndAllowThreads(__tstate);
15659 if (PyErr_Occurred()) SWIG_fail;
15660 }
15661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15662 return resultobj;
15663 fail:
15664 return NULL;
15665}
15666
15667
15668static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) {
15669 PyObject *obj;
15670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15671 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15672 Py_INCREF(obj);
15673 return Py_BuildValue((char *)"");
15674}
15675static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15676 PyObject *resultobj;
15677 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15678 wxBookCtrlSizer *result;
15679 PyObject * obj0 = 0 ;
15680 char *kwnames[] = {
15681 (char *) "nb", NULL
15682 };
15683
15684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15687 {
15688 PyThreadState* __tstate = wxPyBeginAllowThreads();
15689 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15690
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
15694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15695 return resultobj;
15696 fail:
15697 return NULL;
15698}
15699
15700
15701static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15702 PyObject *resultobj;
15703 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15704 PyObject * obj0 = 0 ;
15705 char *kwnames[] = {
15706 (char *) "self", NULL
15707 };
15708
15709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15712 {
15713 PyThreadState* __tstate = wxPyBeginAllowThreads();
15714 (arg1)->RecalcSizes();
15715
15716 wxPyEndAllowThreads(__tstate);
15717 if (PyErr_Occurred()) SWIG_fail;
15718 }
15719 Py_INCREF(Py_None); resultobj = Py_None;
15720 return resultobj;
15721 fail:
15722 return NULL;
15723}
15724
15725
15726static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15727 PyObject *resultobj;
15728 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15729 wxSize result;
15730 PyObject * obj0 = 0 ;
15731 char *kwnames[] = {
15732 (char *) "self", NULL
15733 };
15734
15735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
15736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15738 {
15739 PyThreadState* __tstate = wxPyBeginAllowThreads();
15740 result = (arg1)->CalcMin();
15741
15742 wxPyEndAllowThreads(__tstate);
15743 if (PyErr_Occurred()) SWIG_fail;
15744 }
15745 {
15746 wxSize * resultptr;
15747 resultptr = new wxSize((wxSize &) result);
15748 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15749 }
15750 return resultobj;
15751 fail:
15752 return NULL;
15753}
15754
15755
15756static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15757 PyObject *resultobj;
15758 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15759 wxBookCtrl *result;
15760 PyObject * obj0 = 0 ;
15761 char *kwnames[] = {
15762 (char *) "self", NULL
15763 };
15764
15765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
15766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15768 {
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 result = (wxBookCtrl *)(arg1)->GetControl();
15771
15772 wxPyEndAllowThreads(__tstate);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
15776 return resultobj;
15777 fail:
15778 return NULL;
15779}
15780
15781
15782static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) {
15783 PyObject *obj;
15784 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15785 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
15786 Py_INCREF(obj);
15787 return Py_BuildValue((char *)"");
15788}
15789static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
15790 PyObject *resultobj;
15791 wxNotebook *arg1 = (wxNotebook *) 0 ;
15792 wxNotebookSizer *result;
15793 PyObject * obj0 = 0 ;
15794 char *kwnames[] = {
15795 (char *) "nb", NULL
15796 };
15797
15798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
15799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15801 {
15802 PyThreadState* __tstate = wxPyBeginAllowThreads();
15803 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
15804
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
15809 return resultobj;
15810 fail:
15811 return NULL;
15812}
15813
15814
15815static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj;
15817 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15818 PyObject * obj0 = 0 ;
15819 char *kwnames[] = {
15820 (char *) "self", NULL
15821 };
15822
15823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15826 {
15827 PyThreadState* __tstate = wxPyBeginAllowThreads();
15828 (arg1)->RecalcSizes();
15829
15830 wxPyEndAllowThreads(__tstate);
15831 if (PyErr_Occurred()) SWIG_fail;
15832 }
15833 Py_INCREF(Py_None); resultobj = Py_None;
15834 return resultobj;
15835 fail:
15836 return NULL;
15837}
15838
15839
15840static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
15841 PyObject *resultobj;
15842 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15843 wxSize result;
15844 PyObject * obj0 = 0 ;
15845 char *kwnames[] = {
15846 (char *) "self", NULL
15847 };
15848
15849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
15850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 result = (arg1)->CalcMin();
15855
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
15859 {
15860 wxSize * resultptr;
15861 resultptr = new wxSize((wxSize &) result);
15862 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15863 }
15864 return resultobj;
15865 fail:
15866 return NULL;
15867}
15868
15869
15870static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
15871 PyObject *resultobj;
15872 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
15873 wxNotebook *result;
15874 PyObject * obj0 = 0 ;
15875 char *kwnames[] = {
15876 (char *) "self", NULL
15877 };
15878
15879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
15880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
15881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15882 {
15883 PyThreadState* __tstate = wxPyBeginAllowThreads();
15884 result = (wxNotebook *)(arg1)->GetNotebook();
15885
15886 wxPyEndAllowThreads(__tstate);
15887 if (PyErr_Occurred()) SWIG_fail;
15888 }
15889 {
412d302d 15890 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
15891 }
15892 return resultobj;
15893 fail:
15894 return NULL;
15895}
15896
15897
15898static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) {
15899 PyObject *obj;
15900 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15901 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
15902 Py_INCREF(obj);
15903 return Py_BuildValue((char *)"");
15904}
15905static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj;
15907 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15908 int result;
15909 PyObject * obj0 = 0 ;
15910 char *kwnames[] = {
15911 (char *) "self", NULL
15912 };
15913
15914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
15915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15917 {
15918 PyThreadState* __tstate = wxPyBeginAllowThreads();
15919 result = (int)(arg1)->GetId();
15920
15921 wxPyEndAllowThreads(__tstate);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 }
15924 resultobj = SWIG_FromInt((int)result);
15925 return resultobj;
15926 fail:
15927 return NULL;
15928}
15929
15930
15931static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15932 PyObject *resultobj;
15933 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15934 wxControl *result;
15935 PyObject * obj0 = 0 ;
15936 char *kwnames[] = {
15937 (char *) "self", NULL
15938 };
15939
15940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
15941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15943 {
15944 PyThreadState* __tstate = wxPyBeginAllowThreads();
15945 result = (wxControl *)(arg1)->GetControl();
15946
15947 wxPyEndAllowThreads(__tstate);
15948 if (PyErr_Occurred()) SWIG_fail;
15949 }
15950 {
412d302d 15951 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
15952 }
15953 return resultobj;
15954 fail:
15955 return NULL;
15956}
15957
15958
15959static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
15960 PyObject *resultobj;
15961 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15962 wxToolBarBase *result;
15963 PyObject * obj0 = 0 ;
15964 char *kwnames[] = {
15965 (char *) "self", NULL
15966 };
15967
15968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
15969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15971 {
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 result = (wxToolBarBase *)(arg1)->GetToolBar();
15974
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 {
412d302d 15979 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
15980 }
15981 return resultobj;
15982 fail:
15983 return NULL;
15984}
15985
15986
15987static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj;
15989 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
15990 int result;
15991 PyObject * obj0 = 0 ;
15992 char *kwnames[] = {
15993 (char *) "self", NULL
15994 };
15995
15996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
15997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
15998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15999 {
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 result = (int)(arg1)->IsButton();
16002
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 resultobj = SWIG_FromInt((int)result);
16007 return resultobj;
16008 fail:
16009 return NULL;
16010}
16011
16012
16013static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
16014 PyObject *resultobj;
16015 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16016 int result;
16017 PyObject * obj0 = 0 ;
16018 char *kwnames[] = {
16019 (char *) "self", NULL
16020 };
16021
16022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16025 {
16026 PyThreadState* __tstate = wxPyBeginAllowThreads();
16027 result = (int)(arg1)->IsControl();
16028
16029 wxPyEndAllowThreads(__tstate);
16030 if (PyErr_Occurred()) SWIG_fail;
16031 }
16032 resultobj = SWIG_FromInt((int)result);
16033 return resultobj;
16034 fail:
16035 return NULL;
16036}
16037
16038
16039static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
16040 PyObject *resultobj;
16041 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16042 int result;
16043 PyObject * obj0 = 0 ;
16044 char *kwnames[] = {
16045 (char *) "self", NULL
16046 };
16047
16048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16051 {
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 result = (int)(arg1)->IsSeparator();
16054
16055 wxPyEndAllowThreads(__tstate);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 }
16058 resultobj = SWIG_FromInt((int)result);
16059 return resultobj;
16060 fail:
16061 return NULL;
16062}
16063
16064
16065static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16066 PyObject *resultobj;
16067 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16068 int result;
16069 PyObject * obj0 = 0 ;
16070 char *kwnames[] = {
16071 (char *) "self", NULL
16072 };
16073
16074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16077 {
16078 PyThreadState* __tstate = wxPyBeginAllowThreads();
16079 result = (int)(arg1)->GetStyle();
16080
16081 wxPyEndAllowThreads(__tstate);
16082 if (PyErr_Occurred()) SWIG_fail;
16083 }
16084 resultobj = SWIG_FromInt((int)result);
16085 return resultobj;
16086 fail:
16087 return NULL;
16088}
16089
16090
16091static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
16092 PyObject *resultobj;
16093 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16094 int result;
16095 PyObject * obj0 = 0 ;
16096 char *kwnames[] = {
16097 (char *) "self", NULL
16098 };
16099
16100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 result = (int)(arg1)->GetKind();
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 resultobj = SWIG_FromInt((int)result);
16111 return resultobj;
16112 fail:
16113 return NULL;
16114}
16115
16116
16117static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj;
16119 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16120 bool result;
16121 PyObject * obj0 = 0 ;
16122 char *kwnames[] = {
16123 (char *) "self", NULL
16124 };
16125
16126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 result = (bool)(arg1)->IsEnabled();
16132
16133 wxPyEndAllowThreads(__tstate);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 }
16136 {
16137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16138 }
16139 return resultobj;
16140 fail:
16141 return NULL;
16142}
16143
16144
16145static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
16146 PyObject *resultobj;
16147 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16148 bool result;
16149 PyObject * obj0 = 0 ;
16150 char *kwnames[] = {
16151 (char *) "self", NULL
16152 };
16153
16154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",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 = (bool)(arg1)->IsToggled();
16160
16161 wxPyEndAllowThreads(__tstate);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 {
16165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16166 }
16167 return resultobj;
16168 fail:
16169 return NULL;
16170}
16171
16172
16173static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
16174 PyObject *resultobj;
16175 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16176 bool result;
16177 PyObject * obj0 = 0 ;
16178 char *kwnames[] = {
16179 (char *) "self", NULL
16180 };
16181
16182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16185 {
16186 PyThreadState* __tstate = wxPyBeginAllowThreads();
16187 result = (bool)(arg1)->CanBeToggled();
16188
16189 wxPyEndAllowThreads(__tstate);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 }
16192 {
16193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16194 }
16195 return resultobj;
16196 fail:
16197 return NULL;
16198}
16199
16200
16201static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16202 PyObject *resultobj;
16203 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16204 wxBitmap *result;
16205 PyObject * obj0 = 0 ;
16206 char *kwnames[] = {
16207 (char *) "self", NULL
16208 };
16209
16210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 {
16216 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16217 result = (wxBitmap *) &_result_ref;
16218 }
16219
16220 wxPyEndAllowThreads(__tstate);
16221 if (PyErr_Occurred()) SWIG_fail;
16222 }
16223 {
16224 wxBitmap* resultptr = new wxBitmap(*result);
16225 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16226 }
16227 return resultobj;
16228 fail:
16229 return NULL;
16230}
16231
16232
16233static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16234 PyObject *resultobj;
16235 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16236 wxBitmap *result;
16237 PyObject * obj0 = 0 ;
16238 char *kwnames[] = {
16239 (char *) "self", NULL
16240 };
16241
16242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 {
16248 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16249 result = (wxBitmap *) &_result_ref;
16250 }
16251
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 {
16256 wxBitmap* resultptr = new wxBitmap(*result);
16257 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16258 }
16259 return resultobj;
16260 fail:
16261 return NULL;
16262}
16263
16264
16265static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16266 PyObject *resultobj;
16267 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16268 wxBitmap result;
16269 PyObject * obj0 = 0 ;
16270 char *kwnames[] = {
16271 (char *) "self", NULL
16272 };
16273
16274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16277 {
16278 PyThreadState* __tstate = wxPyBeginAllowThreads();
16279 result = (arg1)->GetBitmap();
16280
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 {
16285 wxBitmap * resultptr;
16286 resultptr = new wxBitmap((wxBitmap &) result);
16287 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16288 }
16289 return resultobj;
16290 fail:
16291 return NULL;
16292}
16293
16294
16295static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16296 PyObject *resultobj;
16297 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16298 wxString result;
16299 PyObject * obj0 = 0 ;
16300 char *kwnames[] = {
16301 (char *) "self", NULL
16302 };
16303
16304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16307 {
16308 PyThreadState* __tstate = wxPyBeginAllowThreads();
16309 result = (arg1)->GetLabel();
16310
16311 wxPyEndAllowThreads(__tstate);
16312 if (PyErr_Occurred()) SWIG_fail;
16313 }
16314 {
16315#if wxUSE_UNICODE
16316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16317#else
16318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16319#endif
16320 }
16321 return resultobj;
16322 fail:
16323 return NULL;
16324}
16325
16326
16327static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj;
16329 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16330 wxString result;
16331 PyObject * obj0 = 0 ;
16332 char *kwnames[] = {
16333 (char *) "self", NULL
16334 };
16335
16336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16339 {
16340 PyThreadState* __tstate = wxPyBeginAllowThreads();
16341 result = (arg1)->GetShortHelp();
16342
16343 wxPyEndAllowThreads(__tstate);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 {
16347#if wxUSE_UNICODE
16348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16349#else
16350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16351#endif
16352 }
16353 return resultobj;
16354 fail:
16355 return NULL;
16356}
16357
16358
16359static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16360 PyObject *resultobj;
16361 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16362 wxString result;
16363 PyObject * obj0 = 0 ;
16364 char *kwnames[] = {
16365 (char *) "self", NULL
16366 };
16367
16368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16371 {
16372 PyThreadState* __tstate = wxPyBeginAllowThreads();
16373 result = (arg1)->GetLongHelp();
16374
16375 wxPyEndAllowThreads(__tstate);
16376 if (PyErr_Occurred()) SWIG_fail;
16377 }
16378 {
16379#if wxUSE_UNICODE
16380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16381#else
16382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16383#endif
16384 }
16385 return resultobj;
16386 fail:
16387 return NULL;
16388}
16389
16390
16391static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
16392 PyObject *resultobj;
16393 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16394 bool arg2 ;
16395 bool result;
16396 PyObject * obj0 = 0 ;
16397 PyObject * obj1 = 0 ;
16398 char *kwnames[] = {
16399 (char *) "self",(char *) "enable", NULL
16400 };
16401
16402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16405 arg2 = (bool) SWIG_AsBool(obj1);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 {
16408 PyThreadState* __tstate = wxPyBeginAllowThreads();
16409 result = (bool)(arg1)->Enable(arg2);
16410
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 {
16415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16416 }
16417 return resultobj;
16418 fail:
16419 return NULL;
16420}
16421
16422
16423static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16424 PyObject *resultobj;
16425 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16426 PyObject * obj0 = 0 ;
16427 char *kwnames[] = {
16428 (char *) "self", NULL
16429 };
16430
16431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 (arg1)->Toggle();
16437
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 Py_INCREF(Py_None); resultobj = Py_None;
16442 return resultobj;
16443 fail:
16444 return NULL;
16445}
16446
16447
16448static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj;
16450 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16451 bool arg2 ;
16452 bool result;
16453 PyObject * obj0 = 0 ;
16454 PyObject * obj1 = 0 ;
16455 char *kwnames[] = {
16456 (char *) "self",(char *) "toggle", NULL
16457 };
16458
16459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16462 arg2 = (bool) SWIG_AsBool(obj1);
16463 if (PyErr_Occurred()) SWIG_fail;
16464 {
16465 PyThreadState* __tstate = wxPyBeginAllowThreads();
16466 result = (bool)(arg1)->SetToggle(arg2);
16467
16468 wxPyEndAllowThreads(__tstate);
16469 if (PyErr_Occurred()) SWIG_fail;
16470 }
16471 {
16472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16473 }
16474 return resultobj;
16475 fail:
16476 return NULL;
16477}
16478
16479
16480static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj;
16482 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16483 wxString *arg2 = 0 ;
16484 bool result;
16485 bool temp2 = False ;
16486 PyObject * obj0 = 0 ;
16487 PyObject * obj1 = 0 ;
16488 char *kwnames[] = {
16489 (char *) "self",(char *) "help", NULL
16490 };
16491
16492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16495 {
16496 arg2 = wxString_in_helper(obj1);
16497 if (arg2 == NULL) SWIG_fail;
16498 temp2 = True;
16499 }
16500 {
16501 PyThreadState* __tstate = wxPyBeginAllowThreads();
16502 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16503
16504 wxPyEndAllowThreads(__tstate);
16505 if (PyErr_Occurred()) SWIG_fail;
16506 }
16507 {
16508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16509 }
16510 {
16511 if (temp2)
16512 delete arg2;
16513 }
16514 return resultobj;
16515 fail:
16516 {
16517 if (temp2)
16518 delete arg2;
16519 }
16520 return NULL;
16521}
16522
16523
16524static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
16525 PyObject *resultobj;
16526 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16527 wxString *arg2 = 0 ;
16528 bool result;
16529 bool temp2 = False ;
16530 PyObject * obj0 = 0 ;
16531 PyObject * obj1 = 0 ;
16532 char *kwnames[] = {
16533 (char *) "self",(char *) "help", NULL
16534 };
16535
16536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16539 {
16540 arg2 = wxString_in_helper(obj1);
16541 if (arg2 == NULL) SWIG_fail;
16542 temp2 = True;
16543 }
16544 {
16545 PyThreadState* __tstate = wxPyBeginAllowThreads();
16546 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16547
16548 wxPyEndAllowThreads(__tstate);
16549 if (PyErr_Occurred()) SWIG_fail;
16550 }
16551 {
16552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16553 }
16554 {
16555 if (temp2)
16556 delete arg2;
16557 }
16558 return resultobj;
16559 fail:
16560 {
16561 if (temp2)
16562 delete arg2;
16563 }
16564 return NULL;
16565}
16566
16567
16568static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16569 PyObject *resultobj;
16570 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16571 wxBitmap *arg2 = 0 ;
16572 PyObject * obj0 = 0 ;
16573 PyObject * obj1 = 0 ;
16574 char *kwnames[] = {
16575 (char *) "self",(char *) "bmp", NULL
16576 };
16577
16578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16582 SWIG_POINTER_EXCEPTION | 0)) == -1)
16583 SWIG_fail;
16584 if (arg2 == NULL) {
16585 PyErr_SetString(PyExc_TypeError,"null reference");
16586 SWIG_fail;
16587 }
16588 {
16589 PyThreadState* __tstate = wxPyBeginAllowThreads();
16590 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16591
16592 wxPyEndAllowThreads(__tstate);
16593 if (PyErr_Occurred()) SWIG_fail;
16594 }
16595 Py_INCREF(Py_None); resultobj = Py_None;
16596 return resultobj;
16597 fail:
16598 return NULL;
16599}
16600
16601
16602static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16603 PyObject *resultobj;
16604 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16605 wxBitmap *arg2 = 0 ;
16606 PyObject * obj0 = 0 ;
16607 PyObject * obj1 = 0 ;
16608 char *kwnames[] = {
16609 (char *) "self",(char *) "bmp", NULL
16610 };
16611
16612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16615 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16616 SWIG_POINTER_EXCEPTION | 0)) == -1)
16617 SWIG_fail;
16618 if (arg2 == NULL) {
16619 PyErr_SetString(PyExc_TypeError,"null reference");
16620 SWIG_fail;
16621 }
16622 {
16623 PyThreadState* __tstate = wxPyBeginAllowThreads();
16624 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16625
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 Py_INCREF(Py_None); resultobj = Py_None;
16630 return resultobj;
16631 fail:
16632 return NULL;
16633}
16634
16635
16636static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj;
16638 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16639 wxString *arg2 = 0 ;
16640 bool temp2 = False ;
16641 PyObject * obj0 = 0 ;
16642 PyObject * obj1 = 0 ;
16643 char *kwnames[] = {
16644 (char *) "self",(char *) "label", NULL
16645 };
16646
16647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16650 {
16651 arg2 = wxString_in_helper(obj1);
16652 if (arg2 == NULL) SWIG_fail;
16653 temp2 = True;
16654 }
16655 {
16656 PyThreadState* __tstate = wxPyBeginAllowThreads();
16657 (arg1)->SetLabel((wxString const &)*arg2);
16658
16659 wxPyEndAllowThreads(__tstate);
16660 if (PyErr_Occurred()) SWIG_fail;
16661 }
16662 Py_INCREF(Py_None); resultobj = Py_None;
16663 {
16664 if (temp2)
16665 delete arg2;
16666 }
16667 return resultobj;
16668 fail:
16669 {
16670 if (temp2)
16671 delete arg2;
16672 }
16673 return NULL;
16674}
16675
16676
16677static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
16678 PyObject *resultobj;
16679 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16680 PyObject * obj0 = 0 ;
16681 char *kwnames[] = {
16682 (char *) "self", NULL
16683 };
16684
16685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16688 {
16689 PyThreadState* __tstate = wxPyBeginAllowThreads();
16690 (arg1)->Detach();
16691
16692 wxPyEndAllowThreads(__tstate);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 }
16695 Py_INCREF(Py_None); resultobj = Py_None;
16696 return resultobj;
16697 fail:
16698 return NULL;
16699}
16700
16701
16702static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
16703 PyObject *resultobj;
16704 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16705 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16706 PyObject * obj0 = 0 ;
16707 PyObject * obj1 = 0 ;
16708 char *kwnames[] = {
16709 (char *) "self",(char *) "tbar", NULL
16710 };
16711
16712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
16719 (arg1)->Attach(arg2);
16720
16721 wxPyEndAllowThreads(__tstate);
16722 if (PyErr_Occurred()) SWIG_fail;
16723 }
16724 Py_INCREF(Py_None); resultobj = Py_None;
16725 return resultobj;
16726 fail:
16727 return NULL;
16728}
16729
16730
16731static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16732 PyObject *resultobj;
16733 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16734 PyObject *result;
16735 PyObject * obj0 = 0 ;
16736 char *kwnames[] = {
16737 (char *) "self", NULL
16738 };
16739
16740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
16741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16743 {
16744 PyThreadState* __tstate = wxPyBeginAllowThreads();
16745 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
16746
16747 wxPyEndAllowThreads(__tstate);
16748 if (PyErr_Occurred()) SWIG_fail;
16749 }
16750 resultobj = result;
16751 return resultobj;
16752 fail:
16753 return NULL;
16754}
16755
16756
16757static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
16758 PyObject *resultobj;
16759 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16760 PyObject *arg2 = (PyObject *) 0 ;
16761 PyObject * obj0 = 0 ;
16762 PyObject * obj1 = 0 ;
16763 char *kwnames[] = {
16764 (char *) "self",(char *) "clientData", NULL
16765 };
16766
16767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
16768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16770 arg2 = obj1;
16771 {
16772 PyThreadState* __tstate = wxPyBeginAllowThreads();
16773 wxToolBarToolBase_SetClientData(arg1,arg2);
16774
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 Py_INCREF(Py_None); resultobj = Py_None;
16779 return resultobj;
16780 fail:
16781 return NULL;
16782}
16783
16784
16785static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) {
16786 PyObject *obj;
16787 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16788 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
16789 Py_INCREF(obj);
16790 return Py_BuildValue((char *)"");
16791}
16792static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16793 PyObject *resultobj;
16794 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16795 int arg2 ;
16796 wxString *arg3 = 0 ;
16797 wxBitmap *arg4 = 0 ;
16798 wxBitmap const &arg5_defvalue = wxNullBitmap ;
16799 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
16800 int arg6 = (int) wxITEM_NORMAL ;
16801 wxString const &arg7_defvalue = wxPyEmptyString ;
16802 wxString *arg7 = (wxString *) &arg7_defvalue ;
16803 wxString const &arg8_defvalue = wxPyEmptyString ;
16804 wxString *arg8 = (wxString *) &arg8_defvalue ;
16805 PyObject *arg9 = (PyObject *) NULL ;
16806 wxToolBarToolBase *result;
16807 bool temp3 = False ;
16808 bool temp7 = False ;
16809 bool temp8 = False ;
16810 PyObject * obj0 = 0 ;
16811 PyObject * obj1 = 0 ;
16812 PyObject * obj2 = 0 ;
16813 PyObject * obj3 = 0 ;
16814 PyObject * obj4 = 0 ;
16815 PyObject * obj5 = 0 ;
16816 PyObject * obj6 = 0 ;
16817 PyObject * obj7 = 0 ;
16818 PyObject * obj8 = 0 ;
16819 char *kwnames[] = {
16820 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16821 };
16822
16823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
16824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16826 arg2 = (int) SWIG_AsInt(obj1);
16827 if (PyErr_Occurred()) SWIG_fail;
16828 {
16829 arg3 = wxString_in_helper(obj2);
16830 if (arg3 == NULL) SWIG_fail;
16831 temp3 = True;
16832 }
16833 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16834 SWIG_POINTER_EXCEPTION | 0)) == -1)
16835 SWIG_fail;
16836 if (arg4 == NULL) {
16837 PyErr_SetString(PyExc_TypeError,"null reference");
16838 SWIG_fail;
16839 }
16840 if (obj4) {
16841 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16842 SWIG_POINTER_EXCEPTION | 0)) == -1)
16843 SWIG_fail;
16844 if (arg5 == NULL) {
16845 PyErr_SetString(PyExc_TypeError,"null reference");
16846 SWIG_fail;
16847 }
16848 }
16849 if (obj5) {
16850 arg6 = (wxItemKind) SWIG_AsInt(obj5);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
16853 if (obj6) {
16854 {
16855 arg7 = wxString_in_helper(obj6);
16856 if (arg7 == NULL) SWIG_fail;
16857 temp7 = True;
16858 }
16859 }
16860 if (obj7) {
16861 {
16862 arg8 = wxString_in_helper(obj7);
16863 if (arg8 == NULL) SWIG_fail;
16864 temp8 = True;
16865 }
16866 }
16867 if (obj8) {
16868 arg9 = obj8;
16869 }
16870 {
16871 PyThreadState* __tstate = wxPyBeginAllowThreads();
16872 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
16873
16874 wxPyEndAllowThreads(__tstate);
16875 if (PyErr_Occurred()) SWIG_fail;
16876 }
16877 {
412d302d 16878 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
16879 }
16880 {
16881 if (temp3)
16882 delete arg3;
16883 }
16884 {
16885 if (temp7)
16886 delete arg7;
16887 }
16888 {
16889 if (temp8)
16890 delete arg8;
16891 }
16892 return resultobj;
16893 fail:
16894 {
16895 if (temp3)
16896 delete arg3;
16897 }
16898 {
16899 if (temp7)
16900 delete arg7;
16901 }
16902 {
16903 if (temp8)
16904 delete arg8;
16905 }
16906 return NULL;
16907}
16908
16909
16910static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj;
16912 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
16913 size_t arg2 ;
16914 int arg3 ;
16915 wxString *arg4 = 0 ;
16916 wxBitmap *arg5 = 0 ;
16917 wxBitmap const &arg6_defvalue = wxNullBitmap ;
16918 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
16919 int arg7 = (int) wxITEM_NORMAL ;
16920 wxString const &arg8_defvalue = wxPyEmptyString ;
16921 wxString *arg8 = (wxString *) &arg8_defvalue ;
16922 wxString const &arg9_defvalue = wxPyEmptyString ;
16923 wxString *arg9 = (wxString *) &arg9_defvalue ;
16924 PyObject *arg10 = (PyObject *) NULL ;
16925 wxToolBarToolBase *result;
16926 bool temp4 = False ;
16927 bool temp8 = False ;
16928 bool temp9 = False ;
16929 PyObject * obj0 = 0 ;
16930 PyObject * obj1 = 0 ;
16931 PyObject * obj2 = 0 ;
16932 PyObject * obj3 = 0 ;
16933 PyObject * obj4 = 0 ;
16934 PyObject * obj5 = 0 ;
16935 PyObject * obj6 = 0 ;
16936 PyObject * obj7 = 0 ;
16937 PyObject * obj8 = 0 ;
16938 PyObject * obj9 = 0 ;
16939 char *kwnames[] = {
16940 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
16941 };
16942
16943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
16944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
16945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16946 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
16947 if (PyErr_Occurred()) SWIG_fail;
16948 arg3 = (int) SWIG_AsInt(obj2);
16949 if (PyErr_Occurred()) SWIG_fail;
16950 {
16951 arg4 = wxString_in_helper(obj3);
16952 if (arg4 == NULL) SWIG_fail;
16953 temp4 = True;
16954 }
16955 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
16956 SWIG_POINTER_EXCEPTION | 0)) == -1)
16957 SWIG_fail;
16958 if (arg5 == NULL) {
16959 PyErr_SetString(PyExc_TypeError,"null reference");
16960 SWIG_fail;
16961 }
16962 if (obj5) {
16963 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
16964 SWIG_POINTER_EXCEPTION | 0)) == -1)
16965 SWIG_fail;
16966 if (arg6 == NULL) {
16967 PyErr_SetString(PyExc_TypeError,"null reference");
16968 SWIG_fail;
16969 }
16970 }
16971 if (obj6) {
16972 arg7 = (wxItemKind) SWIG_AsInt(obj6);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 if (obj7) {
16976 {
16977 arg8 = wxString_in_helper(obj7);
16978 if (arg8 == NULL) SWIG_fail;
16979 temp8 = True;
16980 }
16981 }
16982 if (obj8) {
16983 {
16984 arg9 = wxString_in_helper(obj8);
16985 if (arg9 == NULL) SWIG_fail;
16986 temp9 = True;
16987 }
16988 }
16989 if (obj9) {
16990 arg10 = obj9;
16991 }
16992 {
16993 PyThreadState* __tstate = wxPyBeginAllowThreads();
16994 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);
16995
16996 wxPyEndAllowThreads(__tstate);
16997 if (PyErr_Occurred()) SWIG_fail;
16998 }
16999 {
412d302d 17000 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17001 }
17002 {
17003 if (temp4)
17004 delete arg4;
17005 }
17006 {
17007 if (temp8)
17008 delete arg8;
17009 }
17010 {
17011 if (temp9)
17012 delete arg9;
17013 }
17014 return resultobj;
17015 fail:
17016 {
17017 if (temp4)
17018 delete arg4;
17019 }
17020 {
17021 if (temp8)
17022 delete arg8;
17023 }
17024 {
17025 if (temp9)
17026 delete arg9;
17027 }
17028 return NULL;
17029}
17030
17031
17032static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17033 PyObject *resultobj;
17034 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17035 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17036 wxToolBarToolBase *result;
17037 PyObject * obj0 = 0 ;
17038 PyObject * obj1 = 0 ;
17039 char *kwnames[] = {
17040 (char *) "self",(char *) "tool", NULL
17041 };
17042
17043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17046 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17048 {
17049 PyThreadState* __tstate = wxPyBeginAllowThreads();
17050 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17051
17052 wxPyEndAllowThreads(__tstate);
17053 if (PyErr_Occurred()) SWIG_fail;
17054 }
17055 {
412d302d 17056 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17057 }
17058 return resultobj;
17059 fail:
17060 return NULL;
17061}
17062
17063
17064static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) {
17065 PyObject *resultobj;
17066 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17067 size_t arg2 ;
17068 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17069 wxToolBarToolBase *result;
17070 PyObject * obj0 = 0 ;
17071 PyObject * obj1 = 0 ;
17072 PyObject * obj2 = 0 ;
17073 char *kwnames[] = {
17074 (char *) "self",(char *) "pos",(char *) "tool", NULL
17075 };
17076
17077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17080 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17084 {
17085 PyThreadState* __tstate = wxPyBeginAllowThreads();
17086 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17087
17088 wxPyEndAllowThreads(__tstate);
17089 if (PyErr_Occurred()) SWIG_fail;
17090 }
17091 {
412d302d 17092 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17093 }
17094 return resultobj;
17095 fail:
17096 return NULL;
17097}
17098
17099
17100static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17101 PyObject *resultobj;
17102 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17103 wxControl *arg2 = (wxControl *) 0 ;
17104 wxToolBarToolBase *result;
17105 PyObject * obj0 = 0 ;
17106 PyObject * obj1 = 0 ;
17107 char *kwnames[] = {
17108 (char *) "self",(char *) "control", NULL
17109 };
17110
17111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17114 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17119
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 {
412d302d 17124 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17125 }
17126 return resultobj;
17127 fail:
17128 return NULL;
17129}
17130
17131
17132static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17133 PyObject *resultobj;
17134 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17135 size_t arg2 ;
17136 wxControl *arg3 = (wxControl *) 0 ;
17137 wxToolBarToolBase *result;
17138 PyObject * obj0 = 0 ;
17139 PyObject * obj1 = 0 ;
17140 PyObject * obj2 = 0 ;
17141 char *kwnames[] = {
17142 (char *) "self",(char *) "pos",(char *) "control", NULL
17143 };
17144
17145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17148 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17152 {
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
412d302d 17160 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17161 }
17162 return resultobj;
17163 fail:
17164 return NULL;
17165}
17166
17167
17168static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) {
17169 PyObject *resultobj;
17170 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17171 int arg2 ;
17172 wxControl *result;
17173 PyObject * obj0 = 0 ;
17174 PyObject * obj1 = 0 ;
17175 char *kwnames[] = {
17176 (char *) "self",(char *) "id", NULL
17177 };
17178
17179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17182 arg2 = (int) SWIG_AsInt(obj1);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 {
17185 PyThreadState* __tstate = wxPyBeginAllowThreads();
17186 result = (wxControl *)(arg1)->FindControl(arg2);
17187
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 {
412d302d 17192 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17193 }
17194 return resultobj;
17195 fail:
17196 return NULL;
17197}
17198
17199
17200static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17201 PyObject *resultobj;
17202 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17203 wxToolBarToolBase *result;
17204 PyObject * obj0 = 0 ;
17205 char *kwnames[] = {
17206 (char *) "self", NULL
17207 };
17208
17209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17212 {
17213 PyThreadState* __tstate = wxPyBeginAllowThreads();
17214 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17215
17216 wxPyEndAllowThreads(__tstate);
17217 if (PyErr_Occurred()) SWIG_fail;
17218 }
17219 {
412d302d 17220 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17221 }
17222 return resultobj;
17223 fail:
17224 return NULL;
17225}
17226
17227
17228static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
17229 PyObject *resultobj;
17230 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17231 size_t arg2 ;
17232 wxToolBarToolBase *result;
17233 PyObject * obj0 = 0 ;
17234 PyObject * obj1 = 0 ;
17235 char *kwnames[] = {
17236 (char *) "self",(char *) "pos", NULL
17237 };
17238
17239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17242 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17243 if (PyErr_Occurred()) SWIG_fail;
17244 {
17245 PyThreadState* __tstate = wxPyBeginAllowThreads();
17246 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17247
17248 wxPyEndAllowThreads(__tstate);
17249 if (PyErr_Occurred()) SWIG_fail;
17250 }
17251 {
412d302d 17252 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17253 }
17254 return resultobj;
17255 fail:
17256 return NULL;
17257}
17258
17259
17260static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj;
17262 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17263 int arg2 ;
17264 wxToolBarToolBase *result;
17265 PyObject * obj0 = 0 ;
17266 PyObject * obj1 = 0 ;
17267 char *kwnames[] = {
17268 (char *) "self",(char *) "id", NULL
17269 };
17270
17271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17274 arg2 = (int) SWIG_AsInt(obj1);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 {
17277 PyThreadState* __tstate = wxPyBeginAllowThreads();
17278 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17279
17280 wxPyEndAllowThreads(__tstate);
17281 if (PyErr_Occurred()) SWIG_fail;
17282 }
17283 {
412d302d 17284 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17285 }
17286 return resultobj;
17287 fail:
17288 return NULL;
17289}
17290
17291
17292static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17293 PyObject *resultobj;
17294 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17295 size_t arg2 ;
17296 bool result;
17297 PyObject * obj0 = 0 ;
17298 PyObject * obj1 = 0 ;
17299 char *kwnames[] = {
17300 (char *) "self",(char *) "pos", NULL
17301 };
17302
17303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17306 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
17307 if (PyErr_Occurred()) SWIG_fail;
17308 {
17309 PyThreadState* __tstate = wxPyBeginAllowThreads();
17310 result = (bool)(arg1)->DeleteToolByPos(arg2);
17311
17312 wxPyEndAllowThreads(__tstate);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 }
17315 {
17316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17317 }
17318 return resultobj;
17319 fail:
17320 return NULL;
17321}
17322
17323
17324static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17325 PyObject *resultobj;
17326 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17327 int arg2 ;
17328 bool result;
17329 PyObject * obj0 = 0 ;
17330 PyObject * obj1 = 0 ;
17331 char *kwnames[] = {
17332 (char *) "self",(char *) "id", NULL
17333 };
17334
17335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17338 arg2 = (int) SWIG_AsInt(obj1);
17339 if (PyErr_Occurred()) SWIG_fail;
17340 {
17341 PyThreadState* __tstate = wxPyBeginAllowThreads();
17342 result = (bool)(arg1)->DeleteTool(arg2);
17343
17344 wxPyEndAllowThreads(__tstate);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 {
17348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17349 }
17350 return resultobj;
17351 fail:
17352 return NULL;
17353}
17354
17355
17356static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
17357 PyObject *resultobj;
17358 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17359 PyObject * obj0 = 0 ;
17360 char *kwnames[] = {
17361 (char *) "self", NULL
17362 };
17363
17364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17367 {
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 (arg1)->ClearTools();
17370
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 Py_INCREF(Py_None); resultobj = Py_None;
17375 return resultobj;
17376 fail:
17377 return NULL;
17378}
17379
17380
17381static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
17382 PyObject *resultobj;
17383 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17384 bool result;
17385 PyObject * obj0 = 0 ;
17386 char *kwnames[] = {
17387 (char *) "self", NULL
17388 };
17389
17390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17393 {
17394 PyThreadState* __tstate = wxPyBeginAllowThreads();
17395 result = (bool)(arg1)->Realize();
17396
17397 wxPyEndAllowThreads(__tstate);
17398 if (PyErr_Occurred()) SWIG_fail;
17399 }
17400 {
17401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17402 }
17403 return resultobj;
17404 fail:
17405 return NULL;
17406}
17407
17408
17409static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17410 PyObject *resultobj;
17411 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17412 int arg2 ;
17413 bool arg3 ;
17414 PyObject * obj0 = 0 ;
17415 PyObject * obj1 = 0 ;
17416 PyObject * obj2 = 0 ;
17417 char *kwnames[] = {
17418 (char *) "self",(char *) "id",(char *) "enable", NULL
17419 };
17420
17421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17424 arg2 = (int) SWIG_AsInt(obj1);
17425 if (PyErr_Occurred()) SWIG_fail;
17426 arg3 = (bool) SWIG_AsBool(obj2);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 {
17429 PyThreadState* __tstate = wxPyBeginAllowThreads();
17430 (arg1)->EnableTool(arg2,arg3);
17431
17432 wxPyEndAllowThreads(__tstate);
17433 if (PyErr_Occurred()) SWIG_fail;
17434 }
17435 Py_INCREF(Py_None); resultobj = Py_None;
17436 return resultobj;
17437 fail:
17438 return NULL;
17439}
17440
17441
17442static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
17443 PyObject *resultobj;
17444 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17445 int arg2 ;
17446 bool arg3 ;
17447 PyObject * obj0 = 0 ;
17448 PyObject * obj1 = 0 ;
17449 PyObject * obj2 = 0 ;
17450 char *kwnames[] = {
17451 (char *) "self",(char *) "id",(char *) "toggle", NULL
17452 };
17453
17454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17457 arg2 = (int) SWIG_AsInt(obj1);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 arg3 = (bool) SWIG_AsBool(obj2);
17460 if (PyErr_Occurred()) SWIG_fail;
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 (arg1)->ToggleTool(arg2,arg3);
17464
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 Py_INCREF(Py_None); resultobj = Py_None;
17469 return resultobj;
17470 fail:
17471 return NULL;
17472}
17473
17474
17475static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj;
17477 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17478 int arg2 ;
17479 bool arg3 ;
17480 PyObject * obj0 = 0 ;
17481 PyObject * obj1 = 0 ;
17482 PyObject * obj2 = 0 ;
17483 char *kwnames[] = {
17484 (char *) "self",(char *) "id",(char *) "toggle", NULL
17485 };
17486
17487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17490 arg2 = (int) SWIG_AsInt(obj1);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 arg3 = (bool) SWIG_AsBool(obj2);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 {
17495 PyThreadState* __tstate = wxPyBeginAllowThreads();
17496 (arg1)->SetToggle(arg2,arg3);
17497
17498 wxPyEndAllowThreads(__tstate);
17499 if (PyErr_Occurred()) SWIG_fail;
17500 }
17501 Py_INCREF(Py_None); resultobj = Py_None;
17502 return resultobj;
17503 fail:
17504 return NULL;
17505}
17506
17507
17508static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17509 PyObject *resultobj;
17510 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17511 int arg2 ;
17512 PyObject *result;
17513 PyObject * obj0 = 0 ;
17514 PyObject * obj1 = 0 ;
17515 char *kwnames[] = {
17516 (char *) "self",(char *) "id", NULL
17517 };
17518
17519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17522 arg2 = (int) SWIG_AsInt(obj1);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 {
17525 PyThreadState* __tstate = wxPyBeginAllowThreads();
17526 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17527
17528 wxPyEndAllowThreads(__tstate);
17529 if (PyErr_Occurred()) SWIG_fail;
17530 }
17531 resultobj = result;
17532 return resultobj;
17533 fail:
17534 return NULL;
17535}
17536
17537
17538static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
17539 PyObject *resultobj;
17540 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17541 int arg2 ;
17542 PyObject *arg3 = (PyObject *) 0 ;
17543 PyObject * obj0 = 0 ;
17544 PyObject * obj1 = 0 ;
17545 PyObject * obj2 = 0 ;
17546 char *kwnames[] = {
17547 (char *) "self",(char *) "id",(char *) "clientData", NULL
17548 };
17549
17550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17553 arg2 = (int) SWIG_AsInt(obj1);
17554 if (PyErr_Occurred()) SWIG_fail;
17555 arg3 = obj2;
17556 {
17557 PyThreadState* __tstate = wxPyBeginAllowThreads();
17558 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17559
17560 wxPyEndAllowThreads(__tstate);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 Py_INCREF(Py_None); resultobj = Py_None;
17564 return resultobj;
17565 fail:
17566 return NULL;
17567}
17568
17569
17570static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) {
17571 PyObject *resultobj;
17572 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17573 int arg2 ;
17574 int result;
17575 PyObject * obj0 = 0 ;
17576 PyObject * obj1 = 0 ;
17577 char *kwnames[] = {
17578 (char *) "self",(char *) "id", NULL
17579 };
17580
17581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17584 arg2 = (int) SWIG_AsInt(obj1);
17585 if (PyErr_Occurred()) SWIG_fail;
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17589
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 resultobj = SWIG_FromInt((int)result);
17594 return resultobj;
17595 fail:
17596 return NULL;
17597}
17598
17599
17600static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
17601 PyObject *resultobj;
17602 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17603 int arg2 ;
17604 bool result;
17605 PyObject * obj0 = 0 ;
17606 PyObject * obj1 = 0 ;
17607 char *kwnames[] = {
17608 (char *) "self",(char *) "id", NULL
17609 };
17610
17611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17614 arg2 = (int) SWIG_AsInt(obj1);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 result = (bool)(arg1)->GetToolState(arg2);
17619
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 {
17624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17625 }
17626 return resultobj;
17627 fail:
17628 return NULL;
17629}
17630
17631
17632static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17635 int arg2 ;
17636 bool result;
17637 PyObject * obj0 = 0 ;
17638 PyObject * obj1 = 0 ;
17639 char *kwnames[] = {
17640 (char *) "self",(char *) "id", NULL
17641 };
17642
17643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17646 arg2 = (int) SWIG_AsInt(obj1);
17647 if (PyErr_Occurred()) SWIG_fail;
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 result = (bool)(arg1)->GetToolEnabled(arg2);
17651
17652 wxPyEndAllowThreads(__tstate);
17653 if (PyErr_Occurred()) SWIG_fail;
17654 }
17655 {
17656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17657 }
17658 return resultobj;
17659 fail:
17660 return NULL;
17661}
17662
17663
17664static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17665 PyObject *resultobj;
17666 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17667 int arg2 ;
17668 wxString *arg3 = 0 ;
17669 bool temp3 = False ;
17670 PyObject * obj0 = 0 ;
17671 PyObject * obj1 = 0 ;
17672 PyObject * obj2 = 0 ;
17673 char *kwnames[] = {
17674 (char *) "self",(char *) "id",(char *) "helpString", NULL
17675 };
17676
17677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17680 arg2 = (int) SWIG_AsInt(obj1);
17681 if (PyErr_Occurred()) SWIG_fail;
17682 {
17683 arg3 = wxString_in_helper(obj2);
17684 if (arg3 == NULL) SWIG_fail;
17685 temp3 = True;
17686 }
17687 {
17688 PyThreadState* __tstate = wxPyBeginAllowThreads();
17689 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17690
17691 wxPyEndAllowThreads(__tstate);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 Py_INCREF(Py_None); resultobj = Py_None;
17695 {
17696 if (temp3)
17697 delete arg3;
17698 }
17699 return resultobj;
17700 fail:
17701 {
17702 if (temp3)
17703 delete arg3;
17704 }
17705 return NULL;
17706}
17707
17708
17709static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17710 PyObject *resultobj;
17711 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17712 int arg2 ;
17713 wxString result;
17714 PyObject * obj0 = 0 ;
17715 PyObject * obj1 = 0 ;
17716 char *kwnames[] = {
17717 (char *) "self",(char *) "id", NULL
17718 };
17719
17720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17723 arg2 = (int) SWIG_AsInt(obj1);
17724 if (PyErr_Occurred()) SWIG_fail;
17725 {
17726 PyThreadState* __tstate = wxPyBeginAllowThreads();
17727 result = (arg1)->GetToolShortHelp(arg2);
17728
17729 wxPyEndAllowThreads(__tstate);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 }
17732 {
17733#if wxUSE_UNICODE
17734 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17735#else
17736 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17737#endif
17738 }
17739 return resultobj;
17740 fail:
17741 return NULL;
17742}
17743
17744
17745static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17746 PyObject *resultobj;
17747 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17748 int arg2 ;
17749 wxString *arg3 = 0 ;
17750 bool temp3 = False ;
17751 PyObject * obj0 = 0 ;
17752 PyObject * obj1 = 0 ;
17753 PyObject * obj2 = 0 ;
17754 char *kwnames[] = {
17755 (char *) "self",(char *) "id",(char *) "helpString", NULL
17756 };
17757
17758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17761 arg2 = (int) SWIG_AsInt(obj1);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 {
17764 arg3 = wxString_in_helper(obj2);
17765 if (arg3 == NULL) SWIG_fail;
17766 temp3 = True;
17767 }
17768 {
17769 PyThreadState* __tstate = wxPyBeginAllowThreads();
17770 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
17771
17772 wxPyEndAllowThreads(__tstate);
17773 if (PyErr_Occurred()) SWIG_fail;
17774 }
17775 Py_INCREF(Py_None); resultobj = Py_None;
17776 {
17777 if (temp3)
17778 delete arg3;
17779 }
17780 return resultobj;
17781 fail:
17782 {
17783 if (temp3)
17784 delete arg3;
17785 }
17786 return NULL;
17787}
17788
17789
17790static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj;
17792 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17793 int arg2 ;
17794 wxString result;
17795 PyObject * obj0 = 0 ;
17796 PyObject * obj1 = 0 ;
17797 char *kwnames[] = {
17798 (char *) "self",(char *) "id", NULL
17799 };
17800
17801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
17802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17804 arg2 = (int) SWIG_AsInt(obj1);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 {
17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
17808 result = (arg1)->GetToolLongHelp(arg2);
17809
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 {
17814#if wxUSE_UNICODE
17815 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17816#else
17817 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17818#endif
17819 }
17820 return resultobj;
17821 fail:
17822 return NULL;
17823}
17824
17825
17826static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
17827 PyObject *resultobj;
17828 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17829 int arg2 ;
17830 int arg3 ;
17831 PyObject * obj0 = 0 ;
17832 PyObject * obj1 = 0 ;
17833 PyObject * obj2 = 0 ;
17834 char *kwnames[] = {
17835 (char *) "self",(char *) "x",(char *) "y", NULL
17836 };
17837
17838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
17839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17841 arg2 = (int) SWIG_AsInt(obj1);
17842 if (PyErr_Occurred()) SWIG_fail;
17843 arg3 = (int) SWIG_AsInt(obj2);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 (arg1)->SetMargins(arg2,arg3);
17848
17849 wxPyEndAllowThreads(__tstate);
17850 if (PyErr_Occurred()) SWIG_fail;
17851 }
17852 Py_INCREF(Py_None); resultobj = Py_None;
17853 return resultobj;
17854 fail:
17855 return NULL;
17856}
17857
17858
17859static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17860 PyObject *resultobj;
17861 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17862 wxSize *arg2 = 0 ;
17863 wxSize temp2 ;
17864 PyObject * obj0 = 0 ;
17865 PyObject * obj1 = 0 ;
17866 char *kwnames[] = {
17867 (char *) "self",(char *) "size", NULL
17868 };
17869
17870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
17871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17873 {
17874 arg2 = &temp2;
17875 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17876 }
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 (arg1)->SetMargins((wxSize const &)*arg2);
17880
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 Py_INCREF(Py_None); resultobj = Py_None;
17885 return resultobj;
17886 fail:
17887 return NULL;
17888}
17889
17890
17891static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
17892 PyObject *resultobj;
17893 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17894 int arg2 ;
17895 PyObject * obj0 = 0 ;
17896 PyObject * obj1 = 0 ;
17897 char *kwnames[] = {
17898 (char *) "self",(char *) "packing", NULL
17899 };
17900
17901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
17902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17904 arg2 = (int) SWIG_AsInt(obj1);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 {
17907 PyThreadState* __tstate = wxPyBeginAllowThreads();
17908 (arg1)->SetToolPacking(arg2);
17909
17910 wxPyEndAllowThreads(__tstate);
17911 if (PyErr_Occurred()) SWIG_fail;
17912 }
17913 Py_INCREF(Py_None); resultobj = Py_None;
17914 return resultobj;
17915 fail:
17916 return NULL;
17917}
17918
17919
17920static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
17921 PyObject *resultobj;
17922 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17923 int arg2 ;
17924 PyObject * obj0 = 0 ;
17925 PyObject * obj1 = 0 ;
17926 char *kwnames[] = {
17927 (char *) "self",(char *) "separation", NULL
17928 };
17929
17930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
17931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17933 arg2 = (int) SWIG_AsInt(obj1);
17934 if (PyErr_Occurred()) SWIG_fail;
17935 {
17936 PyThreadState* __tstate = wxPyBeginAllowThreads();
17937 (arg1)->SetToolSeparation(arg2);
17938
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 Py_INCREF(Py_None); resultobj = Py_None;
17943 return resultobj;
17944 fail:
17945 return NULL;
17946}
17947
17948
17949static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17950 PyObject *resultobj;
17951 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17952 wxSize result;
17953 PyObject * obj0 = 0 ;
17954 char *kwnames[] = {
17955 (char *) "self", NULL
17956 };
17957
17958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
17959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 result = (arg1)->GetToolMargins();
17964
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 {
17969 wxSize * resultptr;
17970 resultptr = new wxSize((wxSize &) result);
17971 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
17972 }
17973 return resultobj;
17974 fail:
17975 return NULL;
17976}
17977
17978
17979static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj;
17981 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17982 wxSize result;
17983 PyObject * obj0 = 0 ;
17984 char *kwnames[] = {
17985 (char *) "self", NULL
17986 };
17987
17988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
17989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17991 {
17992 PyThreadState* __tstate = wxPyBeginAllowThreads();
17993 result = (arg1)->GetMargins();
17994
17995 wxPyEndAllowThreads(__tstate);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 {
17999 wxSize * resultptr;
18000 resultptr = new wxSize((wxSize &) result);
18001 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18002 }
18003 return resultobj;
18004 fail:
18005 return NULL;
18006}
18007
18008
18009static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
18010 PyObject *resultobj;
18011 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18012 int result;
18013 PyObject * obj0 = 0 ;
18014 char *kwnames[] = {
18015 (char *) "self", NULL
18016 };
18017
18018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 result = (int)(arg1)->GetToolPacking();
18024
18025 wxPyEndAllowThreads(__tstate);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 }
18028 resultobj = SWIG_FromInt((int)result);
18029 return resultobj;
18030 fail:
18031 return NULL;
18032}
18033
18034
18035static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
18036 PyObject *resultobj;
18037 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18038 int result;
18039 PyObject * obj0 = 0 ;
18040 char *kwnames[] = {
18041 (char *) "self", NULL
18042 };
18043
18044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18047 {
18048 PyThreadState* __tstate = wxPyBeginAllowThreads();
18049 result = (int)(arg1)->GetToolSeparation();
18050
18051 wxPyEndAllowThreads(__tstate);
18052 if (PyErr_Occurred()) SWIG_fail;
18053 }
18054 resultobj = SWIG_FromInt((int)result);
18055 return resultobj;
18056 fail:
18057 return NULL;
18058}
18059
18060
18061static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
18062 PyObject *resultobj;
18063 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18064 int arg2 ;
18065 PyObject * obj0 = 0 ;
18066 PyObject * obj1 = 0 ;
18067 char *kwnames[] = {
18068 (char *) "self",(char *) "nRows", NULL
18069 };
18070
18071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18074 arg2 = (int) SWIG_AsInt(obj1);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 (arg1)->SetRows(arg2);
18079
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 Py_INCREF(Py_None); resultobj = Py_None;
18084 return resultobj;
18085 fail:
18086 return NULL;
18087}
18088
18089
18090static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
18091 PyObject *resultobj;
18092 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18093 int arg2 ;
18094 int arg3 ;
18095 PyObject * obj0 = 0 ;
18096 PyObject * obj1 = 0 ;
18097 PyObject * obj2 = 0 ;
18098 char *kwnames[] = {
18099 (char *) "self",(char *) "rows",(char *) "cols", NULL
18100 };
18101
18102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18105 arg2 = (int) SWIG_AsInt(obj1);
18106 if (PyErr_Occurred()) SWIG_fail;
18107 arg3 = (int) SWIG_AsInt(obj2);
18108 if (PyErr_Occurred()) SWIG_fail;
18109 {
18110 PyThreadState* __tstate = wxPyBeginAllowThreads();
18111 (arg1)->SetMaxRowsCols(arg2,arg3);
18112
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 Py_INCREF(Py_None); resultobj = Py_None;
18117 return resultobj;
18118 fail:
18119 return NULL;
18120}
18121
18122
18123static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj;
18125 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18126 int result;
18127 PyObject * obj0 = 0 ;
18128 char *kwnames[] = {
18129 (char *) "self", NULL
18130 };
18131
18132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18135 {
18136 PyThreadState* __tstate = wxPyBeginAllowThreads();
18137 result = (int)(arg1)->GetMaxRows();
18138
18139 wxPyEndAllowThreads(__tstate);
18140 if (PyErr_Occurred()) SWIG_fail;
18141 }
18142 resultobj = SWIG_FromInt((int)result);
18143 return resultobj;
18144 fail:
18145 return NULL;
18146}
18147
18148
18149static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
18150 PyObject *resultobj;
18151 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18152 int result;
18153 PyObject * obj0 = 0 ;
18154 char *kwnames[] = {
18155 (char *) "self", NULL
18156 };
18157
18158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18161 {
18162 PyThreadState* __tstate = wxPyBeginAllowThreads();
18163 result = (int)(arg1)->GetMaxCols();
18164
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 resultobj = SWIG_FromInt((int)result);
18169 return resultobj;
18170 fail:
18171 return NULL;
18172}
18173
18174
18175static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18176 PyObject *resultobj;
18177 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18178 wxSize *arg2 = 0 ;
18179 wxSize temp2 ;
18180 PyObject * obj0 = 0 ;
18181 PyObject * obj1 = 0 ;
18182 char *kwnames[] = {
18183 (char *) "self",(char *) "size", NULL
18184 };
18185
18186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18189 {
18190 arg2 = &temp2;
18191 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18192 }
18193 {
18194 PyThreadState* __tstate = wxPyBeginAllowThreads();
18195 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18196
18197 wxPyEndAllowThreads(__tstate);
18198 if (PyErr_Occurred()) SWIG_fail;
18199 }
18200 Py_INCREF(Py_None); resultobj = Py_None;
18201 return resultobj;
18202 fail:
18203 return NULL;
18204}
18205
18206
18207static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18208 PyObject *resultobj;
18209 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18210 wxSize result;
18211 PyObject * obj0 = 0 ;
18212 char *kwnames[] = {
18213 (char *) "self", NULL
18214 };
18215
18216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18219 {
18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
18221 result = (arg1)->GetToolBitmapSize();
18222
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 {
18227 wxSize * resultptr;
18228 resultptr = new wxSize((wxSize &) result);
18229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18230 }
18231 return resultobj;
18232 fail:
18233 return NULL;
18234}
18235
18236
18237static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
18238 PyObject *resultobj;
18239 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18240 wxSize result;
18241 PyObject * obj0 = 0 ;
18242 char *kwnames[] = {
18243 (char *) "self", NULL
18244 };
18245
18246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
18251 result = (arg1)->GetToolSize();
18252
18253 wxPyEndAllowThreads(__tstate);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 }
18256 {
18257 wxSize * resultptr;
18258 resultptr = new wxSize((wxSize &) result);
18259 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18260 }
18261 return resultobj;
18262 fail:
18263 return NULL;
18264}
18265
18266
18267static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18268 PyObject *resultobj;
18269 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18270 int arg2 ;
18271 int arg3 ;
18272 wxToolBarToolBase *result;
18273 PyObject * obj0 = 0 ;
18274 PyObject * obj1 = 0 ;
18275 PyObject * obj2 = 0 ;
18276 char *kwnames[] = {
18277 (char *) "self",(char *) "x",(char *) "y", NULL
18278 };
18279
18280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18283 arg2 = (int) SWIG_AsInt(obj1);
18284 if (PyErr_Occurred()) SWIG_fail;
18285 arg3 = (int) SWIG_AsInt(obj2);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18290
18291 wxPyEndAllowThreads(__tstate);
18292 if (PyErr_Occurred()) SWIG_fail;
18293 }
18294 {
412d302d 18295 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18296 }
18297 return resultobj;
18298 fail:
18299 return NULL;
18300}
18301
18302
18303static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) {
18304 PyObject *resultobj;
18305 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18306 int arg2 ;
18307 wxToolBarToolBase *result;
18308 PyObject * obj0 = 0 ;
18309 PyObject * obj1 = 0 ;
18310 char *kwnames[] = {
18311 (char *) "self",(char *) "toolid", NULL
18312 };
18313
18314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18317 arg2 = (int) SWIG_AsInt(obj1);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18322
18323 wxPyEndAllowThreads(__tstate);
18324 if (PyErr_Occurred()) SWIG_fail;
18325 }
18326 {
412d302d 18327 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18328 }
18329 return resultobj;
18330 fail:
18331 return NULL;
18332}
18333
18334
18335static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
18336 PyObject *resultobj;
18337 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18338 bool result;
18339 PyObject * obj0 = 0 ;
18340 char *kwnames[] = {
18341 (char *) "self", NULL
18342 };
18343
18344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18347 {
18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
18349 result = (bool)(arg1)->IsVertical();
18350
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 {
18355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18356 }
18357 return resultobj;
18358 fail:
18359 return NULL;
18360}
18361
18362
18363static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) {
18364 PyObject *obj;
18365 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18366 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18367 Py_INCREF(obj);
18368 return Py_BuildValue((char *)"");
18369}
18370static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18371 PyObject *resultobj;
18372 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17 18373 int arg2 = (int) -1 ;
d55e5bfc
RD
18374 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18375 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18376 wxSize const &arg4_defvalue = wxDefaultSize ;
18377 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18378 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18379 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18380 wxString *arg6 = (wxString *) &arg6_defvalue ;
18381 wxToolBar *result;
18382 wxPoint temp3 ;
18383 wxSize temp4 ;
18384 bool temp6 = False ;
18385 PyObject * obj0 = 0 ;
18386 PyObject * obj1 = 0 ;
18387 PyObject * obj2 = 0 ;
18388 PyObject * obj3 = 0 ;
18389 PyObject * obj4 = 0 ;
18390 PyObject * obj5 = 0 ;
18391 char *kwnames[] = {
18392 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18393 };
18394
bfddbb17 18395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
18396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
18398 if (obj1) {
18399 arg2 = (int) SWIG_AsInt(obj1);
18400 if (PyErr_Occurred()) SWIG_fail;
18401 }
d55e5bfc
RD
18402 if (obj2) {
18403 {
18404 arg3 = &temp3;
18405 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18406 }
18407 }
18408 if (obj3) {
18409 {
18410 arg4 = &temp4;
18411 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18412 }
18413 }
18414 if (obj4) {
18415 arg5 = (long) SWIG_AsLong(obj4);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 }
18418 if (obj5) {
18419 {
18420 arg6 = wxString_in_helper(obj5);
18421 if (arg6 == NULL) SWIG_fail;
18422 temp6 = True;
18423 }
18424 }
18425 {
0439c23b 18426 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
18427 PyThreadState* __tstate = wxPyBeginAllowThreads();
18428 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18429
18430 wxPyEndAllowThreads(__tstate);
110da5b0 18431 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 18432 }
b0f7404b 18433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
d55e5bfc
RD
18434 {
18435 if (temp6)
18436 delete arg6;
18437 }
18438 return resultobj;
18439 fail:
18440 {
18441 if (temp6)
18442 delete arg6;
18443 }
18444 return NULL;
18445}
18446
18447
18448static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
18449 PyObject *resultobj;
18450 wxToolBar *result;
18451 char *kwnames[] = {
18452 NULL
18453 };
18454
18455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18456 {
0439c23b 18457 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
18458 PyThreadState* __tstate = wxPyBeginAllowThreads();
18459 result = (wxToolBar *)new wxToolBar();
18460
18461 wxPyEndAllowThreads(__tstate);
110da5b0 18462 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 18463 }
b0f7404b 18464 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
d55e5bfc
RD
18465 return resultobj;
18466 fail:
18467 return NULL;
18468}
18469
18470
18471static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
18472 PyObject *resultobj;
18473 wxToolBar *arg1 = (wxToolBar *) 0 ;
18474 wxWindow *arg2 = (wxWindow *) 0 ;
bfddbb17 18475 int arg3 = (int) -1 ;
d55e5bfc
RD
18476 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18477 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18478 wxSize const &arg5_defvalue = wxDefaultSize ;
18479 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18480 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18481 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18482 wxString *arg7 = (wxString *) &arg7_defvalue ;
18483 bool result;
18484 wxPoint temp4 ;
18485 wxSize temp5 ;
18486 bool temp7 = False ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489 PyObject * obj2 = 0 ;
18490 PyObject * obj3 = 0 ;
18491 PyObject * obj4 = 0 ;
18492 PyObject * obj5 = 0 ;
18493 PyObject * obj6 = 0 ;
18494 char *kwnames[] = {
18495 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18496 };
18497
bfddbb17 18498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
18499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
18503 if (obj2) {
18504 arg3 = (int) SWIG_AsInt(obj2);
18505 if (PyErr_Occurred()) SWIG_fail;
18506 }
d55e5bfc
RD
18507 if (obj3) {
18508 {
18509 arg4 = &temp4;
18510 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18511 }
18512 }
18513 if (obj4) {
18514 {
18515 arg5 = &temp5;
18516 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18517 }
18518 }
18519 if (obj5) {
18520 arg6 = (long) SWIG_AsLong(obj5);
18521 if (PyErr_Occurred()) SWIG_fail;
18522 }
18523 if (obj6) {
18524 {
18525 arg7 = wxString_in_helper(obj6);
18526 if (arg7 == NULL) SWIG_fail;
18527 temp7 = True;
18528 }
18529 }
18530 {
18531 PyThreadState* __tstate = wxPyBeginAllowThreads();
18532 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18533
18534 wxPyEndAllowThreads(__tstate);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 }
18537 {
18538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18539 }
18540 {
18541 if (temp7)
18542 delete arg7;
18543 }
18544 return resultobj;
18545 fail:
18546 {
18547 if (temp7)
18548 delete arg7;
18549 }
18550 return NULL;
18551}
18552
18553
18554static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18555 PyObject *resultobj;
18556 wxToolBar *arg1 = (wxToolBar *) 0 ;
18557 int arg2 ;
18558 int arg3 ;
18559 wxToolBarToolBase *result;
18560 PyObject * obj0 = 0 ;
18561 PyObject * obj1 = 0 ;
18562 PyObject * obj2 = 0 ;
18563 char *kwnames[] = {
18564 (char *) "self",(char *) "x",(char *) "y", NULL
18565 };
18566
18567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18570 arg2 = (int) SWIG_AsInt(obj1);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 arg3 = (int) SWIG_AsInt(obj2);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 {
18575 PyThreadState* __tstate = wxPyBeginAllowThreads();
18576 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18577
18578 wxPyEndAllowThreads(__tstate);
18579 if (PyErr_Occurred()) SWIG_fail;
18580 }
18581 {
412d302d 18582 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18583 }
18584 return resultobj;
18585 fail:
18586 return NULL;
18587}
18588
18589
f20a2e1f
RD
18590static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
18591 PyObject *resultobj;
18592 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18593 wxVisualAttributes result;
18594 PyObject * obj0 = 0 ;
18595 char *kwnames[] = {
18596 (char *) "variant", NULL
18597 };
18598
18599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18600 if (obj0) {
18601 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
18602 if (PyErr_Occurred()) SWIG_fail;
18603 }
18604 {
0439c23b 18605 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f
RD
18606 PyThreadState* __tstate = wxPyBeginAllowThreads();
18607 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18608
18609 wxPyEndAllowThreads(__tstate);
110da5b0 18610 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
18611 }
18612 {
18613 wxVisualAttributes * resultptr;
18614 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18616 }
18617 return resultobj;
18618 fail:
18619 return NULL;
18620}
18621
18622
d55e5bfc
RD
18623static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) {
18624 PyObject *obj;
18625 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18626 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18627 Py_INCREF(obj);
18628 return Py_BuildValue((char *)"");
18629}
18630static int _wrap_ListCtrlNameStr_set(PyObject *_val) {
18631 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18632 return 1;
18633}
18634
18635
18636static PyObject *_wrap_ListCtrlNameStr_get() {
18637 PyObject *pyobj;
18638
18639 {
18640#if wxUSE_UNICODE
18641 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18642#else
18643 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18644#endif
18645 }
18646 return pyobj;
18647}
18648
18649
18650static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
18651 PyObject *resultobj;
18652 wxColour const &arg1_defvalue = wxNullColour ;
18653 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18654 wxColour const &arg2_defvalue = wxNullColour ;
18655 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18656 wxFont const &arg3_defvalue = wxNullFont ;
18657 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18658 wxListItemAttr *result;
18659 wxColour temp1 ;
18660 wxColour temp2 ;
18661 PyObject * obj0 = 0 ;
18662 PyObject * obj1 = 0 ;
18663 PyObject * obj2 = 0 ;
18664 char *kwnames[] = {
18665 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18666 };
18667
18668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18669 if (obj0) {
18670 {
18671 arg1 = &temp1;
18672 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18673 }
18674 }
18675 if (obj1) {
18676 {
18677 arg2 = &temp2;
18678 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18679 }
18680 }
18681 if (obj2) {
18682 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18683 SWIG_POINTER_EXCEPTION | 0)) == -1)
18684 SWIG_fail;
18685 if (arg3 == NULL) {
18686 PyErr_SetString(PyExc_TypeError,"null reference");
18687 SWIG_fail;
18688 }
18689 }
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18693
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
18697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18698 return resultobj;
18699 fail:
18700 return NULL;
18701}
18702
18703
18704static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18705 PyObject *resultobj;
18706 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18707 wxColour *arg2 = 0 ;
18708 wxColour temp2 ;
18709 PyObject * obj0 = 0 ;
18710 PyObject * obj1 = 0 ;
18711 char *kwnames[] = {
18712 (char *) "self",(char *) "colText", NULL
18713 };
18714
18715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18718 {
18719 arg2 = &temp2;
18720 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18721 }
18722 {
18723 PyThreadState* __tstate = wxPyBeginAllowThreads();
18724 (arg1)->SetTextColour((wxColour const &)*arg2);
18725
18726 wxPyEndAllowThreads(__tstate);
18727 if (PyErr_Occurred()) SWIG_fail;
18728 }
18729 Py_INCREF(Py_None); resultobj = Py_None;
18730 return resultobj;
18731 fail:
18732 return NULL;
18733}
18734
18735
18736static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj;
18738 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18739 wxColour *arg2 = 0 ;
18740 wxColour temp2 ;
18741 PyObject * obj0 = 0 ;
18742 PyObject * obj1 = 0 ;
18743 char *kwnames[] = {
18744 (char *) "self",(char *) "colBack", NULL
18745 };
18746
18747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
18748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18750 {
18751 arg2 = &temp2;
18752 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18753 }
18754 {
18755 PyThreadState* __tstate = wxPyBeginAllowThreads();
18756 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
18757
18758 wxPyEndAllowThreads(__tstate);
18759 if (PyErr_Occurred()) SWIG_fail;
18760 }
18761 Py_INCREF(Py_None); resultobj = Py_None;
18762 return resultobj;
18763 fail:
18764 return NULL;
18765}
18766
18767
18768static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18769 PyObject *resultobj;
18770 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18771 wxFont *arg2 = 0 ;
18772 PyObject * obj0 = 0 ;
18773 PyObject * obj1 = 0 ;
18774 char *kwnames[] = {
18775 (char *) "self",(char *) "font", NULL
18776 };
18777
18778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
18779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18782 SWIG_POINTER_EXCEPTION | 0)) == -1)
18783 SWIG_fail;
18784 if (arg2 == NULL) {
18785 PyErr_SetString(PyExc_TypeError,"null reference");
18786 SWIG_fail;
18787 }
18788 {
18789 PyThreadState* __tstate = wxPyBeginAllowThreads();
18790 (arg1)->SetFont((wxFont const &)*arg2);
18791
18792 wxPyEndAllowThreads(__tstate);
18793 if (PyErr_Occurred()) SWIG_fail;
18794 }
18795 Py_INCREF(Py_None); resultobj = Py_None;
18796 return resultobj;
18797 fail:
18798 return NULL;
18799}
18800
18801
18802static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18803 PyObject *resultobj;
18804 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18805 bool result;
18806 PyObject * obj0 = 0 ;
18807 char *kwnames[] = {
18808 (char *) "self", NULL
18809 };
18810
18811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
18812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18814 {
18815 PyThreadState* __tstate = wxPyBeginAllowThreads();
18816 result = (bool)(arg1)->HasTextColour();
18817
18818 wxPyEndAllowThreads(__tstate);
18819 if (PyErr_Occurred()) SWIG_fail;
18820 }
18821 {
18822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18823 }
18824 return resultobj;
18825 fail:
18826 return NULL;
18827}
18828
18829
18830static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18831 PyObject *resultobj;
18832 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18833 bool result;
18834 PyObject * obj0 = 0 ;
18835 char *kwnames[] = {
18836 (char *) "self", NULL
18837 };
18838
18839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
18840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18842 {
18843 PyThreadState* __tstate = wxPyBeginAllowThreads();
18844 result = (bool)(arg1)->HasBackgroundColour();
18845
18846 wxPyEndAllowThreads(__tstate);
18847 if (PyErr_Occurred()) SWIG_fail;
18848 }
18849 {
18850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18851 }
18852 return resultobj;
18853 fail:
18854 return NULL;
18855}
18856
18857
18858static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18859 PyObject *resultobj;
18860 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18861 bool result;
18862 PyObject * obj0 = 0 ;
18863 char *kwnames[] = {
18864 (char *) "self", NULL
18865 };
18866
18867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
18868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18870 {
18871 PyThreadState* __tstate = wxPyBeginAllowThreads();
18872 result = (bool)(arg1)->HasFont();
18873
18874 wxPyEndAllowThreads(__tstate);
18875 if (PyErr_Occurred()) SWIG_fail;
18876 }
18877 {
18878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18879 }
18880 return resultobj;
18881 fail:
18882 return NULL;
18883}
18884
18885
18886static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18887 PyObject *resultobj;
18888 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18889 wxColour result;
18890 PyObject * obj0 = 0 ;
18891 char *kwnames[] = {
18892 (char *) "self", NULL
18893 };
18894
18895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
18896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18898 {
18899 PyThreadState* __tstate = wxPyBeginAllowThreads();
18900 result = (arg1)->GetTextColour();
18901
18902 wxPyEndAllowThreads(__tstate);
18903 if (PyErr_Occurred()) SWIG_fail;
18904 }
18905 {
18906 wxColour * resultptr;
18907 resultptr = new wxColour((wxColour &) result);
18908 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18909 }
18910 return resultobj;
18911 fail:
18912 return NULL;
18913}
18914
18915
18916static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18917 PyObject *resultobj;
18918 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18919 wxColour result;
18920 PyObject * obj0 = 0 ;
18921 char *kwnames[] = {
18922 (char *) "self", NULL
18923 };
18924
18925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
18926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18928 {
18929 PyThreadState* __tstate = wxPyBeginAllowThreads();
18930 result = (arg1)->GetBackgroundColour();
18931
18932 wxPyEndAllowThreads(__tstate);
18933 if (PyErr_Occurred()) SWIG_fail;
18934 }
18935 {
18936 wxColour * resultptr;
18937 resultptr = new wxColour((wxColour &) result);
18938 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18939 }
18940 return resultobj;
18941 fail:
18942 return NULL;
18943}
18944
18945
18946static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18947 PyObject *resultobj;
18948 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18949 wxFont result;
18950 PyObject * obj0 = 0 ;
18951 char *kwnames[] = {
18952 (char *) "self", NULL
18953 };
18954
18955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
18956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18958 {
18959 PyThreadState* __tstate = wxPyBeginAllowThreads();
18960 result = (arg1)->GetFont();
18961
18962 wxPyEndAllowThreads(__tstate);
18963 if (PyErr_Occurred()) SWIG_fail;
18964 }
18965 {
18966 wxFont * resultptr;
18967 resultptr = new wxFont((wxFont &) result);
18968 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
18969 }
18970 return resultobj;
18971 fail:
18972 return NULL;
18973}
18974
18975
18976static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
18977 PyObject *resultobj;
18978 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18979 PyObject * obj0 = 0 ;
18980 char *kwnames[] = {
18981 (char *) "self", NULL
18982 };
18983
18984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
18985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18987 {
18988 PyThreadState* __tstate = wxPyBeginAllowThreads();
18989 wxListItemAttr_Destroy(arg1);
18990
18991 wxPyEndAllowThreads(__tstate);
18992 if (PyErr_Occurred()) SWIG_fail;
18993 }
18994 Py_INCREF(Py_None); resultobj = Py_None;
18995 return resultobj;
18996 fail:
18997 return NULL;
18998}
18999
19000
19001static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) {
19002 PyObject *obj;
19003 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19004 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19005 Py_INCREF(obj);
19006 return Py_BuildValue((char *)"");
19007}
19008static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
19009 PyObject *resultobj;
19010 wxListItem *result;
19011 char *kwnames[] = {
19012 NULL
19013 };
19014
19015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19016 {
19017 PyThreadState* __tstate = wxPyBeginAllowThreads();
19018 result = (wxListItem *)new wxListItem();
19019
19020 wxPyEndAllowThreads(__tstate);
19021 if (PyErr_Occurred()) SWIG_fail;
19022 }
19023 {
412d302d 19024 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
19025 }
19026 return resultobj;
19027 fail:
19028 return NULL;
19029}
19030
19031
19032static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
19033 PyObject *resultobj;
19034 wxListItem *arg1 = (wxListItem *) 0 ;
19035 PyObject * obj0 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 delete arg1;
19046
19047 wxPyEndAllowThreads(__tstate);
19048 if (PyErr_Occurred()) SWIG_fail;
19049 }
19050 Py_INCREF(Py_None); resultobj = Py_None;
19051 return resultobj;
19052 fail:
19053 return NULL;
19054}
19055
19056
19057static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
19058 PyObject *resultobj;
19059 wxListItem *arg1 = (wxListItem *) 0 ;
19060 PyObject * obj0 = 0 ;
19061 char *kwnames[] = {
19062 (char *) "self", NULL
19063 };
19064
19065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19068 {
19069 PyThreadState* __tstate = wxPyBeginAllowThreads();
19070 (arg1)->Clear();
19071
19072 wxPyEndAllowThreads(__tstate);
19073 if (PyErr_Occurred()) SWIG_fail;
19074 }
19075 Py_INCREF(Py_None); resultobj = Py_None;
19076 return resultobj;
19077 fail:
19078 return NULL;
19079}
19080
19081
19082static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19083 PyObject *resultobj;
19084 wxListItem *arg1 = (wxListItem *) 0 ;
19085 PyObject * obj0 = 0 ;
19086 char *kwnames[] = {
19087 (char *) "self", NULL
19088 };
19089
19090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19093 {
19094 PyThreadState* __tstate = wxPyBeginAllowThreads();
19095 (arg1)->ClearAttributes();
19096
19097 wxPyEndAllowThreads(__tstate);
19098 if (PyErr_Occurred()) SWIG_fail;
19099 }
19100 Py_INCREF(Py_None); resultobj = Py_None;
19101 return resultobj;
19102 fail:
19103 return NULL;
19104}
19105
19106
19107static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj;
19109 wxListItem *arg1 = (wxListItem *) 0 ;
19110 long arg2 ;
19111 PyObject * obj0 = 0 ;
19112 PyObject * obj1 = 0 ;
19113 char *kwnames[] = {
19114 (char *) "self",(char *) "mask", NULL
19115 };
19116
19117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19120 arg2 = (long) SWIG_AsLong(obj1);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 {
19123 PyThreadState* __tstate = wxPyBeginAllowThreads();
19124 (arg1)->SetMask(arg2);
19125
19126 wxPyEndAllowThreads(__tstate);
19127 if (PyErr_Occurred()) SWIG_fail;
19128 }
19129 Py_INCREF(Py_None); resultobj = Py_None;
19130 return resultobj;
19131 fail:
19132 return NULL;
19133}
19134
19135
19136static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19137 PyObject *resultobj;
19138 wxListItem *arg1 = (wxListItem *) 0 ;
19139 long arg2 ;
19140 PyObject * obj0 = 0 ;
19141 PyObject * obj1 = 0 ;
19142 char *kwnames[] = {
19143 (char *) "self",(char *) "id", NULL
19144 };
19145
19146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19149 arg2 = (long) SWIG_AsLong(obj1);
19150 if (PyErr_Occurred()) SWIG_fail;
19151 {
19152 PyThreadState* __tstate = wxPyBeginAllowThreads();
19153 (arg1)->SetId(arg2);
19154
19155 wxPyEndAllowThreads(__tstate);
19156 if (PyErr_Occurred()) SWIG_fail;
19157 }
19158 Py_INCREF(Py_None); resultobj = Py_None;
19159 return resultobj;
19160 fail:
19161 return NULL;
19162}
19163
19164
19165static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19166 PyObject *resultobj;
19167 wxListItem *arg1 = (wxListItem *) 0 ;
19168 int arg2 ;
19169 PyObject * obj0 = 0 ;
19170 PyObject * obj1 = 0 ;
19171 char *kwnames[] = {
19172 (char *) "self",(char *) "col", NULL
19173 };
19174
19175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19178 arg2 = (int) SWIG_AsInt(obj1);
19179 if (PyErr_Occurred()) SWIG_fail;
19180 {
19181 PyThreadState* __tstate = wxPyBeginAllowThreads();
19182 (arg1)->SetColumn(arg2);
19183
19184 wxPyEndAllowThreads(__tstate);
19185 if (PyErr_Occurred()) SWIG_fail;
19186 }
19187 Py_INCREF(Py_None); resultobj = Py_None;
19188 return resultobj;
19189 fail:
19190 return NULL;
19191}
19192
19193
19194static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj;
19196 wxListItem *arg1 = (wxListItem *) 0 ;
19197 long arg2 ;
19198 PyObject * obj0 = 0 ;
19199 PyObject * obj1 = 0 ;
19200 char *kwnames[] = {
19201 (char *) "self",(char *) "state", NULL
19202 };
19203
19204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19207 arg2 = (long) SWIG_AsLong(obj1);
19208 if (PyErr_Occurred()) SWIG_fail;
19209 {
19210 PyThreadState* __tstate = wxPyBeginAllowThreads();
19211 (arg1)->SetState(arg2);
19212
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 Py_INCREF(Py_None); resultobj = Py_None;
19217 return resultobj;
19218 fail:
19219 return NULL;
19220}
19221
19222
19223static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj;
19225 wxListItem *arg1 = (wxListItem *) 0 ;
19226 long arg2 ;
19227 PyObject * obj0 = 0 ;
19228 PyObject * obj1 = 0 ;
19229 char *kwnames[] = {
19230 (char *) "self",(char *) "stateMask", NULL
19231 };
19232
19233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19236 arg2 = (long) SWIG_AsLong(obj1);
19237 if (PyErr_Occurred()) SWIG_fail;
19238 {
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 (arg1)->SetStateMask(arg2);
19241
19242 wxPyEndAllowThreads(__tstate);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 }
19245 Py_INCREF(Py_None); resultobj = Py_None;
19246 return resultobj;
19247 fail:
19248 return NULL;
19249}
19250
19251
19252static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19253 PyObject *resultobj;
19254 wxListItem *arg1 = (wxListItem *) 0 ;
19255 wxString *arg2 = 0 ;
19256 bool temp2 = False ;
19257 PyObject * obj0 = 0 ;
19258 PyObject * obj1 = 0 ;
19259 char *kwnames[] = {
19260 (char *) "self",(char *) "text", NULL
19261 };
19262
19263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19266 {
19267 arg2 = wxString_in_helper(obj1);
19268 if (arg2 == NULL) SWIG_fail;
19269 temp2 = True;
19270 }
19271 {
19272 PyThreadState* __tstate = wxPyBeginAllowThreads();
19273 (arg1)->SetText((wxString const &)*arg2);
19274
19275 wxPyEndAllowThreads(__tstate);
19276 if (PyErr_Occurred()) SWIG_fail;
19277 }
19278 Py_INCREF(Py_None); resultobj = Py_None;
19279 {
19280 if (temp2)
19281 delete arg2;
19282 }
19283 return resultobj;
19284 fail:
19285 {
19286 if (temp2)
19287 delete arg2;
19288 }
19289 return NULL;
19290}
19291
19292
19293static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19294 PyObject *resultobj;
19295 wxListItem *arg1 = (wxListItem *) 0 ;
19296 int arg2 ;
19297 PyObject * obj0 = 0 ;
19298 PyObject * obj1 = 0 ;
19299 char *kwnames[] = {
19300 (char *) "self",(char *) "image", NULL
19301 };
19302
19303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19306 arg2 = (int) SWIG_AsInt(obj1);
19307 if (PyErr_Occurred()) SWIG_fail;
19308 {
19309 PyThreadState* __tstate = wxPyBeginAllowThreads();
19310 (arg1)->SetImage(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_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19323 PyObject *resultobj;
19324 wxListItem *arg1 = (wxListItem *) 0 ;
19325 long arg2 ;
19326 PyObject * obj0 = 0 ;
19327 PyObject * obj1 = 0 ;
19328 char *kwnames[] = {
19329 (char *) "self",(char *) "data", NULL
19330 };
19331
19332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19335 arg2 = (long) SWIG_AsLong(obj1);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 {
19338 PyThreadState* __tstate = wxPyBeginAllowThreads();
19339 (arg1)->SetData(arg2);
19340
19341 wxPyEndAllowThreads(__tstate);
19342 if (PyErr_Occurred()) SWIG_fail;
19343 }
19344 Py_INCREF(Py_None); resultobj = Py_None;
19345 return resultobj;
19346 fail:
19347 return NULL;
19348}
19349
19350
19351static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19352 PyObject *resultobj;
19353 wxListItem *arg1 = (wxListItem *) 0 ;
19354 int arg2 ;
19355 PyObject * obj0 = 0 ;
19356 PyObject * obj1 = 0 ;
19357 char *kwnames[] = {
19358 (char *) "self",(char *) "width", NULL
19359 };
19360
19361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19364 arg2 = (int) SWIG_AsInt(obj1);
19365 if (PyErr_Occurred()) SWIG_fail;
19366 {
19367 PyThreadState* __tstate = wxPyBeginAllowThreads();
19368 (arg1)->SetWidth(arg2);
19369
19370 wxPyEndAllowThreads(__tstate);
19371 if (PyErr_Occurred()) SWIG_fail;
19372 }
19373 Py_INCREF(Py_None); resultobj = Py_None;
19374 return resultobj;
19375 fail:
19376 return NULL;
19377}
19378
19379
19380static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19381 PyObject *resultobj;
19382 wxListItem *arg1 = (wxListItem *) 0 ;
19383 int arg2 ;
19384 PyObject * obj0 = 0 ;
19385 PyObject * obj1 = 0 ;
19386 char *kwnames[] = {
19387 (char *) "self",(char *) "align", NULL
19388 };
19389
19390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19393 arg2 = (wxListColumnFormat) SWIG_AsInt(obj1);
19394 if (PyErr_Occurred()) SWIG_fail;
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 (arg1)->SetAlign((wxListColumnFormat )arg2);
19398
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 Py_INCREF(Py_None); resultobj = Py_None;
19403 return resultobj;
19404 fail:
19405 return NULL;
19406}
19407
19408
19409static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19410 PyObject *resultobj;
19411 wxListItem *arg1 = (wxListItem *) 0 ;
19412 wxColour *arg2 = 0 ;
19413 wxColour temp2 ;
19414 PyObject * obj0 = 0 ;
19415 PyObject * obj1 = 0 ;
19416 char *kwnames[] = {
19417 (char *) "self",(char *) "colText", NULL
19418 };
19419
19420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19423 {
19424 arg2 = &temp2;
19425 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19426 }
19427 {
19428 PyThreadState* __tstate = wxPyBeginAllowThreads();
19429 (arg1)->SetTextColour((wxColour const &)*arg2);
19430
19431 wxPyEndAllowThreads(__tstate);
19432 if (PyErr_Occurred()) SWIG_fail;
19433 }
19434 Py_INCREF(Py_None); resultobj = Py_None;
19435 return resultobj;
19436 fail:
19437 return NULL;
19438}
19439
19440
19441static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19442 PyObject *resultobj;
19443 wxListItem *arg1 = (wxListItem *) 0 ;
19444 wxColour *arg2 = 0 ;
19445 wxColour temp2 ;
19446 PyObject * obj0 = 0 ;
19447 PyObject * obj1 = 0 ;
19448 char *kwnames[] = {
19449 (char *) "self",(char *) "colBack", NULL
19450 };
19451
19452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19455 {
19456 arg2 = &temp2;
19457 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19458 }
19459 {
19460 PyThreadState* __tstate = wxPyBeginAllowThreads();
19461 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19462
19463 wxPyEndAllowThreads(__tstate);
19464 if (PyErr_Occurred()) SWIG_fail;
19465 }
19466 Py_INCREF(Py_None); resultobj = Py_None;
19467 return resultobj;
19468 fail:
19469 return NULL;
19470}
19471
19472
19473static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19474 PyObject *resultobj;
19475 wxListItem *arg1 = (wxListItem *) 0 ;
19476 wxFont *arg2 = 0 ;
19477 PyObject * obj0 = 0 ;
19478 PyObject * obj1 = 0 ;
19479 char *kwnames[] = {
19480 (char *) "self",(char *) "font", NULL
19481 };
19482
19483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19486 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19487 SWIG_POINTER_EXCEPTION | 0)) == -1)
19488 SWIG_fail;
19489 if (arg2 == NULL) {
19490 PyErr_SetString(PyExc_TypeError,"null reference");
19491 SWIG_fail;
19492 }
19493 {
19494 PyThreadState* __tstate = wxPyBeginAllowThreads();
19495 (arg1)->SetFont((wxFont const &)*arg2);
19496
19497 wxPyEndAllowThreads(__tstate);
19498 if (PyErr_Occurred()) SWIG_fail;
19499 }
19500 Py_INCREF(Py_None); resultobj = Py_None;
19501 return resultobj;
19502 fail:
19503 return NULL;
19504}
19505
19506
19507static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
19508 PyObject *resultobj;
19509 wxListItem *arg1 = (wxListItem *) 0 ;
19510 long result;
19511 PyObject * obj0 = 0 ;
19512 char *kwnames[] = {
19513 (char *) "self", NULL
19514 };
19515
19516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 result = (long)(arg1)->GetMask();
19522
19523 wxPyEndAllowThreads(__tstate);
19524 if (PyErr_Occurred()) SWIG_fail;
19525 }
19526 resultobj = SWIG_FromLong((long)result);
19527 return resultobj;
19528 fail:
19529 return NULL;
19530}
19531
19532
19533static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
19534 PyObject *resultobj;
19535 wxListItem *arg1 = (wxListItem *) 0 ;
19536 long result;
19537 PyObject * obj0 = 0 ;
19538 char *kwnames[] = {
19539 (char *) "self", NULL
19540 };
19541
19542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19545 {
19546 PyThreadState* __tstate = wxPyBeginAllowThreads();
19547 result = (long)(arg1)->GetId();
19548
19549 wxPyEndAllowThreads(__tstate);
19550 if (PyErr_Occurred()) SWIG_fail;
19551 }
19552 resultobj = SWIG_FromLong((long)result);
19553 return resultobj;
19554 fail:
19555 return NULL;
19556}
19557
19558
19559static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
19560 PyObject *resultobj;
19561 wxListItem *arg1 = (wxListItem *) 0 ;
19562 int result;
19563 PyObject * obj0 = 0 ;
19564 char *kwnames[] = {
19565 (char *) "self", NULL
19566 };
19567
19568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
19569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19571 {
19572 PyThreadState* __tstate = wxPyBeginAllowThreads();
19573 result = (int)(arg1)->GetColumn();
19574
19575 wxPyEndAllowThreads(__tstate);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 }
19578 resultobj = SWIG_FromInt((int)result);
19579 return resultobj;
19580 fail:
19581 return NULL;
19582}
19583
19584
19585static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
19586 PyObject *resultobj;
19587 wxListItem *arg1 = (wxListItem *) 0 ;
19588 long result;
19589 PyObject * obj0 = 0 ;
19590 char *kwnames[] = {
19591 (char *) "self", NULL
19592 };
19593
19594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19597 {
19598 PyThreadState* __tstate = wxPyBeginAllowThreads();
19599 result = (long)(arg1)->GetState();
19600
19601 wxPyEndAllowThreads(__tstate);
19602 if (PyErr_Occurred()) SWIG_fail;
19603 }
19604 resultobj = SWIG_FromLong((long)result);
19605 return resultobj;
19606 fail:
19607 return NULL;
19608}
19609
19610
19611static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
19612 PyObject *resultobj;
19613 wxListItem *arg1 = (wxListItem *) 0 ;
19614 wxString *result;
19615 PyObject * obj0 = 0 ;
19616 char *kwnames[] = {
19617 (char *) "self", NULL
19618 };
19619
19620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19623 {
19624 PyThreadState* __tstate = wxPyBeginAllowThreads();
19625 {
19626 wxString const &_result_ref = (arg1)->GetText();
19627 result = (wxString *) &_result_ref;
19628 }
19629
19630 wxPyEndAllowThreads(__tstate);
19631 if (PyErr_Occurred()) SWIG_fail;
19632 }
19633 {
19634#if wxUSE_UNICODE
19635 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19636#else
19637 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19638#endif
19639 }
19640 return resultobj;
19641 fail:
19642 return NULL;
19643}
19644
19645
19646static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
19647 PyObject *resultobj;
19648 wxListItem *arg1 = (wxListItem *) 0 ;
19649 int result;
19650 PyObject * obj0 = 0 ;
19651 char *kwnames[] = {
19652 (char *) "self", NULL
19653 };
19654
19655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19658 {
19659 PyThreadState* __tstate = wxPyBeginAllowThreads();
19660 result = (int)(arg1)->GetImage();
19661
19662 wxPyEndAllowThreads(__tstate);
19663 if (PyErr_Occurred()) SWIG_fail;
19664 }
19665 resultobj = SWIG_FromInt((int)result);
19666 return resultobj;
19667 fail:
19668 return NULL;
19669}
19670
19671
19672static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
19673 PyObject *resultobj;
19674 wxListItem *arg1 = (wxListItem *) 0 ;
19675 long result;
19676 PyObject * obj0 = 0 ;
19677 char *kwnames[] = {
19678 (char *) "self", NULL
19679 };
19680
19681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19684 {
19685 PyThreadState* __tstate = wxPyBeginAllowThreads();
19686 result = (long)(arg1)->GetData();
19687
19688 wxPyEndAllowThreads(__tstate);
19689 if (PyErr_Occurred()) SWIG_fail;
19690 }
19691 resultobj = SWIG_FromLong((long)result);
19692 return resultobj;
19693 fail:
19694 return NULL;
19695}
19696
19697
19698static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
19699 PyObject *resultobj;
19700 wxListItem *arg1 = (wxListItem *) 0 ;
19701 int result;
19702 PyObject * obj0 = 0 ;
19703 char *kwnames[] = {
19704 (char *) "self", NULL
19705 };
19706
19707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 result = (int)(arg1)->GetWidth();
19713
19714 wxPyEndAllowThreads(__tstate);
19715 if (PyErr_Occurred()) SWIG_fail;
19716 }
19717 resultobj = SWIG_FromInt((int)result);
19718 return resultobj;
19719 fail:
19720 return NULL;
19721}
19722
19723
19724static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
19725 PyObject *resultobj;
19726 wxListItem *arg1 = (wxListItem *) 0 ;
19727 int result;
19728 PyObject * obj0 = 0 ;
19729 char *kwnames[] = {
19730 (char *) "self", NULL
19731 };
19732
19733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
19734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19736 {
19737 PyThreadState* __tstate = wxPyBeginAllowThreads();
19738 result = (int)(arg1)->GetAlign();
19739
19740 wxPyEndAllowThreads(__tstate);
19741 if (PyErr_Occurred()) SWIG_fail;
19742 }
19743 resultobj = SWIG_FromInt((int)result);
19744 return resultobj;
19745 fail:
19746 return NULL;
19747}
19748
19749
19750static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19751 PyObject *resultobj;
19752 wxListItem *arg1 = (wxListItem *) 0 ;
19753 wxListItemAttr *result;
19754 PyObject * obj0 = 0 ;
19755 char *kwnames[] = {
19756 (char *) "self", NULL
19757 };
19758
19759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
19760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19762 {
19763 PyThreadState* __tstate = wxPyBeginAllowThreads();
19764 result = (wxListItemAttr *)(arg1)->GetAttributes();
19765
19766 wxPyEndAllowThreads(__tstate);
19767 if (PyErr_Occurred()) SWIG_fail;
19768 }
19769 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
19770 return resultobj;
19771 fail:
19772 return NULL;
19773}
19774
19775
19776static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
19777 PyObject *resultobj;
19778 wxListItem *arg1 = (wxListItem *) 0 ;
19779 bool result;
19780 PyObject * obj0 = 0 ;
19781 char *kwnames[] = {
19782 (char *) "self", NULL
19783 };
19784
19785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
19786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19788 {
19789 PyThreadState* __tstate = wxPyBeginAllowThreads();
19790 result = (bool)(arg1)->HasAttributes();
19791
19792 wxPyEndAllowThreads(__tstate);
19793 if (PyErr_Occurred()) SWIG_fail;
19794 }
19795 {
19796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19797 }
19798 return resultobj;
19799 fail:
19800 return NULL;
19801}
19802
19803
19804static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19805 PyObject *resultobj;
19806 wxListItem *arg1 = (wxListItem *) 0 ;
19807 wxColour result;
19808 PyObject * obj0 = 0 ;
19809 char *kwnames[] = {
19810 (char *) "self", NULL
19811 };
19812
19813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
19814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19816 {
19817 PyThreadState* __tstate = wxPyBeginAllowThreads();
19818 result = ((wxListItem const *)arg1)->GetTextColour();
19819
19820 wxPyEndAllowThreads(__tstate);
19821 if (PyErr_Occurred()) SWIG_fail;
19822 }
19823 {
19824 wxColour * resultptr;
19825 resultptr = new wxColour((wxColour &) result);
19826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19827 }
19828 return resultobj;
19829 fail:
19830 return NULL;
19831}
19832
19833
19834static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
19835 PyObject *resultobj;
19836 wxListItem *arg1 = (wxListItem *) 0 ;
19837 wxColour result;
19838 PyObject * obj0 = 0 ;
19839 char *kwnames[] = {
19840 (char *) "self", NULL
19841 };
19842
19843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
19844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 result = ((wxListItem const *)arg1)->GetBackgroundColour();
19849
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 {
19854 wxColour * resultptr;
19855 resultptr = new wxColour((wxColour &) result);
19856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19857 }
19858 return resultobj;
19859 fail:
19860 return NULL;
19861}
19862
19863
19864static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
19865 PyObject *resultobj;
19866 wxListItem *arg1 = (wxListItem *) 0 ;
19867 wxFont result;
19868 PyObject * obj0 = 0 ;
19869 char *kwnames[] = {
19870 (char *) "self", NULL
19871 };
19872
19873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
19874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19876 {
19877 PyThreadState* __tstate = wxPyBeginAllowThreads();
19878 result = ((wxListItem const *)arg1)->GetFont();
19879
19880 wxPyEndAllowThreads(__tstate);
19881 if (PyErr_Occurred()) SWIG_fail;
19882 }
19883 {
19884 wxFont * resultptr;
19885 resultptr = new wxFont((wxFont &) result);
19886 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19887 }
19888 return resultobj;
19889 fail:
19890 return NULL;
19891}
19892
19893
19894static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19895 PyObject *resultobj;
19896 wxListItem *arg1 = (wxListItem *) 0 ;
19897 long arg2 ;
19898 PyObject * obj0 = 0 ;
19899 PyObject * obj1 = 0 ;
19900 char *kwnames[] = {
19901 (char *) "self",(char *) "m_mask", NULL
19902 };
19903
19904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
19905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19907 arg2 = (long) SWIG_AsLong(obj1);
19908 if (PyErr_Occurred()) SWIG_fail;
19909 if (arg1) (arg1)->m_mask = arg2;
19910
19911 Py_INCREF(Py_None); resultobj = Py_None;
19912 return resultobj;
19913 fail:
19914 return NULL;
19915}
19916
19917
19918static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19919 PyObject *resultobj;
19920 wxListItem *arg1 = (wxListItem *) 0 ;
19921 long result;
19922 PyObject * obj0 = 0 ;
19923 char *kwnames[] = {
19924 (char *) "self", NULL
19925 };
19926
19927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
19928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19930 result = (long) ((arg1)->m_mask);
19931
19932 resultobj = SWIG_FromLong((long)result);
19933 return resultobj;
19934 fail:
19935 return NULL;
19936}
19937
19938
19939static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19940 PyObject *resultobj;
19941 wxListItem *arg1 = (wxListItem *) 0 ;
19942 long arg2 ;
19943 PyObject * obj0 = 0 ;
19944 PyObject * obj1 = 0 ;
19945 char *kwnames[] = {
19946 (char *) "self",(char *) "m_itemId", NULL
19947 };
19948
19949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
19950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19952 arg2 = (long) SWIG_AsLong(obj1);
19953 if (PyErr_Occurred()) SWIG_fail;
19954 if (arg1) (arg1)->m_itemId = arg2;
19955
19956 Py_INCREF(Py_None); resultobj = Py_None;
19957 return resultobj;
19958 fail:
19959 return NULL;
19960}
19961
19962
19963static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
19964 PyObject *resultobj;
19965 wxListItem *arg1 = (wxListItem *) 0 ;
19966 long result;
19967 PyObject * obj0 = 0 ;
19968 char *kwnames[] = {
19969 (char *) "self", NULL
19970 };
19971
19972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
19973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19975 result = (long) ((arg1)->m_itemId);
19976
19977 resultobj = SWIG_FromLong((long)result);
19978 return resultobj;
19979 fail:
19980 return NULL;
19981}
19982
19983
19984static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
19985 PyObject *resultobj;
19986 wxListItem *arg1 = (wxListItem *) 0 ;
19987 int arg2 ;
19988 PyObject * obj0 = 0 ;
19989 PyObject * obj1 = 0 ;
19990 char *kwnames[] = {
19991 (char *) "self",(char *) "m_col", NULL
19992 };
19993
19994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
19995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19997 arg2 = (int) SWIG_AsInt(obj1);
19998 if (PyErr_Occurred()) SWIG_fail;
19999 if (arg1) (arg1)->m_col = arg2;
20000
20001 Py_INCREF(Py_None); resultobj = Py_None;
20002 return resultobj;
20003 fail:
20004 return NULL;
20005}
20006
20007
20008static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20009 PyObject *resultobj;
20010 wxListItem *arg1 = (wxListItem *) 0 ;
20011 int result;
20012 PyObject * obj0 = 0 ;
20013 char *kwnames[] = {
20014 (char *) "self", NULL
20015 };
20016
20017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20020 result = (int) ((arg1)->m_col);
20021
20022 resultobj = SWIG_FromInt((int)result);
20023 return resultobj;
20024 fail:
20025 return NULL;
20026}
20027
20028
20029static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20030 PyObject *resultobj;
20031 wxListItem *arg1 = (wxListItem *) 0 ;
20032 long arg2 ;
20033 PyObject * obj0 = 0 ;
20034 PyObject * obj1 = 0 ;
20035 char *kwnames[] = {
20036 (char *) "self",(char *) "m_state", NULL
20037 };
20038
20039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20042 arg2 = (long) SWIG_AsLong(obj1);
20043 if (PyErr_Occurred()) SWIG_fail;
20044 if (arg1) (arg1)->m_state = arg2;
20045
20046 Py_INCREF(Py_None); resultobj = Py_None;
20047 return resultobj;
20048 fail:
20049 return NULL;
20050}
20051
20052
20053static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20054 PyObject *resultobj;
20055 wxListItem *arg1 = (wxListItem *) 0 ;
20056 long result;
20057 PyObject * obj0 = 0 ;
20058 char *kwnames[] = {
20059 (char *) "self", NULL
20060 };
20061
20062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20065 result = (long) ((arg1)->m_state);
20066
20067 resultobj = SWIG_FromLong((long)result);
20068 return resultobj;
20069 fail:
20070 return NULL;
20071}
20072
20073
20074static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20075 PyObject *resultobj;
20076 wxListItem *arg1 = (wxListItem *) 0 ;
20077 long arg2 ;
20078 PyObject * obj0 = 0 ;
20079 PyObject * obj1 = 0 ;
20080 char *kwnames[] = {
20081 (char *) "self",(char *) "m_stateMask", NULL
20082 };
20083
20084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20087 arg2 = (long) SWIG_AsLong(obj1);
20088 if (PyErr_Occurred()) SWIG_fail;
20089 if (arg1) (arg1)->m_stateMask = arg2;
20090
20091 Py_INCREF(Py_None); resultobj = Py_None;
20092 return resultobj;
20093 fail:
20094 return NULL;
20095}
20096
20097
20098static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20099 PyObject *resultobj;
20100 wxListItem *arg1 = (wxListItem *) 0 ;
20101 long result;
20102 PyObject * obj0 = 0 ;
20103 char *kwnames[] = {
20104 (char *) "self", NULL
20105 };
20106
20107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20110 result = (long) ((arg1)->m_stateMask);
20111
20112 resultobj = SWIG_FromLong((long)result);
20113 return resultobj;
20114 fail:
20115 return NULL;
20116}
20117
20118
20119static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20120 PyObject *resultobj;
20121 wxListItem *arg1 = (wxListItem *) 0 ;
20122 wxString *arg2 = (wxString *) 0 ;
20123 bool temp2 = False ;
20124 PyObject * obj0 = 0 ;
20125 PyObject * obj1 = 0 ;
20126 char *kwnames[] = {
20127 (char *) "self",(char *) "m_text", NULL
20128 };
20129
20130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20133 {
20134 arg2 = wxString_in_helper(obj1);
20135 if (arg2 == NULL) SWIG_fail;
20136 temp2 = True;
20137 }
20138 if (arg1) (arg1)->m_text = *arg2;
20139
20140 Py_INCREF(Py_None); resultobj = Py_None;
20141 {
20142 if (temp2)
20143 delete arg2;
20144 }
20145 return resultobj;
20146 fail:
20147 {
20148 if (temp2)
20149 delete arg2;
20150 }
20151 return NULL;
20152}
20153
20154
20155static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20156 PyObject *resultobj;
20157 wxListItem *arg1 = (wxListItem *) 0 ;
20158 wxString *result;
20159 PyObject * obj0 = 0 ;
20160 char *kwnames[] = {
20161 (char *) "self", NULL
20162 };
20163
20164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20167 result = (wxString *)& ((arg1)->m_text);
20168
20169 {
20170#if wxUSE_UNICODE
20171 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20172#else
20173 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20174#endif
20175 }
20176 return resultobj;
20177 fail:
20178 return NULL;
20179}
20180
20181
20182static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20183 PyObject *resultobj;
20184 wxListItem *arg1 = (wxListItem *) 0 ;
20185 int arg2 ;
20186 PyObject * obj0 = 0 ;
20187 PyObject * obj1 = 0 ;
20188 char *kwnames[] = {
20189 (char *) "self",(char *) "m_image", NULL
20190 };
20191
20192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20195 arg2 = (int) SWIG_AsInt(obj1);
20196 if (PyErr_Occurred()) SWIG_fail;
20197 if (arg1) (arg1)->m_image = arg2;
20198
20199 Py_INCREF(Py_None); resultobj = Py_None;
20200 return resultobj;
20201 fail:
20202 return NULL;
20203}
20204
20205
20206static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20207 PyObject *resultobj;
20208 wxListItem *arg1 = (wxListItem *) 0 ;
20209 int result;
20210 PyObject * obj0 = 0 ;
20211 char *kwnames[] = {
20212 (char *) "self", NULL
20213 };
20214
20215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20218 result = (int) ((arg1)->m_image);
20219
20220 resultobj = SWIG_FromInt((int)result);
20221 return resultobj;
20222 fail:
20223 return NULL;
20224}
20225
20226
20227static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20228 PyObject *resultobj;
20229 wxListItem *arg1 = (wxListItem *) 0 ;
20230 long arg2 ;
20231 PyObject * obj0 = 0 ;
20232 PyObject * obj1 = 0 ;
20233 char *kwnames[] = {
20234 (char *) "self",(char *) "m_data", NULL
20235 };
20236
20237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20240 arg2 = (long) SWIG_AsLong(obj1);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 if (arg1) (arg1)->m_data = arg2;
20243
20244 Py_INCREF(Py_None); resultobj = Py_None;
20245 return resultobj;
20246 fail:
20247 return NULL;
20248}
20249
20250
20251static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20252 PyObject *resultobj;
20253 wxListItem *arg1 = (wxListItem *) 0 ;
20254 long result;
20255 PyObject * obj0 = 0 ;
20256 char *kwnames[] = {
20257 (char *) "self", NULL
20258 };
20259
20260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20263 result = (long) ((arg1)->m_data);
20264
20265 resultobj = SWIG_FromLong((long)result);
20266 return resultobj;
20267 fail:
20268 return NULL;
20269}
20270
20271
20272static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20273 PyObject *resultobj;
20274 wxListItem *arg1 = (wxListItem *) 0 ;
20275 int arg2 ;
20276 PyObject * obj0 = 0 ;
20277 PyObject * obj1 = 0 ;
20278 char *kwnames[] = {
20279 (char *) "self",(char *) "m_format", NULL
20280 };
20281
20282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20285 arg2 = (int) SWIG_AsInt(obj1);
20286 if (PyErr_Occurred()) SWIG_fail;
20287 if (arg1) (arg1)->m_format = arg2;
20288
20289 Py_INCREF(Py_None); resultobj = Py_None;
20290 return resultobj;
20291 fail:
20292 return NULL;
20293}
20294
20295
20296static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20297 PyObject *resultobj;
20298 wxListItem *arg1 = (wxListItem *) 0 ;
20299 int result;
20300 PyObject * obj0 = 0 ;
20301 char *kwnames[] = {
20302 (char *) "self", NULL
20303 };
20304
20305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20308 result = (int) ((arg1)->m_format);
20309
20310 resultobj = SWIG_FromInt((int)result);
20311 return resultobj;
20312 fail:
20313 return NULL;
20314}
20315
20316
20317static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20318 PyObject *resultobj;
20319 wxListItem *arg1 = (wxListItem *) 0 ;
20320 int arg2 ;
20321 PyObject * obj0 = 0 ;
20322 PyObject * obj1 = 0 ;
20323 char *kwnames[] = {
20324 (char *) "self",(char *) "m_width", NULL
20325 };
20326
20327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20330 arg2 = (int) SWIG_AsInt(obj1);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 if (arg1) (arg1)->m_width = arg2;
20333
20334 Py_INCREF(Py_None); resultobj = Py_None;
20335 return resultobj;
20336 fail:
20337 return NULL;
20338}
20339
20340
20341static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20342 PyObject *resultobj;
20343 wxListItem *arg1 = (wxListItem *) 0 ;
20344 int result;
20345 PyObject * obj0 = 0 ;
20346 char *kwnames[] = {
20347 (char *) "self", NULL
20348 };
20349
20350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20353 result = (int) ((arg1)->m_width);
20354
20355 resultobj = SWIG_FromInt((int)result);
20356 return resultobj;
20357 fail:
20358 return NULL;
20359}
20360
20361
20362static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) {
20363 PyObject *obj;
20364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20365 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20366 Py_INCREF(obj);
20367 return Py_BuildValue((char *)"");
20368}
20369static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20370 PyObject *resultobj;
20371 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20372 int arg2 = (int) 0 ;
20373 wxListEvent *result;
20374 PyObject * obj0 = 0 ;
20375 PyObject * obj1 = 0 ;
20376 char *kwnames[] = {
20377 (char *) "commandType",(char *) "id", NULL
20378 };
20379
20380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20381 if (obj0) {
20382 arg1 = (wxEventType) SWIG_AsInt(obj0);
20383 if (PyErr_Occurred()) SWIG_fail;
20384 }
20385 if (obj1) {
20386 arg2 = (int) SWIG_AsInt(obj1);
20387 if (PyErr_Occurred()) SWIG_fail;
20388 }
20389 {
20390 PyThreadState* __tstate = wxPyBeginAllowThreads();
20391 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20392
20393 wxPyEndAllowThreads(__tstate);
20394 if (PyErr_Occurred()) SWIG_fail;
20395 }
20396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20397 return resultobj;
20398 fail:
20399 return NULL;
20400}
20401
20402
20403static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20404 PyObject *resultobj;
20405 wxListEvent *arg1 = (wxListEvent *) 0 ;
20406 int arg2 ;
20407 PyObject * obj0 = 0 ;
20408 PyObject * obj1 = 0 ;
20409 char *kwnames[] = {
20410 (char *) "self",(char *) "m_code", NULL
20411 };
20412
20413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20416 arg2 = (int) SWIG_AsInt(obj1);
20417 if (PyErr_Occurred()) SWIG_fail;
20418 if (arg1) (arg1)->m_code = arg2;
20419
20420 Py_INCREF(Py_None); resultobj = Py_None;
20421 return resultobj;
20422 fail:
20423 return NULL;
20424}
20425
20426
20427static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20428 PyObject *resultobj;
20429 wxListEvent *arg1 = (wxListEvent *) 0 ;
20430 int result;
20431 PyObject * obj0 = 0 ;
20432 char *kwnames[] = {
20433 (char *) "self", NULL
20434 };
20435
20436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20439 result = (int) ((arg1)->m_code);
20440
20441 resultobj = SWIG_FromInt((int)result);
20442 return resultobj;
20443 fail:
20444 return NULL;
20445}
20446
20447
20448static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20449 PyObject *resultobj;
20450 wxListEvent *arg1 = (wxListEvent *) 0 ;
20451 long arg2 ;
20452 PyObject * obj0 = 0 ;
20453 PyObject * obj1 = 0 ;
20454 char *kwnames[] = {
20455 (char *) "self",(char *) "m_oldItemIndex", NULL
20456 };
20457
20458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20461 arg2 = (long) SWIG_AsLong(obj1);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 if (arg1) (arg1)->m_oldItemIndex = arg2;
20464
20465 Py_INCREF(Py_None); resultobj = Py_None;
20466 return resultobj;
20467 fail:
20468 return NULL;
20469}
20470
20471
20472static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20473 PyObject *resultobj;
20474 wxListEvent *arg1 = (wxListEvent *) 0 ;
20475 long result;
20476 PyObject * obj0 = 0 ;
20477 char *kwnames[] = {
20478 (char *) "self", NULL
20479 };
20480
20481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20484 result = (long) ((arg1)->m_oldItemIndex);
20485
20486 resultobj = SWIG_FromLong((long)result);
20487 return resultobj;
20488 fail:
20489 return NULL;
20490}
20491
20492
20493static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20494 PyObject *resultobj;
20495 wxListEvent *arg1 = (wxListEvent *) 0 ;
20496 long arg2 ;
20497 PyObject * obj0 = 0 ;
20498 PyObject * obj1 = 0 ;
20499 char *kwnames[] = {
20500 (char *) "self",(char *) "m_itemIndex", NULL
20501 };
20502
20503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20506 arg2 = (long) SWIG_AsLong(obj1);
20507 if (PyErr_Occurred()) SWIG_fail;
20508 if (arg1) (arg1)->m_itemIndex = arg2;
20509
20510 Py_INCREF(Py_None); resultobj = Py_None;
20511 return resultobj;
20512 fail:
20513 return NULL;
20514}
20515
20516
20517static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20518 PyObject *resultobj;
20519 wxListEvent *arg1 = (wxListEvent *) 0 ;
20520 long result;
20521 PyObject * obj0 = 0 ;
20522 char *kwnames[] = {
20523 (char *) "self", NULL
20524 };
20525
20526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20529 result = (long) ((arg1)->m_itemIndex);
20530
20531 resultobj = SWIG_FromLong((long)result);
20532 return resultobj;
20533 fail:
20534 return NULL;
20535}
20536
20537
20538static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20539 PyObject *resultobj;
20540 wxListEvent *arg1 = (wxListEvent *) 0 ;
20541 int arg2 ;
20542 PyObject * obj0 = 0 ;
20543 PyObject * obj1 = 0 ;
20544 char *kwnames[] = {
20545 (char *) "self",(char *) "m_col", NULL
20546 };
20547
20548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20551 arg2 = (int) SWIG_AsInt(obj1);
20552 if (PyErr_Occurred()) SWIG_fail;
20553 if (arg1) (arg1)->m_col = arg2;
20554
20555 Py_INCREF(Py_None); resultobj = Py_None;
20556 return resultobj;
20557 fail:
20558 return NULL;
20559}
20560
20561
20562static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20563 PyObject *resultobj;
20564 wxListEvent *arg1 = (wxListEvent *) 0 ;
20565 int result;
20566 PyObject * obj0 = 0 ;
20567 char *kwnames[] = {
20568 (char *) "self", NULL
20569 };
20570
20571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20574 result = (int) ((arg1)->m_col);
20575
20576 resultobj = SWIG_FromInt((int)result);
20577 return resultobj;
20578 fail:
20579 return NULL;
20580}
20581
20582
20583static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
20584 PyObject *resultobj;
20585 wxListEvent *arg1 = (wxListEvent *) 0 ;
20586 wxPoint *arg2 = (wxPoint *) 0 ;
20587 PyObject * obj0 = 0 ;
20588 PyObject * obj1 = 0 ;
20589 char *kwnames[] = {
20590 (char *) "self",(char *) "m_pointDrag", NULL
20591 };
20592
20593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20596 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20598 if (arg1) (arg1)->m_pointDrag = *arg2;
20599
20600 Py_INCREF(Py_None); resultobj = Py_None;
20601 return resultobj;
20602 fail:
20603 return NULL;
20604}
20605
20606
20607static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20608 PyObject *resultobj;
20609 wxListEvent *arg1 = (wxListEvent *) 0 ;
20610 wxPoint *result;
20611 PyObject * obj0 = 0 ;
20612 char *kwnames[] = {
20613 (char *) "self", NULL
20614 };
20615
20616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20619 result = (wxPoint *)& ((arg1)->m_pointDrag);
20620
20621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20622 return resultobj;
20623 fail:
20624 return NULL;
20625}
20626
20627
20628static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
20629 PyObject *resultobj;
20630 wxListEvent *arg1 = (wxListEvent *) 0 ;
20631 wxListItem *result;
20632 PyObject * obj0 = 0 ;
20633 char *kwnames[] = {
20634 (char *) "self", NULL
20635 };
20636
20637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20640 result = (wxListItem *)& ((arg1)->m_item);
20641
20642 {
412d302d 20643 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
20644 }
20645 return resultobj;
20646 fail:
20647 return NULL;
20648}
20649
20650
20651static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20652 PyObject *resultobj;
20653 wxListEvent *arg1 = (wxListEvent *) 0 ;
20654 int result;
20655 PyObject * obj0 = 0 ;
20656 char *kwnames[] = {
20657 (char *) "self", NULL
20658 };
20659
20660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20663 {
20664 PyThreadState* __tstate = wxPyBeginAllowThreads();
20665 result = (int)(arg1)->GetKeyCode();
20666
20667 wxPyEndAllowThreads(__tstate);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 }
20670 resultobj = SWIG_FromInt((int)result);
20671 return resultobj;
20672 fail:
20673 return NULL;
20674}
20675
20676
20677static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
20678 PyObject *resultobj;
20679 wxListEvent *arg1 = (wxListEvent *) 0 ;
20680 long result;
20681 PyObject * obj0 = 0 ;
20682 char *kwnames[] = {
20683 (char *) "self", NULL
20684 };
20685
20686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20689 {
20690 PyThreadState* __tstate = wxPyBeginAllowThreads();
20691 result = (long)(arg1)->GetIndex();
20692
20693 wxPyEndAllowThreads(__tstate);
20694 if (PyErr_Occurred()) SWIG_fail;
20695 }
20696 resultobj = SWIG_FromLong((long)result);
20697 return resultobj;
20698 fail:
20699 return NULL;
20700}
20701
20702
20703static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
20704 PyObject *resultobj;
20705 wxListEvent *arg1 = (wxListEvent *) 0 ;
20706 int result;
20707 PyObject * obj0 = 0 ;
20708 char *kwnames[] = {
20709 (char *) "self", NULL
20710 };
20711
20712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20715 {
20716 PyThreadState* __tstate = wxPyBeginAllowThreads();
20717 result = (int)(arg1)->GetColumn();
20718
20719 wxPyEndAllowThreads(__tstate);
20720 if (PyErr_Occurred()) SWIG_fail;
20721 }
20722 resultobj = SWIG_FromInt((int)result);
20723 return resultobj;
20724 fail:
20725 return NULL;
20726}
20727
20728
20729static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
20730 PyObject *resultobj;
20731 wxListEvent *arg1 = (wxListEvent *) 0 ;
20732 wxPoint result;
20733 PyObject * obj0 = 0 ;
20734 char *kwnames[] = {
20735 (char *) "self", NULL
20736 };
20737
20738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
20739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20741 {
20742 PyThreadState* __tstate = wxPyBeginAllowThreads();
20743 result = (arg1)->GetPoint();
20744
20745 wxPyEndAllowThreads(__tstate);
20746 if (PyErr_Occurred()) SWIG_fail;
20747 }
20748 {
20749 wxPoint * resultptr;
20750 resultptr = new wxPoint((wxPoint &) result);
20751 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20752 }
20753 return resultobj;
20754 fail:
20755 return NULL;
20756}
20757
20758
20759static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20760 PyObject *resultobj;
20761 wxListEvent *arg1 = (wxListEvent *) 0 ;
20762 wxString *result;
20763 PyObject * obj0 = 0 ;
20764 char *kwnames[] = {
20765 (char *) "self", NULL
20766 };
20767
20768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
20769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20771 {
20772 PyThreadState* __tstate = wxPyBeginAllowThreads();
20773 {
20774 wxString const &_result_ref = (arg1)->GetLabel();
20775 result = (wxString *) &_result_ref;
20776 }
20777
20778 wxPyEndAllowThreads(__tstate);
20779 if (PyErr_Occurred()) SWIG_fail;
20780 }
20781 {
20782#if wxUSE_UNICODE
20783 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20784#else
20785 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20786#endif
20787 }
20788 return resultobj;
20789 fail:
20790 return NULL;
20791}
20792
20793
20794static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
20795 PyObject *resultobj;
20796 wxListEvent *arg1 = (wxListEvent *) 0 ;
20797 wxString *result;
20798 PyObject * obj0 = 0 ;
20799 char *kwnames[] = {
20800 (char *) "self", NULL
20801 };
20802
20803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
20804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20806 {
20807 PyThreadState* __tstate = wxPyBeginAllowThreads();
20808 {
20809 wxString const &_result_ref = (arg1)->GetText();
20810 result = (wxString *) &_result_ref;
20811 }
20812
20813 wxPyEndAllowThreads(__tstate);
20814 if (PyErr_Occurred()) SWIG_fail;
20815 }
20816 {
20817#if wxUSE_UNICODE
20818 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20819#else
20820 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20821#endif
20822 }
20823 return resultobj;
20824 fail:
20825 return NULL;
20826}
20827
20828
20829static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
20830 PyObject *resultobj;
20831 wxListEvent *arg1 = (wxListEvent *) 0 ;
20832 int result;
20833 PyObject * obj0 = 0 ;
20834 char *kwnames[] = {
20835 (char *) "self", NULL
20836 };
20837
20838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
20839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20841 {
20842 PyThreadState* __tstate = wxPyBeginAllowThreads();
20843 result = (int)(arg1)->GetImage();
20844
20845 wxPyEndAllowThreads(__tstate);
20846 if (PyErr_Occurred()) SWIG_fail;
20847 }
20848 resultobj = SWIG_FromInt((int)result);
20849 return resultobj;
20850 fail:
20851 return NULL;
20852}
20853
20854
20855static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
20856 PyObject *resultobj;
20857 wxListEvent *arg1 = (wxListEvent *) 0 ;
20858 long result;
20859 PyObject * obj0 = 0 ;
20860 char *kwnames[] = {
20861 (char *) "self", NULL
20862 };
20863
20864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
20865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20867 {
20868 PyThreadState* __tstate = wxPyBeginAllowThreads();
20869 result = (long)(arg1)->GetData();
20870
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 resultobj = SWIG_FromLong((long)result);
20875 return resultobj;
20876 fail:
20877 return NULL;
20878}
20879
20880
20881static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
20882 PyObject *resultobj;
20883 wxListEvent *arg1 = (wxListEvent *) 0 ;
20884 long result;
20885 PyObject * obj0 = 0 ;
20886 char *kwnames[] = {
20887 (char *) "self", NULL
20888 };
20889
20890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
20891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20893 {
20894 PyThreadState* __tstate = wxPyBeginAllowThreads();
20895 result = (long)(arg1)->GetMask();
20896
20897 wxPyEndAllowThreads(__tstate);
20898 if (PyErr_Occurred()) SWIG_fail;
20899 }
20900 resultobj = SWIG_FromLong((long)result);
20901 return resultobj;
20902 fail:
20903 return NULL;
20904}
20905
20906
20907static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20908 PyObject *resultobj;
20909 wxListEvent *arg1 = (wxListEvent *) 0 ;
20910 wxListItem *result;
20911 PyObject * obj0 = 0 ;
20912 char *kwnames[] = {
20913 (char *) "self", NULL
20914 };
20915
20916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
20917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20919 {
20920 PyThreadState* __tstate = wxPyBeginAllowThreads();
20921 {
20922 wxListItem const &_result_ref = (arg1)->GetItem();
20923 result = (wxListItem *) &_result_ref;
20924 }
20925
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
20930 return resultobj;
20931 fail:
20932 return NULL;
20933}
20934
20935
20936static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
20937 PyObject *resultobj;
20938 wxListEvent *arg1 = (wxListEvent *) 0 ;
20939 long result;
20940 PyObject * obj0 = 0 ;
20941 char *kwnames[] = {
20942 (char *) "self", NULL
20943 };
20944
20945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
20946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20948 {
20949 PyThreadState* __tstate = wxPyBeginAllowThreads();
20950 result = (long)(arg1)->GetCacheFrom();
20951
20952 wxPyEndAllowThreads(__tstate);
20953 if (PyErr_Occurred()) SWIG_fail;
20954 }
20955 resultobj = SWIG_FromLong((long)result);
20956 return resultobj;
20957 fail:
20958 return NULL;
20959}
20960
20961
20962static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20963 PyObject *resultobj;
20964 wxListEvent *arg1 = (wxListEvent *) 0 ;
20965 long result;
20966 PyObject * obj0 = 0 ;
20967 char *kwnames[] = {
20968 (char *) "self", NULL
20969 };
20970
20971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
20972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20974 {
20975 PyThreadState* __tstate = wxPyBeginAllowThreads();
20976 result = (long)(arg1)->GetCacheTo();
20977
20978 wxPyEndAllowThreads(__tstate);
20979 if (PyErr_Occurred()) SWIG_fail;
20980 }
20981 resultobj = SWIG_FromLong((long)result);
20982 return resultobj;
20983 fail:
20984 return NULL;
20985}
20986
20987
20988static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
20989 PyObject *resultobj;
20990 wxListEvent *arg1 = (wxListEvent *) 0 ;
20991 bool result;
20992 PyObject * obj0 = 0 ;
20993 char *kwnames[] = {
20994 (char *) "self", NULL
20995 };
20996
20997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
20998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21000 {
21001 PyThreadState* __tstate = wxPyBeginAllowThreads();
21002 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21003
21004 wxPyEndAllowThreads(__tstate);
21005 if (PyErr_Occurred()) SWIG_fail;
21006 }
21007 {
21008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21009 }
21010 return resultobj;
21011 fail:
21012 return NULL;
21013}
21014
21015
21016static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
21017 PyObject *resultobj;
21018 wxListEvent *arg1 = (wxListEvent *) 0 ;
21019 bool arg2 ;
21020 PyObject * obj0 = 0 ;
21021 PyObject * obj1 = 0 ;
21022 char *kwnames[] = {
21023 (char *) "self",(char *) "editCancelled", NULL
21024 };
21025
21026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21029 arg2 = (bool) SWIG_AsBool(obj1);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 {
21032 PyThreadState* __tstate = wxPyBeginAllowThreads();
21033 (arg1)->SetEditCanceled(arg2);
21034
21035 wxPyEndAllowThreads(__tstate);
21036 if (PyErr_Occurred()) SWIG_fail;
21037 }
21038 Py_INCREF(Py_None); resultobj = Py_None;
21039 return resultobj;
21040 fail:
21041 return NULL;
21042}
21043
21044
21045static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) {
21046 PyObject *obj;
21047 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21048 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21049 Py_INCREF(obj);
21050 return Py_BuildValue((char *)"");
21051}
21052static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
21053 PyObject *resultobj;
21054 wxWindow *arg1 = (wxWindow *) 0 ;
21055 int arg2 = (int) -1 ;
21056 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21057 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21058 wxSize const &arg4_defvalue = wxDefaultSize ;
21059 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21060 long arg5 = (long) wxLC_ICON ;
21061 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21062 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21063 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21064 wxString *arg7 = (wxString *) &arg7_defvalue ;
21065 wxPyListCtrl *result;
21066 wxPoint temp3 ;
21067 wxSize temp4 ;
21068 bool temp7 = False ;
21069 PyObject * obj0 = 0 ;
21070 PyObject * obj1 = 0 ;
21071 PyObject * obj2 = 0 ;
21072 PyObject * obj3 = 0 ;
21073 PyObject * obj4 = 0 ;
21074 PyObject * obj5 = 0 ;
21075 PyObject * obj6 = 0 ;
21076 char *kwnames[] = {
21077 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21078 };
21079
21080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21083 if (obj1) {
21084 arg2 = (int) SWIG_AsInt(obj1);
21085 if (PyErr_Occurred()) SWIG_fail;
21086 }
21087 if (obj2) {
21088 {
21089 arg3 = &temp3;
21090 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21091 }
21092 }
21093 if (obj3) {
21094 {
21095 arg4 = &temp4;
21096 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21097 }
21098 }
21099 if (obj4) {
21100 arg5 = (long) SWIG_AsLong(obj4);
21101 if (PyErr_Occurred()) SWIG_fail;
21102 }
21103 if (obj5) {
21104 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21105 SWIG_POINTER_EXCEPTION | 0)) == -1)
21106 SWIG_fail;
21107 if (arg6 == NULL) {
21108 PyErr_SetString(PyExc_TypeError,"null reference");
21109 SWIG_fail;
21110 }
21111 }
21112 if (obj6) {
21113 {
21114 arg7 = wxString_in_helper(obj6);
21115 if (arg7 == NULL) SWIG_fail;
21116 temp7 = True;
21117 }
21118 }
21119 {
0439c23b 21120 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21121 PyThreadState* __tstate = wxPyBeginAllowThreads();
21122 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21123
21124 wxPyEndAllowThreads(__tstate);
110da5b0 21125 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
21126 }
21127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21128 {
21129 if (temp7)
21130 delete arg7;
21131 }
21132 return resultobj;
21133 fail:
21134 {
21135 if (temp7)
21136 delete arg7;
21137 }
21138 return NULL;
21139}
21140
21141
21142static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
21143 PyObject *resultobj;
21144 wxPyListCtrl *result;
21145 char *kwnames[] = {
21146 NULL
21147 };
21148
21149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21150 {
0439c23b 21151 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21152 PyThreadState* __tstate = wxPyBeginAllowThreads();
21153 result = (wxPyListCtrl *)new wxPyListCtrl();
21154
21155 wxPyEndAllowThreads(__tstate);
110da5b0 21156 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
21157 }
21158 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21159 return resultobj;
21160 fail:
21161 return NULL;
21162}
21163
21164
21165static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21166 PyObject *resultobj;
21167 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21168 wxWindow *arg2 = (wxWindow *) 0 ;
21169 int arg3 = (int) -1 ;
21170 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21171 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21172 wxSize const &arg5_defvalue = wxDefaultSize ;
21173 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21174 long arg6 = (long) wxLC_ICON ;
21175 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21176 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21177 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21178 wxString *arg8 = (wxString *) &arg8_defvalue ;
21179 bool result;
21180 wxPoint temp4 ;
21181 wxSize temp5 ;
21182 bool temp8 = False ;
21183 PyObject * obj0 = 0 ;
21184 PyObject * obj1 = 0 ;
21185 PyObject * obj2 = 0 ;
21186 PyObject * obj3 = 0 ;
21187 PyObject * obj4 = 0 ;
21188 PyObject * obj5 = 0 ;
21189 PyObject * obj6 = 0 ;
21190 PyObject * obj7 = 0 ;
21191 char *kwnames[] = {
21192 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21193 };
21194
21195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21198 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21200 if (obj2) {
21201 arg3 = (int) SWIG_AsInt(obj2);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 }
21204 if (obj3) {
21205 {
21206 arg4 = &temp4;
21207 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21208 }
21209 }
21210 if (obj4) {
21211 {
21212 arg5 = &temp5;
21213 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21214 }
21215 }
21216 if (obj5) {
21217 arg6 = (long) SWIG_AsLong(obj5);
21218 if (PyErr_Occurred()) SWIG_fail;
21219 }
21220 if (obj6) {
21221 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21222 SWIG_POINTER_EXCEPTION | 0)) == -1)
21223 SWIG_fail;
21224 if (arg7 == NULL) {
21225 PyErr_SetString(PyExc_TypeError,"null reference");
21226 SWIG_fail;
21227 }
21228 }
21229 if (obj7) {
21230 {
21231 arg8 = wxString_in_helper(obj7);
21232 if (arg8 == NULL) SWIG_fail;
21233 temp8 = True;
21234 }
21235 }
21236 {
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21239
21240 wxPyEndAllowThreads(__tstate);
21241 if (PyErr_Occurred()) SWIG_fail;
21242 }
21243 {
21244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21245 }
21246 {
21247 if (temp8)
21248 delete arg8;
21249 }
21250 return resultobj;
21251 fail:
21252 {
21253 if (temp8)
21254 delete arg8;
21255 }
21256 return NULL;
21257}
21258
21259
21260static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
21261 PyObject *resultobj;
21262 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21263 PyObject *arg2 = (PyObject *) 0 ;
21264 PyObject *arg3 = (PyObject *) 0 ;
21265 PyObject * obj0 = 0 ;
21266 PyObject * obj1 = 0 ;
21267 PyObject * obj2 = 0 ;
21268 char *kwnames[] = {
21269 (char *) "self",(char *) "self",(char *) "_class", NULL
21270 };
21271
21272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21275 arg2 = obj1;
21276 arg3 = obj2;
21277 {
21278 PyThreadState* __tstate = wxPyBeginAllowThreads();
21279 (arg1)->_setCallbackInfo(arg2,arg3);
21280
21281 wxPyEndAllowThreads(__tstate);
21282 if (PyErr_Occurred()) SWIG_fail;
21283 }
21284 Py_INCREF(Py_None); resultobj = Py_None;
21285 return resultobj;
21286 fail:
21287 return NULL;
21288}
21289
21290
21291static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21292 PyObject *resultobj;
21293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21294 wxColour *arg2 = 0 ;
21295 bool result;
21296 wxColour temp2 ;
21297 PyObject * obj0 = 0 ;
21298 PyObject * obj1 = 0 ;
21299 char *kwnames[] = {
21300 (char *) "self",(char *) "col", NULL
21301 };
21302
21303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21306 {
21307 arg2 = &temp2;
21308 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21309 }
21310 {
21311 PyThreadState* __tstate = wxPyBeginAllowThreads();
21312 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21313
21314 wxPyEndAllowThreads(__tstate);
21315 if (PyErr_Occurred()) SWIG_fail;
21316 }
21317 {
21318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21319 }
21320 return resultobj;
21321 fail:
21322 return NULL;
21323}
21324
21325
21326static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
21327 PyObject *resultobj;
21328 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21329 wxColour *arg2 = 0 ;
21330 bool result;
21331 wxColour temp2 ;
21332 PyObject * obj0 = 0 ;
21333 PyObject * obj1 = 0 ;
21334 char *kwnames[] = {
21335 (char *) "self",(char *) "col", NULL
21336 };
21337
21338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21341 {
21342 arg2 = &temp2;
21343 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21344 }
21345 {
21346 PyThreadState* __tstate = wxPyBeginAllowThreads();
21347 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21348
21349 wxPyEndAllowThreads(__tstate);
21350 if (PyErr_Occurred()) SWIG_fail;
21351 }
21352 {
21353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21354 }
21355 return resultobj;
21356 fail:
21357 return NULL;
21358}
21359
21360
21361static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21362 PyObject *resultobj;
21363 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21364 int arg2 ;
21365 wxListItem *result;
21366 PyObject * obj0 = 0 ;
21367 PyObject * obj1 = 0 ;
21368 char *kwnames[] = {
21369 (char *) "self",(char *) "col", NULL
21370 };
21371
21372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21375 arg2 = (int) SWIG_AsInt(obj1);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21380
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 {
412d302d 21385 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
21386 }
21387 return resultobj;
21388 fail:
21389 return NULL;
21390}
21391
21392
21393static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
21394 PyObject *resultobj;
21395 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21396 int arg2 ;
21397 wxListItem *arg3 = 0 ;
21398 bool result;
21399 PyObject * obj0 = 0 ;
21400 PyObject * obj1 = 0 ;
21401 PyObject * obj2 = 0 ;
21402 char *kwnames[] = {
21403 (char *) "self",(char *) "col",(char *) "item", NULL
21404 };
21405
21406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21409 arg2 = (int) SWIG_AsInt(obj1);
21410 if (PyErr_Occurred()) SWIG_fail;
21411 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21412 SWIG_POINTER_EXCEPTION | 0)) == -1)
21413 SWIG_fail;
21414 if (arg3 == NULL) {
21415 PyErr_SetString(PyExc_TypeError,"null reference");
21416 SWIG_fail;
21417 }
21418 {
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21421
21422 wxPyEndAllowThreads(__tstate);
21423 if (PyErr_Occurred()) SWIG_fail;
21424 }
21425 {
21426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21427 }
21428 return resultobj;
21429 fail:
21430 return NULL;
21431}
21432
21433
21434static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21435 PyObject *resultobj;
21436 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21437 int arg2 ;
21438 int result;
21439 PyObject * obj0 = 0 ;
21440 PyObject * obj1 = 0 ;
21441 char *kwnames[] = {
21442 (char *) "self",(char *) "col", NULL
21443 };
21444
21445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21448 arg2 = (int) SWIG_AsInt(obj1);
21449 if (PyErr_Occurred()) SWIG_fail;
21450 {
21451 PyThreadState* __tstate = wxPyBeginAllowThreads();
21452 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21453
21454 wxPyEndAllowThreads(__tstate);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
21457 resultobj = SWIG_FromInt((int)result);
21458 return resultobj;
21459 fail:
21460 return NULL;
21461}
21462
21463
21464static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
21465 PyObject *resultobj;
21466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21467 int arg2 ;
21468 int arg3 ;
21469 bool result;
21470 PyObject * obj0 = 0 ;
21471 PyObject * obj1 = 0 ;
21472 PyObject * obj2 = 0 ;
21473 char *kwnames[] = {
21474 (char *) "self",(char *) "col",(char *) "width", NULL
21475 };
21476
21477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21480 arg2 = (int) SWIG_AsInt(obj1);
21481 if (PyErr_Occurred()) SWIG_fail;
21482 arg3 = (int) SWIG_AsInt(obj2);
21483 if (PyErr_Occurred()) SWIG_fail;
21484 {
21485 PyThreadState* __tstate = wxPyBeginAllowThreads();
21486 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21487
21488 wxPyEndAllowThreads(__tstate);
21489 if (PyErr_Occurred()) SWIG_fail;
21490 }
21491 {
21492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21493 }
21494 return resultobj;
21495 fail:
21496 return NULL;
21497}
21498
21499
21500static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
21501 PyObject *resultobj;
21502 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21503 int result;
21504 PyObject * obj0 = 0 ;
21505 char *kwnames[] = {
21506 (char *) "self", NULL
21507 };
21508
21509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21512 {
21513 PyThreadState* __tstate = wxPyBeginAllowThreads();
21514 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21515
21516 wxPyEndAllowThreads(__tstate);
21517 if (PyErr_Occurred()) SWIG_fail;
21518 }
21519 resultobj = SWIG_FromInt((int)result);
21520 return resultobj;
21521 fail:
21522 return NULL;
21523}
21524
21525
21526static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21527 PyObject *resultobj;
21528 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21529 wxRect result;
21530 PyObject * obj0 = 0 ;
21531 char *kwnames[] = {
21532 (char *) "self", NULL
21533 };
21534
21535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21538 {
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21541
21542 wxPyEndAllowThreads(__tstate);
21543 if (PyErr_Occurred()) SWIG_fail;
21544 }
21545 {
21546 wxRect * resultptr;
21547 resultptr = new wxRect((wxRect &) result);
21548 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21549 }
21550 return resultobj;
21551 fail:
21552 return NULL;
21553}
21554
21555
21556static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj;
21558 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21559 long arg2 ;
21560 int arg3 = (int) 0 ;
21561 wxListItem *result;
21562 PyObject * obj0 = 0 ;
21563 PyObject * obj1 = 0 ;
21564 PyObject * obj2 = 0 ;
21565 char *kwnames[] = {
21566 (char *) "self",(char *) "itemId",(char *) "col", NULL
21567 };
21568
21569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21572 arg2 = (long) SWIG_AsLong(obj1);
21573 if (PyErr_Occurred()) SWIG_fail;
21574 if (obj2) {
21575 arg3 = (int) SWIG_AsInt(obj2);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
21578 {
21579 PyThreadState* __tstate = wxPyBeginAllowThreads();
21580 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21581
21582 wxPyEndAllowThreads(__tstate);
21583 if (PyErr_Occurred()) SWIG_fail;
21584 }
21585 {
412d302d 21586 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
21587 }
21588 return resultobj;
21589 fail:
21590 return NULL;
21591}
21592
21593
21594static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21595 PyObject *resultobj;
21596 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21597 wxListItem *arg2 = 0 ;
21598 bool result;
21599 PyObject * obj0 = 0 ;
21600 PyObject * obj1 = 0 ;
21601 char *kwnames[] = {
21602 (char *) "self",(char *) "info", NULL
21603 };
21604
21605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21608 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21609 SWIG_POINTER_EXCEPTION | 0)) == -1)
21610 SWIG_fail;
21611 if (arg2 == NULL) {
21612 PyErr_SetString(PyExc_TypeError,"null reference");
21613 SWIG_fail;
21614 }
21615 {
21616 PyThreadState* __tstate = wxPyBeginAllowThreads();
21617 result = (bool)(arg1)->SetItem(*arg2);
21618
21619 wxPyEndAllowThreads(__tstate);
21620 if (PyErr_Occurred()) SWIG_fail;
21621 }
21622 {
21623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21624 }
21625 return resultobj;
21626 fail:
21627 return NULL;
21628}
21629
21630
21631static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
21632 PyObject *resultobj;
21633 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21634 long arg2 ;
21635 int arg3 ;
21636 wxString *arg4 = 0 ;
21637 int arg5 = (int) -1 ;
21638 long result;
21639 bool temp4 = False ;
21640 PyObject * obj0 = 0 ;
21641 PyObject * obj1 = 0 ;
21642 PyObject * obj2 = 0 ;
21643 PyObject * obj3 = 0 ;
21644 PyObject * obj4 = 0 ;
21645 char *kwnames[] = {
21646 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21647 };
21648
21649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21652 arg2 = (long) SWIG_AsLong(obj1);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 arg3 = (int) SWIG_AsInt(obj2);
21655 if (PyErr_Occurred()) SWIG_fail;
21656 {
21657 arg4 = wxString_in_helper(obj3);
21658 if (arg4 == NULL) SWIG_fail;
21659 temp4 = True;
21660 }
21661 if (obj4) {
21662 arg5 = (int) SWIG_AsInt(obj4);
21663 if (PyErr_Occurred()) SWIG_fail;
21664 }
21665 {
21666 PyThreadState* __tstate = wxPyBeginAllowThreads();
21667 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21668
21669 wxPyEndAllowThreads(__tstate);
21670 if (PyErr_Occurred()) SWIG_fail;
21671 }
21672 resultobj = SWIG_FromLong((long)result);
21673 {
21674 if (temp4)
21675 delete arg4;
21676 }
21677 return resultobj;
21678 fail:
21679 {
21680 if (temp4)
21681 delete arg4;
21682 }
21683 return NULL;
21684}
21685
21686
21687static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21688 PyObject *resultobj;
21689 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21690 long arg2 ;
21691 long arg3 ;
21692 int result;
21693 PyObject * obj0 = 0 ;
21694 PyObject * obj1 = 0 ;
21695 PyObject * obj2 = 0 ;
21696 char *kwnames[] = {
21697 (char *) "self",(char *) "item",(char *) "stateMask", NULL
21698 };
21699
21700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
21701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21703 arg2 = (long) SWIG_AsLong(obj1);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 arg3 = (long) SWIG_AsLong(obj2);
21706 if (PyErr_Occurred()) SWIG_fail;
21707 {
21708 PyThreadState* __tstate = wxPyBeginAllowThreads();
21709 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
21710
21711 wxPyEndAllowThreads(__tstate);
21712 if (PyErr_Occurred()) SWIG_fail;
21713 }
21714 resultobj = SWIG_FromInt((int)result);
21715 return resultobj;
21716 fail:
21717 return NULL;
21718}
21719
21720
21721static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
21722 PyObject *resultobj;
21723 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21724 long arg2 ;
21725 long arg3 ;
21726 long arg4 ;
21727 bool result;
21728 PyObject * obj0 = 0 ;
21729 PyObject * obj1 = 0 ;
21730 PyObject * obj2 = 0 ;
21731 PyObject * obj3 = 0 ;
21732 char *kwnames[] = {
21733 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
21734 };
21735
21736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21739 arg2 = (long) SWIG_AsLong(obj1);
21740 if (PyErr_Occurred()) SWIG_fail;
21741 arg3 = (long) SWIG_AsLong(obj2);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 arg4 = (long) SWIG_AsLong(obj3);
21744 if (PyErr_Occurred()) SWIG_fail;
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
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_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
21762 PyObject *resultobj;
21763 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21764 long arg2 ;
21765 int arg3 ;
21766 int arg4 ;
21767 bool result;
21768 PyObject * obj0 = 0 ;
21769 PyObject * obj1 = 0 ;
21770 PyObject * obj2 = 0 ;
21771 PyObject * obj3 = 0 ;
21772 char *kwnames[] = {
21773 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
21774 };
21775
21776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21779 arg2 = (long) SWIG_AsLong(obj1);
21780 if (PyErr_Occurred()) SWIG_fail;
21781 arg3 = (int) SWIG_AsInt(obj2);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 arg4 = (int) SWIG_AsInt(obj3);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
21788
21789 wxPyEndAllowThreads(__tstate);
21790 if (PyErr_Occurred()) SWIG_fail;
21791 }
21792 {
21793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21794 }
21795 return resultobj;
21796 fail:
21797 return NULL;
21798}
21799
21800
21801static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21802 PyObject *resultobj;
21803 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21804 long arg2 ;
21805 wxString result;
21806 PyObject * obj0 = 0 ;
21807 PyObject * obj1 = 0 ;
21808 char *kwnames[] = {
21809 (char *) "self",(char *) "item", NULL
21810 };
21811
21812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
21813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21815 arg2 = (long) SWIG_AsLong(obj1);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 {
21818 PyThreadState* __tstate = wxPyBeginAllowThreads();
21819 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
21820
21821 wxPyEndAllowThreads(__tstate);
21822 if (PyErr_Occurred()) SWIG_fail;
21823 }
21824 {
21825#if wxUSE_UNICODE
21826 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21827#else
21828 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21829#endif
21830 }
21831 return resultobj;
21832 fail:
21833 return NULL;
21834}
21835
21836
21837static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
21838 PyObject *resultobj;
21839 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21840 long arg2 ;
21841 wxString *arg3 = 0 ;
21842 bool temp3 = False ;
21843 PyObject * obj0 = 0 ;
21844 PyObject * obj1 = 0 ;
21845 PyObject * obj2 = 0 ;
21846 char *kwnames[] = {
21847 (char *) "self",(char *) "item",(char *) "str", NULL
21848 };
21849
21850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
21851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21853 arg2 = (long) SWIG_AsLong(obj1);
21854 if (PyErr_Occurred()) SWIG_fail;
21855 {
21856 arg3 = wxString_in_helper(obj2);
21857 if (arg3 == NULL) SWIG_fail;
21858 temp3 = True;
21859 }
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
21863
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 Py_INCREF(Py_None); resultobj = Py_None;
21868 {
21869 if (temp3)
21870 delete arg3;
21871 }
21872 return resultobj;
21873 fail:
21874 {
21875 if (temp3)
21876 delete arg3;
21877 }
21878 return NULL;
21879}
21880
21881
21882static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21883 PyObject *resultobj;
21884 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21885 long arg2 ;
21886 long result;
21887 PyObject * obj0 = 0 ;
21888 PyObject * obj1 = 0 ;
21889 char *kwnames[] = {
21890 (char *) "self",(char *) "item", NULL
21891 };
21892
21893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
21894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21896 arg2 = (long) SWIG_AsLong(obj1);
21897 if (PyErr_Occurred()) SWIG_fail;
21898 {
21899 PyThreadState* __tstate = wxPyBeginAllowThreads();
21900 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
21901
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 resultobj = SWIG_FromLong((long)result);
21906 return resultobj;
21907 fail:
21908 return NULL;
21909}
21910
21911
21912static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
21913 PyObject *resultobj;
21914 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21915 long arg2 ;
21916 long arg3 ;
21917 bool result;
21918 PyObject * obj0 = 0 ;
21919 PyObject * obj1 = 0 ;
21920 PyObject * obj2 = 0 ;
21921 char *kwnames[] = {
21922 (char *) "self",(char *) "item",(char *) "data", NULL
21923 };
21924
21925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
21926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21928 arg2 = (long) SWIG_AsLong(obj1);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 arg3 = (long) SWIG_AsLong(obj2);
21931 if (PyErr_Occurred()) SWIG_fail;
21932 {
21933 PyThreadState* __tstate = wxPyBeginAllowThreads();
21934 result = (bool)(arg1)->SetItemData(arg2,arg3);
21935
21936 wxPyEndAllowThreads(__tstate);
21937 if (PyErr_Occurred()) SWIG_fail;
21938 }
21939 {
21940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21941 }
21942 return resultobj;
21943 fail:
21944 return NULL;
21945}
21946
21947
21948static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21949 PyObject *resultobj;
21950 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21951 long arg2 ;
21952 wxPoint result;
21953 PyObject * obj0 = 0 ;
21954 PyObject * obj1 = 0 ;
21955 char *kwnames[] = {
21956 (char *) "self",(char *) "item", NULL
21957 };
21958
21959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
21960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21962 arg2 = (long) SWIG_AsLong(obj1);
21963 if (PyErr_Occurred()) SWIG_fail;
21964 {
21965 PyThreadState* __tstate = wxPyBeginAllowThreads();
21966 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
21967
21968 wxPyEndAllowThreads(__tstate);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 {
21972 wxPoint * resultptr;
21973 resultptr = new wxPoint((wxPoint &) result);
21974 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21975 }
21976 return resultobj;
21977 fail:
21978 return NULL;
21979}
21980
21981
21982static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21983 PyObject *resultobj;
21984 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21985 long arg2 ;
21986 int arg3 = (int) wxLIST_RECT_BOUNDS ;
21987 wxRect result;
21988 PyObject * obj0 = 0 ;
21989 PyObject * obj1 = 0 ;
21990 PyObject * obj2 = 0 ;
21991 char *kwnames[] = {
21992 (char *) "self",(char *) "item",(char *) "code", NULL
21993 };
21994
21995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
21996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21998 arg2 = (long) SWIG_AsLong(obj1);
21999 if (PyErr_Occurred()) SWIG_fail;
22000 if (obj2) {
22001 arg3 = (int) SWIG_AsInt(obj2);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 {
22005 PyThreadState* __tstate = wxPyBeginAllowThreads();
22006 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22007
22008 wxPyEndAllowThreads(__tstate);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 }
22011 {
22012 wxRect * resultptr;
22013 resultptr = new wxRect((wxRect &) result);
22014 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22015 }
22016 return resultobj;
22017 fail:
22018 return NULL;
22019}
22020
22021
22022static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
22023 PyObject *resultobj;
22024 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22025 long arg2 ;
22026 wxPoint *arg3 = 0 ;
22027 bool result;
22028 wxPoint temp3 ;
22029 PyObject * obj0 = 0 ;
22030 PyObject * obj1 = 0 ;
22031 PyObject * obj2 = 0 ;
22032 char *kwnames[] = {
22033 (char *) "self",(char *) "item",(char *) "pos", NULL
22034 };
22035
22036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22039 arg2 = (long) SWIG_AsLong(obj1);
22040 if (PyErr_Occurred()) SWIG_fail;
22041 {
22042 arg3 = &temp3;
22043 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22044 }
22045 {
22046 PyThreadState* __tstate = wxPyBeginAllowThreads();
22047 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22048
22049 wxPyEndAllowThreads(__tstate);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 }
22052 {
22053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22054 }
22055 return resultobj;
22056 fail:
22057 return NULL;
22058}
22059
22060
22061static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22062 PyObject *resultobj;
22063 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22064 int result;
22065 PyObject * obj0 = 0 ;
22066 char *kwnames[] = {
22067 (char *) "self", NULL
22068 };
22069
22070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22073 {
22074 PyThreadState* __tstate = wxPyBeginAllowThreads();
22075 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22076
22077 wxPyEndAllowThreads(__tstate);
22078 if (PyErr_Occurred()) SWIG_fail;
22079 }
22080 resultobj = SWIG_FromInt((int)result);
22081 return resultobj;
22082 fail:
22083 return NULL;
22084}
22085
22086
22087static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22088 PyObject *resultobj;
22089 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22090 int result;
22091 PyObject * obj0 = 0 ;
22092 char *kwnames[] = {
22093 (char *) "self", NULL
22094 };
22095
22096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22099 {
22100 PyThreadState* __tstate = wxPyBeginAllowThreads();
22101 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22102
22103 wxPyEndAllowThreads(__tstate);
22104 if (PyErr_Occurred()) SWIG_fail;
22105 }
22106 resultobj = SWIG_FromInt((int)result);
22107 return resultobj;
22108 fail:
22109 return NULL;
22110}
22111
22112
22113static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
22114 PyObject *resultobj;
22115 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22116 wxSize result;
22117 PyObject * obj0 = 0 ;
22118 char *kwnames[] = {
22119 (char *) "self", NULL
22120 };
22121
22122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22125 {
22126 PyThreadState* __tstate = wxPyBeginAllowThreads();
22127 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22128
22129 wxPyEndAllowThreads(__tstate);
22130 if (PyErr_Occurred()) SWIG_fail;
22131 }
22132 {
22133 wxSize * resultptr;
22134 resultptr = new wxSize((wxSize &) result);
22135 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22136 }
22137 return resultobj;
22138 fail:
22139 return NULL;
22140}
22141
22142
22143static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj;
22145 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22146 int arg2 ;
22147 bool arg3 = (bool) False ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 PyObject * obj2 = 0 ;
22151 char *kwnames[] = {
22152 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
22153 };
22154
22155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
22156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22158 arg2 = (int) SWIG_AsInt(obj1);
22159 if (PyErr_Occurred()) SWIG_fail;
22160 if (obj2) {
22161 arg3 = (bool) SWIG_AsBool(obj2);
22162 if (PyErr_Occurred()) SWIG_fail;
22163 }
22164 {
22165 PyThreadState* __tstate = wxPyBeginAllowThreads();
22166 (arg1)->SetItemSpacing(arg2,arg3);
22167
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 Py_INCREF(Py_None); resultobj = Py_None;
22172 return resultobj;
22173 fail:
22174 return NULL;
22175}
22176
22177
22178static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
22179 PyObject *resultobj;
22180 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22181 int result;
22182 PyObject * obj0 = 0 ;
22183 char *kwnames[] = {
22184 (char *) "self", NULL
22185 };
22186
22187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22190 {
22191 PyThreadState* __tstate = wxPyBeginAllowThreads();
22192 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22193
22194 wxPyEndAllowThreads(__tstate);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 resultobj = SWIG_FromInt((int)result);
22198 return resultobj;
22199 fail:
22200 return NULL;
22201}
22202
22203
22204static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22205 PyObject *resultobj;
22206 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22207 wxColour result;
22208 PyObject * obj0 = 0 ;
22209 char *kwnames[] = {
22210 (char *) "self", NULL
22211 };
22212
22213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22216 {
22217 PyThreadState* __tstate = wxPyBeginAllowThreads();
22218 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22219
22220 wxPyEndAllowThreads(__tstate);
22221 if (PyErr_Occurred()) SWIG_fail;
22222 }
22223 {
22224 wxColour * resultptr;
22225 resultptr = new wxColour((wxColour &) result);
22226 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22227 }
22228 return resultobj;
22229 fail:
22230 return NULL;
22231}
22232
22233
22234static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
22235 PyObject *resultobj;
22236 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22237 wxColour *arg2 = 0 ;
22238 wxColour temp2 ;
22239 PyObject * obj0 = 0 ;
22240 PyObject * obj1 = 0 ;
22241 char *kwnames[] = {
22242 (char *) "self",(char *) "col", NULL
22243 };
22244
22245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22248 {
22249 arg2 = &temp2;
22250 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22251 }
22252 {
22253 PyThreadState* __tstate = wxPyBeginAllowThreads();
22254 (arg1)->SetTextColour((wxColour const &)*arg2);
22255
22256 wxPyEndAllowThreads(__tstate);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 }
22259 Py_INCREF(Py_None); resultobj = Py_None;
22260 return resultobj;
22261 fail:
22262 return NULL;
22263}
22264
22265
22266static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22267 PyObject *resultobj;
22268 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22269 long result;
22270 PyObject * obj0 = 0 ;
22271 char *kwnames[] = {
22272 (char *) "self", NULL
22273 };
22274
22275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22278 {
22279 PyThreadState* __tstate = wxPyBeginAllowThreads();
22280 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22281
22282 wxPyEndAllowThreads(__tstate);
22283 if (PyErr_Occurred()) SWIG_fail;
22284 }
22285 resultobj = SWIG_FromLong((long)result);
22286 return resultobj;
22287 fail:
22288 return NULL;
22289}
22290
22291
22292static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22293 PyObject *resultobj;
22294 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22295 long arg2 ;
22296 bool arg3 = (bool) True ;
22297 PyObject * obj0 = 0 ;
22298 PyObject * obj1 = 0 ;
22299 PyObject * obj2 = 0 ;
22300 char *kwnames[] = {
22301 (char *) "self",(char *) "style",(char *) "add", NULL
22302 };
22303
22304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22307 arg2 = (long) SWIG_AsLong(obj1);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 if (obj2) {
22310 arg3 = (bool) SWIG_AsBool(obj2);
22311 if (PyErr_Occurred()) SWIG_fail;
22312 }
22313 {
22314 PyThreadState* __tstate = wxPyBeginAllowThreads();
22315 (arg1)->SetSingleStyle(arg2,arg3);
22316
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
22320 Py_INCREF(Py_None); resultobj = Py_None;
22321 return resultobj;
22322 fail:
22323 return NULL;
22324}
22325
22326
22327static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj;
22329 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22330 long arg2 ;
22331 PyObject * obj0 = 0 ;
22332 PyObject * obj1 = 0 ;
22333 char *kwnames[] = {
22334 (char *) "self",(char *) "style", NULL
22335 };
22336
22337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22340 arg2 = (long) SWIG_AsLong(obj1);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 {
22343 PyThreadState* __tstate = wxPyBeginAllowThreads();
22344 (arg1)->SetWindowStyleFlag(arg2);
22345
22346 wxPyEndAllowThreads(__tstate);
22347 if (PyErr_Occurred()) SWIG_fail;
22348 }
22349 Py_INCREF(Py_None); resultobj = Py_None;
22350 return resultobj;
22351 fail:
22352 return NULL;
22353}
22354
22355
22356static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22357 PyObject *resultobj;
22358 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22359 long arg2 ;
22360 int arg3 = (int) wxLIST_NEXT_ALL ;
22361 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22362 long result;
22363 PyObject * obj0 = 0 ;
22364 PyObject * obj1 = 0 ;
22365 PyObject * obj2 = 0 ;
22366 PyObject * obj3 = 0 ;
22367 char *kwnames[] = {
22368 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22369 };
22370
22371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22374 arg2 = (long) SWIG_AsLong(obj1);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 if (obj2) {
22377 arg3 = (int) SWIG_AsInt(obj2);
22378 if (PyErr_Occurred()) SWIG_fail;
22379 }
22380 if (obj3) {
22381 arg4 = (int) SWIG_AsInt(obj3);
22382 if (PyErr_Occurred()) SWIG_fail;
22383 }
22384 {
22385 PyThreadState* __tstate = wxPyBeginAllowThreads();
22386 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22387
22388 wxPyEndAllowThreads(__tstate);
22389 if (PyErr_Occurred()) SWIG_fail;
22390 }
22391 resultobj = SWIG_FromLong((long)result);
22392 return resultobj;
22393 fail:
22394 return NULL;
22395}
22396
22397
22398static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22399 PyObject *resultobj;
22400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22401 int arg2 ;
22402 wxImageList *result;
22403 PyObject * obj0 = 0 ;
22404 PyObject * obj1 = 0 ;
22405 char *kwnames[] = {
22406 (char *) "self",(char *) "which", NULL
22407 };
22408
22409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22412 arg2 = (int) SWIG_AsInt(obj1);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 {
22415 PyThreadState* __tstate = wxPyBeginAllowThreads();
22416 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22417
22418 wxPyEndAllowThreads(__tstate);
22419 if (PyErr_Occurred()) SWIG_fail;
22420 }
22421 {
412d302d 22422 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
22423 }
22424 return resultobj;
22425 fail:
22426 return NULL;
22427}
22428
22429
22430static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22431 PyObject *resultobj;
22432 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22433 wxImageList *arg2 = (wxImageList *) 0 ;
22434 int arg3 ;
22435 PyObject * obj0 = 0 ;
22436 PyObject * obj1 = 0 ;
22437 PyObject * obj2 = 0 ;
22438 char *kwnames[] = {
22439 (char *) "self",(char *) "imageList",(char *) "which", NULL
22440 };
22441
22442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22447 arg3 = (int) SWIG_AsInt(obj2);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 {
22450 PyThreadState* __tstate = wxPyBeginAllowThreads();
22451 (arg1)->SetImageList(arg2,arg3);
22452
22453 wxPyEndAllowThreads(__tstate);
22454 if (PyErr_Occurred()) SWIG_fail;
22455 }
22456 Py_INCREF(Py_None); resultobj = Py_None;
22457 return resultobj;
22458 fail:
22459 return NULL;
22460}
22461
22462
22463static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
22464 PyObject *resultobj;
22465 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22466 wxImageList *arg2 = (wxImageList *) 0 ;
22467 int arg3 ;
22468 PyObject * obj0 = 0 ;
22469 PyObject * obj1 = 0 ;
22470 PyObject * obj2 = 0 ;
22471 char *kwnames[] = {
22472 (char *) "self",(char *) "imageList",(char *) "which", NULL
22473 };
22474
22475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22478 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22479 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22480 arg3 = (int) SWIG_AsInt(obj2);
22481 if (PyErr_Occurred()) SWIG_fail;
22482 {
22483 PyThreadState* __tstate = wxPyBeginAllowThreads();
22484 (arg1)->AssignImageList(arg2,arg3);
22485
22486 wxPyEndAllowThreads(__tstate);
22487 if (PyErr_Occurred()) SWIG_fail;
22488 }
22489 Py_INCREF(Py_None); resultobj = Py_None;
22490 return resultobj;
22491 fail:
22492 return NULL;
22493}
22494
22495
22496static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) {
22497 PyObject *resultobj;
22498 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22499 bool result;
22500 PyObject * obj0 = 0 ;
22501 char *kwnames[] = {
22502 (char *) "self", NULL
22503 };
22504
22505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22508 {
22509 PyThreadState* __tstate = wxPyBeginAllowThreads();
22510 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22511
22512 wxPyEndAllowThreads(__tstate);
22513 if (PyErr_Occurred()) SWIG_fail;
22514 }
22515 {
22516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22517 }
22518 return resultobj;
22519 fail:
22520 return NULL;
22521}
22522
22523
22524static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
22525 PyObject *resultobj;
22526 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22527 bool result;
22528 PyObject * obj0 = 0 ;
22529 char *kwnames[] = {
22530 (char *) "self", NULL
22531 };
22532
22533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22536 {
22537 PyThreadState* __tstate = wxPyBeginAllowThreads();
22538 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22539
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 {
22544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22545 }
22546 return resultobj;
22547 fail:
22548 return NULL;
22549}
22550
22551
22552static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22553 PyObject *resultobj;
22554 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22555 long arg2 ;
22556 PyObject * obj0 = 0 ;
22557 PyObject * obj1 = 0 ;
22558 char *kwnames[] = {
22559 (char *) "self",(char *) "item", NULL
22560 };
22561
22562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22565 arg2 = (long) SWIG_AsLong(obj1);
22566 if (PyErr_Occurred()) SWIG_fail;
22567 {
22568 PyThreadState* __tstate = wxPyBeginAllowThreads();
22569 (arg1)->RefreshItem(arg2);
22570
22571 wxPyEndAllowThreads(__tstate);
22572 if (PyErr_Occurred()) SWIG_fail;
22573 }
22574 Py_INCREF(Py_None); resultobj = Py_None;
22575 return resultobj;
22576 fail:
22577 return NULL;
22578}
22579
22580
22581static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22582 PyObject *resultobj;
22583 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22584 long arg2 ;
22585 long arg3 ;
22586 PyObject * obj0 = 0 ;
22587 PyObject * obj1 = 0 ;
22588 PyObject * obj2 = 0 ;
22589 char *kwnames[] = {
22590 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22591 };
22592
22593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22596 arg2 = (long) SWIG_AsLong(obj1);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 arg3 = (long) SWIG_AsLong(obj2);
22599 if (PyErr_Occurred()) SWIG_fail;
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 (arg1)->RefreshItems(arg2,arg3);
22603
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 Py_INCREF(Py_None); resultobj = Py_None;
22608 return resultobj;
22609 fail:
22610 return NULL;
22611}
22612
22613
22614static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj;
22616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22617 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22618 bool result;
22619 PyObject * obj0 = 0 ;
22620 PyObject * obj1 = 0 ;
22621 char *kwnames[] = {
22622 (char *) "self",(char *) "flag", NULL
22623 };
22624
22625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22628 if (obj1) {
22629 arg2 = (int) SWIG_AsInt(obj1);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 }
22632 {
22633 PyThreadState* __tstate = wxPyBeginAllowThreads();
22634 result = (bool)(arg1)->Arrange(arg2);
22635
22636 wxPyEndAllowThreads(__tstate);
22637 if (PyErr_Occurred()) SWIG_fail;
22638 }
22639 {
22640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22641 }
22642 return resultobj;
22643 fail:
22644 return NULL;
22645}
22646
22647
22648static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22649 PyObject *resultobj;
22650 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22651 long arg2 ;
22652 bool result;
22653 PyObject * obj0 = 0 ;
22654 PyObject * obj1 = 0 ;
22655 char *kwnames[] = {
22656 (char *) "self",(char *) "item", NULL
22657 };
22658
22659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22662 arg2 = (long) SWIG_AsLong(obj1);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 {
22665 PyThreadState* __tstate = wxPyBeginAllowThreads();
22666 result = (bool)(arg1)->DeleteItem(arg2);
22667
22668 wxPyEndAllowThreads(__tstate);
22669 if (PyErr_Occurred()) SWIG_fail;
22670 }
22671 {
22672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22673 }
22674 return resultobj;
22675 fail:
22676 return NULL;
22677}
22678
22679
22680static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
22681 PyObject *resultobj;
22682 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22683 bool result;
22684 PyObject * obj0 = 0 ;
22685 char *kwnames[] = {
22686 (char *) "self", NULL
22687 };
22688
22689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22692 {
22693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22694 result = (bool)(arg1)->DeleteAllItems();
22695
22696 wxPyEndAllowThreads(__tstate);
22697 if (PyErr_Occurred()) SWIG_fail;
22698 }
22699 {
22700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22701 }
22702 return resultobj;
22703 fail:
22704 return NULL;
22705}
22706
22707
22708static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
22709 PyObject *resultobj;
22710 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22711 int arg2 ;
22712 bool result;
22713 PyObject * obj0 = 0 ;
22714 PyObject * obj1 = 0 ;
22715 char *kwnames[] = {
22716 (char *) "self",(char *) "col", NULL
22717 };
22718
22719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22722 arg2 = (int) SWIG_AsInt(obj1);
22723 if (PyErr_Occurred()) SWIG_fail;
22724 {
22725 PyThreadState* __tstate = wxPyBeginAllowThreads();
22726 result = (bool)(arg1)->DeleteColumn(arg2);
22727
22728 wxPyEndAllowThreads(__tstate);
22729 if (PyErr_Occurred()) SWIG_fail;
22730 }
22731 {
22732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22733 }
22734 return resultobj;
22735 fail:
22736 return NULL;
22737}
22738
22739
22740static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
22741 PyObject *resultobj;
22742 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22743 bool result;
22744 PyObject * obj0 = 0 ;
22745 char *kwnames[] = {
22746 (char *) "self", NULL
22747 };
22748
22749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
22750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22752 {
22753 PyThreadState* __tstate = wxPyBeginAllowThreads();
22754 result = (bool)(arg1)->DeleteAllColumns();
22755
22756 wxPyEndAllowThreads(__tstate);
22757 if (PyErr_Occurred()) SWIG_fail;
22758 }
22759 {
22760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22761 }
22762 return resultobj;
22763 fail:
22764 return NULL;
22765}
22766
22767
22768static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
22769 PyObject *resultobj;
22770 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22771 PyObject * obj0 = 0 ;
22772 char *kwnames[] = {
22773 (char *) "self", NULL
22774 };
22775
22776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
22777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22779 {
22780 PyThreadState* __tstate = wxPyBeginAllowThreads();
22781 (arg1)->ClearAll();
22782
22783 wxPyEndAllowThreads(__tstate);
22784 if (PyErr_Occurred()) SWIG_fail;
22785 }
22786 Py_INCREF(Py_None); resultobj = Py_None;
22787 return resultobj;
22788 fail:
22789 return NULL;
22790}
22791
22792
22793static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
22794 PyObject *resultobj;
22795 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22796 long arg2 ;
22797 PyObject * obj0 = 0 ;
22798 PyObject * obj1 = 0 ;
22799 char *kwnames[] = {
22800 (char *) "self",(char *) "item", NULL
22801 };
22802
22803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
22804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22806 arg2 = (long) SWIG_AsLong(obj1);
22807 if (PyErr_Occurred()) SWIG_fail;
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 (arg1)->EditLabel(arg2);
22811
22812 wxPyEndAllowThreads(__tstate);
22813 if (PyErr_Occurred()) SWIG_fail;
22814 }
22815 Py_INCREF(Py_None); resultobj = Py_None;
22816 return resultobj;
22817 fail:
22818 return NULL;
22819}
22820
22821
22822static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
22823 PyObject *resultobj;
22824 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22825 long arg2 ;
22826 bool result;
22827 PyObject * obj0 = 0 ;
22828 PyObject * obj1 = 0 ;
22829 char *kwnames[] = {
22830 (char *) "self",(char *) "item", NULL
22831 };
22832
22833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
22834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22836 arg2 = (long) SWIG_AsLong(obj1);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 result = (bool)(arg1)->EnsureVisible(arg2);
22841
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 {
22846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22847 }
22848 return resultobj;
22849 fail:
22850 return NULL;
22851}
22852
22853
22854static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
22855 PyObject *resultobj;
22856 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22857 long arg2 ;
22858 wxString *arg3 = 0 ;
22859 bool arg4 = (bool) False ;
22860 long result;
22861 bool temp3 = False ;
22862 PyObject * obj0 = 0 ;
22863 PyObject * obj1 = 0 ;
22864 PyObject * obj2 = 0 ;
22865 PyObject * obj3 = 0 ;
22866 char *kwnames[] = {
22867 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
22868 };
22869
22870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22873 arg2 = (long) SWIG_AsLong(obj1);
22874 if (PyErr_Occurred()) SWIG_fail;
22875 {
22876 arg3 = wxString_in_helper(obj2);
22877 if (arg3 == NULL) SWIG_fail;
22878 temp3 = True;
22879 }
22880 if (obj3) {
22881 arg4 = (bool) SWIG_AsBool(obj3);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 {
22885 PyThreadState* __tstate = wxPyBeginAllowThreads();
22886 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
22887
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_FromLong((long)result);
22892 {
22893 if (temp3)
22894 delete arg3;
22895 }
22896 return resultobj;
22897 fail:
22898 {
22899 if (temp3)
22900 delete arg3;
22901 }
22902 return NULL;
22903}
22904
22905
22906static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
22907 PyObject *resultobj;
22908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22909 long arg2 ;
22910 long arg3 ;
22911 long result;
22912 PyObject * obj0 = 0 ;
22913 PyObject * obj1 = 0 ;
22914 PyObject * obj2 = 0 ;
22915 char *kwnames[] = {
22916 (char *) "self",(char *) "start",(char *) "data", NULL
22917 };
22918
22919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22922 arg2 = (long) SWIG_AsLong(obj1);
22923 if (PyErr_Occurred()) SWIG_fail;
22924 arg3 = (long) SWIG_AsLong(obj2);
22925 if (PyErr_Occurred()) SWIG_fail;
22926 {
22927 PyThreadState* __tstate = wxPyBeginAllowThreads();
22928 result = (long)(arg1)->FindItem(arg2,arg3);
22929
22930 wxPyEndAllowThreads(__tstate);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 }
22933 resultobj = SWIG_FromLong((long)result);
22934 return resultobj;
22935 fail:
22936 return NULL;
22937}
22938
22939
22940static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
22941 PyObject *resultobj;
22942 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22943 long arg2 ;
22944 wxPoint *arg3 = 0 ;
22945 int arg4 ;
22946 long result;
22947 wxPoint temp3 ;
22948 PyObject * obj0 = 0 ;
22949 PyObject * obj1 = 0 ;
22950 PyObject * obj2 = 0 ;
22951 PyObject * obj3 = 0 ;
22952 char *kwnames[] = {
22953 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
22954 };
22955
22956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22959 arg2 = (long) SWIG_AsLong(obj1);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 {
22962 arg3 = &temp3;
22963 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22964 }
22965 arg4 = (int) SWIG_AsInt(obj3);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 {
22968 PyThreadState* __tstate = wxPyBeginAllowThreads();
22969 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
22970
22971 wxPyEndAllowThreads(__tstate);
22972 if (PyErr_Occurred()) SWIG_fail;
22973 }
22974 resultobj = SWIG_FromLong((long)result);
22975 return resultobj;
22976 fail:
22977 return NULL;
22978}
22979
22980
22981static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
22982 PyObject *resultobj;
22983 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22984 wxPoint *arg2 = 0 ;
22985 int *arg3 = 0 ;
22986 long result;
22987 wxPoint temp2 ;
22988 int temp3 ;
22989 PyObject * obj0 = 0 ;
22990 PyObject * obj1 = 0 ;
22991 char *kwnames[] = {
22992 (char *) "self",(char *) "point", NULL
22993 };
22994
22995 arg3 = &temp3;
22996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
22997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22999 {
23000 arg2 = &temp2;
23001 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23002 }
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23006
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 resultobj = SWIG_FromLong((long)result);
23011 {
23012 PyObject *o = PyInt_FromLong((long) (*arg3));
23013 resultobj = t_output_helper(resultobj,o);
23014 }
23015 return resultobj;
23016 fail:
23017 return NULL;
23018}
23019
23020
23021static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23022 PyObject *resultobj;
23023 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23024 wxListItem *arg2 = 0 ;
23025 long result;
23026 PyObject * obj0 = 0 ;
23027 PyObject * obj1 = 0 ;
23028 char *kwnames[] = {
23029 (char *) "self",(char *) "info", NULL
23030 };
23031
23032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23035 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23036 SWIG_POINTER_EXCEPTION | 0)) == -1)
23037 SWIG_fail;
23038 if (arg2 == NULL) {
23039 PyErr_SetString(PyExc_TypeError,"null reference");
23040 SWIG_fail;
23041 }
23042 {
23043 PyThreadState* __tstate = wxPyBeginAllowThreads();
23044 result = (long)(arg1)->InsertItem(*arg2);
23045
23046 wxPyEndAllowThreads(__tstate);
23047 if (PyErr_Occurred()) SWIG_fail;
23048 }
23049 resultobj = SWIG_FromLong((long)result);
23050 return resultobj;
23051 fail:
23052 return NULL;
23053}
23054
23055
23056static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23057 PyObject *resultobj;
23058 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23059 long arg2 ;
23060 wxString *arg3 = 0 ;
23061 long result;
23062 bool temp3 = False ;
23063 PyObject * obj0 = 0 ;
23064 PyObject * obj1 = 0 ;
23065 PyObject * obj2 = 0 ;
23066 char *kwnames[] = {
23067 (char *) "self",(char *) "index",(char *) "label", NULL
23068 };
23069
23070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23073 arg2 = (long) SWIG_AsLong(obj1);
23074 if (PyErr_Occurred()) SWIG_fail;
23075 {
23076 arg3 = wxString_in_helper(obj2);
23077 if (arg3 == NULL) SWIG_fail;
23078 temp3 = True;
23079 }
23080 {
23081 PyThreadState* __tstate = wxPyBeginAllowThreads();
23082 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23083
23084 wxPyEndAllowThreads(__tstate);
23085 if (PyErr_Occurred()) SWIG_fail;
23086 }
23087 resultobj = SWIG_FromLong((long)result);
23088 {
23089 if (temp3)
23090 delete arg3;
23091 }
23092 return resultobj;
23093 fail:
23094 {
23095 if (temp3)
23096 delete arg3;
23097 }
23098 return NULL;
23099}
23100
23101
23102static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23103 PyObject *resultobj;
23104 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23105 long arg2 ;
23106 int arg3 ;
23107 long result;
23108 PyObject * obj0 = 0 ;
23109 PyObject * obj1 = 0 ;
23110 PyObject * obj2 = 0 ;
23111 char *kwnames[] = {
23112 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23113 };
23114
23115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23118 arg2 = (long) SWIG_AsLong(obj1);
23119 if (PyErr_Occurred()) SWIG_fail;
23120 arg3 = (int) SWIG_AsInt(obj2);
23121 if (PyErr_Occurred()) SWIG_fail;
23122 {
23123 PyThreadState* __tstate = wxPyBeginAllowThreads();
23124 result = (long)(arg1)->InsertItem(arg2,arg3);
23125
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_FromLong((long)result);
23130 return resultobj;
23131 fail:
23132 return NULL;
23133}
23134
23135
23136static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23137 PyObject *resultobj;
23138 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23139 long arg2 ;
23140 wxString *arg3 = 0 ;
23141 int arg4 ;
23142 long result;
23143 bool temp3 = False ;
23144 PyObject * obj0 = 0 ;
23145 PyObject * obj1 = 0 ;
23146 PyObject * obj2 = 0 ;
23147 PyObject * obj3 = 0 ;
23148 char *kwnames[] = {
23149 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23150 };
23151
23152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23155 arg2 = (long) SWIG_AsLong(obj1);
23156 if (PyErr_Occurred()) SWIG_fail;
23157 {
23158 arg3 = wxString_in_helper(obj2);
23159 if (arg3 == NULL) SWIG_fail;
23160 temp3 = True;
23161 }
23162 arg4 = (int) SWIG_AsInt(obj3);
23163 if (PyErr_Occurred()) SWIG_fail;
23164 {
23165 PyThreadState* __tstate = wxPyBeginAllowThreads();
23166 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23167
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 resultobj = SWIG_FromLong((long)result);
23172 {
23173 if (temp3)
23174 delete arg3;
23175 }
23176 return resultobj;
23177 fail:
23178 {
23179 if (temp3)
23180 delete arg3;
23181 }
23182 return NULL;
23183}
23184
23185
23186static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23187 PyObject *resultobj;
23188 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23189 long arg2 ;
23190 wxListItem *arg3 = 0 ;
23191 long result;
23192 PyObject * obj0 = 0 ;
23193 PyObject * obj1 = 0 ;
23194 PyObject * obj2 = 0 ;
23195 char *kwnames[] = {
23196 (char *) "self",(char *) "col",(char *) "info", NULL
23197 };
23198
23199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23202 arg2 = (long) SWIG_AsLong(obj1);
23203 if (PyErr_Occurred()) SWIG_fail;
23204 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23205 SWIG_POINTER_EXCEPTION | 0)) == -1)
23206 SWIG_fail;
23207 if (arg3 == NULL) {
23208 PyErr_SetString(PyExc_TypeError,"null reference");
23209 SWIG_fail;
23210 }
23211 {
23212 PyThreadState* __tstate = wxPyBeginAllowThreads();
23213 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23214
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 resultobj = SWIG_FromLong((long)result);
23219 return resultobj;
23220 fail:
23221 return NULL;
23222}
23223
23224
23225static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
23226 PyObject *resultobj;
23227 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23228 long arg2 ;
23229 wxString *arg3 = 0 ;
23230 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23231 int arg5 = (int) -1 ;
23232 long result;
23233 bool temp3 = False ;
23234 PyObject * obj0 = 0 ;
23235 PyObject * obj1 = 0 ;
23236 PyObject * obj2 = 0 ;
23237 PyObject * obj3 = 0 ;
23238 PyObject * obj4 = 0 ;
23239 char *kwnames[] = {
23240 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23241 };
23242
23243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23246 arg2 = (long) SWIG_AsLong(obj1);
23247 if (PyErr_Occurred()) SWIG_fail;
23248 {
23249 arg3 = wxString_in_helper(obj2);
23250 if (arg3 == NULL) SWIG_fail;
23251 temp3 = True;
23252 }
23253 if (obj3) {
23254 arg4 = (int) SWIG_AsInt(obj3);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 }
23257 if (obj4) {
23258 arg5 = (int) SWIG_AsInt(obj4);
23259 if (PyErr_Occurred()) SWIG_fail;
23260 }
23261 {
23262 PyThreadState* __tstate = wxPyBeginAllowThreads();
23263 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23264
23265 wxPyEndAllowThreads(__tstate);
23266 if (PyErr_Occurred()) SWIG_fail;
23267 }
23268 resultobj = SWIG_FromLong((long)result);
23269 {
23270 if (temp3)
23271 delete arg3;
23272 }
23273 return resultobj;
23274 fail:
23275 {
23276 if (temp3)
23277 delete arg3;
23278 }
23279 return NULL;
23280}
23281
23282
23283static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23284 PyObject *resultobj;
23285 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23286 long arg2 ;
23287 PyObject * obj0 = 0 ;
23288 PyObject * obj1 = 0 ;
23289 char *kwnames[] = {
23290 (char *) "self",(char *) "count", NULL
23291 };
23292
23293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23296 arg2 = (long) SWIG_AsLong(obj1);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 {
23299 PyThreadState* __tstate = wxPyBeginAllowThreads();
23300 (arg1)->SetItemCount(arg2);
23301
23302 wxPyEndAllowThreads(__tstate);
23303 if (PyErr_Occurred()) SWIG_fail;
23304 }
23305 Py_INCREF(Py_None); resultobj = Py_None;
23306 return resultobj;
23307 fail:
23308 return NULL;
23309}
23310
23311
23312static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
23313 PyObject *resultobj;
23314 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23315 int arg2 ;
23316 int arg3 ;
23317 bool result;
23318 PyObject * obj0 = 0 ;
23319 PyObject * obj1 = 0 ;
23320 PyObject * obj2 = 0 ;
23321 char *kwnames[] = {
23322 (char *) "self",(char *) "dx",(char *) "dy", NULL
23323 };
23324
23325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23328 arg2 = (int) SWIG_AsInt(obj1);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 arg3 = (int) SWIG_AsInt(obj2);
23331 if (PyErr_Occurred()) SWIG_fail;
23332 {
23333 PyThreadState* __tstate = wxPyBeginAllowThreads();
23334 result = (bool)(arg1)->ScrollList(arg2,arg3);
23335
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 {
23340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23341 }
23342 return resultobj;
23343 fail:
23344 return NULL;
23345}
23346
23347
23348static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23349 PyObject *resultobj;
23350 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23351 long arg2 ;
23352 wxColour *arg3 = 0 ;
23353 wxColour temp3 ;
23354 PyObject * obj0 = 0 ;
23355 PyObject * obj1 = 0 ;
23356 PyObject * obj2 = 0 ;
23357 char *kwnames[] = {
23358 (char *) "self",(char *) "item",(char *) "col", NULL
23359 };
23360
23361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23364 arg2 = (long) SWIG_AsLong(obj1);
23365 if (PyErr_Occurred()) SWIG_fail;
23366 {
23367 arg3 = &temp3;
23368 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23369 }
23370 {
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23373
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 Py_INCREF(Py_None); resultobj = Py_None;
23378 return resultobj;
23379 fail:
23380 return NULL;
23381}
23382
23383
23384static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23385 PyObject *resultobj;
23386 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23387 long arg2 ;
23388 wxColour result;
23389 PyObject * obj0 = 0 ;
23390 PyObject * obj1 = 0 ;
23391 char *kwnames[] = {
23392 (char *) "self",(char *) "item", NULL
23393 };
23394
23395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23398 arg2 = (long) SWIG_AsLong(obj1);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 {
23401 PyThreadState* __tstate = wxPyBeginAllowThreads();
23402 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23403
23404 wxPyEndAllowThreads(__tstate);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 {
23408 wxColour * resultptr;
23409 resultptr = new wxColour((wxColour &) result);
23410 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23411 }
23412 return resultobj;
23413 fail:
23414 return NULL;
23415}
23416
23417
23418static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23419 PyObject *resultobj;
23420 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23421 long arg2 ;
23422 wxColour *arg3 = 0 ;
23423 wxColour temp3 ;
23424 PyObject * obj0 = 0 ;
23425 PyObject * obj1 = 0 ;
23426 PyObject * obj2 = 0 ;
23427 char *kwnames[] = {
23428 (char *) "self",(char *) "item",(char *) "col", NULL
23429 };
23430
23431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23434 arg2 = (long) SWIG_AsLong(obj1);
23435 if (PyErr_Occurred()) SWIG_fail;
23436 {
23437 arg3 = &temp3;
23438 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23439 }
23440 {
23441 PyThreadState* __tstate = wxPyBeginAllowThreads();
23442 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23443
23444 wxPyEndAllowThreads(__tstate);
23445 if (PyErr_Occurred()) SWIG_fail;
23446 }
23447 Py_INCREF(Py_None); resultobj = Py_None;
23448 return resultobj;
23449 fail:
23450 return NULL;
23451}
23452
23453
23454static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
23455 PyObject *resultobj;
23456 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23457 long arg2 ;
23458 wxColour result;
23459 PyObject * obj0 = 0 ;
23460 PyObject * obj1 = 0 ;
23461 char *kwnames[] = {
23462 (char *) "self",(char *) "item", NULL
23463 };
23464
23465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23468 arg2 = (long) SWIG_AsLong(obj1);
23469 if (PyErr_Occurred()) SWIG_fail;
23470 {
23471 PyThreadState* __tstate = wxPyBeginAllowThreads();
23472 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23473
23474 wxPyEndAllowThreads(__tstate);
23475 if (PyErr_Occurred()) SWIG_fail;
23476 }
23477 {
23478 wxColour * resultptr;
23479 resultptr = new wxColour((wxColour &) result);
23480 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23481 }
23482 return resultobj;
23483 fail:
23484 return NULL;
23485}
23486
23487
23488static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
23489 PyObject *resultobj;
23490 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23491 PyObject *arg2 = (PyObject *) 0 ;
23492 bool result;
23493 PyObject * obj0 = 0 ;
23494 PyObject * obj1 = 0 ;
23495 char *kwnames[] = {
23496 (char *) "self",(char *) "func", NULL
23497 };
23498
23499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23502 arg2 = obj1;
23503 {
23504 PyThreadState* __tstate = wxPyBeginAllowThreads();
23505 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23506
23507 wxPyEndAllowThreads(__tstate);
23508 if (PyErr_Occurred()) SWIG_fail;
23509 }
23510 {
23511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23512 }
23513 return resultobj;
23514 fail:
23515 return NULL;
23516}
23517
23518
23519static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
23520 PyObject *resultobj;
23521 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23522 wxWindow *result;
23523 PyObject * obj0 = 0 ;
23524 char *kwnames[] = {
23525 (char *) "self", NULL
23526 };
23527
23528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23531 {
23532 PyThreadState* __tstate = wxPyBeginAllowThreads();
23533 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23534
23535 wxPyEndAllowThreads(__tstate);
23536 if (PyErr_Occurred()) SWIG_fail;
23537 }
23538 {
412d302d 23539 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
23540 }
23541 return resultobj;
23542 fail:
23543 return NULL;
23544}
23545
23546
23547static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
23548 PyObject *resultobj;
23549 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23550 wxVisualAttributes result;
23551 PyObject * obj0 = 0 ;
23552 char *kwnames[] = {
23553 (char *) "variant", NULL
23554 };
23555
23556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23557 if (obj0) {
23558 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
23559 if (PyErr_Occurred()) SWIG_fail;
23560 }
23561 {
0439c23b 23562 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
23563 PyThreadState* __tstate = wxPyBeginAllowThreads();
23564 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23565
23566 wxPyEndAllowThreads(__tstate);
110da5b0 23567 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
23568 }
23569 {
23570 wxVisualAttributes * resultptr;
23571 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23572 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23573 }
23574 return resultobj;
23575 fail:
23576 return NULL;
23577}
23578
23579
23580static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) {
23581 PyObject *obj;
23582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23583 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23584 Py_INCREF(obj);
23585 return Py_BuildValue((char *)"");
23586}
23587static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23588 PyObject *resultobj;
23589 wxWindow *arg1 = (wxWindow *) 0 ;
23590 int arg2 = (int) -1 ;
23591 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23592 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23593 wxSize const &arg4_defvalue = wxDefaultSize ;
23594 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23595 long arg5 = (long) wxLC_REPORT ;
23596 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23597 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23598 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23599 wxString *arg7 = (wxString *) &arg7_defvalue ;
23600 wxListView *result;
23601 wxPoint temp3 ;
23602 wxSize temp4 ;
23603 bool temp7 = False ;
23604 PyObject * obj0 = 0 ;
23605 PyObject * obj1 = 0 ;
23606 PyObject * obj2 = 0 ;
23607 PyObject * obj3 = 0 ;
23608 PyObject * obj4 = 0 ;
23609 PyObject * obj5 = 0 ;
23610 PyObject * obj6 = 0 ;
23611 char *kwnames[] = {
23612 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23613 };
23614
23615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23618 if (obj1) {
23619 arg2 = (int) SWIG_AsInt(obj1);
23620 if (PyErr_Occurred()) SWIG_fail;
23621 }
23622 if (obj2) {
23623 {
23624 arg3 = &temp3;
23625 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23626 }
23627 }
23628 if (obj3) {
23629 {
23630 arg4 = &temp4;
23631 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23632 }
23633 }
23634 if (obj4) {
23635 arg5 = (long) SWIG_AsLong(obj4);
23636 if (PyErr_Occurred()) SWIG_fail;
23637 }
23638 if (obj5) {
23639 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23640 SWIG_POINTER_EXCEPTION | 0)) == -1)
23641 SWIG_fail;
23642 if (arg6 == NULL) {
23643 PyErr_SetString(PyExc_TypeError,"null reference");
23644 SWIG_fail;
23645 }
23646 }
23647 if (obj6) {
23648 {
23649 arg7 = wxString_in_helper(obj6);
23650 if (arg7 == NULL) SWIG_fail;
23651 temp7 = True;
23652 }
23653 }
23654 {
0439c23b 23655 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
23656 PyThreadState* __tstate = wxPyBeginAllowThreads();
23657 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23658
23659 wxPyEndAllowThreads(__tstate);
110da5b0 23660 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
23661 }
23662 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23663 {
23664 if (temp7)
23665 delete arg7;
23666 }
23667 return resultobj;
23668 fail:
23669 {
23670 if (temp7)
23671 delete arg7;
23672 }
23673 return NULL;
23674}
23675
23676
23677static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
23678 PyObject *resultobj;
23679 wxListView *result;
23680 char *kwnames[] = {
23681 NULL
23682 };
23683
23684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23685 {
0439c23b 23686 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
23687 PyThreadState* __tstate = wxPyBeginAllowThreads();
23688 result = (wxListView *)new wxListView();
23689
23690 wxPyEndAllowThreads(__tstate);
110da5b0 23691 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
23692 }
23693 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23694 return resultobj;
23695 fail:
23696 return NULL;
23697}
23698
23699
23700static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
23701 PyObject *resultobj;
23702 wxListView *arg1 = (wxListView *) 0 ;
23703 wxWindow *arg2 = (wxWindow *) 0 ;
23704 int arg3 = (int) -1 ;
23705 wxPoint const &arg4_defvalue = wxDefaultPosition ;
23706 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
23707 wxSize const &arg5_defvalue = wxDefaultSize ;
23708 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
23709 long arg6 = (long) wxLC_REPORT ;
23710 wxValidator const &arg7_defvalue = wxDefaultValidator ;
23711 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
23712 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
23713 wxString *arg8 = (wxString *) &arg8_defvalue ;
23714 bool result;
23715 wxPoint temp4 ;
23716 wxSize temp5 ;
23717 bool temp8 = False ;
23718 PyObject * obj0 = 0 ;
23719 PyObject * obj1 = 0 ;
23720 PyObject * obj2 = 0 ;
23721 PyObject * obj3 = 0 ;
23722 PyObject * obj4 = 0 ;
23723 PyObject * obj5 = 0 ;
23724 PyObject * obj6 = 0 ;
23725 PyObject * obj7 = 0 ;
23726 char *kwnames[] = {
23727 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23728 };
23729
23730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
23731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23733 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
23734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23735 if (obj2) {
23736 arg3 = (int) SWIG_AsInt(obj2);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 if (obj3) {
23740 {
23741 arg4 = &temp4;
23742 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
23743 }
23744 }
23745 if (obj4) {
23746 {
23747 arg5 = &temp5;
23748 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
23749 }
23750 }
23751 if (obj5) {
23752 arg6 = (long) SWIG_AsLong(obj5);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 }
23755 if (obj6) {
23756 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
23757 SWIG_POINTER_EXCEPTION | 0)) == -1)
23758 SWIG_fail;
23759 if (arg7 == NULL) {
23760 PyErr_SetString(PyExc_TypeError,"null reference");
23761 SWIG_fail;
23762 }
23763 }
23764 if (obj7) {
23765 {
23766 arg8 = wxString_in_helper(obj7);
23767 if (arg8 == NULL) SWIG_fail;
23768 temp8 = True;
23769 }
23770 }
23771 {
23772 PyThreadState* __tstate = wxPyBeginAllowThreads();
23773 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
23774
23775 wxPyEndAllowThreads(__tstate);
23776 if (PyErr_Occurred()) SWIG_fail;
23777 }
23778 {
23779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23780 }
23781 {
23782 if (temp8)
23783 delete arg8;
23784 }
23785 return resultobj;
23786 fail:
23787 {
23788 if (temp8)
23789 delete arg8;
23790 }
23791 return NULL;
23792}
23793
23794
23795static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
23796 PyObject *resultobj;
23797 wxListView *arg1 = (wxListView *) 0 ;
23798 long arg2 ;
23799 bool arg3 = (bool) True ;
23800 PyObject * obj0 = 0 ;
23801 PyObject * obj1 = 0 ;
23802 PyObject * obj2 = 0 ;
23803 char *kwnames[] = {
23804 (char *) "self",(char *) "n",(char *) "on", NULL
23805 };
23806
23807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
23808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23810 arg2 = (long) SWIG_AsLong(obj1);
23811 if (PyErr_Occurred()) SWIG_fail;
23812 if (obj2) {
23813 arg3 = (bool) SWIG_AsBool(obj2);
23814 if (PyErr_Occurred()) SWIG_fail;
23815 }
23816 {
23817 PyThreadState* __tstate = wxPyBeginAllowThreads();
23818 (arg1)->Select(arg2,arg3);
23819
23820 wxPyEndAllowThreads(__tstate);
23821 if (PyErr_Occurred()) SWIG_fail;
23822 }
23823 Py_INCREF(Py_None); resultobj = Py_None;
23824 return resultobj;
23825 fail:
23826 return NULL;
23827}
23828
23829
23830static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
23831 PyObject *resultobj;
23832 wxListView *arg1 = (wxListView *) 0 ;
23833 long arg2 ;
23834 PyObject * obj0 = 0 ;
23835 PyObject * obj1 = 0 ;
23836 char *kwnames[] = {
23837 (char *) "self",(char *) "index", NULL
23838 };
23839
23840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
23841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23843 arg2 = (long) SWIG_AsLong(obj1);
23844 if (PyErr_Occurred()) SWIG_fail;
23845 {
23846 PyThreadState* __tstate = wxPyBeginAllowThreads();
23847 (arg1)->Focus(arg2);
23848
23849 wxPyEndAllowThreads(__tstate);
23850 if (PyErr_Occurred()) SWIG_fail;
23851 }
23852 Py_INCREF(Py_None); resultobj = Py_None;
23853 return resultobj;
23854 fail:
23855 return NULL;
23856}
23857
23858
23859static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23860 PyObject *resultobj;
23861 wxListView *arg1 = (wxListView *) 0 ;
23862 long result;
23863 PyObject * obj0 = 0 ;
23864 char *kwnames[] = {
23865 (char *) "self", NULL
23866 };
23867
23868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
23869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23871 {
23872 PyThreadState* __tstate = wxPyBeginAllowThreads();
23873 result = (long)((wxListView const *)arg1)->GetFocusedItem();
23874
23875 wxPyEndAllowThreads(__tstate);
23876 if (PyErr_Occurred()) SWIG_fail;
23877 }
23878 resultobj = SWIG_FromLong((long)result);
23879 return resultobj;
23880 fail:
23881 return NULL;
23882}
23883
23884
23885static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23886 PyObject *resultobj;
23887 wxListView *arg1 = (wxListView *) 0 ;
23888 long arg2 ;
23889 long result;
23890 PyObject * obj0 = 0 ;
23891 PyObject * obj1 = 0 ;
23892 char *kwnames[] = {
23893 (char *) "self",(char *) "item", NULL
23894 };
23895
23896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
23897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23899 arg2 = (long) SWIG_AsLong(obj1);
23900 if (PyErr_Occurred()) SWIG_fail;
23901 {
23902 PyThreadState* __tstate = wxPyBeginAllowThreads();
23903 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
23904
23905 wxPyEndAllowThreads(__tstate);
23906 if (PyErr_Occurred()) SWIG_fail;
23907 }
23908 resultobj = SWIG_FromLong((long)result);
23909 return resultobj;
23910 fail:
23911 return NULL;
23912}
23913
23914
23915static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23916 PyObject *resultobj;
23917 wxListView *arg1 = (wxListView *) 0 ;
23918 long result;
23919 PyObject * obj0 = 0 ;
23920 char *kwnames[] = {
23921 (char *) "self", NULL
23922 };
23923
23924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
23925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23927 {
23928 PyThreadState* __tstate = wxPyBeginAllowThreads();
23929 result = (long)((wxListView const *)arg1)->GetFirstSelected();
23930
23931 wxPyEndAllowThreads(__tstate);
23932 if (PyErr_Occurred()) SWIG_fail;
23933 }
23934 resultobj = SWIG_FromLong((long)result);
23935 return resultobj;
23936 fail:
23937 return NULL;
23938}
23939
23940
23941static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
23942 PyObject *resultobj;
23943 wxListView *arg1 = (wxListView *) 0 ;
23944 long arg2 ;
23945 bool result;
23946 PyObject * obj0 = 0 ;
23947 PyObject * obj1 = 0 ;
23948 char *kwnames[] = {
23949 (char *) "self",(char *) "index", NULL
23950 };
23951
23952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
23953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23955 arg2 = (long) SWIG_AsLong(obj1);
23956 if (PyErr_Occurred()) SWIG_fail;
23957 {
23958 PyThreadState* __tstate = wxPyBeginAllowThreads();
23959 result = (bool)(arg1)->IsSelected(arg2);
23960
23961 wxPyEndAllowThreads(__tstate);
23962 if (PyErr_Occurred()) SWIG_fail;
23963 }
23964 {
23965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23966 }
23967 return resultobj;
23968 fail:
23969 return NULL;
23970}
23971
23972
23973static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
23974 PyObject *resultobj;
23975 wxListView *arg1 = (wxListView *) 0 ;
23976 int arg2 ;
23977 int arg3 ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 PyObject * obj2 = 0 ;
23981 char *kwnames[] = {
23982 (char *) "self",(char *) "col",(char *) "image", NULL
23983 };
23984
23985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
23986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
23987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23988 arg2 = (int) SWIG_AsInt(obj1);
23989 if (PyErr_Occurred()) SWIG_fail;
23990 arg3 = (int) SWIG_AsInt(obj2);
23991 if (PyErr_Occurred()) SWIG_fail;
23992 {
23993 PyThreadState* __tstate = wxPyBeginAllowThreads();
23994 (arg1)->SetColumnImage(arg2,arg3);
23995
23996 wxPyEndAllowThreads(__tstate);
23997 if (PyErr_Occurred()) SWIG_fail;
23998 }
23999 Py_INCREF(Py_None); resultobj = Py_None;
24000 return resultobj;
24001 fail:
24002 return NULL;
24003}
24004
24005
24006static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
24007 PyObject *resultobj;
24008 wxListView *arg1 = (wxListView *) 0 ;
24009 int arg2 ;
24010 PyObject * obj0 = 0 ;
24011 PyObject * obj1 = 0 ;
24012 char *kwnames[] = {
24013 (char *) "self",(char *) "col", NULL
24014 };
24015
24016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24019 arg2 = (int) SWIG_AsInt(obj1);
24020 if (PyErr_Occurred()) SWIG_fail;
24021 {
24022 PyThreadState* __tstate = wxPyBeginAllowThreads();
24023 (arg1)->ClearColumnImage(arg2);
24024
24025 wxPyEndAllowThreads(__tstate);
24026 if (PyErr_Occurred()) SWIG_fail;
24027 }
24028 Py_INCREF(Py_None); resultobj = Py_None;
24029 return resultobj;
24030 fail:
24031 return NULL;
24032}
24033
24034
24035static PyObject * ListView_swigregister(PyObject *self, PyObject *args) {
24036 PyObject *obj;
24037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24038 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24039 Py_INCREF(obj);
24040 return Py_BuildValue((char *)"");
24041}
24042static int _wrap_TreeCtrlNameStr_set(PyObject *_val) {
24043 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24044 return 1;
24045}
24046
24047
24048static PyObject *_wrap_TreeCtrlNameStr_get() {
24049 PyObject *pyobj;
24050
24051 {
24052#if wxUSE_UNICODE
24053 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24054#else
24055 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24056#endif
24057 }
24058 return pyobj;
24059}
24060
24061
24062static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
24063 PyObject *resultobj;
24064 wxTreeItemId *result;
24065 char *kwnames[] = {
24066 NULL
24067 };
24068
24069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24070 {
24071 PyThreadState* __tstate = wxPyBeginAllowThreads();
24072 result = (wxTreeItemId *)new wxTreeItemId();
24073
24074 wxPyEndAllowThreads(__tstate);
24075 if (PyErr_Occurred()) SWIG_fail;
24076 }
24077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24078 return resultobj;
24079 fail:
24080 return NULL;
24081}
24082
24083
24084static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
24085 PyObject *resultobj;
24086 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24087 PyObject * obj0 = 0 ;
24088 char *kwnames[] = {
24089 (char *) "self", NULL
24090 };
24091
24092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24095 {
24096 PyThreadState* __tstate = wxPyBeginAllowThreads();
24097 delete arg1;
24098
24099 wxPyEndAllowThreads(__tstate);
24100 if (PyErr_Occurred()) SWIG_fail;
24101 }
24102 Py_INCREF(Py_None); resultobj = Py_None;
24103 return resultobj;
24104 fail:
24105 return NULL;
24106}
24107
24108
24109static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
24110 PyObject *resultobj;
24111 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24112 bool result;
24113 PyObject * obj0 = 0 ;
24114 char *kwnames[] = {
24115 (char *) "self", NULL
24116 };
24117
24118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24121 {
24122 PyThreadState* __tstate = wxPyBeginAllowThreads();
24123 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24124
24125 wxPyEndAllowThreads(__tstate);
24126 if (PyErr_Occurred()) SWIG_fail;
24127 }
24128 {
24129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24130 }
24131 return resultobj;
24132 fail:
24133 return NULL;
24134}
24135
24136
24137static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
24138 PyObject *resultobj;
24139 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24140 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24141 bool result;
24142 PyObject * obj0 = 0 ;
24143 PyObject * obj1 = 0 ;
24144 char *kwnames[] = {
24145 (char *) "self",(char *) "other", NULL
24146 };
24147
24148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24156
24157 wxPyEndAllowThreads(__tstate);
24158 if (PyErr_Occurred()) SWIG_fail;
24159 }
24160 {
24161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24162 }
24163 return resultobj;
24164 fail:
24165 return NULL;
24166}
24167
24168
24169static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj;
24171 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24172 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24173 bool result;
24174 PyObject * obj0 = 0 ;
24175 PyObject * obj1 = 0 ;
24176 char *kwnames[] = {
24177 (char *) "self",(char *) "other", NULL
24178 };
24179
24180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24183 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24185 {
24186 PyThreadState* __tstate = wxPyBeginAllowThreads();
24187 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24188
24189 wxPyEndAllowThreads(__tstate);
24190 if (PyErr_Occurred()) SWIG_fail;
24191 }
24192 {
24193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24194 }
24195 return resultobj;
24196 fail:
24197 return NULL;
24198}
24199
24200
24201static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) {
24202 PyObject *resultobj;
24203 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24204 void *arg2 = (void *) 0 ;
24205 PyObject * obj0 = 0 ;
24206 PyObject * obj1 = 0 ;
24207 char *kwnames[] = {
24208 (char *) "self",(char *) "m_pItem", NULL
24209 };
24210
24211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24214 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24215 if (arg1) (arg1)->m_pItem = arg2;
24216
24217 Py_INCREF(Py_None); resultobj = Py_None;
24218 return resultobj;
24219 fail:
24220 return NULL;
24221}
24222
24223
24224static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) {
24225 PyObject *resultobj;
24226 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24227 void *result;
24228 PyObject * obj0 = 0 ;
24229 char *kwnames[] = {
24230 (char *) "self", NULL
24231 };
24232
24233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24236 result = (void *) ((arg1)->m_pItem);
24237
24238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24239 return resultobj;
24240 fail:
24241 return NULL;
24242}
24243
24244
24245static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) {
24246 PyObject *obj;
24247 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24248 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24249 Py_INCREF(obj);
24250 return Py_BuildValue((char *)"");
24251}
24252static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
24253 PyObject *resultobj;
24254 PyObject *arg1 = (PyObject *) NULL ;
24255 wxPyTreeItemData *result;
24256 PyObject * obj0 = 0 ;
24257 char *kwnames[] = {
24258 (char *) "obj", NULL
24259 };
24260
24261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24262 if (obj0) {
24263 arg1 = obj0;
24264 }
24265 {
24266 PyThreadState* __tstate = wxPyBeginAllowThreads();
24267 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24268
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24273 return resultobj;
24274 fail:
24275 return NULL;
24276}
24277
24278
24279static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24280 PyObject *resultobj;
24281 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24282 PyObject *result;
24283 PyObject * obj0 = 0 ;
24284 char *kwnames[] = {
24285 (char *) "self", NULL
24286 };
24287
24288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 result = (PyObject *)(arg1)->GetData();
24294
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 resultobj = result;
24299 return resultobj;
24300 fail:
24301 return NULL;
24302}
24303
24304
24305static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj;
24307 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24308 PyObject *arg2 = (PyObject *) 0 ;
24309 PyObject * obj0 = 0 ;
24310 PyObject * obj1 = 0 ;
24311 char *kwnames[] = {
24312 (char *) "self",(char *) "obj", NULL
24313 };
24314
24315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24318 arg2 = obj1;
24319 {
24320 PyThreadState* __tstate = wxPyBeginAllowThreads();
24321 (arg1)->SetData(arg2);
24322
24323 wxPyEndAllowThreads(__tstate);
24324 if (PyErr_Occurred()) SWIG_fail;
24325 }
24326 Py_INCREF(Py_None); resultobj = Py_None;
24327 return resultobj;
24328 fail:
24329 return NULL;
24330}
24331
24332
24333static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24334 PyObject *resultobj;
24335 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24336 wxTreeItemId *result;
24337 PyObject * obj0 = 0 ;
24338 char *kwnames[] = {
24339 (char *) "self", NULL
24340 };
24341
24342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24345 {
24346 PyThreadState* __tstate = wxPyBeginAllowThreads();
24347 {
24348 wxTreeItemId const &_result_ref = (arg1)->GetId();
24349 result = (wxTreeItemId *) &_result_ref;
24350 }
24351
24352 wxPyEndAllowThreads(__tstate);
24353 if (PyErr_Occurred()) SWIG_fail;
24354 }
24355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24356 return resultobj;
24357 fail:
24358 return NULL;
24359}
24360
24361
24362static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24363 PyObject *resultobj;
24364 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24365 wxTreeItemId *arg2 = 0 ;
24366 PyObject * obj0 = 0 ;
24367 PyObject * obj1 = 0 ;
24368 char *kwnames[] = {
24369 (char *) "self",(char *) "id", NULL
24370 };
24371
24372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24376 SWIG_POINTER_EXCEPTION | 0)) == -1)
24377 SWIG_fail;
24378 if (arg2 == NULL) {
24379 PyErr_SetString(PyExc_TypeError,"null reference");
24380 SWIG_fail;
24381 }
24382 {
24383 PyThreadState* __tstate = wxPyBeginAllowThreads();
24384 (arg1)->SetId((wxTreeItemId const &)*arg2);
24385
24386 wxPyEndAllowThreads(__tstate);
24387 if (PyErr_Occurred()) SWIG_fail;
24388 }
24389 Py_INCREF(Py_None); resultobj = Py_None;
24390 return resultobj;
24391 fail:
24392 return NULL;
24393}
24394
24395
24396static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
24397 PyObject *resultobj;
24398 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24399 PyObject * obj0 = 0 ;
24400 char *kwnames[] = {
24401 (char *) "self", NULL
24402 };
24403
24404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24407 {
24408 PyThreadState* __tstate = wxPyBeginAllowThreads();
24409 wxPyTreeItemData_Destroy(arg1);
24410
24411 wxPyEndAllowThreads(__tstate);
24412 if (PyErr_Occurred()) SWIG_fail;
24413 }
24414 Py_INCREF(Py_None); resultobj = Py_None;
24415 return resultobj;
24416 fail:
24417 return NULL;
24418}
24419
24420
24421static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) {
24422 PyObject *obj;
24423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24424 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24425 Py_INCREF(obj);
24426 return Py_BuildValue((char *)"");
24427}
24428static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj;
24430 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24431 int arg2 = (int) 0 ;
24432 wxTreeEvent *result;
24433 PyObject * obj0 = 0 ;
24434 PyObject * obj1 = 0 ;
24435 char *kwnames[] = {
24436 (char *) "commandType",(char *) "id", NULL
24437 };
24438
24439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24440 if (obj0) {
24441 arg1 = (wxEventType) SWIG_AsInt(obj0);
24442 if (PyErr_Occurred()) SWIG_fail;
24443 }
24444 if (obj1) {
24445 arg2 = (int) SWIG_AsInt(obj1);
24446 if (PyErr_Occurred()) SWIG_fail;
24447 }
24448 {
24449 PyThreadState* __tstate = wxPyBeginAllowThreads();
24450 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24451
24452 wxPyEndAllowThreads(__tstate);
24453 if (PyErr_Occurred()) SWIG_fail;
24454 }
24455 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24456 return resultobj;
24457 fail:
24458 return NULL;
24459}
24460
24461
24462static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24463 PyObject *resultobj;
24464 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24465 wxTreeItemId result;
24466 PyObject * obj0 = 0 ;
24467 char *kwnames[] = {
24468 (char *) "self", NULL
24469 };
24470
24471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",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 result = ((wxTreeEvent const *)arg1)->GetItem();
24477
24478 wxPyEndAllowThreads(__tstate);
24479 if (PyErr_Occurred()) SWIG_fail;
24480 }
24481 {
24482 wxTreeItemId * resultptr;
24483 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24484 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24485 }
24486 return resultobj;
24487 fail:
24488 return NULL;
24489}
24490
24491
24492static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24493 PyObject *resultobj;
24494 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24495 wxTreeItemId *arg2 = 0 ;
24496 PyObject * obj0 = 0 ;
24497 PyObject * obj1 = 0 ;
24498 char *kwnames[] = {
24499 (char *) "self",(char *) "item", NULL
24500 };
24501
24502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24506 SWIG_POINTER_EXCEPTION | 0)) == -1)
24507 SWIG_fail;
24508 if (arg2 == NULL) {
24509 PyErr_SetString(PyExc_TypeError,"null reference");
24510 SWIG_fail;
24511 }
24512 {
24513 PyThreadState* __tstate = wxPyBeginAllowThreads();
24514 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24515
24516 wxPyEndAllowThreads(__tstate);
24517 if (PyErr_Occurred()) SWIG_fail;
24518 }
24519 Py_INCREF(Py_None); resultobj = Py_None;
24520 return resultobj;
24521 fail:
24522 return NULL;
24523}
24524
24525
24526static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24527 PyObject *resultobj;
24528 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24529 wxTreeItemId result;
24530 PyObject * obj0 = 0 ;
24531 char *kwnames[] = {
24532 (char *) "self", NULL
24533 };
24534
24535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
24540 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24541
24542 wxPyEndAllowThreads(__tstate);
24543 if (PyErr_Occurred()) SWIG_fail;
24544 }
24545 {
24546 wxTreeItemId * resultptr;
24547 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24548 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24549 }
24550 return resultobj;
24551 fail:
24552 return NULL;
24553}
24554
24555
24556static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24557 PyObject *resultobj;
24558 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24559 wxTreeItemId *arg2 = 0 ;
24560 PyObject * obj0 = 0 ;
24561 PyObject * obj1 = 0 ;
24562 char *kwnames[] = {
24563 (char *) "self",(char *) "item", NULL
24564 };
24565
24566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24569 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24570 SWIG_POINTER_EXCEPTION | 0)) == -1)
24571 SWIG_fail;
24572 if (arg2 == NULL) {
24573 PyErr_SetString(PyExc_TypeError,"null reference");
24574 SWIG_fail;
24575 }
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24579
24580 wxPyEndAllowThreads(__tstate);
24581 if (PyErr_Occurred()) SWIG_fail;
24582 }
24583 Py_INCREF(Py_None); resultobj = Py_None;
24584 return resultobj;
24585 fail:
24586 return NULL;
24587}
24588
24589
24590static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24591 PyObject *resultobj;
24592 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24593 wxPoint result;
24594 PyObject * obj0 = 0 ;
24595 char *kwnames[] = {
24596 (char *) "self", NULL
24597 };
24598
24599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24602 {
24603 PyThreadState* __tstate = wxPyBeginAllowThreads();
24604 result = ((wxTreeEvent const *)arg1)->GetPoint();
24605
24606 wxPyEndAllowThreads(__tstate);
24607 if (PyErr_Occurred()) SWIG_fail;
24608 }
24609 {
24610 wxPoint * resultptr;
24611 resultptr = new wxPoint((wxPoint &) result);
24612 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24613 }
24614 return resultobj;
24615 fail:
24616 return NULL;
24617}
24618
24619
24620static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24621 PyObject *resultobj;
24622 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24623 wxPoint *arg2 = 0 ;
24624 wxPoint temp2 ;
24625 PyObject * obj0 = 0 ;
24626 PyObject * obj1 = 0 ;
24627 char *kwnames[] = {
24628 (char *) "self",(char *) "pt", NULL
24629 };
24630
24631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24634 {
24635 arg2 = &temp2;
24636 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24637 }
24638 {
24639 PyThreadState* __tstate = wxPyBeginAllowThreads();
24640 (arg1)->SetPoint((wxPoint const &)*arg2);
24641
24642 wxPyEndAllowThreads(__tstate);
24643 if (PyErr_Occurred()) SWIG_fail;
24644 }
24645 Py_INCREF(Py_None); resultobj = Py_None;
24646 return resultobj;
24647 fail:
24648 return NULL;
24649}
24650
24651
24652static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24653 PyObject *resultobj;
24654 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24655 wxKeyEvent *result;
24656 PyObject * obj0 = 0 ;
24657 char *kwnames[] = {
24658 (char *) "self", NULL
24659 };
24660
24661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24664 {
24665 PyThreadState* __tstate = wxPyBeginAllowThreads();
24666 {
24667 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24668 result = (wxKeyEvent *) &_result_ref;
24669 }
24670
24671 wxPyEndAllowThreads(__tstate);
24672 if (PyErr_Occurred()) SWIG_fail;
24673 }
24674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24675 return resultobj;
24676 fail:
24677 return NULL;
24678}
24679
24680
24681static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
24682 PyObject *resultobj;
24683 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24684 int result;
24685 PyObject * obj0 = 0 ;
24686 char *kwnames[] = {
24687 (char *) "self", NULL
24688 };
24689
24690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24693 {
24694 PyThreadState* __tstate = wxPyBeginAllowThreads();
24695 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
24696
24697 wxPyEndAllowThreads(__tstate);
24698 if (PyErr_Occurred()) SWIG_fail;
24699 }
24700 resultobj = SWIG_FromInt((int)result);
24701 return resultobj;
24702 fail:
24703 return NULL;
24704}
24705
24706
24707static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
24708 PyObject *resultobj;
24709 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24710 wxKeyEvent *arg2 = 0 ;
24711 PyObject * obj0 = 0 ;
24712 PyObject * obj1 = 0 ;
24713 char *kwnames[] = {
24714 (char *) "self",(char *) "evt", NULL
24715 };
24716
24717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
24718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
24721 SWIG_POINTER_EXCEPTION | 0)) == -1)
24722 SWIG_fail;
24723 if (arg2 == NULL) {
24724 PyErr_SetString(PyExc_TypeError,"null reference");
24725 SWIG_fail;
24726 }
24727 {
24728 PyThreadState* __tstate = wxPyBeginAllowThreads();
24729 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
24730
24731 wxPyEndAllowThreads(__tstate);
24732 if (PyErr_Occurred()) SWIG_fail;
24733 }
24734 Py_INCREF(Py_None); resultobj = Py_None;
24735 return resultobj;
24736 fail:
24737 return NULL;
24738}
24739
24740
24741static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24742 PyObject *resultobj;
24743 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24744 wxString *result;
24745 PyObject * obj0 = 0 ;
24746 char *kwnames[] = {
24747 (char *) "self", NULL
24748 };
24749
24750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
24751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24753 {
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 {
24756 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
24757 result = (wxString *) &_result_ref;
24758 }
24759
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 {
24764#if wxUSE_UNICODE
24765 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24766#else
24767 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24768#endif
24769 }
24770 return resultobj;
24771 fail:
24772 return NULL;
24773}
24774
24775
24776static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
24777 PyObject *resultobj;
24778 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24779 wxString *arg2 = 0 ;
24780 bool temp2 = False ;
24781 PyObject * obj0 = 0 ;
24782 PyObject * obj1 = 0 ;
24783 char *kwnames[] = {
24784 (char *) "self",(char *) "label", NULL
24785 };
24786
24787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
24788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24790 {
24791 arg2 = wxString_in_helper(obj1);
24792 if (arg2 == NULL) SWIG_fail;
24793 temp2 = True;
24794 }
24795 {
24796 PyThreadState* __tstate = wxPyBeginAllowThreads();
24797 (arg1)->SetLabel((wxString const &)*arg2);
24798
24799 wxPyEndAllowThreads(__tstate);
24800 if (PyErr_Occurred()) SWIG_fail;
24801 }
24802 Py_INCREF(Py_None); resultobj = Py_None;
24803 {
24804 if (temp2)
24805 delete arg2;
24806 }
24807 return resultobj;
24808 fail:
24809 {
24810 if (temp2)
24811 delete arg2;
24812 }
24813 return NULL;
24814}
24815
24816
24817static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
24818 PyObject *resultobj;
24819 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24820 bool result;
24821 PyObject * obj0 = 0 ;
24822 char *kwnames[] = {
24823 (char *) "self", NULL
24824 };
24825
24826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
24827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
24832
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 {
24837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24838 }
24839 return resultobj;
24840 fail:
24841 return NULL;
24842}
24843
24844
24845static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
24846 PyObject *resultobj;
24847 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24848 bool arg2 ;
24849 PyObject * obj0 = 0 ;
24850 PyObject * obj1 = 0 ;
24851 char *kwnames[] = {
24852 (char *) "self",(char *) "editCancelled", NULL
24853 };
24854
24855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
24856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24858 arg2 = (bool) SWIG_AsBool(obj1);
24859 if (PyErr_Occurred()) SWIG_fail;
24860 {
24861 PyThreadState* __tstate = wxPyBeginAllowThreads();
24862 (arg1)->SetEditCanceled(arg2);
24863
24864 wxPyEndAllowThreads(__tstate);
24865 if (PyErr_Occurred()) SWIG_fail;
24866 }
24867 Py_INCREF(Py_None); resultobj = Py_None;
24868 return resultobj;
24869 fail:
24870 return NULL;
24871}
24872
24873
24874static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
24875 PyObject *resultobj;
24876 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24877 wxString *arg2 = 0 ;
24878 bool temp2 = False ;
24879 PyObject * obj0 = 0 ;
24880 PyObject * obj1 = 0 ;
24881 char *kwnames[] = {
24882 (char *) "self",(char *) "toolTip", NULL
24883 };
24884
24885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
24886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24888 {
24889 arg2 = wxString_in_helper(obj1);
24890 if (arg2 == NULL) SWIG_fail;
24891 temp2 = True;
24892 }
24893 {
24894 PyThreadState* __tstate = wxPyBeginAllowThreads();
24895 (arg1)->SetToolTip((wxString const &)*arg2);
24896
24897 wxPyEndAllowThreads(__tstate);
24898 if (PyErr_Occurred()) SWIG_fail;
24899 }
24900 Py_INCREF(Py_None); resultobj = Py_None;
24901 {
24902 if (temp2)
24903 delete arg2;
24904 }
24905 return resultobj;
24906 fail:
24907 {
24908 if (temp2)
24909 delete arg2;
24910 }
24911 return NULL;
24912}
24913
24914
24915static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) {
24916 PyObject *obj;
24917 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24918 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
24919 Py_INCREF(obj);
24920 return Py_BuildValue((char *)"");
24921}
24922static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
24923 PyObject *resultobj;
24924 wxWindow *arg1 = (wxWindow *) 0 ;
24925 int arg2 = (int) -1 ;
24926 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24927 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24928 wxSize const &arg4_defvalue = wxDefaultSize ;
24929 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24930 long arg5 = (long) wxTR_DEFAULT_STYLE ;
24931 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24932 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24933 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
24934 wxString *arg7 = (wxString *) &arg7_defvalue ;
24935 wxPyTreeCtrl *result;
24936 wxPoint temp3 ;
24937 wxSize temp4 ;
24938 bool temp7 = False ;
24939 PyObject * obj0 = 0 ;
24940 PyObject * obj1 = 0 ;
24941 PyObject * obj2 = 0 ;
24942 PyObject * obj3 = 0 ;
24943 PyObject * obj4 = 0 ;
24944 PyObject * obj5 = 0 ;
24945 PyObject * obj6 = 0 ;
24946 char *kwnames[] = {
24947 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24948 };
24949
24950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24953 if (obj1) {
24954 arg2 = (int) SWIG_AsInt(obj1);
24955 if (PyErr_Occurred()) SWIG_fail;
24956 }
24957 if (obj2) {
24958 {
24959 arg3 = &temp3;
24960 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24961 }
24962 }
24963 if (obj3) {
24964 {
24965 arg4 = &temp4;
24966 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24967 }
24968 }
24969 if (obj4) {
24970 arg5 = (long) SWIG_AsLong(obj4);
24971 if (PyErr_Occurred()) SWIG_fail;
24972 }
24973 if (obj5) {
24974 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24975 SWIG_POINTER_EXCEPTION | 0)) == -1)
24976 SWIG_fail;
24977 if (arg6 == NULL) {
24978 PyErr_SetString(PyExc_TypeError,"null reference");
24979 SWIG_fail;
24980 }
24981 }
24982 if (obj6) {
24983 {
24984 arg7 = wxString_in_helper(obj6);
24985 if (arg7 == NULL) SWIG_fail;
24986 temp7 = True;
24987 }
24988 }
24989 {
0439c23b 24990 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
24991 PyThreadState* __tstate = wxPyBeginAllowThreads();
24992 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24993
24994 wxPyEndAllowThreads(__tstate);
110da5b0 24995 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 24996 }
b0f7404b 24997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
d55e5bfc
RD
24998 {
24999 if (temp7)
25000 delete arg7;
25001 }
25002 return resultobj;
25003 fail:
25004 {
25005 if (temp7)
25006 delete arg7;
25007 }
25008 return NULL;
25009}
25010
25011
25012static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
25013 PyObject *resultobj;
25014 wxPyTreeCtrl *result;
25015 char *kwnames[] = {
25016 NULL
25017 };
25018
25019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25020 {
0439c23b 25021 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
25022 PyThreadState* __tstate = wxPyBeginAllowThreads();
25023 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25024
25025 wxPyEndAllowThreads(__tstate);
110da5b0 25026 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 25027 }
b0f7404b 25028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
d55e5bfc
RD
25029 return resultobj;
25030 fail:
25031 return NULL;
25032}
25033
25034
25035static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
25036 PyObject *resultobj;
25037 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25038 wxWindow *arg2 = (wxWindow *) 0 ;
25039 int arg3 = (int) -1 ;
25040 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25041 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25042 wxSize const &arg5_defvalue = wxDefaultSize ;
25043 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25044 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25045 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25046 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25047 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25048 wxString *arg8 = (wxString *) &arg8_defvalue ;
25049 bool result;
25050 wxPoint temp4 ;
25051 wxSize temp5 ;
25052 bool temp8 = False ;
25053 PyObject * obj0 = 0 ;
25054 PyObject * obj1 = 0 ;
25055 PyObject * obj2 = 0 ;
25056 PyObject * obj3 = 0 ;
25057 PyObject * obj4 = 0 ;
25058 PyObject * obj5 = 0 ;
25059 PyObject * obj6 = 0 ;
25060 PyObject * obj7 = 0 ;
25061 char *kwnames[] = {
25062 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25063 };
25064
25065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25070 if (obj2) {
25071 arg3 = (int) SWIG_AsInt(obj2);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 if (obj3) {
25075 {
25076 arg4 = &temp4;
25077 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25078 }
25079 }
25080 if (obj4) {
25081 {
25082 arg5 = &temp5;
25083 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25084 }
25085 }
25086 if (obj5) {
25087 arg6 = (long) SWIG_AsLong(obj5);
25088 if (PyErr_Occurred()) SWIG_fail;
25089 }
25090 if (obj6) {
25091 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25092 SWIG_POINTER_EXCEPTION | 0)) == -1)
25093 SWIG_fail;
25094 if (arg7 == NULL) {
25095 PyErr_SetString(PyExc_TypeError,"null reference");
25096 SWIG_fail;
25097 }
25098 }
25099 if (obj7) {
25100 {
25101 arg8 = wxString_in_helper(obj7);
25102 if (arg8 == NULL) SWIG_fail;
25103 temp8 = True;
25104 }
25105 }
25106 {
25107 PyThreadState* __tstate = wxPyBeginAllowThreads();
25108 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25109
25110 wxPyEndAllowThreads(__tstate);
25111 if (PyErr_Occurred()) SWIG_fail;
25112 }
25113 {
25114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25115 }
25116 {
25117 if (temp8)
25118 delete arg8;
25119 }
25120 return resultobj;
25121 fail:
25122 {
25123 if (temp8)
25124 delete arg8;
25125 }
25126 return NULL;
25127}
25128
25129
25130static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25131 PyObject *resultobj;
25132 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25133 PyObject *arg2 = (PyObject *) 0 ;
25134 PyObject *arg3 = (PyObject *) 0 ;
25135 PyObject * obj0 = 0 ;
25136 PyObject * obj1 = 0 ;
25137 PyObject * obj2 = 0 ;
25138 char *kwnames[] = {
25139 (char *) "self",(char *) "self",(char *) "_class", NULL
25140 };
25141
25142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25145 arg2 = obj1;
25146 arg3 = obj2;
25147 {
25148 PyThreadState* __tstate = wxPyBeginAllowThreads();
25149 (arg1)->_setCallbackInfo(arg2,arg3);
25150
25151 wxPyEndAllowThreads(__tstate);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 Py_INCREF(Py_None); resultobj = Py_None;
25155 return resultobj;
25156 fail:
25157 return NULL;
25158}
25159
25160
25161static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
25162 PyObject *resultobj;
25163 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25164 size_t result;
25165 PyObject * obj0 = 0 ;
25166 char *kwnames[] = {
25167 (char *) "self", NULL
25168 };
25169
25170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25173 {
25174 PyThreadState* __tstate = wxPyBeginAllowThreads();
25175 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25176
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25181 return resultobj;
25182 fail:
25183 return NULL;
25184}
25185
25186
25187static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25188 PyObject *resultobj;
25189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25190 unsigned int result;
25191 PyObject * obj0 = 0 ;
25192 char *kwnames[] = {
25193 (char *) "self", NULL
25194 };
25195
25196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25199 {
25200 PyThreadState* __tstate = wxPyBeginAllowThreads();
25201 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25202
25203 wxPyEndAllowThreads(__tstate);
25204 if (PyErr_Occurred()) SWIG_fail;
25205 }
25206 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25207 return resultobj;
25208 fail:
25209 return NULL;
25210}
25211
25212
25213static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
25214 PyObject *resultobj;
25215 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25216 unsigned int arg2 ;
25217 PyObject * obj0 = 0 ;
25218 PyObject * obj1 = 0 ;
25219 char *kwnames[] = {
25220 (char *) "self",(char *) "indent", NULL
25221 };
25222
25223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25226 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25227 if (PyErr_Occurred()) SWIG_fail;
25228 {
25229 PyThreadState* __tstate = wxPyBeginAllowThreads();
25230 (arg1)->SetIndent(arg2);
25231
25232 wxPyEndAllowThreads(__tstate);
25233 if (PyErr_Occurred()) SWIG_fail;
25234 }
25235 Py_INCREF(Py_None); resultobj = Py_None;
25236 return resultobj;
25237 fail:
25238 return NULL;
25239}
25240
25241
25242static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25243 PyObject *resultobj;
25244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25245 unsigned int result;
25246 PyObject * obj0 = 0 ;
25247 char *kwnames[] = {
25248 (char *) "self", NULL
25249 };
25250
25251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25254 {
25255 PyThreadState* __tstate = wxPyBeginAllowThreads();
25256 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25257
25258 wxPyEndAllowThreads(__tstate);
25259 if (PyErr_Occurred()) SWIG_fail;
25260 }
25261 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
25262 return resultobj;
25263 fail:
25264 return NULL;
25265}
25266
25267
25268static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
25269 PyObject *resultobj;
25270 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25271 unsigned int arg2 ;
25272 PyObject * obj0 = 0 ;
25273 PyObject * obj1 = 0 ;
25274 char *kwnames[] = {
25275 (char *) "self",(char *) "spacing", NULL
25276 };
25277
25278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25281 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
25282 if (PyErr_Occurred()) SWIG_fail;
25283 {
25284 PyThreadState* __tstate = wxPyBeginAllowThreads();
25285 (arg1)->SetSpacing(arg2);
25286
25287 wxPyEndAllowThreads(__tstate);
25288 if (PyErr_Occurred()) SWIG_fail;
25289 }
25290 Py_INCREF(Py_None); resultobj = Py_None;
25291 return resultobj;
25292 fail:
25293 return NULL;
25294}
25295
25296
25297static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25298 PyObject *resultobj;
25299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25300 wxImageList *result;
25301 PyObject * obj0 = 0 ;
25302 char *kwnames[] = {
25303 (char *) "self", NULL
25304 };
25305
25306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25309 {
25310 PyThreadState* __tstate = wxPyBeginAllowThreads();
25311 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25312
25313 wxPyEndAllowThreads(__tstate);
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 {
412d302d 25317 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25318 }
25319 return resultobj;
25320 fail:
25321 return NULL;
25322}
25323
25324
25325static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25326 PyObject *resultobj;
25327 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25328 wxImageList *result;
25329 PyObject * obj0 = 0 ;
25330 char *kwnames[] = {
25331 (char *) "self", NULL
25332 };
25333
25334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25337 {
25338 PyThreadState* __tstate = wxPyBeginAllowThreads();
25339 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25340
25341 wxPyEndAllowThreads(__tstate);
25342 if (PyErr_Occurred()) SWIG_fail;
25343 }
25344 {
412d302d 25345 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25346 }
25347 return resultobj;
25348 fail:
25349 return NULL;
25350}
25351
25352
25353static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25354 PyObject *resultobj;
25355 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25356 wxImageList *arg2 = (wxImageList *) 0 ;
25357 PyObject * obj0 = 0 ;
25358 PyObject * obj1 = 0 ;
25359 char *kwnames[] = {
25360 (char *) "self",(char *) "imageList", NULL
25361 };
25362
25363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25366 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25368 {
25369 PyThreadState* __tstate = wxPyBeginAllowThreads();
25370 (arg1)->SetImageList(arg2);
25371
25372 wxPyEndAllowThreads(__tstate);
25373 if (PyErr_Occurred()) SWIG_fail;
25374 }
25375 Py_INCREF(Py_None); resultobj = Py_None;
25376 return resultobj;
25377 fail:
25378 return NULL;
25379}
25380
25381
25382static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25383 PyObject *resultobj;
25384 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25385 wxImageList *arg2 = (wxImageList *) 0 ;
25386 PyObject * obj0 = 0 ;
25387 PyObject * obj1 = 0 ;
25388 char *kwnames[] = {
25389 (char *) "self",(char *) "imageList", NULL
25390 };
25391
25392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25397 {
25398 PyThreadState* __tstate = wxPyBeginAllowThreads();
25399 (arg1)->SetStateImageList(arg2);
25400
25401 wxPyEndAllowThreads(__tstate);
25402 if (PyErr_Occurred()) SWIG_fail;
25403 }
25404 Py_INCREF(Py_None); resultobj = Py_None;
25405 return resultobj;
25406 fail:
25407 return NULL;
25408}
25409
25410
25411static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25412 PyObject *resultobj;
25413 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25414 wxImageList *arg2 = (wxImageList *) 0 ;
25415 PyObject * obj0 = 0 ;
25416 PyObject * obj1 = 0 ;
25417 char *kwnames[] = {
25418 (char *) "self",(char *) "imageList", NULL
25419 };
25420
25421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25424 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25425 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25426 {
25427 PyThreadState* __tstate = wxPyBeginAllowThreads();
25428 (arg1)->AssignImageList(arg2);
25429
25430 wxPyEndAllowThreads(__tstate);
25431 if (PyErr_Occurred()) SWIG_fail;
25432 }
25433 Py_INCREF(Py_None); resultobj = Py_None;
25434 return resultobj;
25435 fail:
25436 return NULL;
25437}
25438
25439
25440static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
25441 PyObject *resultobj;
25442 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25443 wxImageList *arg2 = (wxImageList *) 0 ;
25444 PyObject * obj0 = 0 ;
25445 PyObject * obj1 = 0 ;
25446 char *kwnames[] = {
25447 (char *) "self",(char *) "imageList", NULL
25448 };
25449
25450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25453 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25454 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
25457 (arg1)->AssignStateImageList(arg2);
25458
25459 wxPyEndAllowThreads(__tstate);
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 Py_INCREF(Py_None); resultobj = Py_None;
25463 return resultobj;
25464 fail:
25465 return NULL;
25466}
25467
25468
25469static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25470 PyObject *resultobj;
25471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25472 wxTreeItemId *arg2 = 0 ;
25473 wxString result;
25474 PyObject * obj0 = 0 ;
25475 PyObject * obj1 = 0 ;
25476 char *kwnames[] = {
25477 (char *) "self",(char *) "item", NULL
25478 };
25479
25480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25484 SWIG_POINTER_EXCEPTION | 0)) == -1)
25485 SWIG_fail;
25486 if (arg2 == NULL) {
25487 PyErr_SetString(PyExc_TypeError,"null reference");
25488 SWIG_fail;
25489 }
25490 {
25491 PyThreadState* __tstate = wxPyBeginAllowThreads();
25492 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25493
25494 wxPyEndAllowThreads(__tstate);
25495 if (PyErr_Occurred()) SWIG_fail;
25496 }
25497 {
25498#if wxUSE_UNICODE
25499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25500#else
25501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25502#endif
25503 }
25504 return resultobj;
25505 fail:
25506 return NULL;
25507}
25508
25509
25510static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25511 PyObject *resultobj;
25512 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25513 wxTreeItemId *arg2 = 0 ;
25514 int arg3 = (int) wxTreeItemIcon_Normal ;
25515 int result;
25516 PyObject * obj0 = 0 ;
25517 PyObject * obj1 = 0 ;
25518 PyObject * obj2 = 0 ;
25519 char *kwnames[] = {
25520 (char *) "self",(char *) "item",(char *) "which", NULL
25521 };
25522
25523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25527 SWIG_POINTER_EXCEPTION | 0)) == -1)
25528 SWIG_fail;
25529 if (arg2 == NULL) {
25530 PyErr_SetString(PyExc_TypeError,"null reference");
25531 SWIG_fail;
25532 }
25533 if (obj2) {
25534 arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2);
25535 if (PyErr_Occurred()) SWIG_fail;
25536 }
25537 {
25538 PyThreadState* __tstate = wxPyBeginAllowThreads();
25539 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25540
25541 wxPyEndAllowThreads(__tstate);
25542 if (PyErr_Occurred()) SWIG_fail;
25543 }
25544 resultobj = SWIG_FromInt((int)result);
25545 return resultobj;
25546 fail:
25547 return NULL;
25548}
25549
25550
25551static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25552 PyObject *resultobj;
25553 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25554 wxTreeItemId *arg2 = 0 ;
25555 wxPyTreeItemData *result;
25556 PyObject * obj0 = 0 ;
25557 PyObject * obj1 = 0 ;
25558 char *kwnames[] = {
25559 (char *) "self",(char *) "item", NULL
25560 };
25561
25562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25565 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25566 SWIG_POINTER_EXCEPTION | 0)) == -1)
25567 SWIG_fail;
25568 if (arg2 == NULL) {
25569 PyErr_SetString(PyExc_TypeError,"null reference");
25570 SWIG_fail;
25571 }
25572 {
25573 PyThreadState* __tstate = wxPyBeginAllowThreads();
25574 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25575
25576 wxPyEndAllowThreads(__tstate);
25577 if (PyErr_Occurred()) SWIG_fail;
25578 }
25579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25580 return resultobj;
25581 fail:
25582 return NULL;
25583}
25584
25585
25586static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25587 PyObject *resultobj;
25588 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25589 wxTreeItemId *arg2 = 0 ;
25590 PyObject *result;
25591 PyObject * obj0 = 0 ;
25592 PyObject * obj1 = 0 ;
25593 char *kwnames[] = {
25594 (char *) "self",(char *) "item", NULL
25595 };
25596
25597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25600 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25601 SWIG_POINTER_EXCEPTION | 0)) == -1)
25602 SWIG_fail;
25603 if (arg2 == NULL) {
25604 PyErr_SetString(PyExc_TypeError,"null reference");
25605 SWIG_fail;
25606 }
25607 {
25608 PyThreadState* __tstate = wxPyBeginAllowThreads();
25609 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25610
25611 wxPyEndAllowThreads(__tstate);
25612 if (PyErr_Occurred()) SWIG_fail;
25613 }
25614 resultobj = result;
25615 return resultobj;
25616 fail:
25617 return NULL;
25618}
25619
25620
25621static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25622 PyObject *resultobj;
25623 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25624 wxTreeItemId *arg2 = 0 ;
25625 wxColour result;
25626 PyObject * obj0 = 0 ;
25627 PyObject * obj1 = 0 ;
25628 char *kwnames[] = {
25629 (char *) "self",(char *) "item", NULL
25630 };
25631
25632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25636 SWIG_POINTER_EXCEPTION | 0)) == -1)
25637 SWIG_fail;
25638 if (arg2 == NULL) {
25639 PyErr_SetString(PyExc_TypeError,"null reference");
25640 SWIG_fail;
25641 }
25642 {
25643 PyThreadState* __tstate = wxPyBeginAllowThreads();
25644 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25645
25646 wxPyEndAllowThreads(__tstate);
25647 if (PyErr_Occurred()) SWIG_fail;
25648 }
25649 {
25650 wxColour * resultptr;
25651 resultptr = new wxColour((wxColour &) result);
25652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25653 }
25654 return resultobj;
25655 fail:
25656 return NULL;
25657}
25658
25659
25660static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25661 PyObject *resultobj;
25662 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25663 wxTreeItemId *arg2 = 0 ;
25664 wxColour result;
25665 PyObject * obj0 = 0 ;
25666 PyObject * obj1 = 0 ;
25667 char *kwnames[] = {
25668 (char *) "self",(char *) "item", NULL
25669 };
25670
25671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25675 SWIG_POINTER_EXCEPTION | 0)) == -1)
25676 SWIG_fail;
25677 if (arg2 == NULL) {
25678 PyErr_SetString(PyExc_TypeError,"null reference");
25679 SWIG_fail;
25680 }
25681 {
25682 PyThreadState* __tstate = wxPyBeginAllowThreads();
25683 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25684
25685 wxPyEndAllowThreads(__tstate);
25686 if (PyErr_Occurred()) SWIG_fail;
25687 }
25688 {
25689 wxColour * resultptr;
25690 resultptr = new wxColour((wxColour &) result);
25691 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25692 }
25693 return resultobj;
25694 fail:
25695 return NULL;
25696}
25697
25698
25699static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
25700 PyObject *resultobj;
25701 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25702 wxTreeItemId *arg2 = 0 ;
25703 wxFont result;
25704 PyObject * obj0 = 0 ;
25705 PyObject * obj1 = 0 ;
25706 char *kwnames[] = {
25707 (char *) "self",(char *) "item", NULL
25708 };
25709
25710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
25711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25713 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25714 SWIG_POINTER_EXCEPTION | 0)) == -1)
25715 SWIG_fail;
25716 if (arg2 == NULL) {
25717 PyErr_SetString(PyExc_TypeError,"null reference");
25718 SWIG_fail;
25719 }
25720 {
25721 PyThreadState* __tstate = wxPyBeginAllowThreads();
25722 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
25723
25724 wxPyEndAllowThreads(__tstate);
25725 if (PyErr_Occurred()) SWIG_fail;
25726 }
25727 {
25728 wxFont * resultptr;
25729 resultptr = new wxFont((wxFont &) result);
25730 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
25731 }
25732 return resultobj;
25733 fail:
25734 return NULL;
25735}
25736
25737
25738static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
25739 PyObject *resultobj;
25740 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25741 wxTreeItemId *arg2 = 0 ;
25742 wxString *arg3 = 0 ;
25743 bool temp3 = False ;
25744 PyObject * obj0 = 0 ;
25745 PyObject * obj1 = 0 ;
25746 PyObject * obj2 = 0 ;
25747 char *kwnames[] = {
25748 (char *) "self",(char *) "item",(char *) "text", NULL
25749 };
25750
25751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
25752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25754 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25755 SWIG_POINTER_EXCEPTION | 0)) == -1)
25756 SWIG_fail;
25757 if (arg2 == NULL) {
25758 PyErr_SetString(PyExc_TypeError,"null reference");
25759 SWIG_fail;
25760 }
25761 {
25762 arg3 = wxString_in_helper(obj2);
25763 if (arg3 == NULL) SWIG_fail;
25764 temp3 = True;
25765 }
25766 {
25767 PyThreadState* __tstate = wxPyBeginAllowThreads();
25768 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
25769
25770 wxPyEndAllowThreads(__tstate);
25771 if (PyErr_Occurred()) SWIG_fail;
25772 }
25773 Py_INCREF(Py_None); resultobj = Py_None;
25774 {
25775 if (temp3)
25776 delete arg3;
25777 }
25778 return resultobj;
25779 fail:
25780 {
25781 if (temp3)
25782 delete arg3;
25783 }
25784 return NULL;
25785}
25786
25787
25788static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
25789 PyObject *resultobj;
25790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25791 wxTreeItemId *arg2 = 0 ;
25792 int arg3 ;
25793 int arg4 = (int) wxTreeItemIcon_Normal ;
25794 PyObject * obj0 = 0 ;
25795 PyObject * obj1 = 0 ;
25796 PyObject * obj2 = 0 ;
25797 PyObject * obj3 = 0 ;
25798 char *kwnames[] = {
25799 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
25800 };
25801
25802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25805 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25806 SWIG_POINTER_EXCEPTION | 0)) == -1)
25807 SWIG_fail;
25808 if (arg2 == NULL) {
25809 PyErr_SetString(PyExc_TypeError,"null reference");
25810 SWIG_fail;
25811 }
25812 arg3 = (int) SWIG_AsInt(obj2);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 if (obj3) {
25815 arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 {
25819 PyThreadState* __tstate = wxPyBeginAllowThreads();
25820 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
25821
25822 wxPyEndAllowThreads(__tstate);
25823 if (PyErr_Occurred()) SWIG_fail;
25824 }
25825 Py_INCREF(Py_None); resultobj = Py_None;
25826 return resultobj;
25827 fail:
25828 return NULL;
25829}
25830
25831
25832static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
25833 PyObject *resultobj;
25834 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25835 wxTreeItemId *arg2 = 0 ;
25836 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
25837 PyObject * obj0 = 0 ;
25838 PyObject * obj1 = 0 ;
25839 PyObject * obj2 = 0 ;
25840 char *kwnames[] = {
25841 (char *) "self",(char *) "item",(char *) "data", NULL
25842 };
25843
25844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25847 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25848 SWIG_POINTER_EXCEPTION | 0)) == -1)
25849 SWIG_fail;
25850 if (arg2 == NULL) {
25851 PyErr_SetString(PyExc_TypeError,"null reference");
25852 SWIG_fail;
25853 }
25854 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
25855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25856 {
25857 PyThreadState* __tstate = wxPyBeginAllowThreads();
25858 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
25859
25860 wxPyEndAllowThreads(__tstate);
25861 if (PyErr_Occurred()) SWIG_fail;
25862 }
25863 Py_INCREF(Py_None); resultobj = Py_None;
25864 return resultobj;
25865 fail:
25866 return NULL;
25867}
25868
25869
25870static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
25871 PyObject *resultobj;
25872 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25873 wxTreeItemId *arg2 = 0 ;
25874 PyObject *arg3 = (PyObject *) 0 ;
25875 PyObject * obj0 = 0 ;
25876 PyObject * obj1 = 0 ;
25877 PyObject * obj2 = 0 ;
25878 char *kwnames[] = {
25879 (char *) "self",(char *) "item",(char *) "obj", NULL
25880 };
25881
25882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25885 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25886 SWIG_POINTER_EXCEPTION | 0)) == -1)
25887 SWIG_fail;
25888 if (arg2 == NULL) {
25889 PyErr_SetString(PyExc_TypeError,"null reference");
25890 SWIG_fail;
25891 }
25892 arg3 = obj2;
25893 {
25894 PyThreadState* __tstate = wxPyBeginAllowThreads();
25895 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
25896
25897 wxPyEndAllowThreads(__tstate);
25898 if (PyErr_Occurred()) SWIG_fail;
25899 }
25900 Py_INCREF(Py_None); resultobj = Py_None;
25901 return resultobj;
25902 fail:
25903 return NULL;
25904}
25905
25906
25907static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
25908 PyObject *resultobj;
25909 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25910 wxTreeItemId *arg2 = 0 ;
25911 bool arg3 = (bool) True ;
25912 PyObject * obj0 = 0 ;
25913 PyObject * obj1 = 0 ;
25914 PyObject * obj2 = 0 ;
25915 char *kwnames[] = {
25916 (char *) "self",(char *) "item",(char *) "has", NULL
25917 };
25918
25919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
25920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25922 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25923 SWIG_POINTER_EXCEPTION | 0)) == -1)
25924 SWIG_fail;
25925 if (arg2 == NULL) {
25926 PyErr_SetString(PyExc_TypeError,"null reference");
25927 SWIG_fail;
25928 }
25929 if (obj2) {
25930 arg3 = (bool) SWIG_AsBool(obj2);
25931 if (PyErr_Occurred()) SWIG_fail;
25932 }
25933 {
25934 PyThreadState* __tstate = wxPyBeginAllowThreads();
25935 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
25936
25937 wxPyEndAllowThreads(__tstate);
25938 if (PyErr_Occurred()) SWIG_fail;
25939 }
25940 Py_INCREF(Py_None); resultobj = Py_None;
25941 return resultobj;
25942 fail:
25943 return NULL;
25944}
25945
25946
25947static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
25948 PyObject *resultobj;
25949 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25950 wxTreeItemId *arg2 = 0 ;
25951 bool arg3 = (bool) True ;
25952 PyObject * obj0 = 0 ;
25953 PyObject * obj1 = 0 ;
25954 PyObject * obj2 = 0 ;
25955 char *kwnames[] = {
25956 (char *) "self",(char *) "item",(char *) "bold", NULL
25957 };
25958
25959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
25960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25963 SWIG_POINTER_EXCEPTION | 0)) == -1)
25964 SWIG_fail;
25965 if (arg2 == NULL) {
25966 PyErr_SetString(PyExc_TypeError,"null reference");
25967 SWIG_fail;
25968 }
25969 if (obj2) {
25970 arg3 = (bool) SWIG_AsBool(obj2);
25971 if (PyErr_Occurred()) SWIG_fail;
25972 }
25973 {
25974 PyThreadState* __tstate = wxPyBeginAllowThreads();
25975 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
25976
25977 wxPyEndAllowThreads(__tstate);
25978 if (PyErr_Occurred()) SWIG_fail;
25979 }
25980 Py_INCREF(Py_None); resultobj = Py_None;
25981 return resultobj;
25982 fail:
25983 return NULL;
25984}
25985
25986
25987static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25988 PyObject *resultobj;
25989 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25990 wxTreeItemId *arg2 = 0 ;
25991 wxColour *arg3 = 0 ;
25992 wxColour temp3 ;
25993 PyObject * obj0 = 0 ;
25994 PyObject * obj1 = 0 ;
25995 PyObject * obj2 = 0 ;
25996 char *kwnames[] = {
25997 (char *) "self",(char *) "item",(char *) "col", NULL
25998 };
25999
26000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26004 SWIG_POINTER_EXCEPTION | 0)) == -1)
26005 SWIG_fail;
26006 if (arg2 == NULL) {
26007 PyErr_SetString(PyExc_TypeError,"null reference");
26008 SWIG_fail;
26009 }
26010 {
26011 arg3 = &temp3;
26012 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26013 }
26014 {
26015 PyThreadState* __tstate = wxPyBeginAllowThreads();
26016 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26017
26018 wxPyEndAllowThreads(__tstate);
26019 if (PyErr_Occurred()) SWIG_fail;
26020 }
26021 Py_INCREF(Py_None); resultobj = Py_None;
26022 return resultobj;
26023 fail:
26024 return NULL;
26025}
26026
26027
26028static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26029 PyObject *resultobj;
26030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26031 wxTreeItemId *arg2 = 0 ;
26032 wxColour *arg3 = 0 ;
26033 wxColour temp3 ;
26034 PyObject * obj0 = 0 ;
26035 PyObject * obj1 = 0 ;
26036 PyObject * obj2 = 0 ;
26037 char *kwnames[] = {
26038 (char *) "self",(char *) "item",(char *) "col", NULL
26039 };
26040
26041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26044 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26045 SWIG_POINTER_EXCEPTION | 0)) == -1)
26046 SWIG_fail;
26047 if (arg2 == NULL) {
26048 PyErr_SetString(PyExc_TypeError,"null reference");
26049 SWIG_fail;
26050 }
26051 {
26052 arg3 = &temp3;
26053 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26054 }
26055 {
26056 PyThreadState* __tstate = wxPyBeginAllowThreads();
26057 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26058
26059 wxPyEndAllowThreads(__tstate);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 }
26062 Py_INCREF(Py_None); resultobj = Py_None;
26063 return resultobj;
26064 fail:
26065 return NULL;
26066}
26067
26068
26069static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26070 PyObject *resultobj;
26071 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26072 wxTreeItemId *arg2 = 0 ;
26073 wxFont *arg3 = 0 ;
26074 PyObject * obj0 = 0 ;
26075 PyObject * obj1 = 0 ;
26076 PyObject * obj2 = 0 ;
26077 char *kwnames[] = {
26078 (char *) "self",(char *) "item",(char *) "font", NULL
26079 };
26080
26081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26084 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26085 SWIG_POINTER_EXCEPTION | 0)) == -1)
26086 SWIG_fail;
26087 if (arg2 == NULL) {
26088 PyErr_SetString(PyExc_TypeError,"null reference");
26089 SWIG_fail;
26090 }
26091 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26092 SWIG_POINTER_EXCEPTION | 0)) == -1)
26093 SWIG_fail;
26094 if (arg3 == NULL) {
26095 PyErr_SetString(PyExc_TypeError,"null reference");
26096 SWIG_fail;
26097 }
26098 {
26099 PyThreadState* __tstate = wxPyBeginAllowThreads();
26100 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26101
26102 wxPyEndAllowThreads(__tstate);
26103 if (PyErr_Occurred()) SWIG_fail;
26104 }
26105 Py_INCREF(Py_None); resultobj = Py_None;
26106 return resultobj;
26107 fail:
26108 return NULL;
26109}
26110
26111
26112static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26113 PyObject *resultobj;
26114 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26115 wxTreeItemId *arg2 = 0 ;
26116 bool result;
26117 PyObject * obj0 = 0 ;
26118 PyObject * obj1 = 0 ;
26119 char *kwnames[] = {
26120 (char *) "self",(char *) "item", NULL
26121 };
26122
26123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26127 SWIG_POINTER_EXCEPTION | 0)) == -1)
26128 SWIG_fail;
26129 if (arg2 == NULL) {
26130 PyErr_SetString(PyExc_TypeError,"null reference");
26131 SWIG_fail;
26132 }
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26136
26137 wxPyEndAllowThreads(__tstate);
26138 if (PyErr_Occurred()) SWIG_fail;
26139 }
26140 {
26141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26142 }
26143 return resultobj;
26144 fail:
26145 return NULL;
26146}
26147
26148
26149static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
26150 PyObject *resultobj;
26151 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26152 wxTreeItemId *arg2 = 0 ;
26153 bool result;
26154 PyObject * obj0 = 0 ;
26155 PyObject * obj1 = 0 ;
26156 char *kwnames[] = {
26157 (char *) "self",(char *) "item", NULL
26158 };
26159
26160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26164 SWIG_POINTER_EXCEPTION | 0)) == -1)
26165 SWIG_fail;
26166 if (arg2 == NULL) {
26167 PyErr_SetString(PyExc_TypeError,"null reference");
26168 SWIG_fail;
26169 }
26170 {
26171 PyThreadState* __tstate = wxPyBeginAllowThreads();
26172 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26173
26174 wxPyEndAllowThreads(__tstate);
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 {
26178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26179 }
26180 return resultobj;
26181 fail:
26182 return NULL;
26183}
26184
26185
26186static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
26187 PyObject *resultobj;
26188 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26189 wxTreeItemId *arg2 = 0 ;
26190 bool result;
26191 PyObject * obj0 = 0 ;
26192 PyObject * obj1 = 0 ;
26193 char *kwnames[] = {
26194 (char *) "self",(char *) "item", NULL
26195 };
26196
26197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26200 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26201 SWIG_POINTER_EXCEPTION | 0)) == -1)
26202 SWIG_fail;
26203 if (arg2 == NULL) {
26204 PyErr_SetString(PyExc_TypeError,"null reference");
26205 SWIG_fail;
26206 }
26207 {
26208 PyThreadState* __tstate = wxPyBeginAllowThreads();
26209 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26210
26211 wxPyEndAllowThreads(__tstate);
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 {
26215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26216 }
26217 return resultobj;
26218 fail:
26219 return NULL;
26220}
26221
26222
26223static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
26224 PyObject *resultobj;
26225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26226 wxTreeItemId *arg2 = 0 ;
26227 bool result;
26228 PyObject * obj0 = 0 ;
26229 PyObject * obj1 = 0 ;
26230 char *kwnames[] = {
26231 (char *) "self",(char *) "item", NULL
26232 };
26233
26234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26238 SWIG_POINTER_EXCEPTION | 0)) == -1)
26239 SWIG_fail;
26240 if (arg2 == NULL) {
26241 PyErr_SetString(PyExc_TypeError,"null reference");
26242 SWIG_fail;
26243 }
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26247
26248 wxPyEndAllowThreads(__tstate);
26249 if (PyErr_Occurred()) SWIG_fail;
26250 }
26251 {
26252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26253 }
26254 return resultobj;
26255 fail:
26256 return NULL;
26257}
26258
26259
26260static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
26261 PyObject *resultobj;
26262 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26263 wxTreeItemId *arg2 = 0 ;
26264 bool result;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 char *kwnames[] = {
26268 (char *) "self",(char *) "item", NULL
26269 };
26270
26271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26275 SWIG_POINTER_EXCEPTION | 0)) == -1)
26276 SWIG_fail;
26277 if (arg2 == NULL) {
26278 PyErr_SetString(PyExc_TypeError,"null reference");
26279 SWIG_fail;
26280 }
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26284
26285 wxPyEndAllowThreads(__tstate);
26286 if (PyErr_Occurred()) SWIG_fail;
26287 }
26288 {
26289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26290 }
26291 return resultobj;
26292 fail:
26293 return NULL;
26294}
26295
26296
26297static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
26298 PyObject *resultobj;
26299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26300 wxTreeItemId *arg2 = 0 ;
26301 bool arg3 = (bool) True ;
26302 size_t result;
26303 PyObject * obj0 = 0 ;
26304 PyObject * obj1 = 0 ;
26305 PyObject * obj2 = 0 ;
26306 char *kwnames[] = {
26307 (char *) "self",(char *) "item",(char *) "recursively", NULL
26308 };
26309
26310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26314 SWIG_POINTER_EXCEPTION | 0)) == -1)
26315 SWIG_fail;
26316 if (arg2 == NULL) {
26317 PyErr_SetString(PyExc_TypeError,"null reference");
26318 SWIG_fail;
26319 }
26320 if (obj2) {
26321 arg3 = (bool) SWIG_AsBool(obj2);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 {
26325 PyThreadState* __tstate = wxPyBeginAllowThreads();
26326 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26327
26328 wxPyEndAllowThreads(__tstate);
26329 if (PyErr_Occurred()) SWIG_fail;
26330 }
26331 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
26332 return resultobj;
26333 fail:
26334 return NULL;
26335}
26336
26337
26338static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26339 PyObject *resultobj;
26340 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26341 wxTreeItemId result;
26342 PyObject * obj0 = 0 ;
26343 char *kwnames[] = {
26344 (char *) "self", NULL
26345 };
26346
26347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26350 {
26351 PyThreadState* __tstate = wxPyBeginAllowThreads();
26352 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26353
26354 wxPyEndAllowThreads(__tstate);
26355 if (PyErr_Occurred()) SWIG_fail;
26356 }
26357 {
26358 wxTreeItemId * resultptr;
26359 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26360 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26361 }
26362 return resultobj;
26363 fail:
26364 return NULL;
26365}
26366
26367
26368static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26369 PyObject *resultobj;
26370 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26371 wxTreeItemId result;
26372 PyObject * obj0 = 0 ;
26373 char *kwnames[] = {
26374 (char *) "self", NULL
26375 };
26376
26377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26380 {
26381 PyThreadState* __tstate = wxPyBeginAllowThreads();
26382 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26383
26384 wxPyEndAllowThreads(__tstate);
26385 if (PyErr_Occurred()) SWIG_fail;
26386 }
26387 {
26388 wxTreeItemId * resultptr;
26389 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26390 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26391 }
26392 return resultobj;
26393 fail:
26394 return NULL;
26395}
26396
26397
26398static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
26399 PyObject *resultobj;
26400 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26401 PyObject *result;
26402 PyObject * obj0 = 0 ;
26403 char *kwnames[] = {
26404 (char *) "self", NULL
26405 };
26406
26407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26410 {
26411 PyThreadState* __tstate = wxPyBeginAllowThreads();
26412 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26413
26414 wxPyEndAllowThreads(__tstate);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = result;
26418 return resultobj;
26419 fail:
26420 return NULL;
26421}
26422
26423
26424static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
26425 PyObject *resultobj;
26426 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26427 wxTreeItemId *arg2 = 0 ;
26428 wxTreeItemId result;
26429 PyObject * obj0 = 0 ;
26430 PyObject * obj1 = 0 ;
26431 char *kwnames[] = {
26432 (char *) "self",(char *) "item", NULL
26433 };
26434
26435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26438 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26439 SWIG_POINTER_EXCEPTION | 0)) == -1)
26440 SWIG_fail;
26441 if (arg2 == NULL) {
26442 PyErr_SetString(PyExc_TypeError,"null reference");
26443 SWIG_fail;
26444 }
26445 {
26446 PyThreadState* __tstate = wxPyBeginAllowThreads();
26447 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26448
26449 wxPyEndAllowThreads(__tstate);
26450 if (PyErr_Occurred()) SWIG_fail;
26451 }
26452 {
26453 wxTreeItemId * resultptr;
26454 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26455 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26456 }
26457 return resultobj;
26458 fail:
26459 return NULL;
26460}
26461
26462
26463static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26464 PyObject *resultobj;
26465 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26466 wxTreeItemId *arg2 = 0 ;
26467 PyObject *result;
26468 PyObject * obj0 = 0 ;
26469 PyObject * obj1 = 0 ;
26470 char *kwnames[] = {
26471 (char *) "self",(char *) "item", NULL
26472 };
26473
26474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26477 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26478 SWIG_POINTER_EXCEPTION | 0)) == -1)
26479 SWIG_fail;
26480 if (arg2 == NULL) {
26481 PyErr_SetString(PyExc_TypeError,"null reference");
26482 SWIG_fail;
26483 }
26484 {
26485 PyThreadState* __tstate = wxPyBeginAllowThreads();
26486 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26487
26488 wxPyEndAllowThreads(__tstate);
26489 if (PyErr_Occurred()) SWIG_fail;
26490 }
26491 resultobj = result;
26492 return resultobj;
26493 fail:
26494 return NULL;
26495}
26496
26497
26498static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26499 PyObject *resultobj;
26500 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26501 wxTreeItemId *arg2 = 0 ;
26502 void *arg3 = (void *) 0 ;
26503 PyObject *result;
26504 PyObject * obj0 = 0 ;
26505 PyObject * obj1 = 0 ;
26506 PyObject * obj2 = 0 ;
26507 char *kwnames[] = {
26508 (char *) "self",(char *) "item",(char *) "cookie", NULL
26509 };
26510
26511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26515 SWIG_POINTER_EXCEPTION | 0)) == -1)
26516 SWIG_fail;
26517 if (arg2 == NULL) {
26518 PyErr_SetString(PyExc_TypeError,"null reference");
26519 SWIG_fail;
26520 }
26521 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26522 {
26523 PyThreadState* __tstate = wxPyBeginAllowThreads();
26524 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26525
26526 wxPyEndAllowThreads(__tstate);
26527 if (PyErr_Occurred()) SWIG_fail;
26528 }
26529 resultobj = result;
26530 return resultobj;
26531 fail:
26532 return NULL;
26533}
26534
26535
26536static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
26537 PyObject *resultobj;
26538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26539 wxTreeItemId *arg2 = 0 ;
26540 wxTreeItemId result;
26541 PyObject * obj0 = 0 ;
26542 PyObject * obj1 = 0 ;
26543 char *kwnames[] = {
26544 (char *) "self",(char *) "item", NULL
26545 };
26546
26547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26550 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26551 SWIG_POINTER_EXCEPTION | 0)) == -1)
26552 SWIG_fail;
26553 if (arg2 == NULL) {
26554 PyErr_SetString(PyExc_TypeError,"null reference");
26555 SWIG_fail;
26556 }
26557 {
26558 PyThreadState* __tstate = wxPyBeginAllowThreads();
26559 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26560
26561 wxPyEndAllowThreads(__tstate);
26562 if (PyErr_Occurred()) SWIG_fail;
26563 }
26564 {
26565 wxTreeItemId * resultptr;
26566 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26567 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26568 }
26569 return resultobj;
26570 fail:
26571 return NULL;
26572}
26573
26574
26575static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26576 PyObject *resultobj;
26577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26578 wxTreeItemId *arg2 = 0 ;
26579 wxTreeItemId result;
26580 PyObject * obj0 = 0 ;
26581 PyObject * obj1 = 0 ;
26582 char *kwnames[] = {
26583 (char *) "self",(char *) "item", NULL
26584 };
26585
26586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26589 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26590 SWIG_POINTER_EXCEPTION | 0)) == -1)
26591 SWIG_fail;
26592 if (arg2 == NULL) {
26593 PyErr_SetString(PyExc_TypeError,"null reference");
26594 SWIG_fail;
26595 }
26596 {
26597 PyThreadState* __tstate = wxPyBeginAllowThreads();
26598 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26599
26600 wxPyEndAllowThreads(__tstate);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 {
26604 wxTreeItemId * resultptr;
26605 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26606 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26607 }
26608 return resultobj;
26609 fail:
26610 return NULL;
26611}
26612
26613
26614static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
26615 PyObject *resultobj;
26616 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26617 wxTreeItemId *arg2 = 0 ;
26618 wxTreeItemId result;
26619 PyObject * obj0 = 0 ;
26620 PyObject * obj1 = 0 ;
26621 char *kwnames[] = {
26622 (char *) "self",(char *) "item", NULL
26623 };
26624
26625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26628 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26629 SWIG_POINTER_EXCEPTION | 0)) == -1)
26630 SWIG_fail;
26631 if (arg2 == NULL) {
26632 PyErr_SetString(PyExc_TypeError,"null reference");
26633 SWIG_fail;
26634 }
26635 {
26636 PyThreadState* __tstate = wxPyBeginAllowThreads();
26637 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26638
26639 wxPyEndAllowThreads(__tstate);
26640 if (PyErr_Occurred()) SWIG_fail;
26641 }
26642 {
26643 wxTreeItemId * resultptr;
26644 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26646 }
26647 return resultobj;
26648 fail:
26649 return NULL;
26650}
26651
26652
26653static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26654 PyObject *resultobj;
26655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26656 wxTreeItemId result;
26657 PyObject * obj0 = 0 ;
26658 char *kwnames[] = {
26659 (char *) "self", NULL
26660 };
26661
26662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
26663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26665 {
26666 PyThreadState* __tstate = wxPyBeginAllowThreads();
26667 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
26668
26669 wxPyEndAllowThreads(__tstate);
26670 if (PyErr_Occurred()) SWIG_fail;
26671 }
26672 {
26673 wxTreeItemId * resultptr;
26674 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26676 }
26677 return resultobj;
26678 fail:
26679 return NULL;
26680}
26681
26682
26683static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26684 PyObject *resultobj;
26685 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26686 wxTreeItemId *arg2 = 0 ;
26687 wxTreeItemId result;
26688 PyObject * obj0 = 0 ;
26689 PyObject * obj1 = 0 ;
26690 char *kwnames[] = {
26691 (char *) "self",(char *) "item", NULL
26692 };
26693
26694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
26695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26697 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26698 SWIG_POINTER_EXCEPTION | 0)) == -1)
26699 SWIG_fail;
26700 if (arg2 == NULL) {
26701 PyErr_SetString(PyExc_TypeError,"null reference");
26702 SWIG_fail;
26703 }
26704 {
26705 PyThreadState* __tstate = wxPyBeginAllowThreads();
26706 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
26707
26708 wxPyEndAllowThreads(__tstate);
26709 if (PyErr_Occurred()) SWIG_fail;
26710 }
26711 {
26712 wxTreeItemId * resultptr;
26713 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26715 }
26716 return resultobj;
26717 fail:
26718 return NULL;
26719}
26720
26721
26722static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
26723 PyObject *resultobj;
26724 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26725 wxTreeItemId *arg2 = 0 ;
26726 wxTreeItemId result;
26727 PyObject * obj0 = 0 ;
26728 PyObject * obj1 = 0 ;
26729 char *kwnames[] = {
26730 (char *) "self",(char *) "item", NULL
26731 };
26732
26733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
26734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26736 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26737 SWIG_POINTER_EXCEPTION | 0)) == -1)
26738 SWIG_fail;
26739 if (arg2 == NULL) {
26740 PyErr_SetString(PyExc_TypeError,"null reference");
26741 SWIG_fail;
26742 }
26743 {
26744 PyThreadState* __tstate = wxPyBeginAllowThreads();
26745 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
26746
26747 wxPyEndAllowThreads(__tstate);
26748 if (PyErr_Occurred()) SWIG_fail;
26749 }
26750 {
26751 wxTreeItemId * resultptr;
26752 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26753 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26754 }
26755 return resultobj;
26756 fail:
26757 return NULL;
26758}
26759
26760
26761static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
26762 PyObject *resultobj;
26763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26764 wxString *arg2 = 0 ;
26765 int arg3 = (int) -1 ;
26766 int arg4 = (int) -1 ;
26767 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
26768 wxTreeItemId result;
26769 bool temp2 = False ;
26770 PyObject * obj0 = 0 ;
26771 PyObject * obj1 = 0 ;
26772 PyObject * obj2 = 0 ;
26773 PyObject * obj3 = 0 ;
26774 PyObject * obj4 = 0 ;
26775 char *kwnames[] = {
26776 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26777 };
26778
26779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26782 {
26783 arg2 = wxString_in_helper(obj1);
26784 if (arg2 == NULL) SWIG_fail;
26785 temp2 = True;
26786 }
26787 if (obj2) {
26788 arg3 = (int) SWIG_AsInt(obj2);
26789 if (PyErr_Occurred()) SWIG_fail;
26790 }
26791 if (obj3) {
26792 arg4 = (int) SWIG_AsInt(obj3);
26793 if (PyErr_Occurred()) SWIG_fail;
26794 }
26795 if (obj4) {
26796 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
26797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26798 }
26799 {
26800 PyThreadState* __tstate = wxPyBeginAllowThreads();
26801 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
26802
26803 wxPyEndAllowThreads(__tstate);
26804 if (PyErr_Occurred()) SWIG_fail;
26805 }
26806 {
26807 wxTreeItemId * resultptr;
26808 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26809 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26810 }
26811 {
26812 if (temp2)
26813 delete arg2;
26814 }
26815 return resultobj;
26816 fail:
26817 {
26818 if (temp2)
26819 delete arg2;
26820 }
26821 return NULL;
26822}
26823
26824
26825static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26826 PyObject *resultobj;
26827 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26828 wxTreeItemId *arg2 = 0 ;
26829 wxString *arg3 = 0 ;
26830 int arg4 = (int) -1 ;
26831 int arg5 = (int) -1 ;
26832 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
26833 wxTreeItemId result;
26834 bool temp3 = False ;
26835 PyObject * obj0 = 0 ;
26836 PyObject * obj1 = 0 ;
26837 PyObject * obj2 = 0 ;
26838 PyObject * obj3 = 0 ;
26839 PyObject * obj4 = 0 ;
26840 PyObject * obj5 = 0 ;
26841 char *kwnames[] = {
26842 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26843 };
26844
26845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
26846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26849 SWIG_POINTER_EXCEPTION | 0)) == -1)
26850 SWIG_fail;
26851 if (arg2 == NULL) {
26852 PyErr_SetString(PyExc_TypeError,"null reference");
26853 SWIG_fail;
26854 }
26855 {
26856 arg3 = wxString_in_helper(obj2);
26857 if (arg3 == NULL) SWIG_fail;
26858 temp3 = True;
26859 }
26860 if (obj3) {
26861 arg4 = (int) SWIG_AsInt(obj3);
26862 if (PyErr_Occurred()) SWIG_fail;
26863 }
26864 if (obj4) {
26865 arg5 = (int) SWIG_AsInt(obj4);
26866 if (PyErr_Occurred()) SWIG_fail;
26867 }
26868 if (obj5) {
26869 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
26870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26871 }
26872 {
26873 PyThreadState* __tstate = wxPyBeginAllowThreads();
26874 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
26875
26876 wxPyEndAllowThreads(__tstate);
26877 if (PyErr_Occurred()) SWIG_fail;
26878 }
26879 {
26880 wxTreeItemId * resultptr;
26881 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26882 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26883 }
26884 {
26885 if (temp3)
26886 delete arg3;
26887 }
26888 return resultobj;
26889 fail:
26890 {
26891 if (temp3)
26892 delete arg3;
26893 }
26894 return NULL;
26895}
26896
26897
26898static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
26899 PyObject *resultobj;
26900 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26901 wxTreeItemId *arg2 = 0 ;
26902 wxTreeItemId *arg3 = 0 ;
26903 wxString *arg4 = 0 ;
26904 int arg5 = (int) -1 ;
26905 int arg6 = (int) -1 ;
26906 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26907 wxTreeItemId result;
26908 bool temp4 = False ;
26909 PyObject * obj0 = 0 ;
26910 PyObject * obj1 = 0 ;
26911 PyObject * obj2 = 0 ;
26912 PyObject * obj3 = 0 ;
26913 PyObject * obj4 = 0 ;
26914 PyObject * obj5 = 0 ;
26915 PyObject * obj6 = 0 ;
26916 char *kwnames[] = {
26917 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
26918 };
26919
26920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26924 SWIG_POINTER_EXCEPTION | 0)) == -1)
26925 SWIG_fail;
26926 if (arg2 == NULL) {
26927 PyErr_SetString(PyExc_TypeError,"null reference");
26928 SWIG_fail;
26929 }
26930 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
26931 SWIG_POINTER_EXCEPTION | 0)) == -1)
26932 SWIG_fail;
26933 if (arg3 == NULL) {
26934 PyErr_SetString(PyExc_TypeError,"null reference");
26935 SWIG_fail;
26936 }
26937 {
26938 arg4 = wxString_in_helper(obj3);
26939 if (arg4 == NULL) SWIG_fail;
26940 temp4 = True;
26941 }
26942 if (obj4) {
26943 arg5 = (int) SWIG_AsInt(obj4);
26944 if (PyErr_Occurred()) SWIG_fail;
26945 }
26946 if (obj5) {
26947 arg6 = (int) SWIG_AsInt(obj5);
26948 if (PyErr_Occurred()) SWIG_fail;
26949 }
26950 if (obj6) {
26951 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
26952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26953 }
26954 {
26955 PyThreadState* __tstate = wxPyBeginAllowThreads();
26956 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
26957
26958 wxPyEndAllowThreads(__tstate);
26959 if (PyErr_Occurred()) SWIG_fail;
26960 }
26961 {
26962 wxTreeItemId * resultptr;
26963 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26964 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26965 }
26966 {
26967 if (temp4)
26968 delete arg4;
26969 }
26970 return resultobj;
26971 fail:
26972 {
26973 if (temp4)
26974 delete arg4;
26975 }
26976 return NULL;
26977}
26978
26979
26980static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
26981 PyObject *resultobj;
26982 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26983 wxTreeItemId *arg2 = 0 ;
26984 size_t arg3 ;
26985 wxString *arg4 = 0 ;
26986 int arg5 = (int) -1 ;
26987 int arg6 = (int) -1 ;
26988 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
26989 wxTreeItemId result;
26990 bool temp4 = False ;
26991 PyObject * obj0 = 0 ;
26992 PyObject * obj1 = 0 ;
26993 PyObject * obj2 = 0 ;
26994 PyObject * obj3 = 0 ;
26995 PyObject * obj4 = 0 ;
26996 PyObject * obj5 = 0 ;
26997 PyObject * obj6 = 0 ;
26998 char *kwnames[] = {
26999 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27000 };
27001
27002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27005 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27006 SWIG_POINTER_EXCEPTION | 0)) == -1)
27007 SWIG_fail;
27008 if (arg2 == NULL) {
27009 PyErr_SetString(PyExc_TypeError,"null reference");
27010 SWIG_fail;
27011 }
27012 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
27013 if (PyErr_Occurred()) SWIG_fail;
27014 {
27015 arg4 = wxString_in_helper(obj3);
27016 if (arg4 == NULL) SWIG_fail;
27017 temp4 = True;
27018 }
27019 if (obj4) {
27020 arg5 = (int) SWIG_AsInt(obj4);
27021 if (PyErr_Occurred()) SWIG_fail;
27022 }
27023 if (obj5) {
27024 arg6 = (int) SWIG_AsInt(obj5);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 }
27027 if (obj6) {
27028 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27030 }
27031 {
27032 PyThreadState* __tstate = wxPyBeginAllowThreads();
27033 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27034
27035 wxPyEndAllowThreads(__tstate);
27036 if (PyErr_Occurred()) SWIG_fail;
27037 }
27038 {
27039 wxTreeItemId * resultptr;
27040 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27041 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27042 }
27043 {
27044 if (temp4)
27045 delete arg4;
27046 }
27047 return resultobj;
27048 fail:
27049 {
27050 if (temp4)
27051 delete arg4;
27052 }
27053 return NULL;
27054}
27055
27056
27057static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27058 PyObject *resultobj;
27059 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27060 wxTreeItemId *arg2 = 0 ;
27061 wxString *arg3 = 0 ;
27062 int arg4 = (int) -1 ;
27063 int arg5 = (int) -1 ;
27064 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27065 wxTreeItemId result;
27066 bool temp3 = False ;
27067 PyObject * obj0 = 0 ;
27068 PyObject * obj1 = 0 ;
27069 PyObject * obj2 = 0 ;
27070 PyObject * obj3 = 0 ;
27071 PyObject * obj4 = 0 ;
27072 PyObject * obj5 = 0 ;
27073 char *kwnames[] = {
27074 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27075 };
27076
27077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27080 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27081 SWIG_POINTER_EXCEPTION | 0)) == -1)
27082 SWIG_fail;
27083 if (arg2 == NULL) {
27084 PyErr_SetString(PyExc_TypeError,"null reference");
27085 SWIG_fail;
27086 }
27087 {
27088 arg3 = wxString_in_helper(obj2);
27089 if (arg3 == NULL) SWIG_fail;
27090 temp3 = True;
27091 }
27092 if (obj3) {
27093 arg4 = (int) SWIG_AsInt(obj3);
27094 if (PyErr_Occurred()) SWIG_fail;
27095 }
27096 if (obj4) {
27097 arg5 = (int) SWIG_AsInt(obj4);
27098 if (PyErr_Occurred()) SWIG_fail;
27099 }
27100 if (obj5) {
27101 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27103 }
27104 {
27105 PyThreadState* __tstate = wxPyBeginAllowThreads();
27106 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27107
27108 wxPyEndAllowThreads(__tstate);
27109 if (PyErr_Occurred()) SWIG_fail;
27110 }
27111 {
27112 wxTreeItemId * resultptr;
27113 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27115 }
27116 {
27117 if (temp3)
27118 delete arg3;
27119 }
27120 return resultobj;
27121 fail:
27122 {
27123 if (temp3)
27124 delete arg3;
27125 }
27126 return NULL;
27127}
27128
27129
27130static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
27131 PyObject *resultobj;
27132 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27133 wxTreeItemId *arg2 = 0 ;
27134 PyObject * obj0 = 0 ;
27135 PyObject * obj1 = 0 ;
27136 char *kwnames[] = {
27137 (char *) "self",(char *) "item", NULL
27138 };
27139
27140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27144 SWIG_POINTER_EXCEPTION | 0)) == -1)
27145 SWIG_fail;
27146 if (arg2 == NULL) {
27147 PyErr_SetString(PyExc_TypeError,"null reference");
27148 SWIG_fail;
27149 }
27150 {
27151 PyThreadState* __tstate = wxPyBeginAllowThreads();
27152 (arg1)->Delete((wxTreeItemId const &)*arg2);
27153
27154 wxPyEndAllowThreads(__tstate);
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 Py_INCREF(Py_None); resultobj = Py_None;
27158 return resultobj;
27159 fail:
27160 return NULL;
27161}
27162
27163
27164static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27165 PyObject *resultobj;
27166 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27167 wxTreeItemId *arg2 = 0 ;
27168 PyObject * obj0 = 0 ;
27169 PyObject * obj1 = 0 ;
27170 char *kwnames[] = {
27171 (char *) "self",(char *) "item", NULL
27172 };
27173
27174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27177 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27178 SWIG_POINTER_EXCEPTION | 0)) == -1)
27179 SWIG_fail;
27180 if (arg2 == NULL) {
27181 PyErr_SetString(PyExc_TypeError,"null reference");
27182 SWIG_fail;
27183 }
27184 {
27185 PyThreadState* __tstate = wxPyBeginAllowThreads();
27186 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27187
27188 wxPyEndAllowThreads(__tstate);
27189 if (PyErr_Occurred()) SWIG_fail;
27190 }
27191 Py_INCREF(Py_None); resultobj = Py_None;
27192 return resultobj;
27193 fail:
27194 return NULL;
27195}
27196
27197
27198static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
27199 PyObject *resultobj;
27200 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27201 PyObject * obj0 = 0 ;
27202 char *kwnames[] = {
27203 (char *) "self", NULL
27204 };
27205
27206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27209 {
27210 PyThreadState* __tstate = wxPyBeginAllowThreads();
27211 (arg1)->DeleteAllItems();
27212
27213 wxPyEndAllowThreads(__tstate);
27214 if (PyErr_Occurred()) SWIG_fail;
27215 }
27216 Py_INCREF(Py_None); resultobj = Py_None;
27217 return resultobj;
27218 fail:
27219 return NULL;
27220}
27221
27222
27223static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
27224 PyObject *resultobj;
27225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27226 wxTreeItemId *arg2 = 0 ;
27227 PyObject * obj0 = 0 ;
27228 PyObject * obj1 = 0 ;
27229 char *kwnames[] = {
27230 (char *) "self",(char *) "item", NULL
27231 };
27232
27233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27236 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27237 SWIG_POINTER_EXCEPTION | 0)) == -1)
27238 SWIG_fail;
27239 if (arg2 == NULL) {
27240 PyErr_SetString(PyExc_TypeError,"null reference");
27241 SWIG_fail;
27242 }
27243 {
27244 PyThreadState* __tstate = wxPyBeginAllowThreads();
27245 (arg1)->Expand((wxTreeItemId const &)*arg2);
27246
27247 wxPyEndAllowThreads(__tstate);
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 Py_INCREF(Py_None); resultobj = Py_None;
27251 return resultobj;
27252 fail:
27253 return NULL;
27254}
27255
27256
27257static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
27258 PyObject *resultobj;
27259 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27260 wxTreeItemId *arg2 = 0 ;
27261 PyObject * obj0 = 0 ;
27262 PyObject * obj1 = 0 ;
27263 char *kwnames[] = {
27264 (char *) "self",(char *) "item", NULL
27265 };
27266
27267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) 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 {
27278 PyThreadState* __tstate = wxPyBeginAllowThreads();
27279 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27280
27281 wxPyEndAllowThreads(__tstate);
27282 if (PyErr_Occurred()) SWIG_fail;
27283 }
27284 Py_INCREF(Py_None); resultobj = Py_None;
27285 return resultobj;
27286 fail:
27287 return NULL;
27288}
27289
27290
27291static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
27292 PyObject *resultobj;
27293 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27294 wxTreeItemId *arg2 = 0 ;
27295 PyObject * obj0 = 0 ;
27296 PyObject * obj1 = 0 ;
27297 char *kwnames[] = {
27298 (char *) "self",(char *) "item", NULL
27299 };
27300
27301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27304 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27305 SWIG_POINTER_EXCEPTION | 0)) == -1)
27306 SWIG_fail;
27307 if (arg2 == NULL) {
27308 PyErr_SetString(PyExc_TypeError,"null reference");
27309 SWIG_fail;
27310 }
27311 {
27312 PyThreadState* __tstate = wxPyBeginAllowThreads();
27313 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27314
27315 wxPyEndAllowThreads(__tstate);
27316 if (PyErr_Occurred()) SWIG_fail;
27317 }
27318 Py_INCREF(Py_None); resultobj = Py_None;
27319 return resultobj;
27320 fail:
27321 return NULL;
27322}
27323
27324
27325static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
27326 PyObject *resultobj;
27327 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27328 wxTreeItemId *arg2 = 0 ;
27329 PyObject * obj0 = 0 ;
27330 PyObject * obj1 = 0 ;
27331 char *kwnames[] = {
27332 (char *) "self",(char *) "item", NULL
27333 };
27334
27335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27338 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27339 SWIG_POINTER_EXCEPTION | 0)) == -1)
27340 SWIG_fail;
27341 if (arg2 == NULL) {
27342 PyErr_SetString(PyExc_TypeError,"null reference");
27343 SWIG_fail;
27344 }
27345 {
27346 PyThreadState* __tstate = wxPyBeginAllowThreads();
27347 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27348
27349 wxPyEndAllowThreads(__tstate);
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
27352 Py_INCREF(Py_None); resultobj = Py_None;
27353 return resultobj;
27354 fail:
27355 return NULL;
27356}
27357
27358
27359static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
27360 PyObject *resultobj;
27361 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27362 PyObject * obj0 = 0 ;
27363 char *kwnames[] = {
27364 (char *) "self", NULL
27365 };
27366
27367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27370 {
27371 PyThreadState* __tstate = wxPyBeginAllowThreads();
27372 (arg1)->Unselect();
27373
27374 wxPyEndAllowThreads(__tstate);
27375 if (PyErr_Occurred()) SWIG_fail;
27376 }
27377 Py_INCREF(Py_None); resultobj = Py_None;
27378 return resultobj;
27379 fail:
27380 return NULL;
27381}
27382
27383
27384static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27385 PyObject *resultobj;
27386 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27387 wxTreeItemId *arg2 = 0 ;
27388 PyObject * obj0 = 0 ;
27389 PyObject * obj1 = 0 ;
27390 char *kwnames[] = {
27391 (char *) "self",(char *) "item", NULL
27392 };
27393
27394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27397 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27398 SWIG_POINTER_EXCEPTION | 0)) == -1)
27399 SWIG_fail;
27400 if (arg2 == NULL) {
27401 PyErr_SetString(PyExc_TypeError,"null reference");
27402 SWIG_fail;
27403 }
27404 {
27405 PyThreadState* __tstate = wxPyBeginAllowThreads();
27406 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27407
27408 wxPyEndAllowThreads(__tstate);
27409 if (PyErr_Occurred()) SWIG_fail;
27410 }
27411 Py_INCREF(Py_None); resultobj = Py_None;
27412 return resultobj;
27413 fail:
27414 return NULL;
27415}
27416
27417
27418static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
27419 PyObject *resultobj;
27420 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27421 PyObject * obj0 = 0 ;
27422 char *kwnames[] = {
27423 (char *) "self", NULL
27424 };
27425
27426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27429 {
27430 PyThreadState* __tstate = wxPyBeginAllowThreads();
27431 (arg1)->UnselectAll();
27432
27433 wxPyEndAllowThreads(__tstate);
27434 if (PyErr_Occurred()) SWIG_fail;
27435 }
27436 Py_INCREF(Py_None); resultobj = Py_None;
27437 return resultobj;
27438 fail:
27439 return NULL;
27440}
27441
27442
27443static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27444 PyObject *resultobj;
27445 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27446 wxTreeItemId *arg2 = 0 ;
27447 bool arg3 = (bool) True ;
27448 PyObject * obj0 = 0 ;
27449 PyObject * obj1 = 0 ;
27450 PyObject * obj2 = 0 ;
27451 char *kwnames[] = {
27452 (char *) "self",(char *) "item",(char *) "select", NULL
27453 };
27454
27455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27458 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27459 SWIG_POINTER_EXCEPTION | 0)) == -1)
27460 SWIG_fail;
27461 if (arg2 == NULL) {
27462 PyErr_SetString(PyExc_TypeError,"null reference");
27463 SWIG_fail;
27464 }
27465 if (obj2) {
27466 arg3 = (bool) SWIG_AsBool(obj2);
27467 if (PyErr_Occurred()) SWIG_fail;
27468 }
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27472
27473 wxPyEndAllowThreads(__tstate);
27474 if (PyErr_Occurred()) SWIG_fail;
27475 }
27476 Py_INCREF(Py_None); resultobj = Py_None;
27477 return resultobj;
27478 fail:
27479 return NULL;
27480}
27481
27482
27483static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27484 PyObject *resultobj;
27485 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27486 wxTreeItemId *arg2 = 0 ;
27487 PyObject * obj0 = 0 ;
27488 PyObject * obj1 = 0 ;
27489 char *kwnames[] = {
27490 (char *) "self",(char *) "item", NULL
27491 };
27492
27493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27497 SWIG_POINTER_EXCEPTION | 0)) == -1)
27498 SWIG_fail;
27499 if (arg2 == NULL) {
27500 PyErr_SetString(PyExc_TypeError,"null reference");
27501 SWIG_fail;
27502 }
27503 {
27504 PyThreadState* __tstate = wxPyBeginAllowThreads();
27505 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27506
27507 wxPyEndAllowThreads(__tstate);
27508 if (PyErr_Occurred()) SWIG_fail;
27509 }
27510 Py_INCREF(Py_None); resultobj = Py_None;
27511 return resultobj;
27512 fail:
27513 return NULL;
27514}
27515
27516
27517static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
27518 PyObject *resultobj;
27519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27520 wxTreeItemId *arg2 = 0 ;
27521 PyObject * obj0 = 0 ;
27522 PyObject * obj1 = 0 ;
27523 char *kwnames[] = {
27524 (char *) "self",(char *) "item", NULL
27525 };
27526
27527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27531 SWIG_POINTER_EXCEPTION | 0)) == -1)
27532 SWIG_fail;
27533 if (arg2 == NULL) {
27534 PyErr_SetString(PyExc_TypeError,"null reference");
27535 SWIG_fail;
27536 }
27537 {
27538 PyThreadState* __tstate = wxPyBeginAllowThreads();
27539 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27540
27541 wxPyEndAllowThreads(__tstate);
27542 if (PyErr_Occurred()) SWIG_fail;
27543 }
27544 Py_INCREF(Py_None); resultobj = Py_None;
27545 return resultobj;
27546 fail:
27547 return NULL;
27548}
27549
27550
27551static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
27552 PyObject *resultobj;
27553 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27554 wxTreeItemId *arg2 = 0 ;
27555 PyObject * obj0 = 0 ;
27556 PyObject * obj1 = 0 ;
27557 char *kwnames[] = {
27558 (char *) "self",(char *) "item", NULL
27559 };
27560
27561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27565 SWIG_POINTER_EXCEPTION | 0)) == -1)
27566 SWIG_fail;
27567 if (arg2 == NULL) {
27568 PyErr_SetString(PyExc_TypeError,"null reference");
27569 SWIG_fail;
27570 }
27571 {
27572 PyThreadState* __tstate = wxPyBeginAllowThreads();
27573 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27574
27575 wxPyEndAllowThreads(__tstate);
27576 if (PyErr_Occurred()) SWIG_fail;
27577 }
27578 Py_INCREF(Py_None); resultobj = Py_None;
27579 return resultobj;
27580 fail:
27581 return NULL;
27582}
27583
27584
27585static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
27586 PyObject *resultobj;
27587 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27588 wxTreeItemId *arg2 = 0 ;
27589 PyObject * obj0 = 0 ;
27590 PyObject * obj1 = 0 ;
27591 char *kwnames[] = {
27592 (char *) "self",(char *) "item", NULL
27593 };
27594
27595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27599 SWIG_POINTER_EXCEPTION | 0)) == -1)
27600 SWIG_fail;
27601 if (arg2 == NULL) {
27602 PyErr_SetString(PyExc_TypeError,"null reference");
27603 SWIG_fail;
27604 }
27605 {
27606 PyThreadState* __tstate = wxPyBeginAllowThreads();
27607 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27608
27609 wxPyEndAllowThreads(__tstate);
27610 if (PyErr_Occurred()) SWIG_fail;
27611 }
27612 Py_INCREF(Py_None); resultobj = Py_None;
27613 return resultobj;
27614 fail:
27615 return NULL;
27616}
27617
27618
27619static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
27620 PyObject *resultobj;
27621 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27622 wxTextCtrl *result;
27623 PyObject * obj0 = 0 ;
27624 char *kwnames[] = {
27625 (char *) "self", NULL
27626 };
27627
27628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27631 {
27632 PyThreadState* __tstate = wxPyBeginAllowThreads();
27633 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27634
27635 wxPyEndAllowThreads(__tstate);
27636 if (PyErr_Occurred()) SWIG_fail;
27637 }
27638 {
412d302d 27639 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
27640 }
27641 return resultobj;
27642 fail:
27643 return NULL;
27644}
27645
27646
27647static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
27648 PyObject *resultobj;
27649 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27650 wxTreeItemId *arg2 = 0 ;
27651 PyObject * obj0 = 0 ;
27652 PyObject * obj1 = 0 ;
27653 char *kwnames[] = {
27654 (char *) "self",(char *) "item", NULL
27655 };
27656
27657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
27658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27661 SWIG_POINTER_EXCEPTION | 0)) == -1)
27662 SWIG_fail;
27663 if (arg2 == NULL) {
27664 PyErr_SetString(PyExc_TypeError,"null reference");
27665 SWIG_fail;
27666 }
27667 {
27668 PyThreadState* __tstate = wxPyBeginAllowThreads();
27669 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
27670
27671 wxPyEndAllowThreads(__tstate);
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 Py_INCREF(Py_None); resultobj = Py_None;
27675 return resultobj;
27676 fail:
27677 return NULL;
27678}
27679
27680
27681static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27682 PyObject *resultobj;
27683 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27684 wxPoint *arg2 = 0 ;
27685 int *arg3 = 0 ;
27686 wxTreeItemId result;
27687 wxPoint temp2 ;
27688 int temp3 ;
27689 PyObject * obj0 = 0 ;
27690 PyObject * obj1 = 0 ;
27691 char *kwnames[] = {
27692 (char *) "self",(char *) "point", NULL
27693 };
27694
27695 arg3 = &temp3;
27696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
27697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27699 {
27700 arg2 = &temp2;
27701 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27702 }
27703 {
27704 PyThreadState* __tstate = wxPyBeginAllowThreads();
27705 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
27706
27707 wxPyEndAllowThreads(__tstate);
27708 if (PyErr_Occurred()) SWIG_fail;
27709 }
27710 {
27711 wxTreeItemId * resultptr;
27712 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27713 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27714 }
27715 {
27716 PyObject *o = PyInt_FromLong((long) (*arg3));
27717 resultobj = t_output_helper(resultobj,o);
27718 }
27719 return resultobj;
27720 fail:
27721 return NULL;
27722}
27723
27724
27725static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
27726 PyObject *resultobj;
27727 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27728 wxTreeItemId *arg2 = 0 ;
27729 bool arg3 = (bool) False ;
27730 PyObject *result;
27731 PyObject * obj0 = 0 ;
27732 PyObject * obj1 = 0 ;
27733 PyObject * obj2 = 0 ;
27734 char *kwnames[] = {
27735 (char *) "self",(char *) "item",(char *) "textOnly", NULL
27736 };
27737
27738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
27739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27742 SWIG_POINTER_EXCEPTION | 0)) == -1)
27743 SWIG_fail;
27744 if (arg2 == NULL) {
27745 PyErr_SetString(PyExc_TypeError,"null reference");
27746 SWIG_fail;
27747 }
27748 if (obj2) {
27749 arg3 = (bool) SWIG_AsBool(obj2);
27750 if (PyErr_Occurred()) SWIG_fail;
27751 }
27752 {
27753 PyThreadState* __tstate = wxPyBeginAllowThreads();
27754 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
27755
27756 wxPyEndAllowThreads(__tstate);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 resultobj = result;
27760 return resultobj;
27761 fail:
27762 return NULL;
27763}
27764
27765
27766static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
27767 PyObject *resultobj;
27768 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
27769 wxVisualAttributes result;
27770 PyObject * obj0 = 0 ;
27771 char *kwnames[] = {
27772 (char *) "variant", NULL
27773 };
27774
27775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
27776 if (obj0) {
27777 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
27778 if (PyErr_Occurred()) SWIG_fail;
27779 }
27780 {
0439c23b 27781 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
27782 PyThreadState* __tstate = wxPyBeginAllowThreads();
27783 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
27784
27785 wxPyEndAllowThreads(__tstate);
110da5b0 27786 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
27787 }
27788 {
27789 wxVisualAttributes * resultptr;
27790 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
27791 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
27792 }
27793 return resultobj;
27794 fail:
27795 return NULL;
27796}
27797
27798
27799static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) {
27800 PyObject *obj;
27801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27802 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
27803 Py_INCREF(obj);
27804 return Py_BuildValue((char *)"");
27805}
27806static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) {
27807 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
27808 return 1;
27809}
27810
27811
27812static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
27813 PyObject *pyobj;
27814
27815 {
27816#if wxUSE_UNICODE
27817 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27818#else
27819 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
27820#endif
27821 }
27822 return pyobj;
27823}
27824
27825
27826static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27827 PyObject *resultobj;
27828 wxWindow *arg1 = (wxWindow *) 0 ;
27829 int arg2 = (int) (int)-1 ;
27830 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
27831 wxString *arg3 = (wxString *) &arg3_defvalue ;
27832 wxPoint const &arg4_defvalue = wxDefaultPosition ;
27833 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
27834 wxSize const &arg5_defvalue = wxDefaultSize ;
27835 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
27836 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27837 wxString const &arg7_defvalue = wxPyEmptyString ;
27838 wxString *arg7 = (wxString *) &arg7_defvalue ;
27839 int arg8 = (int) 0 ;
27840 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
27841 wxString *arg9 = (wxString *) &arg9_defvalue ;
27842 wxGenericDirCtrl *result;
27843 bool temp3 = False ;
27844 wxPoint temp4 ;
27845 wxSize temp5 ;
27846 bool temp7 = False ;
27847 bool temp9 = False ;
27848 PyObject * obj0 = 0 ;
27849 PyObject * obj1 = 0 ;
27850 PyObject * obj2 = 0 ;
27851 PyObject * obj3 = 0 ;
27852 PyObject * obj4 = 0 ;
27853 PyObject * obj5 = 0 ;
27854 PyObject * obj6 = 0 ;
27855 PyObject * obj7 = 0 ;
27856 PyObject * obj8 = 0 ;
27857 char *kwnames[] = {
27858 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
27859 };
27860
27861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
27862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27864 if (obj1) {
27865 arg2 = (int const) SWIG_AsInt(obj1);
27866 if (PyErr_Occurred()) SWIG_fail;
27867 }
27868 if (obj2) {
27869 {
27870 arg3 = wxString_in_helper(obj2);
27871 if (arg3 == NULL) SWIG_fail;
27872 temp3 = True;
27873 }
27874 }
27875 if (obj3) {
27876 {
27877 arg4 = &temp4;
27878 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
27879 }
27880 }
27881 if (obj4) {
27882 {
27883 arg5 = &temp5;
27884 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
27885 }
27886 }
27887 if (obj5) {
27888 arg6 = (long) SWIG_AsLong(obj5);
27889 if (PyErr_Occurred()) SWIG_fail;
27890 }
27891 if (obj6) {
27892 {
27893 arg7 = wxString_in_helper(obj6);
27894 if (arg7 == NULL) SWIG_fail;
27895 temp7 = True;
27896 }
27897 }
27898 if (obj7) {
27899 arg8 = (int) SWIG_AsInt(obj7);
27900 if (PyErr_Occurred()) SWIG_fail;
27901 }
27902 if (obj8) {
27903 {
27904 arg9 = wxString_in_helper(obj8);
27905 if (arg9 == NULL) SWIG_fail;
27906 temp9 = True;
27907 }
27908 }
27909 {
0439c23b 27910 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
27911 PyThreadState* __tstate = wxPyBeginAllowThreads();
27912 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
27913
27914 wxPyEndAllowThreads(__tstate);
110da5b0 27915 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
27916 }
27917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27918 {
27919 if (temp3)
27920 delete arg3;
27921 }
27922 {
27923 if (temp7)
27924 delete arg7;
27925 }
27926 {
27927 if (temp9)
27928 delete arg9;
27929 }
27930 return resultobj;
27931 fail:
27932 {
27933 if (temp3)
27934 delete arg3;
27935 }
27936 {
27937 if (temp7)
27938 delete arg7;
27939 }
27940 {
27941 if (temp9)
27942 delete arg9;
27943 }
27944 return NULL;
27945}
27946
27947
27948static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
27949 PyObject *resultobj;
27950 wxGenericDirCtrl *result;
27951 char *kwnames[] = {
27952 NULL
27953 };
27954
27955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
27956 {
0439c23b 27957 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
27958 PyThreadState* __tstate = wxPyBeginAllowThreads();
27959 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
27960
27961 wxPyEndAllowThreads(__tstate);
110da5b0 27962 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
27963 }
27964 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
27965 return resultobj;
27966 fail:
27967 return NULL;
27968}
27969
27970
27971static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
27972 PyObject *resultobj;
27973 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
27974 wxWindow *arg2 = (wxWindow *) 0 ;
27975 int arg3 = (int) (int)-1 ;
27976 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
27977 wxString *arg4 = (wxString *) &arg4_defvalue ;
27978 wxPoint const &arg5_defvalue = wxDefaultPosition ;
27979 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
27980 wxSize const &arg6_defvalue = wxDefaultSize ;
27981 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
27982 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
27983 wxString const &arg8_defvalue = wxPyEmptyString ;
27984 wxString *arg8 = (wxString *) &arg8_defvalue ;
27985 int arg9 = (int) 0 ;
27986 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
27987 wxString *arg10 = (wxString *) &arg10_defvalue ;
27988 bool result;
27989 bool temp4 = False ;
27990 wxPoint temp5 ;
27991 wxSize temp6 ;
27992 bool temp8 = False ;
27993 bool temp10 = False ;
27994 PyObject * obj0 = 0 ;
27995 PyObject * obj1 = 0 ;
27996 PyObject * obj2 = 0 ;
27997 PyObject * obj3 = 0 ;
27998 PyObject * obj4 = 0 ;
27999 PyObject * obj5 = 0 ;
28000 PyObject * obj6 = 0 ;
28001 PyObject * obj7 = 0 ;
28002 PyObject * obj8 = 0 ;
28003 PyObject * obj9 = 0 ;
28004 char *kwnames[] = {
28005 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28006 };
28007
28008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28011 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28013 if (obj2) {
28014 arg3 = (int const) SWIG_AsInt(obj2);
28015 if (PyErr_Occurred()) SWIG_fail;
28016 }
28017 if (obj3) {
28018 {
28019 arg4 = wxString_in_helper(obj3);
28020 if (arg4 == NULL) SWIG_fail;
28021 temp4 = True;
28022 }
28023 }
28024 if (obj4) {
28025 {
28026 arg5 = &temp5;
28027 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28028 }
28029 }
28030 if (obj5) {
28031 {
28032 arg6 = &temp6;
28033 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28034 }
28035 }
28036 if (obj6) {
28037 arg7 = (long) SWIG_AsLong(obj6);
28038 if (PyErr_Occurred()) SWIG_fail;
28039 }
28040 if (obj7) {
28041 {
28042 arg8 = wxString_in_helper(obj7);
28043 if (arg8 == NULL) SWIG_fail;
28044 temp8 = True;
28045 }
28046 }
28047 if (obj8) {
28048 arg9 = (int) SWIG_AsInt(obj8);
28049 if (PyErr_Occurred()) SWIG_fail;
28050 }
28051 if (obj9) {
28052 {
28053 arg10 = wxString_in_helper(obj9);
28054 if (arg10 == NULL) SWIG_fail;
28055 temp10 = True;
28056 }
28057 }
28058 {
28059 PyThreadState* __tstate = wxPyBeginAllowThreads();
28060 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28061
28062 wxPyEndAllowThreads(__tstate);
28063 if (PyErr_Occurred()) SWIG_fail;
28064 }
28065 {
28066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28067 }
28068 {
28069 if (temp4)
28070 delete arg4;
28071 }
28072 {
28073 if (temp8)
28074 delete arg8;
28075 }
28076 {
28077 if (temp10)
28078 delete arg10;
28079 }
28080 return resultobj;
28081 fail:
28082 {
28083 if (temp4)
28084 delete arg4;
28085 }
28086 {
28087 if (temp8)
28088 delete arg8;
28089 }
28090 {
28091 if (temp10)
28092 delete arg10;
28093 }
28094 return NULL;
28095}
28096
28097
28098static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28099 PyObject *resultobj;
28100 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28101 wxString *arg2 = 0 ;
28102 bool result;
28103 bool temp2 = False ;
28104 PyObject * obj0 = 0 ;
28105 PyObject * obj1 = 0 ;
28106 char *kwnames[] = {
28107 (char *) "self",(char *) "path", NULL
28108 };
28109
28110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28113 {
28114 arg2 = wxString_in_helper(obj1);
28115 if (arg2 == NULL) SWIG_fail;
28116 temp2 = True;
28117 }
28118 {
28119 PyThreadState* __tstate = wxPyBeginAllowThreads();
28120 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28121
28122 wxPyEndAllowThreads(__tstate);
28123 if (PyErr_Occurred()) SWIG_fail;
28124 }
28125 {
28126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28127 }
28128 {
28129 if (temp2)
28130 delete arg2;
28131 }
28132 return resultobj;
28133 fail:
28134 {
28135 if (temp2)
28136 delete arg2;
28137 }
28138 return NULL;
28139}
28140
28141
28142static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28143 PyObject *resultobj;
28144 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28145 wxString result;
28146 PyObject * obj0 = 0 ;
28147 char *kwnames[] = {
28148 (char *) "self", NULL
28149 };
28150
28151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28154 {
28155 PyThreadState* __tstate = wxPyBeginAllowThreads();
28156 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28157
28158 wxPyEndAllowThreads(__tstate);
28159 if (PyErr_Occurred()) SWIG_fail;
28160 }
28161 {
28162#if wxUSE_UNICODE
28163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28164#else
28165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28166#endif
28167 }
28168 return resultobj;
28169 fail:
28170 return NULL;
28171}
28172
28173
28174static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28175 PyObject *resultobj;
28176 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28177 wxString *arg2 = 0 ;
28178 bool temp2 = False ;
28179 PyObject * obj0 = 0 ;
28180 PyObject * obj1 = 0 ;
28181 char *kwnames[] = {
28182 (char *) "self",(char *) "path", NULL
28183 };
28184
28185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28188 {
28189 arg2 = wxString_in_helper(obj1);
28190 if (arg2 == NULL) SWIG_fail;
28191 temp2 = True;
28192 }
28193 {
28194 PyThreadState* __tstate = wxPyBeginAllowThreads();
28195 (arg1)->SetDefaultPath((wxString const &)*arg2);
28196
28197 wxPyEndAllowThreads(__tstate);
28198 if (PyErr_Occurred()) SWIG_fail;
28199 }
28200 Py_INCREF(Py_None); resultobj = Py_None;
28201 {
28202 if (temp2)
28203 delete arg2;
28204 }
28205 return resultobj;
28206 fail:
28207 {
28208 if (temp2)
28209 delete arg2;
28210 }
28211 return NULL;
28212}
28213
28214
28215static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28216 PyObject *resultobj;
28217 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28218 wxString result;
28219 PyObject * obj0 = 0 ;
28220 char *kwnames[] = {
28221 (char *) "self", NULL
28222 };
28223
28224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28227 {
28228 PyThreadState* __tstate = wxPyBeginAllowThreads();
28229 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28230
28231 wxPyEndAllowThreads(__tstate);
28232 if (PyErr_Occurred()) SWIG_fail;
28233 }
28234 {
28235#if wxUSE_UNICODE
28236 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28237#else
28238 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28239#endif
28240 }
28241 return resultobj;
28242 fail:
28243 return NULL;
28244}
28245
28246
28247static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
28248 PyObject *resultobj;
28249 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28250 wxString result;
28251 PyObject * obj0 = 0 ;
28252 char *kwnames[] = {
28253 (char *) "self", NULL
28254 };
28255
28256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28259 {
28260 PyThreadState* __tstate = wxPyBeginAllowThreads();
28261 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28262
28263 wxPyEndAllowThreads(__tstate);
28264 if (PyErr_Occurred()) SWIG_fail;
28265 }
28266 {
28267#if wxUSE_UNICODE
28268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28269#else
28270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28271#endif
28272 }
28273 return resultobj;
28274 fail:
28275 return NULL;
28276}
28277
28278
28279static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
28280 PyObject *resultobj;
28281 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28282 wxString *arg2 = 0 ;
28283 bool temp2 = False ;
28284 PyObject * obj0 = 0 ;
28285 PyObject * obj1 = 0 ;
28286 char *kwnames[] = {
28287 (char *) "self",(char *) "path", NULL
28288 };
28289
28290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28293 {
28294 arg2 = wxString_in_helper(obj1);
28295 if (arg2 == NULL) SWIG_fail;
28296 temp2 = True;
28297 }
28298 {
28299 PyThreadState* __tstate = wxPyBeginAllowThreads();
28300 (arg1)->SetPath((wxString const &)*arg2);
28301
28302 wxPyEndAllowThreads(__tstate);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 Py_INCREF(Py_None); resultobj = Py_None;
28306 {
28307 if (temp2)
28308 delete arg2;
28309 }
28310 return resultobj;
28311 fail:
28312 {
28313 if (temp2)
28314 delete arg2;
28315 }
28316 return NULL;
28317}
28318
28319
28320static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28321 PyObject *resultobj;
28322 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28323 bool arg2 ;
28324 PyObject * obj0 = 0 ;
28325 PyObject * obj1 = 0 ;
28326 char *kwnames[] = {
28327 (char *) "self",(char *) "show", NULL
28328 };
28329
28330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28333 arg2 = (bool) SWIG_AsBool(obj1);
28334 if (PyErr_Occurred()) SWIG_fail;
28335 {
28336 PyThreadState* __tstate = wxPyBeginAllowThreads();
28337 (arg1)->ShowHidden(arg2);
28338
28339 wxPyEndAllowThreads(__tstate);
28340 if (PyErr_Occurred()) SWIG_fail;
28341 }
28342 Py_INCREF(Py_None); resultobj = Py_None;
28343 return resultobj;
28344 fail:
28345 return NULL;
28346}
28347
28348
28349static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
28350 PyObject *resultobj;
28351 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28352 bool result;
28353 PyObject * obj0 = 0 ;
28354 char *kwnames[] = {
28355 (char *) "self", NULL
28356 };
28357
28358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28361 {
28362 PyThreadState* __tstate = wxPyBeginAllowThreads();
28363 result = (bool)(arg1)->GetShowHidden();
28364
28365 wxPyEndAllowThreads(__tstate);
28366 if (PyErr_Occurred()) SWIG_fail;
28367 }
28368 {
28369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28370 }
28371 return resultobj;
28372 fail:
28373 return NULL;
28374}
28375
28376
28377static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28378 PyObject *resultobj;
28379 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28380 wxString result;
28381 PyObject * obj0 = 0 ;
28382 char *kwnames[] = {
28383 (char *) "self", NULL
28384 };
28385
28386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28389 {
28390 PyThreadState* __tstate = wxPyBeginAllowThreads();
28391 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28392
28393 wxPyEndAllowThreads(__tstate);
28394 if (PyErr_Occurred()) SWIG_fail;
28395 }
28396 {
28397#if wxUSE_UNICODE
28398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28399#else
28400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28401#endif
28402 }
28403 return resultobj;
28404 fail:
28405 return NULL;
28406}
28407
28408
28409static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
28410 PyObject *resultobj;
28411 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28412 wxString *arg2 = 0 ;
28413 bool temp2 = False ;
28414 PyObject * obj0 = 0 ;
28415 PyObject * obj1 = 0 ;
28416 char *kwnames[] = {
28417 (char *) "self",(char *) "filter", NULL
28418 };
28419
28420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28423 {
28424 arg2 = wxString_in_helper(obj1);
28425 if (arg2 == NULL) SWIG_fail;
28426 temp2 = True;
28427 }
28428 {
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 (arg1)->SetFilter((wxString const &)*arg2);
28431
28432 wxPyEndAllowThreads(__tstate);
28433 if (PyErr_Occurred()) SWIG_fail;
28434 }
28435 Py_INCREF(Py_None); resultobj = Py_None;
28436 {
28437 if (temp2)
28438 delete arg2;
28439 }
28440 return resultobj;
28441 fail:
28442 {
28443 if (temp2)
28444 delete arg2;
28445 }
28446 return NULL;
28447}
28448
28449
28450static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28451 PyObject *resultobj;
28452 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28453 int result;
28454 PyObject * obj0 = 0 ;
28455 char *kwnames[] = {
28456 (char *) "self", NULL
28457 };
28458
28459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28462 {
28463 PyThreadState* __tstate = wxPyBeginAllowThreads();
28464 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28465
28466 wxPyEndAllowThreads(__tstate);
28467 if (PyErr_Occurred()) SWIG_fail;
28468 }
28469 resultobj = SWIG_FromInt((int)result);
28470 return resultobj;
28471 fail:
28472 return NULL;
28473}
28474
28475
28476static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
28477 PyObject *resultobj;
28478 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28479 int arg2 ;
28480 PyObject * obj0 = 0 ;
28481 PyObject * obj1 = 0 ;
28482 char *kwnames[] = {
28483 (char *) "self",(char *) "n", NULL
28484 };
28485
28486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28489 arg2 = (int) SWIG_AsInt(obj1);
28490 if (PyErr_Occurred()) SWIG_fail;
28491 {
28492 PyThreadState* __tstate = wxPyBeginAllowThreads();
28493 (arg1)->SetFilterIndex(arg2);
28494
28495 wxPyEndAllowThreads(__tstate);
28496 if (PyErr_Occurred()) SWIG_fail;
28497 }
28498 Py_INCREF(Py_None); resultobj = Py_None;
28499 return resultobj;
28500 fail:
28501 return NULL;
28502}
28503
28504
28505static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
28506 PyObject *resultobj;
28507 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28508 wxTreeItemId result;
28509 PyObject * obj0 = 0 ;
28510 char *kwnames[] = {
28511 (char *) "self", NULL
28512 };
28513
28514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28517 {
28518 PyThreadState* __tstate = wxPyBeginAllowThreads();
28519 result = (arg1)->GetRootId();
28520
28521 wxPyEndAllowThreads(__tstate);
28522 if (PyErr_Occurred()) SWIG_fail;
28523 }
28524 {
28525 wxTreeItemId * resultptr;
28526 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28527 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28528 }
28529 return resultobj;
28530 fail:
28531 return NULL;
28532}
28533
28534
28535static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28536 PyObject *resultobj;
28537 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28538 wxPyTreeCtrl *result;
28539 PyObject * obj0 = 0 ;
28540 char *kwnames[] = {
28541 (char *) "self", NULL
28542 };
28543
28544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
28545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28547 {
28548 PyThreadState* __tstate = wxPyBeginAllowThreads();
28549 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
28550
28551 wxPyEndAllowThreads(__tstate);
28552 if (PyErr_Occurred()) SWIG_fail;
28553 }
28554 {
412d302d 28555 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28556 }
28557 return resultobj;
28558 fail:
28559 return NULL;
28560}
28561
28562
28563static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28564 PyObject *resultobj;
28565 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28566 wxDirFilterListCtrl *result;
28567 PyObject * obj0 = 0 ;
28568 char *kwnames[] = {
28569 (char *) "self", NULL
28570 };
28571
28572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
28573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28575 {
28576 PyThreadState* __tstate = wxPyBeginAllowThreads();
28577 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
28578
28579 wxPyEndAllowThreads(__tstate);
28580 if (PyErr_Occurred()) SWIG_fail;
28581 }
28582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
28583 return resultobj;
28584 fail:
28585 return NULL;
28586}
28587
28588
28589static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) {
28590 PyObject *resultobj;
28591 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28592 wxTreeItemId arg2 ;
28593 wxString *arg3 = 0 ;
28594 bool *arg4 = 0 ;
28595 wxTreeItemId result;
28596 wxTreeItemId *argp2 ;
28597 bool temp3 = False ;
28598 bool temp4 ;
28599 PyObject * obj0 = 0 ;
28600 PyObject * obj1 = 0 ;
28601 PyObject * obj2 = 0 ;
28602 char *kwnames[] = {
28603 (char *) "self",(char *) "parentId",(char *) "path", NULL
28604 };
28605
28606 arg4 = &temp4;
28607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
28608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28610 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
28611 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
28612 arg2 = *argp2;
28613 {
28614 arg3 = wxString_in_helper(obj2);
28615 if (arg3 == NULL) SWIG_fail;
28616 temp3 = True;
28617 }
28618 {
28619 PyThreadState* __tstate = wxPyBeginAllowThreads();
28620 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
28621
28622 wxPyEndAllowThreads(__tstate);
28623 if (PyErr_Occurred()) SWIG_fail;
28624 }
28625 {
28626 wxTreeItemId * resultptr;
28627 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28628 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28629 }
28630 {
28631 PyObject *o = PyInt_FromLong((long) (*arg4));
28632 resultobj = t_output_helper(resultobj,o);
28633 }
28634 {
28635 if (temp3)
28636 delete arg3;
28637 }
28638 return resultobj;
28639 fail:
28640 {
28641 if (temp3)
28642 delete arg3;
28643 }
28644 return NULL;
28645}
28646
28647
28648static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) {
28649 PyObject *resultobj;
28650 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28651 PyObject * obj0 = 0 ;
28652 char *kwnames[] = {
28653 (char *) "self", NULL
28654 };
28655
28656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
28657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28659 {
28660 PyThreadState* __tstate = wxPyBeginAllowThreads();
28661 (arg1)->DoResize();
28662
28663 wxPyEndAllowThreads(__tstate);
28664 if (PyErr_Occurred()) SWIG_fail;
28665 }
28666 Py_INCREF(Py_None); resultobj = Py_None;
28667 return resultobj;
28668 fail:
28669 return NULL;
28670}
28671
28672
28673static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
28674 PyObject *resultobj;
28675 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28676 PyObject * obj0 = 0 ;
28677 char *kwnames[] = {
28678 (char *) "self", NULL
28679 };
28680
28681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
28682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28684 {
28685 PyThreadState* __tstate = wxPyBeginAllowThreads();
28686 (arg1)->ReCreateTree();
28687
28688 wxPyEndAllowThreads(__tstate);
28689 if (PyErr_Occurred()) SWIG_fail;
28690 }
28691 Py_INCREF(Py_None); resultobj = Py_None;
28692 return resultobj;
28693 fail:
28694 return NULL;
28695}
28696
28697
28698static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) {
28699 PyObject *obj;
28700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28701 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
28702 Py_INCREF(obj);
28703 return Py_BuildValue((char *)"");
28704}
28705static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28706 PyObject *resultobj;
28707 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28708 int arg2 = (int) (int)-1 ;
28709 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28710 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28711 wxSize const &arg4_defvalue = wxDefaultSize ;
28712 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28713 long arg5 = (long) 0 ;
28714 wxDirFilterListCtrl *result;
28715 wxPoint temp3 ;
28716 wxSize temp4 ;
28717 PyObject * obj0 = 0 ;
28718 PyObject * obj1 = 0 ;
28719 PyObject * obj2 = 0 ;
28720 PyObject * obj3 = 0 ;
28721 PyObject * obj4 = 0 ;
28722 char *kwnames[] = {
28723 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28724 };
28725
28726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28729 if (obj1) {
28730 arg2 = (int const) SWIG_AsInt(obj1);
28731 if (PyErr_Occurred()) SWIG_fail;
28732 }
28733 if (obj2) {
28734 {
28735 arg3 = &temp3;
28736 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28737 }
28738 }
28739 if (obj3) {
28740 {
28741 arg4 = &temp4;
28742 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28743 }
28744 }
28745 if (obj4) {
28746 arg5 = (long) SWIG_AsLong(obj4);
28747 if (PyErr_Occurred()) SWIG_fail;
28748 }
28749 {
0439c23b 28750 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28751 PyThreadState* __tstate = wxPyBeginAllowThreads();
28752 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
28753
28754 wxPyEndAllowThreads(__tstate);
110da5b0 28755 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28756 }
28757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28758 return resultobj;
28759 fail:
28760 return NULL;
28761}
28762
28763
28764static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
28765 PyObject *resultobj;
28766 wxDirFilterListCtrl *result;
28767 char *kwnames[] = {
28768 NULL
28769 };
28770
28771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
28772 {
0439c23b 28773 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28774 PyThreadState* __tstate = wxPyBeginAllowThreads();
28775 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
28776
28777 wxPyEndAllowThreads(__tstate);
110da5b0 28778 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28779 }
28780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
28781 return resultobj;
28782 fail:
28783 return NULL;
28784}
28785
28786
28787static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
28788 PyObject *resultobj;
28789 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28790 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
28791 int arg3 = (int) (int)-1 ;
28792 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28793 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28794 wxSize const &arg5_defvalue = wxDefaultSize ;
28795 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28796 long arg6 = (long) 0 ;
28797 bool result;
28798 wxPoint temp4 ;
28799 wxSize temp5 ;
28800 PyObject * obj0 = 0 ;
28801 PyObject * obj1 = 0 ;
28802 PyObject * obj2 = 0 ;
28803 PyObject * obj3 = 0 ;
28804 PyObject * obj4 = 0 ;
28805 PyObject * obj5 = 0 ;
28806 char *kwnames[] = {
28807 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
28808 };
28809
28810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
28811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
28814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28815 if (obj2) {
28816 arg3 = (int const) SWIG_AsInt(obj2);
28817 if (PyErr_Occurred()) SWIG_fail;
28818 }
28819 if (obj3) {
28820 {
28821 arg4 = &temp4;
28822 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28823 }
28824 }
28825 if (obj4) {
28826 {
28827 arg5 = &temp5;
28828 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28829 }
28830 }
28831 if (obj5) {
28832 arg6 = (long) SWIG_AsLong(obj5);
28833 if (PyErr_Occurred()) SWIG_fail;
28834 }
28835 {
28836 PyThreadState* __tstate = wxPyBeginAllowThreads();
28837 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
28838
28839 wxPyEndAllowThreads(__tstate);
28840 if (PyErr_Occurred()) SWIG_fail;
28841 }
28842 {
28843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28844 }
28845 return resultobj;
28846 fail:
28847 return NULL;
28848}
28849
28850
28851static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
28852 PyObject *resultobj;
28853 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
28854 wxString *arg2 = 0 ;
28855 int arg3 ;
28856 bool temp2 = False ;
28857 PyObject * obj0 = 0 ;
28858 PyObject * obj1 = 0 ;
28859 PyObject * obj2 = 0 ;
28860 char *kwnames[] = {
28861 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
28862 };
28863
28864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
28865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
28866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28867 {
28868 arg2 = wxString_in_helper(obj1);
28869 if (arg2 == NULL) SWIG_fail;
28870 temp2 = True;
28871 }
28872 arg3 = (int) SWIG_AsInt(obj2);
28873 if (PyErr_Occurred()) SWIG_fail;
28874 {
28875 PyThreadState* __tstate = wxPyBeginAllowThreads();
28876 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
28877
28878 wxPyEndAllowThreads(__tstate);
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 Py_INCREF(Py_None); resultobj = Py_None;
28882 {
28883 if (temp2)
28884 delete arg2;
28885 }
28886 return resultobj;
28887 fail:
28888 {
28889 if (temp2)
28890 delete arg2;
28891 }
28892 return NULL;
28893}
28894
28895
28896static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) {
28897 PyObject *obj;
28898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28899 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
28900 Py_INCREF(obj);
28901 return Py_BuildValue((char *)"");
28902}
28903static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28904 PyObject *resultobj;
28905 wxWindow *arg1 = (wxWindow *) 0 ;
bfddbb17 28906 int arg2 = (int) (int)-1 ;
d55e5bfc
RD
28907 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28908 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28909 wxSize const &arg4_defvalue = wxDefaultSize ;
28910 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28911 long arg5 = (long) 0 ;
28912 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28913 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28914 wxString const &arg7_defvalue = wxPyControlNameStr ;
28915 wxString *arg7 = (wxString *) &arg7_defvalue ;
28916 wxPyControl *result;
28917 wxPoint temp3 ;
28918 wxSize temp4 ;
28919 bool temp7 = False ;
28920 PyObject * obj0 = 0 ;
28921 PyObject * obj1 = 0 ;
28922 PyObject * obj2 = 0 ;
28923 PyObject * obj3 = 0 ;
28924 PyObject * obj4 = 0 ;
28925 PyObject * obj5 = 0 ;
28926 PyObject * obj6 = 0 ;
28927 char *kwnames[] = {
28928 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28929 };
28930
bfddbb17 28931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
28932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
bfddbb17
RD
28934 if (obj1) {
28935 arg2 = (int const) SWIG_AsInt(obj1);
28936 if (PyErr_Occurred()) SWIG_fail;
28937 }
d55e5bfc
RD
28938 if (obj2) {
28939 {
28940 arg3 = &temp3;
28941 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28942 }
28943 }
28944 if (obj3) {
28945 {
28946 arg4 = &temp4;
28947 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28948 }
28949 }
28950 if (obj4) {
28951 arg5 = (long) SWIG_AsLong(obj4);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 if (obj5) {
28955 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
28956 SWIG_POINTER_EXCEPTION | 0)) == -1)
28957 SWIG_fail;
28958 if (arg6 == NULL) {
28959 PyErr_SetString(PyExc_TypeError,"null reference");
28960 SWIG_fail;
28961 }
28962 }
28963 if (obj6) {
28964 {
28965 arg7 = wxString_in_helper(obj6);
28966 if (arg7 == NULL) SWIG_fail;
28967 temp7 = True;
28968 }
28969 }
28970 {
0439c23b 28971 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28972 PyThreadState* __tstate = wxPyBeginAllowThreads();
28973 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28974
28975 wxPyEndAllowThreads(__tstate);
110da5b0 28976 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28977 }
28978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
28979 {
28980 if (temp7)
28981 delete arg7;
28982 }
28983 return resultobj;
28984 fail:
28985 {
28986 if (temp7)
28987 delete arg7;
28988 }
28989 return NULL;
28990}
28991
28992
28993static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) {
28994 PyObject *resultobj;
28995 wxPyControl *result;
28996 char *kwnames[] = {
28997 NULL
28998 };
28999
29000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29001 {
0439c23b 29002 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
29003 PyThreadState* __tstate = wxPyBeginAllowThreads();
29004 result = (wxPyControl *)new wxPyControl();
29005
29006 wxPyEndAllowThreads(__tstate);
110da5b0 29007 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
29008 }
29009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29010 return resultobj;
29011 fail:
29012 return NULL;
29013}
29014
29015
29016static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
29017 PyObject *resultobj;
29018 wxPyControl *arg1 = (wxPyControl *) 0 ;
29019 PyObject *arg2 = (PyObject *) 0 ;
29020 PyObject *arg3 = (PyObject *) 0 ;
29021 PyObject * obj0 = 0 ;
29022 PyObject * obj1 = 0 ;
29023 PyObject * obj2 = 0 ;
29024 char *kwnames[] = {
29025 (char *) "self",(char *) "self",(char *) "_class", NULL
29026 };
29027
29028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29031 arg2 = obj1;
29032 arg3 = obj2;
29033 {
29034 PyThreadState* __tstate = wxPyBeginAllowThreads();
29035 (arg1)->_setCallbackInfo(arg2,arg3);
29036
29037 wxPyEndAllowThreads(__tstate);
29038 if (PyErr_Occurred()) SWIG_fail;
29039 }
29040 Py_INCREF(Py_None); resultobj = Py_None;
29041 return resultobj;
29042 fail:
29043 return NULL;
29044}
29045
29046
a5ee0656
RD
29047static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29048 PyObject *resultobj;
29049 wxPyControl *arg1 = (wxPyControl *) 0 ;
29050 wxSize *arg2 = 0 ;
29051 wxSize temp2 ;
29052 PyObject * obj0 = 0 ;
29053 PyObject * obj1 = 0 ;
29054 char *kwnames[] = {
29055 (char *) "self",(char *) "size", NULL
29056 };
29057
29058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29061 {
29062 arg2 = &temp2;
29063 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29064 }
29065 {
29066 PyThreadState* __tstate = wxPyBeginAllowThreads();
29067 (arg1)->SetBestSize((wxSize const &)*arg2);
29068
29069 wxPyEndAllowThreads(__tstate);
29070 if (PyErr_Occurred()) SWIG_fail;
29071 }
29072 Py_INCREF(Py_None); resultobj = Py_None;
29073 return resultobj;
29074 fail:
29075 return NULL;
29076}
29077
29078
d55e5bfc
RD
29079static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29080 PyObject *resultobj;
29081 wxPyControl *arg1 = (wxPyControl *) 0 ;
29082 int arg2 ;
29083 int arg3 ;
29084 int arg4 ;
29085 int arg5 ;
29086 PyObject * obj0 = 0 ;
29087 PyObject * obj1 = 0 ;
29088 PyObject * obj2 = 0 ;
29089 PyObject * obj3 = 0 ;
29090 PyObject * obj4 = 0 ;
29091 char *kwnames[] = {
29092 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29093 };
29094
29095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29098 arg2 = (int) SWIG_AsInt(obj1);
29099 if (PyErr_Occurred()) SWIG_fail;
29100 arg3 = (int) SWIG_AsInt(obj2);
29101 if (PyErr_Occurred()) SWIG_fail;
29102 arg4 = (int) SWIG_AsInt(obj3);
29103 if (PyErr_Occurred()) SWIG_fail;
29104 arg5 = (int) SWIG_AsInt(obj4);
29105 if (PyErr_Occurred()) SWIG_fail;
29106 {
29107 PyThreadState* __tstate = wxPyBeginAllowThreads();
29108 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29109
29110 wxPyEndAllowThreads(__tstate);
29111 if (PyErr_Occurred()) SWIG_fail;
29112 }
29113 Py_INCREF(Py_None); resultobj = Py_None;
29114 return resultobj;
29115 fail:
29116 return NULL;
29117}
29118
29119
29120static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29121 PyObject *resultobj;
29122 wxPyControl *arg1 = (wxPyControl *) 0 ;
29123 int arg2 ;
29124 int arg3 ;
29125 int arg4 ;
29126 int arg5 ;
29127 int arg6 = (int) wxSIZE_AUTO ;
29128 PyObject * obj0 = 0 ;
29129 PyObject * obj1 = 0 ;
29130 PyObject * obj2 = 0 ;
29131 PyObject * obj3 = 0 ;
29132 PyObject * obj4 = 0 ;
29133 PyObject * obj5 = 0 ;
29134 char *kwnames[] = {
29135 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29136 };
29137
29138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29141 arg2 = (int) SWIG_AsInt(obj1);
29142 if (PyErr_Occurred()) SWIG_fail;
29143 arg3 = (int) SWIG_AsInt(obj2);
29144 if (PyErr_Occurred()) SWIG_fail;
29145 arg4 = (int) SWIG_AsInt(obj3);
29146 if (PyErr_Occurred()) SWIG_fail;
29147 arg5 = (int) SWIG_AsInt(obj4);
29148 if (PyErr_Occurred()) SWIG_fail;
29149 if (obj5) {
29150 arg6 = (int) SWIG_AsInt(obj5);
29151 if (PyErr_Occurred()) SWIG_fail;
29152 }
29153 {
29154 PyThreadState* __tstate = wxPyBeginAllowThreads();
29155 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29156
29157 wxPyEndAllowThreads(__tstate);
29158 if (PyErr_Occurred()) SWIG_fail;
29159 }
29160 Py_INCREF(Py_None); resultobj = Py_None;
29161 return resultobj;
29162 fail:
29163 return NULL;
29164}
29165
29166
29167static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29168 PyObject *resultobj;
29169 wxPyControl *arg1 = (wxPyControl *) 0 ;
29170 int arg2 ;
29171 int arg3 ;
29172 PyObject * obj0 = 0 ;
29173 PyObject * obj1 = 0 ;
29174 PyObject * obj2 = 0 ;
29175 char *kwnames[] = {
29176 (char *) "self",(char *) "width",(char *) "height", NULL
29177 };
29178
29179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29182 arg2 = (int) SWIG_AsInt(obj1);
29183 if (PyErr_Occurred()) SWIG_fail;
29184 arg3 = (int) SWIG_AsInt(obj2);
29185 if (PyErr_Occurred()) SWIG_fail;
29186 {
29187 PyThreadState* __tstate = wxPyBeginAllowThreads();
29188 (arg1)->base_DoSetClientSize(arg2,arg3);
29189
29190 wxPyEndAllowThreads(__tstate);
29191 if (PyErr_Occurred()) SWIG_fail;
29192 }
29193 Py_INCREF(Py_None); resultobj = Py_None;
29194 return resultobj;
29195 fail:
29196 return NULL;
29197}
29198
29199
29200static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29201 PyObject *resultobj;
29202 wxPyControl *arg1 = (wxPyControl *) 0 ;
29203 int arg2 ;
29204 int arg3 ;
29205 PyObject * obj0 = 0 ;
29206 PyObject * obj1 = 0 ;
29207 PyObject * obj2 = 0 ;
29208 char *kwnames[] = {
29209 (char *) "self",(char *) "x",(char *) "y", NULL
29210 };
29211
29212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29215 arg2 = (int) SWIG_AsInt(obj1);
29216 if (PyErr_Occurred()) SWIG_fail;
29217 arg3 = (int) SWIG_AsInt(obj2);
29218 if (PyErr_Occurred()) SWIG_fail;
29219 {
29220 PyThreadState* __tstate = wxPyBeginAllowThreads();
29221 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29222
29223 wxPyEndAllowThreads(__tstate);
29224 if (PyErr_Occurred()) SWIG_fail;
29225 }
29226 Py_INCREF(Py_None); resultobj = Py_None;
29227 return resultobj;
29228 fail:
29229 return NULL;
29230}
29231
29232
29233static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29234 PyObject *resultobj;
29235 wxPyControl *arg1 = (wxPyControl *) 0 ;
29236 int *arg2 = (int *) 0 ;
29237 int *arg3 = (int *) 0 ;
29238 int temp2 ;
29239 int temp3 ;
29240 PyObject * obj0 = 0 ;
29241 char *kwnames[] = {
29242 (char *) "self", NULL
29243 };
29244
29245 arg2 = &temp2;
29246 arg3 = &temp3;
29247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29250 {
29251 PyThreadState* __tstate = wxPyBeginAllowThreads();
29252 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29253
29254 wxPyEndAllowThreads(__tstate);
29255 if (PyErr_Occurred()) SWIG_fail;
29256 }
29257 Py_INCREF(Py_None); resultobj = Py_None;
29258 {
29259 PyObject *o = PyInt_FromLong((long) (*arg2));
29260 resultobj = t_output_helper(resultobj,o);
29261 }
29262 {
29263 PyObject *o = PyInt_FromLong((long) (*arg3));
29264 resultobj = t_output_helper(resultobj,o);
29265 }
29266 return resultobj;
29267 fail:
29268 return NULL;
29269}
29270
29271
29272static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29273 PyObject *resultobj;
29274 wxPyControl *arg1 = (wxPyControl *) 0 ;
29275 int *arg2 = (int *) 0 ;
29276 int *arg3 = (int *) 0 ;
29277 int temp2 ;
29278 int temp3 ;
29279 PyObject * obj0 = 0 ;
29280 char *kwnames[] = {
29281 (char *) "self", NULL
29282 };
29283
29284 arg2 = &temp2;
29285 arg3 = &temp3;
29286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29289 {
29290 PyThreadState* __tstate = wxPyBeginAllowThreads();
29291 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29292
29293 wxPyEndAllowThreads(__tstate);
29294 if (PyErr_Occurred()) SWIG_fail;
29295 }
29296 Py_INCREF(Py_None); resultobj = Py_None;
29297 {
29298 PyObject *o = PyInt_FromLong((long) (*arg2));
29299 resultobj = t_output_helper(resultobj,o);
29300 }
29301 {
29302 PyObject *o = PyInt_FromLong((long) (*arg3));
29303 resultobj = t_output_helper(resultobj,o);
29304 }
29305 return resultobj;
29306 fail:
29307 return NULL;
29308}
29309
29310
29311static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29312 PyObject *resultobj;
29313 wxPyControl *arg1 = (wxPyControl *) 0 ;
29314 int *arg2 = (int *) 0 ;
29315 int *arg3 = (int *) 0 ;
29316 int temp2 ;
29317 int temp3 ;
29318 PyObject * obj0 = 0 ;
29319 char *kwnames[] = {
29320 (char *) "self", NULL
29321 };
29322
29323 arg2 = &temp2;
29324 arg3 = &temp3;
29325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29328 {
29329 PyThreadState* __tstate = wxPyBeginAllowThreads();
29330 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29331
29332 wxPyEndAllowThreads(__tstate);
29333 if (PyErr_Occurred()) SWIG_fail;
29334 }
29335 Py_INCREF(Py_None); resultobj = Py_None;
29336 {
29337 PyObject *o = PyInt_FromLong((long) (*arg2));
29338 resultobj = t_output_helper(resultobj,o);
29339 }
29340 {
29341 PyObject *o = PyInt_FromLong((long) (*arg3));
29342 resultobj = t_output_helper(resultobj,o);
29343 }
29344 return resultobj;
29345 fail:
29346 return NULL;
29347}
29348
29349
29350static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29351 PyObject *resultobj;
29352 wxPyControl *arg1 = (wxPyControl *) 0 ;
29353 wxSize result;
29354 PyObject * obj0 = 0 ;
29355 char *kwnames[] = {
29356 (char *) "self", NULL
29357 };
29358
29359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29362 {
29363 PyThreadState* __tstate = wxPyBeginAllowThreads();
29364 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29365
29366 wxPyEndAllowThreads(__tstate);
29367 if (PyErr_Occurred()) SWIG_fail;
29368 }
29369 {
29370 wxSize * resultptr;
29371 resultptr = new wxSize((wxSize &) result);
29372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29373 }
29374 return resultobj;
29375 fail:
29376 return NULL;
29377}
29378
29379
29380static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29381 PyObject *resultobj;
29382 wxPyControl *arg1 = (wxPyControl *) 0 ;
29383 wxSize result;
29384 PyObject * obj0 = 0 ;
29385 char *kwnames[] = {
29386 (char *) "self", NULL
29387 };
29388
29389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29392 {
29393 PyThreadState* __tstate = wxPyBeginAllowThreads();
29394 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29395
29396 wxPyEndAllowThreads(__tstate);
29397 if (PyErr_Occurred()) SWIG_fail;
29398 }
29399 {
29400 wxSize * resultptr;
29401 resultptr = new wxSize((wxSize &) result);
29402 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29403 }
29404 return resultobj;
29405 fail:
29406 return NULL;
29407}
29408
29409
29410static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
29411 PyObject *resultobj;
29412 wxPyControl *arg1 = (wxPyControl *) 0 ;
29413 PyObject * obj0 = 0 ;
29414 char *kwnames[] = {
29415 (char *) "self", NULL
29416 };
29417
29418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29421 {
29422 PyThreadState* __tstate = wxPyBeginAllowThreads();
29423 (arg1)->base_InitDialog();
29424
29425 wxPyEndAllowThreads(__tstate);
29426 if (PyErr_Occurred()) SWIG_fail;
29427 }
29428 Py_INCREF(Py_None); resultobj = Py_None;
29429 return resultobj;
29430 fail:
29431 return NULL;
29432}
29433
29434
29435static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29436 PyObject *resultobj;
29437 wxPyControl *arg1 = (wxPyControl *) 0 ;
29438 bool result;
29439 PyObject * obj0 = 0 ;
29440 char *kwnames[] = {
29441 (char *) "self", NULL
29442 };
29443
29444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29447 {
29448 PyThreadState* __tstate = wxPyBeginAllowThreads();
29449 result = (bool)(arg1)->base_TransferDataToWindow();
29450
29451 wxPyEndAllowThreads(__tstate);
29452 if (PyErr_Occurred()) SWIG_fail;
29453 }
29454 {
29455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29456 }
29457 return resultobj;
29458 fail:
29459 return NULL;
29460}
29461
29462
29463static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
29464 PyObject *resultobj;
29465 wxPyControl *arg1 = (wxPyControl *) 0 ;
29466 bool result;
29467 PyObject * obj0 = 0 ;
29468 char *kwnames[] = {
29469 (char *) "self", NULL
29470 };
29471
29472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29475 {
29476 PyThreadState* __tstate = wxPyBeginAllowThreads();
29477 result = (bool)(arg1)->base_TransferDataFromWindow();
29478
29479 wxPyEndAllowThreads(__tstate);
29480 if (PyErr_Occurred()) SWIG_fail;
29481 }
29482 {
29483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29484 }
29485 return resultobj;
29486 fail:
29487 return NULL;
29488}
29489
29490
29491static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
29492 PyObject *resultobj;
29493 wxPyControl *arg1 = (wxPyControl *) 0 ;
29494 bool result;
29495 PyObject * obj0 = 0 ;
29496 char *kwnames[] = {
29497 (char *) "self", NULL
29498 };
29499
29500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29503 {
29504 PyThreadState* __tstate = wxPyBeginAllowThreads();
29505 result = (bool)(arg1)->base_Validate();
29506
29507 wxPyEndAllowThreads(__tstate);
29508 if (PyErr_Occurred()) SWIG_fail;
29509 }
29510 {
29511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29512 }
29513 return resultobj;
29514 fail:
29515 return NULL;
29516}
29517
29518
29519static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
29520 PyObject *resultobj;
29521 wxPyControl *arg1 = (wxPyControl *) 0 ;
29522 bool result;
29523 PyObject * obj0 = 0 ;
29524 char *kwnames[] = {
29525 (char *) "self", NULL
29526 };
29527
29528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29531 {
29532 PyThreadState* __tstate = wxPyBeginAllowThreads();
29533 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29534
29535 wxPyEndAllowThreads(__tstate);
29536 if (PyErr_Occurred()) SWIG_fail;
29537 }
29538 {
29539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29540 }
29541 return resultobj;
29542 fail:
29543 return NULL;
29544}
29545
29546
29547static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
29548 PyObject *resultobj;
29549 wxPyControl *arg1 = (wxPyControl *) 0 ;
29550 bool result;
29551 PyObject * obj0 = 0 ;
29552 char *kwnames[] = {
29553 (char *) "self", NULL
29554 };
29555
29556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
29557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29559 {
29560 PyThreadState* __tstate = wxPyBeginAllowThreads();
29561 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
29562
29563 wxPyEndAllowThreads(__tstate);
29564 if (PyErr_Occurred()) SWIG_fail;
29565 }
29566 {
29567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29568 }
29569 return resultobj;
29570 fail:
29571 return NULL;
29572}
29573
29574
29575static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
29576 PyObject *resultobj;
29577 wxPyControl *arg1 = (wxPyControl *) 0 ;
29578 wxSize result;
29579 PyObject * obj0 = 0 ;
29580 char *kwnames[] = {
29581 (char *) "self", NULL
29582 };
29583
29584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
29585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29587 {
29588 PyThreadState* __tstate = wxPyBeginAllowThreads();
29589 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
29590
29591 wxPyEndAllowThreads(__tstate);
29592 if (PyErr_Occurred()) SWIG_fail;
29593 }
29594 {
29595 wxSize * resultptr;
29596 resultptr = new wxSize((wxSize &) result);
29597 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29598 }
29599 return resultobj;
29600 fail:
29601 return NULL;
29602}
29603
29604
29605static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29606 PyObject *resultobj;
29607 wxPyControl *arg1 = (wxPyControl *) 0 ;
29608 wxWindow *arg2 = (wxWindow *) 0 ;
29609 PyObject * obj0 = 0 ;
29610 PyObject * obj1 = 0 ;
29611 char *kwnames[] = {
29612 (char *) "self",(char *) "child", NULL
29613 };
29614
29615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
29616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29618 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29620 {
29621 PyThreadState* __tstate = wxPyBeginAllowThreads();
29622 (arg1)->base_AddChild(arg2);
29623
29624 wxPyEndAllowThreads(__tstate);
29625 if (PyErr_Occurred()) SWIG_fail;
29626 }
29627 Py_INCREF(Py_None); resultobj = Py_None;
29628 return resultobj;
29629 fail:
29630 return NULL;
29631}
29632
29633
29634static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
29635 PyObject *resultobj;
29636 wxPyControl *arg1 = (wxPyControl *) 0 ;
29637 wxWindow *arg2 = (wxWindow *) 0 ;
29638 PyObject * obj0 = 0 ;
29639 PyObject * obj1 = 0 ;
29640 char *kwnames[] = {
29641 (char *) "self",(char *) "child", NULL
29642 };
29643
29644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
29645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29647 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
29648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29649 {
29650 PyThreadState* __tstate = wxPyBeginAllowThreads();
29651 (arg1)->base_RemoveChild(arg2);
29652
29653 wxPyEndAllowThreads(__tstate);
29654 if (PyErr_Occurred()) SWIG_fail;
29655 }
29656 Py_INCREF(Py_None); resultobj = Py_None;
29657 return resultobj;
29658 fail:
29659 return NULL;
29660}
29661
29662
29663static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
29664 PyObject *resultobj;
29665 wxPyControl *arg1 = (wxPyControl *) 0 ;
29666 bool result;
29667 PyObject * obj0 = 0 ;
29668 char *kwnames[] = {
29669 (char *) "self", NULL
29670 };
29671
29672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
29673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29675 {
29676 PyThreadState* __tstate = wxPyBeginAllowThreads();
a5ee0656 29677 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
d55e5bfc
RD
29678
29679 wxPyEndAllowThreads(__tstate);
29680 if (PyErr_Occurred()) SWIG_fail;
29681 }
29682 {
29683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29684 }
29685 return resultobj;
29686 fail:
29687 return NULL;
29688}
29689
29690
29691static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
29692 PyObject *resultobj;
29693 wxPyControl *arg1 = (wxPyControl *) 0 ;
29694 wxColour *arg2 = 0 ;
29695 wxColour temp2 ;
29696 PyObject * obj0 = 0 ;
29697 PyObject * obj1 = 0 ;
29698 char *kwnames[] = {
29699 (char *) "self",(char *) "c", NULL
29700 };
29701
29702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
29703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29705 {
29706 arg2 = &temp2;
29707 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29708 }
29709 {
29710 PyThreadState* __tstate = wxPyBeginAllowThreads();
29711 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
29712
29713 wxPyEndAllowThreads(__tstate);
29714 if (PyErr_Occurred()) SWIG_fail;
29715 }
29716 Py_INCREF(Py_None); resultobj = Py_None;
29717 return resultobj;
29718 fail:
29719 return NULL;
29720}
29721
29722
a5ee0656
RD
29723static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
29724 PyObject *resultobj;
29725 wxPyControl *arg1 = (wxPyControl *) 0 ;
29726 wxVisualAttributes result;
29727 PyObject * obj0 = 0 ;
29728 char *kwnames[] = {
29729 (char *) "self", NULL
29730 };
29731
29732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
29733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29735 {
29736 PyThreadState* __tstate = wxPyBeginAllowThreads();
29737 result = (arg1)->base_GetDefaultAttributes();
29738
29739 wxPyEndAllowThreads(__tstate);
29740 if (PyErr_Occurred()) SWIG_fail;
29741 }
29742 {
29743 wxVisualAttributes * resultptr;
29744 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
29745 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
29746 }
29747 return resultobj;
29748 fail:
29749 return NULL;
29750}
29751
29752
d55e5bfc
RD
29753static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) {
29754 PyObject *obj;
29755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29756 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
29757 Py_INCREF(obj);
29758 return Py_BuildValue((char *)"");
29759}
29760static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
29761 PyObject *resultobj;
29762 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29763 int arg2 = (int) 0 ;
29764 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29765 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29766 wxHelpEvent *result;
29767 wxPoint temp3 ;
29768 PyObject * obj0 = 0 ;
29769 PyObject * obj1 = 0 ;
29770 PyObject * obj2 = 0 ;
29771 char *kwnames[] = {
29772 (char *) "type",(char *) "winid",(char *) "pt", NULL
29773 };
29774
29775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
29776 if (obj0) {
29777 arg1 = (wxEventType) SWIG_AsInt(obj0);
29778 if (PyErr_Occurred()) SWIG_fail;
29779 }
29780 if (obj1) {
29781 arg2 = (int) SWIG_AsInt(obj1);
29782 if (PyErr_Occurred()) SWIG_fail;
29783 }
29784 if (obj2) {
29785 {
29786 arg3 = &temp3;
29787 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29788 }
29789 }
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
29793
29794 wxPyEndAllowThreads(__tstate);
29795 if (PyErr_Occurred()) SWIG_fail;
29796 }
29797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
29798 return resultobj;
29799 fail:
29800 return NULL;
29801}
29802
29803
29804static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29805 PyObject *resultobj;
29806 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29807 wxPoint result;
29808 PyObject * obj0 = 0 ;
29809 char *kwnames[] = {
29810 (char *) "self", NULL
29811 };
29812
29813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
29814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29816 {
29817 PyThreadState* __tstate = wxPyBeginAllowThreads();
29818 result = ((wxHelpEvent const *)arg1)->GetPosition();
29819
29820 wxPyEndAllowThreads(__tstate);
29821 if (PyErr_Occurred()) SWIG_fail;
29822 }
29823 {
29824 wxPoint * resultptr;
29825 resultptr = new wxPoint((wxPoint &) result);
29826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29827 }
29828 return resultobj;
29829 fail:
29830 return NULL;
29831}
29832
29833
29834static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
29835 PyObject *resultobj;
29836 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29837 wxPoint *arg2 = 0 ;
29838 wxPoint temp2 ;
29839 PyObject * obj0 = 0 ;
29840 PyObject * obj1 = 0 ;
29841 char *kwnames[] = {
29842 (char *) "self",(char *) "pos", NULL
29843 };
29844
29845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
29846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29848 {
29849 arg2 = &temp2;
29850 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29851 }
29852 {
29853 PyThreadState* __tstate = wxPyBeginAllowThreads();
29854 (arg1)->SetPosition((wxPoint const &)*arg2);
29855
29856 wxPyEndAllowThreads(__tstate);
29857 if (PyErr_Occurred()) SWIG_fail;
29858 }
29859 Py_INCREF(Py_None); resultobj = Py_None;
29860 return resultobj;
29861 fail:
29862 return NULL;
29863}
29864
29865
29866static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29867 PyObject *resultobj;
29868 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29869 wxString *result;
29870 PyObject * obj0 = 0 ;
29871 char *kwnames[] = {
29872 (char *) "self", NULL
29873 };
29874
29875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
29876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29878 {
29879 PyThreadState* __tstate = wxPyBeginAllowThreads();
29880 {
29881 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
29882 result = (wxString *) &_result_ref;
29883 }
29884
29885 wxPyEndAllowThreads(__tstate);
29886 if (PyErr_Occurred()) SWIG_fail;
29887 }
29888 {
29889#if wxUSE_UNICODE
29890 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29891#else
29892 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29893#endif
29894 }
29895 return resultobj;
29896 fail:
29897 return NULL;
29898}
29899
29900
29901static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
29902 PyObject *resultobj;
29903 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29904 wxString *arg2 = 0 ;
29905 bool temp2 = False ;
29906 PyObject * obj0 = 0 ;
29907 PyObject * obj1 = 0 ;
29908 char *kwnames[] = {
29909 (char *) "self",(char *) "link", NULL
29910 };
29911
29912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
29913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29915 {
29916 arg2 = wxString_in_helper(obj1);
29917 if (arg2 == NULL) SWIG_fail;
29918 temp2 = True;
29919 }
29920 {
29921 PyThreadState* __tstate = wxPyBeginAllowThreads();
29922 (arg1)->SetLink((wxString const &)*arg2);
29923
29924 wxPyEndAllowThreads(__tstate);
29925 if (PyErr_Occurred()) SWIG_fail;
29926 }
29927 Py_INCREF(Py_None); resultobj = Py_None;
29928 {
29929 if (temp2)
29930 delete arg2;
29931 }
29932 return resultobj;
29933 fail:
29934 {
29935 if (temp2)
29936 delete arg2;
29937 }
29938 return NULL;
29939}
29940
29941
29942static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29943 PyObject *resultobj;
29944 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29945 wxString *result;
29946 PyObject * obj0 = 0 ;
29947 char *kwnames[] = {
29948 (char *) "self", NULL
29949 };
29950
29951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
29952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29954 {
29955 PyThreadState* __tstate = wxPyBeginAllowThreads();
29956 {
29957 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
29958 result = (wxString *) &_result_ref;
29959 }
29960
29961 wxPyEndAllowThreads(__tstate);
29962 if (PyErr_Occurred()) SWIG_fail;
29963 }
29964 {
29965#if wxUSE_UNICODE
29966 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29967#else
29968 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29969#endif
29970 }
29971 return resultobj;
29972 fail:
29973 return NULL;
29974}
29975
29976
29977static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
29978 PyObject *resultobj;
29979 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
29980 wxString *arg2 = 0 ;
29981 bool temp2 = False ;
29982 PyObject * obj0 = 0 ;
29983 PyObject * obj1 = 0 ;
29984 char *kwnames[] = {
29985 (char *) "self",(char *) "target", NULL
29986 };
29987
29988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
29989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
29990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29991 {
29992 arg2 = wxString_in_helper(obj1);
29993 if (arg2 == NULL) SWIG_fail;
29994 temp2 = True;
29995 }
29996 {
29997 PyThreadState* __tstate = wxPyBeginAllowThreads();
29998 (arg1)->SetTarget((wxString const &)*arg2);
29999
30000 wxPyEndAllowThreads(__tstate);
30001 if (PyErr_Occurred()) SWIG_fail;
30002 }
30003 Py_INCREF(Py_None); resultobj = Py_None;
30004 {
30005 if (temp2)
30006 delete arg2;
30007 }
30008 return resultobj;
30009 fail:
30010 {
30011 if (temp2)
30012 delete arg2;
30013 }
30014 return NULL;
30015}
30016
30017
30018static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) {
30019 PyObject *obj;
30020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30021 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30022 Py_INCREF(obj);
30023 return Py_BuildValue((char *)"");
30024}
30025static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30026 PyObject *resultobj;
30027 wxWindow *arg1 = (wxWindow *) NULL ;
30028 bool arg2 = (bool) True ;
30029 wxContextHelp *result;
30030 PyObject * obj0 = 0 ;
30031 PyObject * obj1 = 0 ;
30032 char *kwnames[] = {
30033 (char *) "window",(char *) "doNow", NULL
30034 };
30035
30036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30037 if (obj0) {
30038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30040 }
30041 if (obj1) {
30042 arg2 = (bool) SWIG_AsBool(obj1);
30043 if (PyErr_Occurred()) SWIG_fail;
30044 }
30045 {
0439c23b 30046 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30047 PyThreadState* __tstate = wxPyBeginAllowThreads();
30048 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30049
30050 wxPyEndAllowThreads(__tstate);
110da5b0 30051 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
30052 }
30053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30054 return resultobj;
30055 fail:
30056 return NULL;
30057}
30058
30059
30060static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30061 PyObject *resultobj;
30062 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30063 PyObject * obj0 = 0 ;
30064 char *kwnames[] = {
30065 (char *) "self", NULL
30066 };
30067
30068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30071 {
30072 PyThreadState* __tstate = wxPyBeginAllowThreads();
30073 delete arg1;
30074
30075 wxPyEndAllowThreads(__tstate);
30076 if (PyErr_Occurred()) SWIG_fail;
30077 }
30078 Py_INCREF(Py_None); resultobj = Py_None;
30079 return resultobj;
30080 fail:
30081 return NULL;
30082}
30083
30084
30085static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30086 PyObject *resultobj;
30087 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30088 wxWindow *arg2 = (wxWindow *) NULL ;
30089 bool result;
30090 PyObject * obj0 = 0 ;
30091 PyObject * obj1 = 0 ;
30092 char *kwnames[] = {
30093 (char *) "self",(char *) "window", NULL
30094 };
30095
30096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30099 if (obj1) {
30100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30102 }
30103 {
30104 PyThreadState* __tstate = wxPyBeginAllowThreads();
30105 result = (bool)(arg1)->BeginContextHelp(arg2);
30106
30107 wxPyEndAllowThreads(__tstate);
30108 if (PyErr_Occurred()) SWIG_fail;
30109 }
30110 {
30111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30112 }
30113 return resultobj;
30114 fail:
30115 return NULL;
30116}
30117
30118
30119static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30120 PyObject *resultobj;
30121 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30122 bool result;
30123 PyObject * obj0 = 0 ;
30124 char *kwnames[] = {
30125 (char *) "self", NULL
30126 };
30127
30128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30131 {
30132 PyThreadState* __tstate = wxPyBeginAllowThreads();
30133 result = (bool)(arg1)->EndContextHelp();
30134
30135 wxPyEndAllowThreads(__tstate);
30136 if (PyErr_Occurred()) SWIG_fail;
30137 }
30138 {
30139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30140 }
30141 return resultobj;
30142 fail:
30143 return NULL;
30144}
30145
30146
30147static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) {
30148 PyObject *obj;
30149 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30150 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30151 Py_INCREF(obj);
30152 return Py_BuildValue((char *)"");
30153}
30154static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
30155 PyObject *resultobj;
30156 wxWindow *arg1 = (wxWindow *) 0 ;
30157 int arg2 = (int) wxID_CONTEXT_HELP ;
30158 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30159 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30160 wxSize const &arg4_defvalue = wxDefaultSize ;
30161 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30162 long arg5 = (long) wxBU_AUTODRAW ;
30163 wxContextHelpButton *result;
30164 wxPoint temp3 ;
30165 wxSize temp4 ;
30166 PyObject * obj0 = 0 ;
30167 PyObject * obj1 = 0 ;
30168 PyObject * obj2 = 0 ;
30169 PyObject * obj3 = 0 ;
30170 PyObject * obj4 = 0 ;
30171 char *kwnames[] = {
30172 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30173 };
30174
30175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30178 if (obj1) {
30179 arg2 = (int) SWIG_AsInt(obj1);
30180 if (PyErr_Occurred()) SWIG_fail;
30181 }
30182 if (obj2) {
30183 {
30184 arg3 = &temp3;
30185 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30186 }
30187 }
30188 if (obj3) {
30189 {
30190 arg4 = &temp4;
30191 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30192 }
30193 }
30194 if (obj4) {
30195 arg5 = (long) SWIG_AsLong(obj4);
30196 if (PyErr_Occurred()) SWIG_fail;
30197 }
30198 {
0439c23b 30199 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30200 PyThreadState* __tstate = wxPyBeginAllowThreads();
30201 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30202
30203 wxPyEndAllowThreads(__tstate);
110da5b0 30204 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
30205 }
30206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30207 return resultobj;
30208 fail:
30209 return NULL;
30210}
30211
30212
30213static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) {
30214 PyObject *obj;
30215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30216 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30217 Py_INCREF(obj);
30218 return Py_BuildValue((char *)"");
30219}
30220static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
30221 PyObject *resultobj;
30222 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30223 wxHelpProvider *result;
30224 PyObject * obj0 = 0 ;
30225 char *kwnames[] = {
30226 (char *) "helpProvider", NULL
30227 };
30228
30229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30232 {
30233 PyThreadState* __tstate = wxPyBeginAllowThreads();
30234 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30235
30236 wxPyEndAllowThreads(__tstate);
30237 if (PyErr_Occurred()) SWIG_fail;
30238 }
30239 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30240 return resultobj;
30241 fail:
30242 return NULL;
30243}
30244
30245
30246static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
30247 PyObject *resultobj;
30248 wxHelpProvider *result;
30249 char *kwnames[] = {
30250 NULL
30251 };
30252
30253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30254 {
30255 PyThreadState* __tstate = wxPyBeginAllowThreads();
30256 result = (wxHelpProvider *)wxHelpProvider::Get();
30257
30258 wxPyEndAllowThreads(__tstate);
30259 if (PyErr_Occurred()) SWIG_fail;
30260 }
30261 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30262 return resultobj;
30263 fail:
30264 return NULL;
30265}
30266
30267
30268static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30269 PyObject *resultobj;
30270 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30271 wxWindow *arg2 = (wxWindow *) 0 ;
30272 wxString result;
30273 PyObject * obj0 = 0 ;
30274 PyObject * obj1 = 0 ;
30275 char *kwnames[] = {
30276 (char *) "self",(char *) "window", NULL
30277 };
30278
30279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30282 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30284 {
30285 PyThreadState* __tstate = wxPyBeginAllowThreads();
30286 result = (arg1)->GetHelp((wxWindow const *)arg2);
30287
30288 wxPyEndAllowThreads(__tstate);
30289 if (PyErr_Occurred()) SWIG_fail;
30290 }
30291 {
30292#if wxUSE_UNICODE
30293 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30294#else
30295 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30296#endif
30297 }
30298 return resultobj;
30299 fail:
30300 return NULL;
30301}
30302
30303
30304static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30305 PyObject *resultobj;
30306 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30307 wxWindow *arg2 = (wxWindow *) 0 ;
30308 bool result;
30309 PyObject * obj0 = 0 ;
30310 PyObject * obj1 = 0 ;
30311 char *kwnames[] = {
30312 (char *) "self",(char *) "window", NULL
30313 };
30314
30315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30320 {
30321 PyThreadState* __tstate = wxPyBeginAllowThreads();
30322 result = (bool)(arg1)->ShowHelp(arg2);
30323
30324 wxPyEndAllowThreads(__tstate);
30325 if (PyErr_Occurred()) SWIG_fail;
30326 }
30327 {
30328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30329 }
30330 return resultobj;
30331 fail:
30332 return NULL;
30333}
30334
30335
30336static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30337 PyObject *resultobj;
30338 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30339 wxWindow *arg2 = (wxWindow *) 0 ;
30340 wxString *arg3 = 0 ;
30341 bool temp3 = False ;
30342 PyObject * obj0 = 0 ;
30343 PyObject * obj1 = 0 ;
30344 PyObject * obj2 = 0 ;
30345 char *kwnames[] = {
30346 (char *) "self",(char *) "window",(char *) "text", NULL
30347 };
30348
30349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30354 {
30355 arg3 = wxString_in_helper(obj2);
30356 if (arg3 == NULL) SWIG_fail;
30357 temp3 = True;
30358 }
30359 {
30360 PyThreadState* __tstate = wxPyBeginAllowThreads();
30361 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30362
30363 wxPyEndAllowThreads(__tstate);
30364 if (PyErr_Occurred()) SWIG_fail;
30365 }
30366 Py_INCREF(Py_None); resultobj = Py_None;
30367 {
30368 if (temp3)
30369 delete arg3;
30370 }
30371 return resultobj;
30372 fail:
30373 {
30374 if (temp3)
30375 delete arg3;
30376 }
30377 return NULL;
30378}
30379
30380
30381static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
30382 PyObject *resultobj;
30383 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30384 int arg2 ;
30385 wxString *arg3 = 0 ;
30386 bool temp3 = False ;
30387 PyObject * obj0 = 0 ;
30388 PyObject * obj1 = 0 ;
30389 PyObject * obj2 = 0 ;
30390 char *kwnames[] = {
30391 (char *) "self",(char *) "id",(char *) "text", NULL
30392 };
30393
30394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30397 arg2 = (int) SWIG_AsInt(obj1);
30398 if (PyErr_Occurred()) SWIG_fail;
30399 {
30400 arg3 = wxString_in_helper(obj2);
30401 if (arg3 == NULL) SWIG_fail;
30402 temp3 = True;
30403 }
30404 {
30405 PyThreadState* __tstate = wxPyBeginAllowThreads();
30406 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30407
30408 wxPyEndAllowThreads(__tstate);
30409 if (PyErr_Occurred()) SWIG_fail;
30410 }
30411 Py_INCREF(Py_None); resultobj = Py_None;
30412 {
30413 if (temp3)
30414 delete arg3;
30415 }
30416 return resultobj;
30417 fail:
30418 {
30419 if (temp3)
30420 delete arg3;
30421 }
30422 return NULL;
30423}
30424
30425
30426static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30427 PyObject *resultobj;
30428 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30429 wxWindow *arg2 = (wxWindow *) 0 ;
30430 PyObject * obj0 = 0 ;
30431 PyObject * obj1 = 0 ;
30432 char *kwnames[] = {
30433 (char *) "self",(char *) "window", NULL
30434 };
30435
30436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30441 {
30442 PyThreadState* __tstate = wxPyBeginAllowThreads();
30443 (arg1)->RemoveHelp(arg2);
30444
30445 wxPyEndAllowThreads(__tstate);
30446 if (PyErr_Occurred()) SWIG_fail;
30447 }
30448 Py_INCREF(Py_None); resultobj = Py_None;
30449 return resultobj;
30450 fail:
30451 return NULL;
30452}
30453
30454
30455static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30456 PyObject *resultobj;
30457 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30458 PyObject * obj0 = 0 ;
30459 char *kwnames[] = {
30460 (char *) "self", NULL
30461 };
30462
30463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30466 {
30467 PyThreadState* __tstate = wxPyBeginAllowThreads();
30468 wxHelpProvider_Destroy(arg1);
30469
30470 wxPyEndAllowThreads(__tstate);
30471 if (PyErr_Occurred()) SWIG_fail;
30472 }
30473 Py_INCREF(Py_None); resultobj = Py_None;
30474 return resultobj;
30475 fail:
30476 return NULL;
30477}
30478
30479
30480static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) {
30481 PyObject *obj;
30482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30483 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30484 Py_INCREF(obj);
30485 return Py_BuildValue((char *)"");
30486}
30487static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
30488 PyObject *resultobj;
30489 wxSimpleHelpProvider *result;
30490 char *kwnames[] = {
30491 NULL
30492 };
30493
30494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30495 {
30496 PyThreadState* __tstate = wxPyBeginAllowThreads();
30497 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30498
30499 wxPyEndAllowThreads(__tstate);
30500 if (PyErr_Occurred()) SWIG_fail;
30501 }
30502 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30503 return resultobj;
30504 fail:
30505 return NULL;
30506}
30507
30508
30509static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) {
30510 PyObject *obj;
30511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30512 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30513 Py_INCREF(obj);
30514 return Py_BuildValue((char *)"");
30515}
30516static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30517 PyObject *resultobj;
30518 wxBitmap *arg1 = 0 ;
30519 wxCursor const &arg2_defvalue = wxNullCursor ;
30520 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30521 wxGenericDragImage *result;
30522 PyObject * obj0 = 0 ;
30523 PyObject * obj1 = 0 ;
30524 char *kwnames[] = {
30525 (char *) "image",(char *) "cursor", NULL
30526 };
30527
30528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30530 SWIG_POINTER_EXCEPTION | 0)) == -1)
30531 SWIG_fail;
30532 if (arg1 == NULL) {
30533 PyErr_SetString(PyExc_TypeError,"null reference");
30534 SWIG_fail;
30535 }
30536 if (obj1) {
30537 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30538 SWIG_POINTER_EXCEPTION | 0)) == -1)
30539 SWIG_fail;
30540 if (arg2 == NULL) {
30541 PyErr_SetString(PyExc_TypeError,"null reference");
30542 SWIG_fail;
30543 }
30544 }
30545 {
0439c23b 30546 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30547 PyThreadState* __tstate = wxPyBeginAllowThreads();
30548 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30549
30550 wxPyEndAllowThreads(__tstate);
110da5b0 30551 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
30552 }
30553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30554 return resultobj;
30555 fail:
30556 return NULL;
30557}
30558
30559
30560static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
30561 PyObject *resultobj;
30562 wxIcon *arg1 = 0 ;
30563 wxCursor const &arg2_defvalue = wxNullCursor ;
30564 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30565 wxGenericDragImage *result;
30566 PyObject * obj0 = 0 ;
30567 PyObject * obj1 = 0 ;
30568 char *kwnames[] = {
30569 (char *) "image",(char *) "cursor", NULL
30570 };
30571
30572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
30573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
30574 SWIG_POINTER_EXCEPTION | 0)) == -1)
30575 SWIG_fail;
30576 if (arg1 == NULL) {
30577 PyErr_SetString(PyExc_TypeError,"null reference");
30578 SWIG_fail;
30579 }
30580 if (obj1) {
30581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30582 SWIG_POINTER_EXCEPTION | 0)) == -1)
30583 SWIG_fail;
30584 if (arg2 == NULL) {
30585 PyErr_SetString(PyExc_TypeError,"null reference");
30586 SWIG_fail;
30587 }
30588 }
30589 {
0439c23b 30590 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30591 PyThreadState* __tstate = wxPyBeginAllowThreads();
30592 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
30593
30594 wxPyEndAllowThreads(__tstate);
110da5b0 30595 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
30596 }
30597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30598 return resultobj;
30599 fail:
30600 return NULL;
30601}
30602
30603
30604static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
30605 PyObject *resultobj;
30606 wxString *arg1 = 0 ;
30607 wxCursor const &arg2_defvalue = wxNullCursor ;
30608 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30609 wxGenericDragImage *result;
30610 bool temp1 = False ;
30611 PyObject * obj0 = 0 ;
30612 PyObject * obj1 = 0 ;
30613 char *kwnames[] = {
30614 (char *) "str",(char *) "cursor", NULL
30615 };
30616
30617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
30618 {
30619 arg1 = wxString_in_helper(obj0);
30620 if (arg1 == NULL) SWIG_fail;
30621 temp1 = True;
30622 }
30623 if (obj1) {
30624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30625 SWIG_POINTER_EXCEPTION | 0)) == -1)
30626 SWIG_fail;
30627 if (arg2 == NULL) {
30628 PyErr_SetString(PyExc_TypeError,"null reference");
30629 SWIG_fail;
30630 }
30631 }
30632 {
0439c23b 30633 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30634 PyThreadState* __tstate = wxPyBeginAllowThreads();
30635 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
30636
30637 wxPyEndAllowThreads(__tstate);
110da5b0 30638 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
30639 }
30640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30641 {
30642 if (temp1)
30643 delete arg1;
30644 }
30645 return resultobj;
30646 fail:
30647 {
30648 if (temp1)
30649 delete arg1;
30650 }
30651 return NULL;
30652}
30653
30654
30655static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30656 PyObject *resultobj;
30657 wxPyTreeCtrl *arg1 = 0 ;
30658 wxTreeItemId *arg2 = 0 ;
30659 wxGenericDragImage *result;
30660 PyObject * obj0 = 0 ;
30661 PyObject * obj1 = 0 ;
30662 char *kwnames[] = {
30663 (char *) "treeCtrl",(char *) "id", NULL
30664 };
30665
30666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
30667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
30668 SWIG_POINTER_EXCEPTION | 0)) == -1)
30669 SWIG_fail;
30670 if (arg1 == NULL) {
30671 PyErr_SetString(PyExc_TypeError,"null reference");
30672 SWIG_fail;
30673 }
30674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
30675 SWIG_POINTER_EXCEPTION | 0)) == -1)
30676 SWIG_fail;
30677 if (arg2 == NULL) {
30678 PyErr_SetString(PyExc_TypeError,"null reference");
30679 SWIG_fail;
30680 }
30681 {
0439c23b 30682 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30683 PyThreadState* __tstate = wxPyBeginAllowThreads();
30684 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
30685
30686 wxPyEndAllowThreads(__tstate);
110da5b0 30687 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
30688 }
30689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30690 return resultobj;
30691 fail:
30692 return NULL;
30693}
30694
30695
30696static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30697 PyObject *resultobj;
30698 wxPyListCtrl *arg1 = 0 ;
30699 long arg2 ;
30700 wxGenericDragImage *result;
30701 PyObject * obj0 = 0 ;
30702 PyObject * obj1 = 0 ;
30703 char *kwnames[] = {
30704 (char *) "listCtrl",(char *) "id", NULL
30705 };
30706
30707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
30708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
30709 SWIG_POINTER_EXCEPTION | 0)) == -1)
30710 SWIG_fail;
30711 if (arg1 == NULL) {
30712 PyErr_SetString(PyExc_TypeError,"null reference");
30713 SWIG_fail;
30714 }
30715 arg2 = (long) SWIG_AsLong(obj1);
30716 if (PyErr_Occurred()) SWIG_fail;
30717 {
0439c23b 30718 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30719 PyThreadState* __tstate = wxPyBeginAllowThreads();
30720 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
30721
30722 wxPyEndAllowThreads(__tstate);
110da5b0 30723 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
30724 }
30725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
30726 return resultobj;
30727 fail:
30728 return NULL;
30729}
30730
30731
30732static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
30733 PyObject *resultobj;
30734 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30735 PyObject * obj0 = 0 ;
30736 char *kwnames[] = {
30737 (char *) "self", NULL
30738 };
30739
30740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
30741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30743 {
30744 PyThreadState* __tstate = wxPyBeginAllowThreads();
30745 delete arg1;
30746
30747 wxPyEndAllowThreads(__tstate);
30748 if (PyErr_Occurred()) SWIG_fail;
30749 }
30750 Py_INCREF(Py_None); resultobj = Py_None;
30751 return resultobj;
30752 fail:
30753 return NULL;
30754}
30755
30756
30757static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30758 PyObject *resultobj;
30759 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30760 wxBitmap *arg2 = (wxBitmap *) 0 ;
30761 PyObject * obj0 = 0 ;
30762 PyObject * obj1 = 0 ;
30763 char *kwnames[] = {
30764 (char *) "self",(char *) "bitmap", NULL
30765 };
30766
30767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
30768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30770 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
30771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30772 {
30773 PyThreadState* __tstate = wxPyBeginAllowThreads();
30774 (arg1)->SetBackingBitmap(arg2);
30775
30776 wxPyEndAllowThreads(__tstate);
30777 if (PyErr_Occurred()) SWIG_fail;
30778 }
30779 Py_INCREF(Py_None); resultobj = Py_None;
30780 return resultobj;
30781 fail:
30782 return NULL;
30783}
30784
30785
30786static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30787 PyObject *resultobj;
30788 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30789 wxPoint *arg2 = 0 ;
30790 wxWindow *arg3 = (wxWindow *) 0 ;
30791 bool arg4 = (bool) False ;
30792 wxRect *arg5 = (wxRect *) NULL ;
30793 bool result;
30794 wxPoint temp2 ;
30795 PyObject * obj0 = 0 ;
30796 PyObject * obj1 = 0 ;
30797 PyObject * obj2 = 0 ;
30798 PyObject * obj3 = 0 ;
30799 PyObject * obj4 = 0 ;
30800 char *kwnames[] = {
30801 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
30802 };
30803
30804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30807 {
30808 arg2 = &temp2;
30809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30810 }
30811 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30813 if (obj3) {
30814 arg4 = (bool) SWIG_AsBool(obj3);
30815 if (PyErr_Occurred()) SWIG_fail;
30816 }
30817 if (obj4) {
30818 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
30819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30820 }
30821 {
30822 PyThreadState* __tstate = wxPyBeginAllowThreads();
30823 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
30824
30825 wxPyEndAllowThreads(__tstate);
30826 if (PyErr_Occurred()) SWIG_fail;
30827 }
30828 {
30829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30830 }
30831 return resultobj;
30832 fail:
30833 return NULL;
30834}
30835
30836
30837static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
30838 PyObject *resultobj;
30839 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30840 wxPoint *arg2 = 0 ;
30841 wxWindow *arg3 = (wxWindow *) 0 ;
30842 wxWindow *arg4 = (wxWindow *) 0 ;
30843 bool result;
30844 wxPoint temp2 ;
30845 PyObject * obj0 = 0 ;
30846 PyObject * obj1 = 0 ;
30847 PyObject * obj2 = 0 ;
30848 PyObject * obj3 = 0 ;
30849 char *kwnames[] = {
30850 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
30851 };
30852
30853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30856 {
30857 arg2 = &temp2;
30858 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30859 }
30860 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
30861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30862 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
30863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30864 {
30865 PyThreadState* __tstate = wxPyBeginAllowThreads();
30866 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
30867
30868 wxPyEndAllowThreads(__tstate);
30869 if (PyErr_Occurred()) SWIG_fail;
30870 }
30871 {
30872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30873 }
30874 return resultobj;
30875 fail:
30876 return NULL;
30877}
30878
30879
30880static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
30881 PyObject *resultobj;
30882 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30883 bool result;
30884 PyObject * obj0 = 0 ;
30885 char *kwnames[] = {
30886 (char *) "self", NULL
30887 };
30888
30889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
30890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30892 {
30893 PyThreadState* __tstate = wxPyBeginAllowThreads();
30894 result = (bool)(arg1)->EndDrag();
30895
30896 wxPyEndAllowThreads(__tstate);
30897 if (PyErr_Occurred()) SWIG_fail;
30898 }
30899 {
30900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30901 }
30902 return resultobj;
30903 fail:
30904 return NULL;
30905}
30906
30907
30908static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
30909 PyObject *resultobj;
30910 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30911 wxPoint *arg2 = 0 ;
30912 bool result;
30913 wxPoint temp2 ;
30914 PyObject * obj0 = 0 ;
30915 PyObject * obj1 = 0 ;
30916 char *kwnames[] = {
30917 (char *) "self",(char *) "pt", NULL
30918 };
30919
30920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
30921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30923 {
30924 arg2 = &temp2;
30925 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30926 }
30927 {
30928 PyThreadState* __tstate = wxPyBeginAllowThreads();
30929 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
30930
30931 wxPyEndAllowThreads(__tstate);
30932 if (PyErr_Occurred()) SWIG_fail;
30933 }
30934 {
30935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30936 }
30937 return resultobj;
30938 fail:
30939 return NULL;
30940}
30941
30942
30943static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
30944 PyObject *resultobj;
30945 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30946 bool result;
30947 PyObject * obj0 = 0 ;
30948 char *kwnames[] = {
30949 (char *) "self", NULL
30950 };
30951
30952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
30953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30955 {
30956 PyThreadState* __tstate = wxPyBeginAllowThreads();
30957 result = (bool)(arg1)->Show();
30958
30959 wxPyEndAllowThreads(__tstate);
30960 if (PyErr_Occurred()) SWIG_fail;
30961 }
30962 {
30963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30964 }
30965 return resultobj;
30966 fail:
30967 return NULL;
30968}
30969
30970
30971static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
30972 PyObject *resultobj;
30973 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
30974 bool result;
30975 PyObject * obj0 = 0 ;
30976 char *kwnames[] = {
30977 (char *) "self", NULL
30978 };
30979
30980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
30981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
30982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30983 {
30984 PyThreadState* __tstate = wxPyBeginAllowThreads();
30985 result = (bool)(arg1)->Hide();
30986
30987 wxPyEndAllowThreads(__tstate);
30988 if (PyErr_Occurred()) SWIG_fail;
30989 }
30990 {
30991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30992 }
30993 return resultobj;
30994 fail:
30995 return NULL;
30996}
30997
30998
30999static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
31000 PyObject *resultobj;
31001 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31002 wxPoint *arg2 = 0 ;
31003 wxRect result;
31004 wxPoint temp2 ;
31005 PyObject * obj0 = 0 ;
31006 PyObject * obj1 = 0 ;
31007 char *kwnames[] = {
31008 (char *) "self",(char *) "pos", NULL
31009 };
31010
31011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31014 {
31015 arg2 = &temp2;
31016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31017 }
31018 {
31019 PyThreadState* __tstate = wxPyBeginAllowThreads();
31020 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31021
31022 wxPyEndAllowThreads(__tstate);
31023 if (PyErr_Occurred()) SWIG_fail;
31024 }
31025 {
31026 wxRect * resultptr;
31027 resultptr = new wxRect((wxRect &) result);
31028 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31029 }
31030 return resultobj;
31031 fail:
31032 return NULL;
31033}
31034
31035
31036static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
31037 PyObject *resultobj;
31038 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31039 wxDC *arg2 = 0 ;
31040 wxPoint *arg3 = 0 ;
31041 bool result;
31042 wxPoint temp3 ;
31043 PyObject * obj0 = 0 ;
31044 PyObject * obj1 = 0 ;
31045 PyObject * obj2 = 0 ;
31046 char *kwnames[] = {
31047 (char *) "self",(char *) "dc",(char *) "pos", NULL
31048 };
31049
31050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31054 SWIG_POINTER_EXCEPTION | 0)) == -1)
31055 SWIG_fail;
31056 if (arg2 == NULL) {
31057 PyErr_SetString(PyExc_TypeError,"null reference");
31058 SWIG_fail;
31059 }
31060 {
31061 arg3 = &temp3;
31062 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31063 }
31064 {
31065 PyThreadState* __tstate = wxPyBeginAllowThreads();
31066 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31067
31068 wxPyEndAllowThreads(__tstate);
31069 if (PyErr_Occurred()) SWIG_fail;
31070 }
31071 {
31072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31073 }
31074 return resultobj;
31075 fail:
31076 return NULL;
31077}
31078
31079
31080static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
31081 PyObject *resultobj;
31082 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31083 wxDC *arg2 = 0 ;
31084 wxMemoryDC *arg3 = 0 ;
31085 wxRect *arg4 = 0 ;
31086 wxRect *arg5 = 0 ;
31087 bool result;
31088 wxRect temp4 ;
31089 wxRect temp5 ;
31090 PyObject * obj0 = 0 ;
31091 PyObject * obj1 = 0 ;
31092 PyObject * obj2 = 0 ;
31093 PyObject * obj3 = 0 ;
31094 PyObject * obj4 = 0 ;
31095 char *kwnames[] = {
31096 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31097 };
31098
31099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31103 SWIG_POINTER_EXCEPTION | 0)) == -1)
31104 SWIG_fail;
31105 if (arg2 == NULL) {
31106 PyErr_SetString(PyExc_TypeError,"null reference");
31107 SWIG_fail;
31108 }
31109 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31110 SWIG_POINTER_EXCEPTION | 0)) == -1)
31111 SWIG_fail;
31112 if (arg3 == NULL) {
31113 PyErr_SetString(PyExc_TypeError,"null reference");
31114 SWIG_fail;
31115 }
31116 {
31117 arg4 = &temp4;
31118 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31119 }
31120 {
31121 arg5 = &temp5;
31122 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31123 }
31124 {
31125 PyThreadState* __tstate = wxPyBeginAllowThreads();
31126 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31127
31128 wxPyEndAllowThreads(__tstate);
31129 if (PyErr_Occurred()) SWIG_fail;
31130 }
31131 {
31132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31133 }
31134 return resultobj;
31135 fail:
31136 return NULL;
31137}
31138
31139
31140static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
31141 PyObject *resultobj;
31142 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31143 wxPoint *arg2 = 0 ;
31144 wxPoint *arg3 = 0 ;
31145 bool arg4 ;
31146 bool arg5 ;
31147 bool result;
31148 wxPoint temp2 ;
31149 wxPoint temp3 ;
31150 PyObject * obj0 = 0 ;
31151 PyObject * obj1 = 0 ;
31152 PyObject * obj2 = 0 ;
31153 PyObject * obj3 = 0 ;
31154 PyObject * obj4 = 0 ;
31155 char *kwnames[] = {
31156 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31157 };
31158
31159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31162 {
31163 arg2 = &temp2;
31164 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31165 }
31166 {
31167 arg3 = &temp3;
31168 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31169 }
31170 arg4 = (bool) SWIG_AsBool(obj3);
31171 if (PyErr_Occurred()) SWIG_fail;
31172 arg5 = (bool) SWIG_AsBool(obj4);
31173 if (PyErr_Occurred()) SWIG_fail;
31174 {
31175 PyThreadState* __tstate = wxPyBeginAllowThreads();
31176 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31177
31178 wxPyEndAllowThreads(__tstate);
31179 if (PyErr_Occurred()) SWIG_fail;
31180 }
31181 {
31182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31183 }
31184 return resultobj;
31185 fail:
31186 return NULL;
31187}
31188
31189
31190static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
31191 PyObject *obj;
31192 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31193 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31194 Py_INCREF(obj);
31195 return Py_BuildValue((char *)"");
31196}
31197static PyMethodDef SwigMethods[] = {
31198 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS },
31199 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS },
31200 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS },
31201 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS },
31202 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31203 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31204 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS },
31205 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS },
31206 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS },
31207 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
31208 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31209 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31210 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31211 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31212 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
31213 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
31214 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
31215 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
31216 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
31217 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
31218 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
31219 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS },
31220 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS },
31221 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS },
31222 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS },
31223 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31224 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31225 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31226 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
31227 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
31228 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
31229 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31230 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31231 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS },
31232 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS },
31233 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS },
31234 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS },
31235 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS },
31236 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31237 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31238 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31239 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS },
31240 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS },
31241 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS },
31242 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS },
31243 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
31244 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
31245 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
31246 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
31247 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
31248 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31249 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31250 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31251 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
31252 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31253 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
121b9a67
RD
31254 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31255 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31256 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
31257 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31258 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31259 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31260 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS },
31261 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS },
31262 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS },
31263 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS },
31264 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS },
31265 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS },
31266 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS },
31267 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS },
31268 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
31269 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31270 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
31271 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
31272 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31273 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31274 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS },
31275 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS },
31276 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS },
31277 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31278 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31279 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS },
31280 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS },
31281 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS },
31282 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS },
31283 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS },
31284 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31285 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31286 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS },
31287 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS },
31288 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS },
31289 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31290 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31291 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS },
31292 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS },
31293 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
31294 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
31295 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31296 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
31297 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31298 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31299 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS },
31300 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS },
31301 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS },
31302 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS },
31303 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS },
31304 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
31305 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS },
31306 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
31307 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31308 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS },
31309 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
31310 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS },
31311 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31312 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
31313 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
31314 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
31315 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31316 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS },
31317 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS },
31318 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS },
31319 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31320 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31321 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31322 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS },
31323 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS },
31324 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS },
31325 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
31326 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
31327 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
31328 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
31329 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
31330 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS },
908b74cd 31331 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31332 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS },
31333 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS },
31334 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31335 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31336 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31337 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
31338 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
31339 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
31340 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
31341 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
31342 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31343 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31344 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31345 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
31346 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
31347 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
31348 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
31349 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
31350 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31351 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31352 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31353 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
31354 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
31355 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
68e533f8 31356 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31357 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
31358 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
31359 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
31360 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
31361 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS },
31362 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS },
31363 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS },
31364 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31365 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31366 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31367 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
31368 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
31369 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
31370 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
31371 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
31372 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
31373 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
31374 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
31375 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31376 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31377 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
31378 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
31379 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
31380 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
31381 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
31382 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
31383 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
31384 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
31385 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
31386 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
31387 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
31388 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
31389 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
31390 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31391 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
31392 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
31393 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
31394 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
31395 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
4896ac9e 31396 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31397 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
31398 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
31399 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
31400 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
31401 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
31402 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
31403 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
31404 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
31405 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
31406 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
31407 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31408 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
31409 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
31410 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
31411 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31412 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
31413 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
31414 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS },
31415 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31416 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31417 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS },
31418 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS },
31419 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS },
31420 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS },
31421 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS },
31422 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS },
31423 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS },
31424 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS },
31425 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
31426 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31427 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
31428 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31429 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
31430 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
31431 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
31432 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31433 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31434 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS },
31435 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS },
31436 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS },
31437 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS },
31438 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31439 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
31440 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
31441 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31442 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS },
31443 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS },
31444 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
31445 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31446 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31447 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS },
31448 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS },
31449 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
31450 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31451 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
31452 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
31453 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS },
31454 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
31455 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
31456 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
31457 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31458 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31459 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS },
31460 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS },
31461 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31462 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31463 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS },
31464 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS },
31465 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS },
31466 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS },
31467 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
31468 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
31469 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
31470 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
31471 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
31472 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
31473 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
31474 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
31475 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
31476 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
31477 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31478 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31479 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31480 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31481 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS },
31482 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS },
31483 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS },
31484 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS },
31485 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31486 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31487 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31488 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS },
31489 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS },
31490 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS },
31491 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS },
31492 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS },
31493 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS },
31494 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS },
31495 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS },
31496 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS },
31497 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS },
31498 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS },
31499 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
31500 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31501 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
31502 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
31503 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
31504 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
31505 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
31506 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
31507 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
31508 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS },
31509 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS },
31510 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
31511 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
31512 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31513 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31514 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS },
31515 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS },
31516 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS },
121b9a67
RD
31517 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
31518 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
31519 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
31520 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31521 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31522 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS },
31523 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS },
31524 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS },
31525 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31526 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS },
31527 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS },
31528 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31529 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31530 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31531 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS },
31532 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS },
31533 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS },
31534 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
31535 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS },
31536 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS },
31537 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS },
31538 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS },
31539 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS },
31540 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
31541 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31542 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31543 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS },
31544 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS },
31545 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
31546 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS },
31547 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS },
31548 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS },
31549 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS },
31550 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS },
31551 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS },
31552 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS },
31553 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS },
31554 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS },
31555 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS },
31556 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS },
31557 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31558 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31559 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS },
31560 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS },
31561 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS },
31562 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS },
31563 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS },
31564 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS },
31565 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS },
31566 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS },
31567 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS },
31568 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS },
31569 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS },
31570 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31571 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31572 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS },
31573 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS },
31574 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS },
31575 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
31576 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
31577 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
31578 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS },
31579 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
31580 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
31581 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
31582 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
31583 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
31584 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
31585 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
31586 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS },
31587 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
31588 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
31589 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
31590 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31591 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31592 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
31593 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
31594 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
31595 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
31596 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
31597 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
31598 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31599 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
31600 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
31601 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
31602 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
31603 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
31604 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
31605 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
31606 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
31607 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
31608 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS },
31609 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
31610 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
31611 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS },
31612 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS },
31613 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
31614 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
31615 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
31616 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
31617 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
31618 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
31619 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
31620 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
31621 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
31622 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
31623 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
31624 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
31625 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
31626 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
31627 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
31628 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS },
31629 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
31630 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
31631 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31632 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
31633 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31634 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
31635 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
31636 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
31637 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
31638 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31639 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
31640 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
31641 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
31642 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
31643 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
31644 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
31645 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
31646 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
31647 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31648 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
31649 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
31650 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
31651 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS },
31652 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
31653 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS },
31654 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS },
31655 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS },
31656 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS },
31657 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
f20a2e1f 31658 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31659 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS },
31660 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS },
31661 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31662 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31663 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
31664 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
31665 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31666 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
31667 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31668 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31669 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
31670 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS },
31671 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS },
31672 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS },
31673 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS },
31674 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS },
31675 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
31676 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
31677 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS },
31678 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
31679 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS },
31680 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
31681 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS },
31682 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
31683 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS },
31684 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
31685 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
31686 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31687 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31688 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
31689 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
31690 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS },
31691 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
31692 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS },
31693 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS },
31694 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
31695 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS },
31696 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
31697 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
31698 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
31699 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
31700 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31701 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31702 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
31703 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
31704 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
31705 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
31706 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
31707 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
31708 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
31709 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
31710 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
31711 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
31712 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
31713 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
31714 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
31715 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
31716 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
31717 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
31718 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
31719 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
31720 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
31721 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
31722 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
31723 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS },
31724 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS },
31725 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
31726 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
31727 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
31728 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
31729 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
31730 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
31731 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
31732 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
31733 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
31734 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
31735 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
31736 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31737 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
31738 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
31739 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31740 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31741 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
31742 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
31743 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
31744 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
31745 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31746 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
31747 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
31748 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31749 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31750 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS },
31751 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS },
31752 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS },
31753 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31754 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31755 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
31756 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31757 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
31758 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
31759 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31760 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
31761 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
31762 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS },
31763 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
31764 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
31765 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
31766 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
31767 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
31768 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31769 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31770 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31771 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31772 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31773 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
31774 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
31775 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
31776 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
31777 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
31778 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31779 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS },
31780 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
31781 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
31782 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
31783 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
31784 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
31785 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
31786 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
31787 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31788 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31789 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31790 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS },
31791 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
31792 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
31793 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
31794 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
31795 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
31796 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31797 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
31798 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
31799 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
31800 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31801 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31802 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
31803 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
31804 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
31805 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31806 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31807 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
31808 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
31809 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
31810 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
31811 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
31812 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
31813 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
31814 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31815 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31816 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31817 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31818 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
31819 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
31820 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31821 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS },
31822 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS },
31823 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS },
31824 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS },
31825 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS },
31826 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS },
31827 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
31828 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
31829 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
31830 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
31831 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
31832 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
31833 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS },
31834 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31835 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS },
31836 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
31837 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS },
31838 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS },
31839 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS },
31840 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS },
31841 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS },
31842 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS },
31843 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
31844 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
31845 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
31846 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
31847 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS },
31848 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS },
31849 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS },
31850 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
31851 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
31852 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
31853 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
31854 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
31855 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
31856 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31857 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
31858 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
31859 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
31860 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
31861 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
31862 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
31863 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS },
31864 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS },
31865 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS },
31866 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31867 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31868 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
31869 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
31870 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
31871 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
31872 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
31873 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
31874 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
31875 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
31876 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
31877 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
31878 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
31879 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
31880 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
31881 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
31882 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
31883 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS },
31884 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31885 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31886 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
31887 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
31888 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
31889 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
31890 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS },
31891 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31892 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
31893 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
31894 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
31895 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
31896 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
31897 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
31898 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
31899 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
31900 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
31901 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
31902 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
31903 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
31904 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
31905 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
31906 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
31907 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
31908 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
31909 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
31910 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
31911 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
31912 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
31913 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
31914 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
31915 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
31916 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
31917 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
31918 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
31919 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
31920 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
31921 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
31922 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
31923 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
31924 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
31925 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
31926 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
31927 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
31928 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
31929 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
31930 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
31931 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
31932 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
31933 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
31934 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
31935 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
31936 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
31937 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
31938 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
31939 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS },
31940 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31941 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
31942 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31943 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
31944 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31945 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
31946 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
31947 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
31948 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
31949 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
31950 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
31951 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
31952 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
31953 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31954 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
31955 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
31956 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
31957 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31958 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS },
31959 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS },
31960 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
31961 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS },
31962 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31963 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
31964 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
31965 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
31966 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS },
31967 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS },
31968 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS },
31969 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
a5ee0656 31970 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31971 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS },
31972 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS },
31973 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS },
31974 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31975 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS },
31976 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS },
31977 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS },
31978 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS },
31979 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS },
31980 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS },
31981 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
31982 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
31983 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS },
31984 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
31985 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
31986 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
31987 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS },
31988 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS },
31989 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
31990 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS },
a5ee0656 31991 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
31992 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS },
31993 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS },
31994 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
31995 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
31996 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
31997 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
31998 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
31999 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
32000 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS },
32001 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS },
32002 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS },
32003 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
32004 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
32005 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS },
32006 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS },
32007 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS },
32008 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
32009 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
32010 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
32011 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
32012 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
32013 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
32014 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS },
32015 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
32016 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS },
32017 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
32018 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS },
32019 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
32020 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
32021 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
32022 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
32023 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
32024 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
32025 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
32026 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
32027 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
32028 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
32029 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
32030 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
32031 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
32032 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
32033 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
32034 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
32035 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
32036 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
32037 { NULL, NULL }
32038};
32039
32040
32041/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32042
32043static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32044 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32045}
32046static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32047 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32048}
32049static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32050 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32051}
32052static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32053 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32054}
32055static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32056 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32057}
32058static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32059 return (void *)((wxSizer *) ((wxGridSizer *) x));
32060}
32061static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32062 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32063}
32064static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32065 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32066}
32067static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32068 return (void *)((wxSizer *) ((wxPySizer *) x));
32069}
32070static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32071 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32072}
32073static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32074 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32075}
32076static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32077 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32078}
32079static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32080 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32081}
32082static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32083 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32084}
32085static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32086 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32087}
32088static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32089 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32090}
32091static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32092 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32093}
32094static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32095 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32096}
32097static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32098 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32099}
32100static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32101 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32102}
32103static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32104 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32105}
32106static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32107 return (void *)((wxEvent *) ((wxPyEvent *) x));
32108}
32109static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32110 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32111}
32112static void *_p_wxListEventTo_p_wxEvent(void *x) {
32113 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32114}
32115static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32116 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32117}
32118static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32119 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32120}
32121static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32122 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32123}
32124static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32125 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32126}
32127static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32128 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32129}
32130static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32131 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32132}
32133static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32134 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32135}
32136static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32137 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32138}
32139static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32140 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32141}
32142static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32143 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32144}
32145static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32146 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32147}
32148static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32149 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32150}
32151static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32152 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32153}
32154static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32155 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32156}
32157static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32158 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32159}
32160static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32161 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32162}
32163static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32164 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32165}
32166static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32167 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32168}
32169static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32170 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32171}
32172static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32173 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32174}
32175static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32176 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32177}
32178static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32179 return (void *)((wxEvent *) ((wxShowEvent *) x));
32180}
32181static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32182 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32183}
32184static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32185 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32186}
32187static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32188 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32189}
32190static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32191 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32192}
32193static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32194 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32195}
32196static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32197 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32198}
32199static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32200 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32201}
32202static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32203 return (void *)((wxItemContainer *) ((wxComboBox *) x));
32204}
32205static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32206 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32207}
32208static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32209 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32210}
32211static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32212 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32213}
32214static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32215 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32216}
32217static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32218 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32219}
32220static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32221 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32222}
32223static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32224 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32225}
32226static void *_p_wxListBoxTo_p_wxControl(void *x) {
32227 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32228}
32229static void *_p_wxChoiceTo_p_wxControl(void *x) {
32230 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32231}
32232static void *_p_wxToolBarTo_p_wxControl(void *x) {
32233 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32234}
32235static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32236 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32237}
32238static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32239 return (void *)((wxControl *) ((wxComboBox *) x));
32240}
32241static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32242 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32243}
32244static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32245 return (void *)((wxControl *) ((wxStaticBox *) x));
32246}
32247static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32248 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32249}
32250static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32251 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32252}
32253static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32254 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32255}
32256static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32257 return (void *)((wxControl *) ((wxScrollBar *) x));
32258}
32259static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32260 return (void *)((wxControl *) ((wxBookCtrl *) x));
32261}
32262static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32263 return (void *)((wxControl *) ((wxRadioButton *) x));
32264}
32265static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32266 return (void *)((wxControl *) ((wxToggleButton *) x));
32267}
32268static void *_p_wxGaugeTo_p_wxControl(void *x) {
32269 return (void *)((wxControl *) ((wxGauge *) x));
32270}
32271static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32272 return (void *)((wxControl *) ((wxToolBarBase *) x));
32273}
32274static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32275 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32276}
32277static void *_p_wxButtonTo_p_wxControl(void *x) {
32278 return (void *)((wxControl *) ((wxButton *) x));
32279}
32280static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32281 return (void *)((wxControl *) ((wxSpinButton *) x));
32282}
32283static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32284 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32285}
32286static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32287 return (void *)((wxControl *) ((wxControlWithItems *) x));
32288}
32289static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32290 return (void *)((wxControl *) ((wxRadioBox *) x));
32291}
32292static void *_p_wxNotebookTo_p_wxControl(void *x) {
32293 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32294}
32295static void *_p_wxListbookTo_p_wxControl(void *x) {
32296 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32297}
32298static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32299 return (void *)((wxControl *) ((wxCheckBox *) x));
32300}
32301static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32302 return (void *)((wxControl *) ((wxTextCtrl *) x));
32303}
32304static void *_p_wxListViewTo_p_wxControl(void *x) {
32305 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32306}
32307static void *_p_wxSliderTo_p_wxControl(void *x) {
32308 return (void *)((wxControl *) ((wxSlider *) x));
32309}
32310static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32311 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32312}
32313static void *_p_wxPyControlTo_p_wxControl(void *x) {
32314 return (void *)((wxControl *) ((wxPyControl *) x));
32315}
32316static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32317 return (void *)((wxControl *) ((wxStaticLine *) x));
32318}
32319static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32320 return (void *)((wxControl *) ((wxStaticText *) x));
32321}
32322static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32323 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32324}
32325static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32326 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32327}
32328static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32329 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32330}
32331static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32332 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32333}
32334static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32335 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32336}
32337static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32338 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32339}
32340static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32341 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32342}
32343static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32344 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32345}
32346static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32347 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32348}
32349static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32350 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32351}
32352static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32353 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32354}
32355static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32356 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32357}
32358static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32359 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32360}
32361static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32362 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32363}
32364static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32365 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32366}
32367static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32368 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32369}
32370static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32371 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32372}
32373static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32374 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32375}
32376static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32377 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32378}
32379static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32380 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32381}
32382static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32383 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
32384}
32385static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32386 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32387}
32388static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32389 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32390}
32391static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32392 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32393}
32394static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32395 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32396}
32397static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32398 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32399}
32400static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32401 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32402}
32403static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32404 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32405}
32406static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32407 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32408}
32409static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32410 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32411}
32412static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32413 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32414}
32415static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32416 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32417}
32418static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32419 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32420}
32421static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32422 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32423}
32424static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32425 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32426}
32427static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32428 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32429}
32430static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32431 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32432}
32433static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32434 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32435}
32436static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32437 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32438}
32439static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32440 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32441}
32442static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32443 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32444}
32445static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32446 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32447}
32448static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32449 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32450}
32451static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32452 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32453}
32454static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32455 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32456}
32457static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32458 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32459}
32460static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32461 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32462}
32463static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32464 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32465}
32466static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32467 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32468}
32469static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32470 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32471}
32472static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32473 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32474}
32475static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32476 return (void *)((wxButton *) ((wxBitmapButton *) x));
32477}
32478static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32479 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32480}
32481static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32482 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32483}
32484static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32485 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32486}
32487static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32488 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32489}
32490static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32491 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32492}
32493static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32494 return (void *)((wxObject *) ((wxSizerItem *) x));
32495}
32496static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32497 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32498}
32499static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32500 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32501}
32502static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32503 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32504}
32505static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32506 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32507}
32508static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32509 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32510}
32511static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32512 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32513}
32514static void *_p_wxSizerTo_p_wxObject(void *x) {
32515 return (void *)((wxObject *) ((wxSizer *) x));
32516}
32517static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32518 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32519}
32520static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32521 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32522}
32523static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32524 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32525}
32526static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32527 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32528}
32529static void *_p_wxEventTo_p_wxObject(void *x) {
32530 return (void *)((wxObject *) ((wxEvent *) x));
32531}
32532static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32533 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32534}
32535static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32536 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32537}
32538static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
32539 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
32540}
32541static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
32542 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32543}
32544static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
32545 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32546}
32547static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
32548 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32549}
32550static void *_p_wxPaintEventTo_p_wxObject(void *x) {
32551 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
32552}
32553static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
32554 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
32555}
32556static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
32557 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
32558}
32559static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
32560 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
32561}
32562static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
32563 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32564}
32565static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
32566 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
32567}
32568static void *_p_wxStaticLineTo_p_wxObject(void *x) {
32569 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
32570}
32571static void *_p_wxControlTo_p_wxObject(void *x) {
32572 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
32573}
32574static void *_p_wxPyControlTo_p_wxObject(void *x) {
32575 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
32576}
32577static void *_p_wxGaugeTo_p_wxObject(void *x) {
32578 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
32579}
32580static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
32581 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
32582}
32583static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
32584 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
32585}
32586static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
32587 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32588}
32589static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
32590 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
32591}
32592static void *_p_wxChoiceTo_p_wxObject(void *x) {
32593 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32594}
32595static void *_p_wxFSFileTo_p_wxObject(void *x) {
32596 return (void *)((wxObject *) ((wxFSFile *) x));
32597}
32598static void *_p_wxPySizerTo_p_wxObject(void *x) {
32599 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
32600}
32601static void *_p_wxListViewTo_p_wxObject(void *x) {
32602 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32603}
32604static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
32605 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32606}
32607static void *_p_wxNotebookTo_p_wxObject(void *x) {
32608 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32609}
32610static void *_p_wxPyEventTo_p_wxObject(void *x) {
32611 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
32612}
32613static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
32614 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
32615}
32616static void *_p_wxListbookTo_p_wxObject(void *x) {
32617 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32618}
32619static void *_p_wxShowEventTo_p_wxObject(void *x) {
32620 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
32621}
32622static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
32623 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32624}
32625static void *_p_wxSliderTo_p_wxObject(void *x) {
32626 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
32627}
32628static void *_p_wxMenuItemTo_p_wxObject(void *x) {
32629 return (void *)((wxObject *) ((wxMenuItem *) x));
32630}
32631static void *_p_wxIdleEventTo_p_wxObject(void *x) {
32632 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
32633}
32634static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
32635 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
32636}
32637static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
32638 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
32639}
32640static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
32641 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
32642}
32643static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
32644 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
32645}
32646static void *_p_wxSizeEventTo_p_wxObject(void *x) {
32647 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
32648}
32649static void *_p_wxMoveEventTo_p_wxObject(void *x) {
32650 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
32651}
32652static void *_p_wxActivateEventTo_p_wxObject(void *x) {
32653 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
32654}
32655static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
32656 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
32657}
32658static void *_p_wxContextHelpTo_p_wxObject(void *x) {
32659 return (void *)((wxObject *) ((wxContextHelp *) x));
32660}
32661static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
32662 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
32663}
32664static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
32665 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
32666}
32667static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
32668 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
32669}
32670static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
32671 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
32672}
32673static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
32674 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
32675}
32676static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
32677 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
32678}
32679static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
32680 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
32681}
32682static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
32683 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
32684}
32685static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
32686 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
32687}
32688static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
32689 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
32690}
32691static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
32692 return (void *)((wxObject *) ((wxImageHandler *) x));
32693}
32694static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
32695 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
32696}
32697static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
32698 return (void *)((wxObject *) ((wxEvtHandler *) x));
32699}
32700static void *_p_wxListEventTo_p_wxObject(void *x) {
32701 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32702}
32703static void *_p_wxListBoxTo_p_wxObject(void *x) {
32704 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32705}
32706static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
32707 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32708}
32709static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
32710 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32711}
32712static void *_p_wxButtonTo_p_wxObject(void *x) {
32713 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
32714}
32715static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
32716 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32717}
32718static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
32719 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
32720}
32721static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
32722 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32723}
32724static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
32725 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
32726}
32727static void *_p_wxScrollBarTo_p_wxObject(void *x) {
32728 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
32729}
32730static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
32731 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
32732}
32733static void *_p_wxComboBoxTo_p_wxObject(void *x) {
32734 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
32735}
32736static void *_p_wxHelpEventTo_p_wxObject(void *x) {
32737 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
32738}
32739static void *_p_wxListItemTo_p_wxObject(void *x) {
32740 return (void *)((wxObject *) ((wxListItem *) x));
32741}
32742static void *_p_wxImageTo_p_wxObject(void *x) {
32743 return (void *)((wxObject *) ((wxImage *) x));
32744}
32745static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
32746 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
32747}
32748static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
32749 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
32750}
32751static void *_p_wxSpinEventTo_p_wxObject(void *x) {
32752 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32753}
32754static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
32755 return (void *)((wxObject *) ((wxGenericDragImage *) x));
32756}
32757static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
32758 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32759}
32760static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
32761 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32762}
32763static void *_p_wxListbookEventTo_p_wxObject(void *x) {
32764 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32765}
32766static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
32767 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32768}
32769static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
32770 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
32771}
32772static void *_p_wxKeyEventTo_p_wxObject(void *x) {
32773 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
32774}
32775static void *_p_wxWindowTo_p_wxObject(void *x) {
32776 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
32777}
32778static void *_p_wxMenuTo_p_wxObject(void *x) {
32779 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
32780}
32781static void *_p_wxMenuBarTo_p_wxObject(void *x) {
32782 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
32783}
32784static void *_p_wxFileSystemTo_p_wxObject(void *x) {
32785 return (void *)((wxObject *) ((wxFileSystem *) x));
32786}
32787static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
32788 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
32789}
32790static void *_p_wxMenuEventTo_p_wxObject(void *x) {
32791 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
32792}
32793static void *_p_wxPyAppTo_p_wxObject(void *x) {
32794 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
32795}
32796static void *_p_wxCloseEventTo_p_wxObject(void *x) {
32797 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
32798}
32799static void *_p_wxMouseEventTo_p_wxObject(void *x) {
32800 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
32801}
32802static void *_p_wxEraseEventTo_p_wxObject(void *x) {
32803 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
32804}
32805static void *_p_wxTreeEventTo_p_wxObject(void *x) {
32806 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32807}
32808static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
32809 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
32810}
32811static void *_p_wxCommandEventTo_p_wxObject(void *x) {
32812 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
32813}
32814static void *_p_wxStaticTextTo_p_wxObject(void *x) {
32815 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
32816}
32817static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
32818 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
32819}
32820static void *_p_wxFocusEventTo_p_wxObject(void *x) {
32821 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
32822}
32823static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
32824 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
32825}
32826static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
32827 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32828}
32829static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
32830 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
32831}
32832static void *_p_wxToolBarTo_p_wxObject(void *x) {
32833 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32834}
32835static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
32836 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
32837}
32838static void *_p_wxValidatorTo_p_wxObject(void *x) {
32839 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
32840}
32841static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
32842 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
32843}
32844static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
32845 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
32846}
32847static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
32848 return (void *)((wxWindow *) ((wxMenuBar *) x));
32849}
32850static void *_p_wxToolBarTo_p_wxWindow(void *x) {
32851 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32852}
32853static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
32854 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
32855}
32856static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
32857 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
32858}
32859static void *_p_wxPyControlTo_p_wxWindow(void *x) {
32860 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
32861}
32862static void *_p_wxControlTo_p_wxWindow(void *x) {
32863 return (void *)((wxWindow *) ((wxControl *) x));
32864}
32865static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
32866 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
32867}
32868static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
32869 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32870}
32871static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
32872 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
32873}
32874static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
32875 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
32876}
32877static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
32878 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
32879}
32880static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
32881 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
32882}
32883static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
32884 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
32885}
32886static void *_p_wxGaugeTo_p_wxWindow(void *x) {
32887 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
32888}
32889static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
32890 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
32891}
32892static void *_p_wxListbookTo_p_wxWindow(void *x) {
32893 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32894}
32895static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
32896 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
32897}
32898static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
32899 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
32900}
32901static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
32902 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
32903}
32904static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
32905 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32906}
32907static void *_p_wxChoiceTo_p_wxWindow(void *x) {
32908 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32909}
32910static void *_p_wxListBoxTo_p_wxWindow(void *x) {
32911 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32912}
32913static void *_p_wxListViewTo_p_wxWindow(void *x) {
32914 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32915}
32916static void *_p_wxNotebookTo_p_wxWindow(void *x) {
32917 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32918}
32919static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
32920 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
32921}
32922static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
32923 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
32924}
32925static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
32926 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
32927}
32928static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
32929 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
32930}
32931static void *_p_wxSliderTo_p_wxWindow(void *x) {
32932 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
32933}
32934static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
32935 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
32936}
32937static void *_p_wxButtonTo_p_wxWindow(void *x) {
32938 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
32939}
32940static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
32941 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
32942}
32943static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
32944 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32945}
32946static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
32947 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
32948}
32949static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
32950 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32951}
32952static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
32953 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32954}
32955static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
32956 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
32957}
32958static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
32959 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
32960}
32961static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
32962 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
32963}
32964static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
32965 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
32966}
32967static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
32968 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
32969}
32970static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
32971 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32972}
32973static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
32974 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32975}
32976static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
32977 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
32978}
32979static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
32980 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
32981}
32982static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
32983 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
32984}
32985static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
32986 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
32987}
32988static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
32989 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
32990}
32991static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
32992 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
32993}
32994static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
32995 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
32996}
32997static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
32998 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
32999}
33000static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33001 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33002}
33003static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33004 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33005}
33006static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33007 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33008}
33009static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33010 return (void *)((wxValidator *) ((wxPyValidator *) x));
33011}
33012static 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}};
33013static 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}};
33014static 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}};
33015static 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}};
33016static 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}};
33017static 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}};
33018static 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}};
33019static 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}};
33020static 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}};
33021static 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}};
33022static 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}};
33023static 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}};
33024static 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}};
33025static 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}};
33026static 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}};
33027static 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}};
33028static 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}};
33029static 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}};
33030static 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}};
33031static 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}};
33032static 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}};
33033static 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}};
33034static 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}};
33035static 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}};
33036static 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}};
33037static 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}};
33038static 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}};
33039static 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}};
33040static 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}};
33041static 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}};
33042static 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}};
33043static 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}};
33044static 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}};
33045static 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}};
33046static 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}};
33047static 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}};
33048static 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}};
33049static 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}};
33050static 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}};
33051static 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}};
33052static 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}};
33053static 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}};
33054static 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}};
33055static 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}};
33056static 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}};
33057static 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}};
33058static 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}};
33059static 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}};
33060static 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}};
33061static 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}};
33062static 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}};
33063static 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}};
33064static 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}};
33065static 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}};
33066static 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}};
33067static 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}};
33068static 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}};
33069static 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}};
33070static 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}};
33071static 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}};
33072static 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}};
33073static 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}};
33074static 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}};
33075static 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}};
33076static 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}};
33077static 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}};
33078static 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}};
33079static 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}};
33080static 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}};
33081static 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}};
33082static 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}};
33083static 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}};
33084static 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}};
33085static 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}};
33086static 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}};
33087static 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}};
33088static 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}};
33089static 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}};
33090static 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}};
33091static 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}};
33092static 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}};
33093static 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}};
33094static 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}};
33095static 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}};
33096static 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}};
33097
33098static swig_type_info *swig_types_initial[] = {
33099_swigt__p_wxTextUrlEvent,
33100_swigt__p_wxBookCtrlEvent,
33101_swigt__p_wxSizer,
33102_swigt__p_wxCheckBox,
33103_swigt__p_wxPyTreeCtrl,
33104_swigt__p_wxEvent,
33105_swigt__p_wxGenericDirCtrl,
33106_swigt__p_bool,
33107_swigt__p_wxPyTreeItemData,
33108_swigt__p_wxItemContainer,
33109_swigt__p_wxPyListCtrl,
33110_swigt__p_wxDirFilterListCtrl,
33111_swigt__p_wxStaticLine,
33112_swigt__p_wxControl,
33113_swigt__p_wxPyControl,
33114_swigt__p_wxGauge,
33115_swigt__p_wxToolBarBase,
33116_swigt__p_wxFont,
33117_swigt__p_wxToggleButton,
33118_swigt__p_wxRadioButton,
33119_swigt__p_wxChoice,
33120_swigt__p_wxMemoryDC,
33121_swigt__p_wxListItemAttr,
33122_swigt__p_void,
33123_swigt__p_int,
33124_swigt__p_wxSize,
33125_swigt__p_wxDC,
33126_swigt__p_wxListView,
33127_swigt__p_wxIcon,
33128_swigt__p_wxVisualAttributes,
33129_swigt__p_wxTextCtrl,
33130_swigt__p_wxNotebook,
33131_swigt__p_wxNotifyEvent,
33132_swigt__p_wxArrayString,
33133_swigt__p_wxListbook,
33134_swigt__p_wxStaticBitmap,
33135_swigt__p_wxSlider,
33136_swigt__p_wxStaticBox,
33137_swigt__p_wxArrayInt,
33138_swigt__p_wxContextHelp,
33139_swigt__p_long,
33140_swigt__p_wxEvtHandler,
33141_swigt__p_wxListEvent,
33142_swigt__p_wxCheckListBox,
33143_swigt__p_wxListBox,
33144_swigt__p_wxBookCtrl,
33145_swigt__p_wxSpinButton,
33146_swigt__p_wxButton,
33147_swigt__p_wxBitmapButton,
33148_swigt__p_wxRect,
33149_swigt__p_wxContextHelpButton,
33150_swigt__p_wxRadioBox,
33151_swigt__p_wxScrollBar,
33152_swigt__p_char,
33153_swigt__p_wxTreeItemId,
33154_swigt__p_wxComboBox,
33155_swigt__p_wxHelpEvent,
33156_swigt__p_wxListItem,
33157_swigt__p_wxNotebookSizer,
33158_swigt__p_wxSpinEvent,
33159_swigt__p_wxGenericDragImage,
33160_swigt__p_wxSpinCtrl,
33161_swigt__p_wxImageList,
33162_swigt__p_wxHelpProvider,
33163_swigt__p_wxTextAttr,
33164_swigt__p_wxSimpleHelpProvider,
33165_swigt__p_wxPoint,
33166_swigt__p_wxListbookEvent,
33167_swigt__p_wxNotebookEvent,
33168_swigt__p_wxObject,
33169_swigt__p_wxCursor,
33170_swigt__p_wxKeyEvent,
33171_swigt__p_wxWindow,
33172_swigt__p_wxString,
33173_swigt__p_wxBitmap,
33174_swigt__p_wxTreeEvent,
33175_swigt__p_wxMouseEvent,
33176_swigt__p_wxCommandEvent,
33177_swigt__p_wxStaticText,
33178_swigt__p_wxControlWithItems,
33179_swigt__p_wxToolBarToolBase,
33180_swigt__p_wxColour,
33181_swigt__p_wxToolBar,
33182_swigt__p_wxBookCtrlSizer,
33183_swigt__p_wxValidator,
331840
33185};
33186
33187
33188/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33189
33190static swig_const_info swig_const_table[] = {
33191{0}};
33192
33193#ifdef __cplusplus
33194}
33195#endif
33196
33197#ifdef __cplusplus
33198extern "C"
33199#endif
33200SWIGEXPORT(void) SWIG_init(void) {
33201 static PyObject *SWIG_globals = 0;
33202 static int typeinit = 0;
33203 PyObject *m, *d;
33204 int i;
33205 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33206 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33207 d = PyModule_GetDict(m);
33208
33209 if (!typeinit) {
33210 for (i = 0; swig_types_initial[i]; i++) {
33211 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33212 }
33213 typeinit = 1;
33214 }
33215 SWIG_InstallConstants(d,swig_const_table);
33216
33217 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33218 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33219 PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT));
33220 PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP));
33221 PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT));
33222 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM));
33223 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT));
33224 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW));
33225 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33226 PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE));
33227 PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE));
33228 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33229 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED));
33230 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED));
33231 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED));
33232 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33233 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33234 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33235 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL));
33236 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL));
33237 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH));
33238 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR));
33239 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33240 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33241 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33242 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33243 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33244 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL));
33245 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL));
33246 PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY));
33247 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE));
33248 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB));
33249 PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT));
33250 PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER));
33251 PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT));
33252 PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE));
33253 PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH));
33254 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER));
33255 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD));
33256 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL));
33257 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL));
33258 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP));
33259 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP));
33260 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP));
33261 PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2));
33262 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT));
33263 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT));
33264 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE));
33265 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER));
33266 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT));
33267 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33268 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR));
33269 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33270 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE));
33271 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE));
33272 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT));
33273 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC));
33274 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE));
33275 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT));
33276 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT));
33277 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT));
33278 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT));
33279 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS));
33280 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN));
33281 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE));
33282 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT));
33283 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW));
33284 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND));
33285 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33286 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33287 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33288 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33289 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33290 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33291 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33292 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL));
33293 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL));
33294 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS));
33295 PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP));
33296 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33297 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33298 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33299 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33300 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33301 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33302 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33303 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH));
33304 PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP));
33305 PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT));
33306 PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT));
33307 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM));
33308 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE));
33309 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE));
33310 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON));
33311 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL));
33312 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM));
33313 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33314 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33315 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT));
33316 PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP));
33317 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM));
33318 PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT));
33319 PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT));
33320 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK));
33321 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33322 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33323 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON));
33324 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR));
33325 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL));
33326 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL));
33327 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL));
33328 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS));
33329 PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT));
33330 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE));
33331 PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS));
33332 PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT));
33333 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER));
33334 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN));
33335 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT));
33336 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT));
33337 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33338 PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES));
33339 PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES));
33340 PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON));
33341 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON));
33342 PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST));
33343 PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT));
33344 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP));
33345 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT));
33346 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE));
33347 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL));
33348 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS));
33349 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER));
33350 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER));
33351 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL));
33352 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING));
33353 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING));
33354 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE));
33355 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN));
33356 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT));
33357 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE));
33358 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT));
33359 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE));
33360 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA));
33361 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM));
33362 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH));
33363 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT));
33364 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE));
33365 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED));
33366 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED));
33367 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED));
33368 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT));
33369 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED));
33370 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED));
33371 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE));
33372 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED));
33373 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE));
33374 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE));
33375 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW));
33376 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE));
33377 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON));
33378 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL));
33379 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT));
33380 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON));
33381 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT));
33382 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT));
33383 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM));
33384 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE));
33385 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL));
33386 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW));
33387 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT));
33388 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT));
33389 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT));
33390 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT));
33391 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP));
33392 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID));
33393 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT));
33394 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT));
33395 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE));
33396 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER));
33397 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE));
33398 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER));
33399 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS));
33400 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON));
33401 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL));
33402 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP));
33403 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN));
33404 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT));
33405 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT));
33406 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33407 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33408 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33409 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33410 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33411 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33412 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33413 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33414 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33415 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33416 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33417 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33418 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33419 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33420 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33421 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33422 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33423 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33424 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33425 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33426 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33427 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33428
33429 // Map renamed classes back to their common name for OOR
33430 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33431
33432 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33433 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS));
33434 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS));
33435 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES));
33436 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT));
33437 PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE));
33438 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE));
33439 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED));
33440 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33441 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS));
33442 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT));
33443 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES));
33444 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT));
33445 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE));
33446 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS));
33447 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS));
33448 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS));
33449 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal));
33450 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected));
33451 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded));
33452 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded));
33453 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max));
33454 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE));
33455 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW));
33456 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE));
33457 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON));
33458 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON));
33459 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT));
33460 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL));
33461 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT));
33462 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON));
33463 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT));
33464 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT));
33465 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART));
33466 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART));
33467 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM));
33468 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33469 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33470 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33471 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33472 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33473 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33474 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33475 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33476 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33477 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33478 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33479 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33480 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33481 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33482 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33483 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33484 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33485 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33486 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33487 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33488
33489 // Map renamed classes back to their common name for OOR
33490 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33491 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33492
33493 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33494 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY));
33495 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST));
33496 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS));
33497 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL));
33498 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS));
33499 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP));
33500 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP));
33501 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33502 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33503
33504 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33505
33506}
33507