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