]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/controls2.cpp
30ace104605b3fc0953842f95e31b0784131066f
[wxWidgets.git] / wxPython / src / msw / controls2.cpp
1 /*
2 * FILE : src/msw/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 #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
3310 static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
3311 PyObject * _resultobj;
3312 wxTextCtrl * _result;
3313 wxPyListCtrl * _arg0;
3314 PyObject * _argo0 = 0;
3315 char *_kwnames[] = { "self", NULL };
3316
3317 self = self;
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0))
3319 return NULL;
3320 if (_argo0) {
3321 if (_argo0 == Py_None) { _arg0 = NULL; }
3322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p.");
3324 return NULL;
3325 }
3326 }
3327 {
3328 wxPy_BEGIN_ALLOW_THREADS;
3329 _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0);
3330
3331 wxPy_END_ALLOW_THREADS;
3332 if (PyErr_Occurred()) return NULL;
3333 }{ _resultobj = wxPyMake_wxObject(_result); }
3334 return _resultobj;
3335 }
3336
3337 static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) {
3338 wxListItem* info = new wxListItem;
3339 info->m_itemId = itemId;
3340 info->m_col = col;
3341 info->m_mask = 0xFFFF;
3342 self->GetItem(*info);
3343 return info;
3344 }
3345 static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3346 PyObject * _resultobj;
3347 wxListItem * _result;
3348 wxPyListCtrl * _arg0;
3349 long _arg1;
3350 int _arg2 = (int ) 0;
3351 PyObject * _argo0 = 0;
3352 char *_kwnames[] = { "self","itemId","col", NULL };
3353
3354 self = self;
3355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2))
3356 return NULL;
3357 if (_argo0) {
3358 if (_argo0 == Py_None) { _arg0 = NULL; }
3359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p.");
3361 return NULL;
3362 }
3363 }
3364 {
3365 wxPy_BEGIN_ALLOW_THREADS;
3366 _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2);
3367
3368 wxPy_END_ALLOW_THREADS;
3369 if (PyErr_Occurred()) return NULL;
3370 }{ _resultobj = wxPyMake_wxObject(_result); }
3371 return _resultobj;
3372 }
3373
3374 #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0))
3375 static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3376 PyObject * _resultobj;
3377 bool _result;
3378 wxPyListCtrl * _arg0;
3379 wxListItem * _arg1;
3380 PyObject * _argo0 = 0;
3381 PyObject * _argo1 = 0;
3382 char *_kwnames[] = { "self","info", NULL };
3383
3384 self = self;
3385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1))
3386 return NULL;
3387 if (_argo0) {
3388 if (_argo0 == Py_None) { _arg0 = NULL; }
3389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p.");
3391 return NULL;
3392 }
3393 }
3394 if (_argo1) {
3395 if (_argo1 == Py_None) { _arg1 = NULL; }
3396 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
3397 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p.");
3398 return NULL;
3399 }
3400 }
3401 {
3402 wxPy_BEGIN_ALLOW_THREADS;
3403 _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1);
3404
3405 wxPy_END_ALLOW_THREADS;
3406 if (PyErr_Occurred()) return NULL;
3407 } _resultobj = Py_BuildValue("i",_result);
3408 return _resultobj;
3409 }
3410
3411 #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3412 static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3413 PyObject * _resultobj;
3414 long _result;
3415 wxPyListCtrl * _arg0;
3416 long _arg1;
3417 int _arg2;
3418 wxString * _arg3;
3419 int _arg4 = (int ) -1;
3420 PyObject * _argo0 = 0;
3421 PyObject * _obj3 = 0;
3422 char *_kwnames[] = { "self","index","col","label","imageId", NULL };
3423
3424 self = self;
3425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
3426 return NULL;
3427 if (_argo0) {
3428 if (_argo0 == Py_None) { _arg0 = NULL; }
3429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p.");
3431 return NULL;
3432 }
3433 }
3434 {
3435 #if PYTHON_API_VERSION >= 1009
3436 char* tmpPtr; int tmpSize;
3437 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
3438 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3439 return NULL;
3440 }
3441 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
3442 return NULL;
3443 _arg3 = new wxString(tmpPtr, tmpSize);
3444 #else
3445 if (!PyString_Check(_obj3)) {
3446 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3447 return NULL;
3448 }
3449 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
3450 #endif
3451 }
3452 {
3453 wxPy_BEGIN_ALLOW_THREADS;
3454 _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4);
3455
3456 wxPy_END_ALLOW_THREADS;
3457 if (PyErr_Occurred()) return NULL;
3458 } _resultobj = Py_BuildValue("l",_result);
3459 {
3460 if (_obj3)
3461 delete _arg3;
3462 }
3463 return _resultobj;
3464 }
3465
3466 #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1))
3467 static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
3468 PyObject * _resultobj;
3469 int _result;
3470 wxPyListCtrl * _arg0;
3471 long _arg1;
3472 long _arg2;
3473 PyObject * _argo0 = 0;
3474 char *_kwnames[] = { "self","item","stateMask", NULL };
3475
3476 self = self;
3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2))
3478 return NULL;
3479 if (_argo0) {
3480 if (_argo0 == Py_None) { _arg0 = NULL; }
3481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p.");
3483 return NULL;
3484 }
3485 }
3486 {
3487 wxPy_BEGIN_ALLOW_THREADS;
3488 _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2);
3489
3490 wxPy_END_ALLOW_THREADS;
3491 if (PyErr_Occurred()) return NULL;
3492 } _resultobj = Py_BuildValue("i",_result);
3493 return _resultobj;
3494 }
3495
3496 #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2))
3497 static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
3498 PyObject * _resultobj;
3499 bool _result;
3500 wxPyListCtrl * _arg0;
3501 long _arg1;
3502 long _arg2;
3503 long _arg3;
3504 PyObject * _argo0 = 0;
3505 char *_kwnames[] = { "self","item","state","stateMask", NULL };
3506
3507 self = self;
3508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3509 return NULL;
3510 if (_argo0) {
3511 if (_argo0 == Py_None) { _arg0 = NULL; }
3512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p.");
3514 return NULL;
3515 }
3516 }
3517 {
3518 wxPy_BEGIN_ALLOW_THREADS;
3519 _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3);
3520
3521 wxPy_END_ALLOW_THREADS;
3522 if (PyErr_Occurred()) return NULL;
3523 } _resultobj = Py_BuildValue("i",_result);
3524 return _resultobj;
3525 }
3526
3527 #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
3528 static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3529 PyObject * _resultobj;
3530 bool _result;
3531 wxPyListCtrl * _arg0;
3532 long _arg1;
3533 int _arg2;
3534 int _arg3;
3535 PyObject * _argo0 = 0;
3536 char *_kwnames[] = { "self","item","image","selImage", NULL };
3537
3538 self = self;
3539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3540 return NULL;
3541 if (_argo0) {
3542 if (_argo0 == Py_None) { _arg0 = NULL; }
3543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p.");
3545 return NULL;
3546 }
3547 }
3548 {
3549 wxPy_BEGIN_ALLOW_THREADS;
3550 _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3);
3551
3552 wxPy_END_ALLOW_THREADS;
3553 if (PyErr_Occurred()) return NULL;
3554 } _resultobj = Py_BuildValue("i",_result);
3555 return _resultobj;
3556 }
3557
3558 #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
3559 static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3560 PyObject * _resultobj;
3561 wxString * _result;
3562 wxPyListCtrl * _arg0;
3563 long _arg1;
3564 PyObject * _argo0 = 0;
3565 char *_kwnames[] = { "self","item", NULL };
3566
3567 self = self;
3568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1))
3569 return NULL;
3570 if (_argo0) {
3571 if (_argo0 == Py_None) { _arg0 = NULL; }
3572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p.");
3574 return NULL;
3575 }
3576 }
3577 {
3578 wxPy_BEGIN_ALLOW_THREADS;
3579 _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1));
3580
3581 wxPy_END_ALLOW_THREADS;
3582 if (PyErr_Occurred()) return NULL;
3583 }{
3584 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3585 }
3586 {
3587 delete _result;
3588 }
3589 return _resultobj;
3590 }
3591
3592 #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
3593 static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3594 PyObject * _resultobj;
3595 wxPyListCtrl * _arg0;
3596 long _arg1;
3597 wxString * _arg2;
3598 PyObject * _argo0 = 0;
3599 PyObject * _obj2 = 0;
3600 char *_kwnames[] = { "self","item","str", NULL };
3601
3602 self = self;
3603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2))
3604 return NULL;
3605 if (_argo0) {
3606 if (_argo0 == Py_None) { _arg0 = NULL; }
3607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p.");
3609 return NULL;
3610 }
3611 }
3612 {
3613 #if PYTHON_API_VERSION >= 1009
3614 char* tmpPtr; int tmpSize;
3615 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3616 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3617 return NULL;
3618 }
3619 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3620 return NULL;
3621 _arg2 = new wxString(tmpPtr, tmpSize);
3622 #else
3623 if (!PyString_Check(_obj2)) {
3624 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3625 return NULL;
3626 }
3627 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3628 #endif
3629 }
3630 {
3631 wxPy_BEGIN_ALLOW_THREADS;
3632 wxListCtrl_SetItemText(_arg0,_arg1,*_arg2);
3633
3634 wxPy_END_ALLOW_THREADS;
3635 if (PyErr_Occurred()) return NULL;
3636 } Py_INCREF(Py_None);
3637 _resultobj = Py_None;
3638 {
3639 if (_obj2)
3640 delete _arg2;
3641 }
3642 return _resultobj;
3643 }
3644
3645 #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0))
3646 static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3647 PyObject * _resultobj;
3648 long _result;
3649 wxPyListCtrl * _arg0;
3650 long _arg1;
3651 PyObject * _argo0 = 0;
3652 char *_kwnames[] = { "self","item", NULL };
3653
3654 self = self;
3655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1))
3656 return NULL;
3657 if (_argo0) {
3658 if (_argo0 == Py_None) { _arg0 = NULL; }
3659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p.");
3661 return NULL;
3662 }
3663 }
3664 {
3665 wxPy_BEGIN_ALLOW_THREADS;
3666 _result = (long )wxListCtrl_GetItemData(_arg0,_arg1);
3667
3668 wxPy_END_ALLOW_THREADS;
3669 if (PyErr_Occurred()) return NULL;
3670 } _resultobj = Py_BuildValue("l",_result);
3671 return _resultobj;
3672 }
3673
3674 #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1))
3675 static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3676 PyObject * _resultobj;
3677 bool _result;
3678 wxPyListCtrl * _arg0;
3679 long _arg1;
3680 long _arg2;
3681 PyObject * _argo0 = 0;
3682 char *_kwnames[] = { "self","item","data", NULL };
3683
3684 self = self;
3685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2))
3686 return NULL;
3687 if (_argo0) {
3688 if (_argo0 == Py_None) { _arg0 = NULL; }
3689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p.");
3691 return NULL;
3692 }
3693 }
3694 {
3695 wxPy_BEGIN_ALLOW_THREADS;
3696 _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2);
3697
3698 wxPy_END_ALLOW_THREADS;
3699 if (PyErr_Occurred()) return NULL;
3700 } _resultobj = Py_BuildValue("i",_result);
3701 return _resultobj;
3702 }
3703
3704 static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) {
3705 wxPoint* pos = new wxPoint;
3706 self->GetItemPosition(item, *pos);
3707 return pos;
3708 }
3709 static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3710 PyObject * _resultobj;
3711 wxPoint * _result;
3712 wxPyListCtrl * _arg0;
3713 long _arg1;
3714 PyObject * _argo0 = 0;
3715 char *_kwnames[] = { "self","item", NULL };
3716 char _ptemp[128];
3717
3718 self = self;
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1))
3720 return NULL;
3721 if (_argo0) {
3722 if (_argo0 == Py_None) { _arg0 = NULL; }
3723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p.");
3725 return NULL;
3726 }
3727 }
3728 {
3729 wxPy_BEGIN_ALLOW_THREADS;
3730 _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1);
3731
3732 wxPy_END_ALLOW_THREADS;
3733 if (PyErr_Occurred()) return NULL;
3734 } if (_result) {
3735 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
3736 _resultobj = Py_BuildValue("s",_ptemp);
3737 } else {
3738 Py_INCREF(Py_None);
3739 _resultobj = Py_None;
3740 }
3741 return _resultobj;
3742 }
3743
3744 static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) {
3745 wxRect* rect= new wxRect;
3746 self->GetItemRect(item, *rect, code);
3747 return rect;
3748 }
3749 static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3750 PyObject * _resultobj;
3751 wxRect * _result;
3752 wxPyListCtrl * _arg0;
3753 long _arg1;
3754 int _arg2 = (int ) (wxLIST_RECT_BOUNDS);
3755 PyObject * _argo0 = 0;
3756 char *_kwnames[] = { "self","item","code", NULL };
3757 char _ptemp[128];
3758
3759 self = self;
3760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2))
3761 return NULL;
3762 if (_argo0) {
3763 if (_argo0 == Py_None) { _arg0 = NULL; }
3764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p.");
3766 return NULL;
3767 }
3768 }
3769 {
3770 wxPy_BEGIN_ALLOW_THREADS;
3771 _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2);
3772
3773 wxPy_END_ALLOW_THREADS;
3774 if (PyErr_Occurred()) return NULL;
3775 } if (_result) {
3776 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
3777 _resultobj = Py_BuildValue("s",_ptemp);
3778 } else {
3779 Py_INCREF(Py_None);
3780 _resultobj = Py_None;
3781 }
3782 return _resultobj;
3783 }
3784
3785 #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1))
3786 static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3787 PyObject * _resultobj;
3788 bool _result;
3789 wxPyListCtrl * _arg0;
3790 long _arg1;
3791 wxPoint * _arg2;
3792 PyObject * _argo0 = 0;
3793 wxPoint temp;
3794 PyObject * _obj2 = 0;
3795 char *_kwnames[] = { "self","item","pos", NULL };
3796
3797 self = self;
3798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2))
3799 return NULL;
3800 if (_argo0) {
3801 if (_argo0 == Py_None) { _arg0 = NULL; }
3802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p.");
3804 return NULL;
3805 }
3806 }
3807 {
3808 _arg2 = &temp;
3809 if (! wxPoint_helper(_obj2, &_arg2))
3810 return NULL;
3811 }
3812 {
3813 wxPy_BEGIN_ALLOW_THREADS;
3814 _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2);
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_GetItemCount(_swigobj) (_swigobj->GetItemCount())
3823 static PyObject *_wrap_wxListCtrl_GetItemCount(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_GetItemCount",_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_GetItemCount. Expected _wxPyListCtrl_p.");
3837 return NULL;
3838 }
3839 }
3840 {
3841 wxPy_BEGIN_ALLOW_THREADS;
3842 _result = (int )wxListCtrl_GetItemCount(_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_GetColumnCount(_swigobj) (_swigobj->GetColumnCount())
3851 static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3852 PyObject * _resultobj;
3853 int _result;
3854 wxPyListCtrl * _arg0;
3855 PyObject * _argo0 = 0;
3856 char *_kwnames[] = { "self", NULL };
3857
3858 self = self;
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0))
3860 return NULL;
3861 if (_argo0) {
3862 if (_argo0 == Py_None) { _arg0 = NULL; }
3863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p.");
3865 return NULL;
3866 }
3867 }
3868 {
3869 wxPy_BEGIN_ALLOW_THREADS;
3870 _result = (int )wxListCtrl_GetColumnCount(_arg0);
3871
3872 wxPy_END_ALLOW_THREADS;
3873 if (PyErr_Occurred()) return NULL;
3874 } _resultobj = Py_BuildValue("i",_result);
3875 return _resultobj;
3876 }
3877
3878 #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0))
3879 static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject * _resultobj;
3881 int _result;
3882 wxPyListCtrl * _arg0;
3883 bool _arg1;
3884 PyObject * _argo0 = 0;
3885 int tempbool1;
3886 char *_kwnames[] = { "self","isSmall", NULL };
3887
3888 self = self;
3889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1))
3890 return NULL;
3891 if (_argo0) {
3892 if (_argo0 == Py_None) { _arg0 = NULL; }
3893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p.");
3895 return NULL;
3896 }
3897 }
3898 _arg1 = (bool ) tempbool1;
3899 {
3900 wxPy_BEGIN_ALLOW_THREADS;
3901 _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1);
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_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount())
3910 static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3911 PyObject * _resultobj;
3912 int _result;
3913 wxPyListCtrl * _arg0;
3914 PyObject * _argo0 = 0;
3915 char *_kwnames[] = { "self", NULL };
3916
3917 self = self;
3918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0))
3919 return NULL;
3920 if (_argo0) {
3921 if (_argo0 == Py_None) { _arg0 = NULL; }
3922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p.");
3924 return NULL;
3925 }
3926 }
3927 {
3928 wxPy_BEGIN_ALLOW_THREADS;
3929 _result = (int )wxListCtrl_GetSelectedItemCount(_arg0);
3930
3931 wxPy_END_ALLOW_THREADS;
3932 if (PyErr_Occurred()) return NULL;
3933 } _resultobj = Py_BuildValue("i",_result);
3934 return _resultobj;
3935 }
3936
3937 #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour())
3938 static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3939 PyObject * _resultobj;
3940 wxColour * _result;
3941 wxPyListCtrl * _arg0;
3942 PyObject * _argo0 = 0;
3943 char *_kwnames[] = { "self", NULL };
3944 char _ptemp[128];
3945
3946 self = self;
3947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0))
3948 return NULL;
3949 if (_argo0) {
3950 if (_argo0 == Py_None) { _arg0 = NULL; }
3951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p.");
3953 return NULL;
3954 }
3955 }
3956 {
3957 wxPy_BEGIN_ALLOW_THREADS;
3958 _result = new wxColour (wxListCtrl_GetTextColour(_arg0));
3959
3960 wxPy_END_ALLOW_THREADS;
3961 if (PyErr_Occurred()) return NULL;
3962 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
3963 _resultobj = Py_BuildValue("s",_ptemp);
3964 return _resultobj;
3965 }
3966
3967 #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
3968 static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3969 PyObject * _resultobj;
3970 wxPyListCtrl * _arg0;
3971 wxColour * _arg1;
3972 PyObject * _argo0 = 0;
3973 wxColour temp;
3974 PyObject * _obj1 = 0;
3975 char *_kwnames[] = { "self","col", NULL };
3976
3977 self = self;
3978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1))
3979 return NULL;
3980 if (_argo0) {
3981 if (_argo0 == Py_None) { _arg0 = NULL; }
3982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p.");
3984 return NULL;
3985 }
3986 }
3987 {
3988 _arg1 = &temp;
3989 if (! wxColour_helper(_obj1, &_arg1))
3990 return NULL;
3991 }
3992 {
3993 wxPy_BEGIN_ALLOW_THREADS;
3994 wxListCtrl_SetTextColour(_arg0,*_arg1);
3995
3996 wxPy_END_ALLOW_THREADS;
3997 if (PyErr_Occurred()) return NULL;
3998 } Py_INCREF(Py_None);
3999 _resultobj = Py_None;
4000 return _resultobj;
4001 }
4002
4003 #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem())
4004 static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4005 PyObject * _resultobj;
4006 long _result;
4007 wxPyListCtrl * _arg0;
4008 PyObject * _argo0 = 0;
4009 char *_kwnames[] = { "self", NULL };
4010
4011 self = self;
4012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0))
4013 return NULL;
4014 if (_argo0) {
4015 if (_argo0 == Py_None) { _arg0 = NULL; }
4016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p.");
4018 return NULL;
4019 }
4020 }
4021 {
4022 wxPy_BEGIN_ALLOW_THREADS;
4023 _result = (long )wxListCtrl_GetTopItem(_arg0);
4024
4025 wxPy_END_ALLOW_THREADS;
4026 if (PyErr_Occurred()) return NULL;
4027 } _resultobj = Py_BuildValue("l",_result);
4028 return _resultobj;
4029 }
4030
4031 #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1))
4032 static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4033 PyObject * _resultobj;
4034 wxPyListCtrl * _arg0;
4035 long _arg1;
4036 bool _arg2 = (bool ) TRUE;
4037 PyObject * _argo0 = 0;
4038 int tempbool2 = (int) TRUE;
4039 char *_kwnames[] = { "self","style","add", NULL };
4040
4041 self = self;
4042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2))
4043 return NULL;
4044 if (_argo0) {
4045 if (_argo0 == Py_None) { _arg0 = NULL; }
4046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p.");
4048 return NULL;
4049 }
4050 }
4051 _arg2 = (bool ) tempbool2;
4052 {
4053 wxPy_BEGIN_ALLOW_THREADS;
4054 wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2);
4055
4056 wxPy_END_ALLOW_THREADS;
4057 if (PyErr_Occurred()) return NULL;
4058 } Py_INCREF(Py_None);
4059 _resultobj = Py_None;
4060 return _resultobj;
4061 }
4062
4063 #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
4064 static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
4065 PyObject * _resultobj;
4066 wxPyListCtrl * _arg0;
4067 long _arg1;
4068 PyObject * _argo0 = 0;
4069 char *_kwnames[] = { "self","style", NULL };
4070
4071 self = self;
4072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
4073 return NULL;
4074 if (_argo0) {
4075 if (_argo0 == Py_None) { _arg0 = NULL; }
4076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p.");
4078 return NULL;
4079 }
4080 }
4081 {
4082 wxPy_BEGIN_ALLOW_THREADS;
4083 wxListCtrl_SetWindowStyleFlag(_arg0,_arg1);
4084
4085 wxPy_END_ALLOW_THREADS;
4086 if (PyErr_Occurred()) return NULL;
4087 } Py_INCREF(Py_None);
4088 _resultobj = Py_None;
4089 return _resultobj;
4090 }
4091
4092 #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2))
4093 static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4094 PyObject * _resultobj;
4095 long _result;
4096 wxPyListCtrl * _arg0;
4097 long _arg1;
4098 int _arg2 = (int ) (wxLIST_NEXT_ALL);
4099 int _arg3 = (int ) (wxLIST_STATE_DONTCARE);
4100 PyObject * _argo0 = 0;
4101 char *_kwnames[] = { "self","item","geometry","state", NULL };
4102
4103 self = self;
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
4105 return NULL;
4106 if (_argo0) {
4107 if (_argo0 == Py_None) { _arg0 = NULL; }
4108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p.");
4110 return NULL;
4111 }
4112 }
4113 {
4114 wxPy_BEGIN_ALLOW_THREADS;
4115 _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3);
4116
4117 wxPy_END_ALLOW_THREADS;
4118 if (PyErr_Occurred()) return NULL;
4119 } _resultobj = Py_BuildValue("l",_result);
4120 return _resultobj;
4121 }
4122
4123 #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0))
4124 static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4125 PyObject * _resultobj;
4126 wxImageList * _result;
4127 wxPyListCtrl * _arg0;
4128 int _arg1;
4129 PyObject * _argo0 = 0;
4130 char *_kwnames[] = { "self","which", NULL };
4131
4132 self = self;
4133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1))
4134 return NULL;
4135 if (_argo0) {
4136 if (_argo0 == Py_None) { _arg0 = NULL; }
4137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p.");
4139 return NULL;
4140 }
4141 }
4142 {
4143 wxPy_BEGIN_ALLOW_THREADS;
4144 _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1);
4145
4146 wxPy_END_ALLOW_THREADS;
4147 if (PyErr_Occurred()) return NULL;
4148 }{ _resultobj = wxPyMake_wxObject(_result); }
4149 return _resultobj;
4150 }
4151
4152 #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1))
4153 static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4154 PyObject * _resultobj;
4155 wxPyListCtrl * _arg0;
4156 wxImageList * _arg1;
4157 int _arg2;
4158 PyObject * _argo0 = 0;
4159 PyObject * _argo1 = 0;
4160 char *_kwnames[] = { "self","imageList","which", NULL };
4161
4162 self = self;
4163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2))
4164 return NULL;
4165 if (_argo0) {
4166 if (_argo0 == Py_None) { _arg0 = NULL; }
4167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p.");
4169 return NULL;
4170 }
4171 }
4172 if (_argo1) {
4173 if (_argo1 == Py_None) { _arg1 = NULL; }
4174 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4175 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p.");
4176 return NULL;
4177 }
4178 }
4179 {
4180 wxPy_BEGIN_ALLOW_THREADS;
4181 wxListCtrl_SetImageList(_arg0,_arg1,_arg2);
4182
4183 wxPy_END_ALLOW_THREADS;
4184 if (PyErr_Occurred()) return NULL;
4185 } Py_INCREF(Py_None);
4186 _resultobj = Py_None;
4187 return _resultobj;
4188 }
4189
4190 #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1))
4191 static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4192 PyObject * _resultobj;
4193 wxPyListCtrl * _arg0;
4194 wxImageList * _arg1;
4195 int _arg2;
4196 PyObject * _argo0 = 0;
4197 PyObject * _argo1 = 0;
4198 char *_kwnames[] = { "self","imageList","which", NULL };
4199
4200 self = self;
4201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2))
4202 return NULL;
4203 if (_argo0) {
4204 if (_argo0 == Py_None) { _arg0 = NULL; }
4205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p.");
4207 return NULL;
4208 }
4209 }
4210 if (_argo1) {
4211 if (_argo1 == Py_None) { _arg1 = NULL; }
4212 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4213 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p.");
4214 return NULL;
4215 }
4216 }
4217 {
4218 wxPy_BEGIN_ALLOW_THREADS;
4219 wxListCtrl_AssignImageList(_arg0,_arg1,_arg2);
4220
4221 wxPy_END_ALLOW_THREADS;
4222 if (PyErr_Occurred()) return NULL;
4223 } Py_INCREF(Py_None);
4224 _resultobj = Py_None;
4225 return _resultobj;
4226 }
4227
4228 #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual())
4229 static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
4230 PyObject * _resultobj;
4231 bool _result;
4232 wxPyListCtrl * _arg0;
4233 PyObject * _argo0 = 0;
4234 char *_kwnames[] = { "self", NULL };
4235
4236 self = self;
4237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0))
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_IsVirtual. Expected _wxPyListCtrl_p.");
4243 return NULL;
4244 }
4245 }
4246 {
4247 wxPy_BEGIN_ALLOW_THREADS;
4248 _result = (bool )wxListCtrl_IsVirtual(_arg0);
4249
4250 wxPy_END_ALLOW_THREADS;
4251 if (PyErr_Occurred()) return NULL;
4252 } _resultobj = Py_BuildValue("i",_result);
4253 return _resultobj;
4254 }
4255
4256 #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0))
4257 static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4258 PyObject * _resultobj;
4259 wxPyListCtrl * _arg0;
4260 long _arg1;
4261 PyObject * _argo0 = 0;
4262 char *_kwnames[] = { "self","item", NULL };
4263
4264 self = self;
4265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1))
4266 return NULL;
4267 if (_argo0) {
4268 if (_argo0 == Py_None) { _arg0 = NULL; }
4269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p.");
4271 return NULL;
4272 }
4273 }
4274 {
4275 wxPy_BEGIN_ALLOW_THREADS;
4276 wxListCtrl_RefreshItem(_arg0,_arg1);
4277
4278 wxPy_END_ALLOW_THREADS;
4279 if (PyErr_Occurred()) return NULL;
4280 } Py_INCREF(Py_None);
4281 _resultobj = Py_None;
4282 return _resultobj;
4283 }
4284
4285 #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1))
4286 static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4287 PyObject * _resultobj;
4288 wxPyListCtrl * _arg0;
4289 long _arg1;
4290 long _arg2;
4291 PyObject * _argo0 = 0;
4292 char *_kwnames[] = { "self","itemFrom","itemTo", NULL };
4293
4294 self = self;
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2))
4296 return NULL;
4297 if (_argo0) {
4298 if (_argo0 == Py_None) { _arg0 = NULL; }
4299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p.");
4301 return NULL;
4302 }
4303 }
4304 {
4305 wxPy_BEGIN_ALLOW_THREADS;
4306 wxListCtrl_RefreshItems(_arg0,_arg1,_arg2);
4307
4308 wxPy_END_ALLOW_THREADS;
4309 if (PyErr_Occurred()) return NULL;
4310 } Py_INCREF(Py_None);
4311 _resultobj = Py_None;
4312 return _resultobj;
4313 }
4314
4315 #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0))
4316 static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
4317 PyObject * _resultobj;
4318 bool _result;
4319 wxPyListCtrl * _arg0;
4320 int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT);
4321 PyObject * _argo0 = 0;
4322 char *_kwnames[] = { "self","flag", NULL };
4323
4324 self = self;
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1))
4326 return NULL;
4327 if (_argo0) {
4328 if (_argo0 == Py_None) { _arg0 = NULL; }
4329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p.");
4331 return NULL;
4332 }
4333 }
4334 {
4335 wxPy_BEGIN_ALLOW_THREADS;
4336 _result = (bool )wxListCtrl_Arrange(_arg0,_arg1);
4337
4338 wxPy_END_ALLOW_THREADS;
4339 if (PyErr_Occurred()) return NULL;
4340 } _resultobj = Py_BuildValue("i",_result);
4341 return _resultobj;
4342 }
4343
4344 #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0))
4345 static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4346 PyObject * _resultobj;
4347 bool _result;
4348 wxPyListCtrl * _arg0;
4349 long _arg1;
4350 PyObject * _argo0 = 0;
4351 char *_kwnames[] = { "self","item", NULL };
4352
4353 self = self;
4354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1))
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_DeleteItem. Expected _wxPyListCtrl_p.");
4360 return NULL;
4361 }
4362 }
4363 {
4364 wxPy_BEGIN_ALLOW_THREADS;
4365 _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1);
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_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
4374 static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4375 PyObject * _resultobj;
4376 bool _result;
4377 wxPyListCtrl * _arg0;
4378 PyObject * _argo0 = 0;
4379 char *_kwnames[] = { "self", NULL };
4380
4381 self = self;
4382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0))
4383 return NULL;
4384 if (_argo0) {
4385 if (_argo0 == Py_None) { _arg0 = NULL; }
4386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p.");
4388 return NULL;
4389 }
4390 }
4391 {
4392 wxPy_BEGIN_ALLOW_THREADS;
4393 _result = (bool )wxListCtrl_DeleteAllItems(_arg0);
4394
4395 wxPy_END_ALLOW_THREADS;
4396 if (PyErr_Occurred()) return NULL;
4397 } _resultobj = Py_BuildValue("i",_result);
4398 return _resultobj;
4399 }
4400
4401 #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0))
4402 static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
4403 PyObject * _resultobj;
4404 bool _result;
4405 wxPyListCtrl * _arg0;
4406 int _arg1;
4407 PyObject * _argo0 = 0;
4408 char *_kwnames[] = { "self","col", NULL };
4409
4410 self = self;
4411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1))
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_DeleteColumn. Expected _wxPyListCtrl_p.");
4417 return NULL;
4418 }
4419 }
4420 {
4421 wxPy_BEGIN_ALLOW_THREADS;
4422 _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1);
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_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns())
4431 static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
4432 PyObject * _resultobj;
4433 bool _result;
4434 wxPyListCtrl * _arg0;
4435 PyObject * _argo0 = 0;
4436 char *_kwnames[] = { "self", NULL };
4437
4438 self = self;
4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0))
4440 return NULL;
4441 if (_argo0) {
4442 if (_argo0 == Py_None) { _arg0 = NULL; }
4443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p.");
4445 return NULL;
4446 }
4447 }
4448 {
4449 wxPy_BEGIN_ALLOW_THREADS;
4450 _result = (bool )wxListCtrl_DeleteAllColumns(_arg0);
4451
4452 wxPy_END_ALLOW_THREADS;
4453 if (PyErr_Occurred()) return NULL;
4454 } _resultobj = Py_BuildValue("i",_result);
4455 return _resultobj;
4456 }
4457
4458 #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll())
4459 static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
4460 PyObject * _resultobj;
4461 wxPyListCtrl * _arg0;
4462 PyObject * _argo0 = 0;
4463 char *_kwnames[] = { "self", NULL };
4464
4465 self = self;
4466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0))
4467 return NULL;
4468 if (_argo0) {
4469 if (_argo0 == Py_None) { _arg0 = NULL; }
4470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p.");
4472 return NULL;
4473 }
4474 }
4475 {
4476 wxPy_BEGIN_ALLOW_THREADS;
4477 wxListCtrl_ClearAll(_arg0);
4478
4479 wxPy_END_ALLOW_THREADS;
4480 if (PyErr_Occurred()) return NULL;
4481 } Py_INCREF(Py_None);
4482 _resultobj = Py_None;
4483 return _resultobj;
4484 }
4485
4486 #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
4487 static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4488 PyObject * _resultobj;
4489 wxTextCtrl * _result;
4490 wxPyListCtrl * _arg0;
4491 long _arg1;
4492 PyObject * _argo0 = 0;
4493 char *_kwnames[] = { "self","item", NULL };
4494
4495 self = self;
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1))
4497 return NULL;
4498 if (_argo0) {
4499 if (_argo0 == Py_None) { _arg0 = NULL; }
4500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p.");
4502 return NULL;
4503 }
4504 }
4505 {
4506 wxPy_BEGIN_ALLOW_THREADS;
4507 _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1);
4508
4509 wxPy_END_ALLOW_THREADS;
4510 if (PyErr_Occurred()) return NULL;
4511 }{ _resultobj = wxPyMake_wxObject(_result); }
4512 return _resultobj;
4513 }
4514
4515 #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0))
4516 static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4517 PyObject * _resultobj;
4518 bool _result;
4519 wxPyListCtrl * _arg0;
4520 bool _arg1;
4521 PyObject * _argo0 = 0;
4522 int tempbool1;
4523 char *_kwnames[] = { "self","cancel", NULL };
4524
4525 self = self;
4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1))
4527 return NULL;
4528 if (_argo0) {
4529 if (_argo0 == Py_None) { _arg0 = NULL; }
4530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p.");
4532 return NULL;
4533 }
4534 }
4535 _arg1 = (bool ) tempbool1;
4536 {
4537 wxPy_BEGIN_ALLOW_THREADS;
4538 _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1);
4539
4540 wxPy_END_ALLOW_THREADS;
4541 if (PyErr_Occurred()) return NULL;
4542 } _resultobj = Py_BuildValue("i",_result);
4543 return _resultobj;
4544 }
4545
4546 #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
4547 static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4548 PyObject * _resultobj;
4549 bool _result;
4550 wxPyListCtrl * _arg0;
4551 long _arg1;
4552 PyObject * _argo0 = 0;
4553 char *_kwnames[] = { "self","item", NULL };
4554
4555 self = self;
4556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1))
4557 return NULL;
4558 if (_argo0) {
4559 if (_argo0 == Py_None) { _arg0 = NULL; }
4560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p.");
4562 return NULL;
4563 }
4564 }
4565 {
4566 wxPy_BEGIN_ALLOW_THREADS;
4567 _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1);
4568
4569 wxPy_END_ALLOW_THREADS;
4570 if (PyErr_Occurred()) return NULL;
4571 } _resultobj = Py_BuildValue("i",_result);
4572 return _resultobj;
4573 }
4574
4575 #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4576 static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4577 PyObject * _resultobj;
4578 long _result;
4579 wxPyListCtrl * _arg0;
4580 long _arg1;
4581 wxString * _arg2;
4582 bool _arg3 = (bool ) FALSE;
4583 PyObject * _argo0 = 0;
4584 PyObject * _obj2 = 0;
4585 int tempbool3 = (int) FALSE;
4586 char *_kwnames[] = { "self","start","str","partial", NULL };
4587
4588 self = self;
4589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
4590 return NULL;
4591 if (_argo0) {
4592 if (_argo0 == Py_None) { _arg0 = NULL; }
4593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p.");
4595 return NULL;
4596 }
4597 }
4598 {
4599 #if PYTHON_API_VERSION >= 1009
4600 char* tmpPtr; int tmpSize;
4601 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4602 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4603 return NULL;
4604 }
4605 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4606 return NULL;
4607 _arg2 = new wxString(tmpPtr, tmpSize);
4608 #else
4609 if (!PyString_Check(_obj2)) {
4610 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4611 return NULL;
4612 }
4613 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4614 #endif
4615 }
4616 _arg3 = (bool ) tempbool3;
4617 {
4618 wxPy_BEGIN_ALLOW_THREADS;
4619 _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3);
4620
4621 wxPy_END_ALLOW_THREADS;
4622 if (PyErr_Occurred()) return NULL;
4623 } _resultobj = Py_BuildValue("l",_result);
4624 {
4625 if (_obj2)
4626 delete _arg2;
4627 }
4628 return _resultobj;
4629 }
4630
4631 #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1))
4632 static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
4633 PyObject * _resultobj;
4634 long _result;
4635 wxPyListCtrl * _arg0;
4636 long _arg1;
4637 long _arg2;
4638 PyObject * _argo0 = 0;
4639 char *_kwnames[] = { "self","start","data", NULL };
4640
4641 self = self;
4642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2))
4643 return NULL;
4644 if (_argo0) {
4645 if (_argo0 == Py_None) { _arg0 = NULL; }
4646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p.");
4648 return NULL;
4649 }
4650 }
4651 {
4652 wxPy_BEGIN_ALLOW_THREADS;
4653 _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2);
4654
4655 wxPy_END_ALLOW_THREADS;
4656 if (PyErr_Occurred()) return NULL;
4657 } _resultobj = Py_BuildValue("l",_result);
4658 return _resultobj;
4659 }
4660
4661 #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4662 static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
4663 PyObject * _resultobj;
4664 long _result;
4665 wxPyListCtrl * _arg0;
4666 long _arg1;
4667 wxPoint * _arg2;
4668 int _arg3;
4669 PyObject * _argo0 = 0;
4670 wxPoint temp;
4671 PyObject * _obj2 = 0;
4672 char *_kwnames[] = { "self","start","pt","direction", NULL };
4673
4674 self = self;
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4676 return NULL;
4677 if (_argo0) {
4678 if (_argo0 == Py_None) { _arg0 = NULL; }
4679 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4680 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p.");
4681 return NULL;
4682 }
4683 }
4684 {
4685 _arg2 = &temp;
4686 if (! wxPoint_helper(_obj2, &_arg2))
4687 return NULL;
4688 }
4689 {
4690 wxPy_BEGIN_ALLOW_THREADS;
4691 _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3);
4692
4693 wxPy_END_ALLOW_THREADS;
4694 if (PyErr_Occurred()) return NULL;
4695 } _resultobj = Py_BuildValue("l",_result);
4696 return _resultobj;
4697 }
4698
4699 #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
4700 static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
4701 PyObject * _resultobj;
4702 long _result;
4703 wxPyListCtrl * _arg0;
4704 wxPoint * _arg1;
4705 int * _arg2;
4706 int temp;
4707 PyObject * _argo0 = 0;
4708 wxPoint temp0;
4709 PyObject * _obj1 = 0;
4710 char *_kwnames[] = { "self","point", NULL };
4711
4712 self = self;
4713 {
4714 _arg2 = &temp;
4715 }
4716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1))
4717 return NULL;
4718 if (_argo0) {
4719 if (_argo0 == Py_None) { _arg0 = NULL; }
4720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p.");
4722 return NULL;
4723 }
4724 }
4725 {
4726 _arg1 = &temp0;
4727 if (! wxPoint_helper(_obj1, &_arg1))
4728 return NULL;
4729 }
4730 {
4731 wxPy_BEGIN_ALLOW_THREADS;
4732 _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2);
4733
4734 wxPy_END_ALLOW_THREADS;
4735 if (PyErr_Occurred()) return NULL;
4736 } _resultobj = Py_BuildValue("l",_result);
4737 {
4738 PyObject *o;
4739 o = PyInt_FromLong((long) (*_arg2));
4740 _resultobj = t_output_helper(_resultobj, o);
4741 }
4742 return _resultobj;
4743 }
4744
4745 #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0))
4746 static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4747 PyObject * _resultobj;
4748 long _result;
4749 wxPyListCtrl * _arg0;
4750 wxListItem * _arg1;
4751 PyObject * _argo0 = 0;
4752 PyObject * _argo1 = 0;
4753 char *_kwnames[] = { "self","info", NULL };
4754
4755 self = self;
4756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1))
4757 return NULL;
4758 if (_argo0) {
4759 if (_argo0 == Py_None) { _arg0 = NULL; }
4760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p.");
4762 return NULL;
4763 }
4764 }
4765 if (_argo1) {
4766 if (_argo1 == Py_None) { _arg1 = NULL; }
4767 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
4768 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p.");
4769 return NULL;
4770 }
4771 }
4772 {
4773 wxPy_BEGIN_ALLOW_THREADS;
4774 _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1);
4775
4776 wxPy_END_ALLOW_THREADS;
4777 if (PyErr_Occurred()) return NULL;
4778 } _resultobj = Py_BuildValue("l",_result);
4779 return _resultobj;
4780 }
4781
4782 #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4783 static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4784 PyObject * _resultobj;
4785 long _result;
4786 wxPyListCtrl * _arg0;
4787 long _arg1;
4788 wxString * _arg2;
4789 PyObject * _argo0 = 0;
4790 PyObject * _obj2 = 0;
4791 char *_kwnames[] = { "self","index","label", NULL };
4792
4793 self = self;
4794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2))
4795 return NULL;
4796 if (_argo0) {
4797 if (_argo0 == Py_None) { _arg0 = NULL; }
4798 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4799 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p.");
4800 return NULL;
4801 }
4802 }
4803 {
4804 #if PYTHON_API_VERSION >= 1009
4805 char* tmpPtr; int tmpSize;
4806 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4807 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4808 return NULL;
4809 }
4810 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4811 return NULL;
4812 _arg2 = new wxString(tmpPtr, tmpSize);
4813 #else
4814 if (!PyString_Check(_obj2)) {
4815 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4816 return NULL;
4817 }
4818 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4819 #endif
4820 }
4821 {
4822 wxPy_BEGIN_ALLOW_THREADS;
4823 _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2);
4824
4825 wxPy_END_ALLOW_THREADS;
4826 if (PyErr_Occurred()) return NULL;
4827 } _resultobj = Py_BuildValue("l",_result);
4828 {
4829 if (_obj2)
4830 delete _arg2;
4831 }
4832 return _resultobj;
4833 }
4834
4835 #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4836 static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4837 PyObject * _resultobj;
4838 long _result;
4839 wxPyListCtrl * _arg0;
4840 long _arg1;
4841 int _arg2;
4842 PyObject * _argo0 = 0;
4843 char *_kwnames[] = { "self","index","imageIndex", NULL };
4844
4845 self = self;
4846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2))
4847 return NULL;
4848 if (_argo0) {
4849 if (_argo0 == Py_None) { _arg0 = NULL; }
4850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p.");
4852 return NULL;
4853 }
4854 }
4855 {
4856 wxPy_BEGIN_ALLOW_THREADS;
4857 _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2);
4858
4859 wxPy_END_ALLOW_THREADS;
4860 if (PyErr_Occurred()) return NULL;
4861 } _resultobj = Py_BuildValue("l",_result);
4862 return _resultobj;
4863 }
4864
4865 #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2))
4866 static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4867 PyObject * _resultobj;
4868 long _result;
4869 wxPyListCtrl * _arg0;
4870 long _arg1;
4871 wxString * _arg2;
4872 int _arg3;
4873 PyObject * _argo0 = 0;
4874 PyObject * _obj2 = 0;
4875 char *_kwnames[] = { "self","index","label","imageIndex", NULL };
4876
4877 self = self;
4878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4879 return NULL;
4880 if (_argo0) {
4881 if (_argo0 == Py_None) { _arg0 = NULL; }
4882 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4883 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p.");
4884 return NULL;
4885 }
4886 }
4887 {
4888 #if PYTHON_API_VERSION >= 1009
4889 char* tmpPtr; int tmpSize;
4890 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4891 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4892 return NULL;
4893 }
4894 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4895 return NULL;
4896 _arg2 = new wxString(tmpPtr, tmpSize);
4897 #else
4898 if (!PyString_Check(_obj2)) {
4899 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4900 return NULL;
4901 }
4902 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4903 #endif
4904 }
4905 {
4906 wxPy_BEGIN_ALLOW_THREADS;
4907 _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3);
4908
4909 wxPy_END_ALLOW_THREADS;
4910 if (PyErr_Occurred()) return NULL;
4911 } _resultobj = Py_BuildValue("l",_result);
4912 {
4913 if (_obj2)
4914 delete _arg2;
4915 }
4916 return _resultobj;
4917 }
4918
4919 #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
4920 static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4921 PyObject * _resultobj;
4922 long _result;
4923 wxPyListCtrl * _arg0;
4924 long _arg1;
4925 wxListItem * _arg2;
4926 PyObject * _argo0 = 0;
4927 PyObject * _argo2 = 0;
4928 char *_kwnames[] = { "self","col","info", NULL };
4929
4930 self = self;
4931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2))
4932 return NULL;
4933 if (_argo0) {
4934 if (_argo0 == Py_None) { _arg0 = NULL; }
4935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p.");
4937 return NULL;
4938 }
4939 }
4940 if (_argo2) {
4941 if (_argo2 == Py_None) { _arg2 = NULL; }
4942 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
4943 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p.");
4944 return NULL;
4945 }
4946 }
4947 {
4948 wxPy_BEGIN_ALLOW_THREADS;
4949 _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2);
4950
4951 wxPy_END_ALLOW_THREADS;
4952 if (PyErr_Occurred()) return NULL;
4953 } _resultobj = Py_BuildValue("l",_result);
4954 return _resultobj;
4955 }
4956
4957 #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4958 static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
4959 PyObject * _resultobj;
4960 long _result;
4961 wxPyListCtrl * _arg0;
4962 long _arg1;
4963 wxString * _arg2;
4964 int _arg3 = (int ) (wxLIST_FORMAT_LEFT);
4965 int _arg4 = (int ) -1;
4966 PyObject * _argo0 = 0;
4967 PyObject * _obj2 = 0;
4968 char *_kwnames[] = { "self","col","heading","format","width", NULL };
4969
4970 self = self;
4971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4))
4972 return NULL;
4973 if (_argo0) {
4974 if (_argo0 == Py_None) { _arg0 = NULL; }
4975 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4976 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p.");
4977 return NULL;
4978 }
4979 }
4980 {
4981 #if PYTHON_API_VERSION >= 1009
4982 char* tmpPtr; int tmpSize;
4983 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4984 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4985 return NULL;
4986 }
4987 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4988 return NULL;
4989 _arg2 = new wxString(tmpPtr, tmpSize);
4990 #else
4991 if (!PyString_Check(_obj2)) {
4992 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4993 return NULL;
4994 }
4995 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4996 #endif
4997 }
4998 {
4999 wxPy_BEGIN_ALLOW_THREADS;
5000 _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4);
5001
5002 wxPy_END_ALLOW_THREADS;
5003 if (PyErr_Occurred()) return NULL;
5004 } _resultobj = Py_BuildValue("l",_result);
5005 {
5006 if (_obj2)
5007 delete _arg2;
5008 }
5009 return _resultobj;
5010 }
5011
5012 #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0))
5013 static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5014 PyObject * _resultobj;
5015 wxPyListCtrl * _arg0;
5016 long _arg1;
5017 PyObject * _argo0 = 0;
5018 char *_kwnames[] = { "self","count", NULL };
5019
5020 self = self;
5021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1))
5022 return NULL;
5023 if (_argo0) {
5024 if (_argo0 == Py_None) { _arg0 = NULL; }
5025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p.");
5027 return NULL;
5028 }
5029 }
5030 {
5031 wxPy_BEGIN_ALLOW_THREADS;
5032 wxListCtrl_SetItemCount(_arg0,_arg1);
5033
5034 wxPy_END_ALLOW_THREADS;
5035 if (PyErr_Occurred()) return NULL;
5036 } Py_INCREF(Py_None);
5037 _resultobj = Py_None;
5038 return _resultobj;
5039 }
5040
5041 #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1))
5042 static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
5043 PyObject * _resultobj;
5044 bool _result;
5045 wxPyListCtrl * _arg0;
5046 int _arg1;
5047 int _arg2;
5048 PyObject * _argo0 = 0;
5049 char *_kwnames[] = { "self","dx","dy", NULL };
5050
5051 self = self;
5052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2))
5053 return NULL;
5054 if (_argo0) {
5055 if (_argo0 == Py_None) { _arg0 = NULL; }
5056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p.");
5058 return NULL;
5059 }
5060 }
5061 {
5062 wxPy_BEGIN_ALLOW_THREADS;
5063 _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2);
5064
5065 wxPy_END_ALLOW_THREADS;
5066 if (PyErr_Occurred()) return NULL;
5067 } _resultobj = Py_BuildValue("i",_result);
5068 return _resultobj;
5069 }
5070
5071 static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) {
5072 if (!PyCallable_Check(func))
5073 return FALSE;
5074 return self->SortItems(wxPyListCtrl_SortItems, (long)func);
5075 }
5076 static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5077 PyObject * _resultobj;
5078 bool _result;
5079 wxPyListCtrl * _arg0;
5080 PyObject * _arg1;
5081 PyObject * _argo0 = 0;
5082 PyObject * _obj1 = 0;
5083 char *_kwnames[] = { "self","func", NULL };
5084
5085 self = self;
5086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1))
5087 return NULL;
5088 if (_argo0) {
5089 if (_argo0 == Py_None) { _arg0 = NULL; }
5090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p.");
5092 return NULL;
5093 }
5094 }
5095 {
5096 _arg1 = _obj1;
5097 }
5098 {
5099 wxPy_BEGIN_ALLOW_THREADS;
5100 _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1);
5101
5102 wxPy_END_ALLOW_THREADS;
5103 if (PyErr_Occurred()) return NULL;
5104 } _resultobj = Py_BuildValue("i",_result);
5105 return _resultobj;
5106 }
5107
5108 #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2))
5109 static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5110 PyObject * _resultobj;
5111 wxTreeItemAttr * _result;
5112 wxColour * _arg0 = (wxColour *) &wxNullColour;
5113 wxColour * _arg1 = (wxColour *) &wxNullColour;
5114 wxFont * _arg2 = (wxFont *) &wxNullFont;
5115 wxColour temp;
5116 PyObject * _obj0 = 0;
5117 wxColour temp0;
5118 PyObject * _obj1 = 0;
5119 PyObject * _argo2 = 0;
5120 char *_kwnames[] = { "colText","colBack","font", NULL };
5121 char _ptemp[128];
5122
5123 self = self;
5124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2))
5125 return NULL;
5126 if (_obj0)
5127 {
5128 _arg0 = &temp;
5129 if (! wxColour_helper(_obj0, &_arg0))
5130 return NULL;
5131 }
5132 if (_obj1)
5133 {
5134 _arg1 = &temp0;
5135 if (! wxColour_helper(_obj1, &_arg1))
5136 return NULL;
5137 }
5138 if (_argo2) {
5139 if (_argo2 == Py_None) { _arg2 = NULL; }
5140 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5141 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p.");
5142 return NULL;
5143 }
5144 }
5145 {
5146 wxPy_BEGIN_ALLOW_THREADS;
5147 _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2);
5148
5149 wxPy_END_ALLOW_THREADS;
5150 if (PyErr_Occurred()) return NULL;
5151 } if (_result) {
5152 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p");
5153 _resultobj = Py_BuildValue("s",_ptemp);
5154 } else {
5155 Py_INCREF(Py_None);
5156 _resultobj = Py_None;
5157 }
5158 return _resultobj;
5159 }
5160
5161 #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
5162 static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5163 PyObject * _resultobj;
5164 wxTreeItemAttr * _arg0;
5165 wxColour * _arg1;
5166 PyObject * _argo0 = 0;
5167 wxColour temp;
5168 PyObject * _obj1 = 0;
5169 char *_kwnames[] = { "self","colText", NULL };
5170
5171 self = self;
5172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
5173 return NULL;
5174 if (_argo0) {
5175 if (_argo0 == Py_None) { _arg0 = NULL; }
5176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p.");
5178 return NULL;
5179 }
5180 }
5181 {
5182 _arg1 = &temp;
5183 if (! wxColour_helper(_obj1, &_arg1))
5184 return NULL;
5185 }
5186 {
5187 wxPy_BEGIN_ALLOW_THREADS;
5188 wxTreeItemAttr_SetTextColour(_arg0,*_arg1);
5189
5190 wxPy_END_ALLOW_THREADS;
5191 if (PyErr_Occurred()) return NULL;
5192 } Py_INCREF(Py_None);
5193 _resultobj = Py_None;
5194 return _resultobj;
5195 }
5196
5197 #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
5198 static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5199 PyObject * _resultobj;
5200 wxTreeItemAttr * _arg0;
5201 wxColour * _arg1;
5202 PyObject * _argo0 = 0;
5203 wxColour temp;
5204 PyObject * _obj1 = 0;
5205 char *_kwnames[] = { "self","colBack", NULL };
5206
5207 self = self;
5208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
5209 return NULL;
5210 if (_argo0) {
5211 if (_argo0 == Py_None) { _arg0 = NULL; }
5212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p.");
5214 return NULL;
5215 }
5216 }
5217 {
5218 _arg1 = &temp;
5219 if (! wxColour_helper(_obj1, &_arg1))
5220 return NULL;
5221 }
5222 {
5223 wxPy_BEGIN_ALLOW_THREADS;
5224 wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1);
5225
5226 wxPy_END_ALLOW_THREADS;
5227 if (PyErr_Occurred()) return NULL;
5228 } Py_INCREF(Py_None);
5229 _resultobj = Py_None;
5230 return _resultobj;
5231 }
5232
5233 #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5234 static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5235 PyObject * _resultobj;
5236 wxTreeItemAttr * _arg0;
5237 wxFont * _arg1;
5238 PyObject * _argo0 = 0;
5239 PyObject * _argo1 = 0;
5240 char *_kwnames[] = { "self","font", NULL };
5241
5242 self = self;
5243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1))
5244 return NULL;
5245 if (_argo0) {
5246 if (_argo0 == Py_None) { _arg0 = NULL; }
5247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p.");
5249 return NULL;
5250 }
5251 }
5252 if (_argo1) {
5253 if (_argo1 == Py_None) { _arg1 = NULL; }
5254 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5255 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p.");
5256 return NULL;
5257 }
5258 }
5259 {
5260 wxPy_BEGIN_ALLOW_THREADS;
5261 wxTreeItemAttr_SetFont(_arg0,*_arg1);
5262
5263 wxPy_END_ALLOW_THREADS;
5264 if (PyErr_Occurred()) return NULL;
5265 } Py_INCREF(Py_None);
5266 _resultobj = Py_None;
5267 return _resultobj;
5268 }
5269
5270 #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
5271 static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5272 PyObject * _resultobj;
5273 bool _result;
5274 wxTreeItemAttr * _arg0;
5275 PyObject * _argo0 = 0;
5276 char *_kwnames[] = { "self", NULL };
5277
5278 self = self;
5279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0))
5280 return NULL;
5281 if (_argo0) {
5282 if (_argo0 == Py_None) { _arg0 = NULL; }
5283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p.");
5285 return NULL;
5286 }
5287 }
5288 {
5289 wxPy_BEGIN_ALLOW_THREADS;
5290 _result = (bool )wxTreeItemAttr_HasTextColour(_arg0);
5291
5292 wxPy_END_ALLOW_THREADS;
5293 if (PyErr_Occurred()) return NULL;
5294 } _resultobj = Py_BuildValue("i",_result);
5295 return _resultobj;
5296 }
5297
5298 #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
5299 static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5300 PyObject * _resultobj;
5301 bool _result;
5302 wxTreeItemAttr * _arg0;
5303 PyObject * _argo0 = 0;
5304 char *_kwnames[] = { "self", NULL };
5305
5306 self = self;
5307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0))
5308 return NULL;
5309 if (_argo0) {
5310 if (_argo0 == Py_None) { _arg0 = NULL; }
5311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p.");
5313 return NULL;
5314 }
5315 }
5316 {
5317 wxPy_BEGIN_ALLOW_THREADS;
5318 _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0);
5319
5320 wxPy_END_ALLOW_THREADS;
5321 if (PyErr_Occurred()) return NULL;
5322 } _resultobj = Py_BuildValue("i",_result);
5323 return _resultobj;
5324 }
5325
5326 #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont())
5327 static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject * _resultobj;
5329 bool _result;
5330 wxTreeItemAttr * _arg0;
5331 PyObject * _argo0 = 0;
5332 char *_kwnames[] = { "self", NULL };
5333
5334 self = self;
5335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0))
5336 return NULL;
5337 if (_argo0) {
5338 if (_argo0 == Py_None) { _arg0 = NULL; }
5339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p.");
5341 return NULL;
5342 }
5343 }
5344 {
5345 wxPy_BEGIN_ALLOW_THREADS;
5346 _result = (bool )wxTreeItemAttr_HasFont(_arg0);
5347
5348 wxPy_END_ALLOW_THREADS;
5349 if (PyErr_Occurred()) return NULL;
5350 } _resultobj = Py_BuildValue("i",_result);
5351 return _resultobj;
5352 }
5353
5354 #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
5355 static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5356 PyObject * _resultobj;
5357 wxColour * _result;
5358 wxTreeItemAttr * _arg0;
5359 PyObject * _argo0 = 0;
5360 char *_kwnames[] = { "self", NULL };
5361 char _ptemp[128];
5362
5363 self = self;
5364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0))
5365 return NULL;
5366 if (_argo0) {
5367 if (_argo0 == Py_None) { _arg0 = NULL; }
5368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p.");
5370 return NULL;
5371 }
5372 }
5373 {
5374 wxPy_BEGIN_ALLOW_THREADS;
5375 const wxColour & _result_ref = wxTreeItemAttr_GetTextColour(_arg0);
5376 _result = (wxColour *) &_result_ref;
5377
5378 wxPy_END_ALLOW_THREADS;
5379 if (PyErr_Occurred()) return NULL;
5380 } if (_result) {
5381 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5382 _resultobj = Py_BuildValue("s",_ptemp);
5383 } else {
5384 Py_INCREF(Py_None);
5385 _resultobj = Py_None;
5386 }
5387 return _resultobj;
5388 }
5389
5390 #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
5391 static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5392 PyObject * _resultobj;
5393 wxColour * _result;
5394 wxTreeItemAttr * _arg0;
5395 PyObject * _argo0 = 0;
5396 char *_kwnames[] = { "self", NULL };
5397 char _ptemp[128];
5398
5399 self = self;
5400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0))
5401 return NULL;
5402 if (_argo0) {
5403 if (_argo0 == Py_None) { _arg0 = NULL; }
5404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p.");
5406 return NULL;
5407 }
5408 }
5409 {
5410 wxPy_BEGIN_ALLOW_THREADS;
5411 const wxColour & _result_ref = wxTreeItemAttr_GetBackgroundColour(_arg0);
5412 _result = (wxColour *) &_result_ref;
5413
5414 wxPy_END_ALLOW_THREADS;
5415 if (PyErr_Occurred()) return NULL;
5416 } if (_result) {
5417 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5418 _resultobj = Py_BuildValue("s",_ptemp);
5419 } else {
5420 Py_INCREF(Py_None);
5421 _resultobj = Py_None;
5422 }
5423 return _resultobj;
5424 }
5425
5426 #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont())
5427 static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5428 PyObject * _resultobj;
5429 wxFont * _result;
5430 wxTreeItemAttr * _arg0;
5431 PyObject * _argo0 = 0;
5432 char *_kwnames[] = { "self", NULL };
5433 char _ptemp[128];
5434
5435 self = self;
5436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0))
5437 return NULL;
5438 if (_argo0) {
5439 if (_argo0 == Py_None) { _arg0 = NULL; }
5440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p.");
5442 return NULL;
5443 }
5444 }
5445 {
5446 wxPy_BEGIN_ALLOW_THREADS;
5447 const wxFont & _result_ref = wxTreeItemAttr_GetFont(_arg0);
5448 _result = (wxFont *) &_result_ref;
5449
5450 wxPy_END_ALLOW_THREADS;
5451 if (PyErr_Occurred()) return NULL;
5452 } if (_result) {
5453 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
5454 _resultobj = Py_BuildValue("s",_ptemp);
5455 } else {
5456 Py_INCREF(Py_None);
5457 _resultobj = Py_None;
5458 }
5459 return _resultobj;
5460 }
5461
5462 #define new_wxTreeItemId() (new wxTreeItemId())
5463 static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject * _resultobj;
5465 wxTreeItemId * _result;
5466 char *_kwnames[] = { NULL };
5467 char _ptemp[128];
5468
5469 self = self;
5470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames))
5471 return NULL;
5472 {
5473 wxPy_BEGIN_ALLOW_THREADS;
5474 _result = (wxTreeItemId *)new_wxTreeItemId();
5475
5476 wxPy_END_ALLOW_THREADS;
5477 if (PyErr_Occurred()) return NULL;
5478 } if (_result) {
5479 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
5480 _resultobj = Py_BuildValue("s",_ptemp);
5481 } else {
5482 Py_INCREF(Py_None);
5483 _resultobj = Py_None;
5484 }
5485 return _resultobj;
5486 }
5487
5488 #define delete_wxTreeItemId(_swigobj) (delete _swigobj)
5489 static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
5490 PyObject * _resultobj;
5491 wxTreeItemId * _arg0;
5492 PyObject * _argo0 = 0;
5493 char *_kwnames[] = { "self", NULL };
5494
5495 self = self;
5496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0))
5497 return NULL;
5498 if (_argo0) {
5499 if (_argo0 == Py_None) { _arg0 = NULL; }
5500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
5501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p.");
5502 return NULL;
5503 }
5504 }
5505 {
5506 wxPy_BEGIN_ALLOW_THREADS;
5507 delete_wxTreeItemId(_arg0);
5508
5509 wxPy_END_ALLOW_THREADS;
5510 if (PyErr_Occurred()) return NULL;
5511 } Py_INCREF(Py_None);
5512 _resultobj = Py_None;
5513 return _resultobj;
5514 }
5515
5516 #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk())
5517 static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
5518 PyObject * _resultobj;
5519 bool _result;
5520 wxTreeItemId * _arg0;
5521 PyObject * _argo0 = 0;
5522 char *_kwnames[] = { "self", NULL };
5523
5524 self = self;
5525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0))
5526 return NULL;
5527 if (_argo0) {
5528 if (_argo0 == Py_None) { _arg0 = NULL; }
5529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
5530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p.");
5531 return NULL;
5532 }
5533 }
5534 {
5535 wxPy_BEGIN_ALLOW_THREADS;
5536 _result = (bool )wxTreeItemId_IsOk(_arg0);
5537
5538 wxPy_END_ALLOW_THREADS;
5539 if (PyErr_Occurred()) return NULL;
5540 } _resultobj = Py_BuildValue("i",_result);
5541 return _resultobj;
5542 }
5543
5544 static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) {
5545 if (! other) return -1;
5546 return *self != *other;
5547 }
5548 static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
5549 PyObject * _resultobj;
5550 int _result;
5551 wxTreeItemId * _arg0;
5552 wxTreeItemId * _arg1;
5553 PyObject * _argo0 = 0;
5554 PyObject * _argo1 = 0;
5555 char *_kwnames[] = { "self","other", NULL };
5556
5557 self = self;
5558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1))
5559 return NULL;
5560 if (_argo0) {
5561 if (_argo0 == Py_None) { _arg0 = NULL; }
5562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
5563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
5564 return NULL;
5565 }
5566 }
5567 if (_argo1) {
5568 if (_argo1 == Py_None) { _arg1 = NULL; }
5569 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5570 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
5571 return NULL;
5572 }
5573 }
5574 {
5575 wxPy_BEGIN_ALLOW_THREADS;
5576 _result = (int )wxTreeItemId___cmp__(_arg0,_arg1);
5577
5578 wxPy_END_ALLOW_THREADS;
5579 if (PyErr_Occurred()) return NULL;
5580 } _resultobj = Py_BuildValue("i",_result);
5581 return _resultobj;
5582 }
5583
5584 static void *SwigwxPyTreeItemDataTowxObject(void *ptr) {
5585 wxPyTreeItemData *src;
5586 wxObject *dest;
5587 src = (wxPyTreeItemData *) ptr;
5588 dest = (wxObject *) src;
5589 return (void *) dest;
5590 }
5591
5592 #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0))
5593 static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
5594 PyObject * _resultobj;
5595 wxPyTreeItemData * _result;
5596 PyObject * _arg0 = (PyObject *) NULL;
5597 PyObject * _obj0 = 0;
5598 char *_kwnames[] = { "obj", NULL };
5599 char _ptemp[128];
5600
5601 self = self;
5602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0))
5603 return NULL;
5604 if (_obj0)
5605 {
5606 _arg0 = _obj0;
5607 }
5608 {
5609 wxPy_BEGIN_ALLOW_THREADS;
5610 _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0);
5611
5612 wxPy_END_ALLOW_THREADS;
5613 if (PyErr_Occurred()) return NULL;
5614 } if (_result) {
5615 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
5616 _resultobj = Py_BuildValue("s",_ptemp);
5617 } else {
5618 Py_INCREF(Py_None);
5619 _resultobj = Py_None;
5620 }
5621 return _resultobj;
5622 }
5623
5624 #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData())
5625 static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject * _resultobj;
5627 PyObject * _result;
5628 wxPyTreeItemData * _arg0;
5629 PyObject * _argo0 = 0;
5630 char *_kwnames[] = { "self", NULL };
5631
5632 self = self;
5633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0))
5634 return NULL;
5635 if (_argo0) {
5636 if (_argo0 == Py_None) { _arg0 = NULL; }
5637 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
5638 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p.");
5639 return NULL;
5640 }
5641 }
5642 {
5643 wxPy_BEGIN_ALLOW_THREADS;
5644 _result = (PyObject *)wxTreeItemData_GetData(_arg0);
5645
5646 wxPy_END_ALLOW_THREADS;
5647 if (PyErr_Occurred()) return NULL;
5648 }{
5649 _resultobj = _result;
5650 }
5651 return _resultobj;
5652 }
5653
5654 #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
5655 static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
5656 PyObject * _resultobj;
5657 wxPyTreeItemData * _arg0;
5658 PyObject * _arg1;
5659 PyObject * _argo0 = 0;
5660 PyObject * _obj1 = 0;
5661 char *_kwnames[] = { "self","obj", NULL };
5662
5663 self = self;
5664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1))
5665 return NULL;
5666 if (_argo0) {
5667 if (_argo0 == Py_None) { _arg0 = NULL; }
5668 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
5669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p.");
5670 return NULL;
5671 }
5672 }
5673 {
5674 _arg1 = _obj1;
5675 }
5676 {
5677 wxPy_BEGIN_ALLOW_THREADS;
5678 wxTreeItemData_SetData(_arg0,_arg1);
5679
5680 wxPy_END_ALLOW_THREADS;
5681 if (PyErr_Occurred()) return NULL;
5682 } Py_INCREF(Py_None);
5683 _resultobj = Py_None;
5684 return _resultobj;
5685 }
5686
5687 #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId())
5688 static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
5689 PyObject * _resultobj;
5690 wxTreeItemId * _result;
5691 wxPyTreeItemData * _arg0;
5692 PyObject * _argo0 = 0;
5693 char *_kwnames[] = { "self", NULL };
5694 char _ptemp[128];
5695
5696 self = self;
5697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0))
5698 return NULL;
5699 if (_argo0) {
5700 if (_argo0 == Py_None) { _arg0 = NULL; }
5701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
5702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p.");
5703 return NULL;
5704 }
5705 }
5706 {
5707 wxPy_BEGIN_ALLOW_THREADS;
5708 const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0);
5709 _result = (wxTreeItemId *) &_result_ref;
5710
5711 wxPy_END_ALLOW_THREADS;
5712 if (PyErr_Occurred()) return NULL;
5713 } if (_result) {
5714 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
5715 _resultobj = Py_BuildValue("s",_ptemp);
5716 } else {
5717 Py_INCREF(Py_None);
5718 _resultobj = Py_None;
5719 }
5720 return _resultobj;
5721 }
5722
5723 #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
5724 static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
5725 PyObject * _resultobj;
5726 wxPyTreeItemData * _arg0;
5727 wxTreeItemId * _arg1;
5728 PyObject * _argo0 = 0;
5729 PyObject * _argo1 = 0;
5730 char *_kwnames[] = { "self","id", NULL };
5731
5732 self = self;
5733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1))
5734 return NULL;
5735 if (_argo0) {
5736 if (_argo0 == Py_None) { _arg0 = NULL; }
5737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
5738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p.");
5739 return NULL;
5740 }
5741 }
5742 if (_argo1) {
5743 if (_argo1 == Py_None) { _arg1 = NULL; }
5744 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5745 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p.");
5746 return NULL;
5747 }
5748 }
5749 {
5750 wxPy_BEGIN_ALLOW_THREADS;
5751 wxTreeItemData_SetId(_arg0,*_arg1);
5752
5753 wxPy_END_ALLOW_THREADS;
5754 if (PyErr_Occurred()) return NULL;
5755 } Py_INCREF(Py_None);
5756 _resultobj = Py_None;
5757 return _resultobj;
5758 }
5759
5760 static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) {
5761 wxTreeEvent *src;
5762 wxNotifyEvent *dest;
5763 src = (wxTreeEvent *) ptr;
5764 dest = (wxNotifyEvent *) src;
5765 return (void *) dest;
5766 }
5767
5768 static void *SwigwxTreeEventTowxCommandEvent(void *ptr) {
5769 wxTreeEvent *src;
5770 wxCommandEvent *dest;
5771 src = (wxTreeEvent *) ptr;
5772 dest = (wxCommandEvent *) src;
5773 return (void *) dest;
5774 }
5775
5776 static void *SwigwxTreeEventTowxEvent(void *ptr) {
5777 wxTreeEvent *src;
5778 wxEvent *dest;
5779 src = (wxTreeEvent *) ptr;
5780 dest = (wxEvent *) src;
5781 return (void *) dest;
5782 }
5783
5784 static void *SwigwxTreeEventTowxObject(void *ptr) {
5785 wxTreeEvent *src;
5786 wxObject *dest;
5787 src = (wxTreeEvent *) ptr;
5788 dest = (wxObject *) src;
5789 return (void *) dest;
5790 }
5791
5792 #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1))
5793 static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
5794 PyObject * _resultobj;
5795 wxTreeEvent * _result;
5796 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
5797 int _arg1 = (int ) 0;
5798 char *_kwnames[] = { "commandType","id", NULL };
5799 char _ptemp[128];
5800
5801 self = self;
5802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1))
5803 return NULL;
5804 {
5805 wxPy_BEGIN_ALLOW_THREADS;
5806 _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1);
5807
5808 wxPy_END_ALLOW_THREADS;
5809 if (PyErr_Occurred()) return NULL;
5810 } if (_result) {
5811 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p");
5812 _resultobj = Py_BuildValue("s",_ptemp);
5813 } else {
5814 Py_INCREF(Py_None);
5815 _resultobj = Py_None;
5816 }
5817 return _resultobj;
5818 }
5819
5820 #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem())
5821 static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5822 PyObject * _resultobj;
5823 wxTreeItemId * _result;
5824 wxTreeEvent * _arg0;
5825 PyObject * _argo0 = 0;
5826 char *_kwnames[] = { "self", NULL };
5827 char _ptemp[128];
5828
5829 self = self;
5830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0))
5831 return NULL;
5832 if (_argo0) {
5833 if (_argo0 == Py_None) { _arg0 = NULL; }
5834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
5835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p.");
5836 return NULL;
5837 }
5838 }
5839 {
5840 wxPy_BEGIN_ALLOW_THREADS;
5841 _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0));
5842
5843 wxPy_END_ALLOW_THREADS;
5844 if (PyErr_Occurred()) return NULL;
5845 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
5846 _resultobj = Py_BuildValue("s",_ptemp);
5847 return _resultobj;
5848 }
5849
5850 #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem())
5851 static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5852 PyObject * _resultobj;
5853 wxTreeItemId * _result;
5854 wxTreeEvent * _arg0;
5855 PyObject * _argo0 = 0;
5856 char *_kwnames[] = { "self", NULL };
5857 char _ptemp[128];
5858
5859 self = self;
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0))
5861 return NULL;
5862 if (_argo0) {
5863 if (_argo0 == Py_None) { _arg0 = NULL; }
5864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
5865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p.");
5866 return NULL;
5867 }
5868 }
5869 {
5870 wxPy_BEGIN_ALLOW_THREADS;
5871 _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0));
5872
5873 wxPy_END_ALLOW_THREADS;
5874 if (PyErr_Occurred()) return NULL;
5875 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
5876 _resultobj = Py_BuildValue("s",_ptemp);
5877 return _resultobj;
5878 }
5879
5880 #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
5881 static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5882 PyObject * _resultobj;
5883 wxPoint * _result;
5884 wxTreeEvent * _arg0;
5885 PyObject * _argo0 = 0;
5886 char *_kwnames[] = { "self", NULL };
5887 char _ptemp[128];
5888
5889 self = self;
5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0))
5891 return NULL;
5892 if (_argo0) {
5893 if (_argo0 == Py_None) { _arg0 = NULL; }
5894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
5895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p.");
5896 return NULL;
5897 }
5898 }
5899 {
5900 wxPy_BEGIN_ALLOW_THREADS;
5901 _result = new wxPoint (wxTreeEvent_GetPoint(_arg0));
5902
5903 wxPy_END_ALLOW_THREADS;
5904 if (PyErr_Occurred()) return NULL;
5905 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
5906 _resultobj = Py_BuildValue("s",_ptemp);
5907 return _resultobj;
5908 }
5909
5910 #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode())
5911 static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5912 PyObject * _resultobj;
5913 int _result;
5914 wxTreeEvent * _arg0;
5915 PyObject * _argo0 = 0;
5916 char *_kwnames[] = { "self", NULL };
5917
5918 self = self;
5919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0))
5920 return NULL;
5921 if (_argo0) {
5922 if (_argo0 == Py_None) { _arg0 = NULL; }
5923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
5924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p.");
5925 return NULL;
5926 }
5927 }
5928 {
5929 wxPy_BEGIN_ALLOW_THREADS;
5930 _result = (int )wxTreeEvent_GetCode(_arg0);
5931
5932 wxPy_END_ALLOW_THREADS;
5933 if (PyErr_Occurred()) return NULL;
5934 } _resultobj = Py_BuildValue("i",_result);
5935 return _resultobj;
5936 }
5937
5938 #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
5939 static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5940 PyObject * _resultobj;
5941 wxString * _result;
5942 wxTreeEvent * _arg0;
5943 PyObject * _argo0 = 0;
5944 char *_kwnames[] = { "self", NULL };
5945
5946 self = self;
5947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0))
5948 return NULL;
5949 if (_argo0) {
5950 if (_argo0 == Py_None) { _arg0 = NULL; }
5951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
5952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p.");
5953 return NULL;
5954 }
5955 }
5956 {
5957 wxPy_BEGIN_ALLOW_THREADS;
5958 const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0);
5959 _result = (wxString *) &_result_ref;
5960
5961 wxPy_END_ALLOW_THREADS;
5962 if (PyErr_Occurred()) return NULL;
5963 }{
5964 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5965 }
5966 return _resultobj;
5967 }
5968
5969 static void *SwigwxPyTreeCtrlTowxControl(void *ptr) {
5970 wxPyTreeCtrl *src;
5971 wxControl *dest;
5972 src = (wxPyTreeCtrl *) ptr;
5973 dest = (wxControl *) src;
5974 return (void *) dest;
5975 }
5976
5977 static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) {
5978 wxPyTreeCtrl *src;
5979 wxWindow *dest;
5980 src = (wxPyTreeCtrl *) ptr;
5981 dest = (wxWindow *) src;
5982 return (void *) dest;
5983 }
5984
5985 static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) {
5986 wxPyTreeCtrl *src;
5987 wxEvtHandler *dest;
5988 src = (wxPyTreeCtrl *) ptr;
5989 dest = (wxEvtHandler *) src;
5990 return (void *) dest;
5991 }
5992
5993 static void *SwigwxPyTreeCtrlTowxObject(void *ptr) {
5994 wxPyTreeCtrl *src;
5995 wxObject *dest;
5996 src = (wxPyTreeCtrl *) ptr;
5997 dest = (wxObject *) src;
5998 return (void *) dest;
5999 }
6000
6001 #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6002 static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6003 PyObject * _resultobj;
6004 wxPyTreeCtrl * _result;
6005 wxWindow * _arg0;
6006 wxWindowID _arg1 = (wxWindowID ) -1;
6007 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6008 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6009 long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
6010 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
6011 char * _arg6 = (char *) "wxTreeCtrl";
6012 PyObject * _argo0 = 0;
6013 wxPoint temp;
6014 PyObject * _obj2 = 0;
6015 wxSize temp0;
6016 PyObject * _obj3 = 0;
6017 PyObject * _argo5 = 0;
6018 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
6019 char _ptemp[128];
6020
6021 self = self;
6022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
6023 return NULL;
6024 if (_argo0) {
6025 if (_argo0 == Py_None) { _arg0 = NULL; }
6026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p.");
6028 return NULL;
6029 }
6030 }
6031 if (_obj2)
6032 {
6033 _arg2 = &temp;
6034 if (! wxPoint_helper(_obj2, &_arg2))
6035 return NULL;
6036 }
6037 if (_obj3)
6038 {
6039 _arg3 = &temp0;
6040 if (! wxSize_helper(_obj3, &_arg3))
6041 return NULL;
6042 }
6043 if (_argo5) {
6044 if (_argo5 == Py_None) { _arg5 = NULL; }
6045 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
6046 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p.");
6047 return NULL;
6048 }
6049 }
6050 {
6051 wxPy_BEGIN_ALLOW_THREADS;
6052 _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
6053
6054 wxPy_END_ALLOW_THREADS;
6055 if (PyErr_Occurred()) return NULL;
6056 } if (_result) {
6057 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
6058 _resultobj = Py_BuildValue("s",_ptemp);
6059 } else {
6060 Py_INCREF(Py_None);
6061 _resultobj = Py_None;
6062 }
6063 return _resultobj;
6064 }
6065
6066 #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1))
6067 static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
6068 PyObject * _resultobj;
6069 wxPyTreeCtrl * _arg0;
6070 PyObject * _arg1;
6071 PyObject * _arg2;
6072 PyObject * _argo0 = 0;
6073 PyObject * _obj1 = 0;
6074 PyObject * _obj2 = 0;
6075 char *_kwnames[] = { "self","self","_class", NULL };
6076
6077 self = self;
6078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2))
6079 return NULL;
6080 if (_argo0) {
6081 if (_argo0 == Py_None) { _arg0 = NULL; }
6082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p.");
6084 return NULL;
6085 }
6086 }
6087 {
6088 _arg1 = _obj1;
6089 }
6090 {
6091 _arg2 = _obj2;
6092 }
6093 {
6094 wxPy_BEGIN_ALLOW_THREADS;
6095 wxTreeCtrl__setSelf(_arg0,_arg1,_arg2);
6096
6097 wxPy_END_ALLOW_THREADS;
6098 if (PyErr_Occurred()) return NULL;
6099 } Py_INCREF(Py_None);
6100 _resultobj = Py_None;
6101 return _resultobj;
6102 }
6103
6104 #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount())
6105 static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6106 PyObject * _resultobj;
6107 size_t _result;
6108 wxPyTreeCtrl * _arg0;
6109 PyObject * _argo0 = 0;
6110 char *_kwnames[] = { "self", NULL };
6111
6112 self = self;
6113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0))
6114 return NULL;
6115 if (_argo0) {
6116 if (_argo0 == Py_None) { _arg0 = NULL; }
6117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p.");
6119 return NULL;
6120 }
6121 }
6122 {
6123 wxPy_BEGIN_ALLOW_THREADS;
6124 _result = (size_t )wxTreeCtrl_GetCount(_arg0);
6125
6126 wxPy_END_ALLOW_THREADS;
6127 if (PyErr_Occurred()) return NULL;
6128 } _resultobj = Py_BuildValue("i",_result);
6129 return _resultobj;
6130 }
6131
6132 #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent())
6133 static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6134 PyObject * _resultobj;
6135 unsigned int _result;
6136 wxPyTreeCtrl * _arg0;
6137 PyObject * _argo0 = 0;
6138 char *_kwnames[] = { "self", NULL };
6139
6140 self = self;
6141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0))
6142 return NULL;
6143 if (_argo0) {
6144 if (_argo0 == Py_None) { _arg0 = NULL; }
6145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p.");
6147 return NULL;
6148 }
6149 }
6150 {
6151 wxPy_BEGIN_ALLOW_THREADS;
6152 _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0);
6153
6154 wxPy_END_ALLOW_THREADS;
6155 if (PyErr_Occurred()) return NULL;
6156 } _resultobj = Py_BuildValue("i",_result);
6157 return _resultobj;
6158 }
6159
6160 #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
6161 static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6162 PyObject * _resultobj;
6163 wxPyTreeCtrl * _arg0;
6164 unsigned int _arg1;
6165 PyObject * _argo0 = 0;
6166 char *_kwnames[] = { "self","indent", NULL };
6167
6168 self = self;
6169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1))
6170 return NULL;
6171 if (_argo0) {
6172 if (_argo0 == Py_None) { _arg0 = NULL; }
6173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p.");
6175 return NULL;
6176 }
6177 }
6178 {
6179 wxPy_BEGIN_ALLOW_THREADS;
6180 wxTreeCtrl_SetIndent(_arg0,_arg1);
6181
6182 wxPy_END_ALLOW_THREADS;
6183 if (PyErr_Occurred()) return NULL;
6184 } Py_INCREF(Py_None);
6185 _resultobj = Py_None;
6186 return _resultobj;
6187 }
6188
6189 #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList())
6190 static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6191 PyObject * _resultobj;
6192 wxImageList * _result;
6193 wxPyTreeCtrl * _arg0;
6194 PyObject * _argo0 = 0;
6195 char *_kwnames[] = { "self", NULL };
6196
6197 self = self;
6198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0))
6199 return NULL;
6200 if (_argo0) {
6201 if (_argo0 == Py_None) { _arg0 = NULL; }
6202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p.");
6204 return NULL;
6205 }
6206 }
6207 {
6208 wxPy_BEGIN_ALLOW_THREADS;
6209 _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0);
6210
6211 wxPy_END_ALLOW_THREADS;
6212 if (PyErr_Occurred()) return NULL;
6213 }{ _resultobj = wxPyMake_wxObject(_result); }
6214 return _resultobj;
6215 }
6216
6217 #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList())
6218 static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6219 PyObject * _resultobj;
6220 wxImageList * _result;
6221 wxPyTreeCtrl * _arg0;
6222 PyObject * _argo0 = 0;
6223 char *_kwnames[] = { "self", NULL };
6224
6225 self = self;
6226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0))
6227 return NULL;
6228 if (_argo0) {
6229 if (_argo0 == Py_None) { _arg0 = NULL; }
6230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p.");
6232 return NULL;
6233 }
6234 }
6235 {
6236 wxPy_BEGIN_ALLOW_THREADS;
6237 _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0);
6238
6239 wxPy_END_ALLOW_THREADS;
6240 if (PyErr_Occurred()) return NULL;
6241 }{ _resultobj = wxPyMake_wxObject(_result); }
6242 return _resultobj;
6243 }
6244
6245 #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
6246 static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6247 PyObject * _resultobj;
6248 wxPyTreeCtrl * _arg0;
6249 wxImageList * _arg1;
6250 PyObject * _argo0 = 0;
6251 PyObject * _argo1 = 0;
6252 char *_kwnames[] = { "self","imageList", NULL };
6253
6254 self = self;
6255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1))
6256 return NULL;
6257 if (_argo0) {
6258 if (_argo0 == Py_None) { _arg0 = NULL; }
6259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p.");
6261 return NULL;
6262 }
6263 }
6264 if (_argo1) {
6265 if (_argo1 == Py_None) { _arg1 = NULL; }
6266 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6267 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p.");
6268 return NULL;
6269 }
6270 }
6271 {
6272 wxPy_BEGIN_ALLOW_THREADS;
6273 wxTreeCtrl_SetImageList(_arg0,_arg1);
6274
6275 wxPy_END_ALLOW_THREADS;
6276 if (PyErr_Occurred()) return NULL;
6277 } Py_INCREF(Py_None);
6278 _resultobj = Py_None;
6279 return _resultobj;
6280 }
6281
6282 #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0))
6283 static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6284 PyObject * _resultobj;
6285 wxPyTreeCtrl * _arg0;
6286 wxImageList * _arg1;
6287 PyObject * _argo0 = 0;
6288 PyObject * _argo1 = 0;
6289 char *_kwnames[] = { "self","imageList", NULL };
6290
6291 self = self;
6292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1))
6293 return NULL;
6294 if (_argo0) {
6295 if (_argo0 == Py_None) { _arg0 = NULL; }
6296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p.");
6298 return NULL;
6299 }
6300 }
6301 if (_argo1) {
6302 if (_argo1 == Py_None) { _arg1 = NULL; }
6303 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6304 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p.");
6305 return NULL;
6306 }
6307 }
6308 {
6309 wxPy_BEGIN_ALLOW_THREADS;
6310 wxTreeCtrl_SetStateImageList(_arg0,_arg1);
6311
6312 wxPy_END_ALLOW_THREADS;
6313 if (PyErr_Occurred()) return NULL;
6314 } Py_INCREF(Py_None);
6315 _resultobj = Py_None;
6316 return _resultobj;
6317 }
6318
6319 #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
6320 static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6321 PyObject * _resultobj;
6322 wxPyTreeCtrl * _arg0;
6323 wxImageList * _arg1;
6324 PyObject * _argo0 = 0;
6325 PyObject * _argo1 = 0;
6326 char *_kwnames[] = { "self","imageList", NULL };
6327
6328 self = self;
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1))
6330 return NULL;
6331 if (_argo0) {
6332 if (_argo0 == Py_None) { _arg0 = NULL; }
6333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p.");
6335 return NULL;
6336 }
6337 }
6338 if (_argo1) {
6339 if (_argo1 == Py_None) { _arg1 = NULL; }
6340 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6341 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p.");
6342 return NULL;
6343 }
6344 }
6345 {
6346 wxPy_BEGIN_ALLOW_THREADS;
6347 wxTreeCtrl_AssignImageList(_arg0,_arg1);
6348
6349 wxPy_END_ALLOW_THREADS;
6350 if (PyErr_Occurred()) return NULL;
6351 } Py_INCREF(Py_None);
6352 _resultobj = Py_None;
6353 return _resultobj;
6354 }
6355
6356 #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0))
6357 static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6358 PyObject * _resultobj;
6359 wxPyTreeCtrl * _arg0;
6360 wxImageList * _arg1;
6361 PyObject * _argo0 = 0;
6362 PyObject * _argo1 = 0;
6363 char *_kwnames[] = { "self","imageList", NULL };
6364
6365 self = self;
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1))
6367 return NULL;
6368 if (_argo0) {
6369 if (_argo0 == Py_None) { _arg0 = NULL; }
6370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p.");
6372 return NULL;
6373 }
6374 }
6375 if (_argo1) {
6376 if (_argo1 == Py_None) { _arg1 = NULL; }
6377 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6378 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p.");
6379 return NULL;
6380 }
6381 }
6382 {
6383 wxPy_BEGIN_ALLOW_THREADS;
6384 wxTreeCtrl_AssignStateImageList(_arg0,_arg1);
6385
6386 wxPy_END_ALLOW_THREADS;
6387 if (PyErr_Occurred()) return NULL;
6388 } Py_INCREF(Py_None);
6389 _resultobj = Py_None;
6390 return _resultobj;
6391 }
6392
6393 #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing())
6394 static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
6395 PyObject * _resultobj;
6396 unsigned int _result;
6397 wxPyTreeCtrl * _arg0;
6398 PyObject * _argo0 = 0;
6399 char *_kwnames[] = { "self", NULL };
6400
6401 self = self;
6402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0))
6403 return NULL;
6404 if (_argo0) {
6405 if (_argo0 == Py_None) { _arg0 = NULL; }
6406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p.");
6408 return NULL;
6409 }
6410 }
6411 {
6412 wxPy_BEGIN_ALLOW_THREADS;
6413 _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0);
6414
6415 wxPy_END_ALLOW_THREADS;
6416 if (PyErr_Occurred()) return NULL;
6417 } _resultobj = Py_BuildValue("i",_result);
6418 return _resultobj;
6419 }
6420
6421 #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0))
6422 static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
6423 PyObject * _resultobj;
6424 wxPyTreeCtrl * _arg0;
6425 unsigned int _arg1;
6426 PyObject * _argo0 = 0;
6427 char *_kwnames[] = { "self","spacing", NULL };
6428
6429 self = self;
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1))
6431 return NULL;
6432 if (_argo0) {
6433 if (_argo0 == Py_None) { _arg0 = NULL; }
6434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p.");
6436 return NULL;
6437 }
6438 }
6439 {
6440 wxPy_BEGIN_ALLOW_THREADS;
6441 wxTreeCtrl_SetSpacing(_arg0,_arg1);
6442
6443 wxPy_END_ALLOW_THREADS;
6444 if (PyErr_Occurred()) return NULL;
6445 } Py_INCREF(Py_None);
6446 _resultobj = Py_None;
6447 return _resultobj;
6448 }
6449
6450 #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
6451 static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
6452 PyObject * _resultobj;
6453 wxString * _result;
6454 wxPyTreeCtrl * _arg0;
6455 wxTreeItemId * _arg1;
6456 PyObject * _argo0 = 0;
6457 PyObject * _argo1 = 0;
6458 char *_kwnames[] = { "self","item", NULL };
6459
6460 self = self;
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1))
6462 return NULL;
6463 if (_argo0) {
6464 if (_argo0 == Py_None) { _arg0 = NULL; }
6465 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6466 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p.");
6467 return NULL;
6468 }
6469 }
6470 if (_argo1) {
6471 if (_argo1 == Py_None) { _arg1 = NULL; }
6472 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6473 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p.");
6474 return NULL;
6475 }
6476 }
6477 {
6478 wxPy_BEGIN_ALLOW_THREADS;
6479 _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1));
6480
6481 wxPy_END_ALLOW_THREADS;
6482 if (PyErr_Occurred()) return NULL;
6483 }{
6484 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6485 }
6486 {
6487 delete _result;
6488 }
6489 return _resultobj;
6490 }
6491
6492 #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1))
6493 static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
6494 PyObject * _resultobj;
6495 int _result;
6496 wxPyTreeCtrl * _arg0;
6497 wxTreeItemId * _arg1;
6498 wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
6499 PyObject * _argo0 = 0;
6500 PyObject * _argo1 = 0;
6501 char *_kwnames[] = { "self","item","which", NULL };
6502
6503 self = self;
6504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2))
6505 return NULL;
6506 if (_argo0) {
6507 if (_argo0 == Py_None) { _arg0 = NULL; }
6508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p.");
6510 return NULL;
6511 }
6512 }
6513 if (_argo1) {
6514 if (_argo1 == Py_None) { _arg1 = NULL; }
6515 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6516 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p.");
6517 return NULL;
6518 }
6519 }
6520 {
6521 wxPy_BEGIN_ALLOW_THREADS;
6522 _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2);
6523
6524 wxPy_END_ALLOW_THREADS;
6525 if (PyErr_Occurred()) return NULL;
6526 } _resultobj = Py_BuildValue("i",_result);
6527 return _resultobj;
6528 }
6529
6530 #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0))
6531 static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
6532 PyObject * _resultobj;
6533 int _result;
6534 wxPyTreeCtrl * _arg0;
6535 wxTreeItemId * _arg1;
6536 PyObject * _argo0 = 0;
6537 PyObject * _argo1 = 0;
6538 char *_kwnames[] = { "self","item", NULL };
6539
6540 self = self;
6541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1))
6542 return NULL;
6543 if (_argo0) {
6544 if (_argo0 == Py_None) { _arg0 = NULL; }
6545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
6547 return NULL;
6548 }
6549 }
6550 if (_argo1) {
6551 if (_argo1 == Py_None) { _arg1 = NULL; }
6552 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6553 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p.");
6554 return NULL;
6555 }
6556 }
6557 {
6558 wxPy_BEGIN_ALLOW_THREADS;
6559 _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1);
6560
6561 wxPy_END_ALLOW_THREADS;
6562 if (PyErr_Occurred()) return NULL;
6563 } _resultobj = Py_BuildValue("i",_result);
6564 return _resultobj;
6565 }
6566
6567 #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
6568 static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
6569 PyObject * _resultobj;
6570 wxPyTreeCtrl * _arg0;
6571 wxTreeItemId * _arg1;
6572 wxString * _arg2;
6573 PyObject * _argo0 = 0;
6574 PyObject * _argo1 = 0;
6575 PyObject * _obj2 = 0;
6576 char *_kwnames[] = { "self","item","text", NULL };
6577
6578 self = self;
6579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2))
6580 return NULL;
6581 if (_argo0) {
6582 if (_argo0 == Py_None) { _arg0 = NULL; }
6583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p.");
6585 return NULL;
6586 }
6587 }
6588 if (_argo1) {
6589 if (_argo1 == Py_None) { _arg1 = NULL; }
6590 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6591 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p.");
6592 return NULL;
6593 }
6594 }
6595 {
6596 #if PYTHON_API_VERSION >= 1009
6597 char* tmpPtr; int tmpSize;
6598 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
6599 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6600 return NULL;
6601 }
6602 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
6603 return NULL;
6604 _arg2 = new wxString(tmpPtr, tmpSize);
6605 #else
6606 if (!PyString_Check(_obj2)) {
6607 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6608 return NULL;
6609 }
6610 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
6611 #endif
6612 }
6613 {
6614 wxPy_BEGIN_ALLOW_THREADS;
6615 wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2);
6616
6617 wxPy_END_ALLOW_THREADS;
6618 if (PyErr_Occurred()) return NULL;
6619 } Py_INCREF(Py_None);
6620 _resultobj = Py_None;
6621 {
6622 if (_obj2)
6623 delete _arg2;
6624 }
6625 return _resultobj;
6626 }
6627
6628 #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
6629 static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
6630 PyObject * _resultobj;
6631 wxPyTreeCtrl * _arg0;
6632 wxTreeItemId * _arg1;
6633 int _arg2;
6634 wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
6635 PyObject * _argo0 = 0;
6636 PyObject * _argo1 = 0;
6637 char *_kwnames[] = { "self","item","image","which", NULL };
6638
6639 self = self;
6640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
6641 return NULL;
6642 if (_argo0) {
6643 if (_argo0 == Py_None) { _arg0 = NULL; }
6644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p.");
6646 return NULL;
6647 }
6648 }
6649 if (_argo1) {
6650 if (_argo1 == Py_None) { _arg1 = NULL; }
6651 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6652 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p.");
6653 return NULL;
6654 }
6655 }
6656 {
6657 wxPy_BEGIN_ALLOW_THREADS;
6658 wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3);
6659
6660 wxPy_END_ALLOW_THREADS;
6661 if (PyErr_Occurred()) return NULL;
6662 } Py_INCREF(Py_None);
6663 _resultobj = Py_None;
6664 return _resultobj;
6665 }
6666
6667 #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1))
6668 static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
6669 PyObject * _resultobj;
6670 wxPyTreeCtrl * _arg0;
6671 wxTreeItemId * _arg1;
6672 int _arg2;
6673 PyObject * _argo0 = 0;
6674 PyObject * _argo1 = 0;
6675 char *_kwnames[] = { "self","item","image", NULL };
6676
6677 self = self;
6678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2))
6679 return NULL;
6680 if (_argo0) {
6681 if (_argo0 == Py_None) { _arg0 = NULL; }
6682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
6684 return NULL;
6685 }
6686 }
6687 if (_argo1) {
6688 if (_argo1 == Py_None) { _arg1 = NULL; }
6689 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6690 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p.");
6691 return NULL;
6692 }
6693 }
6694 {
6695 wxPy_BEGIN_ALLOW_THREADS;
6696 wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2);
6697
6698 wxPy_END_ALLOW_THREADS;
6699 if (PyErr_Occurred()) return NULL;
6700 } Py_INCREF(Py_None);
6701 _resultobj = Py_None;
6702 return _resultobj;
6703 }
6704
6705 #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1))
6706 static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
6707 PyObject * _resultobj;
6708 wxPyTreeCtrl * _arg0;
6709 wxTreeItemId * _arg1;
6710 bool _arg2 = (bool ) TRUE;
6711 PyObject * _argo0 = 0;
6712 PyObject * _argo1 = 0;
6713 int tempbool2 = (int) TRUE;
6714 char *_kwnames[] = { "self","item","hasChildren", NULL };
6715
6716 self = self;
6717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2))
6718 return NULL;
6719 if (_argo0) {
6720 if (_argo0 == Py_None) { _arg0 = NULL; }
6721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p.");
6723 return NULL;
6724 }
6725 }
6726 if (_argo1) {
6727 if (_argo1 == Py_None) { _arg1 = NULL; }
6728 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6729 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p.");
6730 return NULL;
6731 }
6732 }
6733 _arg2 = (bool ) tempbool2;
6734 {
6735 wxPy_BEGIN_ALLOW_THREADS;
6736 wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2);
6737
6738 wxPy_END_ALLOW_THREADS;
6739 if (PyErr_Occurred()) return NULL;
6740 } Py_INCREF(Py_None);
6741 _resultobj = Py_None;
6742 return _resultobj;
6743 }
6744
6745 static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
6746 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
6747 if (data == NULL) {
6748 data = new wxPyTreeItemData();
6749 data->SetId(item); // set the id
6750 self->SetItemData(item, data);
6751 }
6752 return data;
6753 }
6754 static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
6755 PyObject * _resultobj;
6756 wxPyTreeItemData * _result;
6757 wxPyTreeCtrl * _arg0;
6758 wxTreeItemId * _arg1;
6759 PyObject * _argo0 = 0;
6760 PyObject * _argo1 = 0;
6761 char *_kwnames[] = { "self","item", NULL };
6762 char _ptemp[128];
6763
6764 self = self;
6765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1))
6766 return NULL;
6767 if (_argo0) {
6768 if (_argo0 == Py_None) { _arg0 = NULL; }
6769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p.");
6771 return NULL;
6772 }
6773 }
6774 if (_argo1) {
6775 if (_argo1 == Py_None) { _arg1 = NULL; }
6776 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6777 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p.");
6778 return NULL;
6779 }
6780 }
6781 {
6782 wxPy_BEGIN_ALLOW_THREADS;
6783 _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1);
6784
6785 wxPy_END_ALLOW_THREADS;
6786 if (PyErr_Occurred()) return NULL;
6787 } if (_result) {
6788 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
6789 _resultobj = Py_BuildValue("s",_ptemp);
6790 } else {
6791 Py_INCREF(Py_None);
6792 _resultobj = Py_None;
6793 }
6794 return _resultobj;
6795 }
6796
6797 static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) {
6798 data->SetId(item); // set the id
6799 self->SetItemData(item, data);
6800 }
6801 static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
6802 PyObject * _resultobj;
6803 wxPyTreeCtrl * _arg0;
6804 wxTreeItemId * _arg1;
6805 wxPyTreeItemData * _arg2;
6806 PyObject * _argo0 = 0;
6807 PyObject * _argo1 = 0;
6808 PyObject * _argo2 = 0;
6809 char *_kwnames[] = { "self","item","data", NULL };
6810
6811 self = self;
6812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2))
6813 return NULL;
6814 if (_argo0) {
6815 if (_argo0 == Py_None) { _arg0 = NULL; }
6816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p.");
6818 return NULL;
6819 }
6820 }
6821 if (_argo1) {
6822 if (_argo1 == Py_None) { _arg1 = NULL; }
6823 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6824 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p.");
6825 return NULL;
6826 }
6827 }
6828 if (_argo2) {
6829 if (_argo2 == Py_None) { _arg2 = NULL; }
6830 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) {
6831 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p.");
6832 return NULL;
6833 }
6834 }
6835 {
6836 wxPy_BEGIN_ALLOW_THREADS;
6837 wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2);
6838
6839 wxPy_END_ALLOW_THREADS;
6840 if (PyErr_Occurred()) return NULL;
6841 } Py_INCREF(Py_None);
6842 _resultobj = Py_None;
6843 return _resultobj;
6844 }
6845
6846 static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
6847 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
6848 if (data == NULL) {
6849 data = new wxPyTreeItemData();
6850 data->SetId(item); // set the id
6851 self->SetItemData(item, data);
6852 }
6853 return data->GetData();
6854 }
6855 static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
6856 PyObject * _resultobj;
6857 PyObject * _result;
6858 wxPyTreeCtrl * _arg0;
6859 wxTreeItemId * _arg1;
6860 PyObject * _argo0 = 0;
6861 PyObject * _argo1 = 0;
6862 char *_kwnames[] = { "self","item", NULL };
6863
6864 self = self;
6865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1))
6866 return NULL;
6867 if (_argo0) {
6868 if (_argo0 == Py_None) { _arg0 = NULL; }
6869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p.");
6871 return NULL;
6872 }
6873 }
6874 if (_argo1) {
6875 if (_argo1 == Py_None) { _arg1 = NULL; }
6876 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6877 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p.");
6878 return NULL;
6879 }
6880 }
6881 {
6882 wxPy_BEGIN_ALLOW_THREADS;
6883 _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1);
6884
6885 wxPy_END_ALLOW_THREADS;
6886 if (PyErr_Occurred()) return NULL;
6887 }{
6888 _resultobj = _result;
6889 }
6890 return _resultobj;
6891 }
6892
6893 static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) {
6894 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
6895 if (data == NULL) {
6896 data = new wxPyTreeItemData(obj);
6897 data->SetId(item); // set the id
6898 self->SetItemData(item, data);
6899 } else
6900 data->SetData(obj);
6901 }
6902 static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
6903 PyObject * _resultobj;
6904 wxPyTreeCtrl * _arg0;
6905 wxTreeItemId * _arg1;
6906 PyObject * _arg2;
6907 PyObject * _argo0 = 0;
6908 PyObject * _argo1 = 0;
6909 PyObject * _obj2 = 0;
6910 char *_kwnames[] = { "self","item","obj", NULL };
6911
6912 self = self;
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2))
6914 return NULL;
6915 if (_argo0) {
6916 if (_argo0 == Py_None) { _arg0 = NULL; }
6917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p.");
6919 return NULL;
6920 }
6921 }
6922 if (_argo1) {
6923 if (_argo1 == Py_None) { _arg1 = NULL; }
6924 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6925 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p.");
6926 return NULL;
6927 }
6928 }
6929 {
6930 _arg2 = _obj2;
6931 }
6932 {
6933 wxPy_BEGIN_ALLOW_THREADS;
6934 wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2);
6935
6936 wxPy_END_ALLOW_THREADS;
6937 if (PyErr_Occurred()) return NULL;
6938 } Py_INCREF(Py_None);
6939 _resultobj = Py_None;
6940 return _resultobj;
6941 }
6942
6943 #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0))
6944 static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
6945 PyObject * _resultobj;
6946 bool _result;
6947 wxPyTreeCtrl * _arg0;
6948 wxTreeItemId * _arg1;
6949 PyObject * _argo0 = 0;
6950 PyObject * _argo1 = 0;
6951 char *_kwnames[] = { "self","item", NULL };
6952
6953 self = self;
6954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1))
6955 return NULL;
6956 if (_argo0) {
6957 if (_argo0 == Py_None) { _arg0 = NULL; }
6958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p.");
6960 return NULL;
6961 }
6962 }
6963 if (_argo1) {
6964 if (_argo1 == Py_None) { _arg1 = NULL; }
6965 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6966 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p.");
6967 return NULL;
6968 }
6969 }
6970 {
6971 wxPy_BEGIN_ALLOW_THREADS;
6972 _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1);
6973
6974 wxPy_END_ALLOW_THREADS;
6975 if (PyErr_Occurred()) return NULL;
6976 } _resultobj = Py_BuildValue("i",_result);
6977 return _resultobj;
6978 }
6979
6980 #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0))
6981 static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
6982 PyObject * _resultobj;
6983 bool _result;
6984 wxPyTreeCtrl * _arg0;
6985 wxTreeItemId * _arg1;
6986 PyObject * _argo0 = 0;
6987 PyObject * _argo1 = 0;
6988 char *_kwnames[] = { "self","item", NULL };
6989
6990 self = self;
6991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1))
6992 return NULL;
6993 if (_argo0) {
6994 if (_argo0 == Py_None) { _arg0 = NULL; }
6995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p.");
6997 return NULL;
6998 }
6999 }
7000 if (_argo1) {
7001 if (_argo1 == Py_None) { _arg1 = NULL; }
7002 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7003 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p.");
7004 return NULL;
7005 }
7006 }
7007 {
7008 wxPy_BEGIN_ALLOW_THREADS;
7009 _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1);
7010
7011 wxPy_END_ALLOW_THREADS;
7012 if (PyErr_Occurred()) return NULL;
7013 } _resultobj = Py_BuildValue("i",_result);
7014 return _resultobj;
7015 }
7016
7017 #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0))
7018 static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
7019 PyObject * _resultobj;
7020 bool _result;
7021 wxPyTreeCtrl * _arg0;
7022 wxTreeItemId * _arg1;
7023 PyObject * _argo0 = 0;
7024 PyObject * _argo1 = 0;
7025 char *_kwnames[] = { "self","item", NULL };
7026
7027 self = self;
7028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1))
7029 return NULL;
7030 if (_argo0) {
7031 if (_argo0 == Py_None) { _arg0 = NULL; }
7032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p.");
7034 return NULL;
7035 }
7036 }
7037 if (_argo1) {
7038 if (_argo1 == Py_None) { _arg1 = NULL; }
7039 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7040 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p.");
7041 return NULL;
7042 }
7043 }
7044 {
7045 wxPy_BEGIN_ALLOW_THREADS;
7046 _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1);
7047
7048 wxPy_END_ALLOW_THREADS;
7049 if (PyErr_Occurred()) return NULL;
7050 } _resultobj = Py_BuildValue("i",_result);
7051 return _resultobj;
7052 }
7053
7054 #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
7055 static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
7056 PyObject * _resultobj;
7057 bool _result;
7058 wxPyTreeCtrl * _arg0;
7059 wxTreeItemId * _arg1;
7060 PyObject * _argo0 = 0;
7061 PyObject * _argo1 = 0;
7062 char *_kwnames[] = { "self","item", NULL };
7063
7064 self = self;
7065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1))
7066 return NULL;
7067 if (_argo0) {
7068 if (_argo0 == Py_None) { _arg0 = NULL; }
7069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p.");
7071 return NULL;
7072 }
7073 }
7074 if (_argo1) {
7075 if (_argo1 == Py_None) { _arg1 = NULL; }
7076 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7077 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p.");
7078 return NULL;
7079 }
7080 }
7081 {
7082 wxPy_BEGIN_ALLOW_THREADS;
7083 _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1);
7084
7085 wxPy_END_ALLOW_THREADS;
7086 if (PyErr_Occurred()) return NULL;
7087 } _resultobj = Py_BuildValue("i",_result);
7088 return _resultobj;
7089 }
7090
7091 #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem())
7092 static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7093 PyObject * _resultobj;
7094 wxTreeItemId * _result;
7095 wxPyTreeCtrl * _arg0;
7096 PyObject * _argo0 = 0;
7097 char *_kwnames[] = { "self", NULL };
7098 char _ptemp[128];
7099
7100 self = self;
7101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0))
7102 return NULL;
7103 if (_argo0) {
7104 if (_argo0 == Py_None) { _arg0 = NULL; }
7105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p.");
7107 return NULL;
7108 }
7109 }
7110 {
7111 wxPy_BEGIN_ALLOW_THREADS;
7112 _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0));
7113
7114 wxPy_END_ALLOW_THREADS;
7115 if (PyErr_Occurred()) return NULL;
7116 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7117 _resultobj = Py_BuildValue("s",_ptemp);
7118 return _resultobj;
7119 }
7120
7121 #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection())
7122 static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7123 PyObject * _resultobj;
7124 wxTreeItemId * _result;
7125 wxPyTreeCtrl * _arg0;
7126 PyObject * _argo0 = 0;
7127 char *_kwnames[] = { "self", NULL };
7128 char _ptemp[128];
7129
7130 self = self;
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0))
7132 return NULL;
7133 if (_argo0) {
7134 if (_argo0 == Py_None) { _arg0 = NULL; }
7135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p.");
7137 return NULL;
7138 }
7139 }
7140 {
7141 wxPy_BEGIN_ALLOW_THREADS;
7142 _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0));
7143
7144 wxPy_END_ALLOW_THREADS;
7145 if (PyErr_Occurred()) return NULL;
7146 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7147 _resultobj = Py_BuildValue("s",_ptemp);
7148 return _resultobj;
7149 }
7150
7151 #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0))
7152 static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7153 PyObject * _resultobj;
7154 wxTreeItemId * _result;
7155 wxPyTreeCtrl * _arg0;
7156 wxTreeItemId * _arg1;
7157 PyObject * _argo0 = 0;
7158 PyObject * _argo1 = 0;
7159 char *_kwnames[] = { "self","item", NULL };
7160 char _ptemp[128];
7161
7162 self = self;
7163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1))
7164 return NULL;
7165 if (_argo0) {
7166 if (_argo0 == Py_None) { _arg0 = NULL; }
7167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p.");
7169 return NULL;
7170 }
7171 }
7172 if (_argo1) {
7173 if (_argo1 == Py_None) { _arg1 = NULL; }
7174 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7175 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p.");
7176 return NULL;
7177 }
7178 }
7179 {
7180 wxPy_BEGIN_ALLOW_THREADS;
7181 _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1));
7182
7183 wxPy_END_ALLOW_THREADS;
7184 if (PyErr_Occurred()) return NULL;
7185 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7186 _resultobj = Py_BuildValue("s",_ptemp);
7187 return _resultobj;
7188 }
7189
7190 static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) {
7191 bool doSave = wxPyRestoreThread();
7192 PyObject* rval = PyList_New(0);
7193 wxArrayTreeItemIds array;
7194 size_t num, x;
7195 num = self->GetSelections(array);
7196 for (x=0; x < num; x++) {
7197 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
7198 PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE);
7199 PyList_Append(rval, item);
7200 }
7201 wxPySaveThread(doSave);
7202 return rval;
7203 }
7204 static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
7205 PyObject * _resultobj;
7206 PyObject * _result;
7207 wxPyTreeCtrl * _arg0;
7208 PyObject * _argo0 = 0;
7209 char *_kwnames[] = { "self", NULL };
7210
7211 self = self;
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0))
7213 return NULL;
7214 if (_argo0) {
7215 if (_argo0 == Py_None) { _arg0 = NULL; }
7216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p.");
7218 return NULL;
7219 }
7220 }
7221 {
7222 wxPy_BEGIN_ALLOW_THREADS;
7223 _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0);
7224
7225 wxPy_END_ALLOW_THREADS;
7226 if (PyErr_Occurred()) return NULL;
7227 }{
7228 _resultobj = _result;
7229 }
7230 return _resultobj;
7231 }
7232
7233 #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1))
7234 static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject * _resultobj;
7236 size_t _result;
7237 wxPyTreeCtrl * _arg0;
7238 wxTreeItemId * _arg1;
7239 bool _arg2 = (bool ) TRUE;
7240 PyObject * _argo0 = 0;
7241 PyObject * _argo1 = 0;
7242 int tempbool2 = (int) TRUE;
7243 char *_kwnames[] = { "self","item","recursively", NULL };
7244
7245 self = self;
7246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2))
7247 return NULL;
7248 if (_argo0) {
7249 if (_argo0 == Py_None) { _arg0 = NULL; }
7250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p.");
7252 return NULL;
7253 }
7254 }
7255 if (_argo1) {
7256 if (_argo1 == Py_None) { _arg1 = NULL; }
7257 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7258 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p.");
7259 return NULL;
7260 }
7261 }
7262 _arg2 = (bool ) tempbool2;
7263 {
7264 wxPy_BEGIN_ALLOW_THREADS;
7265 _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2);
7266
7267 wxPy_END_ALLOW_THREADS;
7268 if (PyErr_Occurred()) return NULL;
7269 } _resultobj = Py_BuildValue("i",_result);
7270 return _resultobj;
7271 }
7272
7273 #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1))
7274 static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
7275 PyObject * _resultobj;
7276 wxTreeItemId * _result;
7277 wxPyTreeCtrl * _arg0;
7278 wxTreeItemId * _arg1;
7279 long * _arg2;
7280 PyObject * _argo0 = 0;
7281 PyObject * _argo1 = 0;
7282 long temp;
7283 PyObject * _obj2 = 0;
7284 char *_kwnames[] = { "self","item","INOUT", NULL };
7285 char _ptemp[128];
7286
7287 self = self;
7288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2))
7289 return NULL;
7290 if (_argo0) {
7291 if (_argo0 == Py_None) { _arg0 = NULL; }
7292 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7293 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p.");
7294 return NULL;
7295 }
7296 }
7297 if (_argo1) {
7298 if (_argo1 == Py_None) { _arg1 = NULL; }
7299 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7300 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p.");
7301 return NULL;
7302 }
7303 }
7304 {
7305 temp = (long) PyInt_AsLong(_obj2);
7306 _arg2 = &temp;
7307 }
7308 {
7309 wxPy_BEGIN_ALLOW_THREADS;
7310 _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2));
7311
7312 wxPy_END_ALLOW_THREADS;
7313 if (PyErr_Occurred()) return NULL;
7314 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7315 _resultobj = Py_BuildValue("s",_ptemp);
7316 {
7317 PyObject *o;
7318 o = PyInt_FromLong((long) (*_arg2));
7319 _resultobj = t_output_helper(_resultobj, o);
7320 }
7321 return _resultobj;
7322 }
7323
7324 #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1))
7325 static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
7326 PyObject * _resultobj;
7327 wxTreeItemId * _result;
7328 wxPyTreeCtrl * _arg0;
7329 wxTreeItemId * _arg1;
7330 long * _arg2;
7331 PyObject * _argo0 = 0;
7332 PyObject * _argo1 = 0;
7333 long temp;
7334 PyObject * _obj2 = 0;
7335 char *_kwnames[] = { "self","item","INOUT", NULL };
7336 char _ptemp[128];
7337
7338 self = self;
7339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2))
7340 return NULL;
7341 if (_argo0) {
7342 if (_argo0 == Py_None) { _arg0 = NULL; }
7343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p.");
7345 return NULL;
7346 }
7347 }
7348 if (_argo1) {
7349 if (_argo1 == Py_None) { _arg1 = NULL; }
7350 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7351 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p.");
7352 return NULL;
7353 }
7354 }
7355 {
7356 temp = (long) PyInt_AsLong(_obj2);
7357 _arg2 = &temp;
7358 }
7359 {
7360 wxPy_BEGIN_ALLOW_THREADS;
7361 _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2));
7362
7363 wxPy_END_ALLOW_THREADS;
7364 if (PyErr_Occurred()) return NULL;
7365 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7366 _resultobj = Py_BuildValue("s",_ptemp);
7367 {
7368 PyObject *o;
7369 o = PyInt_FromLong((long) (*_arg2));
7370 _resultobj = t_output_helper(_resultobj, o);
7371 }
7372 return _resultobj;
7373 }
7374
7375 #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0))
7376 static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
7377 PyObject * _resultobj;
7378 wxTreeItemId * _result;
7379 wxPyTreeCtrl * _arg0;
7380 wxTreeItemId * _arg1;
7381 PyObject * _argo0 = 0;
7382 PyObject * _argo1 = 0;
7383 char *_kwnames[] = { "self","item", NULL };
7384 char _ptemp[128];
7385
7386 self = self;
7387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1))
7388 return NULL;
7389 if (_argo0) {
7390 if (_argo0 == Py_None) { _arg0 = NULL; }
7391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p.");
7393 return NULL;
7394 }
7395 }
7396 if (_argo1) {
7397 if (_argo1 == Py_None) { _arg1 = NULL; }
7398 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7399 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p.");
7400 return NULL;
7401 }
7402 }
7403 {
7404 wxPy_BEGIN_ALLOW_THREADS;
7405 _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1));
7406
7407 wxPy_END_ALLOW_THREADS;
7408 if (PyErr_Occurred()) return NULL;
7409 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7410 _resultobj = Py_BuildValue("s",_ptemp);
7411 return _resultobj;
7412 }
7413
7414 #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0))
7415 static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
7416 PyObject * _resultobj;
7417 wxTreeItemId * _result;
7418 wxPyTreeCtrl * _arg0;
7419 wxTreeItemId * _arg1;
7420 PyObject * _argo0 = 0;
7421 PyObject * _argo1 = 0;
7422 char *_kwnames[] = { "self","item", NULL };
7423 char _ptemp[128];
7424
7425 self = self;
7426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1))
7427 return NULL;
7428 if (_argo0) {
7429 if (_argo0 == Py_None) { _arg0 = NULL; }
7430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p.");
7432 return NULL;
7433 }
7434 }
7435 if (_argo1) {
7436 if (_argo1 == Py_None) { _arg1 = NULL; }
7437 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7438 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p.");
7439 return NULL;
7440 }
7441 }
7442 {
7443 wxPy_BEGIN_ALLOW_THREADS;
7444 _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1));
7445
7446 wxPy_END_ALLOW_THREADS;
7447 if (PyErr_Occurred()) return NULL;
7448 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7449 _resultobj = Py_BuildValue("s",_ptemp);
7450 return _resultobj;
7451 }
7452
7453 #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem())
7454 static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7455 PyObject * _resultobj;
7456 wxTreeItemId * _result;
7457 wxPyTreeCtrl * _arg0;
7458 PyObject * _argo0 = 0;
7459 char *_kwnames[] = { "self", NULL };
7460 char _ptemp[128];
7461
7462 self = self;
7463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0))
7464 return NULL;
7465 if (_argo0) {
7466 if (_argo0 == Py_None) { _arg0 = NULL; }
7467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p.");
7469 return NULL;
7470 }
7471 }
7472 {
7473 wxPy_BEGIN_ALLOW_THREADS;
7474 _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0));
7475
7476 wxPy_END_ALLOW_THREADS;
7477 if (PyErr_Occurred()) return NULL;
7478 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7479 _resultobj = Py_BuildValue("s",_ptemp);
7480 return _resultobj;
7481 }
7482
7483 #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0))
7484 static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
7485 PyObject * _resultobj;
7486 wxTreeItemId * _result;
7487 wxPyTreeCtrl * _arg0;
7488 wxTreeItemId * _arg1;
7489 PyObject * _argo0 = 0;
7490 PyObject * _argo1 = 0;
7491 char *_kwnames[] = { "self","item", NULL };
7492 char _ptemp[128];
7493
7494 self = self;
7495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1))
7496 return NULL;
7497 if (_argo0) {
7498 if (_argo0 == Py_None) { _arg0 = NULL; }
7499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p.");
7501 return NULL;
7502 }
7503 }
7504 if (_argo1) {
7505 if (_argo1 == Py_None) { _arg1 = NULL; }
7506 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7507 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p.");
7508 return NULL;
7509 }
7510 }
7511 {
7512 wxPy_BEGIN_ALLOW_THREADS;
7513 _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1));
7514
7515 wxPy_END_ALLOW_THREADS;
7516 if (PyErr_Occurred()) return NULL;
7517 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7518 _resultobj = Py_BuildValue("s",_ptemp);
7519 return _resultobj;
7520 }
7521
7522 #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0))
7523 static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
7524 PyObject * _resultobj;
7525 wxTreeItemId * _result;
7526 wxPyTreeCtrl * _arg0;
7527 wxTreeItemId * _arg1;
7528 PyObject * _argo0 = 0;
7529 PyObject * _argo1 = 0;
7530 char *_kwnames[] = { "self","item", NULL };
7531 char _ptemp[128];
7532
7533 self = self;
7534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1))
7535 return NULL;
7536 if (_argo0) {
7537 if (_argo0 == Py_None) { _arg0 = NULL; }
7538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p.");
7540 return NULL;
7541 }
7542 }
7543 if (_argo1) {
7544 if (_argo1 == Py_None) { _arg1 = NULL; }
7545 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7546 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p.");
7547 return NULL;
7548 }
7549 }
7550 {
7551 wxPy_BEGIN_ALLOW_THREADS;
7552 _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1));
7553
7554 wxPy_END_ALLOW_THREADS;
7555 if (PyErr_Occurred()) return NULL;
7556 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7557 _resultobj = Py_BuildValue("s",_ptemp);
7558 return _resultobj;
7559 }
7560
7561 #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0))
7562 static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
7563 PyObject * _resultobj;
7564 wxTreeItemId * _result;
7565 wxPyTreeCtrl * _arg0;
7566 wxTreeItemId * _arg1;
7567 PyObject * _argo0 = 0;
7568 PyObject * _argo1 = 0;
7569 char *_kwnames[] = { "self","item", NULL };
7570 char _ptemp[128];
7571
7572 self = self;
7573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1))
7574 return NULL;
7575 if (_argo0) {
7576 if (_argo0 == Py_None) { _arg0 = NULL; }
7577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p.");
7579 return NULL;
7580 }
7581 }
7582 if (_argo1) {
7583 if (_argo1 == Py_None) { _arg1 = NULL; }
7584 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7585 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p.");
7586 return NULL;
7587 }
7588 }
7589 {
7590 wxPy_BEGIN_ALLOW_THREADS;
7591 _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1));
7592
7593 wxPy_END_ALLOW_THREADS;
7594 if (PyErr_Occurred()) return NULL;
7595 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7596 _resultobj = Py_BuildValue("s",_ptemp);
7597 return _resultobj;
7598 }
7599
7600 #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7601 static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
7602 PyObject * _resultobj;
7603 wxTreeItemId * _result;
7604 wxPyTreeCtrl * _arg0;
7605 wxString * _arg1;
7606 int _arg2 = (int ) -1;
7607 int _arg3 = (int ) -1;
7608 wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL;
7609 PyObject * _argo0 = 0;
7610 PyObject * _obj1 = 0;
7611 PyObject * _argo4 = 0;
7612 char *_kwnames[] = { "self","text","image","selectedImage","data", NULL };
7613 char _ptemp[128];
7614
7615 self = self;
7616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4))
7617 return NULL;
7618 if (_argo0) {
7619 if (_argo0 == Py_None) { _arg0 = NULL; }
7620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p.");
7622 return NULL;
7623 }
7624 }
7625 {
7626 #if PYTHON_API_VERSION >= 1009
7627 char* tmpPtr; int tmpSize;
7628 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7630 return NULL;
7631 }
7632 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7633 return NULL;
7634 _arg1 = new wxString(tmpPtr, tmpSize);
7635 #else
7636 if (!PyString_Check(_obj1)) {
7637 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7638 return NULL;
7639 }
7640 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7641 #endif
7642 }
7643 if (_argo4) {
7644 if (_argo4 == Py_None) { _arg4 = NULL; }
7645 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) {
7646 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p.");
7647 return NULL;
7648 }
7649 }
7650 {
7651 wxPy_BEGIN_ALLOW_THREADS;
7652 _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4));
7653
7654 wxPy_END_ALLOW_THREADS;
7655 if (PyErr_Occurred()) return NULL;
7656 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7657 _resultobj = Py_BuildValue("s",_ptemp);
7658 {
7659 if (_obj1)
7660 delete _arg1;
7661 }
7662 return _resultobj;
7663 }
7664
7665 #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7666 static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7667 PyObject * _resultobj;
7668 wxTreeItemId * _result;
7669 wxPyTreeCtrl * _arg0;
7670 wxTreeItemId * _arg1;
7671 wxString * _arg2;
7672 int _arg3 = (int ) -1;
7673 int _arg4 = (int ) -1;
7674 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
7675 PyObject * _argo0 = 0;
7676 PyObject * _argo1 = 0;
7677 PyObject * _obj2 = 0;
7678 PyObject * _argo5 = 0;
7679 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
7680 char _ptemp[128];
7681
7682 self = self;
7683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
7684 return NULL;
7685 if (_argo0) {
7686 if (_argo0 == Py_None) { _arg0 = NULL; }
7687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p.");
7689 return NULL;
7690 }
7691 }
7692 if (_argo1) {
7693 if (_argo1 == Py_None) { _arg1 = NULL; }
7694 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7695 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p.");
7696 return NULL;
7697 }
7698 }
7699 {
7700 #if PYTHON_API_VERSION >= 1009
7701 char* tmpPtr; int tmpSize;
7702 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7703 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7704 return NULL;
7705 }
7706 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7707 return NULL;
7708 _arg2 = new wxString(tmpPtr, tmpSize);
7709 #else
7710 if (!PyString_Check(_obj2)) {
7711 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7712 return NULL;
7713 }
7714 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7715 #endif
7716 }
7717 if (_argo5) {
7718 if (_argo5 == Py_None) { _arg5 = NULL; }
7719 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
7720 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p.");
7721 return NULL;
7722 }
7723 }
7724 {
7725 wxPy_BEGIN_ALLOW_THREADS;
7726 _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
7727
7728 wxPy_END_ALLOW_THREADS;
7729 if (PyErr_Occurred()) return NULL;
7730 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7731 _resultobj = Py_BuildValue("s",_ptemp);
7732 {
7733 if (_obj2)
7734 delete _arg2;
7735 }
7736 return _resultobj;
7737 }
7738
7739 #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7740 static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7741 PyObject * _resultobj;
7742 wxTreeItemId * _result;
7743 wxPyTreeCtrl * _arg0;
7744 wxTreeItemId * _arg1;
7745 wxTreeItemId * _arg2;
7746 wxString * _arg3;
7747 int _arg4 = (int ) -1;
7748 int _arg5 = (int ) -1;
7749 wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
7750 PyObject * _argo0 = 0;
7751 PyObject * _argo1 = 0;
7752 PyObject * _argo2 = 0;
7753 PyObject * _obj3 = 0;
7754 PyObject * _argo6 = 0;
7755 char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL };
7756 char _ptemp[128];
7757
7758 self = self;
7759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6))
7760 return NULL;
7761 if (_argo0) {
7762 if (_argo0 == Py_None) { _arg0 = NULL; }
7763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p.");
7765 return NULL;
7766 }
7767 }
7768 if (_argo1) {
7769 if (_argo1 == Py_None) { _arg1 = NULL; }
7770 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7771 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
7772 return NULL;
7773 }
7774 }
7775 if (_argo2) {
7776 if (_argo2 == Py_None) { _arg2 = NULL; }
7777 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) {
7778 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
7779 return NULL;
7780 }
7781 }
7782 {
7783 #if PYTHON_API_VERSION >= 1009
7784 char* tmpPtr; int tmpSize;
7785 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
7786 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7787 return NULL;
7788 }
7789 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
7790 return NULL;
7791 _arg3 = new wxString(tmpPtr, tmpSize);
7792 #else
7793 if (!PyString_Check(_obj3)) {
7794 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7795 return NULL;
7796 }
7797 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
7798 #endif
7799 }
7800 if (_argo6) {
7801 if (_argo6 == Py_None) { _arg6 = NULL; }
7802 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
7803 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p.");
7804 return NULL;
7805 }
7806 }
7807 {
7808 wxPy_BEGIN_ALLOW_THREADS;
7809 _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6));
7810
7811 wxPy_END_ALLOW_THREADS;
7812 if (PyErr_Occurred()) return NULL;
7813 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7814 _resultobj = Py_BuildValue("s",_ptemp);
7815 {
7816 if (_obj3)
7817 delete _arg3;
7818 }
7819 return _resultobj;
7820 }
7821
7822 #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7823 static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
7824 PyObject * _resultobj;
7825 wxTreeItemId * _result;
7826 wxPyTreeCtrl * _arg0;
7827 wxTreeItemId * _arg1;
7828 size_t _arg2;
7829 wxString * _arg3;
7830 int _arg4 = (int ) -1;
7831 int _arg5 = (int ) -1;
7832 wxTreeItemData * _arg6 = (wxTreeItemData *) NULL;
7833 PyObject * _argo0 = 0;
7834 PyObject * _argo1 = 0;
7835 PyObject * _obj3 = 0;
7836 PyObject * _argo6 = 0;
7837 char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL };
7838 char _ptemp[128];
7839
7840 self = self;
7841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6))
7842 return NULL;
7843 if (_argo0) {
7844 if (_argo0 == Py_None) { _arg0 = NULL; }
7845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p.");
7847 return NULL;
7848 }
7849 }
7850 if (_argo1) {
7851 if (_argo1 == Py_None) { _arg1 = NULL; }
7852 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7853 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p.");
7854 return NULL;
7855 }
7856 }
7857 {
7858 #if PYTHON_API_VERSION >= 1009
7859 char* tmpPtr; int tmpSize;
7860 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
7861 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7862 return NULL;
7863 }
7864 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
7865 return NULL;
7866 _arg3 = new wxString(tmpPtr, tmpSize);
7867 #else
7868 if (!PyString_Check(_obj3)) {
7869 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7870 return NULL;
7871 }
7872 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
7873 #endif
7874 }
7875 if (_argo6) {
7876 if (_argo6 == Py_None) { _arg6 = NULL; }
7877 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) {
7878 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p.");
7879 return NULL;
7880 }
7881 }
7882 {
7883 wxPy_BEGIN_ALLOW_THREADS;
7884 _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6));
7885
7886 wxPy_END_ALLOW_THREADS;
7887 if (PyErr_Occurred()) return NULL;
7888 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7889 _resultobj = Py_BuildValue("s",_ptemp);
7890 {
7891 if (_obj3)
7892 delete _arg3;
7893 }
7894 return _resultobj;
7895 }
7896
7897 #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7898 static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7899 PyObject * _resultobj;
7900 wxTreeItemId * _result;
7901 wxPyTreeCtrl * _arg0;
7902 wxTreeItemId * _arg1;
7903 wxString * _arg2;
7904 int _arg3 = (int ) -1;
7905 int _arg4 = (int ) -1;
7906 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
7907 PyObject * _argo0 = 0;
7908 PyObject * _argo1 = 0;
7909 PyObject * _obj2 = 0;
7910 PyObject * _argo5 = 0;
7911 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
7912 char _ptemp[128];
7913
7914 self = self;
7915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
7916 return NULL;
7917 if (_argo0) {
7918 if (_argo0 == Py_None) { _arg0 = NULL; }
7919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p.");
7921 return NULL;
7922 }
7923 }
7924 if (_argo1) {
7925 if (_argo1 == Py_None) { _arg1 = NULL; }
7926 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7927 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p.");
7928 return NULL;
7929 }
7930 }
7931 {
7932 #if PYTHON_API_VERSION >= 1009
7933 char* tmpPtr; int tmpSize;
7934 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7935 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7936 return NULL;
7937 }
7938 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7939 return NULL;
7940 _arg2 = new wxString(tmpPtr, tmpSize);
7941 #else
7942 if (!PyString_Check(_obj2)) {
7943 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7944 return NULL;
7945 }
7946 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7947 #endif
7948 }
7949 if (_argo5) {
7950 if (_argo5 == Py_None) { _arg5 = NULL; }
7951 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
7952 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p.");
7953 return NULL;
7954 }
7955 }
7956 {
7957 wxPy_BEGIN_ALLOW_THREADS;
7958 _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
7959
7960 wxPy_END_ALLOW_THREADS;
7961 if (PyErr_Occurred()) return NULL;
7962 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7963 _resultobj = Py_BuildValue("s",_ptemp);
7964 {
7965 if (_obj2)
7966 delete _arg2;
7967 }
7968 return _resultobj;
7969 }
7970
7971 #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7972 static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
7973 PyObject * _resultobj;
7974 wxPyTreeCtrl * _arg0;
7975 wxTreeItemId * _arg1;
7976 PyObject * _argo0 = 0;
7977 PyObject * _argo1 = 0;
7978 char *_kwnames[] = { "self","item", NULL };
7979
7980 self = self;
7981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1))
7982 return NULL;
7983 if (_argo0) {
7984 if (_argo0 == Py_None) { _arg0 = NULL; }
7985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p.");
7987 return NULL;
7988 }
7989 }
7990 if (_argo1) {
7991 if (_argo1 == Py_None) { _arg1 = NULL; }
7992 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7993 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p.");
7994 return NULL;
7995 }
7996 }
7997 {
7998 wxPy_BEGIN_ALLOW_THREADS;
7999 wxTreeCtrl_Delete(_arg0,*_arg1);
8000
8001 wxPy_END_ALLOW_THREADS;
8002 if (PyErr_Occurred()) return NULL;
8003 } Py_INCREF(Py_None);
8004 _resultobj = Py_None;
8005 return _resultobj;
8006 }
8007
8008 #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0))
8009 static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
8010 PyObject * _resultobj;
8011 wxPyTreeCtrl * _arg0;
8012 wxTreeItemId * _arg1;
8013 PyObject * _argo0 = 0;
8014 PyObject * _argo1 = 0;
8015 char *_kwnames[] = { "self","item", NULL };
8016
8017 self = self;
8018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1))
8019 return NULL;
8020 if (_argo0) {
8021 if (_argo0 == Py_None) { _arg0 = NULL; }
8022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p.");
8024 return NULL;
8025 }
8026 }
8027 if (_argo1) {
8028 if (_argo1 == Py_None) { _arg1 = NULL; }
8029 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8030 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p.");
8031 return NULL;
8032 }
8033 }
8034 {
8035 wxPy_BEGIN_ALLOW_THREADS;
8036 wxTreeCtrl_DeleteChildren(_arg0,*_arg1);
8037
8038 wxPy_END_ALLOW_THREADS;
8039 if (PyErr_Occurred()) return NULL;
8040 } Py_INCREF(Py_None);
8041 _resultobj = Py_None;
8042 return _resultobj;
8043 }
8044
8045 #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
8046 static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
8047 PyObject * _resultobj;
8048 wxPyTreeCtrl * _arg0;
8049 PyObject * _argo0 = 0;
8050 char *_kwnames[] = { "self", NULL };
8051
8052 self = self;
8053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0))
8054 return NULL;
8055 if (_argo0) {
8056 if (_argo0 == Py_None) { _arg0 = NULL; }
8057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p.");
8059 return NULL;
8060 }
8061 }
8062 {
8063 wxPy_BEGIN_ALLOW_THREADS;
8064 wxTreeCtrl_DeleteAllItems(_arg0);
8065
8066 wxPy_END_ALLOW_THREADS;
8067 if (PyErr_Occurred()) return NULL;
8068 } Py_INCREF(Py_None);
8069 _resultobj = Py_None;
8070 return _resultobj;
8071 }
8072
8073 #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0))
8074 static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
8075 PyObject * _resultobj;
8076 wxPyTreeCtrl * _arg0;
8077 wxTreeItemId * _arg1;
8078 PyObject * _argo0 = 0;
8079 PyObject * _argo1 = 0;
8080 char *_kwnames[] = { "self","item", NULL };
8081
8082 self = self;
8083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1))
8084 return NULL;
8085 if (_argo0) {
8086 if (_argo0 == Py_None) { _arg0 = NULL; }
8087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p.");
8089 return NULL;
8090 }
8091 }
8092 if (_argo1) {
8093 if (_argo1 == Py_None) { _arg1 = NULL; }
8094 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8095 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p.");
8096 return NULL;
8097 }
8098 }
8099 {
8100 wxPy_BEGIN_ALLOW_THREADS;
8101 wxTreeCtrl_Expand(_arg0,*_arg1);
8102
8103 wxPy_END_ALLOW_THREADS;
8104 if (PyErr_Occurred()) return NULL;
8105 } Py_INCREF(Py_None);
8106 _resultobj = Py_None;
8107 return _resultobj;
8108 }
8109
8110 #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0))
8111 static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
8112 PyObject * _resultobj;
8113 wxPyTreeCtrl * _arg0;
8114 wxTreeItemId * _arg1;
8115 PyObject * _argo0 = 0;
8116 PyObject * _argo1 = 0;
8117 char *_kwnames[] = { "self","item", NULL };
8118
8119 self = self;
8120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1))
8121 return NULL;
8122 if (_argo0) {
8123 if (_argo0 == Py_None) { _arg0 = NULL; }
8124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p.");
8126 return NULL;
8127 }
8128 }
8129 if (_argo1) {
8130 if (_argo1 == Py_None) { _arg1 = NULL; }
8131 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8132 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p.");
8133 return NULL;
8134 }
8135 }
8136 {
8137 wxPy_BEGIN_ALLOW_THREADS;
8138 wxTreeCtrl_Collapse(_arg0,*_arg1);
8139
8140 wxPy_END_ALLOW_THREADS;
8141 if (PyErr_Occurred()) return NULL;
8142 } Py_INCREF(Py_None);
8143 _resultobj = Py_None;
8144 return _resultobj;
8145 }
8146
8147 #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0))
8148 static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
8149 PyObject * _resultobj;
8150 wxPyTreeCtrl * _arg0;
8151 wxTreeItemId * _arg1;
8152 PyObject * _argo0 = 0;
8153 PyObject * _argo1 = 0;
8154 char *_kwnames[] = { "self","item", NULL };
8155
8156 self = self;
8157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1))
8158 return NULL;
8159 if (_argo0) {
8160 if (_argo0 == Py_None) { _arg0 = NULL; }
8161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p.");
8163 return NULL;
8164 }
8165 }
8166 if (_argo1) {
8167 if (_argo1 == Py_None) { _arg1 = NULL; }
8168 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8169 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p.");
8170 return NULL;
8171 }
8172 }
8173 {
8174 wxPy_BEGIN_ALLOW_THREADS;
8175 wxTreeCtrl_CollapseAndReset(_arg0,*_arg1);
8176
8177 wxPy_END_ALLOW_THREADS;
8178 if (PyErr_Occurred()) return NULL;
8179 } Py_INCREF(Py_None);
8180 _resultobj = Py_None;
8181 return _resultobj;
8182 }
8183
8184 #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
8185 static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
8186 PyObject * _resultobj;
8187 wxPyTreeCtrl * _arg0;
8188 wxTreeItemId * _arg1;
8189 PyObject * _argo0 = 0;
8190 PyObject * _argo1 = 0;
8191 char *_kwnames[] = { "self","item", NULL };
8192
8193 self = self;
8194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1))
8195 return NULL;
8196 if (_argo0) {
8197 if (_argo0 == Py_None) { _arg0 = NULL; }
8198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p.");
8200 return NULL;
8201 }
8202 }
8203 if (_argo1) {
8204 if (_argo1 == Py_None) { _arg1 = NULL; }
8205 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8206 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p.");
8207 return NULL;
8208 }
8209 }
8210 {
8211 wxPy_BEGIN_ALLOW_THREADS;
8212 wxTreeCtrl_Toggle(_arg0,*_arg1);
8213
8214 wxPy_END_ALLOW_THREADS;
8215 if (PyErr_Occurred()) return NULL;
8216 } Py_INCREF(Py_None);
8217 _resultobj = Py_None;
8218 return _resultobj;
8219 }
8220
8221 #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect())
8222 static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
8223 PyObject * _resultobj;
8224 wxPyTreeCtrl * _arg0;
8225 PyObject * _argo0 = 0;
8226 char *_kwnames[] = { "self", NULL };
8227
8228 self = self;
8229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0))
8230 return NULL;
8231 if (_argo0) {
8232 if (_argo0 == Py_None) { _arg0 = NULL; }
8233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p.");
8235 return NULL;
8236 }
8237 }
8238 {
8239 wxPy_BEGIN_ALLOW_THREADS;
8240 wxTreeCtrl_Unselect(_arg0);
8241
8242 wxPy_END_ALLOW_THREADS;
8243 if (PyErr_Occurred()) return NULL;
8244 } Py_INCREF(Py_None);
8245 _resultobj = Py_None;
8246 return _resultobj;
8247 }
8248
8249 #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll())
8250 static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8251 PyObject * _resultobj;
8252 wxPyTreeCtrl * _arg0;
8253 PyObject * _argo0 = 0;
8254 char *_kwnames[] = { "self", NULL };
8255
8256 self = self;
8257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0))
8258 return NULL;
8259 if (_argo0) {
8260 if (_argo0 == Py_None) { _arg0 = NULL; }
8261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p.");
8263 return NULL;
8264 }
8265 }
8266 {
8267 wxPy_BEGIN_ALLOW_THREADS;
8268 wxTreeCtrl_UnselectAll(_arg0);
8269
8270 wxPy_END_ALLOW_THREADS;
8271 if (PyErr_Occurred()) return NULL;
8272 } Py_INCREF(Py_None);
8273 _resultobj = Py_None;
8274 return _resultobj;
8275 }
8276
8277 #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0))
8278 static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8279 PyObject * _resultobj;
8280 wxPyTreeCtrl * _arg0;
8281 wxTreeItemId * _arg1;
8282 PyObject * _argo0 = 0;
8283 PyObject * _argo1 = 0;
8284 char *_kwnames[] = { "self","item", NULL };
8285
8286 self = self;
8287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1))
8288 return NULL;
8289 if (_argo0) {
8290 if (_argo0 == Py_None) { _arg0 = NULL; }
8291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p.");
8293 return NULL;
8294 }
8295 }
8296 if (_argo1) {
8297 if (_argo1 == Py_None) { _arg1 = NULL; }
8298 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8299 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p.");
8300 return NULL;
8301 }
8302 }
8303 {
8304 wxPy_BEGIN_ALLOW_THREADS;
8305 wxTreeCtrl_SelectItem(_arg0,*_arg1);
8306
8307 wxPy_END_ALLOW_THREADS;
8308 if (PyErr_Occurred()) return NULL;
8309 } Py_INCREF(Py_None);
8310 _resultobj = Py_None;
8311 return _resultobj;
8312 }
8313
8314 #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
8315 static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8316 PyObject * _resultobj;
8317 wxPyTreeCtrl * _arg0;
8318 wxTreeItemId * _arg1;
8319 PyObject * _argo0 = 0;
8320 PyObject * _argo1 = 0;
8321 char *_kwnames[] = { "self","item", NULL };
8322
8323 self = self;
8324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1))
8325 return NULL;
8326 if (_argo0) {
8327 if (_argo0 == Py_None) { _arg0 = NULL; }
8328 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8329 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p.");
8330 return NULL;
8331 }
8332 }
8333 if (_argo1) {
8334 if (_argo1 == Py_None) { _arg1 = NULL; }
8335 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8336 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p.");
8337 return NULL;
8338 }
8339 }
8340 {
8341 wxPy_BEGIN_ALLOW_THREADS;
8342 wxTreeCtrl_EnsureVisible(_arg0,*_arg1);
8343
8344 wxPy_END_ALLOW_THREADS;
8345 if (PyErr_Occurred()) return NULL;
8346 } Py_INCREF(Py_None);
8347 _resultobj = Py_None;
8348 return _resultobj;
8349 }
8350
8351 #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0))
8352 static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
8353 PyObject * _resultobj;
8354 wxPyTreeCtrl * _arg0;
8355 wxTreeItemId * _arg1;
8356 PyObject * _argo0 = 0;
8357 PyObject * _argo1 = 0;
8358 char *_kwnames[] = { "self","item", NULL };
8359
8360 self = self;
8361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1))
8362 return NULL;
8363 if (_argo0) {
8364 if (_argo0 == Py_None) { _arg0 = NULL; }
8365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p.");
8367 return NULL;
8368 }
8369 }
8370 if (_argo1) {
8371 if (_argo1 == Py_None) { _arg1 = NULL; }
8372 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8373 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p.");
8374 return NULL;
8375 }
8376 }
8377 {
8378 wxPy_BEGIN_ALLOW_THREADS;
8379 wxTreeCtrl_ScrollTo(_arg0,*_arg1);
8380
8381 wxPy_END_ALLOW_THREADS;
8382 if (PyErr_Occurred()) return NULL;
8383 } Py_INCREF(Py_None);
8384 _resultobj = Py_None;
8385 return _resultobj;
8386 }
8387
8388 #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
8389 static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8390 PyObject * _resultobj;
8391 wxTextCtrl * _result;
8392 wxPyTreeCtrl * _arg0;
8393 wxTreeItemId * _arg1;
8394 PyObject * _argo0 = 0;
8395 PyObject * _argo1 = 0;
8396 char *_kwnames[] = { "self","item", NULL };
8397
8398 self = self;
8399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1))
8400 return NULL;
8401 if (_argo0) {
8402 if (_argo0 == Py_None) { _arg0 = NULL; }
8403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p.");
8405 return NULL;
8406 }
8407 }
8408 if (_argo1) {
8409 if (_argo1 == Py_None) { _arg1 = NULL; }
8410 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8411 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p.");
8412 return NULL;
8413 }
8414 }
8415 {
8416 wxPy_BEGIN_ALLOW_THREADS;
8417 _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1);
8418
8419 wxPy_END_ALLOW_THREADS;
8420 if (PyErr_Occurred()) return NULL;
8421 }{ _resultobj = wxPyMake_wxObject(_result); }
8422 return _resultobj;
8423 }
8424
8425 #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
8426 static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8427 PyObject * _resultobj;
8428 wxTextCtrl * _result;
8429 wxPyTreeCtrl * _arg0;
8430 PyObject * _argo0 = 0;
8431 char *_kwnames[] = { "self", NULL };
8432
8433 self = self;
8434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0))
8435 return NULL;
8436 if (_argo0) {
8437 if (_argo0 == Py_None) { _arg0 = NULL; }
8438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p.");
8440 return NULL;
8441 }
8442 }
8443 {
8444 wxPy_BEGIN_ALLOW_THREADS;
8445 _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0);
8446
8447 wxPy_END_ALLOW_THREADS;
8448 if (PyErr_Occurred()) return NULL;
8449 }{ _resultobj = wxPyMake_wxObject(_result); }
8450 return _resultobj;
8451 }
8452
8453 #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1))
8454 static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8455 PyObject * _resultobj;
8456 wxPyTreeCtrl * _arg0;
8457 wxTreeItemId * _arg1;
8458 int _arg2 = (int ) FALSE;
8459 PyObject * _argo0 = 0;
8460 PyObject * _argo1 = 0;
8461 char *_kwnames[] = { "self","item","discardChanges", NULL };
8462
8463 self = self;
8464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2))
8465 return NULL;
8466 if (_argo0) {
8467 if (_argo0 == Py_None) { _arg0 = NULL; }
8468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p.");
8470 return NULL;
8471 }
8472 }
8473 if (_argo1) {
8474 if (_argo1 == Py_None) { _arg1 = NULL; }
8475 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8476 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p.");
8477 return NULL;
8478 }
8479 }
8480 {
8481 wxPy_BEGIN_ALLOW_THREADS;
8482 wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2);
8483
8484 wxPy_END_ALLOW_THREADS;
8485 if (PyErr_Occurred()) return NULL;
8486 } Py_INCREF(Py_None);
8487 _resultobj = Py_None;
8488 return _resultobj;
8489 }
8490
8491 #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0))
8492 static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
8493 PyObject * _resultobj;
8494 wxPyTreeCtrl * _arg0;
8495 wxTreeItemId * _arg1;
8496 PyObject * _argo0 = 0;
8497 PyObject * _argo1 = 0;
8498 char *_kwnames[] = { "self","item", NULL };
8499
8500 self = self;
8501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1))
8502 return NULL;
8503 if (_argo0) {
8504 if (_argo0 == Py_None) { _arg0 = NULL; }
8505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p.");
8507 return NULL;
8508 }
8509 }
8510 if (_argo1) {
8511 if (_argo1 == Py_None) { _arg1 = NULL; }
8512 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8513 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p.");
8514 return NULL;
8515 }
8516 }
8517 {
8518 wxPy_BEGIN_ALLOW_THREADS;
8519 wxTreeCtrl_SortChildren(_arg0,*_arg1);
8520
8521 wxPy_END_ALLOW_THREADS;
8522 if (PyErr_Occurred()) return NULL;
8523 } Py_INCREF(Py_None);
8524 _resultobj = Py_None;
8525 return _resultobj;
8526 }
8527
8528 #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1))
8529 static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
8530 PyObject * _resultobj;
8531 wxPyTreeCtrl * _arg0;
8532 wxTreeItemId * _arg1;
8533 int _arg2 = (int ) TRUE;
8534 PyObject * _argo0 = 0;
8535 PyObject * _argo1 = 0;
8536 char *_kwnames[] = { "self","item","bold", NULL };
8537
8538 self = self;
8539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2))
8540 return NULL;
8541 if (_argo0) {
8542 if (_argo0 == Py_None) { _arg0 = NULL; }
8543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p.");
8545 return NULL;
8546 }
8547 }
8548 if (_argo1) {
8549 if (_argo1 == Py_None) { _arg1 = NULL; }
8550 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8551 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p.");
8552 return NULL;
8553 }
8554 }
8555 {
8556 wxPy_BEGIN_ALLOW_THREADS;
8557 wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2);
8558
8559 wxPy_END_ALLOW_THREADS;
8560 if (PyErr_Occurred()) return NULL;
8561 } Py_INCREF(Py_None);
8562 _resultobj = Py_None;
8563 return _resultobj;
8564 }
8565
8566 #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0))
8567 static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
8568 PyObject * _resultobj;
8569 bool _result;
8570 wxPyTreeCtrl * _arg0;
8571 wxTreeItemId * _arg1;
8572 PyObject * _argo0 = 0;
8573 PyObject * _argo1 = 0;
8574 char *_kwnames[] = { "self","item", NULL };
8575
8576 self = self;
8577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1))
8578 return NULL;
8579 if (_argo0) {
8580 if (_argo0 == Py_None) { _arg0 = NULL; }
8581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p.");
8583 return NULL;
8584 }
8585 }
8586 if (_argo1) {
8587 if (_argo1 == Py_None) { _arg1 = NULL; }
8588 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8589 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p.");
8590 return NULL;
8591 }
8592 }
8593 {
8594 wxPy_BEGIN_ALLOW_THREADS;
8595 _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1);
8596
8597 wxPy_END_ALLOW_THREADS;
8598 if (PyErr_Occurred()) return NULL;
8599 } _resultobj = Py_BuildValue("i",_result);
8600 return _resultobj;
8601 }
8602
8603 #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
8604 static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
8605 PyObject * _resultobj;
8606 wxTreeItemId * _result;
8607 wxPyTreeCtrl * _arg0;
8608 wxPoint * _arg1;
8609 int * _arg2;
8610 int temp;
8611 PyObject * _argo0 = 0;
8612 wxPoint temp0;
8613 PyObject * _obj1 = 0;
8614 char *_kwnames[] = { "self","point", NULL };
8615 char _ptemp[128];
8616
8617 self = self;
8618 {
8619 _arg2 = &temp;
8620 }
8621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1))
8622 return NULL;
8623 if (_argo0) {
8624 if (_argo0 == Py_None) { _arg0 = NULL; }
8625 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8626 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p.");
8627 return NULL;
8628 }
8629 }
8630 {
8631 _arg1 = &temp0;
8632 if (! wxPoint_helper(_obj1, &_arg1))
8633 return NULL;
8634 }
8635 {
8636 wxPy_BEGIN_ALLOW_THREADS;
8637 _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2));
8638
8639 wxPy_END_ALLOW_THREADS;
8640 if (PyErr_Occurred()) return NULL;
8641 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8642 _resultobj = Py_BuildValue("s",_ptemp);
8643 {
8644 PyObject *o;
8645 o = PyInt_FromLong((long) (*_arg2));
8646 _resultobj = t_output_helper(_resultobj, o);
8647 }
8648 return _resultobj;
8649 }
8650
8651 #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1))
8652 static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8653 PyObject * _resultobj;
8654 wxPyTreeCtrl * _arg0;
8655 wxTreeItemId * _arg1;
8656 wxColour * _arg2;
8657 PyObject * _argo0 = 0;
8658 PyObject * _argo1 = 0;
8659 wxColour temp;
8660 PyObject * _obj2 = 0;
8661 char *_kwnames[] = { "self","item","col", NULL };
8662
8663 self = self;
8664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2))
8665 return NULL;
8666 if (_argo0) {
8667 if (_argo0 == Py_None) { _arg0 = NULL; }
8668 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p.");
8670 return NULL;
8671 }
8672 }
8673 if (_argo1) {
8674 if (_argo1 == Py_None) { _arg1 = NULL; }
8675 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8676 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p.");
8677 return NULL;
8678 }
8679 }
8680 {
8681 _arg2 = &temp;
8682 if (! wxColour_helper(_obj2, &_arg2))
8683 return NULL;
8684 }
8685 {
8686 wxPy_BEGIN_ALLOW_THREADS;
8687 wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2);
8688
8689 wxPy_END_ALLOW_THREADS;
8690 if (PyErr_Occurred()) return NULL;
8691 } Py_INCREF(Py_None);
8692 _resultobj = Py_None;
8693 return _resultobj;
8694 }
8695
8696 #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1))
8697 static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8698 PyObject * _resultobj;
8699 wxPyTreeCtrl * _arg0;
8700 wxTreeItemId * _arg1;
8701 wxColour * _arg2;
8702 PyObject * _argo0 = 0;
8703 PyObject * _argo1 = 0;
8704 wxColour temp;
8705 PyObject * _obj2 = 0;
8706 char *_kwnames[] = { "self","item","col", NULL };
8707
8708 self = self;
8709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2))
8710 return NULL;
8711 if (_argo0) {
8712 if (_argo0 == Py_None) { _arg0 = NULL; }
8713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p.");
8715 return NULL;
8716 }
8717 }
8718 if (_argo1) {
8719 if (_argo1 == Py_None) { _arg1 = NULL; }
8720 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8721 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p.");
8722 return NULL;
8723 }
8724 }
8725 {
8726 _arg2 = &temp;
8727 if (! wxColour_helper(_obj2, &_arg2))
8728 return NULL;
8729 }
8730 {
8731 wxPy_BEGIN_ALLOW_THREADS;
8732 wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2);
8733
8734 wxPy_END_ALLOW_THREADS;
8735 if (PyErr_Occurred()) return NULL;
8736 } Py_INCREF(Py_None);
8737 _resultobj = Py_None;
8738 return _resultobj;
8739 }
8740
8741 #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1))
8742 static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8743 PyObject * _resultobj;
8744 wxPyTreeCtrl * _arg0;
8745 wxTreeItemId * _arg1;
8746 wxFont * _arg2;
8747 PyObject * _argo0 = 0;
8748 PyObject * _argo1 = 0;
8749 PyObject * _argo2 = 0;
8750 char *_kwnames[] = { "self","item","font", NULL };
8751
8752 self = self;
8753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2))
8754 return NULL;
8755 if (_argo0) {
8756 if (_argo0 == Py_None) { _arg0 = NULL; }
8757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p.");
8759 return NULL;
8760 }
8761 }
8762 if (_argo1) {
8763 if (_argo1 == Py_None) { _arg1 = NULL; }
8764 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8765 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p.");
8766 return NULL;
8767 }
8768 }
8769 if (_argo2) {
8770 if (_argo2 == Py_None) { _arg2 = NULL; }
8771 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
8772 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p.");
8773 return NULL;
8774 }
8775 }
8776 {
8777 wxPy_BEGIN_ALLOW_THREADS;
8778 wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2);
8779
8780 wxPy_END_ALLOW_THREADS;
8781 if (PyErr_Occurred()) return NULL;
8782 } Py_INCREF(Py_None);
8783 _resultobj = Py_None;
8784 return _resultobj;
8785 }
8786
8787 #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1))
8788 static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
8789 PyObject * _resultobj;
8790 wxPyTreeCtrl * _arg0;
8791 wxTreeItemId * _arg1;
8792 int _arg2 = (int ) TRUE;
8793 PyObject * _argo0 = 0;
8794 PyObject * _argo1 = 0;
8795 char *_kwnames[] = { "self","item","highlight", NULL };
8796
8797 self = self;
8798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2))
8799 return NULL;
8800 if (_argo0) {
8801 if (_argo0 == Py_None) { _arg0 = NULL; }
8802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p.");
8804 return NULL;
8805 }
8806 }
8807 if (_argo1) {
8808 if (_argo1 == Py_None) { _arg1 = NULL; }
8809 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8810 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p.");
8811 return NULL;
8812 }
8813 }
8814 {
8815 wxPy_BEGIN_ALLOW_THREADS;
8816 wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2);
8817
8818 wxPy_END_ALLOW_THREADS;
8819 if (PyErr_Occurred()) return NULL;
8820 } Py_INCREF(Py_None);
8821 _resultobj = Py_None;
8822 return _resultobj;
8823 }
8824
8825 static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) {
8826 wxRect rect;
8827 if (self->GetBoundingRect(item, rect, textOnly)) {
8828 bool doSave = wxPyRestoreThread();
8829 wxRect* r = new wxRect(rect);
8830 PyObject* val = wxPyConstructObject((void*)r, "wxRect");
8831 wxPySaveThread(doSave);
8832 return val;
8833 }
8834 else {
8835 Py_INCREF(Py_None);
8836 return Py_None;
8837 }
8838 }
8839 static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
8840 PyObject * _resultobj;
8841 PyObject * _result;
8842 wxPyTreeCtrl * _arg0;
8843 wxTreeItemId * _arg1;
8844 int _arg2 = (int ) FALSE;
8845 PyObject * _argo0 = 0;
8846 PyObject * _argo1 = 0;
8847 char *_kwnames[] = { "self","item","textOnly", NULL };
8848
8849 self = self;
8850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2))
8851 return NULL;
8852 if (_argo0) {
8853 if (_argo0 == Py_None) { _arg0 = NULL; }
8854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p.");
8856 return NULL;
8857 }
8858 }
8859 if (_argo1) {
8860 if (_argo1 == Py_None) { _arg1 = NULL; }
8861 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8862 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p.");
8863 return NULL;
8864 }
8865 }
8866 {
8867 wxPy_BEGIN_ALLOW_THREADS;
8868 _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2);
8869
8870 wxPy_END_ALLOW_THREADS;
8871 if (PyErr_Occurred()) return NULL;
8872 }{
8873 _resultobj = _result;
8874 }
8875 return _resultobj;
8876 }
8877
8878 static PyMethodDef controls2cMethods[] = {
8879 { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
8880 { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
8881 { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
8882 { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8883 { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
8884 { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
8885 { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
8886 { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
8887 { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
8888 { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
8889 { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
8890 { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
8891 { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
8892 { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
8893 { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
8894 { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
8895 { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
8896 { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
8897 { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
8898 { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
8899 { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
8900 { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
8901 { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
8902 { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
8903 { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
8904 { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
8905 { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
8906 { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
8907 { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
8908 { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
8909 { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
8910 { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
8911 { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
8912 { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
8913 { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
8914 { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
8915 { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
8916 { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
8917 { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
8918 { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
8919 { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
8920 { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
8921 { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
8922 { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
8923 { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
8924 { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
8925 { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS },
8926 { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS },
8927 { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
8928 { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
8929 { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
8930 { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
8931 { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
8932 { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
8933 { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
8934 { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
8935 { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
8936 { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
8937 { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
8938 { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
8939 { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
8940 { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
8941 { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
8942 { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
8943 { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
8944 { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
8945 { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
8946 { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
8947 { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS },
8948 { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS },
8949 { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
8950 { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
8951 { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
8952 { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
8953 { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
8954 { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS },
8955 { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
8956 { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
8957 { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
8958 { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
8959 { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS },
8960 { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS },
8961 { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
8962 { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
8963 { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
8964 { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
8965 { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8966 { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
8967 { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
8968 { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8969 { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
8970 { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
8971 { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8972 { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
8973 { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS },
8974 { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
8975 { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
8976 { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
8977 { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
8978 { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
8979 { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
8980 { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
8981 { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
8982 { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
8983 { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
8984 { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
8985 { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
8986 { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
8987 { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
8988 { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
8989 { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
8990 { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
8991 { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
8992 { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
8993 { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
8994 { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
8995 { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
8996 { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
8997 { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
8998 { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
8999 { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
9000 { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
9001 { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
9002 { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
9003 { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
9004 { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
9005 { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
9006 { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9007 { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9008 { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
9009 { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
9010 { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
9011 { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
9012 { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
9013 { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
9014 { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
9015 { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
9016 { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
9017 { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
9018 { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
9019 { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
9020 { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
9021 { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
9022 { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
9023 { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
9024 { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
9025 { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
9026 { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
9027 { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
9028 { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
9029 { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
9030 { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
9031 { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9032 { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
9033 { "wxListCtrl__setSelf", (PyCFunction) _wrap_wxListCtrl__setSelf, METH_VARARGS | METH_KEYWORDS },
9034 { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS },
9035 { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
9036 { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
9037 { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
9038 { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
9039 { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
9040 { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
9041 { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
9042 { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS },
9043 { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
9044 { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
9045 { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS },
9046 { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
9047 { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
9048 { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
9049 { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS },
9050 { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
9051 { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
9052 { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS },
9053 { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS },
9054 { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
9055 { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
9056 { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
9057 { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
9058 { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
9059 { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
9060 { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
9061 { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
9062 { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
9063 { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
9064 { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
9065 { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
9066 { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
9067 { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
9068 { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
9069 { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
9070 { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
9071 { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
9072 { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
9073 { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
9074 { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
9075 { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
9076 { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
9077 { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
9078 { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
9079 { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
9080 { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
9081 { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
9082 { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
9083 { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9084 { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9085 { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
9086 { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
9087 { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
9088 { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
9089 { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS },
9090 { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
9091 { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS },
9092 { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS },
9093 { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
9094 { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS },
9095 { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
9096 { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
9097 { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9098 { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9099 { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
9100 { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
9101 { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS },
9102 { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
9103 { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS },
9104 { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
9105 { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS },
9106 { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
9107 { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS },
9108 { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
9109 { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
9110 { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS },
9111 { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS },
9112 { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS },
9113 { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
9114 { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9115 { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9116 { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
9117 { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9118 { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
9119 { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
9120 { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9121 { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9122 { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS },
9123 { NULL, NULL }
9124 };
9125 #ifdef __cplusplus
9126 }
9127 #endif
9128 /*
9129 * This table is used by the pointer type-checker
9130 */
9131 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
9132 { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
9133 { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
9134 { "_signed_long","_long",0},
9135 { "_wxPrintQuality","_wxCoord",0},
9136 { "_wxPrintQuality","_int",0},
9137 { "_wxPrintQuality","_signed_int",0},
9138 { "_wxPrintQuality","_unsigned_int",0},
9139 { "_wxPrintQuality","_wxWindowID",0},
9140 { "_wxPrintQuality","_uint",0},
9141 { "_wxPrintQuality","_EBool",0},
9142 { "_wxPrintQuality","_size_t",0},
9143 { "_wxPrintQuality","_time_t",0},
9144 { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
9145 { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent},
9146 { "_byte","_unsigned_char",0},
9147 { "_long","_unsigned_long",0},
9148 { "_long","_signed_long",0},
9149 { "_size_t","_wxCoord",0},
9150 { "_size_t","_wxPrintQuality",0},
9151 { "_size_t","_time_t",0},
9152 { "_size_t","_unsigned_int",0},
9153 { "_size_t","_int",0},
9154 { "_size_t","_wxWindowID",0},
9155 { "_size_t","_uint",0},
9156 { "_uint","_wxCoord",0},
9157 { "_uint","_wxPrintQuality",0},
9158 { "_uint","_time_t",0},
9159 { "_uint","_size_t",0},
9160 { "_uint","_unsigned_int",0},
9161 { "_uint","_int",0},
9162 { "_uint","_wxWindowID",0},
9163 { "_wxChar","_char",0},
9164 { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
9165 { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
9166 { "_char","_wxChar",0},
9167 { "_EBool","_wxCoord",0},
9168 { "_EBool","_wxPrintQuality",0},
9169 { "_EBool","_signed_int",0},
9170 { "_EBool","_int",0},
9171 { "_EBool","_wxWindowID",0},
9172 { "_unsigned_long","_long",0},
9173 { "_signed_int","_wxCoord",0},
9174 { "_signed_int","_wxPrintQuality",0},
9175 { "_signed_int","_EBool",0},
9176 { "_signed_int","_wxWindowID",0},
9177 { "_signed_int","_int",0},
9178 { "_WXTYPE","_short",0},
9179 { "_WXTYPE","_signed_short",0},
9180 { "_WXTYPE","_unsigned_short",0},
9181 { "_unsigned_short","_WXTYPE",0},
9182 { "_unsigned_short","_short",0},
9183 { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
9184 { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject},
9185 { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
9186 { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject},
9187 { "_wxObject","_wxListEvent",SwigwxListEventTowxObject},
9188 { "_wxObject","_wxListItem",SwigwxListItemTowxObject},
9189 { "_signed_short","_WXTYPE",0},
9190 { "_signed_short","_short",0},
9191 { "_unsigned_char","_byte",0},
9192 { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl},
9193 { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl},
9194 { "_unsigned_int","_wxCoord",0},
9195 { "_unsigned_int","_wxPrintQuality",0},
9196 { "_unsigned_int","_time_t",0},
9197 { "_unsigned_int","_size_t",0},
9198 { "_unsigned_int","_uint",0},
9199 { "_unsigned_int","_wxWindowID",0},
9200 { "_unsigned_int","_int",0},
9201 { "_short","_WXTYPE",0},
9202 { "_short","_unsigned_short",0},
9203 { "_short","_signed_short",0},
9204 { "_wxWindowID","_wxCoord",0},
9205 { "_wxWindowID","_wxPrintQuality",0},
9206 { "_wxWindowID","_time_t",0},
9207 { "_wxWindowID","_size_t",0},
9208 { "_wxWindowID","_EBool",0},
9209 { "_wxWindowID","_uint",0},
9210 { "_wxWindowID","_int",0},
9211 { "_wxWindowID","_signed_int",0},
9212 { "_wxWindowID","_unsigned_int",0},
9213 { "_int","_wxCoord",0},
9214 { "_int","_wxPrintQuality",0},
9215 { "_int","_time_t",0},
9216 { "_int","_size_t",0},
9217 { "_int","_EBool",0},
9218 { "_int","_uint",0},
9219 { "_int","_wxWindowID",0},
9220 { "_int","_unsigned_int",0},
9221 { "_int","_signed_int",0},
9222 { "_time_t","_wxCoord",0},
9223 { "_time_t","_wxPrintQuality",0},
9224 { "_time_t","_unsigned_int",0},
9225 { "_time_t","_int",0},
9226 { "_time_t","_wxWindowID",0},
9227 { "_time_t","_uint",0},
9228 { "_time_t","_size_t",0},
9229 { "_wxCoord","_int",0},
9230 { "_wxCoord","_signed_int",0},
9231 { "_wxCoord","_unsigned_int",0},
9232 { "_wxCoord","_wxWindowID",0},
9233 { "_wxCoord","_uint",0},
9234 { "_wxCoord","_EBool",0},
9235 { "_wxCoord","_size_t",0},
9236 { "_wxCoord","_time_t",0},
9237 { "_wxCoord","_wxPrintQuality",0},
9238 { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler},
9239 { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler},
9240 { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow},
9241 { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow},
9242 {0,0,0}};
9243
9244 static PyObject *SWIG_globals;
9245 #ifdef __cplusplus
9246 extern "C"
9247 #endif
9248 SWIGEXPORT(void) initcontrols2c() {
9249 PyObject *m, *d;
9250 SWIG_globals = SWIG_newvarlink();
9251 m = Py_InitModule("controls2c", controls2cMethods);
9252 d = PyModule_GetDict(m);
9253 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG));
9254 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG));
9255 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
9256 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT));
9257 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM));
9258 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
9259 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO));
9260 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO));
9261 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED));
9262 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED));
9263 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN));
9264 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM));
9265 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK));
9266 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
9267 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
9268 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
9269 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT));
9270 PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES));
9271 PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES));
9272 PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON));
9273 PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON));
9274 PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST));
9275 PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT));
9276 PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP));
9277 PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT));
9278 PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE));
9279 PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL));
9280 PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS));
9281 PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER));
9282 PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER));
9283 PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL));
9284 PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING));
9285 PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING));
9286 PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE));
9287 PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN));
9288 PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT));
9289 PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE));
9290 PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT));
9291 PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE));
9292 PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA));
9293 PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM));
9294 PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH));
9295 PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT));
9296 PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE));
9297 PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED));
9298 PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED));
9299 PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED));
9300 PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT));
9301 PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE));
9302 PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW));
9303 PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE));
9304 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON));
9305 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL));
9306 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT));
9307 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON));
9308 PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT));
9309 PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT));
9310 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM));
9311 PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE));
9312 PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL));
9313 PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW));
9314 PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT));
9315 PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT));
9316 PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT));
9317 PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT));
9318 PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP));
9319 PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID));
9320 PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE));
9321 PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER));
9322 PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS));
9323 PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON));
9324 PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL));
9325 PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP));
9326 PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN));
9327 PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT));
9328 PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT));
9329 PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT));
9330 PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT));
9331 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE));
9332 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER));
9333 PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS));
9334 PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS));
9335 PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS));
9336 PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES));
9337 PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS));
9338 PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE));
9339 PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE));
9340 PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED));
9341 PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS));
9342 PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT));
9343 PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT));
9344 PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES));
9345 PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT));
9346 PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE));
9347 PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal));
9348 PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected));
9349 PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded));
9350 PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded));
9351 PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max));
9352 PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE));
9353 PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW));
9354 PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE));
9355 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON));
9356 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON));
9357 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT));
9358 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL));
9359 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT));
9360 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON));
9361 PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT));
9362 PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT));
9363 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART));
9364 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART));
9365 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM));
9366 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG));
9367 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG));
9368 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
9369 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT));
9370 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM));
9371 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO));
9372 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO));
9373 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED));
9374 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING));
9375 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
9376 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
9377 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED));
9378 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING));
9379 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN));
9380 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
9381 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
9382 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
9383 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG));
9384
9385 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
9386 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
9387 {
9388 int i;
9389 for (i = 0; _swig_mapping[i].n1; i++)
9390 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
9391 }
9392 }