]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/mac/controls2.cpp
New SWIGged files for wxMac
[wxWidgets.git] / wxPython / src / mac / controls2.cpp
... / ...
CommitLineData
1/*
2 * FILE : src/mac/controls2.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
27# define SWIGEXPORT(a) __declspec(dllexport) a
28# else
29# if defined(__BORLANDC__)
30# define SWIGEXPORT(a) a _export
31# else
32# define SWIGEXPORT(a) a
33# endif
34# endif
35#else
36# define SWIGEXPORT(a) a
37#endif
38
39#include "Python.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initcontrols2c
55
56#define SWIG_name "controls2c"
57
58#include "helpers.h"
59#ifdef __WXMSW__
60#include <windows.h>
61#endif
62#include <wx/listctrl.h>
63#include <wx/treectrl.h>
64#include <wx/imaglist.h>
65
66
67static PyObject* t_output_helper(PyObject* target, PyObject* o) {
68 PyObject* o2;
69 PyObject* o3;
70
71 if (!target) {
72 target = o;
73 } else if (target == Py_None) {
74 Py_DECREF(Py_None);
75 target = o;
76 } else {
77 if (!PyTuple_Check(target)) {
78 o2 = target;
79 target = PyTuple_New(1);
80 PyTuple_SetItem(target, 0, o2);
81 }
82 o3 = PyTuple_New(1);
83 PyTuple_SetItem(o3, 0, o);
84
85 o2 = target;
86 target = PySequence_Concat(o2, o3);
87 Py_DECREF(o2);
88 Py_DECREF(o3);
89 }
90 return target;
91}
92
93#if PYTHON_API_VERSION >= 1009
94 static char* wxStringErrorMsg = "String or Unicode type required";
95#else
96 static char* wxStringErrorMsg = "String type required";
97#endif
98 // C++ Version of a Python aware class
99class wxPyListCtrl : public wxListCtrl {
100 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
101public:
102 wxPyListCtrl() : wxListCtrl() {}
103 wxPyListCtrl(wxWindow* parent, wxWindowID id,
104 const wxPoint& pos,
105 const wxSize& size,
106 long style,
107 const wxValidator& validator,
108 char* name) :
109 wxListCtrl(parent, id, pos, size, style, validator, name) {}
110
111 bool Create(wxWindow* parent, wxWindowID id,
112 const wxPoint& pos,
113 const wxSize& size,
114 long style,
115 const wxValidator& validator,
116 char* name) {
117 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
118 }
119
120 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
121 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
122 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
123
124 PYPRIVATE;
125};
126
127IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
128
129IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
130IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
131IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
132 // Python aware sorting function for wxPyListCtrl
133 int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
134 int retval = 0;
135 PyObject* func = (PyObject*)funcPtr;
136 wxPyTState* state = wxPyBeginBlockThreads();
137
138 PyObject* args = Py_BuildValue("(ii)", item1, item2);
139 PyObject* result = PyEval_CallObject(func, args);
140 Py_DECREF(args);
141 if (result) {
142 retval = PyInt_AsLong(result);
143 Py_DECREF(result);
144 }
145
146 wxPyEndBlockThreads(state);
147 return retval;
148 }
149
150
151class wxPyTreeItemData : public wxTreeItemData {
152public:
153 wxPyTreeItemData(PyObject* obj = NULL) {
154 if (obj == NULL)
155 obj = Py_None;
156 Py_INCREF(obj);
157 m_obj = obj;
158 }
159
160 ~wxPyTreeItemData() {
161 wxPyTState* state = wxPyBeginBlockThreads();
162 Py_DECREF(m_obj);
163 wxPyEndBlockThreads(state);
164 }
165
166 PyObject* GetData() {
167 Py_INCREF(m_obj);
168 return m_obj;
169 }
170
171 void SetData(PyObject* obj) {
172 wxPyTState* state = wxPyBeginBlockThreads();
173 Py_DECREF(m_obj);
174 wxPyEndBlockThreads(state);
175 m_obj = obj;
176 Py_INCREF(obj);
177 }
178
179 PyObject* m_obj;
180};
181 // C++ version of Python aware wxTreeCtrl
182class wxPyTreeCtrl : public wxTreeCtrl {
183 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
184public:
185 wxPyTreeCtrl() : wxTreeCtrl() {}
186 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
187 const wxPoint& pos,
188 const wxSize& size,
189 long style,
190 const wxValidator& validator,
191 char* name) :
192 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
193
194 bool Create(wxWindow *parent, wxWindowID id,
195 const wxPoint& pos,
196 const wxSize& size,
197 long style,
198 const wxValidator& validator,
199 char* name) {
200 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
201 }
202
203
204 int OnCompareItems(const wxTreeItemId& item1,
205 const wxTreeItemId& item2) {
206 int rval = 0;
207 bool found;
208 wxPyTState* state = wxPyBeginBlockThreads();
209 if ((found = m_myInst.findCallback("OnCompareItems")))
210 rval = m_myInst.callCallback(Py_BuildValue(
211 "(OO)",
212 wxPyConstructObject((void*)&item1, "wxTreeItemId"),
213 wxPyConstructObject((void*)&item2, "wxTreeItemId")));
214 wxPyEndBlockThreads(state);
215 if (! found)
216 rval = wxTreeCtrl::OnCompareItems(item1, item2);
217 return rval;
218 }
219 PYPRIVATE;
220};
221
222IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
223
224#ifdef __cplusplus
225extern "C" {
226#endif
227#define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2))
228static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
229 PyObject * _resultobj;
230 wxListItemAttr * _result;
231 wxColour * _arg0 = (wxColour *) &wxNullColour;
232 wxColour * _arg1 = (wxColour *) &wxNullColour;
233 wxFont * _arg2 = (wxFont *) &wxNullFont;
234 wxColour temp;
235 PyObject * _obj0 = 0;
236 wxColour temp0;
237 PyObject * _obj1 = 0;
238 PyObject * _argo2 = 0;
239 char *_kwnames[] = { "colText","colBack","font", NULL };
240 char _ptemp[128];
241
242 self = self;
243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2))
244 return NULL;
245 if (_obj0)
246{
247 _arg0 = &temp;
248 if (! wxColour_helper(_obj0, &_arg0))
249 return NULL;
250}
251 if (_obj1)
252{
253 _arg1 = &temp0;
254 if (! wxColour_helper(_obj1, &_arg1))
255 return NULL;
256}
257 if (_argo2) {
258 if (_argo2 == Py_None) { _arg2 = NULL; }
259 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
260 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p.");
261 return NULL;
262 }
263 }
264{
265 wxPy_BEGIN_ALLOW_THREADS;
266 _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2);
267
268 wxPy_END_ALLOW_THREADS;
269 if (PyErr_Occurred()) return NULL;
270} if (_result) {
271 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p");
272 _resultobj = Py_BuildValue("s",_ptemp);
273 } else {
274 Py_INCREF(Py_None);
275 _resultobj = Py_None;
276 }
277 return _resultobj;
278}
279
280#define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
281static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
282 PyObject * _resultobj;
283 wxListItemAttr * _arg0;
284 wxColour * _arg1;
285 PyObject * _argo0 = 0;
286 wxColour temp;
287 PyObject * _obj1 = 0;
288 char *_kwnames[] = { "self","colText", NULL };
289
290 self = self;
291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
292 return NULL;
293 if (_argo0) {
294 if (_argo0 == Py_None) { _arg0 = NULL; }
295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p.");
297 return NULL;
298 }
299 }
300{
301 _arg1 = &temp;
302 if (! wxColour_helper(_obj1, &_arg1))
303 return NULL;
304}
305{
306 wxPy_BEGIN_ALLOW_THREADS;
307 wxListItemAttr_SetTextColour(_arg0,*_arg1);
308
309 wxPy_END_ALLOW_THREADS;
310 if (PyErr_Occurred()) return NULL;
311} Py_INCREF(Py_None);
312 _resultobj = Py_None;
313 return _resultobj;
314}
315
316#define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
317static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
318 PyObject * _resultobj;
319 wxListItemAttr * _arg0;
320 wxColour * _arg1;
321 PyObject * _argo0 = 0;
322 wxColour temp;
323 PyObject * _obj1 = 0;
324 char *_kwnames[] = { "self","colBack", NULL };
325
326 self = self;
327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
328 return NULL;
329 if (_argo0) {
330 if (_argo0 == Py_None) { _arg0 = NULL; }
331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p.");
333 return NULL;
334 }
335 }
336{
337 _arg1 = &temp;
338 if (! wxColour_helper(_obj1, &_arg1))
339 return NULL;
340}
341{
342 wxPy_BEGIN_ALLOW_THREADS;
343 wxListItemAttr_SetBackgroundColour(_arg0,*_arg1);
344
345 wxPy_END_ALLOW_THREADS;
346 if (PyErr_Occurred()) return NULL;
347} Py_INCREF(Py_None);
348 _resultobj = Py_None;
349 return _resultobj;
350}
351
352#define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
353static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
354 PyObject * _resultobj;
355 wxListItemAttr * _arg0;
356 wxFont * _arg1;
357 PyObject * _argo0 = 0;
358 PyObject * _argo1 = 0;
359 char *_kwnames[] = { "self","font", NULL };
360
361 self = self;
362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1))
363 return NULL;
364 if (_argo0) {
365 if (_argo0 == Py_None) { _arg0 = NULL; }
366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p.");
368 return NULL;
369 }
370 }
371 if (_argo1) {
372 if (_argo1 == Py_None) { _arg1 = NULL; }
373 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
374 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p.");
375 return NULL;
376 }
377 }
378{
379 wxPy_BEGIN_ALLOW_THREADS;
380 wxListItemAttr_SetFont(_arg0,*_arg1);
381
382 wxPy_END_ALLOW_THREADS;
383 if (PyErr_Occurred()) return NULL;
384} Py_INCREF(Py_None);
385 _resultobj = Py_None;
386 return _resultobj;
387}
388
389#define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
390static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
391 PyObject * _resultobj;
392 bool _result;
393 wxListItemAttr * _arg0;
394 PyObject * _argo0 = 0;
395 char *_kwnames[] = { "self", NULL };
396
397 self = self;
398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0))
399 return NULL;
400 if (_argo0) {
401 if (_argo0 == Py_None) { _arg0 = NULL; }
402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p.");
404 return NULL;
405 }
406 }
407{
408 wxPy_BEGIN_ALLOW_THREADS;
409 _result = (bool )wxListItemAttr_HasTextColour(_arg0);
410
411 wxPy_END_ALLOW_THREADS;
412 if (PyErr_Occurred()) return NULL;
413} _resultobj = Py_BuildValue("i",_result);
414 return _resultobj;
415}
416
417#define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
418static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
419 PyObject * _resultobj;
420 bool _result;
421 wxListItemAttr * _arg0;
422 PyObject * _argo0 = 0;
423 char *_kwnames[] = { "self", NULL };
424
425 self = self;
426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0))
427 return NULL;
428 if (_argo0) {
429 if (_argo0 == Py_None) { _arg0 = NULL; }
430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p.");
432 return NULL;
433 }
434 }
435{
436 wxPy_BEGIN_ALLOW_THREADS;
437 _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0);
438
439 wxPy_END_ALLOW_THREADS;
440 if (PyErr_Occurred()) return NULL;
441} _resultobj = Py_BuildValue("i",_result);
442 return _resultobj;
443}
444
445#define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont())
446static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
447 PyObject * _resultobj;
448 bool _result;
449 wxListItemAttr * _arg0;
450 PyObject * _argo0 = 0;
451 char *_kwnames[] = { "self", NULL };
452
453 self = self;
454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0))
455 return NULL;
456 if (_argo0) {
457 if (_argo0 == Py_None) { _arg0 = NULL; }
458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p.");
460 return NULL;
461 }
462 }
463{
464 wxPy_BEGIN_ALLOW_THREADS;
465 _result = (bool )wxListItemAttr_HasFont(_arg0);
466
467 wxPy_END_ALLOW_THREADS;
468 if (PyErr_Occurred()) return NULL;
469} _resultobj = Py_BuildValue("i",_result);
470 return _resultobj;
471}
472
473#define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
474static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
475 PyObject * _resultobj;
476 wxColour * _result;
477 wxListItemAttr * _arg0;
478 PyObject * _argo0 = 0;
479 char *_kwnames[] = { "self", NULL };
480 char _ptemp[128];
481
482 self = self;
483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0))
484 return NULL;
485 if (_argo0) {
486 if (_argo0 == Py_None) { _arg0 = NULL; }
487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p.");
489 return NULL;
490 }
491 }
492{
493 wxPy_BEGIN_ALLOW_THREADS;
494 const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0);
495 _result = (wxColour *) &_result_ref;
496
497 wxPy_END_ALLOW_THREADS;
498 if (PyErr_Occurred()) return NULL;
499} if (_result) {
500 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
501 _resultobj = Py_BuildValue("s",_ptemp);
502 } else {
503 Py_INCREF(Py_None);
504 _resultobj = Py_None;
505 }
506 return _resultobj;
507}
508
509#define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
510static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
511 PyObject * _resultobj;
512 wxColour * _result;
513 wxListItemAttr * _arg0;
514 PyObject * _argo0 = 0;
515 char *_kwnames[] = { "self", NULL };
516 char _ptemp[128];
517
518 self = self;
519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0))
520 return NULL;
521 if (_argo0) {
522 if (_argo0 == Py_None) { _arg0 = NULL; }
523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p.");
525 return NULL;
526 }
527 }
528{
529 wxPy_BEGIN_ALLOW_THREADS;
530 const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0);
531 _result = (wxColour *) &_result_ref;
532
533 wxPy_END_ALLOW_THREADS;
534 if (PyErr_Occurred()) return NULL;
535} if (_result) {
536 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
537 _resultobj = Py_BuildValue("s",_ptemp);
538 } else {
539 Py_INCREF(Py_None);
540 _resultobj = Py_None;
541 }
542 return _resultobj;
543}
544
545#define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont())
546static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
547 PyObject * _resultobj;
548 wxFont * _result;
549 wxListItemAttr * _arg0;
550 PyObject * _argo0 = 0;
551 char *_kwnames[] = { "self", NULL };
552 char _ptemp[128];
553
554 self = self;
555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0))
556 return NULL;
557 if (_argo0) {
558 if (_argo0 == Py_None) { _arg0 = NULL; }
559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p.");
561 return NULL;
562 }
563 }
564{
565 wxPy_BEGIN_ALLOW_THREADS;
566 const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0);
567 _result = (wxFont *) &_result_ref;
568
569 wxPy_END_ALLOW_THREADS;
570 if (PyErr_Occurred()) return NULL;
571} if (_result) {
572 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
573 _resultobj = Py_BuildValue("s",_ptemp);
574 } else {
575 Py_INCREF(Py_None);
576 _resultobj = Py_None;
577 }
578 return _resultobj;
579}
580
581static void *SwigwxListItemTowxObject(void *ptr) {
582 wxListItem *src;
583 wxObject *dest;
584 src = (wxListItem *) ptr;
585 dest = (wxObject *) src;
586 return (void *) dest;
587}
588
589#define new_wxListItem() (new wxListItem())
590static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
591 PyObject * _resultobj;
592 wxListItem * _result;
593 char *_kwnames[] = { NULL };
594 char _ptemp[128];
595
596 self = self;
597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames))
598 return NULL;
599{
600 wxPy_BEGIN_ALLOW_THREADS;
601 _result = (wxListItem *)new_wxListItem();
602
603 wxPy_END_ALLOW_THREADS;
604 if (PyErr_Occurred()) return NULL;
605} if (_result) {
606 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
607 _resultobj = Py_BuildValue("s",_ptemp);
608 } else {
609 Py_INCREF(Py_None);
610 _resultobj = Py_None;
611 }
612 return _resultobj;
613}
614
615#define delete_wxListItem(_swigobj) (delete _swigobj)
616static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
617 PyObject * _resultobj;
618 wxListItem * _arg0;
619 PyObject * _argo0 = 0;
620 char *_kwnames[] = { "self", NULL };
621
622 self = self;
623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0))
624 return NULL;
625 if (_argo0) {
626 if (_argo0 == Py_None) { _arg0 = NULL; }
627 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
628 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p.");
629 return NULL;
630 }
631 }
632{
633 wxPy_BEGIN_ALLOW_THREADS;
634 delete_wxListItem(_arg0);
635
636 wxPy_END_ALLOW_THREADS;
637 if (PyErr_Occurred()) return NULL;
638} Py_INCREF(Py_None);
639 _resultobj = Py_None;
640 return _resultobj;
641}
642
643#define wxListItem_Clear(_swigobj) (_swigobj->Clear())
644static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
645 PyObject * _resultobj;
646 wxListItem * _arg0;
647 PyObject * _argo0 = 0;
648 char *_kwnames[] = { "self", NULL };
649
650 self = self;
651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0))
652 return NULL;
653 if (_argo0) {
654 if (_argo0 == Py_None) { _arg0 = NULL; }
655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p.");
657 return NULL;
658 }
659 }
660{
661 wxPy_BEGIN_ALLOW_THREADS;
662 wxListItem_Clear(_arg0);
663
664 wxPy_END_ALLOW_THREADS;
665 if (PyErr_Occurred()) return NULL;
666} Py_INCREF(Py_None);
667 _resultobj = Py_None;
668 return _resultobj;
669}
670
671#define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes())
672static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
673 PyObject * _resultobj;
674 wxListItem * _arg0;
675 PyObject * _argo0 = 0;
676 char *_kwnames[] = { "self", NULL };
677
678 self = self;
679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0))
680 return NULL;
681 if (_argo0) {
682 if (_argo0 == Py_None) { _arg0 = NULL; }
683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p.");
685 return NULL;
686 }
687 }
688{
689 wxPy_BEGIN_ALLOW_THREADS;
690 wxListItem_ClearAttributes(_arg0);
691
692 wxPy_END_ALLOW_THREADS;
693 if (PyErr_Occurred()) return NULL;
694} Py_INCREF(Py_None);
695 _resultobj = Py_None;
696 return _resultobj;
697}
698
699#define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
700static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
701 PyObject * _resultobj;
702 wxListItem * _arg0;
703 long _arg1;
704 PyObject * _argo0 = 0;
705 char *_kwnames[] = { "self","mask", NULL };
706
707 self = self;
708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1))
709 return NULL;
710 if (_argo0) {
711 if (_argo0 == Py_None) { _arg0 = NULL; }
712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p.");
714 return NULL;
715 }
716 }
717{
718 wxPy_BEGIN_ALLOW_THREADS;
719 wxListItem_SetMask(_arg0,_arg1);
720
721 wxPy_END_ALLOW_THREADS;
722 if (PyErr_Occurred()) return NULL;
723} Py_INCREF(Py_None);
724 _resultobj = Py_None;
725 return _resultobj;
726}
727
728#define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
729static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
730 PyObject * _resultobj;
731 wxListItem * _arg0;
732 long _arg1;
733 PyObject * _argo0 = 0;
734 char *_kwnames[] = { "self","id", NULL };
735
736 self = self;
737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1))
738 return NULL;
739 if (_argo0) {
740 if (_argo0 == Py_None) { _arg0 = NULL; }
741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p.");
743 return NULL;
744 }
745 }
746{
747 wxPy_BEGIN_ALLOW_THREADS;
748 wxListItem_SetId(_arg0,_arg1);
749
750 wxPy_END_ALLOW_THREADS;
751 if (PyErr_Occurred()) return NULL;
752} Py_INCREF(Py_None);
753 _resultobj = Py_None;
754 return _resultobj;
755}
756
757#define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0))
758static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
759 PyObject * _resultobj;
760 wxListItem * _arg0;
761 int _arg1;
762 PyObject * _argo0 = 0;
763 char *_kwnames[] = { "self","col", NULL };
764
765 self = self;
766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1))
767 return NULL;
768 if (_argo0) {
769 if (_argo0 == Py_None) { _arg0 = NULL; }
770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p.");
772 return NULL;
773 }
774 }
775{
776 wxPy_BEGIN_ALLOW_THREADS;
777 wxListItem_SetColumn(_arg0,_arg1);
778
779 wxPy_END_ALLOW_THREADS;
780 if (PyErr_Occurred()) return NULL;
781} Py_INCREF(Py_None);
782 _resultobj = Py_None;
783 return _resultobj;
784}
785
786#define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0))
787static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
788 PyObject * _resultobj;
789 wxListItem * _arg0;
790 long _arg1;
791 PyObject * _argo0 = 0;
792 char *_kwnames[] = { "self","state", NULL };
793
794 self = self;
795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1))
796 return NULL;
797 if (_argo0) {
798 if (_argo0 == Py_None) { _arg0 = NULL; }
799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p.");
801 return NULL;
802 }
803 }
804{
805 wxPy_BEGIN_ALLOW_THREADS;
806 wxListItem_SetState(_arg0,_arg1);
807
808 wxPy_END_ALLOW_THREADS;
809 if (PyErr_Occurred()) return NULL;
810} Py_INCREF(Py_None);
811 _resultobj = Py_None;
812 return _resultobj;
813}
814
815#define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0))
816static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
817 PyObject * _resultobj;
818 wxListItem * _arg0;
819 long _arg1;
820 PyObject * _argo0 = 0;
821 char *_kwnames[] = { "self","stateMask", NULL };
822
823 self = self;
824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1))
825 return NULL;
826 if (_argo0) {
827 if (_argo0 == Py_None) { _arg0 = NULL; }
828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p.");
830 return NULL;
831 }
832 }
833{
834 wxPy_BEGIN_ALLOW_THREADS;
835 wxListItem_SetStateMask(_arg0,_arg1);
836
837 wxPy_END_ALLOW_THREADS;
838 if (PyErr_Occurred()) return NULL;
839} Py_INCREF(Py_None);
840 _resultobj = Py_None;
841 return _resultobj;
842}
843
844#define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
845static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
846 PyObject * _resultobj;
847 wxListItem * _arg0;
848 wxString * _arg1;
849 PyObject * _argo0 = 0;
850 PyObject * _obj1 = 0;
851 char *_kwnames[] = { "self","text", NULL };
852
853 self = self;
854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1))
855 return NULL;
856 if (_argo0) {
857 if (_argo0 == Py_None) { _arg0 = NULL; }
858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p.");
860 return NULL;
861 }
862 }
863{
864#if PYTHON_API_VERSION >= 1009
865 char* tmpPtr; int tmpSize;
866 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
867 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
868 return NULL;
869 }
870 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
871 return NULL;
872 _arg1 = new wxString(tmpPtr, tmpSize);
873#else
874 if (!PyString_Check(_obj1)) {
875 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
876 return NULL;
877 }
878 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
879#endif
880}
881{
882 wxPy_BEGIN_ALLOW_THREADS;
883 wxListItem_SetText(_arg0,*_arg1);
884
885 wxPy_END_ALLOW_THREADS;
886 if (PyErr_Occurred()) return NULL;
887} Py_INCREF(Py_None);
888 _resultobj = Py_None;
889{
890 if (_obj1)
891 delete _arg1;
892}
893 return _resultobj;
894}
895
896#define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0))
897static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
898 PyObject * _resultobj;
899 wxListItem * _arg0;
900 int _arg1;
901 PyObject * _argo0 = 0;
902 char *_kwnames[] = { "self","image", NULL };
903
904 self = self;
905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1))
906 return NULL;
907 if (_argo0) {
908 if (_argo0 == Py_None) { _arg0 = NULL; }
909 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
910 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p.");
911 return NULL;
912 }
913 }
914{
915 wxPy_BEGIN_ALLOW_THREADS;
916 wxListItem_SetImage(_arg0,_arg1);
917
918 wxPy_END_ALLOW_THREADS;
919 if (PyErr_Occurred()) return NULL;
920} Py_INCREF(Py_None);
921 _resultobj = Py_None;
922 return _resultobj;
923}
924
925#define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
926static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
927 PyObject * _resultobj;
928 wxListItem * _arg0;
929 long _arg1;
930 PyObject * _argo0 = 0;
931 char *_kwnames[] = { "self","data", NULL };
932
933 self = self;
934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1))
935 return NULL;
936 if (_argo0) {
937 if (_argo0 == Py_None) { _arg0 = NULL; }
938 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
939 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p.");
940 return NULL;
941 }
942 }
943{
944 wxPy_BEGIN_ALLOW_THREADS;
945 wxListItem_SetData(_arg0,_arg1);
946
947 wxPy_END_ALLOW_THREADS;
948 if (PyErr_Occurred()) return NULL;
949} Py_INCREF(Py_None);
950 _resultobj = Py_None;
951 return _resultobj;
952}
953
954#define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
955static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
956 PyObject * _resultobj;
957 wxListItem * _arg0;
958 int _arg1;
959 PyObject * _argo0 = 0;
960 char *_kwnames[] = { "self","width", NULL };
961
962 self = self;
963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1))
964 return NULL;
965 if (_argo0) {
966 if (_argo0 == Py_None) { _arg0 = NULL; }
967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p.");
969 return NULL;
970 }
971 }
972{
973 wxPy_BEGIN_ALLOW_THREADS;
974 wxListItem_SetWidth(_arg0,_arg1);
975
976 wxPy_END_ALLOW_THREADS;
977 if (PyErr_Occurred()) return NULL;
978} Py_INCREF(Py_None);
979 _resultobj = Py_None;
980 return _resultobj;
981}
982
983#define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0))
984static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
985 PyObject * _resultobj;
986 wxListItem * _arg0;
987 wxListColumnFormat _arg1;
988 PyObject * _argo0 = 0;
989 char *_kwnames[] = { "self","align", NULL };
990
991 self = self;
992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1))
993 return NULL;
994 if (_argo0) {
995 if (_argo0 == Py_None) { _arg0 = NULL; }
996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p.");
998 return NULL;
999 }
1000 }
1001{
1002 wxPy_BEGIN_ALLOW_THREADS;
1003 wxListItem_SetAlign(_arg0,_arg1);
1004
1005 wxPy_END_ALLOW_THREADS;
1006 if (PyErr_Occurred()) return NULL;
1007} Py_INCREF(Py_None);
1008 _resultobj = Py_None;
1009 return _resultobj;
1010}
1011
1012#define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
1013static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1014 PyObject * _resultobj;
1015 wxListItem * _arg0;
1016 wxColour * _arg1;
1017 PyObject * _argo0 = 0;
1018 wxColour temp;
1019 PyObject * _obj1 = 0;
1020 char *_kwnames[] = { "self","colText", NULL };
1021
1022 self = self;
1023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1))
1024 return NULL;
1025 if (_argo0) {
1026 if (_argo0 == Py_None) { _arg0 = NULL; }
1027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p.");
1029 return NULL;
1030 }
1031 }
1032{
1033 _arg1 = &temp;
1034 if (! wxColour_helper(_obj1, &_arg1))
1035 return NULL;
1036}
1037{
1038 wxPy_BEGIN_ALLOW_THREADS;
1039 wxListItem_SetTextColour(_arg0,*_arg1);
1040
1041 wxPy_END_ALLOW_THREADS;
1042 if (PyErr_Occurred()) return NULL;
1043} Py_INCREF(Py_None);
1044 _resultobj = Py_None;
1045 return _resultobj;
1046}
1047
1048#define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
1049static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1050 PyObject * _resultobj;
1051 wxListItem * _arg0;
1052 wxColour * _arg1;
1053 PyObject * _argo0 = 0;
1054 wxColour temp;
1055 PyObject * _obj1 = 0;
1056 char *_kwnames[] = { "self","colBack", NULL };
1057
1058 self = self;
1059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
1060 return NULL;
1061 if (_argo0) {
1062 if (_argo0 == Py_None) { _arg0 = NULL; }
1063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p.");
1065 return NULL;
1066 }
1067 }
1068{
1069 _arg1 = &temp;
1070 if (! wxColour_helper(_obj1, &_arg1))
1071 return NULL;
1072}
1073{
1074 wxPy_BEGIN_ALLOW_THREADS;
1075 wxListItem_SetBackgroundColour(_arg0,*_arg1);
1076
1077 wxPy_END_ALLOW_THREADS;
1078 if (PyErr_Occurred()) return NULL;
1079} Py_INCREF(Py_None);
1080 _resultobj = Py_None;
1081 return _resultobj;
1082}
1083
1084#define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
1085static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1086 PyObject * _resultobj;
1087 wxListItem * _arg0;
1088 wxFont * _arg1;
1089 PyObject * _argo0 = 0;
1090 PyObject * _argo1 = 0;
1091 char *_kwnames[] = { "self","font", NULL };
1092
1093 self = self;
1094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1))
1095 return NULL;
1096 if (_argo0) {
1097 if (_argo0 == Py_None) { _arg0 = NULL; }
1098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p.");
1100 return NULL;
1101 }
1102 }
1103 if (_argo1) {
1104 if (_argo1 == Py_None) { _arg1 = NULL; }
1105 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
1106 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p.");
1107 return NULL;
1108 }
1109 }
1110{
1111 wxPy_BEGIN_ALLOW_THREADS;
1112 wxListItem_SetFont(_arg0,*_arg1);
1113
1114 wxPy_END_ALLOW_THREADS;
1115 if (PyErr_Occurred()) return NULL;
1116} Py_INCREF(Py_None);
1117 _resultobj = Py_None;
1118 return _resultobj;
1119}
1120
1121#define wxListItem_GetMask(_swigobj) (_swigobj->GetMask())
1122static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1123 PyObject * _resultobj;
1124 long _result;
1125 wxListItem * _arg0;
1126 PyObject * _argo0 = 0;
1127 char *_kwnames[] = { "self", NULL };
1128
1129 self = self;
1130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0))
1131 return NULL;
1132 if (_argo0) {
1133 if (_argo0 == Py_None) { _arg0 = NULL; }
1134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p.");
1136 return NULL;
1137 }
1138 }
1139{
1140 wxPy_BEGIN_ALLOW_THREADS;
1141 _result = (long )wxListItem_GetMask(_arg0);
1142
1143 wxPy_END_ALLOW_THREADS;
1144 if (PyErr_Occurred()) return NULL;
1145} _resultobj = Py_BuildValue("l",_result);
1146 return _resultobj;
1147}
1148
1149#define wxListItem_GetId(_swigobj) (_swigobj->GetId())
1150static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
1151 PyObject * _resultobj;
1152 long _result;
1153 wxListItem * _arg0;
1154 PyObject * _argo0 = 0;
1155 char *_kwnames[] = { "self", NULL };
1156
1157 self = self;
1158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0))
1159 return NULL;
1160 if (_argo0) {
1161 if (_argo0 == Py_None) { _arg0 = NULL; }
1162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p.");
1164 return NULL;
1165 }
1166 }
1167{
1168 wxPy_BEGIN_ALLOW_THREADS;
1169 _result = (long )wxListItem_GetId(_arg0);
1170
1171 wxPy_END_ALLOW_THREADS;
1172 if (PyErr_Occurred()) return NULL;
1173} _resultobj = Py_BuildValue("l",_result);
1174 return _resultobj;
1175}
1176
1177#define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn())
1178static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
1179 PyObject * _resultobj;
1180 int _result;
1181 wxListItem * _arg0;
1182 PyObject * _argo0 = 0;
1183 char *_kwnames[] = { "self", NULL };
1184
1185 self = self;
1186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0))
1187 return NULL;
1188 if (_argo0) {
1189 if (_argo0 == Py_None) { _arg0 = NULL; }
1190 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1191 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p.");
1192 return NULL;
1193 }
1194 }
1195{
1196 wxPy_BEGIN_ALLOW_THREADS;
1197 _result = (int )wxListItem_GetColumn(_arg0);
1198
1199 wxPy_END_ALLOW_THREADS;
1200 if (PyErr_Occurred()) return NULL;
1201} _resultobj = Py_BuildValue("i",_result);
1202 return _resultobj;
1203}
1204
1205#define wxListItem_GetState(_swigobj) (_swigobj->GetState())
1206static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
1207 PyObject * _resultobj;
1208 long _result;
1209 wxListItem * _arg0;
1210 PyObject * _argo0 = 0;
1211 char *_kwnames[] = { "self", NULL };
1212
1213 self = self;
1214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0))
1215 return NULL;
1216 if (_argo0) {
1217 if (_argo0 == Py_None) { _arg0 = NULL; }
1218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p.");
1220 return NULL;
1221 }
1222 }
1223{
1224 wxPy_BEGIN_ALLOW_THREADS;
1225 _result = (long )wxListItem_GetState(_arg0);
1226
1227 wxPy_END_ALLOW_THREADS;
1228 if (PyErr_Occurred()) return NULL;
1229} _resultobj = Py_BuildValue("l",_result);
1230 return _resultobj;
1231}
1232
1233#define wxListItem_GetText(_swigobj) (_swigobj->GetText())
1234static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
1235 PyObject * _resultobj;
1236 wxString * _result;
1237 wxListItem * _arg0;
1238 PyObject * _argo0 = 0;
1239 char *_kwnames[] = { "self", NULL };
1240
1241 self = self;
1242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0))
1243 return NULL;
1244 if (_argo0) {
1245 if (_argo0 == Py_None) { _arg0 = NULL; }
1246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p.");
1248 return NULL;
1249 }
1250 }
1251{
1252 wxPy_BEGIN_ALLOW_THREADS;
1253 const wxString & _result_ref = wxListItem_GetText(_arg0);
1254 _result = (wxString *) &_result_ref;
1255
1256 wxPy_END_ALLOW_THREADS;
1257 if (PyErr_Occurred()) return NULL;
1258}{
1259 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1260}
1261 return _resultobj;
1262}
1263
1264#define wxListItem_GetImage(_swigobj) (_swigobj->GetImage())
1265static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
1266 PyObject * _resultobj;
1267 int _result;
1268 wxListItem * _arg0;
1269 PyObject * _argo0 = 0;
1270 char *_kwnames[] = { "self", NULL };
1271
1272 self = self;
1273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0))
1274 return NULL;
1275 if (_argo0) {
1276 if (_argo0 == Py_None) { _arg0 = NULL; }
1277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p.");
1279 return NULL;
1280 }
1281 }
1282{
1283 wxPy_BEGIN_ALLOW_THREADS;
1284 _result = (int )wxListItem_GetImage(_arg0);
1285
1286 wxPy_END_ALLOW_THREADS;
1287 if (PyErr_Occurred()) return NULL;
1288} _resultobj = Py_BuildValue("i",_result);
1289 return _resultobj;
1290}
1291
1292#define wxListItem_GetData(_swigobj) (_swigobj->GetData())
1293static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1294 PyObject * _resultobj;
1295 long _result;
1296 wxListItem * _arg0;
1297 PyObject * _argo0 = 0;
1298 char *_kwnames[] = { "self", NULL };
1299
1300 self = self;
1301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0))
1302 return NULL;
1303 if (_argo0) {
1304 if (_argo0 == Py_None) { _arg0 = NULL; }
1305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p.");
1307 return NULL;
1308 }
1309 }
1310{
1311 wxPy_BEGIN_ALLOW_THREADS;
1312 _result = (long )wxListItem_GetData(_arg0);
1313
1314 wxPy_END_ALLOW_THREADS;
1315 if (PyErr_Occurred()) return NULL;
1316} _resultobj = Py_BuildValue("l",_result);
1317 return _resultobj;
1318}
1319
1320#define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth())
1321static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1322 PyObject * _resultobj;
1323 int _result;
1324 wxListItem * _arg0;
1325 PyObject * _argo0 = 0;
1326 char *_kwnames[] = { "self", NULL };
1327
1328 self = self;
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0))
1330 return NULL;
1331 if (_argo0) {
1332 if (_argo0 == Py_None) { _arg0 = NULL; }
1333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p.");
1335 return NULL;
1336 }
1337 }
1338{
1339 wxPy_BEGIN_ALLOW_THREADS;
1340 _result = (int )wxListItem_GetWidth(_arg0);
1341
1342 wxPy_END_ALLOW_THREADS;
1343 if (PyErr_Occurred()) return NULL;
1344} _resultobj = Py_BuildValue("i",_result);
1345 return _resultobj;
1346}
1347
1348#define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign())
1349static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
1350 PyObject * _resultobj;
1351 wxListColumnFormat _result;
1352 wxListItem * _arg0;
1353 PyObject * _argo0 = 0;
1354 char *_kwnames[] = { "self", NULL };
1355
1356 self = self;
1357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0))
1358 return NULL;
1359 if (_argo0) {
1360 if (_argo0 == Py_None) { _arg0 = NULL; }
1361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p.");
1363 return NULL;
1364 }
1365 }
1366{
1367 wxPy_BEGIN_ALLOW_THREADS;
1368 _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0);
1369
1370 wxPy_END_ALLOW_THREADS;
1371 if (PyErr_Occurred()) return NULL;
1372} _resultobj = Py_BuildValue("i",_result);
1373 return _resultobj;
1374}
1375
1376#define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes())
1377static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1378 PyObject * _resultobj;
1379 wxListItemAttr * _result;
1380 wxListItem * _arg0;
1381 PyObject * _argo0 = 0;
1382 char *_kwnames[] = { "self", NULL };
1383 char _ptemp[128];
1384
1385 self = self;
1386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0))
1387 return NULL;
1388 if (_argo0) {
1389 if (_argo0 == Py_None) { _arg0 = NULL; }
1390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p.");
1392 return NULL;
1393 }
1394 }
1395{
1396 wxPy_BEGIN_ALLOW_THREADS;
1397 _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0);
1398
1399 wxPy_END_ALLOW_THREADS;
1400 if (PyErr_Occurred()) return NULL;
1401} if (_result) {
1402 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p");
1403 _resultobj = Py_BuildValue("s",_ptemp);
1404 } else {
1405 Py_INCREF(Py_None);
1406 _resultobj = Py_None;
1407 }
1408 return _resultobj;
1409}
1410
1411#define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes())
1412static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1413 PyObject * _resultobj;
1414 bool _result;
1415 wxListItem * _arg0;
1416 PyObject * _argo0 = 0;
1417 char *_kwnames[] = { "self", NULL };
1418
1419 self = self;
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0))
1421 return NULL;
1422 if (_argo0) {
1423 if (_argo0 == Py_None) { _arg0 = NULL; }
1424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p.");
1426 return NULL;
1427 }
1428 }
1429{
1430 wxPy_BEGIN_ALLOW_THREADS;
1431 _result = (bool )wxListItem_HasAttributes(_arg0);
1432
1433 wxPy_END_ALLOW_THREADS;
1434 if (PyErr_Occurred()) return NULL;
1435} _resultobj = Py_BuildValue("i",_result);
1436 return _resultobj;
1437}
1438
1439#define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
1440static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1441 PyObject * _resultobj;
1442 wxColour * _result;
1443 wxListItem * _arg0;
1444 PyObject * _argo0 = 0;
1445 char *_kwnames[] = { "self", NULL };
1446 char _ptemp[128];
1447
1448 self = self;
1449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0))
1450 return NULL;
1451 if (_argo0) {
1452 if (_argo0 == Py_None) { _arg0 = NULL; }
1453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p.");
1455 return NULL;
1456 }
1457 }
1458{
1459 wxPy_BEGIN_ALLOW_THREADS;
1460 _result = new wxColour (wxListItem_GetTextColour(_arg0));
1461
1462 wxPy_END_ALLOW_THREADS;
1463 if (PyErr_Occurred()) return NULL;
1464} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1465 _resultobj = Py_BuildValue("s",_ptemp);
1466 return _resultobj;
1467}
1468
1469#define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1470static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1471 PyObject * _resultobj;
1472 wxColour * _result;
1473 wxListItem * _arg0;
1474 PyObject * _argo0 = 0;
1475 char *_kwnames[] = { "self", NULL };
1476 char _ptemp[128];
1477
1478 self = self;
1479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0))
1480 return NULL;
1481 if (_argo0) {
1482 if (_argo0 == Py_None) { _arg0 = NULL; }
1483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p.");
1485 return NULL;
1486 }
1487 }
1488{
1489 wxPy_BEGIN_ALLOW_THREADS;
1490 _result = new wxColour (wxListItem_GetBackgroundColour(_arg0));
1491
1492 wxPy_END_ALLOW_THREADS;
1493 if (PyErr_Occurred()) return NULL;
1494} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1495 _resultobj = Py_BuildValue("s",_ptemp);
1496 return _resultobj;
1497}
1498
1499#define wxListItem_GetFont(_swigobj) (_swigobj->GetFont())
1500static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1501 PyObject * _resultobj;
1502 wxFont * _result;
1503 wxListItem * _arg0;
1504 PyObject * _argo0 = 0;
1505 char *_kwnames[] = { "self", NULL };
1506 char _ptemp[128];
1507
1508 self = self;
1509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0))
1510 return NULL;
1511 if (_argo0) {
1512 if (_argo0 == Py_None) { _arg0 = NULL; }
1513 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1514 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p.");
1515 return NULL;
1516 }
1517 }
1518{
1519 wxPy_BEGIN_ALLOW_THREADS;
1520 _result = new wxFont (wxListItem_GetFont(_arg0));
1521
1522 wxPy_END_ALLOW_THREADS;
1523 if (PyErr_Occurred()) return NULL;
1524} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
1525 _resultobj = Py_BuildValue("s",_ptemp);
1526 return _resultobj;
1527}
1528
1529#define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval)
1530static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1531 PyObject * _resultobj;
1532 long _result;
1533 wxListItem * _arg0;
1534 long _arg1;
1535 PyObject * _argo0 = 0;
1536 char *_kwnames[] = { "self","m_mask", NULL };
1537
1538 self = self;
1539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1))
1540 return NULL;
1541 if (_argo0) {
1542 if (_argo0 == Py_None) { _arg0 = NULL; }
1543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p.");
1545 return NULL;
1546 }
1547 }
1548{
1549 wxPy_BEGIN_ALLOW_THREADS;
1550 _result = (long )wxListItem_m_mask_set(_arg0,_arg1);
1551
1552 wxPy_END_ALLOW_THREADS;
1553 if (PyErr_Occurred()) return NULL;
1554} _resultobj = Py_BuildValue("l",_result);
1555 return _resultobj;
1556}
1557
1558#define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask)
1559static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1560 PyObject * _resultobj;
1561 long _result;
1562 wxListItem * _arg0;
1563 PyObject * _argo0 = 0;
1564 char *_kwnames[] = { "self", NULL };
1565
1566 self = self;
1567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0))
1568 return NULL;
1569 if (_argo0) {
1570 if (_argo0 == Py_None) { _arg0 = NULL; }
1571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p.");
1573 return NULL;
1574 }
1575 }
1576{
1577 wxPy_BEGIN_ALLOW_THREADS;
1578 _result = (long )wxListItem_m_mask_get(_arg0);
1579
1580 wxPy_END_ALLOW_THREADS;
1581 if (PyErr_Occurred()) return NULL;
1582} _resultobj = Py_BuildValue("l",_result);
1583 return _resultobj;
1584}
1585
1586#define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval)
1587static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1588 PyObject * _resultobj;
1589 long _result;
1590 wxListItem * _arg0;
1591 long _arg1;
1592 PyObject * _argo0 = 0;
1593 char *_kwnames[] = { "self","m_itemId", NULL };
1594
1595 self = self;
1596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1))
1597 return NULL;
1598 if (_argo0) {
1599 if (_argo0 == Py_None) { _arg0 = NULL; }
1600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p.");
1602 return NULL;
1603 }
1604 }
1605{
1606 wxPy_BEGIN_ALLOW_THREADS;
1607 _result = (long )wxListItem_m_itemId_set(_arg0,_arg1);
1608
1609 wxPy_END_ALLOW_THREADS;
1610 if (PyErr_Occurred()) return NULL;
1611} _resultobj = Py_BuildValue("l",_result);
1612 return _resultobj;
1613}
1614
1615#define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId)
1616static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject * _resultobj;
1618 long _result;
1619 wxListItem * _arg0;
1620 PyObject * _argo0 = 0;
1621 char *_kwnames[] = { "self", NULL };
1622
1623 self = self;
1624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0))
1625 return NULL;
1626 if (_argo0) {
1627 if (_argo0 == Py_None) { _arg0 = NULL; }
1628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p.");
1630 return NULL;
1631 }
1632 }
1633{
1634 wxPy_BEGIN_ALLOW_THREADS;
1635 _result = (long )wxListItem_m_itemId_get(_arg0);
1636
1637 wxPy_END_ALLOW_THREADS;
1638 if (PyErr_Occurred()) return NULL;
1639} _resultobj = Py_BuildValue("l",_result);
1640 return _resultobj;
1641}
1642
1643#define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
1644static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1645 PyObject * _resultobj;
1646 int _result;
1647 wxListItem * _arg0;
1648 int _arg1;
1649 PyObject * _argo0 = 0;
1650 char *_kwnames[] = { "self","m_col", NULL };
1651
1652 self = self;
1653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1))
1654 return NULL;
1655 if (_argo0) {
1656 if (_argo0 == Py_None) { _arg0 = NULL; }
1657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p.");
1659 return NULL;
1660 }
1661 }
1662{
1663 wxPy_BEGIN_ALLOW_THREADS;
1664 _result = (int )wxListItem_m_col_set(_arg0,_arg1);
1665
1666 wxPy_END_ALLOW_THREADS;
1667 if (PyErr_Occurred()) return NULL;
1668} _resultobj = Py_BuildValue("i",_result);
1669 return _resultobj;
1670}
1671
1672#define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col)
1673static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1674 PyObject * _resultobj;
1675 int _result;
1676 wxListItem * _arg0;
1677 PyObject * _argo0 = 0;
1678 char *_kwnames[] = { "self", NULL };
1679
1680 self = self;
1681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0))
1682 return NULL;
1683 if (_argo0) {
1684 if (_argo0 == Py_None) { _arg0 = NULL; }
1685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p.");
1687 return NULL;
1688 }
1689 }
1690{
1691 wxPy_BEGIN_ALLOW_THREADS;
1692 _result = (int )wxListItem_m_col_get(_arg0);
1693
1694 wxPy_END_ALLOW_THREADS;
1695 if (PyErr_Occurred()) return NULL;
1696} _resultobj = Py_BuildValue("i",_result);
1697 return _resultobj;
1698}
1699
1700#define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval)
1701static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1702 PyObject * _resultobj;
1703 long _result;
1704 wxListItem * _arg0;
1705 long _arg1;
1706 PyObject * _argo0 = 0;
1707 char *_kwnames[] = { "self","m_state", NULL };
1708
1709 self = self;
1710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1))
1711 return NULL;
1712 if (_argo0) {
1713 if (_argo0 == Py_None) { _arg0 = NULL; }
1714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p.");
1716 return NULL;
1717 }
1718 }
1719{
1720 wxPy_BEGIN_ALLOW_THREADS;
1721 _result = (long )wxListItem_m_state_set(_arg0,_arg1);
1722
1723 wxPy_END_ALLOW_THREADS;
1724 if (PyErr_Occurred()) return NULL;
1725} _resultobj = Py_BuildValue("l",_result);
1726 return _resultobj;
1727}
1728
1729#define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state)
1730static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1731 PyObject * _resultobj;
1732 long _result;
1733 wxListItem * _arg0;
1734 PyObject * _argo0 = 0;
1735 char *_kwnames[] = { "self", NULL };
1736
1737 self = self;
1738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0))
1739 return NULL;
1740 if (_argo0) {
1741 if (_argo0 == Py_None) { _arg0 = NULL; }
1742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p.");
1744 return NULL;
1745 }
1746 }
1747{
1748 wxPy_BEGIN_ALLOW_THREADS;
1749 _result = (long )wxListItem_m_state_get(_arg0);
1750
1751 wxPy_END_ALLOW_THREADS;
1752 if (PyErr_Occurred()) return NULL;
1753} _resultobj = Py_BuildValue("l",_result);
1754 return _resultobj;
1755}
1756
1757#define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval)
1758static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject * _resultobj;
1760 long _result;
1761 wxListItem * _arg0;
1762 long _arg1;
1763 PyObject * _argo0 = 0;
1764 char *_kwnames[] = { "self","m_stateMask", NULL };
1765
1766 self = self;
1767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1))
1768 return NULL;
1769 if (_argo0) {
1770 if (_argo0 == Py_None) { _arg0 = NULL; }
1771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p.");
1773 return NULL;
1774 }
1775 }
1776{
1777 wxPy_BEGIN_ALLOW_THREADS;
1778 _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1);
1779
1780 wxPy_END_ALLOW_THREADS;
1781 if (PyErr_Occurred()) return NULL;
1782} _resultobj = Py_BuildValue("l",_result);
1783 return _resultobj;
1784}
1785
1786#define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask)
1787static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1788 PyObject * _resultobj;
1789 long _result;
1790 wxListItem * _arg0;
1791 PyObject * _argo0 = 0;
1792 char *_kwnames[] = { "self", NULL };
1793
1794 self = self;
1795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0))
1796 return NULL;
1797 if (_argo0) {
1798 if (_argo0 == Py_None) { _arg0 = NULL; }
1799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p.");
1801 return NULL;
1802 }
1803 }
1804{
1805 wxPy_BEGIN_ALLOW_THREADS;
1806 _result = (long )wxListItem_m_stateMask_get(_arg0);
1807
1808 wxPy_END_ALLOW_THREADS;
1809 if (PyErr_Occurred()) return NULL;
1810} _resultobj = Py_BuildValue("l",_result);
1811 return _resultobj;
1812}
1813
1814#define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval)
1815static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject * _resultobj;
1817 wxString * _result;
1818 wxListItem * _arg0;
1819 wxString * _arg1;
1820 PyObject * _argo0 = 0;
1821 PyObject * _obj1 = 0;
1822 char *_kwnames[] = { "self","m_text", NULL };
1823
1824 self = self;
1825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1))
1826 return NULL;
1827 if (_argo0) {
1828 if (_argo0 == Py_None) { _arg0 = NULL; }
1829 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1830 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p.");
1831 return NULL;
1832 }
1833 }
1834{
1835#if PYTHON_API_VERSION >= 1009
1836 char* tmpPtr; int tmpSize;
1837 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1838 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1839 return NULL;
1840 }
1841 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1842 return NULL;
1843 _arg1 = new wxString(tmpPtr, tmpSize);
1844#else
1845 if (!PyString_Check(_obj1)) {
1846 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1847 return NULL;
1848 }
1849 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1850#endif
1851}
1852{
1853 wxPy_BEGIN_ALLOW_THREADS;
1854 _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1);
1855
1856 wxPy_END_ALLOW_THREADS;
1857 if (PyErr_Occurred()) return NULL;
1858}{
1859 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1860}
1861{
1862 if (_obj1)
1863 delete _arg1;
1864}
1865 return _resultobj;
1866}
1867
1868#define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text)
1869static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1870 PyObject * _resultobj;
1871 wxString * _result;
1872 wxListItem * _arg0;
1873 PyObject * _argo0 = 0;
1874 char *_kwnames[] = { "self", NULL };
1875
1876 self = self;
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0))
1878 return NULL;
1879 if (_argo0) {
1880 if (_argo0 == Py_None) { _arg0 = NULL; }
1881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p.");
1883 return NULL;
1884 }
1885 }
1886{
1887 wxPy_BEGIN_ALLOW_THREADS;
1888 _result = (wxString *)wxListItem_m_text_get(_arg0);
1889
1890 wxPy_END_ALLOW_THREADS;
1891 if (PyErr_Occurred()) return NULL;
1892}{
1893 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1894}
1895 return _resultobj;
1896}
1897
1898#define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval)
1899static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1900 PyObject * _resultobj;
1901 int _result;
1902 wxListItem * _arg0;
1903 int _arg1;
1904 PyObject * _argo0 = 0;
1905 char *_kwnames[] = { "self","m_image", NULL };
1906
1907 self = self;
1908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1))
1909 return NULL;
1910 if (_argo0) {
1911 if (_argo0 == Py_None) { _arg0 = NULL; }
1912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p.");
1914 return NULL;
1915 }
1916 }
1917{
1918 wxPy_BEGIN_ALLOW_THREADS;
1919 _result = (int )wxListItem_m_image_set(_arg0,_arg1);
1920
1921 wxPy_END_ALLOW_THREADS;
1922 if (PyErr_Occurred()) return NULL;
1923} _resultobj = Py_BuildValue("i",_result);
1924 return _resultobj;
1925}
1926
1927#define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image)
1928static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1929 PyObject * _resultobj;
1930 int _result;
1931 wxListItem * _arg0;
1932 PyObject * _argo0 = 0;
1933 char *_kwnames[] = { "self", NULL };
1934
1935 self = self;
1936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0))
1937 return NULL;
1938 if (_argo0) {
1939 if (_argo0 == Py_None) { _arg0 = NULL; }
1940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p.");
1942 return NULL;
1943 }
1944 }
1945{
1946 wxPy_BEGIN_ALLOW_THREADS;
1947 _result = (int )wxListItem_m_image_get(_arg0);
1948
1949 wxPy_END_ALLOW_THREADS;
1950 if (PyErr_Occurred()) return NULL;
1951} _resultobj = Py_BuildValue("i",_result);
1952 return _resultobj;
1953}
1954
1955#define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval)
1956static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1957 PyObject * _resultobj;
1958 long _result;
1959 wxListItem * _arg0;
1960 long _arg1;
1961 PyObject * _argo0 = 0;
1962 char *_kwnames[] = { "self","m_data", NULL };
1963
1964 self = self;
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1))
1966 return NULL;
1967 if (_argo0) {
1968 if (_argo0 == Py_None) { _arg0 = NULL; }
1969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p.");
1971 return NULL;
1972 }
1973 }
1974{
1975 wxPy_BEGIN_ALLOW_THREADS;
1976 _result = (long )wxListItem_m_data_set(_arg0,_arg1);
1977
1978 wxPy_END_ALLOW_THREADS;
1979 if (PyErr_Occurred()) return NULL;
1980} _resultobj = Py_BuildValue("l",_result);
1981 return _resultobj;
1982}
1983
1984#define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data)
1985static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject * _resultobj;
1987 long _result;
1988 wxListItem * _arg0;
1989 PyObject * _argo0 = 0;
1990 char *_kwnames[] = { "self", NULL };
1991
1992 self = self;
1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0))
1994 return NULL;
1995 if (_argo0) {
1996 if (_argo0 == Py_None) { _arg0 = NULL; }
1997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p.");
1999 return NULL;
2000 }
2001 }
2002{
2003 wxPy_BEGIN_ALLOW_THREADS;
2004 _result = (long )wxListItem_m_data_get(_arg0);
2005
2006 wxPy_END_ALLOW_THREADS;
2007 if (PyErr_Occurred()) return NULL;
2008} _resultobj = Py_BuildValue("l",_result);
2009 return _resultobj;
2010}
2011
2012#define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval)
2013static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject * _resultobj;
2015 int _result;
2016 wxListItem * _arg0;
2017 int _arg1;
2018 PyObject * _argo0 = 0;
2019 char *_kwnames[] = { "self","m_format", NULL };
2020
2021 self = self;
2022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1))
2023 return NULL;
2024 if (_argo0) {
2025 if (_argo0 == Py_None) { _arg0 = NULL; }
2026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
2027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p.");
2028 return NULL;
2029 }
2030 }
2031{
2032 wxPy_BEGIN_ALLOW_THREADS;
2033 _result = (int )wxListItem_m_format_set(_arg0,_arg1);
2034
2035 wxPy_END_ALLOW_THREADS;
2036 if (PyErr_Occurred()) return NULL;
2037} _resultobj = Py_BuildValue("i",_result);
2038 return _resultobj;
2039}
2040
2041#define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format)
2042static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2043 PyObject * _resultobj;
2044 int _result;
2045 wxListItem * _arg0;
2046 PyObject * _argo0 = 0;
2047 char *_kwnames[] = { "self", NULL };
2048
2049 self = self;
2050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0))
2051 return NULL;
2052 if (_argo0) {
2053 if (_argo0 == Py_None) { _arg0 = NULL; }
2054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
2055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p.");
2056 return NULL;
2057 }
2058 }
2059{
2060 wxPy_BEGIN_ALLOW_THREADS;
2061 _result = (int )wxListItem_m_format_get(_arg0);
2062
2063 wxPy_END_ALLOW_THREADS;
2064 if (PyErr_Occurred()) return NULL;
2065} _resultobj = Py_BuildValue("i",_result);
2066 return _resultobj;
2067}
2068
2069#define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval)
2070static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2071 PyObject * _resultobj;
2072 int _result;
2073 wxListItem * _arg0;
2074 int _arg1;
2075 PyObject * _argo0 = 0;
2076 char *_kwnames[] = { "self","m_width", NULL };
2077
2078 self = self;
2079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1))
2080 return NULL;
2081 if (_argo0) {
2082 if (_argo0 == Py_None) { _arg0 = NULL; }
2083 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
2084 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p.");
2085 return NULL;
2086 }
2087 }
2088{
2089 wxPy_BEGIN_ALLOW_THREADS;
2090 _result = (int )wxListItem_m_width_set(_arg0,_arg1);
2091
2092 wxPy_END_ALLOW_THREADS;
2093 if (PyErr_Occurred()) return NULL;
2094} _resultobj = Py_BuildValue("i",_result);
2095 return _resultobj;
2096}
2097
2098#define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width)
2099static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2100 PyObject * _resultobj;
2101 int _result;
2102 wxListItem * _arg0;
2103 PyObject * _argo0 = 0;
2104 char *_kwnames[] = { "self", NULL };
2105
2106 self = self;
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0))
2108 return NULL;
2109 if (_argo0) {
2110 if (_argo0 == Py_None) { _arg0 = NULL; }
2111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
2112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p.");
2113 return NULL;
2114 }
2115 }
2116{
2117 wxPy_BEGIN_ALLOW_THREADS;
2118 _result = (int )wxListItem_m_width_get(_arg0);
2119
2120 wxPy_END_ALLOW_THREADS;
2121 if (PyErr_Occurred()) return NULL;
2122} _resultobj = Py_BuildValue("i",_result);
2123 return _resultobj;
2124}
2125
2126static void *SwigwxListEventTowxNotifyEvent(void *ptr) {
2127 wxListEvent *src;
2128 wxNotifyEvent *dest;
2129 src = (wxListEvent *) ptr;
2130 dest = (wxNotifyEvent *) src;
2131 return (void *) dest;
2132}
2133
2134static void *SwigwxListEventTowxCommandEvent(void *ptr) {
2135 wxListEvent *src;
2136 wxCommandEvent *dest;
2137 src = (wxListEvent *) ptr;
2138 dest = (wxCommandEvent *) src;
2139 return (void *) dest;
2140}
2141
2142static void *SwigwxListEventTowxEvent(void *ptr) {
2143 wxListEvent *src;
2144 wxEvent *dest;
2145 src = (wxListEvent *) ptr;
2146 dest = (wxEvent *) src;
2147 return (void *) dest;
2148}
2149
2150static void *SwigwxListEventTowxObject(void *ptr) {
2151 wxListEvent *src;
2152 wxObject *dest;
2153 src = (wxListEvent *) ptr;
2154 dest = (wxObject *) src;
2155 return (void *) dest;
2156}
2157
2158#define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1))
2159static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
2160 PyObject * _resultobj;
2161 wxListEvent * _result;
2162 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
2163 int _arg1 = (int ) 0;
2164 char *_kwnames[] = { "commandType","id", NULL };
2165 char _ptemp[128];
2166
2167 self = self;
2168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1))
2169 return NULL;
2170{
2171 wxPy_BEGIN_ALLOW_THREADS;
2172 _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1);
2173
2174 wxPy_END_ALLOW_THREADS;
2175 if (PyErr_Occurred()) return NULL;
2176} if (_result) {
2177 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p");
2178 _resultobj = Py_BuildValue("s",_ptemp);
2179 } else {
2180 Py_INCREF(Py_None);
2181 _resultobj = Py_None;
2182 }
2183 return _resultobj;
2184}
2185
2186#define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval)
2187static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2188 PyObject * _resultobj;
2189 int _result;
2190 wxListEvent * _arg0;
2191 int _arg1;
2192 PyObject * _argo0 = 0;
2193 char *_kwnames[] = { "self","m_code", NULL };
2194
2195 self = self;
2196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1))
2197 return NULL;
2198 if (_argo0) {
2199 if (_argo0 == Py_None) { _arg0 = NULL; }
2200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p.");
2202 return NULL;
2203 }
2204 }
2205{
2206 wxPy_BEGIN_ALLOW_THREADS;
2207 _result = (int )wxListEvent_m_code_set(_arg0,_arg1);
2208
2209 wxPy_END_ALLOW_THREADS;
2210 if (PyErr_Occurred()) return NULL;
2211} _resultobj = Py_BuildValue("i",_result);
2212 return _resultobj;
2213}
2214
2215#define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code)
2216static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2217 PyObject * _resultobj;
2218 int _result;
2219 wxListEvent * _arg0;
2220 PyObject * _argo0 = 0;
2221 char *_kwnames[] = { "self", NULL };
2222
2223 self = self;
2224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0))
2225 return NULL;
2226 if (_argo0) {
2227 if (_argo0 == Py_None) { _arg0 = NULL; }
2228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p.");
2230 return NULL;
2231 }
2232 }
2233{
2234 wxPy_BEGIN_ALLOW_THREADS;
2235 _result = (int )wxListEvent_m_code_get(_arg0);
2236
2237 wxPy_END_ALLOW_THREADS;
2238 if (PyErr_Occurred()) return NULL;
2239} _resultobj = Py_BuildValue("i",_result);
2240 return _resultobj;
2241}
2242
2243#define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval)
2244static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2245 PyObject * _resultobj;
2246 long _result;
2247 wxListEvent * _arg0;
2248 long _arg1;
2249 PyObject * _argo0 = 0;
2250 char *_kwnames[] = { "self","m_oldItemIndex", NULL };
2251
2252 self = self;
2253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1))
2254 return NULL;
2255 if (_argo0) {
2256 if (_argo0 == Py_None) { _arg0 = NULL; }
2257 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p.");
2259 return NULL;
2260 }
2261 }
2262{
2263 wxPy_BEGIN_ALLOW_THREADS;
2264 _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1);
2265
2266 wxPy_END_ALLOW_THREADS;
2267 if (PyErr_Occurred()) return NULL;
2268} _resultobj = Py_BuildValue("l",_result);
2269 return _resultobj;
2270}
2271
2272#define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex)
2273static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2274 PyObject * _resultobj;
2275 long _result;
2276 wxListEvent * _arg0;
2277 PyObject * _argo0 = 0;
2278 char *_kwnames[] = { "self", NULL };
2279
2280 self = self;
2281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0))
2282 return NULL;
2283 if (_argo0) {
2284 if (_argo0 == Py_None) { _arg0 = NULL; }
2285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p.");
2287 return NULL;
2288 }
2289 }
2290{
2291 wxPy_BEGIN_ALLOW_THREADS;
2292 _result = (long )wxListEvent_m_oldItemIndex_get(_arg0);
2293
2294 wxPy_END_ALLOW_THREADS;
2295 if (PyErr_Occurred()) return NULL;
2296} _resultobj = Py_BuildValue("l",_result);
2297 return _resultobj;
2298}
2299
2300#define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval)
2301static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2302 PyObject * _resultobj;
2303 long _result;
2304 wxListEvent * _arg0;
2305 long _arg1;
2306 PyObject * _argo0 = 0;
2307 char *_kwnames[] = { "self","m_itemIndex", NULL };
2308
2309 self = self;
2310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1))
2311 return NULL;
2312 if (_argo0) {
2313 if (_argo0 == Py_None) { _arg0 = NULL; }
2314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p.");
2316 return NULL;
2317 }
2318 }
2319{
2320 wxPy_BEGIN_ALLOW_THREADS;
2321 _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1);
2322
2323 wxPy_END_ALLOW_THREADS;
2324 if (PyErr_Occurred()) return NULL;
2325} _resultobj = Py_BuildValue("l",_result);
2326 return _resultobj;
2327}
2328
2329#define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex)
2330static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2331 PyObject * _resultobj;
2332 long _result;
2333 wxListEvent * _arg0;
2334 PyObject * _argo0 = 0;
2335 char *_kwnames[] = { "self", NULL };
2336
2337 self = self;
2338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0))
2339 return NULL;
2340 if (_argo0) {
2341 if (_argo0 == Py_None) { _arg0 = NULL; }
2342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p.");
2344 return NULL;
2345 }
2346 }
2347{
2348 wxPy_BEGIN_ALLOW_THREADS;
2349 _result = (long )wxListEvent_m_itemIndex_get(_arg0);
2350
2351 wxPy_END_ALLOW_THREADS;
2352 if (PyErr_Occurred()) return NULL;
2353} _resultobj = Py_BuildValue("l",_result);
2354 return _resultobj;
2355}
2356
2357#define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
2358static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2359 PyObject * _resultobj;
2360 int _result;
2361 wxListEvent * _arg0;
2362 int _arg1;
2363 PyObject * _argo0 = 0;
2364 char *_kwnames[] = { "self","m_col", NULL };
2365
2366 self = self;
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1))
2368 return NULL;
2369 if (_argo0) {
2370 if (_argo0 == Py_None) { _arg0 = NULL; }
2371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p.");
2373 return NULL;
2374 }
2375 }
2376{
2377 wxPy_BEGIN_ALLOW_THREADS;
2378 _result = (int )wxListEvent_m_col_set(_arg0,_arg1);
2379
2380 wxPy_END_ALLOW_THREADS;
2381 if (PyErr_Occurred()) return NULL;
2382} _resultobj = Py_BuildValue("i",_result);
2383 return _resultobj;
2384}
2385
2386#define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col)
2387static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2388 PyObject * _resultobj;
2389 int _result;
2390 wxListEvent * _arg0;
2391 PyObject * _argo0 = 0;
2392 char *_kwnames[] = { "self", NULL };
2393
2394 self = self;
2395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0))
2396 return NULL;
2397 if (_argo0) {
2398 if (_argo0 == Py_None) { _arg0 = NULL; }
2399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p.");
2401 return NULL;
2402 }
2403 }
2404{
2405 wxPy_BEGIN_ALLOW_THREADS;
2406 _result = (int )wxListEvent_m_col_get(_arg0);
2407
2408 wxPy_END_ALLOW_THREADS;
2409 if (PyErr_Occurred()) return NULL;
2410} _resultobj = Py_BuildValue("i",_result);
2411 return _resultobj;
2412}
2413
2414#define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval)
2415static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2416 PyObject * _resultobj;
2417 wxPoint * _result;
2418 wxListEvent * _arg0;
2419 wxPoint * _arg1;
2420 PyObject * _argo0 = 0;
2421 wxPoint temp;
2422 PyObject * _obj1 = 0;
2423 char *_kwnames[] = { "self","m_pointDrag", NULL };
2424 char _ptemp[128];
2425
2426 self = self;
2427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1))
2428 return NULL;
2429 if (_argo0) {
2430 if (_argo0 == Py_None) { _arg0 = NULL; }
2431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p.");
2433 return NULL;
2434 }
2435 }
2436{
2437 _arg1 = &temp;
2438 if (! wxPoint_helper(_obj1, &_arg1))
2439 return NULL;
2440}
2441{
2442 wxPy_BEGIN_ALLOW_THREADS;
2443 _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1);
2444
2445 wxPy_END_ALLOW_THREADS;
2446 if (PyErr_Occurred()) return NULL;
2447} if (_result) {
2448 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
2449 _resultobj = Py_BuildValue("s",_ptemp);
2450 } else {
2451 Py_INCREF(Py_None);
2452 _resultobj = Py_None;
2453 }
2454 return _resultobj;
2455}
2456
2457#define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag)
2458static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2459 PyObject * _resultobj;
2460 wxPoint * _result;
2461 wxListEvent * _arg0;
2462 PyObject * _argo0 = 0;
2463 char *_kwnames[] = { "self", NULL };
2464 char _ptemp[128];
2465
2466 self = self;
2467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0))
2468 return NULL;
2469 if (_argo0) {
2470 if (_argo0 == Py_None) { _arg0 = NULL; }
2471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p.");
2473 return NULL;
2474 }
2475 }
2476{
2477 wxPy_BEGIN_ALLOW_THREADS;
2478 _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0);
2479
2480 wxPy_END_ALLOW_THREADS;
2481 if (PyErr_Occurred()) return NULL;
2482} if (_result) {
2483 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
2484 _resultobj = Py_BuildValue("s",_ptemp);
2485 } else {
2486 Py_INCREF(Py_None);
2487 _resultobj = Py_None;
2488 }
2489 return _resultobj;
2490}
2491
2492#define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval)
2493static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2494 PyObject * _resultobj;
2495 wxListItem * _result;
2496 wxListEvent * _arg0;
2497 wxListItem * _arg1;
2498 PyObject * _argo0 = 0;
2499 PyObject * _argo1 = 0;
2500 char *_kwnames[] = { "self","m_item", NULL };
2501
2502 self = self;
2503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1))
2504 return NULL;
2505 if (_argo0) {
2506 if (_argo0 == Py_None) { _arg0 = NULL; }
2507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p.");
2509 return NULL;
2510 }
2511 }
2512 if (_argo1) {
2513 if (_argo1 == Py_None) { _arg1 = NULL; }
2514 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
2515 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p.");
2516 return NULL;
2517 }
2518 }
2519{
2520 wxPy_BEGIN_ALLOW_THREADS;
2521 _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1);
2522
2523 wxPy_END_ALLOW_THREADS;
2524 if (PyErr_Occurred()) return NULL;
2525}{ _resultobj = wxPyMake_wxObject(_result); }
2526 return _resultobj;
2527}
2528
2529#define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item)
2530static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2531 PyObject * _resultobj;
2532 wxListItem * _result;
2533 wxListEvent * _arg0;
2534 PyObject * _argo0 = 0;
2535 char *_kwnames[] = { "self", NULL };
2536
2537 self = self;
2538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0))
2539 return NULL;
2540 if (_argo0) {
2541 if (_argo0 == Py_None) { _arg0 = NULL; }
2542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p.");
2544 return NULL;
2545 }
2546 }
2547{
2548 wxPy_BEGIN_ALLOW_THREADS;
2549 _result = (wxListItem *)wxListEvent_m_item_get(_arg0);
2550
2551 wxPy_END_ALLOW_THREADS;
2552 if (PyErr_Occurred()) return NULL;
2553}{ _resultobj = wxPyMake_wxObject(_result); }
2554 return _resultobj;
2555}
2556
2557#define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode())
2558static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
2559 PyObject * _resultobj;
2560 int _result;
2561 wxListEvent * _arg0;
2562 PyObject * _argo0 = 0;
2563 char *_kwnames[] = { "self", NULL };
2564
2565 self = self;
2566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0))
2567 return NULL;
2568 if (_argo0) {
2569 if (_argo0 == Py_None) { _arg0 = NULL; }
2570 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2571 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p.");
2572 return NULL;
2573 }
2574 }
2575{
2576 wxPy_BEGIN_ALLOW_THREADS;
2577 _result = (int )wxListEvent_GetCode(_arg0);
2578
2579 wxPy_END_ALLOW_THREADS;
2580 if (PyErr_Occurred()) return NULL;
2581} _resultobj = Py_BuildValue("i",_result);
2582 return _resultobj;
2583}
2584
2585#define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex())
2586static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
2587 PyObject * _resultobj;
2588 long _result;
2589 wxListEvent * _arg0;
2590 PyObject * _argo0 = 0;
2591 char *_kwnames[] = { "self", NULL };
2592
2593 self = self;
2594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0))
2595 return NULL;
2596 if (_argo0) {
2597 if (_argo0 == Py_None) { _arg0 = NULL; }
2598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p.");
2600 return NULL;
2601 }
2602 }
2603{
2604 wxPy_BEGIN_ALLOW_THREADS;
2605 _result = (long )wxListEvent_GetIndex(_arg0);
2606
2607 wxPy_END_ALLOW_THREADS;
2608 if (PyErr_Occurred()) return NULL;
2609} _resultobj = Py_BuildValue("l",_result);
2610 return _resultobj;
2611}
2612
2613#define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn())
2614static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
2615 PyObject * _resultobj;
2616 int _result;
2617 wxListEvent * _arg0;
2618 PyObject * _argo0 = 0;
2619 char *_kwnames[] = { "self", NULL };
2620
2621 self = self;
2622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0))
2623 return NULL;
2624 if (_argo0) {
2625 if (_argo0 == Py_None) { _arg0 = NULL; }
2626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p.");
2628 return NULL;
2629 }
2630 }
2631{
2632 wxPy_BEGIN_ALLOW_THREADS;
2633 _result = (int )wxListEvent_GetColumn(_arg0);
2634
2635 wxPy_END_ALLOW_THREADS;
2636 if (PyErr_Occurred()) return NULL;
2637} _resultobj = Py_BuildValue("i",_result);
2638 return _resultobj;
2639}
2640
2641#define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
2642static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2643 PyObject * _resultobj;
2644 wxPoint * _result;
2645 wxListEvent * _arg0;
2646 PyObject * _argo0 = 0;
2647 char *_kwnames[] = { "self", NULL };
2648 char _ptemp[128];
2649
2650 self = self;
2651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0))
2652 return NULL;
2653 if (_argo0) {
2654 if (_argo0 == Py_None) { _arg0 = NULL; }
2655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p.");
2657 return NULL;
2658 }
2659 }
2660{
2661 wxPy_BEGIN_ALLOW_THREADS;
2662 _result = new wxPoint (wxListEvent_GetPoint(_arg0));
2663
2664 wxPy_END_ALLOW_THREADS;
2665 if (PyErr_Occurred()) return NULL;
2666} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2667 _resultobj = Py_BuildValue("s",_ptemp);
2668 return _resultobj;
2669}
2670
2671#define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
2672static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2673 PyObject * _resultobj;
2674 wxString * _result;
2675 wxListEvent * _arg0;
2676 PyObject * _argo0 = 0;
2677 char *_kwnames[] = { "self", NULL };
2678
2679 self = self;
2680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0))
2681 return NULL;
2682 if (_argo0) {
2683 if (_argo0 == Py_None) { _arg0 = NULL; }
2684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p.");
2686 return NULL;
2687 }
2688 }
2689{
2690 wxPy_BEGIN_ALLOW_THREADS;
2691 const wxString & _result_ref = wxListEvent_GetLabel(_arg0);
2692 _result = (wxString *) &_result_ref;
2693
2694 wxPy_END_ALLOW_THREADS;
2695 if (PyErr_Occurred()) return NULL;
2696}{
2697 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2698}
2699 return _resultobj;
2700}
2701
2702#define wxListEvent_GetText(_swigobj) (_swigobj->GetText())
2703static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject * _resultobj;
2705 wxString * _result;
2706 wxListEvent * _arg0;
2707 PyObject * _argo0 = 0;
2708 char *_kwnames[] = { "self", NULL };
2709
2710 self = self;
2711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0))
2712 return NULL;
2713 if (_argo0) {
2714 if (_argo0 == Py_None) { _arg0 = NULL; }
2715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p.");
2717 return NULL;
2718 }
2719 }
2720{
2721 wxPy_BEGIN_ALLOW_THREADS;
2722 const wxString & _result_ref = wxListEvent_GetText(_arg0);
2723 _result = (wxString *) &_result_ref;
2724
2725 wxPy_END_ALLOW_THREADS;
2726 if (PyErr_Occurred()) return NULL;
2727}{
2728 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2729}
2730 return _resultobj;
2731}
2732
2733#define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage())
2734static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject * _resultobj;
2736 int _result;
2737 wxListEvent * _arg0;
2738 PyObject * _argo0 = 0;
2739 char *_kwnames[] = { "self", NULL };
2740
2741 self = self;
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0))
2743 return NULL;
2744 if (_argo0) {
2745 if (_argo0 == Py_None) { _arg0 = NULL; }
2746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p.");
2748 return NULL;
2749 }
2750 }
2751{
2752 wxPy_BEGIN_ALLOW_THREADS;
2753 _result = (int )wxListEvent_GetImage(_arg0);
2754
2755 wxPy_END_ALLOW_THREADS;
2756 if (PyErr_Occurred()) return NULL;
2757} _resultobj = Py_BuildValue("i",_result);
2758 return _resultobj;
2759}
2760
2761#define wxListEvent_GetData(_swigobj) (_swigobj->GetData())
2762static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2763 PyObject * _resultobj;
2764 long _result;
2765 wxListEvent * _arg0;
2766 PyObject * _argo0 = 0;
2767 char *_kwnames[] = { "self", NULL };
2768
2769 self = self;
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0))
2771 return NULL;
2772 if (_argo0) {
2773 if (_argo0 == Py_None) { _arg0 = NULL; }
2774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p.");
2776 return NULL;
2777 }
2778 }
2779{
2780 wxPy_BEGIN_ALLOW_THREADS;
2781 _result = (long )wxListEvent_GetData(_arg0);
2782
2783 wxPy_END_ALLOW_THREADS;
2784 if (PyErr_Occurred()) return NULL;
2785} _resultobj = Py_BuildValue("l",_result);
2786 return _resultobj;
2787}
2788
2789#define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask())
2790static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2791 PyObject * _resultobj;
2792 long _result;
2793 wxListEvent * _arg0;
2794 PyObject * _argo0 = 0;
2795 char *_kwnames[] = { "self", NULL };
2796
2797 self = self;
2798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0))
2799 return NULL;
2800 if (_argo0) {
2801 if (_argo0 == Py_None) { _arg0 = NULL; }
2802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p.");
2804 return NULL;
2805 }
2806 }
2807{
2808 wxPy_BEGIN_ALLOW_THREADS;
2809 _result = (long )wxListEvent_GetMask(_arg0);
2810
2811 wxPy_END_ALLOW_THREADS;
2812 if (PyErr_Occurred()) return NULL;
2813} _resultobj = Py_BuildValue("l",_result);
2814 return _resultobj;
2815}
2816
2817#define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem())
2818static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2819 PyObject * _resultobj;
2820 wxListItem * _result;
2821 wxListEvent * _arg0;
2822 PyObject * _argo0 = 0;
2823 char *_kwnames[] = { "self", NULL };
2824
2825 self = self;
2826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0))
2827 return NULL;
2828 if (_argo0) {
2829 if (_argo0 == Py_None) { _arg0 = NULL; }
2830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p.");
2832 return NULL;
2833 }
2834 }
2835{
2836 wxPy_BEGIN_ALLOW_THREADS;
2837 const wxListItem & _result_ref = wxListEvent_GetItem(_arg0);
2838 _result = (wxListItem *) &_result_ref;
2839
2840 wxPy_END_ALLOW_THREADS;
2841 if (PyErr_Occurred()) return NULL;
2842}{ _resultobj = wxPyMake_wxObject(_result); }
2843 return _resultobj;
2844}
2845
2846#define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom())
2847static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
2848 PyObject * _resultobj;
2849 long _result;
2850 wxListEvent * _arg0;
2851 PyObject * _argo0 = 0;
2852 char *_kwnames[] = { "self", NULL };
2853
2854 self = self;
2855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0))
2856 return NULL;
2857 if (_argo0) {
2858 if (_argo0 == Py_None) { _arg0 = NULL; }
2859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p.");
2861 return NULL;
2862 }
2863 }
2864{
2865 wxPy_BEGIN_ALLOW_THREADS;
2866 _result = (long )wxListEvent_GetCacheFrom(_arg0);
2867
2868 wxPy_END_ALLOW_THREADS;
2869 if (PyErr_Occurred()) return NULL;
2870} _resultobj = Py_BuildValue("l",_result);
2871 return _resultobj;
2872}
2873
2874#define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo())
2875static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2876 PyObject * _resultobj;
2877 long _result;
2878 wxListEvent * _arg0;
2879 PyObject * _argo0 = 0;
2880 char *_kwnames[] = { "self", NULL };
2881
2882 self = self;
2883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0))
2884 return NULL;
2885 if (_argo0) {
2886 if (_argo0 == Py_None) { _arg0 = NULL; }
2887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p.");
2889 return NULL;
2890 }
2891 }
2892{
2893 wxPy_BEGIN_ALLOW_THREADS;
2894 _result = (long )wxListEvent_GetCacheTo(_arg0);
2895
2896 wxPy_END_ALLOW_THREADS;
2897 if (PyErr_Occurred()) return NULL;
2898} _resultobj = Py_BuildValue("l",_result);
2899 return _resultobj;
2900}
2901
2902static void *SwigwxPyListCtrlTowxControl(void *ptr) {
2903 wxPyListCtrl *src;
2904 wxControl *dest;
2905 src = (wxPyListCtrl *) ptr;
2906 dest = (wxControl *) src;
2907 return (void *) dest;
2908}
2909
2910static void *SwigwxPyListCtrlTowxWindow(void *ptr) {
2911 wxPyListCtrl *src;
2912 wxWindow *dest;
2913 src = (wxPyListCtrl *) ptr;
2914 dest = (wxWindow *) src;
2915 return (void *) dest;
2916}
2917
2918static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) {
2919 wxPyListCtrl *src;
2920 wxEvtHandler *dest;
2921 src = (wxPyListCtrl *) ptr;
2922 dest = (wxEvtHandler *) src;
2923 return (void *) dest;
2924}
2925
2926static void *SwigwxPyListCtrlTowxObject(void *ptr) {
2927 wxPyListCtrl *src;
2928 wxObject *dest;
2929 src = (wxPyListCtrl *) ptr;
2930 dest = (wxObject *) src;
2931 return (void *) dest;
2932}
2933
2934#define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2935static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
2936 PyObject * _resultobj;
2937 wxPyListCtrl * _result;
2938 wxWindow * _arg0;
2939 wxWindowID _arg1 = (wxWindowID ) -1;
2940 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
2941 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2942 long _arg4 = (long ) (wxLC_ICON);
2943 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
2944 char * _arg6 = (char *) "listCtrl";
2945 PyObject * _argo0 = 0;
2946 wxPoint temp;
2947 PyObject * _obj2 = 0;
2948 wxSize temp0;
2949 PyObject * _obj3 = 0;
2950 PyObject * _argo5 = 0;
2951 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
2952 char _ptemp[128];
2953
2954 self = self;
2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
2956 return NULL;
2957 if (_argo0) {
2958 if (_argo0 == Py_None) { _arg0 = NULL; }
2959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p.");
2961 return NULL;
2962 }
2963 }
2964 if (_obj2)
2965{
2966 _arg2 = &temp;
2967 if (! wxPoint_helper(_obj2, &_arg2))
2968 return NULL;
2969}
2970 if (_obj3)
2971{
2972 _arg3 = &temp0;
2973 if (! wxSize_helper(_obj3, &_arg3))
2974 return NULL;
2975}
2976 if (_argo5) {
2977 if (_argo5 == Py_None) { _arg5 = NULL; }
2978 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
2979 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p.");
2980 return NULL;
2981 }
2982 }
2983{
2984 wxPy_BEGIN_ALLOW_THREADS;
2985 _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
2986
2987 wxPy_END_ALLOW_THREADS;
2988 if (PyErr_Occurred()) return NULL;
2989} if (_result) {
2990 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p");
2991 _resultobj = Py_BuildValue("s",_ptemp);
2992 } else {
2993 Py_INCREF(Py_None);
2994 _resultobj = Py_None;
2995 }
2996 return _resultobj;
2997}
2998
2999#define new_wxPreListCtrl() (new wxPyListCtrl())
3000static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
3001 PyObject * _resultobj;
3002 wxPyListCtrl * _result;
3003 char *_kwnames[] = { NULL };
3004 char _ptemp[128];
3005
3006 self = self;
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames))
3008 return NULL;
3009{
3010 wxPy_BEGIN_ALLOW_THREADS;
3011 _result = (wxPyListCtrl *)new_wxPreListCtrl();
3012
3013 wxPy_END_ALLOW_THREADS;
3014 if (PyErr_Occurred()) return NULL;
3015} if (_result) {
3016 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p");
3017 _resultobj = Py_BuildValue("s",_ptemp);
3018 } else {
3019 Py_INCREF(Py_None);
3020 _resultobj = Py_None;
3021 }
3022 return _resultobj;
3023}
3024
3025#define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3026static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3027 PyObject * _resultobj;
3028 bool _result;
3029 wxPyListCtrl * _arg0;
3030 wxWindow * _arg1;
3031 wxWindowID _arg2 = (wxWindowID ) -1;
3032 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3033 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3034 long _arg5 = (long ) (wxLC_ICON);
3035 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
3036 char * _arg7 = (char *) "listCtrl";
3037 PyObject * _argo0 = 0;
3038 PyObject * _argo1 = 0;
3039 wxPoint temp;
3040 PyObject * _obj3 = 0;
3041 wxSize temp0;
3042 PyObject * _obj4 = 0;
3043 PyObject * _argo6 = 0;
3044 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
3045
3046 self = self;
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
3048 return NULL;
3049 if (_argo0) {
3050 if (_argo0 == Py_None) { _arg0 = NULL; }
3051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p.");
3053 return NULL;
3054 }
3055 }
3056 if (_argo1) {
3057 if (_argo1 == Py_None) { _arg1 = NULL; }
3058 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3059 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p.");
3060 return NULL;
3061 }
3062 }
3063 if (_obj3)
3064{
3065 _arg3 = &temp;
3066 if (! wxPoint_helper(_obj3, &_arg3))
3067 return NULL;
3068}
3069 if (_obj4)
3070{
3071 _arg4 = &temp0;
3072 if (! wxSize_helper(_obj4, &_arg4))
3073 return NULL;
3074}
3075 if (_argo6) {
3076 if (_argo6 == Py_None) { _arg6 = NULL; }
3077 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
3078 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p.");
3079 return NULL;
3080 }
3081 }
3082{
3083 wxPy_BEGIN_ALLOW_THREADS;
3084 _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
3085
3086 wxPy_END_ALLOW_THREADS;
3087 if (PyErr_Occurred()) return NULL;
3088} _resultobj = Py_BuildValue("i",_result);
3089 return _resultobj;
3090}
3091
3092#define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3093static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3094 PyObject * _resultobj;
3095 wxPyListCtrl * _arg0;
3096 PyObject * _arg1;
3097 PyObject * _arg2;
3098 PyObject * _argo0 = 0;
3099 PyObject * _obj1 = 0;
3100 PyObject * _obj2 = 0;
3101 char *_kwnames[] = { "self","self","_class", NULL };
3102
3103 self = self;
3104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3105 return NULL;
3106 if (_argo0) {
3107 if (_argo0 == Py_None) { _arg0 = NULL; }
3108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p.");
3110 return NULL;
3111 }
3112 }
3113{
3114 _arg1 = _obj1;
3115}
3116{
3117 _arg2 = _obj2;
3118}
3119{
3120 wxPy_BEGIN_ALLOW_THREADS;
3121 wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2);
3122
3123 wxPy_END_ALLOW_THREADS;
3124 if (PyErr_Occurred()) return NULL;
3125} Py_INCREF(Py_None);
3126 _resultobj = Py_None;
3127 return _resultobj;
3128}
3129
3130#define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3131static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3132 PyObject * _resultobj;
3133 bool _result;
3134 wxPyListCtrl * _arg0;
3135 wxColour * _arg1;
3136 PyObject * _argo0 = 0;
3137 wxColour temp;
3138 PyObject * _obj1 = 0;
3139 char *_kwnames[] = { "self","col", NULL };
3140
3141 self = self;
3142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1))
3143 return NULL;
3144 if (_argo0) {
3145 if (_argo0 == Py_None) { _arg0 = NULL; }
3146 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3147 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p.");
3148 return NULL;
3149 }
3150 }
3151{
3152 _arg1 = &temp;
3153 if (! wxColour_helper(_obj1, &_arg1))
3154 return NULL;
3155}
3156{
3157 wxPy_BEGIN_ALLOW_THREADS;
3158 _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1);
3159
3160 wxPy_END_ALLOW_THREADS;
3161 if (PyErr_Occurred()) return NULL;
3162} _resultobj = Py_BuildValue("i",_result);
3163 return _resultobj;
3164}
3165
3166#define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3167static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3168 PyObject * _resultobj;
3169 bool _result;
3170 wxPyListCtrl * _arg0;
3171 wxColour * _arg1;
3172 PyObject * _argo0 = 0;
3173 wxColour temp;
3174 PyObject * _obj1 = 0;
3175 char *_kwnames[] = { "self","col", NULL };
3176
3177 self = self;
3178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
3179 return NULL;
3180 if (_argo0) {
3181 if (_argo0 == Py_None) { _arg0 = NULL; }
3182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p.");
3184 return NULL;
3185 }
3186 }
3187{
3188 _arg1 = &temp;
3189 if (! wxColour_helper(_obj1, &_arg1))
3190 return NULL;
3191}
3192{
3193 wxPy_BEGIN_ALLOW_THREADS;
3194 _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1);
3195
3196 wxPy_END_ALLOW_THREADS;
3197 if (PyErr_Occurred()) return NULL;
3198} _resultobj = Py_BuildValue("i",_result);
3199 return _resultobj;
3200}
3201
3202#define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1))
3203static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
3204 PyObject * _resultobj;
3205 bool _result;
3206 wxPyListCtrl * _arg0;
3207 int _arg1;
3208 wxListItem * _arg2;
3209 PyObject * _argo0 = 0;
3210 PyObject * _argo2 = 0;
3211 char *_kwnames[] = { "self","col","item", NULL };
3212
3213 self = self;
3214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
3215 return NULL;
3216 if (_argo0) {
3217 if (_argo0 == Py_None) { _arg0 = NULL; }
3218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p.");
3220 return NULL;
3221 }
3222 }
3223 if (_argo2) {
3224 if (_argo2 == Py_None) { _arg2 = NULL; }
3225 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
3226 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p.");
3227 return NULL;
3228 }
3229 }
3230{
3231 wxPy_BEGIN_ALLOW_THREADS;
3232 _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2);
3233
3234 wxPy_END_ALLOW_THREADS;
3235 if (PyErr_Occurred()) return NULL;
3236} _resultobj = Py_BuildValue("i",_result);
3237 return _resultobj;
3238}
3239
3240#define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1))
3241static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
3242 PyObject * _resultobj;
3243 bool _result;
3244 wxPyListCtrl * _arg0;
3245 int _arg1;
3246 wxListItem * _arg2;
3247 PyObject * _argo0 = 0;
3248 PyObject * _argo2 = 0;
3249 char *_kwnames[] = { "self","col","item", NULL };
3250
3251 self = self;
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
3253 return NULL;
3254 if (_argo0) {
3255 if (_argo0 == Py_None) { _arg0 = NULL; }
3256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p.");
3258 return NULL;
3259 }
3260 }
3261 if (_argo2) {
3262 if (_argo2 == Py_None) { _arg2 = NULL; }
3263 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
3264 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p.");
3265 return NULL;
3266 }
3267 }
3268{
3269 wxPy_BEGIN_ALLOW_THREADS;
3270 _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2);
3271
3272 wxPy_END_ALLOW_THREADS;
3273 if (PyErr_Occurred()) return NULL;
3274} _resultobj = Py_BuildValue("i",_result);
3275 return _resultobj;
3276}
3277
3278#define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0))
3279static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3280 PyObject * _resultobj;
3281 int _result;
3282 wxPyListCtrl * _arg0;
3283 int _arg1;
3284 PyObject * _argo0 = 0;
3285 char *_kwnames[] = { "self","col", NULL };
3286
3287 self = self;
3288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1))
3289 return NULL;
3290 if (_argo0) {
3291 if (_argo0 == Py_None) { _arg0 = NULL; }
3292 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3293 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p.");
3294 return NULL;
3295 }
3296 }
3297{
3298 wxPy_BEGIN_ALLOW_THREADS;
3299 _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1);
3300
3301 wxPy_END_ALLOW_THREADS;
3302 if (PyErr_Occurred()) return NULL;
3303} _resultobj = Py_BuildValue("i",_result);
3304 return _resultobj;
3305}
3306
3307#define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1))
3308static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3309 PyObject * _resultobj;
3310 bool _result;
3311 wxPyListCtrl * _arg0;
3312 int _arg1;
3313 int _arg2;
3314 PyObject * _argo0 = 0;
3315 char *_kwnames[] = { "self","col","width", NULL };
3316
3317 self = self;
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2))
3319 return NULL;
3320 if (_argo0) {
3321 if (_argo0 == Py_None) { _arg0 = NULL; }
3322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p.");
3324 return NULL;
3325 }
3326 }
3327{
3328 wxPy_BEGIN_ALLOW_THREADS;
3329 _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2);
3330
3331 wxPy_END_ALLOW_THREADS;
3332 if (PyErr_Occurred()) return NULL;
3333} _resultobj = Py_BuildValue("i",_result);
3334 return _resultobj;
3335}
3336
3337#define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage())
3338static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3339 PyObject * _resultobj;
3340 int _result;
3341 wxPyListCtrl * _arg0;
3342 PyObject * _argo0 = 0;
3343 char *_kwnames[] = { "self", NULL };
3344
3345 self = self;
3346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0))
3347 return NULL;
3348 if (_argo0) {
3349 if (_argo0 == Py_None) { _arg0 = NULL; }
3350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p.");
3352 return NULL;
3353 }
3354 }
3355{
3356 wxPy_BEGIN_ALLOW_THREADS;
3357 _result = (int )wxListCtrl_GetCountPerPage(_arg0);
3358
3359 wxPy_END_ALLOW_THREADS;
3360 if (PyErr_Occurred()) return NULL;
3361} _resultobj = Py_BuildValue("i",_result);
3362 return _resultobj;
3363}
3364
3365static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) {
3366 wxListItem* info = new wxListItem;
3367 info->m_itemId = itemId;
3368 info->m_col = col;
3369 info->m_mask = 0xFFFF;
3370 self->GetItem(*info);
3371 return info;
3372 }
3373static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3374 PyObject * _resultobj;
3375 wxListItem * _result;
3376 wxPyListCtrl * _arg0;
3377 long _arg1;
3378 int _arg2 = (int ) 0;
3379 PyObject * _argo0 = 0;
3380 char *_kwnames[] = { "self","itemId","col", NULL };
3381
3382 self = self;
3383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2))
3384 return NULL;
3385 if (_argo0) {
3386 if (_argo0 == Py_None) { _arg0 = NULL; }
3387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p.");
3389 return NULL;
3390 }
3391 }
3392{
3393 wxPy_BEGIN_ALLOW_THREADS;
3394 _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2);
3395
3396 wxPy_END_ALLOW_THREADS;
3397 if (PyErr_Occurred()) return NULL;
3398}{ _resultobj = wxPyMake_wxObject(_result); }
3399 return _resultobj;
3400}
3401
3402#define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0))
3403static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3404 PyObject * _resultobj;
3405 bool _result;
3406 wxPyListCtrl * _arg0;
3407 wxListItem * _arg1;
3408 PyObject * _argo0 = 0;
3409 PyObject * _argo1 = 0;
3410 char *_kwnames[] = { "self","info", NULL };
3411
3412 self = self;
3413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1))
3414 return NULL;
3415 if (_argo0) {
3416 if (_argo0 == Py_None) { _arg0 = NULL; }
3417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p.");
3419 return NULL;
3420 }
3421 }
3422 if (_argo1) {
3423 if (_argo1 == Py_None) { _arg1 = NULL; }
3424 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
3425 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p.");
3426 return NULL;
3427 }
3428 }
3429{
3430 wxPy_BEGIN_ALLOW_THREADS;
3431 _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1);
3432
3433 wxPy_END_ALLOW_THREADS;
3434 if (PyErr_Occurred()) return NULL;
3435} _resultobj = Py_BuildValue("i",_result);
3436 return _resultobj;
3437}
3438
3439#define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3440static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3441 PyObject * _resultobj;
3442 long _result;
3443 wxPyListCtrl * _arg0;
3444 long _arg1;
3445 int _arg2;
3446 wxString * _arg3;
3447 int _arg4 = (int ) -1;
3448 PyObject * _argo0 = 0;
3449 PyObject * _obj3 = 0;
3450 char *_kwnames[] = { "self","index","col","label","imageId", NULL };
3451
3452 self = self;
3453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
3454 return NULL;
3455 if (_argo0) {
3456 if (_argo0 == Py_None) { _arg0 = NULL; }
3457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p.");
3459 return NULL;
3460 }
3461 }
3462{
3463#if PYTHON_API_VERSION >= 1009
3464 char* tmpPtr; int tmpSize;
3465 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
3466 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3467 return NULL;
3468 }
3469 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
3470 return NULL;
3471 _arg3 = new wxString(tmpPtr, tmpSize);
3472#else
3473 if (!PyString_Check(_obj3)) {
3474 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3475 return NULL;
3476 }
3477 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
3478#endif
3479}
3480{
3481 wxPy_BEGIN_ALLOW_THREADS;
3482 _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4);
3483
3484 wxPy_END_ALLOW_THREADS;
3485 if (PyErr_Occurred()) return NULL;
3486} _resultobj = Py_BuildValue("l",_result);
3487{
3488 if (_obj3)
3489 delete _arg3;
3490}
3491 return _resultobj;
3492}
3493
3494#define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1))
3495static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
3496 PyObject * _resultobj;
3497 int _result;
3498 wxPyListCtrl * _arg0;
3499 long _arg1;
3500 long _arg2;
3501 PyObject * _argo0 = 0;
3502 char *_kwnames[] = { "self","item","stateMask", NULL };
3503
3504 self = self;
3505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2))
3506 return NULL;
3507 if (_argo0) {
3508 if (_argo0 == Py_None) { _arg0 = NULL; }
3509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p.");
3511 return NULL;
3512 }
3513 }
3514{
3515 wxPy_BEGIN_ALLOW_THREADS;
3516 _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2);
3517
3518 wxPy_END_ALLOW_THREADS;
3519 if (PyErr_Occurred()) return NULL;
3520} _resultobj = Py_BuildValue("i",_result);
3521 return _resultobj;
3522}
3523
3524#define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2))
3525static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
3526 PyObject * _resultobj;
3527 bool _result;
3528 wxPyListCtrl * _arg0;
3529 long _arg1;
3530 long _arg2;
3531 long _arg3;
3532 PyObject * _argo0 = 0;
3533 char *_kwnames[] = { "self","item","state","stateMask", NULL };
3534
3535 self = self;
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3537 return NULL;
3538 if (_argo0) {
3539 if (_argo0 == Py_None) { _arg0 = NULL; }
3540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p.");
3542 return NULL;
3543 }
3544 }
3545{
3546 wxPy_BEGIN_ALLOW_THREADS;
3547 _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3);
3548
3549 wxPy_END_ALLOW_THREADS;
3550 if (PyErr_Occurred()) return NULL;
3551} _resultobj = Py_BuildValue("i",_result);
3552 return _resultobj;
3553}
3554
3555#define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
3556static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3557 PyObject * _resultobj;
3558 bool _result;
3559 wxPyListCtrl * _arg0;
3560 long _arg1;
3561 int _arg2;
3562 int _arg3;
3563 PyObject * _argo0 = 0;
3564 char *_kwnames[] = { "self","item","image","selImage", NULL };
3565
3566 self = self;
3567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3568 return NULL;
3569 if (_argo0) {
3570 if (_argo0 == Py_None) { _arg0 = NULL; }
3571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p.");
3573 return NULL;
3574 }
3575 }
3576{
3577 wxPy_BEGIN_ALLOW_THREADS;
3578 _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3);
3579
3580 wxPy_END_ALLOW_THREADS;
3581 if (PyErr_Occurred()) return NULL;
3582} _resultobj = Py_BuildValue("i",_result);
3583 return _resultobj;
3584}
3585
3586#define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
3587static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3588 PyObject * _resultobj;
3589 wxString * _result;
3590 wxPyListCtrl * _arg0;
3591 long _arg1;
3592 PyObject * _argo0 = 0;
3593 char *_kwnames[] = { "self","item", NULL };
3594
3595 self = self;
3596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1))
3597 return NULL;
3598 if (_argo0) {
3599 if (_argo0 == Py_None) { _arg0 = NULL; }
3600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p.");
3602 return NULL;
3603 }
3604 }
3605{
3606 wxPy_BEGIN_ALLOW_THREADS;
3607 _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1));
3608
3609 wxPy_END_ALLOW_THREADS;
3610 if (PyErr_Occurred()) return NULL;
3611}{
3612 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3613}
3614{
3615 delete _result;
3616}
3617 return _resultobj;
3618}
3619
3620#define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
3621static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3622 PyObject * _resultobj;
3623 wxPyListCtrl * _arg0;
3624 long _arg1;
3625 wxString * _arg2;
3626 PyObject * _argo0 = 0;
3627 PyObject * _obj2 = 0;
3628 char *_kwnames[] = { "self","item","str", NULL };
3629
3630 self = self;
3631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2))
3632 return NULL;
3633 if (_argo0) {
3634 if (_argo0 == Py_None) { _arg0 = NULL; }
3635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p.");
3637 return NULL;
3638 }
3639 }
3640{
3641#if PYTHON_API_VERSION >= 1009
3642 char* tmpPtr; int tmpSize;
3643 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3644 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3645 return NULL;
3646 }
3647 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3648 return NULL;
3649 _arg2 = new wxString(tmpPtr, tmpSize);
3650#else
3651 if (!PyString_Check(_obj2)) {
3652 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3653 return NULL;
3654 }
3655 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3656#endif
3657}
3658{
3659 wxPy_BEGIN_ALLOW_THREADS;
3660 wxListCtrl_SetItemText(_arg0,_arg1,*_arg2);
3661
3662 wxPy_END_ALLOW_THREADS;
3663 if (PyErr_Occurred()) return NULL;
3664} Py_INCREF(Py_None);
3665 _resultobj = Py_None;
3666{
3667 if (_obj2)
3668 delete _arg2;
3669}
3670 return _resultobj;
3671}
3672
3673#define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0))
3674static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3675 PyObject * _resultobj;
3676 long _result;
3677 wxPyListCtrl * _arg0;
3678 long _arg1;
3679 PyObject * _argo0 = 0;
3680 char *_kwnames[] = { "self","item", NULL };
3681
3682 self = self;
3683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1))
3684 return NULL;
3685 if (_argo0) {
3686 if (_argo0 == Py_None) { _arg0 = NULL; }
3687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p.");
3689 return NULL;
3690 }
3691 }
3692{
3693 wxPy_BEGIN_ALLOW_THREADS;
3694 _result = (long )wxListCtrl_GetItemData(_arg0,_arg1);
3695
3696 wxPy_END_ALLOW_THREADS;
3697 if (PyErr_Occurred()) return NULL;
3698} _resultobj = Py_BuildValue("l",_result);
3699 return _resultobj;
3700}
3701
3702#define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1))
3703static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3704 PyObject * _resultobj;
3705 bool _result;
3706 wxPyListCtrl * _arg0;
3707 long _arg1;
3708 long _arg2;
3709 PyObject * _argo0 = 0;
3710 char *_kwnames[] = { "self","item","data", NULL };
3711
3712 self = self;
3713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2))
3714 return NULL;
3715 if (_argo0) {
3716 if (_argo0 == Py_None) { _arg0 = NULL; }
3717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p.");
3719 return NULL;
3720 }
3721 }
3722{
3723 wxPy_BEGIN_ALLOW_THREADS;
3724 _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2);
3725
3726 wxPy_END_ALLOW_THREADS;
3727 if (PyErr_Occurred()) return NULL;
3728} _resultobj = Py_BuildValue("i",_result);
3729 return _resultobj;
3730}
3731
3732static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) {
3733 wxPoint* pos = new wxPoint;
3734 self->GetItemPosition(item, *pos);
3735 return pos;
3736 }
3737static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3738 PyObject * _resultobj;
3739 wxPoint * _result;
3740 wxPyListCtrl * _arg0;
3741 long _arg1;
3742 PyObject * _argo0 = 0;
3743 char *_kwnames[] = { "self","item", NULL };
3744 char _ptemp[128];
3745
3746 self = self;
3747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1))
3748 return NULL;
3749 if (_argo0) {
3750 if (_argo0 == Py_None) { _arg0 = NULL; }
3751 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p.");
3753 return NULL;
3754 }
3755 }
3756{
3757 wxPy_BEGIN_ALLOW_THREADS;
3758 _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1);
3759
3760 wxPy_END_ALLOW_THREADS;
3761 if (PyErr_Occurred()) return NULL;
3762} if (_result) {
3763 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
3764 _resultobj = Py_BuildValue("s",_ptemp);
3765 } else {
3766 Py_INCREF(Py_None);
3767 _resultobj = Py_None;
3768 }
3769 return _resultobj;
3770}
3771
3772static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) {
3773 wxRect* rect= new wxRect;
3774 self->GetItemRect(item, *rect, code);
3775 return rect;
3776 }
3777static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3778 PyObject * _resultobj;
3779 wxRect * _result;
3780 wxPyListCtrl * _arg0;
3781 long _arg1;
3782 int _arg2 = (int ) (wxLIST_RECT_BOUNDS);
3783 PyObject * _argo0 = 0;
3784 char *_kwnames[] = { "self","item","code", NULL };
3785 char _ptemp[128];
3786
3787 self = self;
3788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2))
3789 return NULL;
3790 if (_argo0) {
3791 if (_argo0 == Py_None) { _arg0 = NULL; }
3792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p.");
3794 return NULL;
3795 }
3796 }
3797{
3798 wxPy_BEGIN_ALLOW_THREADS;
3799 _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2);
3800
3801 wxPy_END_ALLOW_THREADS;
3802 if (PyErr_Occurred()) return NULL;
3803} if (_result) {
3804 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
3805 _resultobj = Py_BuildValue("s",_ptemp);
3806 } else {
3807 Py_INCREF(Py_None);
3808 _resultobj = Py_None;
3809 }
3810 return _resultobj;
3811}
3812
3813#define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1))
3814static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3815 PyObject * _resultobj;
3816 bool _result;
3817 wxPyListCtrl * _arg0;
3818 long _arg1;
3819 wxPoint * _arg2;
3820 PyObject * _argo0 = 0;
3821 wxPoint temp;
3822 PyObject * _obj2 = 0;
3823 char *_kwnames[] = { "self","item","pos", NULL };
3824
3825 self = self;
3826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2))
3827 return NULL;
3828 if (_argo0) {
3829 if (_argo0 == Py_None) { _arg0 = NULL; }
3830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p.");
3832 return NULL;
3833 }
3834 }
3835{
3836 _arg2 = &temp;
3837 if (! wxPoint_helper(_obj2, &_arg2))
3838 return NULL;
3839}
3840{
3841 wxPy_BEGIN_ALLOW_THREADS;
3842 _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2);
3843
3844 wxPy_END_ALLOW_THREADS;
3845 if (PyErr_Occurred()) return NULL;
3846} _resultobj = Py_BuildValue("i",_result);
3847 return _resultobj;
3848}
3849
3850#define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount())
3851static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3852 PyObject * _resultobj;
3853 int _result;
3854 wxPyListCtrl * _arg0;
3855 PyObject * _argo0 = 0;
3856 char *_kwnames[] = { "self", NULL };
3857
3858 self = self;
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0))
3860 return NULL;
3861 if (_argo0) {
3862 if (_argo0 == Py_None) { _arg0 = NULL; }
3863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p.");
3865 return NULL;
3866 }
3867 }
3868{
3869 wxPy_BEGIN_ALLOW_THREADS;
3870 _result = (int )wxListCtrl_GetItemCount(_arg0);
3871
3872 wxPy_END_ALLOW_THREADS;
3873 if (PyErr_Occurred()) return NULL;
3874} _resultobj = Py_BuildValue("i",_result);
3875 return _resultobj;
3876}
3877
3878#define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount())
3879static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject * _resultobj;
3881 int _result;
3882 wxPyListCtrl * _arg0;
3883 PyObject * _argo0 = 0;
3884 char *_kwnames[] = { "self", NULL };
3885
3886 self = self;
3887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0))
3888 return NULL;
3889 if (_argo0) {
3890 if (_argo0 == Py_None) { _arg0 = NULL; }
3891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p.");
3893 return NULL;
3894 }
3895 }
3896{
3897 wxPy_BEGIN_ALLOW_THREADS;
3898 _result = (int )wxListCtrl_GetColumnCount(_arg0);
3899
3900 wxPy_END_ALLOW_THREADS;
3901 if (PyErr_Occurred()) return NULL;
3902} _resultobj = Py_BuildValue("i",_result);
3903 return _resultobj;
3904}
3905
3906#define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0))
3907static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
3908 PyObject * _resultobj;
3909 int _result;
3910 wxPyListCtrl * _arg0;
3911 bool _arg1;
3912 PyObject * _argo0 = 0;
3913 int tempbool1;
3914 char *_kwnames[] = { "self","isSmall", NULL };
3915
3916 self = self;
3917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1))
3918 return NULL;
3919 if (_argo0) {
3920 if (_argo0 == Py_None) { _arg0 = NULL; }
3921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p.");
3923 return NULL;
3924 }
3925 }
3926 _arg1 = (bool ) tempbool1;
3927{
3928 wxPy_BEGIN_ALLOW_THREADS;
3929 _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1);
3930
3931 wxPy_END_ALLOW_THREADS;
3932 if (PyErr_Occurred()) return NULL;
3933} _resultobj = Py_BuildValue("i",_result);
3934 return _resultobj;
3935}
3936
3937#define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount())
3938static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3939 PyObject * _resultobj;
3940 int _result;
3941 wxPyListCtrl * _arg0;
3942 PyObject * _argo0 = 0;
3943 char *_kwnames[] = { "self", NULL };
3944
3945 self = self;
3946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0))
3947 return NULL;
3948 if (_argo0) {
3949 if (_argo0 == Py_None) { _arg0 = NULL; }
3950 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p.");
3952 return NULL;
3953 }
3954 }
3955{
3956 wxPy_BEGIN_ALLOW_THREADS;
3957 _result = (int )wxListCtrl_GetSelectedItemCount(_arg0);
3958
3959 wxPy_END_ALLOW_THREADS;
3960 if (PyErr_Occurred()) return NULL;
3961} _resultobj = Py_BuildValue("i",_result);
3962 return _resultobj;
3963}
3964
3965#define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour())
3966static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3967 PyObject * _resultobj;
3968 wxColour * _result;
3969 wxPyListCtrl * _arg0;
3970 PyObject * _argo0 = 0;
3971 char *_kwnames[] = { "self", NULL };
3972 char _ptemp[128];
3973
3974 self = self;
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0))
3976 return NULL;
3977 if (_argo0) {
3978 if (_argo0 == Py_None) { _arg0 = NULL; }
3979 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3980 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p.");
3981 return NULL;
3982 }
3983 }
3984{
3985 wxPy_BEGIN_ALLOW_THREADS;
3986 _result = new wxColour (wxListCtrl_GetTextColour(_arg0));
3987
3988 wxPy_END_ALLOW_THREADS;
3989 if (PyErr_Occurred()) return NULL;
3990} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
3991 _resultobj = Py_BuildValue("s",_ptemp);
3992 return _resultobj;
3993}
3994
3995#define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
3996static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3997 PyObject * _resultobj;
3998 wxPyListCtrl * _arg0;
3999 wxColour * _arg1;
4000 PyObject * _argo0 = 0;
4001 wxColour temp;
4002 PyObject * _obj1 = 0;
4003 char *_kwnames[] = { "self","col", NULL };
4004
4005 self = self;
4006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1))
4007 return NULL;
4008 if (_argo0) {
4009 if (_argo0 == Py_None) { _arg0 = NULL; }
4010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p.");
4012 return NULL;
4013 }
4014 }
4015{
4016 _arg1 = &temp;
4017 if (! wxColour_helper(_obj1, &_arg1))
4018 return NULL;
4019}
4020{
4021 wxPy_BEGIN_ALLOW_THREADS;
4022 wxListCtrl_SetTextColour(_arg0,*_arg1);
4023
4024 wxPy_END_ALLOW_THREADS;
4025 if (PyErr_Occurred()) return NULL;
4026} Py_INCREF(Py_None);
4027 _resultobj = Py_None;
4028 return _resultobj;
4029}
4030
4031#define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem())
4032static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4033 PyObject * _resultobj;
4034 long _result;
4035 wxPyListCtrl * _arg0;
4036 PyObject * _argo0 = 0;
4037 char *_kwnames[] = { "self", NULL };
4038
4039 self = self;
4040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0))
4041 return NULL;
4042 if (_argo0) {
4043 if (_argo0 == Py_None) { _arg0 = NULL; }
4044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p.");
4046 return NULL;
4047 }
4048 }
4049{
4050 wxPy_BEGIN_ALLOW_THREADS;
4051 _result = (long )wxListCtrl_GetTopItem(_arg0);
4052
4053 wxPy_END_ALLOW_THREADS;
4054 if (PyErr_Occurred()) return NULL;
4055} _resultobj = Py_BuildValue("l",_result);
4056 return _resultobj;
4057}
4058
4059#define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1))
4060static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4061 PyObject * _resultobj;
4062 wxPyListCtrl * _arg0;
4063 long _arg1;
4064 bool _arg2 = (bool ) TRUE;
4065 PyObject * _argo0 = 0;
4066 int tempbool2 = (int) TRUE;
4067 char *_kwnames[] = { "self","style","add", NULL };
4068
4069 self = self;
4070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2))
4071 return NULL;
4072 if (_argo0) {
4073 if (_argo0 == Py_None) { _arg0 = NULL; }
4074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p.");
4076 return NULL;
4077 }
4078 }
4079 _arg2 = (bool ) tempbool2;
4080{
4081 wxPy_BEGIN_ALLOW_THREADS;
4082 wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2);
4083
4084 wxPy_END_ALLOW_THREADS;
4085 if (PyErr_Occurred()) return NULL;
4086} Py_INCREF(Py_None);
4087 _resultobj = Py_None;
4088 return _resultobj;
4089}
4090
4091#define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
4092static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
4093 PyObject * _resultobj;
4094 wxPyListCtrl * _arg0;
4095 long _arg1;
4096 PyObject * _argo0 = 0;
4097 char *_kwnames[] = { "self","style", NULL };
4098
4099 self = self;
4100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
4101 return NULL;
4102 if (_argo0) {
4103 if (_argo0 == Py_None) { _arg0 = NULL; }
4104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p.");
4106 return NULL;
4107 }
4108 }
4109{
4110 wxPy_BEGIN_ALLOW_THREADS;
4111 wxListCtrl_SetWindowStyleFlag(_arg0,_arg1);
4112
4113 wxPy_END_ALLOW_THREADS;
4114 if (PyErr_Occurred()) return NULL;
4115} Py_INCREF(Py_None);
4116 _resultobj = Py_None;
4117 return _resultobj;
4118}
4119
4120#define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2))
4121static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4122 PyObject * _resultobj;
4123 long _result;
4124 wxPyListCtrl * _arg0;
4125 long _arg1;
4126 int _arg2 = (int ) (wxLIST_NEXT_ALL);
4127 int _arg3 = (int ) (wxLIST_STATE_DONTCARE);
4128 PyObject * _argo0 = 0;
4129 char *_kwnames[] = { "self","item","geometry","state", NULL };
4130
4131 self = self;
4132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
4133 return NULL;
4134 if (_argo0) {
4135 if (_argo0 == Py_None) { _arg0 = NULL; }
4136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p.");
4138 return NULL;
4139 }
4140 }
4141{
4142 wxPy_BEGIN_ALLOW_THREADS;
4143 _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3);
4144
4145 wxPy_END_ALLOW_THREADS;
4146 if (PyErr_Occurred()) return NULL;
4147} _resultobj = Py_BuildValue("l",_result);
4148 return _resultobj;
4149}
4150
4151#define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0))
4152static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4153 PyObject * _resultobj;
4154 wxImageList * _result;
4155 wxPyListCtrl * _arg0;
4156 int _arg1;
4157 PyObject * _argo0 = 0;
4158 char *_kwnames[] = { "self","which", NULL };
4159
4160 self = self;
4161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1))
4162 return NULL;
4163 if (_argo0) {
4164 if (_argo0 == Py_None) { _arg0 = NULL; }
4165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p.");
4167 return NULL;
4168 }
4169 }
4170{
4171 wxPy_BEGIN_ALLOW_THREADS;
4172 _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1);
4173
4174 wxPy_END_ALLOW_THREADS;
4175 if (PyErr_Occurred()) return NULL;
4176}{ _resultobj = wxPyMake_wxObject(_result); }
4177 return _resultobj;
4178}
4179
4180#define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1))
4181static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4182 PyObject * _resultobj;
4183 wxPyListCtrl * _arg0;
4184 wxImageList * _arg1;
4185 int _arg2;
4186 PyObject * _argo0 = 0;
4187 PyObject * _argo1 = 0;
4188 char *_kwnames[] = { "self","imageList","which", NULL };
4189
4190 self = self;
4191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2))
4192 return NULL;
4193 if (_argo0) {
4194 if (_argo0 == Py_None) { _arg0 = NULL; }
4195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p.");
4197 return NULL;
4198 }
4199 }
4200 if (_argo1) {
4201 if (_argo1 == Py_None) { _arg1 = NULL; }
4202 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4203 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p.");
4204 return NULL;
4205 }
4206 }
4207{
4208 wxPy_BEGIN_ALLOW_THREADS;
4209 wxListCtrl_SetImageList(_arg0,_arg1,_arg2);
4210
4211 wxPy_END_ALLOW_THREADS;
4212 if (PyErr_Occurred()) return NULL;
4213} Py_INCREF(Py_None);
4214 _resultobj = Py_None;
4215 return _resultobj;
4216}
4217
4218#define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1))
4219static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4220 PyObject * _resultobj;
4221 wxPyListCtrl * _arg0;
4222 wxImageList * _arg1;
4223 int _arg2;
4224 PyObject * _argo0 = 0;
4225 PyObject * _argo1 = 0;
4226 char *_kwnames[] = { "self","imageList","which", NULL };
4227
4228 self = self;
4229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2))
4230 return NULL;
4231 if (_argo0) {
4232 if (_argo0 == Py_None) { _arg0 = NULL; }
4233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p.");
4235 return NULL;
4236 }
4237 }
4238 if (_argo1) {
4239 if (_argo1 == Py_None) { _arg1 = NULL; }
4240 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4241 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p.");
4242 return NULL;
4243 }
4244 }
4245{
4246 wxPy_BEGIN_ALLOW_THREADS;
4247 wxListCtrl_AssignImageList(_arg0,_arg1,_arg2);
4248
4249 wxPy_END_ALLOW_THREADS;
4250 if (PyErr_Occurred()) return NULL;
4251} Py_INCREF(Py_None);
4252 _resultobj = Py_None;
4253 return _resultobj;
4254}
4255
4256#define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual())
4257static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
4258 PyObject * _resultobj;
4259 bool _result;
4260 wxPyListCtrl * _arg0;
4261 PyObject * _argo0 = 0;
4262 char *_kwnames[] = { "self", NULL };
4263
4264 self = self;
4265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0))
4266 return NULL;
4267 if (_argo0) {
4268 if (_argo0 == Py_None) { _arg0 = NULL; }
4269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p.");
4271 return NULL;
4272 }
4273 }
4274{
4275 wxPy_BEGIN_ALLOW_THREADS;
4276 _result = (bool )wxListCtrl_IsVirtual(_arg0);
4277
4278 wxPy_END_ALLOW_THREADS;
4279 if (PyErr_Occurred()) return NULL;
4280} _resultobj = Py_BuildValue("i",_result);
4281 return _resultobj;
4282}
4283
4284#define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0))
4285static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject * _resultobj;
4287 wxPyListCtrl * _arg0;
4288 long _arg1;
4289 PyObject * _argo0 = 0;
4290 char *_kwnames[] = { "self","item", NULL };
4291
4292 self = self;
4293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1))
4294 return NULL;
4295 if (_argo0) {
4296 if (_argo0 == Py_None) { _arg0 = NULL; }
4297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p.");
4299 return NULL;
4300 }
4301 }
4302{
4303 wxPy_BEGIN_ALLOW_THREADS;
4304 wxListCtrl_RefreshItem(_arg0,_arg1);
4305
4306 wxPy_END_ALLOW_THREADS;
4307 if (PyErr_Occurred()) return NULL;
4308} Py_INCREF(Py_None);
4309 _resultobj = Py_None;
4310 return _resultobj;
4311}
4312
4313#define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1))
4314static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4315 PyObject * _resultobj;
4316 wxPyListCtrl * _arg0;
4317 long _arg1;
4318 long _arg2;
4319 PyObject * _argo0 = 0;
4320 char *_kwnames[] = { "self","itemFrom","itemTo", NULL };
4321
4322 self = self;
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2))
4324 return NULL;
4325 if (_argo0) {
4326 if (_argo0 == Py_None) { _arg0 = NULL; }
4327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p.");
4329 return NULL;
4330 }
4331 }
4332{
4333 wxPy_BEGIN_ALLOW_THREADS;
4334 wxListCtrl_RefreshItems(_arg0,_arg1,_arg2);
4335
4336 wxPy_END_ALLOW_THREADS;
4337 if (PyErr_Occurred()) return NULL;
4338} Py_INCREF(Py_None);
4339 _resultobj = Py_None;
4340 return _resultobj;
4341}
4342
4343#define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0))
4344static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
4345 PyObject * _resultobj;
4346 bool _result;
4347 wxPyListCtrl * _arg0;
4348 int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT);
4349 PyObject * _argo0 = 0;
4350 char *_kwnames[] = { "self","flag", NULL };
4351
4352 self = self;
4353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1))
4354 return NULL;
4355 if (_argo0) {
4356 if (_argo0 == Py_None) { _arg0 = NULL; }
4357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p.");
4359 return NULL;
4360 }
4361 }
4362{
4363 wxPy_BEGIN_ALLOW_THREADS;
4364 _result = (bool )wxListCtrl_Arrange(_arg0,_arg1);
4365
4366 wxPy_END_ALLOW_THREADS;
4367 if (PyErr_Occurred()) return NULL;
4368} _resultobj = Py_BuildValue("i",_result);
4369 return _resultobj;
4370}
4371
4372#define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0))
4373static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4374 PyObject * _resultobj;
4375 bool _result;
4376 wxPyListCtrl * _arg0;
4377 long _arg1;
4378 PyObject * _argo0 = 0;
4379 char *_kwnames[] = { "self","item", NULL };
4380
4381 self = self;
4382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1))
4383 return NULL;
4384 if (_argo0) {
4385 if (_argo0 == Py_None) { _arg0 = NULL; }
4386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p.");
4388 return NULL;
4389 }
4390 }
4391{
4392 wxPy_BEGIN_ALLOW_THREADS;
4393 _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1);
4394
4395 wxPy_END_ALLOW_THREADS;
4396 if (PyErr_Occurred()) return NULL;
4397} _resultobj = Py_BuildValue("i",_result);
4398 return _resultobj;
4399}
4400
4401#define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
4402static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4403 PyObject * _resultobj;
4404 bool _result;
4405 wxPyListCtrl * _arg0;
4406 PyObject * _argo0 = 0;
4407 char *_kwnames[] = { "self", NULL };
4408
4409 self = self;
4410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0))
4411 return NULL;
4412 if (_argo0) {
4413 if (_argo0 == Py_None) { _arg0 = NULL; }
4414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p.");
4416 return NULL;
4417 }
4418 }
4419{
4420 wxPy_BEGIN_ALLOW_THREADS;
4421 _result = (bool )wxListCtrl_DeleteAllItems(_arg0);
4422
4423 wxPy_END_ALLOW_THREADS;
4424 if (PyErr_Occurred()) return NULL;
4425} _resultobj = Py_BuildValue("i",_result);
4426 return _resultobj;
4427}
4428
4429#define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0))
4430static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
4431 PyObject * _resultobj;
4432 bool _result;
4433 wxPyListCtrl * _arg0;
4434 int _arg1;
4435 PyObject * _argo0 = 0;
4436 char *_kwnames[] = { "self","col", NULL };
4437
4438 self = self;
4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1))
4440 return NULL;
4441 if (_argo0) {
4442 if (_argo0 == Py_None) { _arg0 = NULL; }
4443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p.");
4445 return NULL;
4446 }
4447 }
4448{
4449 wxPy_BEGIN_ALLOW_THREADS;
4450 _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1);
4451
4452 wxPy_END_ALLOW_THREADS;
4453 if (PyErr_Occurred()) return NULL;
4454} _resultobj = Py_BuildValue("i",_result);
4455 return _resultobj;
4456}
4457
4458#define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns())
4459static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
4460 PyObject * _resultobj;
4461 bool _result;
4462 wxPyListCtrl * _arg0;
4463 PyObject * _argo0 = 0;
4464 char *_kwnames[] = { "self", NULL };
4465
4466 self = self;
4467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0))
4468 return NULL;
4469 if (_argo0) {
4470 if (_argo0 == Py_None) { _arg0 = NULL; }
4471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p.");
4473 return NULL;
4474 }
4475 }
4476{
4477 wxPy_BEGIN_ALLOW_THREADS;
4478 _result = (bool )wxListCtrl_DeleteAllColumns(_arg0);
4479
4480 wxPy_END_ALLOW_THREADS;
4481 if (PyErr_Occurred()) return NULL;
4482} _resultobj = Py_BuildValue("i",_result);
4483 return _resultobj;
4484}
4485
4486#define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll())
4487static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
4488 PyObject * _resultobj;
4489 wxPyListCtrl * _arg0;
4490 PyObject * _argo0 = 0;
4491 char *_kwnames[] = { "self", NULL };
4492
4493 self = self;
4494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0))
4495 return NULL;
4496 if (_argo0) {
4497 if (_argo0 == Py_None) { _arg0 = NULL; }
4498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p.");
4500 return NULL;
4501 }
4502 }
4503{
4504 wxPy_BEGIN_ALLOW_THREADS;
4505 wxListCtrl_ClearAll(_arg0);
4506
4507 wxPy_END_ALLOW_THREADS;
4508 if (PyErr_Occurred()) return NULL;
4509} Py_INCREF(Py_None);
4510 _resultobj = Py_None;
4511 return _resultobj;
4512}
4513
4514#define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
4515static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4516 PyObject * _resultobj;
4517 bool _result;
4518 wxPyListCtrl * _arg0;
4519 long _arg1;
4520 PyObject * _argo0 = 0;
4521 char *_kwnames[] = { "self","item", NULL };
4522
4523 self = self;
4524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1))
4525 return NULL;
4526 if (_argo0) {
4527 if (_argo0 == Py_None) { _arg0 = NULL; }
4528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p.");
4530 return NULL;
4531 }
4532 }
4533{
4534 wxPy_BEGIN_ALLOW_THREADS;
4535 _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1);
4536
4537 wxPy_END_ALLOW_THREADS;
4538 if (PyErr_Occurred()) return NULL;
4539} _resultobj = Py_BuildValue("i",_result);
4540 return _resultobj;
4541}
4542
4543#define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4544static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4545 PyObject * _resultobj;
4546 long _result;
4547 wxPyListCtrl * _arg0;
4548 long _arg1;
4549 wxString * _arg2;
4550 bool _arg3 = (bool ) FALSE;
4551 PyObject * _argo0 = 0;
4552 PyObject * _obj2 = 0;
4553 int tempbool3 = (int) FALSE;
4554 char *_kwnames[] = { "self","start","str","partial", NULL };
4555
4556 self = self;
4557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
4558 return NULL;
4559 if (_argo0) {
4560 if (_argo0 == Py_None) { _arg0 = NULL; }
4561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p.");
4563 return NULL;
4564 }
4565 }
4566{
4567#if PYTHON_API_VERSION >= 1009
4568 char* tmpPtr; int tmpSize;
4569 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4570 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4571 return NULL;
4572 }
4573 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4574 return NULL;
4575 _arg2 = new wxString(tmpPtr, tmpSize);
4576#else
4577 if (!PyString_Check(_obj2)) {
4578 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4579 return NULL;
4580 }
4581 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4582#endif
4583}
4584 _arg3 = (bool ) tempbool3;
4585{
4586 wxPy_BEGIN_ALLOW_THREADS;
4587 _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3);
4588
4589 wxPy_END_ALLOW_THREADS;
4590 if (PyErr_Occurred()) return NULL;
4591} _resultobj = Py_BuildValue("l",_result);
4592{
4593 if (_obj2)
4594 delete _arg2;
4595}
4596 return _resultobj;
4597}
4598
4599#define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1))
4600static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject * _resultobj;
4602 long _result;
4603 wxPyListCtrl * _arg0;
4604 long _arg1;
4605 long _arg2;
4606 PyObject * _argo0 = 0;
4607 char *_kwnames[] = { "self","start","data", NULL };
4608
4609 self = self;
4610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2))
4611 return NULL;
4612 if (_argo0) {
4613 if (_argo0 == Py_None) { _arg0 = NULL; }
4614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p.");
4616 return NULL;
4617 }
4618 }
4619{
4620 wxPy_BEGIN_ALLOW_THREADS;
4621 _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2);
4622
4623 wxPy_END_ALLOW_THREADS;
4624 if (PyErr_Occurred()) return NULL;
4625} _resultobj = Py_BuildValue("l",_result);
4626 return _resultobj;
4627}
4628
4629#define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4630static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
4631 PyObject * _resultobj;
4632 long _result;
4633 wxPyListCtrl * _arg0;
4634 long _arg1;
4635 wxPoint * _arg2;
4636 int _arg3;
4637 PyObject * _argo0 = 0;
4638 wxPoint temp;
4639 PyObject * _obj2 = 0;
4640 char *_kwnames[] = { "self","start","pt","direction", NULL };
4641
4642 self = self;
4643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4644 return NULL;
4645 if (_argo0) {
4646 if (_argo0 == Py_None) { _arg0 = NULL; }
4647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p.");
4649 return NULL;
4650 }
4651 }
4652{
4653 _arg2 = &temp;
4654 if (! wxPoint_helper(_obj2, &_arg2))
4655 return NULL;
4656}
4657{
4658 wxPy_BEGIN_ALLOW_THREADS;
4659 _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3);
4660
4661 wxPy_END_ALLOW_THREADS;
4662 if (PyErr_Occurred()) return NULL;
4663} _resultobj = Py_BuildValue("l",_result);
4664 return _resultobj;
4665}
4666
4667#define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
4668static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
4669 PyObject * _resultobj;
4670 long _result;
4671 wxPyListCtrl * _arg0;
4672 wxPoint * _arg1;
4673 int * _arg2;
4674 int temp;
4675 PyObject * _argo0 = 0;
4676 wxPoint temp0;
4677 PyObject * _obj1 = 0;
4678 char *_kwnames[] = { "self","point", NULL };
4679
4680 self = self;
4681{
4682 _arg2 = &temp;
4683}
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1))
4685 return NULL;
4686 if (_argo0) {
4687 if (_argo0 == Py_None) { _arg0 = NULL; }
4688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p.");
4690 return NULL;
4691 }
4692 }
4693{
4694 _arg1 = &temp0;
4695 if (! wxPoint_helper(_obj1, &_arg1))
4696 return NULL;
4697}
4698{
4699 wxPy_BEGIN_ALLOW_THREADS;
4700 _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2);
4701
4702 wxPy_END_ALLOW_THREADS;
4703 if (PyErr_Occurred()) return NULL;
4704} _resultobj = Py_BuildValue("l",_result);
4705{
4706 PyObject *o;
4707 o = PyInt_FromLong((long) (*_arg2));
4708 _resultobj = t_output_helper(_resultobj, o);
4709}
4710 return _resultobj;
4711}
4712
4713#define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0))
4714static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4715 PyObject * _resultobj;
4716 long _result;
4717 wxPyListCtrl * _arg0;
4718 wxListItem * _arg1;
4719 PyObject * _argo0 = 0;
4720 PyObject * _argo1 = 0;
4721 char *_kwnames[] = { "self","info", NULL };
4722
4723 self = self;
4724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1))
4725 return NULL;
4726 if (_argo0) {
4727 if (_argo0 == Py_None) { _arg0 = NULL; }
4728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p.");
4730 return NULL;
4731 }
4732 }
4733 if (_argo1) {
4734 if (_argo1 == Py_None) { _arg1 = NULL; }
4735 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
4736 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p.");
4737 return NULL;
4738 }
4739 }
4740{
4741 wxPy_BEGIN_ALLOW_THREADS;
4742 _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1);
4743
4744 wxPy_END_ALLOW_THREADS;
4745 if (PyErr_Occurred()) return NULL;
4746} _resultobj = Py_BuildValue("l",_result);
4747 return _resultobj;
4748}
4749
4750#define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4751static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4752 PyObject * _resultobj;
4753 long _result;
4754 wxPyListCtrl * _arg0;
4755 long _arg1;
4756 wxString * _arg2;
4757 PyObject * _argo0 = 0;
4758 PyObject * _obj2 = 0;
4759 char *_kwnames[] = { "self","index","label", NULL };
4760
4761 self = self;
4762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2))
4763 return NULL;
4764 if (_argo0) {
4765 if (_argo0 == Py_None) { _arg0 = NULL; }
4766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p.");
4768 return NULL;
4769 }
4770 }
4771{
4772#if PYTHON_API_VERSION >= 1009
4773 char* tmpPtr; int tmpSize;
4774 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4775 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4776 return NULL;
4777 }
4778 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4779 return NULL;
4780 _arg2 = new wxString(tmpPtr, tmpSize);
4781#else
4782 if (!PyString_Check(_obj2)) {
4783 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4784 return NULL;
4785 }
4786 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4787#endif
4788}
4789{
4790 wxPy_BEGIN_ALLOW_THREADS;
4791 _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2);
4792
4793 wxPy_END_ALLOW_THREADS;
4794 if (PyErr_Occurred()) return NULL;
4795} _resultobj = Py_BuildValue("l",_result);
4796{
4797 if (_obj2)
4798 delete _arg2;
4799}
4800 return _resultobj;
4801}
4802
4803#define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4804static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4805 PyObject * _resultobj;
4806 long _result;
4807 wxPyListCtrl * _arg0;
4808 long _arg1;
4809 int _arg2;
4810 PyObject * _argo0 = 0;
4811 char *_kwnames[] = { "self","index","imageIndex", NULL };
4812
4813 self = self;
4814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2))
4815 return NULL;
4816 if (_argo0) {
4817 if (_argo0 == Py_None) { _arg0 = NULL; }
4818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p.");
4820 return NULL;
4821 }
4822 }
4823{
4824 wxPy_BEGIN_ALLOW_THREADS;
4825 _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2);
4826
4827 wxPy_END_ALLOW_THREADS;
4828 if (PyErr_Occurred()) return NULL;
4829} _resultobj = Py_BuildValue("l",_result);
4830 return _resultobj;
4831}
4832
4833#define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2))
4834static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4835 PyObject * _resultobj;
4836 long _result;
4837 wxPyListCtrl * _arg0;
4838 long _arg1;
4839 wxString * _arg2;
4840 int _arg3;
4841 PyObject * _argo0 = 0;
4842 PyObject * _obj2 = 0;
4843 char *_kwnames[] = { "self","index","label","imageIndex", NULL };
4844
4845 self = self;
4846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4847 return NULL;
4848 if (_argo0) {
4849 if (_argo0 == Py_None) { _arg0 = NULL; }
4850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p.");
4852 return NULL;
4853 }
4854 }
4855{
4856#if PYTHON_API_VERSION >= 1009
4857 char* tmpPtr; int tmpSize;
4858 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4859 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4860 return NULL;
4861 }
4862 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4863 return NULL;
4864 _arg2 = new wxString(tmpPtr, tmpSize);
4865#else
4866 if (!PyString_Check(_obj2)) {
4867 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4868 return NULL;
4869 }
4870 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4871#endif
4872}
4873{
4874 wxPy_BEGIN_ALLOW_THREADS;
4875 _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3);
4876
4877 wxPy_END_ALLOW_THREADS;
4878 if (PyErr_Occurred()) return NULL;
4879} _resultobj = Py_BuildValue("l",_result);
4880{
4881 if (_obj2)
4882 delete _arg2;
4883}
4884 return _resultobj;
4885}
4886
4887#define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
4888static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4889 PyObject * _resultobj;
4890 long _result;
4891 wxPyListCtrl * _arg0;
4892 long _arg1;
4893 wxListItem * _arg2;
4894 PyObject * _argo0 = 0;
4895 PyObject * _argo2 = 0;
4896 char *_kwnames[] = { "self","col","info", NULL };
4897
4898 self = self;
4899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2))
4900 return NULL;
4901 if (_argo0) {
4902 if (_argo0 == Py_None) { _arg0 = NULL; }
4903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p.");
4905 return NULL;
4906 }
4907 }
4908 if (_argo2) {
4909 if (_argo2 == Py_None) { _arg2 = NULL; }
4910 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
4911 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p.");
4912 return NULL;
4913 }
4914 }
4915{
4916 wxPy_BEGIN_ALLOW_THREADS;
4917 _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2);
4918
4919 wxPy_END_ALLOW_THREADS;
4920 if (PyErr_Occurred()) return NULL;
4921} _resultobj = Py_BuildValue("l",_result);
4922 return _resultobj;
4923}
4924
4925#define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4926static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
4927 PyObject * _resultobj;
4928 long _result;
4929 wxPyListCtrl * _arg0;
4930 long _arg1;
4931 wxString * _arg2;
4932 int _arg3 = (int ) (wxLIST_FORMAT_LEFT);
4933 int _arg4 = (int ) -1;
4934 PyObject * _argo0 = 0;
4935 PyObject * _obj2 = 0;
4936 char *_kwnames[] = { "self","col","heading","format","width", NULL };
4937
4938 self = self;
4939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4))
4940 return NULL;
4941 if (_argo0) {
4942 if (_argo0 == Py_None) { _arg0 = NULL; }
4943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p.");
4945 return NULL;
4946 }
4947 }
4948{
4949#if PYTHON_API_VERSION >= 1009
4950 char* tmpPtr; int tmpSize;
4951 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4952 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4953 return NULL;
4954 }
4955 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4956 return NULL;
4957 _arg2 = new wxString(tmpPtr, tmpSize);
4958#else
4959 if (!PyString_Check(_obj2)) {
4960 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4961 return NULL;
4962 }
4963 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4964#endif
4965}
4966{
4967 wxPy_BEGIN_ALLOW_THREADS;
4968 _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4);
4969
4970 wxPy_END_ALLOW_THREADS;
4971 if (PyErr_Occurred()) return NULL;
4972} _resultobj = Py_BuildValue("l",_result);
4973{
4974 if (_obj2)
4975 delete _arg2;
4976}
4977 return _resultobj;
4978}
4979
4980#define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0))
4981static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4982 PyObject * _resultobj;
4983 wxPyListCtrl * _arg0;
4984 long _arg1;
4985 PyObject * _argo0 = 0;
4986 char *_kwnames[] = { "self","count", NULL };
4987
4988 self = self;
4989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1))
4990 return NULL;
4991 if (_argo0) {
4992 if (_argo0 == Py_None) { _arg0 = NULL; }
4993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p.");
4995 return NULL;
4996 }
4997 }
4998{
4999 wxPy_BEGIN_ALLOW_THREADS;
5000 wxListCtrl_SetItemCount(_arg0,_arg1);
5001
5002 wxPy_END_ALLOW_THREADS;
5003 if (PyErr_Occurred()) return NULL;
5004} Py_INCREF(Py_None);
5005 _resultobj = Py_None;
5006 return _resultobj;
5007}
5008
5009#define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1))
5010static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
5011 PyObject * _resultobj;
5012 bool _result;
5013 wxPyListCtrl * _arg0;
5014 int _arg1;
5015 int _arg2;
5016 PyObject * _argo0 = 0;
5017 char *_kwnames[] = { "self","dx","dy", NULL };
5018
5019 self = self;
5020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2))
5021 return NULL;
5022 if (_argo0) {
5023 if (_argo0 == Py_None) { _arg0 = NULL; }
5024 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5025 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p.");
5026 return NULL;
5027 }
5028 }
5029{
5030 wxPy_BEGIN_ALLOW_THREADS;
5031 _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2);
5032
5033 wxPy_END_ALLOW_THREADS;
5034 if (PyErr_Occurred()) return NULL;
5035} _resultobj = Py_BuildValue("i",_result);
5036 return _resultobj;
5037}
5038
5039static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) {
5040 if (!PyCallable_Check(func))
5041 return FALSE;
5042 return self->SortItems(wxPyListCtrl_SortItems, (long)func);
5043 }
5044static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5045 PyObject * _resultobj;
5046 bool _result;
5047 wxPyListCtrl * _arg0;
5048 PyObject * _arg1;
5049 PyObject * _argo0 = 0;
5050 PyObject * _obj1 = 0;
5051 char *_kwnames[] = { "self","func", NULL };
5052
5053 self = self;
5054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1))
5055 return NULL;
5056 if (_argo0) {
5057 if (_argo0 == Py_None) { _arg0 = NULL; }
5058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p.");
5060 return NULL;
5061 }
5062 }
5063{
5064 _arg1 = _obj1;
5065}
5066{
5067 wxPy_BEGIN_ALLOW_THREADS;
5068 _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1);
5069
5070 wxPy_END_ALLOW_THREADS;
5071 if (PyErr_Occurred()) return NULL;
5072} _resultobj = Py_BuildValue("i",_result);
5073 return _resultobj;
5074}
5075
5076static void *SwigwxListViewTowxPyListCtrl(void *ptr) {
5077 wxListView *src;
5078 wxPyListCtrl *dest;
5079 src = (wxListView *) ptr;
5080 dest = (wxPyListCtrl *) src;
5081 return (void *) dest;
5082}
5083
5084static void *SwigwxListViewTowxControl(void *ptr) {
5085 wxListView *src;
5086 wxControl *dest;
5087 src = (wxListView *) ptr;
5088 dest = (wxControl *) src;
5089 return (void *) dest;
5090}
5091
5092static void *SwigwxListViewTowxWindow(void *ptr) {
5093 wxListView *src;
5094 wxWindow *dest;
5095 src = (wxListView *) ptr;
5096 dest = (wxWindow *) src;
5097 return (void *) dest;
5098}
5099
5100static void *SwigwxListViewTowxEvtHandler(void *ptr) {
5101 wxListView *src;
5102 wxEvtHandler *dest;
5103 src = (wxListView *) ptr;
5104 dest = (wxEvtHandler *) src;
5105 return (void *) dest;
5106}
5107
5108static void *SwigwxListViewTowxObject(void *ptr) {
5109 wxListView *src;
5110 wxObject *dest;
5111 src = (wxListView *) ptr;
5112 dest = (wxObject *) src;
5113 return (void *) dest;
5114}
5115
5116#define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5117static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject * _resultobj;
5119 wxListView * _result;
5120 wxWindow * _arg0;
5121 wxWindowID _arg1 = (wxWindowID ) -1;
5122 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5123 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5124 long _arg4 = (long ) (wxLC_REPORT);
5125 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
5126 wxString * _arg6 = (wxString *) &"listctrl";
5127 PyObject * _argo0 = 0;
5128 wxPoint temp;
5129 PyObject * _obj2 = 0;
5130 wxSize temp0;
5131 PyObject * _obj3 = 0;
5132 PyObject * _argo5 = 0;
5133 PyObject * _obj6 = 0;
5134 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
5135 char _ptemp[128];
5136
5137 self = self;
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6))
5139 return NULL;
5140 if (_argo0) {
5141 if (_argo0 == Py_None) { _arg0 = NULL; }
5142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p.");
5144 return NULL;
5145 }
5146 }
5147 if (_obj2)
5148{
5149 _arg2 = &temp;
5150 if (! wxPoint_helper(_obj2, &_arg2))
5151 return NULL;
5152}
5153 if (_obj3)
5154{
5155 _arg3 = &temp0;
5156 if (! wxSize_helper(_obj3, &_arg3))
5157 return NULL;
5158}
5159 if (_argo5) {
5160 if (_argo5 == Py_None) { _arg5 = NULL; }
5161 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
5162 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p.");
5163 return NULL;
5164 }
5165 }
5166 if (_obj6)
5167{
5168#if PYTHON_API_VERSION >= 1009
5169 char* tmpPtr; int tmpSize;
5170 if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
5171 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5172 return NULL;
5173 }
5174 if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
5175 return NULL;
5176 _arg6 = new wxString(tmpPtr, tmpSize);
5177#else
5178 if (!PyString_Check(_obj6)) {
5179 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5180 return NULL;
5181 }
5182 _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
5183#endif
5184}
5185{
5186 wxPy_BEGIN_ALLOW_THREADS;
5187 _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6);
5188
5189 wxPy_END_ALLOW_THREADS;
5190 if (PyErr_Occurred()) return NULL;
5191} if (_result) {
5192 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p");
5193 _resultobj = Py_BuildValue("s",_ptemp);
5194 } else {
5195 Py_INCREF(Py_None);
5196 _resultobj = Py_None;
5197 }
5198{
5199 if (_obj6)
5200 delete _arg6;
5201}
5202 return _resultobj;
5203}
5204
5205#define new_wxPreListView() (new wxListView())
5206static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
5207 PyObject * _resultobj;
5208 wxListView * _result;
5209 char *_kwnames[] = { NULL };
5210 char _ptemp[128];
5211
5212 self = self;
5213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames))
5214 return NULL;
5215{
5216 wxPy_BEGIN_ALLOW_THREADS;
5217 _result = (wxListView *)new_wxPreListView();
5218
5219 wxPy_END_ALLOW_THREADS;
5220 if (PyErr_Occurred()) return NULL;
5221} if (_result) {
5222 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p");
5223 _resultobj = Py_BuildValue("s",_ptemp);
5224 } else {
5225 Py_INCREF(Py_None);
5226 _resultobj = Py_None;
5227 }
5228 return _resultobj;
5229}
5230
5231#define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5232static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5233 PyObject * _resultobj;
5234 bool _result;
5235 wxListView * _arg0;
5236 wxWindow * _arg1;
5237 wxWindowID _arg2 = (wxWindowID ) -1;
5238 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5239 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5240 long _arg5 = (long ) (wxLC_REPORT);
5241 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
5242 wxString * _arg7 = (wxString *) &"listctrl";
5243 PyObject * _argo0 = 0;
5244 PyObject * _argo1 = 0;
5245 wxPoint temp;
5246 PyObject * _obj3 = 0;
5247 wxSize temp0;
5248 PyObject * _obj4 = 0;
5249 PyObject * _argo6 = 0;
5250 PyObject * _obj7 = 0;
5251 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
5252
5253 self = self;
5254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
5255 return NULL;
5256 if (_argo0) {
5257 if (_argo0 == Py_None) { _arg0 = NULL; }
5258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p.");
5260 return NULL;
5261 }
5262 }
5263 if (_argo1) {
5264 if (_argo1 == Py_None) { _arg1 = NULL; }
5265 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5266 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p.");
5267 return NULL;
5268 }
5269 }
5270 if (_obj3)
5271{
5272 _arg3 = &temp;
5273 if (! wxPoint_helper(_obj3, &_arg3))
5274 return NULL;
5275}
5276 if (_obj4)
5277{
5278 _arg4 = &temp0;
5279 if (! wxSize_helper(_obj4, &_arg4))
5280 return NULL;
5281}
5282 if (_argo6) {
5283 if (_argo6 == Py_None) { _arg6 = NULL; }
5284 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
5285 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p.");
5286 return NULL;
5287 }
5288 }
5289 if (_obj7)
5290{
5291#if PYTHON_API_VERSION >= 1009
5292 char* tmpPtr; int tmpSize;
5293 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
5294 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5295 return NULL;
5296 }
5297 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
5298 return NULL;
5299 _arg7 = new wxString(tmpPtr, tmpSize);
5300#else
5301 if (!PyString_Check(_obj7)) {
5302 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5303 return NULL;
5304 }
5305 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
5306#endif
5307}
5308{
5309 wxPy_BEGIN_ALLOW_THREADS;
5310 _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
5311
5312 wxPy_END_ALLOW_THREADS;
5313 if (PyErr_Occurred()) return NULL;
5314} _resultobj = Py_BuildValue("i",_result);
5315{
5316 if (_obj7)
5317 delete _arg7;
5318}
5319 return _resultobj;
5320}
5321
5322#define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1))
5323static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5324 PyObject * _resultobj;
5325 wxListView * _arg0;
5326 long _arg1;
5327 bool _arg2 = (bool ) TRUE;
5328 PyObject * _argo0 = 0;
5329 int tempbool2 = (int) TRUE;
5330 char *_kwnames[] = { "self","n","on", NULL };
5331
5332 self = self;
5333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2))
5334 return NULL;
5335 if (_argo0) {
5336 if (_argo0 == Py_None) { _arg0 = NULL; }
5337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p.");
5339 return NULL;
5340 }
5341 }
5342 _arg2 = (bool ) tempbool2;
5343{
5344 wxPy_BEGIN_ALLOW_THREADS;
5345 wxListView_Select(_arg0,_arg1,_arg2);
5346
5347 wxPy_END_ALLOW_THREADS;
5348 if (PyErr_Occurred()) return NULL;
5349} Py_INCREF(Py_None);
5350 _resultobj = Py_None;
5351 return _resultobj;
5352}
5353
5354#define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0))
5355static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
5356 PyObject * _resultobj;
5357 wxListView * _arg0;
5358 long _arg1;
5359 PyObject * _argo0 = 0;
5360 char *_kwnames[] = { "self","index", NULL };
5361
5362 self = self;
5363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1))
5364 return NULL;
5365 if (_argo0) {
5366 if (_argo0 == Py_None) { _arg0 = NULL; }
5367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p.");
5369 return NULL;
5370 }
5371 }
5372{
5373 wxPy_BEGIN_ALLOW_THREADS;
5374 wxListView_Focus(_arg0,_arg1);
5375
5376 wxPy_END_ALLOW_THREADS;
5377 if (PyErr_Occurred()) return NULL;
5378} Py_INCREF(Py_None);
5379 _resultobj = Py_None;
5380 return _resultobj;
5381}
5382
5383#define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem())
5384static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5385 PyObject * _resultobj;
5386 long _result;
5387 wxListView * _arg0;
5388 PyObject * _argo0 = 0;
5389 char *_kwnames[] = { "self", NULL };
5390
5391 self = self;
5392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0))
5393 return NULL;
5394 if (_argo0) {
5395 if (_argo0 == Py_None) { _arg0 = NULL; }
5396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p.");
5398 return NULL;
5399 }
5400 }
5401{
5402 wxPy_BEGIN_ALLOW_THREADS;
5403 _result = (long )wxListView_GetFocusedItem(_arg0);
5404
5405 wxPy_END_ALLOW_THREADS;
5406 if (PyErr_Occurred()) return NULL;
5407} _resultobj = Py_BuildValue("l",_result);
5408 return _resultobj;
5409}
5410
5411#define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0))
5412static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5413 PyObject * _resultobj;
5414 long _result;
5415 wxListView * _arg0;
5416 long _arg1;
5417 PyObject * _argo0 = 0;
5418 char *_kwnames[] = { "self","item", NULL };
5419
5420 self = self;
5421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1))
5422 return NULL;
5423 if (_argo0) {
5424 if (_argo0 == Py_None) { _arg0 = NULL; }
5425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p.");
5427 return NULL;
5428 }
5429 }
5430{
5431 wxPy_BEGIN_ALLOW_THREADS;
5432 _result = (long )wxListView_GetNextSelected(_arg0,_arg1);
5433
5434 wxPy_END_ALLOW_THREADS;
5435 if (PyErr_Occurred()) return NULL;
5436} _resultobj = Py_BuildValue("l",_result);
5437 return _resultobj;
5438}
5439
5440#define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected())
5441static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5442 PyObject * _resultobj;
5443 long _result;
5444 wxListView * _arg0;
5445 PyObject * _argo0 = 0;
5446 char *_kwnames[] = { "self", NULL };
5447
5448 self = self;
5449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0))
5450 return NULL;
5451 if (_argo0) {
5452 if (_argo0 == Py_None) { _arg0 = NULL; }
5453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p.");
5455 return NULL;
5456 }
5457 }
5458{
5459 wxPy_BEGIN_ALLOW_THREADS;
5460 _result = (long )wxListView_GetFirstSelected(_arg0);
5461
5462 wxPy_END_ALLOW_THREADS;
5463 if (PyErr_Occurred()) return NULL;
5464} _resultobj = Py_BuildValue("l",_result);
5465 return _resultobj;
5466}
5467
5468#define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
5469static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5470 PyObject * _resultobj;
5471 bool _result;
5472 wxListView * _arg0;
5473 long _arg1;
5474 PyObject * _argo0 = 0;
5475 char *_kwnames[] = { "self","index", NULL };
5476
5477 self = self;
5478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1))
5479 return NULL;
5480 if (_argo0) {
5481 if (_argo0 == Py_None) { _arg0 = NULL; }
5482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p.");
5484 return NULL;
5485 }
5486 }
5487{
5488 wxPy_BEGIN_ALLOW_THREADS;
5489 _result = (bool )wxListView_IsSelected(_arg0,_arg1);
5490
5491 wxPy_END_ALLOW_THREADS;
5492 if (PyErr_Occurred()) return NULL;
5493} _resultobj = Py_BuildValue("i",_result);
5494 return _resultobj;
5495}
5496
5497#define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1))
5498static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5499 PyObject * _resultobj;
5500 wxListView * _arg0;
5501 int _arg1;
5502 int _arg2;
5503 PyObject * _argo0 = 0;
5504 char *_kwnames[] = { "self","col","image", NULL };
5505
5506 self = self;
5507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2))
5508 return NULL;
5509 if (_argo0) {
5510 if (_argo0 == Py_None) { _arg0 = NULL; }
5511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p.");
5513 return NULL;
5514 }
5515 }
5516{
5517 wxPy_BEGIN_ALLOW_THREADS;
5518 wxListView_SetColumnImage(_arg0,_arg1,_arg2);
5519
5520 wxPy_END_ALLOW_THREADS;
5521 if (PyErr_Occurred()) return NULL;
5522} Py_INCREF(Py_None);
5523 _resultobj = Py_None;
5524 return _resultobj;
5525}
5526
5527#define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0))
5528static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5529 PyObject * _resultobj;
5530 wxListView * _arg0;
5531 int _arg1;
5532 PyObject * _argo0 = 0;
5533 char *_kwnames[] = { "self","col", NULL };
5534
5535 self = self;
5536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1))
5537 return NULL;
5538 if (_argo0) {
5539 if (_argo0 == Py_None) { _arg0 = NULL; }
5540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p.");
5542 return NULL;
5543 }
5544 }
5545{
5546 wxPy_BEGIN_ALLOW_THREADS;
5547 wxListView_ClearColumnImage(_arg0,_arg1);
5548
5549 wxPy_END_ALLOW_THREADS;
5550 if (PyErr_Occurred()) return NULL;
5551} Py_INCREF(Py_None);
5552 _resultobj = Py_None;
5553 return _resultobj;
5554}
5555
5556#define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2))
5557static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5558 PyObject * _resultobj;
5559 wxTreeItemAttr * _result;
5560 wxColour * _arg0 = (wxColour *) &wxNullColour;
5561 wxColour * _arg1 = (wxColour *) &wxNullColour;
5562 wxFont * _arg2 = (wxFont *) &wxNullFont;
5563 wxColour temp;
5564 PyObject * _obj0 = 0;
5565 wxColour temp0;
5566 PyObject * _obj1 = 0;
5567 PyObject * _argo2 = 0;
5568 char *_kwnames[] = { "colText","colBack","font", NULL };
5569 char _ptemp[128];
5570
5571 self = self;
5572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2))
5573 return NULL;
5574 if (_obj0)
5575{
5576 _arg0 = &temp;
5577 if (! wxColour_helper(_obj0, &_arg0))
5578 return NULL;
5579}
5580 if (_obj1)
5581{
5582 _arg1 = &temp0;
5583 if (! wxColour_helper(_obj1, &_arg1))
5584 return NULL;
5585}
5586 if (_argo2) {
5587 if (_argo2 == Py_None) { _arg2 = NULL; }
5588 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5589 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p.");
5590 return NULL;
5591 }
5592 }
5593{
5594 wxPy_BEGIN_ALLOW_THREADS;
5595 _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2);
5596
5597 wxPy_END_ALLOW_THREADS;
5598 if (PyErr_Occurred()) return NULL;
5599} if (_result) {
5600 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p");
5601 _resultobj = Py_BuildValue("s",_ptemp);
5602 } else {
5603 Py_INCREF(Py_None);
5604 _resultobj = Py_None;
5605 }
5606 return _resultobj;
5607}
5608
5609#define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
5610static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5611 PyObject * _resultobj;
5612 wxTreeItemAttr * _arg0;
5613 wxColour * _arg1;
5614 PyObject * _argo0 = 0;
5615 wxColour temp;
5616 PyObject * _obj1 = 0;
5617 char *_kwnames[] = { "self","colText", NULL };
5618
5619 self = self;
5620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
5621 return NULL;
5622 if (_argo0) {
5623 if (_argo0 == Py_None) { _arg0 = NULL; }
5624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p.");
5626 return NULL;
5627 }
5628 }
5629{
5630 _arg1 = &temp;
5631 if (! wxColour_helper(_obj1, &_arg1))
5632 return NULL;
5633}
5634{
5635 wxPy_BEGIN_ALLOW_THREADS;
5636 wxTreeItemAttr_SetTextColour(_arg0,*_arg1);
5637
5638 wxPy_END_ALLOW_THREADS;
5639 if (PyErr_Occurred()) return NULL;
5640} Py_INCREF(Py_None);
5641 _resultobj = Py_None;
5642 return _resultobj;
5643}
5644
5645#define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
5646static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5647 PyObject * _resultobj;
5648 wxTreeItemAttr * _arg0;
5649 wxColour * _arg1;
5650 PyObject * _argo0 = 0;
5651 wxColour temp;
5652 PyObject * _obj1 = 0;
5653 char *_kwnames[] = { "self","colBack", NULL };
5654
5655 self = self;
5656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
5657 return NULL;
5658 if (_argo0) {
5659 if (_argo0 == Py_None) { _arg0 = NULL; }
5660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p.");
5662 return NULL;
5663 }
5664 }
5665{
5666 _arg1 = &temp;
5667 if (! wxColour_helper(_obj1, &_arg1))
5668 return NULL;
5669}
5670{
5671 wxPy_BEGIN_ALLOW_THREADS;
5672 wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1);
5673
5674 wxPy_END_ALLOW_THREADS;
5675 if (PyErr_Occurred()) return NULL;
5676} Py_INCREF(Py_None);
5677 _resultobj = Py_None;
5678 return _resultobj;
5679}
5680
5681#define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5682static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5683 PyObject * _resultobj;
5684 wxTreeItemAttr * _arg0;
5685 wxFont * _arg1;
5686 PyObject * _argo0 = 0;
5687 PyObject * _argo1 = 0;
5688 char *_kwnames[] = { "self","font", NULL };
5689
5690 self = self;
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1))
5692 return NULL;
5693 if (_argo0) {
5694 if (_argo0 == Py_None) { _arg0 = NULL; }
5695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p.");
5697 return NULL;
5698 }
5699 }
5700 if (_argo1) {
5701 if (_argo1 == Py_None) { _arg1 = NULL; }
5702 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5703 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p.");
5704 return NULL;
5705 }
5706 }
5707{
5708 wxPy_BEGIN_ALLOW_THREADS;
5709 wxTreeItemAttr_SetFont(_arg0,*_arg1);
5710
5711 wxPy_END_ALLOW_THREADS;
5712 if (PyErr_Occurred()) return NULL;
5713} Py_INCREF(Py_None);
5714 _resultobj = Py_None;
5715 return _resultobj;
5716}
5717
5718#define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
5719static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5720 PyObject * _resultobj;
5721 bool _result;
5722 wxTreeItemAttr * _arg0;
5723 PyObject * _argo0 = 0;
5724 char *_kwnames[] = { "self", NULL };
5725
5726 self = self;
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0))
5728 return NULL;
5729 if (_argo0) {
5730 if (_argo0 == Py_None) { _arg0 = NULL; }
5731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p.");
5733 return NULL;
5734 }
5735 }
5736{
5737 wxPy_BEGIN_ALLOW_THREADS;
5738 _result = (bool )wxTreeItemAttr_HasTextColour(_arg0);
5739
5740 wxPy_END_ALLOW_THREADS;
5741 if (PyErr_Occurred()) return NULL;
5742} _resultobj = Py_BuildValue("i",_result);
5743 return _resultobj;
5744}
5745
5746#define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
5747static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5748 PyObject * _resultobj;
5749 bool _result;
5750 wxTreeItemAttr * _arg0;
5751 PyObject * _argo0 = 0;
5752 char *_kwnames[] = { "self", NULL };
5753
5754 self = self;
5755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0))
5756 return NULL;
5757 if (_argo0) {
5758 if (_argo0 == Py_None) { _arg0 = NULL; }
5759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p.");
5761 return NULL;
5762 }
5763 }
5764{
5765 wxPy_BEGIN_ALLOW_THREADS;
5766 _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0);
5767
5768 wxPy_END_ALLOW_THREADS;
5769 if (PyErr_Occurred()) return NULL;
5770} _resultobj = Py_BuildValue("i",_result);
5771 return _resultobj;
5772}
5773
5774#define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont())
5775static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5776 PyObject * _resultobj;
5777 bool _result;
5778 wxTreeItemAttr * _arg0;
5779 PyObject * _argo0 = 0;
5780 char *_kwnames[] = { "self", NULL };
5781
5782 self = self;
5783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0))
5784 return NULL;
5785 if (_argo0) {
5786 if (_argo0 == Py_None) { _arg0 = NULL; }
5787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p.");
5789 return NULL;
5790 }
5791 }
5792{
5793 wxPy_BEGIN_ALLOW_THREADS;
5794 _result = (bool )wxTreeItemAttr_HasFont(_arg0);
5795
5796 wxPy_END_ALLOW_THREADS;
5797 if (PyErr_Occurred()) return NULL;
5798} _resultobj = Py_BuildValue("i",_result);
5799 return _resultobj;
5800}
5801
5802#define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
5803static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5804 PyObject * _resultobj;
5805 wxColour * _result;
5806 wxTreeItemAttr * _arg0;
5807 PyObject * _argo0 = 0;
5808 char *_kwnames[] = { "self", NULL };
5809 char _ptemp[128];
5810
5811 self = self;
5812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0))
5813 return NULL;
5814 if (_argo0) {
5815 if (_argo0 == Py_None) { _arg0 = NULL; }
5816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p.");
5818 return NULL;
5819 }
5820 }
5821{
5822 wxPy_BEGIN_ALLOW_THREADS;
5823 const wxColour & _result_ref = wxTreeItemAttr_GetTextColour(_arg0);
5824 _result = (wxColour *) &_result_ref;
5825
5826 wxPy_END_ALLOW_THREADS;
5827 if (PyErr_Occurred()) return NULL;
5828} if (_result) {
5829 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5830 _resultobj = Py_BuildValue("s",_ptemp);
5831 } else {
5832 Py_INCREF(Py_None);
5833 _resultobj = Py_None;
5834 }
5835 return _resultobj;
5836}
5837
5838#define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
5839static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject * _resultobj;
5841 wxColour * _result;
5842 wxTreeItemAttr * _arg0;
5843 PyObject * _argo0 = 0;
5844 char *_kwnames[] = { "self", NULL };
5845 char _ptemp[128];
5846
5847 self = self;
5848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0))
5849 return NULL;
5850 if (_argo0) {
5851 if (_argo0 == Py_None) { _arg0 = NULL; }
5852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p.");
5854 return NULL;
5855 }
5856 }
5857{
5858 wxPy_BEGIN_ALLOW_THREADS;
5859 const wxColour & _result_ref = wxTreeItemAttr_GetBackgroundColour(_arg0);
5860 _result = (wxColour *) &_result_ref;
5861
5862 wxPy_END_ALLOW_THREADS;
5863 if (PyErr_Occurred()) return NULL;
5864} if (_result) {
5865 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5866 _resultobj = Py_BuildValue("s",_ptemp);
5867 } else {
5868 Py_INCREF(Py_None);
5869 _resultobj = Py_None;
5870 }
5871 return _resultobj;
5872}
5873
5874#define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont())
5875static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject * _resultobj;
5877 wxFont * _result;
5878 wxTreeItemAttr * _arg0;
5879 PyObject * _argo0 = 0;
5880 char *_kwnames[] = { "self", NULL };
5881 char _ptemp[128];
5882
5883 self = self;
5884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0))
5885 return NULL;
5886 if (_argo0) {
5887 if (_argo0 == Py_None) { _arg0 = NULL; }
5888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p.");
5890 return NULL;
5891 }
5892 }
5893{
5894 wxPy_BEGIN_ALLOW_THREADS;
5895 const wxFont & _result_ref = wxTreeItemAttr_GetFont(_arg0);
5896 _result = (wxFont *) &_result_ref;
5897
5898 wxPy_END_ALLOW_THREADS;
5899 if (PyErr_Occurred()) return NULL;
5900} if (_result) {
5901 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
5902 _resultobj = Py_BuildValue("s",_ptemp);
5903 } else {
5904 Py_INCREF(Py_None);
5905 _resultobj = Py_None;
5906 }
5907 return _resultobj;
5908}
5909
5910#define new_wxTreeItemId() (new wxTreeItemId())
5911static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
5912 PyObject * _resultobj;
5913 wxTreeItemId * _result;
5914 char *_kwnames[] = { NULL };
5915 char _ptemp[128];
5916
5917 self = self;
5918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames))
5919 return NULL;
5920{
5921 wxPy_BEGIN_ALLOW_THREADS;
5922 _result = (wxTreeItemId *)new_wxTreeItemId();
5923
5924 wxPy_END_ALLOW_THREADS;
5925 if (PyErr_Occurred()) return NULL;
5926} if (_result) {
5927 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
5928 _resultobj = Py_BuildValue("s",_ptemp);
5929 } else {
5930 Py_INCREF(Py_None);
5931 _resultobj = Py_None;
5932 }
5933 return _resultobj;
5934}
5935
5936#define delete_wxTreeItemId(_swigobj) (delete _swigobj)
5937static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
5938 PyObject * _resultobj;
5939 wxTreeItemId * _arg0;
5940 PyObject * _argo0 = 0;
5941 char *_kwnames[] = { "self", NULL };
5942
5943 self = self;
5944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0))
5945 return NULL;
5946 if (_argo0) {
5947 if (_argo0 == Py_None) { _arg0 = NULL; }
5948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
5949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p.");
5950 return NULL;
5951 }
5952 }
5953{
5954 wxPy_BEGIN_ALLOW_THREADS;
5955 delete_wxTreeItemId(_arg0);
5956
5957 wxPy_END_ALLOW_THREADS;
5958 if (PyErr_Occurred()) return NULL;
5959} Py_INCREF(Py_None);
5960 _resultobj = Py_None;
5961 return _resultobj;
5962}
5963
5964#define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk())
5965static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
5966 PyObject * _resultobj;
5967 bool _result;
5968 wxTreeItemId * _arg0;
5969 PyObject * _argo0 = 0;
5970 char *_kwnames[] = { "self", NULL };
5971
5972 self = self;
5973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0))
5974 return NULL;
5975 if (_argo0) {
5976 if (_argo0 == Py_None) { _arg0 = NULL; }
5977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
5978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p.");
5979 return NULL;
5980 }
5981 }
5982{
5983 wxPy_BEGIN_ALLOW_THREADS;
5984 _result = (bool )wxTreeItemId_IsOk(_arg0);
5985
5986 wxPy_END_ALLOW_THREADS;
5987 if (PyErr_Occurred()) return NULL;
5988} _resultobj = Py_BuildValue("i",_result);
5989 return _resultobj;
5990}
5991
5992static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) {
5993 if (! other) return -1;
5994 return *self != *other;
5995 }
5996static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
5997 PyObject * _resultobj;
5998 int _result;
5999 wxTreeItemId * _arg0;
6000 wxTreeItemId * _arg1;
6001 PyObject * _argo0 = 0;
6002 PyObject * _argo1 = 0;
6003 char *_kwnames[] = { "self","other", NULL };
6004
6005 self = self;
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1))
6007 return NULL;
6008 if (_argo0) {
6009 if (_argo0 == Py_None) { _arg0 = NULL; }
6010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
6011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
6012 return NULL;
6013 }
6014 }
6015 if (_argo1) {
6016 if (_argo1 == Py_None) { _arg1 = NULL; }
6017 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6018 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
6019 return NULL;
6020 }
6021 }
6022{
6023 wxPy_BEGIN_ALLOW_THREADS;
6024 _result = (int )wxTreeItemId___cmp__(_arg0,_arg1);
6025
6026 wxPy_END_ALLOW_THREADS;
6027 if (PyErr_Occurred()) return NULL;
6028} _resultobj = Py_BuildValue("i",_result);
6029 return _resultobj;
6030}
6031
6032static void *SwigwxPyTreeItemDataTowxObject(void *ptr) {
6033 wxPyTreeItemData *src;
6034 wxObject *dest;
6035 src = (wxPyTreeItemData *) ptr;
6036 dest = (wxObject *) src;
6037 return (void *) dest;
6038}
6039
6040#define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0))
6041static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
6042 PyObject * _resultobj;
6043 wxPyTreeItemData * _result;
6044 PyObject * _arg0 = (PyObject *) NULL;
6045 PyObject * _obj0 = 0;
6046 char *_kwnames[] = { "obj", NULL };
6047 char _ptemp[128];
6048
6049 self = self;
6050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0))
6051 return NULL;
6052 if (_obj0)
6053{
6054 _arg0 = _obj0;
6055}
6056{
6057 wxPy_BEGIN_ALLOW_THREADS;
6058 _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0);
6059
6060 wxPy_END_ALLOW_THREADS;
6061 if (PyErr_Occurred()) return NULL;
6062} if (_result) {
6063 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
6064 _resultobj = Py_BuildValue("s",_ptemp);
6065 } else {
6066 Py_INCREF(Py_None);
6067 _resultobj = Py_None;
6068 }
6069 return _resultobj;
6070}
6071
6072#define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData())
6073static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
6074 PyObject * _resultobj;
6075 PyObject * _result;
6076 wxPyTreeItemData * _arg0;
6077 PyObject * _argo0 = 0;
6078 char *_kwnames[] = { "self", NULL };
6079
6080 self = self;
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0))
6082 return NULL;
6083 if (_argo0) {
6084 if (_argo0 == Py_None) { _arg0 = NULL; }
6085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p.");
6087 return NULL;
6088 }
6089 }
6090{
6091 wxPy_BEGIN_ALLOW_THREADS;
6092 _result = (PyObject *)wxTreeItemData_GetData(_arg0);
6093
6094 wxPy_END_ALLOW_THREADS;
6095 if (PyErr_Occurred()) return NULL;
6096}{
6097 _resultobj = _result;
6098}
6099 return _resultobj;
6100}
6101
6102#define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
6103static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
6104 PyObject * _resultobj;
6105 wxPyTreeItemData * _arg0;
6106 PyObject * _arg1;
6107 PyObject * _argo0 = 0;
6108 PyObject * _obj1 = 0;
6109 char *_kwnames[] = { "self","obj", NULL };
6110
6111 self = self;
6112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1))
6113 return NULL;
6114 if (_argo0) {
6115 if (_argo0 == Py_None) { _arg0 = NULL; }
6116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p.");
6118 return NULL;
6119 }
6120 }
6121{
6122 _arg1 = _obj1;
6123}
6124{
6125 wxPy_BEGIN_ALLOW_THREADS;
6126 wxTreeItemData_SetData(_arg0,_arg1);
6127
6128 wxPy_END_ALLOW_THREADS;
6129 if (PyErr_Occurred()) return NULL;
6130} Py_INCREF(Py_None);
6131 _resultobj = Py_None;
6132 return _resultobj;
6133}
6134
6135#define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId())
6136static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6137 PyObject * _resultobj;
6138 wxTreeItemId * _result;
6139 wxPyTreeItemData * _arg0;
6140 PyObject * _argo0 = 0;
6141 char *_kwnames[] = { "self", NULL };
6142 char _ptemp[128];
6143
6144 self = self;
6145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0))
6146 return NULL;
6147 if (_argo0) {
6148 if (_argo0 == Py_None) { _arg0 = NULL; }
6149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p.");
6151 return NULL;
6152 }
6153 }
6154{
6155 wxPy_BEGIN_ALLOW_THREADS;
6156 const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0);
6157 _result = (wxTreeItemId *) &_result_ref;
6158
6159 wxPy_END_ALLOW_THREADS;
6160 if (PyErr_Occurred()) return NULL;
6161} if (_result) {
6162 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
6163 _resultobj = Py_BuildValue("s",_ptemp);
6164 } else {
6165 Py_INCREF(Py_None);
6166 _resultobj = Py_None;
6167 }
6168 return _resultobj;
6169}
6170
6171#define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
6172static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6173 PyObject * _resultobj;
6174 wxPyTreeItemData * _arg0;
6175 wxTreeItemId * _arg1;
6176 PyObject * _argo0 = 0;
6177 PyObject * _argo1 = 0;
6178 char *_kwnames[] = { "self","id", NULL };
6179
6180 self = self;
6181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1))
6182 return NULL;
6183 if (_argo0) {
6184 if (_argo0 == Py_None) { _arg0 = NULL; }
6185 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6186 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p.");
6187 return NULL;
6188 }
6189 }
6190 if (_argo1) {
6191 if (_argo1 == Py_None) { _arg1 = NULL; }
6192 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6193 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p.");
6194 return NULL;
6195 }
6196 }
6197{
6198 wxPy_BEGIN_ALLOW_THREADS;
6199 wxTreeItemData_SetId(_arg0,*_arg1);
6200
6201 wxPy_END_ALLOW_THREADS;
6202 if (PyErr_Occurred()) return NULL;
6203} Py_INCREF(Py_None);
6204 _resultobj = Py_None;
6205 return _resultobj;
6206}
6207
6208static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) {
6209 wxTreeEvent *src;
6210 wxNotifyEvent *dest;
6211 src = (wxTreeEvent *) ptr;
6212 dest = (wxNotifyEvent *) src;
6213 return (void *) dest;
6214}
6215
6216static void *SwigwxTreeEventTowxCommandEvent(void *ptr) {
6217 wxTreeEvent *src;
6218 wxCommandEvent *dest;
6219 src = (wxTreeEvent *) ptr;
6220 dest = (wxCommandEvent *) src;
6221 return (void *) dest;
6222}
6223
6224static void *SwigwxTreeEventTowxEvent(void *ptr) {
6225 wxTreeEvent *src;
6226 wxEvent *dest;
6227 src = (wxTreeEvent *) ptr;
6228 dest = (wxEvent *) src;
6229 return (void *) dest;
6230}
6231
6232static void *SwigwxTreeEventTowxObject(void *ptr) {
6233 wxTreeEvent *src;
6234 wxObject *dest;
6235 src = (wxTreeEvent *) ptr;
6236 dest = (wxObject *) src;
6237 return (void *) dest;
6238}
6239
6240#define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1))
6241static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6242 PyObject * _resultobj;
6243 wxTreeEvent * _result;
6244 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
6245 int _arg1 = (int ) 0;
6246 char *_kwnames[] = { "commandType","id", NULL };
6247 char _ptemp[128];
6248
6249 self = self;
6250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1))
6251 return NULL;
6252{
6253 wxPy_BEGIN_ALLOW_THREADS;
6254 _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1);
6255
6256 wxPy_END_ALLOW_THREADS;
6257 if (PyErr_Occurred()) return NULL;
6258} if (_result) {
6259 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p");
6260 _resultobj = Py_BuildValue("s",_ptemp);
6261 } else {
6262 Py_INCREF(Py_None);
6263 _resultobj = Py_None;
6264 }
6265 return _resultobj;
6266}
6267
6268#define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem())
6269static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6270 PyObject * _resultobj;
6271 wxTreeItemId * _result;
6272 wxTreeEvent * _arg0;
6273 PyObject * _argo0 = 0;
6274 char *_kwnames[] = { "self", NULL };
6275 char _ptemp[128];
6276
6277 self = self;
6278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0))
6279 return NULL;
6280 if (_argo0) {
6281 if (_argo0 == Py_None) { _arg0 = NULL; }
6282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p.");
6284 return NULL;
6285 }
6286 }
6287{
6288 wxPy_BEGIN_ALLOW_THREADS;
6289 _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0));
6290
6291 wxPy_END_ALLOW_THREADS;
6292 if (PyErr_Occurred()) return NULL;
6293} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
6294 _resultobj = Py_BuildValue("s",_ptemp);
6295 return _resultobj;
6296}
6297
6298#define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem())
6299static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6300 PyObject * _resultobj;
6301 wxTreeItemId * _result;
6302 wxTreeEvent * _arg0;
6303 PyObject * _argo0 = 0;
6304 char *_kwnames[] = { "self", NULL };
6305 char _ptemp[128];
6306
6307 self = self;
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0))
6309 return NULL;
6310 if (_argo0) {
6311 if (_argo0 == Py_None) { _arg0 = NULL; }
6312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p.");
6314 return NULL;
6315 }
6316 }
6317{
6318 wxPy_BEGIN_ALLOW_THREADS;
6319 _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0));
6320
6321 wxPy_END_ALLOW_THREADS;
6322 if (PyErr_Occurred()) return NULL;
6323} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
6324 _resultobj = Py_BuildValue("s",_ptemp);
6325 return _resultobj;
6326}
6327
6328#define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
6329static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6330 PyObject * _resultobj;
6331 wxPoint * _result;
6332 wxTreeEvent * _arg0;
6333 PyObject * _argo0 = 0;
6334 char *_kwnames[] = { "self", NULL };
6335 char _ptemp[128];
6336
6337 self = self;
6338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0))
6339 return NULL;
6340 if (_argo0) {
6341 if (_argo0 == Py_None) { _arg0 = NULL; }
6342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p.");
6344 return NULL;
6345 }
6346 }
6347{
6348 wxPy_BEGIN_ALLOW_THREADS;
6349 _result = new wxPoint (wxTreeEvent_GetPoint(_arg0));
6350
6351 wxPy_END_ALLOW_THREADS;
6352 if (PyErr_Occurred()) return NULL;
6353} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
6354 _resultobj = Py_BuildValue("s",_ptemp);
6355 return _resultobj;
6356}
6357
6358#define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent())
6359static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6360 PyObject * _resultobj;
6361 wxKeyEvent * _result;
6362 wxTreeEvent * _arg0;
6363 PyObject * _argo0 = 0;
6364 char *_kwnames[] = { "self", NULL };
6365 char _ptemp[128];
6366
6367 self = self;
6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0))
6369 return NULL;
6370 if (_argo0) {
6371 if (_argo0 == Py_None) { _arg0 = NULL; }
6372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p.");
6374 return NULL;
6375 }
6376 }
6377{
6378 wxPy_BEGIN_ALLOW_THREADS;
6379 const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0);
6380 _result = (wxKeyEvent *) &_result_ref;
6381
6382 wxPy_END_ALLOW_THREADS;
6383 if (PyErr_Occurred()) return NULL;
6384} if (_result) {
6385 SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p");
6386 _resultobj = Py_BuildValue("s",_ptemp);
6387 } else {
6388 Py_INCREF(Py_None);
6389 _resultobj = Py_None;
6390 }
6391 return _resultobj;
6392}
6393
6394#define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode())
6395static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
6396 PyObject * _resultobj;
6397 int _result;
6398 wxTreeEvent * _arg0;
6399 PyObject * _argo0 = 0;
6400 char *_kwnames[] = { "self", NULL };
6401
6402 self = self;
6403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0))
6404 return NULL;
6405 if (_argo0) {
6406 if (_argo0 == Py_None) { _arg0 = NULL; }
6407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p.");
6409 return NULL;
6410 }
6411 }
6412{
6413 wxPy_BEGIN_ALLOW_THREADS;
6414 _result = (int )wxTreeEvent_GetCode(_arg0);
6415
6416 wxPy_END_ALLOW_THREADS;
6417 if (PyErr_Occurred()) return NULL;
6418} _resultobj = Py_BuildValue("i",_result);
6419 return _resultobj;
6420}
6421
6422#define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
6423static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6424 PyObject * _resultobj;
6425 wxString * _result;
6426 wxTreeEvent * _arg0;
6427 PyObject * _argo0 = 0;
6428 char *_kwnames[] = { "self", NULL };
6429
6430 self = self;
6431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0))
6432 return NULL;
6433 if (_argo0) {
6434 if (_argo0 == Py_None) { _arg0 = NULL; }
6435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p.");
6437 return NULL;
6438 }
6439 }
6440{
6441 wxPy_BEGIN_ALLOW_THREADS;
6442 const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0);
6443 _result = (wxString *) &_result_ref;
6444
6445 wxPy_END_ALLOW_THREADS;
6446 if (PyErr_Occurred()) return NULL;
6447}{
6448 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6449}
6450 return _resultobj;
6451}
6452
6453static void *SwigwxPyTreeCtrlTowxControl(void *ptr) {
6454 wxPyTreeCtrl *src;
6455 wxControl *dest;
6456 src = (wxPyTreeCtrl *) ptr;
6457 dest = (wxControl *) src;
6458 return (void *) dest;
6459}
6460
6461static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) {
6462 wxPyTreeCtrl *src;
6463 wxWindow *dest;
6464 src = (wxPyTreeCtrl *) ptr;
6465 dest = (wxWindow *) src;
6466 return (void *) dest;
6467}
6468
6469static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) {
6470 wxPyTreeCtrl *src;
6471 wxEvtHandler *dest;
6472 src = (wxPyTreeCtrl *) ptr;
6473 dest = (wxEvtHandler *) src;
6474 return (void *) dest;
6475}
6476
6477static void *SwigwxPyTreeCtrlTowxObject(void *ptr) {
6478 wxPyTreeCtrl *src;
6479 wxObject *dest;
6480 src = (wxPyTreeCtrl *) ptr;
6481 dest = (wxObject *) src;
6482 return (void *) dest;
6483}
6484
6485#define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6486static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6487 PyObject * _resultobj;
6488 wxPyTreeCtrl * _result;
6489 wxWindow * _arg0;
6490 wxWindowID _arg1 = (wxWindowID ) -1;
6491 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6492 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6493 long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
6494 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
6495 char * _arg6 = (char *) "wxTreeCtrl";
6496 PyObject * _argo0 = 0;
6497 wxPoint temp;
6498 PyObject * _obj2 = 0;
6499 wxSize temp0;
6500 PyObject * _obj3 = 0;
6501 PyObject * _argo5 = 0;
6502 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
6503 char _ptemp[128];
6504
6505 self = self;
6506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
6507 return NULL;
6508 if (_argo0) {
6509 if (_argo0 == Py_None) { _arg0 = NULL; }
6510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p.");
6512 return NULL;
6513 }
6514 }
6515 if (_obj2)
6516{
6517 _arg2 = &temp;
6518 if (! wxPoint_helper(_obj2, &_arg2))
6519 return NULL;
6520}
6521 if (_obj3)
6522{
6523 _arg3 = &temp0;
6524 if (! wxSize_helper(_obj3, &_arg3))
6525 return NULL;
6526}
6527 if (_argo5) {
6528 if (_argo5 == Py_None) { _arg5 = NULL; }
6529 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
6530 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p.");
6531 return NULL;
6532 }
6533 }
6534{
6535 wxPy_BEGIN_ALLOW_THREADS;
6536 _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
6537
6538 wxPy_END_ALLOW_THREADS;
6539 if (PyErr_Occurred()) return NULL;
6540} if (_result) {
6541 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
6542 _resultobj = Py_BuildValue("s",_ptemp);
6543 } else {
6544 Py_INCREF(Py_None);
6545 _resultobj = Py_None;
6546 }
6547 return _resultobj;
6548}
6549
6550#define new_wxPreTreeCtrl() (new wxPyTreeCtrl())
6551static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6552 PyObject * _resultobj;
6553 wxPyTreeCtrl * _result;
6554 char *_kwnames[] = { NULL };
6555 char _ptemp[128];
6556
6557 self = self;
6558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames))
6559 return NULL;
6560{
6561 wxPy_BEGIN_ALLOW_THREADS;
6562 _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl();
6563
6564 wxPy_END_ALLOW_THREADS;
6565 if (PyErr_Occurred()) return NULL;
6566} if (_result) {
6567 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
6568 _resultobj = Py_BuildValue("s",_ptemp);
6569 } else {
6570 Py_INCREF(Py_None);
6571 _resultobj = Py_None;
6572 }
6573 return _resultobj;
6574}
6575
6576#define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6577static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6578 PyObject * _resultobj;
6579 bool _result;
6580 wxPyTreeCtrl * _arg0;
6581 wxWindow * _arg1;
6582 wxWindowID _arg2 = (wxWindowID ) -1;
6583 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6584 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6585 long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
6586 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
6587 char * _arg7 = (char *) "wxTreeCtrl";
6588 PyObject * _argo0 = 0;
6589 PyObject * _argo1 = 0;
6590 wxPoint temp;
6591 PyObject * _obj3 = 0;
6592 wxSize temp0;
6593 PyObject * _obj4 = 0;
6594 PyObject * _argo6 = 0;
6595 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
6596
6597 self = self;
6598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
6599 return NULL;
6600 if (_argo0) {
6601 if (_argo0 == Py_None) { _arg0 = NULL; }
6602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p.");
6604 return NULL;
6605 }
6606 }
6607 if (_argo1) {
6608 if (_argo1 == Py_None) { _arg1 = NULL; }
6609 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6610 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p.");
6611 return NULL;
6612 }
6613 }
6614 if (_obj3)
6615{
6616 _arg3 = &temp;
6617 if (! wxPoint_helper(_obj3, &_arg3))
6618 return NULL;
6619}
6620 if (_obj4)
6621{
6622 _arg4 = &temp0;
6623 if (! wxSize_helper(_obj4, &_arg4))
6624 return NULL;
6625}
6626 if (_argo6) {
6627 if (_argo6 == Py_None) { _arg6 = NULL; }
6628 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
6629 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p.");
6630 return NULL;
6631 }
6632 }
6633{
6634 wxPy_BEGIN_ALLOW_THREADS;
6635 _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
6636
6637 wxPy_END_ALLOW_THREADS;
6638 if (PyErr_Occurred()) return NULL;
6639} _resultobj = Py_BuildValue("i",_result);
6640 return _resultobj;
6641}
6642
6643#define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
6644static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6645 PyObject * _resultobj;
6646 wxPyTreeCtrl * _arg0;
6647 PyObject * _arg1;
6648 PyObject * _arg2;
6649 PyObject * _argo0 = 0;
6650 PyObject * _obj1 = 0;
6651 PyObject * _obj2 = 0;
6652 char *_kwnames[] = { "self","self","_class", NULL };
6653
6654 self = self;
6655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
6656 return NULL;
6657 if (_argo0) {
6658 if (_argo0 == Py_None) { _arg0 = NULL; }
6659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p.");
6661 return NULL;
6662 }
6663 }
6664{
6665 _arg1 = _obj1;
6666}
6667{
6668 _arg2 = _obj2;
6669}
6670{
6671 wxPy_BEGIN_ALLOW_THREADS;
6672 wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2);
6673
6674 wxPy_END_ALLOW_THREADS;
6675 if (PyErr_Occurred()) return NULL;
6676} Py_INCREF(Py_None);
6677 _resultobj = Py_None;
6678 return _resultobj;
6679}
6680
6681#define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount())
6682static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6683 PyObject * _resultobj;
6684 size_t _result;
6685 wxPyTreeCtrl * _arg0;
6686 PyObject * _argo0 = 0;
6687 char *_kwnames[] = { "self", NULL };
6688
6689 self = self;
6690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0))
6691 return NULL;
6692 if (_argo0) {
6693 if (_argo0 == Py_None) { _arg0 = NULL; }
6694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p.");
6696 return NULL;
6697 }
6698 }
6699{
6700 wxPy_BEGIN_ALLOW_THREADS;
6701 _result = (size_t )wxTreeCtrl_GetCount(_arg0);
6702
6703 wxPy_END_ALLOW_THREADS;
6704 if (PyErr_Occurred()) return NULL;
6705} _resultobj = Py_BuildValue("i",_result);
6706 return _resultobj;
6707}
6708
6709#define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent())
6710static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6711 PyObject * _resultobj;
6712 unsigned int _result;
6713 wxPyTreeCtrl * _arg0;
6714 PyObject * _argo0 = 0;
6715 char *_kwnames[] = { "self", NULL };
6716
6717 self = self;
6718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0))
6719 return NULL;
6720 if (_argo0) {
6721 if (_argo0 == Py_None) { _arg0 = NULL; }
6722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p.");
6724 return NULL;
6725 }
6726 }
6727{
6728 wxPy_BEGIN_ALLOW_THREADS;
6729 _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0);
6730
6731 wxPy_END_ALLOW_THREADS;
6732 if (PyErr_Occurred()) return NULL;
6733} _resultobj = Py_BuildValue("i",_result);
6734 return _resultobj;
6735}
6736
6737#define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
6738static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6739 PyObject * _resultobj;
6740 wxPyTreeCtrl * _arg0;
6741 unsigned int _arg1;
6742 PyObject * _argo0 = 0;
6743 char *_kwnames[] = { "self","indent", NULL };
6744
6745 self = self;
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1))
6747 return NULL;
6748 if (_argo0) {
6749 if (_argo0 == Py_None) { _arg0 = NULL; }
6750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p.");
6752 return NULL;
6753 }
6754 }
6755{
6756 wxPy_BEGIN_ALLOW_THREADS;
6757 wxTreeCtrl_SetIndent(_arg0,_arg1);
6758
6759 wxPy_END_ALLOW_THREADS;
6760 if (PyErr_Occurred()) return NULL;
6761} Py_INCREF(Py_None);
6762 _resultobj = Py_None;
6763 return _resultobj;
6764}
6765
6766#define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList())
6767static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6768 PyObject * _resultobj;
6769 wxImageList * _result;
6770 wxPyTreeCtrl * _arg0;
6771 PyObject * _argo0 = 0;
6772 char *_kwnames[] = { "self", NULL };
6773
6774 self = self;
6775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0))
6776 return NULL;
6777 if (_argo0) {
6778 if (_argo0 == Py_None) { _arg0 = NULL; }
6779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p.");
6781 return NULL;
6782 }
6783 }
6784{
6785 wxPy_BEGIN_ALLOW_THREADS;
6786 _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0);
6787
6788 wxPy_END_ALLOW_THREADS;
6789 if (PyErr_Occurred()) return NULL;
6790}{ _resultobj = wxPyMake_wxObject(_result); }
6791 return _resultobj;
6792}
6793
6794#define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList())
6795static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6796 PyObject * _resultobj;
6797 wxImageList * _result;
6798 wxPyTreeCtrl * _arg0;
6799 PyObject * _argo0 = 0;
6800 char *_kwnames[] = { "self", NULL };
6801
6802 self = self;
6803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0))
6804 return NULL;
6805 if (_argo0) {
6806 if (_argo0 == Py_None) { _arg0 = NULL; }
6807 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6808 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p.");
6809 return NULL;
6810 }
6811 }
6812{
6813 wxPy_BEGIN_ALLOW_THREADS;
6814 _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0);
6815
6816 wxPy_END_ALLOW_THREADS;
6817 if (PyErr_Occurred()) return NULL;
6818}{ _resultobj = wxPyMake_wxObject(_result); }
6819 return _resultobj;
6820}
6821
6822#define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
6823static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6824 PyObject * _resultobj;
6825 wxPyTreeCtrl * _arg0;
6826 wxImageList * _arg1;
6827 PyObject * _argo0 = 0;
6828 PyObject * _argo1 = 0;
6829 char *_kwnames[] = { "self","imageList", NULL };
6830
6831 self = self;
6832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1))
6833 return NULL;
6834 if (_argo0) {
6835 if (_argo0 == Py_None) { _arg0 = NULL; }
6836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p.");
6838 return NULL;
6839 }
6840 }
6841 if (_argo1) {
6842 if (_argo1 == Py_None) { _arg1 = NULL; }
6843 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6844 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p.");
6845 return NULL;
6846 }
6847 }
6848{
6849 wxPy_BEGIN_ALLOW_THREADS;
6850 wxTreeCtrl_SetImageList(_arg0,_arg1);
6851
6852 wxPy_END_ALLOW_THREADS;
6853 if (PyErr_Occurred()) return NULL;
6854} Py_INCREF(Py_None);
6855 _resultobj = Py_None;
6856 return _resultobj;
6857}
6858
6859#define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0))
6860static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject * _resultobj;
6862 wxPyTreeCtrl * _arg0;
6863 wxImageList * _arg1;
6864 PyObject * _argo0 = 0;
6865 PyObject * _argo1 = 0;
6866 char *_kwnames[] = { "self","imageList", NULL };
6867
6868 self = self;
6869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1))
6870 return NULL;
6871 if (_argo0) {
6872 if (_argo0 == Py_None) { _arg0 = NULL; }
6873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p.");
6875 return NULL;
6876 }
6877 }
6878 if (_argo1) {
6879 if (_argo1 == Py_None) { _arg1 = NULL; }
6880 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6881 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p.");
6882 return NULL;
6883 }
6884 }
6885{
6886 wxPy_BEGIN_ALLOW_THREADS;
6887 wxTreeCtrl_SetStateImageList(_arg0,_arg1);
6888
6889 wxPy_END_ALLOW_THREADS;
6890 if (PyErr_Occurred()) return NULL;
6891} Py_INCREF(Py_None);
6892 _resultobj = Py_None;
6893 return _resultobj;
6894}
6895
6896#define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
6897static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6898 PyObject * _resultobj;
6899 wxPyTreeCtrl * _arg0;
6900 wxImageList * _arg1;
6901 PyObject * _argo0 = 0;
6902 PyObject * _argo1 = 0;
6903 char *_kwnames[] = { "self","imageList", NULL };
6904
6905 self = self;
6906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1))
6907 return NULL;
6908 if (_argo0) {
6909 if (_argo0 == Py_None) { _arg0 = NULL; }
6910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p.");
6912 return NULL;
6913 }
6914 }
6915 if (_argo1) {
6916 if (_argo1 == Py_None) { _arg1 = NULL; }
6917 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6918 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p.");
6919 return NULL;
6920 }
6921 }
6922{
6923 wxPy_BEGIN_ALLOW_THREADS;
6924 wxTreeCtrl_AssignImageList(_arg0,_arg1);
6925
6926 wxPy_END_ALLOW_THREADS;
6927 if (PyErr_Occurred()) return NULL;
6928} Py_INCREF(Py_None);
6929 _resultobj = Py_None;
6930 return _resultobj;
6931}
6932
6933#define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0))
6934static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6935 PyObject * _resultobj;
6936 wxPyTreeCtrl * _arg0;
6937 wxImageList * _arg1;
6938 PyObject * _argo0 = 0;
6939 PyObject * _argo1 = 0;
6940 char *_kwnames[] = { "self","imageList", NULL };
6941
6942 self = self;
6943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1))
6944 return NULL;
6945 if (_argo0) {
6946 if (_argo0 == Py_None) { _arg0 = NULL; }
6947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p.");
6949 return NULL;
6950 }
6951 }
6952 if (_argo1) {
6953 if (_argo1 == Py_None) { _arg1 = NULL; }
6954 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6955 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p.");
6956 return NULL;
6957 }
6958 }
6959{
6960 wxPy_BEGIN_ALLOW_THREADS;
6961 wxTreeCtrl_AssignStateImageList(_arg0,_arg1);
6962
6963 wxPy_END_ALLOW_THREADS;
6964 if (PyErr_Occurred()) return NULL;
6965} Py_INCREF(Py_None);
6966 _resultobj = Py_None;
6967 return _resultobj;
6968}
6969
6970#define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing())
6971static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
6972 PyObject * _resultobj;
6973 unsigned int _result;
6974 wxPyTreeCtrl * _arg0;
6975 PyObject * _argo0 = 0;
6976 char *_kwnames[] = { "self", NULL };
6977
6978 self = self;
6979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0))
6980 return NULL;
6981 if (_argo0) {
6982 if (_argo0 == Py_None) { _arg0 = NULL; }
6983 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6984 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p.");
6985 return NULL;
6986 }
6987 }
6988{
6989 wxPy_BEGIN_ALLOW_THREADS;
6990 _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0);
6991
6992 wxPy_END_ALLOW_THREADS;
6993 if (PyErr_Occurred()) return NULL;
6994} _resultobj = Py_BuildValue("i",_result);
6995 return _resultobj;
6996}
6997
6998#define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0))
6999static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
7000 PyObject * _resultobj;
7001 wxPyTreeCtrl * _arg0;
7002 unsigned int _arg1;
7003 PyObject * _argo0 = 0;
7004 char *_kwnames[] = { "self","spacing", NULL };
7005
7006 self = self;
7007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1))
7008 return NULL;
7009 if (_argo0) {
7010 if (_argo0 == Py_None) { _arg0 = NULL; }
7011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p.");
7013 return NULL;
7014 }
7015 }
7016{
7017 wxPy_BEGIN_ALLOW_THREADS;
7018 wxTreeCtrl_SetSpacing(_arg0,_arg1);
7019
7020 wxPy_END_ALLOW_THREADS;
7021 if (PyErr_Occurred()) return NULL;
7022} Py_INCREF(Py_None);
7023 _resultobj = Py_None;
7024 return _resultobj;
7025}
7026
7027#define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
7028static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
7029 PyObject * _resultobj;
7030 wxString * _result;
7031 wxPyTreeCtrl * _arg0;
7032 wxTreeItemId * _arg1;
7033 PyObject * _argo0 = 0;
7034 PyObject * _argo1 = 0;
7035 char *_kwnames[] = { "self","item", NULL };
7036
7037 self = self;
7038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1))
7039 return NULL;
7040 if (_argo0) {
7041 if (_argo0 == Py_None) { _arg0 = NULL; }
7042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p.");
7044 return NULL;
7045 }
7046 }
7047 if (_argo1) {
7048 if (_argo1 == Py_None) { _arg1 = NULL; }
7049 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7050 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p.");
7051 return NULL;
7052 }
7053 }
7054{
7055 wxPy_BEGIN_ALLOW_THREADS;
7056 _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1));
7057
7058 wxPy_END_ALLOW_THREADS;
7059 if (PyErr_Occurred()) return NULL;
7060}{
7061 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7062}
7063{
7064 delete _result;
7065}
7066 return _resultobj;
7067}
7068
7069#define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1))
7070static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7071 PyObject * _resultobj;
7072 int _result;
7073 wxPyTreeCtrl * _arg0;
7074 wxTreeItemId * _arg1;
7075 wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
7076 PyObject * _argo0 = 0;
7077 PyObject * _argo1 = 0;
7078 char *_kwnames[] = { "self","item","which", NULL };
7079
7080 self = self;
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2))
7082 return NULL;
7083 if (_argo0) {
7084 if (_argo0 == Py_None) { _arg0 = NULL; }
7085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p.");
7087 return NULL;
7088 }
7089 }
7090 if (_argo1) {
7091 if (_argo1 == Py_None) { _arg1 = NULL; }
7092 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7093 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p.");
7094 return NULL;
7095 }
7096 }
7097{
7098 wxPy_BEGIN_ALLOW_THREADS;
7099 _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2);
7100
7101 wxPy_END_ALLOW_THREADS;
7102 if (PyErr_Occurred()) return NULL;
7103} _resultobj = Py_BuildValue("i",_result);
7104 return _resultobj;
7105}
7106
7107#define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0))
7108static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7109 PyObject * _resultobj;
7110 int _result;
7111 wxPyTreeCtrl * _arg0;
7112 wxTreeItemId * _arg1;
7113 PyObject * _argo0 = 0;
7114 PyObject * _argo1 = 0;
7115 char *_kwnames[] = { "self","item", NULL };
7116
7117 self = self;
7118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1))
7119 return NULL;
7120 if (_argo0) {
7121 if (_argo0 == Py_None) { _arg0 = NULL; }
7122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
7124 return NULL;
7125 }
7126 }
7127 if (_argo1) {
7128 if (_argo1 == Py_None) { _arg1 = NULL; }
7129 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7130 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p.");
7131 return NULL;
7132 }
7133 }
7134{
7135 wxPy_BEGIN_ALLOW_THREADS;
7136 _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1);
7137
7138 wxPy_END_ALLOW_THREADS;
7139 if (PyErr_Occurred()) return NULL;
7140} _resultobj = Py_BuildValue("i",_result);
7141 return _resultobj;
7142}
7143
7144#define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
7145static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
7146 PyObject * _resultobj;
7147 wxPyTreeCtrl * _arg0;
7148 wxTreeItemId * _arg1;
7149 wxString * _arg2;
7150 PyObject * _argo0 = 0;
7151 PyObject * _argo1 = 0;
7152 PyObject * _obj2 = 0;
7153 char *_kwnames[] = { "self","item","text", NULL };
7154
7155 self = self;
7156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2))
7157 return NULL;
7158 if (_argo0) {
7159 if (_argo0 == Py_None) { _arg0 = NULL; }
7160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p.");
7162 return NULL;
7163 }
7164 }
7165 if (_argo1) {
7166 if (_argo1 == Py_None) { _arg1 = NULL; }
7167 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7168 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p.");
7169 return NULL;
7170 }
7171 }
7172{
7173#if PYTHON_API_VERSION >= 1009
7174 char* tmpPtr; int tmpSize;
7175 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7176 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7177 return NULL;
7178 }
7179 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7180 return NULL;
7181 _arg2 = new wxString(tmpPtr, tmpSize);
7182#else
7183 if (!PyString_Check(_obj2)) {
7184 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7185 return NULL;
7186 }
7187 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7188#endif
7189}
7190{
7191 wxPy_BEGIN_ALLOW_THREADS;
7192 wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2);
7193
7194 wxPy_END_ALLOW_THREADS;
7195 if (PyErr_Occurred()) return NULL;
7196} Py_INCREF(Py_None);
7197 _resultobj = Py_None;
7198{
7199 if (_obj2)
7200 delete _arg2;
7201}
7202 return _resultobj;
7203}
7204
7205#define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
7206static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7207 PyObject * _resultobj;
7208 wxPyTreeCtrl * _arg0;
7209 wxTreeItemId * _arg1;
7210 int _arg2;
7211 wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
7212 PyObject * _argo0 = 0;
7213 PyObject * _argo1 = 0;
7214 char *_kwnames[] = { "self","item","image","which", NULL };
7215
7216 self = self;
7217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
7218 return NULL;
7219 if (_argo0) {
7220 if (_argo0 == Py_None) { _arg0 = NULL; }
7221 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p.");
7223 return NULL;
7224 }
7225 }
7226 if (_argo1) {
7227 if (_argo1 == Py_None) { _arg1 = NULL; }
7228 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7229 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p.");
7230 return NULL;
7231 }
7232 }
7233{
7234 wxPy_BEGIN_ALLOW_THREADS;
7235 wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3);
7236
7237 wxPy_END_ALLOW_THREADS;
7238 if (PyErr_Occurred()) return NULL;
7239} Py_INCREF(Py_None);
7240 _resultobj = Py_None;
7241 return _resultobj;
7242}
7243
7244#define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1))
7245static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7246 PyObject * _resultobj;
7247 wxPyTreeCtrl * _arg0;
7248 wxTreeItemId * _arg1;
7249 int _arg2;
7250 PyObject * _argo0 = 0;
7251 PyObject * _argo1 = 0;
7252 char *_kwnames[] = { "self","item","image", NULL };
7253
7254 self = self;
7255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2))
7256 return NULL;
7257 if (_argo0) {
7258 if (_argo0 == Py_None) { _arg0 = NULL; }
7259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
7261 return NULL;
7262 }
7263 }
7264 if (_argo1) {
7265 if (_argo1 == Py_None) { _arg1 = NULL; }
7266 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7267 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p.");
7268 return NULL;
7269 }
7270 }
7271{
7272 wxPy_BEGIN_ALLOW_THREADS;
7273 wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2);
7274
7275 wxPy_END_ALLOW_THREADS;
7276 if (PyErr_Occurred()) return NULL;
7277} Py_INCREF(Py_None);
7278 _resultobj = Py_None;
7279 return _resultobj;
7280}
7281
7282#define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1))
7283static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
7284 PyObject * _resultobj;
7285 wxPyTreeCtrl * _arg0;
7286 wxTreeItemId * _arg1;
7287 bool _arg2 = (bool ) TRUE;
7288 PyObject * _argo0 = 0;
7289 PyObject * _argo1 = 0;
7290 int tempbool2 = (int) TRUE;
7291 char *_kwnames[] = { "self","item","hasChildren", NULL };
7292
7293 self = self;
7294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2))
7295 return NULL;
7296 if (_argo0) {
7297 if (_argo0 == Py_None) { _arg0 = NULL; }
7298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p.");
7300 return NULL;
7301 }
7302 }
7303 if (_argo1) {
7304 if (_argo1 == Py_None) { _arg1 = NULL; }
7305 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7306 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p.");
7307 return NULL;
7308 }
7309 }
7310 _arg2 = (bool ) tempbool2;
7311{
7312 wxPy_BEGIN_ALLOW_THREADS;
7313 wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2);
7314
7315 wxPy_END_ALLOW_THREADS;
7316 if (PyErr_Occurred()) return NULL;
7317} Py_INCREF(Py_None);
7318 _resultobj = Py_None;
7319 return _resultobj;
7320}
7321
7322static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
7323 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7324 if (data == NULL) {
7325 data = new wxPyTreeItemData();
7326 data->SetId(item); // set the id
7327 self->SetItemData(item, data);
7328 }
7329 return data;
7330 }
7331static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
7332 PyObject * _resultobj;
7333 wxPyTreeItemData * _result;
7334 wxPyTreeCtrl * _arg0;
7335 wxTreeItemId * _arg1;
7336 PyObject * _argo0 = 0;
7337 PyObject * _argo1 = 0;
7338 char *_kwnames[] = { "self","item", NULL };
7339 char _ptemp[128];
7340
7341 self = self;
7342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1))
7343 return NULL;
7344 if (_argo0) {
7345 if (_argo0 == Py_None) { _arg0 = NULL; }
7346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p.");
7348 return NULL;
7349 }
7350 }
7351 if (_argo1) {
7352 if (_argo1 == Py_None) { _arg1 = NULL; }
7353 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7354 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p.");
7355 return NULL;
7356 }
7357 }
7358{
7359 wxPy_BEGIN_ALLOW_THREADS;
7360 _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1);
7361
7362 wxPy_END_ALLOW_THREADS;
7363 if (PyErr_Occurred()) return NULL;
7364} if (_result) {
7365 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
7366 _resultobj = Py_BuildValue("s",_ptemp);
7367 } else {
7368 Py_INCREF(Py_None);
7369 _resultobj = Py_None;
7370 }
7371 return _resultobj;
7372}
7373
7374static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) {
7375 data->SetId(item); // set the id
7376 self->SetItemData(item, data);
7377 }
7378static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
7379 PyObject * _resultobj;
7380 wxPyTreeCtrl * _arg0;
7381 wxTreeItemId * _arg1;
7382 wxPyTreeItemData * _arg2;
7383 PyObject * _argo0 = 0;
7384 PyObject * _argo1 = 0;
7385 PyObject * _argo2 = 0;
7386 char *_kwnames[] = { "self","item","data", NULL };
7387
7388 self = self;
7389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2))
7390 return NULL;
7391 if (_argo0) {
7392 if (_argo0 == Py_None) { _arg0 = NULL; }
7393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p.");
7395 return NULL;
7396 }
7397 }
7398 if (_argo1) {
7399 if (_argo1 == Py_None) { _arg1 = NULL; }
7400 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7401 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p.");
7402 return NULL;
7403 }
7404 }
7405 if (_argo2) {
7406 if (_argo2 == Py_None) { _arg2 = NULL; }
7407 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) {
7408 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p.");
7409 return NULL;
7410 }
7411 }
7412{
7413 wxPy_BEGIN_ALLOW_THREADS;
7414 wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2);
7415
7416 wxPy_END_ALLOW_THREADS;
7417 if (PyErr_Occurred()) return NULL;
7418} Py_INCREF(Py_None);
7419 _resultobj = Py_None;
7420 return _resultobj;
7421}
7422
7423static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
7424 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7425 if (data == NULL) {
7426 data = new wxPyTreeItemData();
7427 data->SetId(item); // set the id
7428 self->SetItemData(item, data);
7429 }
7430 return data->GetData();
7431 }
7432static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject * _resultobj;
7434 PyObject * _result;
7435 wxPyTreeCtrl * _arg0;
7436 wxTreeItemId * _arg1;
7437 PyObject * _argo0 = 0;
7438 PyObject * _argo1 = 0;
7439 char *_kwnames[] = { "self","item", NULL };
7440
7441 self = self;
7442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1))
7443 return NULL;
7444 if (_argo0) {
7445 if (_argo0 == Py_None) { _arg0 = NULL; }
7446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p.");
7448 return NULL;
7449 }
7450 }
7451 if (_argo1) {
7452 if (_argo1 == Py_None) { _arg1 = NULL; }
7453 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7454 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p.");
7455 return NULL;
7456 }
7457 }
7458{
7459 wxPy_BEGIN_ALLOW_THREADS;
7460 _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1);
7461
7462 wxPy_END_ALLOW_THREADS;
7463 if (PyErr_Occurred()) return NULL;
7464}{
7465 _resultobj = _result;
7466}
7467 return _resultobj;
7468}
7469
7470static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) {
7471 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7472 if (data == NULL) {
7473 data = new wxPyTreeItemData(obj);
7474 data->SetId(item); // set the id
7475 self->SetItemData(item, data);
7476 } else
7477 data->SetData(obj);
7478 }
7479static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
7480 PyObject * _resultobj;
7481 wxPyTreeCtrl * _arg0;
7482 wxTreeItemId * _arg1;
7483 PyObject * _arg2;
7484 PyObject * _argo0 = 0;
7485 PyObject * _argo1 = 0;
7486 PyObject * _obj2 = 0;
7487 char *_kwnames[] = { "self","item","obj", NULL };
7488
7489 self = self;
7490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2))
7491 return NULL;
7492 if (_argo0) {
7493 if (_argo0 == Py_None) { _arg0 = NULL; }
7494 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7495 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p.");
7496 return NULL;
7497 }
7498 }
7499 if (_argo1) {
7500 if (_argo1 == Py_None) { _arg1 = NULL; }
7501 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7502 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p.");
7503 return NULL;
7504 }
7505 }
7506{
7507 _arg2 = _obj2;
7508}
7509{
7510 wxPy_BEGIN_ALLOW_THREADS;
7511 wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2);
7512
7513 wxPy_END_ALLOW_THREADS;
7514 if (PyErr_Occurred()) return NULL;
7515} Py_INCREF(Py_None);
7516 _resultobj = Py_None;
7517 return _resultobj;
7518}
7519
7520#define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0))
7521static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
7522 PyObject * _resultobj;
7523 bool _result;
7524 wxPyTreeCtrl * _arg0;
7525 wxTreeItemId * _arg1;
7526 PyObject * _argo0 = 0;
7527 PyObject * _argo1 = 0;
7528 char *_kwnames[] = { "self","item", NULL };
7529
7530 self = self;
7531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1))
7532 return NULL;
7533 if (_argo0) {
7534 if (_argo0 == Py_None) { _arg0 = NULL; }
7535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p.");
7537 return NULL;
7538 }
7539 }
7540 if (_argo1) {
7541 if (_argo1 == Py_None) { _arg1 = NULL; }
7542 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7543 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p.");
7544 return NULL;
7545 }
7546 }
7547{
7548 wxPy_BEGIN_ALLOW_THREADS;
7549 _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1);
7550
7551 wxPy_END_ALLOW_THREADS;
7552 if (PyErr_Occurred()) return NULL;
7553} _resultobj = Py_BuildValue("i",_result);
7554 return _resultobj;
7555}
7556
7557#define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0))
7558static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
7559 PyObject * _resultobj;
7560 bool _result;
7561 wxPyTreeCtrl * _arg0;
7562 wxTreeItemId * _arg1;
7563 PyObject * _argo0 = 0;
7564 PyObject * _argo1 = 0;
7565 char *_kwnames[] = { "self","item", NULL };
7566
7567 self = self;
7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1))
7569 return NULL;
7570 if (_argo0) {
7571 if (_argo0 == Py_None) { _arg0 = NULL; }
7572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p.");
7574 return NULL;
7575 }
7576 }
7577 if (_argo1) {
7578 if (_argo1 == Py_None) { _arg1 = NULL; }
7579 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7580 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p.");
7581 return NULL;
7582 }
7583 }
7584{
7585 wxPy_BEGIN_ALLOW_THREADS;
7586 _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1);
7587
7588 wxPy_END_ALLOW_THREADS;
7589 if (PyErr_Occurred()) return NULL;
7590} _resultobj = Py_BuildValue("i",_result);
7591 return _resultobj;
7592}
7593
7594#define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0))
7595static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
7596 PyObject * _resultobj;
7597 bool _result;
7598 wxPyTreeCtrl * _arg0;
7599 wxTreeItemId * _arg1;
7600 PyObject * _argo0 = 0;
7601 PyObject * _argo1 = 0;
7602 char *_kwnames[] = { "self","item", NULL };
7603
7604 self = self;
7605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1))
7606 return NULL;
7607 if (_argo0) {
7608 if (_argo0 == Py_None) { _arg0 = NULL; }
7609 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7610 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p.");
7611 return NULL;
7612 }
7613 }
7614 if (_argo1) {
7615 if (_argo1 == Py_None) { _arg1 = NULL; }
7616 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7617 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p.");
7618 return NULL;
7619 }
7620 }
7621{
7622 wxPy_BEGIN_ALLOW_THREADS;
7623 _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1);
7624
7625 wxPy_END_ALLOW_THREADS;
7626 if (PyErr_Occurred()) return NULL;
7627} _resultobj = Py_BuildValue("i",_result);
7628 return _resultobj;
7629}
7630
7631#define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
7632static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
7633 PyObject * _resultobj;
7634 bool _result;
7635 wxPyTreeCtrl * _arg0;
7636 wxTreeItemId * _arg1;
7637 PyObject * _argo0 = 0;
7638 PyObject * _argo1 = 0;
7639 char *_kwnames[] = { "self","item", NULL };
7640
7641 self = self;
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1))
7643 return NULL;
7644 if (_argo0) {
7645 if (_argo0 == Py_None) { _arg0 = NULL; }
7646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p.");
7648 return NULL;
7649 }
7650 }
7651 if (_argo1) {
7652 if (_argo1 == Py_None) { _arg1 = NULL; }
7653 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7654 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p.");
7655 return NULL;
7656 }
7657 }
7658{
7659 wxPy_BEGIN_ALLOW_THREADS;
7660 _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1);
7661
7662 wxPy_END_ALLOW_THREADS;
7663 if (PyErr_Occurred()) return NULL;
7664} _resultobj = Py_BuildValue("i",_result);
7665 return _resultobj;
7666}
7667
7668#define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem())
7669static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7670 PyObject * _resultobj;
7671 wxTreeItemId * _result;
7672 wxPyTreeCtrl * _arg0;
7673 PyObject * _argo0 = 0;
7674 char *_kwnames[] = { "self", NULL };
7675 char _ptemp[128];
7676
7677 self = self;
7678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0))
7679 return NULL;
7680 if (_argo0) {
7681 if (_argo0 == Py_None) { _arg0 = NULL; }
7682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p.");
7684 return NULL;
7685 }
7686 }
7687{
7688 wxPy_BEGIN_ALLOW_THREADS;
7689 _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0));
7690
7691 wxPy_END_ALLOW_THREADS;
7692 if (PyErr_Occurred()) return NULL;
7693} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7694 _resultobj = Py_BuildValue("s",_ptemp);
7695 return _resultobj;
7696}
7697
7698#define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection())
7699static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7700 PyObject * _resultobj;
7701 wxTreeItemId * _result;
7702 wxPyTreeCtrl * _arg0;
7703 PyObject * _argo0 = 0;
7704 char *_kwnames[] = { "self", NULL };
7705 char _ptemp[128];
7706
7707 self = self;
7708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0))
7709 return NULL;
7710 if (_argo0) {
7711 if (_argo0 == Py_None) { _arg0 = NULL; }
7712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p.");
7714 return NULL;
7715 }
7716 }
7717{
7718 wxPy_BEGIN_ALLOW_THREADS;
7719 _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0));
7720
7721 wxPy_END_ALLOW_THREADS;
7722 if (PyErr_Occurred()) return NULL;
7723} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7724 _resultobj = Py_BuildValue("s",_ptemp);
7725 return _resultobj;
7726}
7727
7728#define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0))
7729static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7730 PyObject * _resultobj;
7731 wxTreeItemId * _result;
7732 wxPyTreeCtrl * _arg0;
7733 wxTreeItemId * _arg1;
7734 PyObject * _argo0 = 0;
7735 PyObject * _argo1 = 0;
7736 char *_kwnames[] = { "self","item", NULL };
7737 char _ptemp[128];
7738
7739 self = self;
7740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1))
7741 return NULL;
7742 if (_argo0) {
7743 if (_argo0 == Py_None) { _arg0 = NULL; }
7744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p.");
7746 return NULL;
7747 }
7748 }
7749 if (_argo1) {
7750 if (_argo1 == Py_None) { _arg1 = NULL; }
7751 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7752 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p.");
7753 return NULL;
7754 }
7755 }
7756{
7757 wxPy_BEGIN_ALLOW_THREADS;
7758 _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1));
7759
7760 wxPy_END_ALLOW_THREADS;
7761 if (PyErr_Occurred()) return NULL;
7762} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7763 _resultobj = Py_BuildValue("s",_ptemp);
7764 return _resultobj;
7765}
7766
7767static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) {
7768 wxPyTState* state = wxPyBeginBlockThreads();
7769 PyObject* rval = PyList_New(0);
7770 wxArrayTreeItemIds array;
7771 size_t num, x;
7772 num = self->GetSelections(array);
7773 for (x=0; x < num; x++) {
7774 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
7775 PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE);
7776 PyList_Append(rval, item);
7777 }
7778 wxPyEndBlockThreads(state);
7779 return rval;
7780 }
7781static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
7782 PyObject * _resultobj;
7783 PyObject * _result;
7784 wxPyTreeCtrl * _arg0;
7785 PyObject * _argo0 = 0;
7786 char *_kwnames[] = { "self", NULL };
7787
7788 self = self;
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0))
7790 return NULL;
7791 if (_argo0) {
7792 if (_argo0 == Py_None) { _arg0 = NULL; }
7793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p.");
7795 return NULL;
7796 }
7797 }
7798{
7799 wxPy_BEGIN_ALLOW_THREADS;
7800 _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0);
7801
7802 wxPy_END_ALLOW_THREADS;
7803 if (PyErr_Occurred()) return NULL;
7804}{
7805 _resultobj = _result;
7806}
7807 return _resultobj;
7808}
7809
7810#define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1))
7811static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7812 PyObject * _resultobj;
7813 size_t _result;
7814 wxPyTreeCtrl * _arg0;
7815 wxTreeItemId * _arg1;
7816 bool _arg2 = (bool ) TRUE;
7817 PyObject * _argo0 = 0;
7818 PyObject * _argo1 = 0;
7819 int tempbool2 = (int) TRUE;
7820 char *_kwnames[] = { "self","item","recursively", NULL };
7821
7822 self = self;
7823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2))
7824 return NULL;
7825 if (_argo0) {
7826 if (_argo0 == Py_None) { _arg0 = NULL; }
7827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p.");
7829 return NULL;
7830 }
7831 }
7832 if (_argo1) {
7833 if (_argo1 == Py_None) { _arg1 = NULL; }
7834 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7835 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p.");
7836 return NULL;
7837 }
7838 }
7839 _arg2 = (bool ) tempbool2;
7840{
7841 wxPy_BEGIN_ALLOW_THREADS;
7842 _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2);
7843
7844 wxPy_END_ALLOW_THREADS;
7845 if (PyErr_Occurred()) return NULL;
7846} _resultobj = Py_BuildValue("i",_result);
7847 return _resultobj;
7848}
7849
7850#define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1))
7851static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
7852 PyObject * _resultobj;
7853 wxTreeItemId * _result;
7854 wxPyTreeCtrl * _arg0;
7855 wxTreeItemId * _arg1;
7856 long * _arg2;
7857 PyObject * _argo0 = 0;
7858 PyObject * _argo1 = 0;
7859 long temp;
7860 PyObject * _obj2 = 0;
7861 char *_kwnames[] = { "self","item","INOUT", NULL };
7862 char _ptemp[128];
7863
7864 self = self;
7865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2))
7866 return NULL;
7867 if (_argo0) {
7868 if (_argo0 == Py_None) { _arg0 = NULL; }
7869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p.");
7871 return NULL;
7872 }
7873 }
7874 if (_argo1) {
7875 if (_argo1 == Py_None) { _arg1 = NULL; }
7876 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7877 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p.");
7878 return NULL;
7879 }
7880 }
7881{
7882 temp = (long) PyInt_AsLong(_obj2);
7883 _arg2 = &temp;
7884}
7885{
7886 wxPy_BEGIN_ALLOW_THREADS;
7887 _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2));
7888
7889 wxPy_END_ALLOW_THREADS;
7890 if (PyErr_Occurred()) return NULL;
7891} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7892 _resultobj = Py_BuildValue("s",_ptemp);
7893{
7894 PyObject *o;
7895 o = PyInt_FromLong((long) (*_arg2));
7896 _resultobj = t_output_helper(_resultobj, o);
7897}
7898 return _resultobj;
7899}
7900
7901#define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1))
7902static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
7903 PyObject * _resultobj;
7904 wxTreeItemId * _result;
7905 wxPyTreeCtrl * _arg0;
7906 wxTreeItemId * _arg1;
7907 long * _arg2;
7908 PyObject * _argo0 = 0;
7909 PyObject * _argo1 = 0;
7910 long temp;
7911 PyObject * _obj2 = 0;
7912 char *_kwnames[] = { "self","item","INOUT", NULL };
7913 char _ptemp[128];
7914
7915 self = self;
7916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2))
7917 return NULL;
7918 if (_argo0) {
7919 if (_argo0 == Py_None) { _arg0 = NULL; }
7920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p.");
7922 return NULL;
7923 }
7924 }
7925 if (_argo1) {
7926 if (_argo1 == Py_None) { _arg1 = NULL; }
7927 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7928 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p.");
7929 return NULL;
7930 }
7931 }
7932{
7933 temp = (long) PyInt_AsLong(_obj2);
7934 _arg2 = &temp;
7935}
7936{
7937 wxPy_BEGIN_ALLOW_THREADS;
7938 _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2));
7939
7940 wxPy_END_ALLOW_THREADS;
7941 if (PyErr_Occurred()) return NULL;
7942} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7943 _resultobj = Py_BuildValue("s",_ptemp);
7944{
7945 PyObject *o;
7946 o = PyInt_FromLong((long) (*_arg2));
7947 _resultobj = t_output_helper(_resultobj, o);
7948}
7949 return _resultobj;
7950}
7951
7952#define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0))
7953static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
7954 PyObject * _resultobj;
7955 wxTreeItemId * _result;
7956 wxPyTreeCtrl * _arg0;
7957 wxTreeItemId * _arg1;
7958 PyObject * _argo0 = 0;
7959 PyObject * _argo1 = 0;
7960 char *_kwnames[] = { "self","item", NULL };
7961 char _ptemp[128];
7962
7963 self = self;
7964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1))
7965 return NULL;
7966 if (_argo0) {
7967 if (_argo0 == Py_None) { _arg0 = NULL; }
7968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p.");
7970 return NULL;
7971 }
7972 }
7973 if (_argo1) {
7974 if (_argo1 == Py_None) { _arg1 = NULL; }
7975 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7976 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p.");
7977 return NULL;
7978 }
7979 }
7980{
7981 wxPy_BEGIN_ALLOW_THREADS;
7982 _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1));
7983
7984 wxPy_END_ALLOW_THREADS;
7985 if (PyErr_Occurred()) return NULL;
7986} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7987 _resultobj = Py_BuildValue("s",_ptemp);
7988 return _resultobj;
7989}
7990
7991#define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0))
7992static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
7993 PyObject * _resultobj;
7994 wxTreeItemId * _result;
7995 wxPyTreeCtrl * _arg0;
7996 wxTreeItemId * _arg1;
7997 PyObject * _argo0 = 0;
7998 PyObject * _argo1 = 0;
7999 char *_kwnames[] = { "self","item", NULL };
8000 char _ptemp[128];
8001
8002 self = self;
8003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1))
8004 return NULL;
8005 if (_argo0) {
8006 if (_argo0 == Py_None) { _arg0 = NULL; }
8007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p.");
8009 return NULL;
8010 }
8011 }
8012 if (_argo1) {
8013 if (_argo1 == Py_None) { _arg1 = NULL; }
8014 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8015 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p.");
8016 return NULL;
8017 }
8018 }
8019{
8020 wxPy_BEGIN_ALLOW_THREADS;
8021 _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1));
8022
8023 wxPy_END_ALLOW_THREADS;
8024 if (PyErr_Occurred()) return NULL;
8025} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8026 _resultobj = Py_BuildValue("s",_ptemp);
8027 return _resultobj;
8028}
8029
8030#define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem())
8031static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8032 PyObject * _resultobj;
8033 wxTreeItemId * _result;
8034 wxPyTreeCtrl * _arg0;
8035 PyObject * _argo0 = 0;
8036 char *_kwnames[] = { "self", NULL };
8037 char _ptemp[128];
8038
8039 self = self;
8040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0))
8041 return NULL;
8042 if (_argo0) {
8043 if (_argo0 == Py_None) { _arg0 = NULL; }
8044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p.");
8046 return NULL;
8047 }
8048 }
8049{
8050 wxPy_BEGIN_ALLOW_THREADS;
8051 _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0));
8052
8053 wxPy_END_ALLOW_THREADS;
8054 if (PyErr_Occurred()) return NULL;
8055} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8056 _resultobj = Py_BuildValue("s",_ptemp);
8057 return _resultobj;
8058}
8059
8060#define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0))
8061static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8062 PyObject * _resultobj;
8063 wxTreeItemId * _result;
8064 wxPyTreeCtrl * _arg0;
8065 wxTreeItemId * _arg1;
8066 PyObject * _argo0 = 0;
8067 PyObject * _argo1 = 0;
8068 char *_kwnames[] = { "self","item", NULL };
8069 char _ptemp[128];
8070
8071 self = self;
8072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1))
8073 return NULL;
8074 if (_argo0) {
8075 if (_argo0 == Py_None) { _arg0 = NULL; }
8076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p.");
8078 return NULL;
8079 }
8080 }
8081 if (_argo1) {
8082 if (_argo1 == Py_None) { _arg1 = NULL; }
8083 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8084 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p.");
8085 return NULL;
8086 }
8087 }
8088{
8089 wxPy_BEGIN_ALLOW_THREADS;
8090 _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1));
8091
8092 wxPy_END_ALLOW_THREADS;
8093 if (PyErr_Occurred()) return NULL;
8094} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8095 _resultobj = Py_BuildValue("s",_ptemp);
8096 return _resultobj;
8097}
8098
8099#define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0))
8100static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8101 PyObject * _resultobj;
8102 wxTreeItemId * _result;
8103 wxPyTreeCtrl * _arg0;
8104 wxTreeItemId * _arg1;
8105 PyObject * _argo0 = 0;
8106 PyObject * _argo1 = 0;
8107 char *_kwnames[] = { "self","item", NULL };
8108 char _ptemp[128];
8109
8110 self = self;
8111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1))
8112 return NULL;
8113 if (_argo0) {
8114 if (_argo0 == Py_None) { _arg0 = NULL; }
8115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p.");
8117 return NULL;
8118 }
8119 }
8120 if (_argo1) {
8121 if (_argo1 == Py_None) { _arg1 = NULL; }
8122 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8123 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p.");
8124 return NULL;
8125 }
8126 }
8127{
8128 wxPy_BEGIN_ALLOW_THREADS;
8129 _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1));
8130
8131 wxPy_END_ALLOW_THREADS;
8132 if (PyErr_Occurred()) return NULL;
8133} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8134 _resultobj = Py_BuildValue("s",_ptemp);
8135 return _resultobj;
8136}
8137
8138#define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0))
8139static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
8140 PyObject * _resultobj;
8141 wxTreeItemId * _result;
8142 wxPyTreeCtrl * _arg0;
8143 wxTreeItemId * _arg1;
8144 PyObject * _argo0 = 0;
8145 PyObject * _argo1 = 0;
8146 char *_kwnames[] = { "self","item", NULL };
8147 char _ptemp[128];
8148
8149 self = self;
8150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1))
8151 return NULL;
8152 if (_argo0) {
8153 if (_argo0 == Py_None) { _arg0 = NULL; }
8154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p.");
8156 return NULL;
8157 }
8158 }
8159 if (_argo1) {
8160 if (_argo1 == Py_None) { _arg1 = NULL; }
8161 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8162 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p.");
8163 return NULL;
8164 }
8165 }
8166{
8167 wxPy_BEGIN_ALLOW_THREADS;
8168 _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1));
8169
8170 wxPy_END_ALLOW_THREADS;
8171 if (PyErr_Occurred()) return NULL;
8172} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8173 _resultobj = Py_BuildValue("s",_ptemp);
8174 return _resultobj;
8175}
8176
8177#define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8178static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
8179 PyObject * _resultobj;
8180 wxTreeItemId * _result;
8181 wxPyTreeCtrl * _arg0;
8182 wxString * _arg1;
8183 int _arg2 = (int ) -1;
8184 int _arg3 = (int ) -1;
8185 wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL;
8186 PyObject * _argo0 = 0;
8187 PyObject * _obj1 = 0;
8188 PyObject * _argo4 = 0;
8189 char *_kwnames[] = { "self","text","image","selectedImage","data", NULL };
8190 char _ptemp[128];
8191
8192 self = self;
8193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4))
8194 return NULL;
8195 if (_argo0) {
8196 if (_argo0 == Py_None) { _arg0 = NULL; }
8197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p.");
8199 return NULL;
8200 }
8201 }
8202{
8203#if PYTHON_API_VERSION >= 1009
8204 char* tmpPtr; int tmpSize;
8205 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8206 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8207 return NULL;
8208 }
8209 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8210 return NULL;
8211 _arg1 = new wxString(tmpPtr, tmpSize);
8212#else
8213 if (!PyString_Check(_obj1)) {
8214 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8215 return NULL;
8216 }
8217 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8218#endif
8219}
8220 if (_argo4) {
8221 if (_argo4 == Py_None) { _arg4 = NULL; }
8222 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) {
8223 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p.");
8224 return NULL;
8225 }
8226 }
8227{
8228 wxPy_BEGIN_ALLOW_THREADS;
8229 _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4));
8230
8231 wxPy_END_ALLOW_THREADS;
8232 if (PyErr_Occurred()) return NULL;
8233} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8234 _resultobj = Py_BuildValue("s",_ptemp);
8235{
8236 if (_obj1)
8237 delete _arg1;
8238}
8239 return _resultobj;
8240}
8241
8242#define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8243static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8244 PyObject * _resultobj;
8245 wxTreeItemId * _result;
8246 wxPyTreeCtrl * _arg0;
8247 wxTreeItemId * _arg1;
8248 wxString * _arg2;
8249 int _arg3 = (int ) -1;
8250 int _arg4 = (int ) -1;
8251 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
8252 PyObject * _argo0 = 0;
8253 PyObject * _argo1 = 0;
8254 PyObject * _obj2 = 0;
8255 PyObject * _argo5 = 0;
8256 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
8257 char _ptemp[128];
8258
8259 self = self;
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
8261 return NULL;
8262 if (_argo0) {
8263 if (_argo0 == Py_None) { _arg0 = NULL; }
8264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p.");
8266 return NULL;
8267 }
8268 }
8269 if (_argo1) {
8270 if (_argo1 == Py_None) { _arg1 = NULL; }
8271 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8272 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p.");
8273 return NULL;
8274 }
8275 }
8276{
8277#if PYTHON_API_VERSION >= 1009
8278 char* tmpPtr; int tmpSize;
8279 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8280 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8281 return NULL;
8282 }
8283 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8284 return NULL;
8285 _arg2 = new wxString(tmpPtr, tmpSize);
8286#else
8287 if (!PyString_Check(_obj2)) {
8288 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8289 return NULL;
8290 }
8291 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8292#endif
8293}
8294 if (_argo5) {
8295 if (_argo5 == Py_None) { _arg5 = NULL; }
8296 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
8297 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p.");
8298 return NULL;
8299 }
8300 }
8301{
8302 wxPy_BEGIN_ALLOW_THREADS;
8303 _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
8304
8305 wxPy_END_ALLOW_THREADS;
8306 if (PyErr_Occurred()) return NULL;
8307} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8308 _resultobj = Py_BuildValue("s",_ptemp);
8309{
8310 if (_obj2)
8311 delete _arg2;
8312}
8313 return _resultobj;
8314}
8315
8316#define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8317static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8318 PyObject * _resultobj;
8319 wxTreeItemId * _result;
8320 wxPyTreeCtrl * _arg0;
8321 wxTreeItemId * _arg1;
8322 wxTreeItemId * _arg2;
8323 wxString * _arg3;
8324 int _arg4 = (int ) -1;
8325 int _arg5 = (int ) -1;
8326 wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
8327 PyObject * _argo0 = 0;
8328 PyObject * _argo1 = 0;
8329 PyObject * _argo2 = 0;
8330 PyObject * _obj3 = 0;
8331 PyObject * _argo6 = 0;
8332 char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL };
8333 char _ptemp[128];
8334
8335 self = self;
8336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6))
8337 return NULL;
8338 if (_argo0) {
8339 if (_argo0 == Py_None) { _arg0 = NULL; }
8340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p.");
8342 return NULL;
8343 }
8344 }
8345 if (_argo1) {
8346 if (_argo1 == Py_None) { _arg1 = NULL; }
8347 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8348 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
8349 return NULL;
8350 }
8351 }
8352 if (_argo2) {
8353 if (_argo2 == Py_None) { _arg2 = NULL; }
8354 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) {
8355 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
8356 return NULL;
8357 }
8358 }
8359{
8360#if PYTHON_API_VERSION >= 1009
8361 char* tmpPtr; int tmpSize;
8362 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8363 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8364 return NULL;
8365 }
8366 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8367 return NULL;
8368 _arg3 = new wxString(tmpPtr, tmpSize);
8369#else
8370 if (!PyString_Check(_obj3)) {
8371 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8372 return NULL;
8373 }
8374 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8375#endif
8376}
8377 if (_argo6) {
8378 if (_argo6 == Py_None) { _arg6 = NULL; }
8379 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
8380 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p.");
8381 return NULL;
8382 }
8383 }
8384{
8385 wxPy_BEGIN_ALLOW_THREADS;
8386 _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6));
8387
8388 wxPy_END_ALLOW_THREADS;
8389 if (PyErr_Occurred()) return NULL;
8390} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8391 _resultobj = Py_BuildValue("s",_ptemp);
8392{
8393 if (_obj3)
8394 delete _arg3;
8395}
8396 return _resultobj;
8397}
8398
8399#define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8400static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
8401 PyObject * _resultobj;
8402 wxTreeItemId * _result;
8403 wxPyTreeCtrl * _arg0;
8404 wxTreeItemId * _arg1;
8405 size_t _arg2;
8406 wxString * _arg3;
8407 int _arg4 = (int ) -1;
8408 int _arg5 = (int ) -1;
8409 wxTreeItemData * _arg6 = (wxTreeItemData *) NULL;
8410 PyObject * _argo0 = 0;
8411 PyObject * _argo1 = 0;
8412 PyObject * _obj3 = 0;
8413 PyObject * _argo6 = 0;
8414 char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL };
8415 char _ptemp[128];
8416
8417 self = self;
8418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6))
8419 return NULL;
8420 if (_argo0) {
8421 if (_argo0 == Py_None) { _arg0 = NULL; }
8422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p.");
8424 return NULL;
8425 }
8426 }
8427 if (_argo1) {
8428 if (_argo1 == Py_None) { _arg1 = NULL; }
8429 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8430 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p.");
8431 return NULL;
8432 }
8433 }
8434{
8435#if PYTHON_API_VERSION >= 1009
8436 char* tmpPtr; int tmpSize;
8437 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8438 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8439 return NULL;
8440 }
8441 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8442 return NULL;
8443 _arg3 = new wxString(tmpPtr, tmpSize);
8444#else
8445 if (!PyString_Check(_obj3)) {
8446 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8447 return NULL;
8448 }
8449 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8450#endif
8451}
8452 if (_argo6) {
8453 if (_argo6 == Py_None) { _arg6 = NULL; }
8454 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) {
8455 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p.");
8456 return NULL;
8457 }
8458 }
8459{
8460 wxPy_BEGIN_ALLOW_THREADS;
8461 _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6));
8462
8463 wxPy_END_ALLOW_THREADS;
8464 if (PyErr_Occurred()) return NULL;
8465} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8466 _resultobj = Py_BuildValue("s",_ptemp);
8467{
8468 if (_obj3)
8469 delete _arg3;
8470}
8471 return _resultobj;
8472}
8473
8474#define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8475static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8476 PyObject * _resultobj;
8477 wxTreeItemId * _result;
8478 wxPyTreeCtrl * _arg0;
8479 wxTreeItemId * _arg1;
8480 wxString * _arg2;
8481 int _arg3 = (int ) -1;
8482 int _arg4 = (int ) -1;
8483 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
8484 PyObject * _argo0 = 0;
8485 PyObject * _argo1 = 0;
8486 PyObject * _obj2 = 0;
8487 PyObject * _argo5 = 0;
8488 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
8489 char _ptemp[128];
8490
8491 self = self;
8492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
8493 return NULL;
8494 if (_argo0) {
8495 if (_argo0 == Py_None) { _arg0 = NULL; }
8496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p.");
8498 return NULL;
8499 }
8500 }
8501 if (_argo1) {
8502 if (_argo1 == Py_None) { _arg1 = NULL; }
8503 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8504 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p.");
8505 return NULL;
8506 }
8507 }
8508{
8509#if PYTHON_API_VERSION >= 1009
8510 char* tmpPtr; int tmpSize;
8511 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8512 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8513 return NULL;
8514 }
8515 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8516 return NULL;
8517 _arg2 = new wxString(tmpPtr, tmpSize);
8518#else
8519 if (!PyString_Check(_obj2)) {
8520 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8521 return NULL;
8522 }
8523 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8524#endif
8525}
8526 if (_argo5) {
8527 if (_argo5 == Py_None) { _arg5 = NULL; }
8528 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
8529 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p.");
8530 return NULL;
8531 }
8532 }
8533{
8534 wxPy_BEGIN_ALLOW_THREADS;
8535 _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
8536
8537 wxPy_END_ALLOW_THREADS;
8538 if (PyErr_Occurred()) return NULL;
8539} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8540 _resultobj = Py_BuildValue("s",_ptemp);
8541{
8542 if (_obj2)
8543 delete _arg2;
8544}
8545 return _resultobj;
8546}
8547
8548#define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
8549static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
8550 PyObject * _resultobj;
8551 wxPyTreeCtrl * _arg0;
8552 wxTreeItemId * _arg1;
8553 PyObject * _argo0 = 0;
8554 PyObject * _argo1 = 0;
8555 char *_kwnames[] = { "self","item", NULL };
8556
8557 self = self;
8558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1))
8559 return NULL;
8560 if (_argo0) {
8561 if (_argo0 == Py_None) { _arg0 = NULL; }
8562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p.");
8564 return NULL;
8565 }
8566 }
8567 if (_argo1) {
8568 if (_argo1 == Py_None) { _arg1 = NULL; }
8569 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8570 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p.");
8571 return NULL;
8572 }
8573 }
8574{
8575 wxPy_BEGIN_ALLOW_THREADS;
8576 wxTreeCtrl_Delete(_arg0,*_arg1);
8577
8578 wxPy_END_ALLOW_THREADS;
8579 if (PyErr_Occurred()) return NULL;
8580} Py_INCREF(Py_None);
8581 _resultobj = Py_None;
8582 return _resultobj;
8583}
8584
8585#define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0))
8586static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
8587 PyObject * _resultobj;
8588 wxPyTreeCtrl * _arg0;
8589 wxTreeItemId * _arg1;
8590 PyObject * _argo0 = 0;
8591 PyObject * _argo1 = 0;
8592 char *_kwnames[] = { "self","item", NULL };
8593
8594 self = self;
8595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1))
8596 return NULL;
8597 if (_argo0) {
8598 if (_argo0 == Py_None) { _arg0 = NULL; }
8599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p.");
8601 return NULL;
8602 }
8603 }
8604 if (_argo1) {
8605 if (_argo1 == Py_None) { _arg1 = NULL; }
8606 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8607 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p.");
8608 return NULL;
8609 }
8610 }
8611{
8612 wxPy_BEGIN_ALLOW_THREADS;
8613 wxTreeCtrl_DeleteChildren(_arg0,*_arg1);
8614
8615 wxPy_END_ALLOW_THREADS;
8616 if (PyErr_Occurred()) return NULL;
8617} Py_INCREF(Py_None);
8618 _resultobj = Py_None;
8619 return _resultobj;
8620}
8621
8622#define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
8623static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
8624 PyObject * _resultobj;
8625 wxPyTreeCtrl * _arg0;
8626 PyObject * _argo0 = 0;
8627 char *_kwnames[] = { "self", NULL };
8628
8629 self = self;
8630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0))
8631 return NULL;
8632 if (_argo0) {
8633 if (_argo0 == Py_None) { _arg0 = NULL; }
8634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p.");
8636 return NULL;
8637 }
8638 }
8639{
8640 wxPy_BEGIN_ALLOW_THREADS;
8641 wxTreeCtrl_DeleteAllItems(_arg0);
8642
8643 wxPy_END_ALLOW_THREADS;
8644 if (PyErr_Occurred()) return NULL;
8645} Py_INCREF(Py_None);
8646 _resultobj = Py_None;
8647 return _resultobj;
8648}
8649
8650#define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0))
8651static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
8652 PyObject * _resultobj;
8653 wxPyTreeCtrl * _arg0;
8654 wxTreeItemId * _arg1;
8655 PyObject * _argo0 = 0;
8656 PyObject * _argo1 = 0;
8657 char *_kwnames[] = { "self","item", NULL };
8658
8659 self = self;
8660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1))
8661 return NULL;
8662 if (_argo0) {
8663 if (_argo0 == Py_None) { _arg0 = NULL; }
8664 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8665 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p.");
8666 return NULL;
8667 }
8668 }
8669 if (_argo1) {
8670 if (_argo1 == Py_None) { _arg1 = NULL; }
8671 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8672 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p.");
8673 return NULL;
8674 }
8675 }
8676{
8677 wxPy_BEGIN_ALLOW_THREADS;
8678 wxTreeCtrl_Expand(_arg0,*_arg1);
8679
8680 wxPy_END_ALLOW_THREADS;
8681 if (PyErr_Occurred()) return NULL;
8682} Py_INCREF(Py_None);
8683 _resultobj = Py_None;
8684 return _resultobj;
8685}
8686
8687#define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0))
8688static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
8689 PyObject * _resultobj;
8690 wxPyTreeCtrl * _arg0;
8691 wxTreeItemId * _arg1;
8692 PyObject * _argo0 = 0;
8693 PyObject * _argo1 = 0;
8694 char *_kwnames[] = { "self","item", NULL };
8695
8696 self = self;
8697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1))
8698 return NULL;
8699 if (_argo0) {
8700 if (_argo0 == Py_None) { _arg0 = NULL; }
8701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p.");
8703 return NULL;
8704 }
8705 }
8706 if (_argo1) {
8707 if (_argo1 == Py_None) { _arg1 = NULL; }
8708 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8709 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p.");
8710 return NULL;
8711 }
8712 }
8713{
8714 wxPy_BEGIN_ALLOW_THREADS;
8715 wxTreeCtrl_Collapse(_arg0,*_arg1);
8716
8717 wxPy_END_ALLOW_THREADS;
8718 if (PyErr_Occurred()) return NULL;
8719} Py_INCREF(Py_None);
8720 _resultobj = Py_None;
8721 return _resultobj;
8722}
8723
8724#define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0))
8725static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
8726 PyObject * _resultobj;
8727 wxPyTreeCtrl * _arg0;
8728 wxTreeItemId * _arg1;
8729 PyObject * _argo0 = 0;
8730 PyObject * _argo1 = 0;
8731 char *_kwnames[] = { "self","item", NULL };
8732
8733 self = self;
8734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1))
8735 return NULL;
8736 if (_argo0) {
8737 if (_argo0 == Py_None) { _arg0 = NULL; }
8738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p.");
8740 return NULL;
8741 }
8742 }
8743 if (_argo1) {
8744 if (_argo1 == Py_None) { _arg1 = NULL; }
8745 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8746 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p.");
8747 return NULL;
8748 }
8749 }
8750{
8751 wxPy_BEGIN_ALLOW_THREADS;
8752 wxTreeCtrl_CollapseAndReset(_arg0,*_arg1);
8753
8754 wxPy_END_ALLOW_THREADS;
8755 if (PyErr_Occurred()) return NULL;
8756} Py_INCREF(Py_None);
8757 _resultobj = Py_None;
8758 return _resultobj;
8759}
8760
8761#define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
8762static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
8763 PyObject * _resultobj;
8764 wxPyTreeCtrl * _arg0;
8765 wxTreeItemId * _arg1;
8766 PyObject * _argo0 = 0;
8767 PyObject * _argo1 = 0;
8768 char *_kwnames[] = { "self","item", NULL };
8769
8770 self = self;
8771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1))
8772 return NULL;
8773 if (_argo0) {
8774 if (_argo0 == Py_None) { _arg0 = NULL; }
8775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p.");
8777 return NULL;
8778 }
8779 }
8780 if (_argo1) {
8781 if (_argo1 == Py_None) { _arg1 = NULL; }
8782 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8783 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p.");
8784 return NULL;
8785 }
8786 }
8787{
8788 wxPy_BEGIN_ALLOW_THREADS;
8789 wxTreeCtrl_Toggle(_arg0,*_arg1);
8790
8791 wxPy_END_ALLOW_THREADS;
8792 if (PyErr_Occurred()) return NULL;
8793} Py_INCREF(Py_None);
8794 _resultobj = Py_None;
8795 return _resultobj;
8796}
8797
8798#define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect())
8799static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
8800 PyObject * _resultobj;
8801 wxPyTreeCtrl * _arg0;
8802 PyObject * _argo0 = 0;
8803 char *_kwnames[] = { "self", NULL };
8804
8805 self = self;
8806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0))
8807 return NULL;
8808 if (_argo0) {
8809 if (_argo0 == Py_None) { _arg0 = NULL; }
8810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p.");
8812 return NULL;
8813 }
8814 }
8815{
8816 wxPy_BEGIN_ALLOW_THREADS;
8817 wxTreeCtrl_Unselect(_arg0);
8818
8819 wxPy_END_ALLOW_THREADS;
8820 if (PyErr_Occurred()) return NULL;
8821} Py_INCREF(Py_None);
8822 _resultobj = Py_None;
8823 return _resultobj;
8824}
8825
8826#define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll())
8827static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8828 PyObject * _resultobj;
8829 wxPyTreeCtrl * _arg0;
8830 PyObject * _argo0 = 0;
8831 char *_kwnames[] = { "self", NULL };
8832
8833 self = self;
8834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0))
8835 return NULL;
8836 if (_argo0) {
8837 if (_argo0 == Py_None) { _arg0 = NULL; }
8838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p.");
8840 return NULL;
8841 }
8842 }
8843{
8844 wxPy_BEGIN_ALLOW_THREADS;
8845 wxTreeCtrl_UnselectAll(_arg0);
8846
8847 wxPy_END_ALLOW_THREADS;
8848 if (PyErr_Occurred()) return NULL;
8849} Py_INCREF(Py_None);
8850 _resultobj = Py_None;
8851 return _resultobj;
8852}
8853
8854#define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0))
8855static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8856 PyObject * _resultobj;
8857 wxPyTreeCtrl * _arg0;
8858 wxTreeItemId * _arg1;
8859 PyObject * _argo0 = 0;
8860 PyObject * _argo1 = 0;
8861 char *_kwnames[] = { "self","item", NULL };
8862
8863 self = self;
8864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1))
8865 return NULL;
8866 if (_argo0) {
8867 if (_argo0 == Py_None) { _arg0 = NULL; }
8868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p.");
8870 return NULL;
8871 }
8872 }
8873 if (_argo1) {
8874 if (_argo1 == Py_None) { _arg1 = NULL; }
8875 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8876 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p.");
8877 return NULL;
8878 }
8879 }
8880{
8881 wxPy_BEGIN_ALLOW_THREADS;
8882 wxTreeCtrl_SelectItem(_arg0,*_arg1);
8883
8884 wxPy_END_ALLOW_THREADS;
8885 if (PyErr_Occurred()) return NULL;
8886} Py_INCREF(Py_None);
8887 _resultobj = Py_None;
8888 return _resultobj;
8889}
8890
8891#define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
8892static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8893 PyObject * _resultobj;
8894 wxPyTreeCtrl * _arg0;
8895 wxTreeItemId * _arg1;
8896 PyObject * _argo0 = 0;
8897 PyObject * _argo1 = 0;
8898 char *_kwnames[] = { "self","item", NULL };
8899
8900 self = self;
8901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1))
8902 return NULL;
8903 if (_argo0) {
8904 if (_argo0 == Py_None) { _arg0 = NULL; }
8905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p.");
8907 return NULL;
8908 }
8909 }
8910 if (_argo1) {
8911 if (_argo1 == Py_None) { _arg1 = NULL; }
8912 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8913 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p.");
8914 return NULL;
8915 }
8916 }
8917{
8918 wxPy_BEGIN_ALLOW_THREADS;
8919 wxTreeCtrl_EnsureVisible(_arg0,*_arg1);
8920
8921 wxPy_END_ALLOW_THREADS;
8922 if (PyErr_Occurred()) return NULL;
8923} Py_INCREF(Py_None);
8924 _resultobj = Py_None;
8925 return _resultobj;
8926}
8927
8928#define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0))
8929static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
8930 PyObject * _resultobj;
8931 wxPyTreeCtrl * _arg0;
8932 wxTreeItemId * _arg1;
8933 PyObject * _argo0 = 0;
8934 PyObject * _argo1 = 0;
8935 char *_kwnames[] = { "self","item", NULL };
8936
8937 self = self;
8938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1))
8939 return NULL;
8940 if (_argo0) {
8941 if (_argo0 == Py_None) { _arg0 = NULL; }
8942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p.");
8944 return NULL;
8945 }
8946 }
8947 if (_argo1) {
8948 if (_argo1 == Py_None) { _arg1 = NULL; }
8949 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8950 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p.");
8951 return NULL;
8952 }
8953 }
8954{
8955 wxPy_BEGIN_ALLOW_THREADS;
8956 wxTreeCtrl_ScrollTo(_arg0,*_arg1);
8957
8958 wxPy_END_ALLOW_THREADS;
8959 if (PyErr_Occurred()) return NULL;
8960} Py_INCREF(Py_None);
8961 _resultobj = Py_None;
8962 return _resultobj;
8963}
8964
8965#define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
8966static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8967 PyObject * _resultobj;
8968 wxPyTreeCtrl * _arg0;
8969 wxTreeItemId * _arg1;
8970 PyObject * _argo0 = 0;
8971 PyObject * _argo1 = 0;
8972 char *_kwnames[] = { "self","item", NULL };
8973
8974 self = self;
8975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1))
8976 return NULL;
8977 if (_argo0) {
8978 if (_argo0 == Py_None) { _arg0 = NULL; }
8979 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8980 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p.");
8981 return NULL;
8982 }
8983 }
8984 if (_argo1) {
8985 if (_argo1 == Py_None) { _arg1 = NULL; }
8986 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8987 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p.");
8988 return NULL;
8989 }
8990 }
8991{
8992 wxPy_BEGIN_ALLOW_THREADS;
8993 wxTreeCtrl_EditLabel(_arg0,*_arg1);
8994
8995 wxPy_END_ALLOW_THREADS;
8996 if (PyErr_Occurred()) return NULL;
8997} Py_INCREF(Py_None);
8998 _resultobj = Py_None;
8999 return _resultobj;
9000}
9001
9002#define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0))
9003static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
9004 PyObject * _resultobj;
9005 wxPyTreeCtrl * _arg0;
9006 wxTreeItemId * _arg1;
9007 PyObject * _argo0 = 0;
9008 PyObject * _argo1 = 0;
9009 char *_kwnames[] = { "self","item", NULL };
9010
9011 self = self;
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1))
9013 return NULL;
9014 if (_argo0) {
9015 if (_argo0 == Py_None) { _arg0 = NULL; }
9016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p.");
9018 return NULL;
9019 }
9020 }
9021 if (_argo1) {
9022 if (_argo1 == Py_None) { _arg1 = NULL; }
9023 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9024 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p.");
9025 return NULL;
9026 }
9027 }
9028{
9029 wxPy_BEGIN_ALLOW_THREADS;
9030 wxTreeCtrl_SortChildren(_arg0,*_arg1);
9031
9032 wxPy_END_ALLOW_THREADS;
9033 if (PyErr_Occurred()) return NULL;
9034} Py_INCREF(Py_None);
9035 _resultobj = Py_None;
9036 return _resultobj;
9037}
9038
9039#define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1))
9040static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
9041 PyObject * _resultobj;
9042 wxPyTreeCtrl * _arg0;
9043 wxTreeItemId * _arg1;
9044 int _arg2 = (int ) TRUE;
9045 PyObject * _argo0 = 0;
9046 PyObject * _argo1 = 0;
9047 char *_kwnames[] = { "self","item","bold", NULL };
9048
9049 self = self;
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2))
9051 return NULL;
9052 if (_argo0) {
9053 if (_argo0 == Py_None) { _arg0 = NULL; }
9054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p.");
9056 return NULL;
9057 }
9058 }
9059 if (_argo1) {
9060 if (_argo1 == Py_None) { _arg1 = NULL; }
9061 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9062 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p.");
9063 return NULL;
9064 }
9065 }
9066{
9067 wxPy_BEGIN_ALLOW_THREADS;
9068 wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2);
9069
9070 wxPy_END_ALLOW_THREADS;
9071 if (PyErr_Occurred()) return NULL;
9072} Py_INCREF(Py_None);
9073 _resultobj = Py_None;
9074 return _resultobj;
9075}
9076
9077#define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0))
9078static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
9079 PyObject * _resultobj;
9080 bool _result;
9081 wxPyTreeCtrl * _arg0;
9082 wxTreeItemId * _arg1;
9083 PyObject * _argo0 = 0;
9084 PyObject * _argo1 = 0;
9085 char *_kwnames[] = { "self","item", NULL };
9086
9087 self = self;
9088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1))
9089 return NULL;
9090 if (_argo0) {
9091 if (_argo0 == Py_None) { _arg0 = NULL; }
9092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p.");
9094 return NULL;
9095 }
9096 }
9097 if (_argo1) {
9098 if (_argo1 == Py_None) { _arg1 = NULL; }
9099 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9100 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p.");
9101 return NULL;
9102 }
9103 }
9104{
9105 wxPy_BEGIN_ALLOW_THREADS;
9106 _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1);
9107
9108 wxPy_END_ALLOW_THREADS;
9109 if (PyErr_Occurred()) return NULL;
9110} _resultobj = Py_BuildValue("i",_result);
9111 return _resultobj;
9112}
9113
9114#define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
9115static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9116 PyObject * _resultobj;
9117 wxTreeItemId * _result;
9118 wxPyTreeCtrl * _arg0;
9119 wxPoint * _arg1;
9120 int * _arg2;
9121 int temp;
9122 PyObject * _argo0 = 0;
9123 wxPoint temp0;
9124 PyObject * _obj1 = 0;
9125 char *_kwnames[] = { "self","point", NULL };
9126 char _ptemp[128];
9127
9128 self = self;
9129{
9130 _arg2 = &temp;
9131}
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1))
9133 return NULL;
9134 if (_argo0) {
9135 if (_argo0 == Py_None) { _arg0 = NULL; }
9136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p.");
9138 return NULL;
9139 }
9140 }
9141{
9142 _arg1 = &temp0;
9143 if (! wxPoint_helper(_obj1, &_arg1))
9144 return NULL;
9145}
9146{
9147 wxPy_BEGIN_ALLOW_THREADS;
9148 _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2));
9149
9150 wxPy_END_ALLOW_THREADS;
9151 if (PyErr_Occurred()) return NULL;
9152} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
9153 _resultobj = Py_BuildValue("s",_ptemp);
9154{
9155 PyObject *o;
9156 o = PyInt_FromLong((long) (*_arg2));
9157 _resultobj = t_output_helper(_resultobj, o);
9158}
9159 return _resultobj;
9160}
9161
9162#define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1))
9163static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9164 PyObject * _resultobj;
9165 wxPyTreeCtrl * _arg0;
9166 wxTreeItemId * _arg1;
9167 wxColour * _arg2;
9168 PyObject * _argo0 = 0;
9169 PyObject * _argo1 = 0;
9170 wxColour temp;
9171 PyObject * _obj2 = 0;
9172 char *_kwnames[] = { "self","item","col", NULL };
9173
9174 self = self;
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2))
9176 return NULL;
9177 if (_argo0) {
9178 if (_argo0 == Py_None) { _arg0 = NULL; }
9179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p.");
9181 return NULL;
9182 }
9183 }
9184 if (_argo1) {
9185 if (_argo1 == Py_None) { _arg1 = NULL; }
9186 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9187 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p.");
9188 return NULL;
9189 }
9190 }
9191{
9192 _arg2 = &temp;
9193 if (! wxColour_helper(_obj2, &_arg2))
9194 return NULL;
9195}
9196{
9197 wxPy_BEGIN_ALLOW_THREADS;
9198 wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2);
9199
9200 wxPy_END_ALLOW_THREADS;
9201 if (PyErr_Occurred()) return NULL;
9202} Py_INCREF(Py_None);
9203 _resultobj = Py_None;
9204 return _resultobj;
9205}
9206
9207#define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1))
9208static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9209 PyObject * _resultobj;
9210 wxPyTreeCtrl * _arg0;
9211 wxTreeItemId * _arg1;
9212 wxColour * _arg2;
9213 PyObject * _argo0 = 0;
9214 PyObject * _argo1 = 0;
9215 wxColour temp;
9216 PyObject * _obj2 = 0;
9217 char *_kwnames[] = { "self","item","col", NULL };
9218
9219 self = self;
9220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2))
9221 return NULL;
9222 if (_argo0) {
9223 if (_argo0 == Py_None) { _arg0 = NULL; }
9224 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9225 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p.");
9226 return NULL;
9227 }
9228 }
9229 if (_argo1) {
9230 if (_argo1 == Py_None) { _arg1 = NULL; }
9231 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9232 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p.");
9233 return NULL;
9234 }
9235 }
9236{
9237 _arg2 = &temp;
9238 if (! wxColour_helper(_obj2, &_arg2))
9239 return NULL;
9240}
9241{
9242 wxPy_BEGIN_ALLOW_THREADS;
9243 wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2);
9244
9245 wxPy_END_ALLOW_THREADS;
9246 if (PyErr_Occurred()) return NULL;
9247} Py_INCREF(Py_None);
9248 _resultobj = Py_None;
9249 return _resultobj;
9250}
9251
9252#define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1))
9253static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9254 PyObject * _resultobj;
9255 wxPyTreeCtrl * _arg0;
9256 wxTreeItemId * _arg1;
9257 wxFont * _arg2;
9258 PyObject * _argo0 = 0;
9259 PyObject * _argo1 = 0;
9260 PyObject * _argo2 = 0;
9261 char *_kwnames[] = { "self","item","font", NULL };
9262
9263 self = self;
9264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2))
9265 return NULL;
9266 if (_argo0) {
9267 if (_argo0 == Py_None) { _arg0 = NULL; }
9268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p.");
9270 return NULL;
9271 }
9272 }
9273 if (_argo1) {
9274 if (_argo1 == Py_None) { _arg1 = NULL; }
9275 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9276 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p.");
9277 return NULL;
9278 }
9279 }
9280 if (_argo2) {
9281 if (_argo2 == Py_None) { _arg2 = NULL; }
9282 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
9283 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p.");
9284 return NULL;
9285 }
9286 }
9287{
9288 wxPy_BEGIN_ALLOW_THREADS;
9289 wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2);
9290
9291 wxPy_END_ALLOW_THREADS;
9292 if (PyErr_Occurred()) return NULL;
9293} Py_INCREF(Py_None);
9294 _resultobj = Py_None;
9295 return _resultobj;
9296}
9297
9298static PyMethodDef controls2cMethods[] = {
9299 { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
9300 { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9301 { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
9302 { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
9303 { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
9304 { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
9305 { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
9306 { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
9307 { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
9308 { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
9309 { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
9310 { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
9311 { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
9312 { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
9313 { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
9314 { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
9315 { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
9316 { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
9317 { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
9318 { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
9319 { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
9320 { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
9321 { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
9322 { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
9323 { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
9324 { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
9325 { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
9326 { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
9327 { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
9328 { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
9329 { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
9330 { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
9331 { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
9332 { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
9333 { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
9334 { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
9335 { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
9336 { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
9337 { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
9338 { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
9339 { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
9340 { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
9341 { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS },
9342 { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS },
9343 { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
9344 { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
9345 { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
9346 { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
9347 { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
9348 { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
9349 { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
9350 { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
9351 { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
9352 { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
9353 { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
9354 { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
9355 { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
9356 { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
9357 { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
9358 { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
9359 { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
9360 { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
9361 { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
9362 { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
9363 { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
9364 { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
9365 { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
9366 { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS },
9367 { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
9368 { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
9369 { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
9370 { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
9371 { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
9372 { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
9373 { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS },
9374 { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
9375 { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
9376 { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
9377 { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
9378 { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS },
9379 { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS },
9380 { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
9381 { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
9382 { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
9383 { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
9384 { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9385 { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9386 { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
9387 { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9388 { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
9389 { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
9390 { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9391 { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9392 { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS },
9393 { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
9394 { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
9395 { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
9396 { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
9397 { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
9398 { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
9399 { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS },
9400 { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS },
9401 { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS },
9402 { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS },
9403 { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS },
9404 { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
9405 { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
9406 { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
9407 { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
9408 { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
9409 { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
9410 { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
9411 { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
9412 { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
9413 { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
9414 { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
9415 { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
9416 { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
9417 { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
9418 { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
9419 { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
9420 { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
9421 { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
9422 { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
9423 { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
9424 { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
9425 { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
9426 { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
9427 { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
9428 { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
9429 { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
9430 { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
9431 { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
9432 { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
9433 { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
9434 { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9435 { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9436 { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
9437 { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
9438 { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
9439 { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
9440 { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
9441 { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
9442 { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
9443 { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
9444 { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
9445 { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
9446 { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
9447 { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
9448 { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
9449 { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
9450 { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
9451 { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
9452 { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
9453 { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
9454 { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
9455 { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
9456 { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
9457 { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
9458 { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9459 { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
9460 { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
9461 { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
9462 { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS },
9463 { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS },
9464 { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
9465 { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
9466 { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
9467 { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
9468 { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
9469 { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
9470 { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
9471 { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
9472 { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
9473 { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
9474 { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
9475 { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
9476 { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
9477 { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS },
9478 { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
9479 { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
9480 { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
9481 { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
9482 { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
9483 { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
9484 { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
9485 { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
9486 { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
9487 { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
9488 { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS },
9489 { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
9490 { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
9491 { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
9492 { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
9493 { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
9494 { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
9495 { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
9496 { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
9497 { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
9498 { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
9499 { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
9500 { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
9501 { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
9502 { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
9503 { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
9504 { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
9505 { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
9506 { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
9507 { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
9508 { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
9509 { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
9510 { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9511 { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9512 { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
9513 { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
9514 { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
9515 { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
9516 { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS },
9517 { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
9518 { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS },
9519 { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS },
9520 { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
9521 { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS },
9522 { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
9523 { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
9524 { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9525 { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9526 { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
9527 { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
9528 { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS },
9529 { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
9530 { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS },
9531 { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
9532 { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS },
9533 { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
9534 { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS },
9535 { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
9536 { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
9537 { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS },
9538 { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS },
9539 { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS },
9540 { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
9541 { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9542 { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9543 { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
9544 { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9545 { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
9546 { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
9547 { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9548 { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9549 { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS },
9550 { NULL, NULL }
9551};
9552#ifdef __cplusplus
9553}
9554#endif
9555/*
9556 * This table is used by the pointer type-checker
9557 */
9558static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
9559 { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
9560 { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
9561 { "_signed_long","_long",0},
9562 { "_wxPrintQuality","_wxCoord",0},
9563 { "_wxPrintQuality","_int",0},
9564 { "_wxPrintQuality","_signed_int",0},
9565 { "_wxPrintQuality","_unsigned_int",0},
9566 { "_wxPrintQuality","_wxWindowID",0},
9567 { "_wxPrintQuality","_uint",0},
9568 { "_wxPrintQuality","_EBool",0},
9569 { "_wxPrintQuality","_size_t",0},
9570 { "_wxPrintQuality","_time_t",0},
9571 { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
9572 { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent},
9573 { "_byte","_unsigned_char",0},
9574 { "_long","_unsigned_long",0},
9575 { "_long","_signed_long",0},
9576 { "_size_t","_wxCoord",0},
9577 { "_size_t","_wxPrintQuality",0},
9578 { "_size_t","_time_t",0},
9579 { "_size_t","_unsigned_int",0},
9580 { "_size_t","_int",0},
9581 { "_size_t","_wxWindowID",0},
9582 { "_size_t","_uint",0},
9583 { "_uint","_wxCoord",0},
9584 { "_uint","_wxPrintQuality",0},
9585 { "_uint","_time_t",0},
9586 { "_uint","_size_t",0},
9587 { "_uint","_unsigned_int",0},
9588 { "_uint","_int",0},
9589 { "_uint","_wxWindowID",0},
9590 { "_wxChar","_char",0},
9591 { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
9592 { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
9593 { "_char","_wxChar",0},
9594 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
9595 { "_EBool","_wxCoord",0},
9596 { "_EBool","_wxPrintQuality",0},
9597 { "_EBool","_signed_int",0},
9598 { "_EBool","_int",0},
9599 { "_EBool","_wxWindowID",0},
9600 { "_unsigned_long","_long",0},
9601 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
9602 { "_signed_int","_wxCoord",0},
9603 { "_signed_int","_wxPrintQuality",0},
9604 { "_signed_int","_EBool",0},
9605 { "_signed_int","_wxWindowID",0},
9606 { "_signed_int","_int",0},
9607 { "_WXTYPE","_short",0},
9608 { "_WXTYPE","_signed_short",0},
9609 { "_WXTYPE","_unsigned_short",0},
9610 { "_unsigned_short","_WXTYPE",0},
9611 { "_unsigned_short","_short",0},
9612 { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
9613 { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject},
9614 { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
9615 { "_wxObject","_wxListView",SwigwxListViewTowxObject},
9616 { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject},
9617 { "_wxObject","_wxListEvent",SwigwxListEventTowxObject},
9618 { "_wxObject","_wxListItem",SwigwxListItemTowxObject},
9619 { "_signed_short","_WXTYPE",0},
9620 { "_signed_short","_short",0},
9621 { "_unsigned_char","_byte",0},
9622 { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl},
9623 { "_wxControl","_wxListView",SwigwxListViewTowxControl},
9624 { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl},
9625 { "_unsigned_int","_wxCoord",0},
9626 { "_unsigned_int","_wxPrintQuality",0},
9627 { "_unsigned_int","_time_t",0},
9628 { "_unsigned_int","_size_t",0},
9629 { "_unsigned_int","_uint",0},
9630 { "_unsigned_int","_wxWindowID",0},
9631 { "_unsigned_int","_int",0},
9632 { "_short","_WXTYPE",0},
9633 { "_short","_unsigned_short",0},
9634 { "_short","_signed_short",0},
9635 { "_wxWindowID","_wxCoord",0},
9636 { "_wxWindowID","_wxPrintQuality",0},
9637 { "_wxWindowID","_time_t",0},
9638 { "_wxWindowID","_size_t",0},
9639 { "_wxWindowID","_EBool",0},
9640 { "_wxWindowID","_uint",0},
9641 { "_wxWindowID","_int",0},
9642 { "_wxWindowID","_signed_int",0},
9643 { "_wxWindowID","_unsigned_int",0},
9644 { "_int","_wxCoord",0},
9645 { "_int","_wxPrintQuality",0},
9646 { "_int","_time_t",0},
9647 { "_int","_size_t",0},
9648 { "_int","_EBool",0},
9649 { "_int","_uint",0},
9650 { "_int","_wxWindowID",0},
9651 { "_int","_unsigned_int",0},
9652 { "_int","_signed_int",0},
9653 { "_time_t","_wxCoord",0},
9654 { "_time_t","_wxPrintQuality",0},
9655 { "_time_t","_unsigned_int",0},
9656 { "_time_t","_int",0},
9657 { "_time_t","_wxWindowID",0},
9658 { "_time_t","_uint",0},
9659 { "_time_t","_size_t",0},
9660 { "_wxCoord","_int",0},
9661 { "_wxCoord","_signed_int",0},
9662 { "_wxCoord","_unsigned_int",0},
9663 { "_wxCoord","_wxWindowID",0},
9664 { "_wxCoord","_uint",0},
9665 { "_wxCoord","_EBool",0},
9666 { "_wxCoord","_size_t",0},
9667 { "_wxCoord","_time_t",0},
9668 { "_wxCoord","_wxPrintQuality",0},
9669 { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl},
9670 { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler},
9671 { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler},
9672 { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler},
9673 { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow},
9674 { "_wxWindow","_wxListView",SwigwxListViewTowxWindow},
9675 { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow},
9676{0,0,0}};
9677
9678static PyObject *SWIG_globals;
9679#ifdef __cplusplus
9680extern "C"
9681#endif
9682SWIGEXPORT(void) initcontrols2c() {
9683 PyObject *m, *d;
9684 SWIG_globals = SWIG_newvarlink();
9685 m = Py_InitModule("controls2c", controls2cMethods);
9686 d = PyModule_GetDict(m);
9687 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG));
9688 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG));
9689 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
9690 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT));
9691 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM));
9692 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
9693 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO));
9694 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO));
9695 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED));
9696 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED));
9697 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN));
9698 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM));
9699 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK));
9700 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
9701 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
9702 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
9703 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT));
9704 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
9705 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
9706 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING));
9707 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG));
9708 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED));
9709 PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES));
9710 PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES));
9711 PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON));
9712 PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON));
9713 PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST));
9714 PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT));
9715 PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP));
9716 PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT));
9717 PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE));
9718 PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL));
9719 PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS));
9720 PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER));
9721 PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER));
9722 PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL));
9723 PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING));
9724 PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING));
9725 PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE));
9726 PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN));
9727 PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT));
9728 PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT));
9729 PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE));
9730 PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT));
9731 PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE));
9732 PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA));
9733 PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM));
9734 PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH));
9735 PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT));
9736 PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE));
9737 PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED));
9738 PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED));
9739 PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED));
9740 PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT));
9741 PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE));
9742 PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW));
9743 PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE));
9744 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON));
9745 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL));
9746 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT));
9747 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON));
9748 PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT));
9749 PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT));
9750 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM));
9751 PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE));
9752 PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL));
9753 PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW));
9754 PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT));
9755 PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT));
9756 PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT));
9757 PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT));
9758 PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP));
9759 PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID));
9760 PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE));
9761 PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER));
9762 PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS));
9763 PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON));
9764 PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL));
9765 PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP));
9766 PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN));
9767 PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT));
9768 PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT));
9769 PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT));
9770 PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT));
9771 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE));
9772 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER));
9773 PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS));
9774 PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS));
9775 PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS));
9776 PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES));
9777 PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS));
9778 PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE));
9779 PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE));
9780 PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED));
9781 PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS));
9782 PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT));
9783 PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT));
9784 PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES));
9785 PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT));
9786 PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE));
9787 PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal));
9788 PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected));
9789 PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded));
9790 PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded));
9791 PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max));
9792 PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE));
9793 PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW));
9794 PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE));
9795 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON));
9796 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON));
9797 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT));
9798 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL));
9799 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT));
9800 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON));
9801 PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT));
9802 PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT));
9803 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART));
9804 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART));
9805 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM));
9806 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG));
9807 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG));
9808 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
9809 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT));
9810 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM));
9811 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO));
9812 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO));
9813 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED));
9814 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING));
9815 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
9816 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
9817 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED));
9818 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING));
9819 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN));
9820 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
9821 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
9822 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
9823 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG));
9824
9825 // Map renamed classes back to their common name for OOR
9826 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
9827 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
9828 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
9829{
9830 int i;
9831 for (i = 0; _swig_mapping[i].n1; i++)
9832 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
9833}
9834}