]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/controls2.cpp
254d7ad97a3de86187797c715dd92d6eede09553
[wxWidgets.git] / utils / wxPython / src / msw / controls2.cpp
1 /*
2 * FILE : msw/controls2.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 810)
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 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initcontrols2c
53
54 #define SWIG_name "controls2c"
55
56 #include "helpers.h"
57 #ifdef __WXMSW__
58 #include <windows.h>
59 #endif
60 #include <wx/listctrl.h>
61 #include <wx/treectrl.h>
62
63 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
64 PyObject* o2;
65 PyObject* o3;
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyList_Check(target)) {
73 o2 = target;
74 target = PyList_New(0);
75 PyList_Append(target, o2);
76 Py_XDECREF(o2);
77 }
78 PyList_Append(target,o);
79 Py_XDECREF(o);
80 }
81 return target;
82 }
83
84 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
85 PyObject* o2;
86 PyObject* o3;
87
88 if (!target) {
89 target = o;
90 } else if (target == Py_None) {
91 Py_DECREF(Py_None);
92 target = o;
93 } else {
94 if (!PyTuple_Check(target)) {
95 o2 = target;
96 target = PyTuple_New(1);
97 PyTuple_SetItem(target, 0, o2);
98 }
99 o3 = PyTuple_New(1);
100 PyTuple_SetItem(o3, 0, o);
101
102 o2 = target;
103 target = PySequence_Concat(o2, o3);
104 Py_DECREF(o2);
105 Py_DECREF(o3);
106 }
107 return target;
108 }
109
110 static char* wxStringErrorMsg = "string type is required for parameter";
111
112 extern wxValidator wxPyDefaultValidator;
113
114 class wxPyTreeItemData : public wxTreeItemData {
115 public:
116 wxPyTreeItemData(PyObject* obj = NULL) {
117 if (obj == NULL)
118 obj = Py_None;
119 Py_INCREF(obj);
120 m_obj = obj;
121 }
122
123 ~wxPyTreeItemData() {
124 bool doSave = wxPyRestoreThread();
125 Py_DECREF(m_obj);
126 wxPySaveThread(doSave);
127 }
128
129 PyObject* GetData() {
130 Py_INCREF(m_obj);
131 return m_obj;
132 }
133
134 void SetData(PyObject* obj) {
135 Py_DECREF(m_obj);
136 m_obj = obj;
137 Py_INCREF(obj);
138 }
139
140 PyObject* m_obj;
141 };
142 #ifdef __cplusplus
143 extern "C" {
144 #endif
145 #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval)
146 static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
147 PyObject * _resultobj;
148 long _result;
149 wxListItem * _arg0;
150 long _arg1;
151 PyObject * _argo0 = 0;
152 char *_kwnames[] = { "self","m_mask", NULL };
153
154 self = self;
155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1))
156 return NULL;
157 if (_argo0) {
158 if (_argo0 == Py_None) { _arg0 = NULL; }
159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p.");
161 return NULL;
162 }
163 }
164 {
165 wxPy_BEGIN_ALLOW_THREADS;
166 _result = (long )wxListItem_m_mask_set(_arg0,_arg1);
167
168 wxPy_END_ALLOW_THREADS;
169 } _resultobj = Py_BuildValue("l",_result);
170 return _resultobj;
171 }
172
173 #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask)
174 static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
175 PyObject * _resultobj;
176 long _result;
177 wxListItem * _arg0;
178 PyObject * _argo0 = 0;
179 char *_kwnames[] = { "self", NULL };
180
181 self = self;
182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0))
183 return NULL;
184 if (_argo0) {
185 if (_argo0 == Py_None) { _arg0 = NULL; }
186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p.");
188 return NULL;
189 }
190 }
191 {
192 wxPy_BEGIN_ALLOW_THREADS;
193 _result = (long )wxListItem_m_mask_get(_arg0);
194
195 wxPy_END_ALLOW_THREADS;
196 } _resultobj = Py_BuildValue("l",_result);
197 return _resultobj;
198 }
199
200 #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval)
201 static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
202 PyObject * _resultobj;
203 long _result;
204 wxListItem * _arg0;
205 long _arg1;
206 PyObject * _argo0 = 0;
207 char *_kwnames[] = { "self","m_itemId", NULL };
208
209 self = self;
210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1))
211 return NULL;
212 if (_argo0) {
213 if (_argo0 == Py_None) { _arg0 = NULL; }
214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p.");
216 return NULL;
217 }
218 }
219 {
220 wxPy_BEGIN_ALLOW_THREADS;
221 _result = (long )wxListItem_m_itemId_set(_arg0,_arg1);
222
223 wxPy_END_ALLOW_THREADS;
224 } _resultobj = Py_BuildValue("l",_result);
225 return _resultobj;
226 }
227
228 #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId)
229 static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
230 PyObject * _resultobj;
231 long _result;
232 wxListItem * _arg0;
233 PyObject * _argo0 = 0;
234 char *_kwnames[] = { "self", NULL };
235
236 self = self;
237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0))
238 return NULL;
239 if (_argo0) {
240 if (_argo0 == Py_None) { _arg0 = NULL; }
241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p.");
243 return NULL;
244 }
245 }
246 {
247 wxPy_BEGIN_ALLOW_THREADS;
248 _result = (long )wxListItem_m_itemId_get(_arg0);
249
250 wxPy_END_ALLOW_THREADS;
251 } _resultobj = Py_BuildValue("l",_result);
252 return _resultobj;
253 }
254
255 #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
256 static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
257 PyObject * _resultobj;
258 int _result;
259 wxListItem * _arg0;
260 int _arg1;
261 PyObject * _argo0 = 0;
262 char *_kwnames[] = { "self","m_col", NULL };
263
264 self = self;
265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1))
266 return NULL;
267 if (_argo0) {
268 if (_argo0 == Py_None) { _arg0 = NULL; }
269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p.");
271 return NULL;
272 }
273 }
274 {
275 wxPy_BEGIN_ALLOW_THREADS;
276 _result = (int )wxListItem_m_col_set(_arg0,_arg1);
277
278 wxPy_END_ALLOW_THREADS;
279 } _resultobj = Py_BuildValue("i",_result);
280 return _resultobj;
281 }
282
283 #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col)
284 static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
285 PyObject * _resultobj;
286 int _result;
287 wxListItem * _arg0;
288 PyObject * _argo0 = 0;
289 char *_kwnames[] = { "self", NULL };
290
291 self = self;
292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0))
293 return NULL;
294 if (_argo0) {
295 if (_argo0 == Py_None) { _arg0 = NULL; }
296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p.");
298 return NULL;
299 }
300 }
301 {
302 wxPy_BEGIN_ALLOW_THREADS;
303 _result = (int )wxListItem_m_col_get(_arg0);
304
305 wxPy_END_ALLOW_THREADS;
306 } _resultobj = Py_BuildValue("i",_result);
307 return _resultobj;
308 }
309
310 #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval)
311 static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
312 PyObject * _resultobj;
313 long _result;
314 wxListItem * _arg0;
315 long _arg1;
316 PyObject * _argo0 = 0;
317 char *_kwnames[] = { "self","m_state", NULL };
318
319 self = self;
320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1))
321 return NULL;
322 if (_argo0) {
323 if (_argo0 == Py_None) { _arg0 = NULL; }
324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p.");
326 return NULL;
327 }
328 }
329 {
330 wxPy_BEGIN_ALLOW_THREADS;
331 _result = (long )wxListItem_m_state_set(_arg0,_arg1);
332
333 wxPy_END_ALLOW_THREADS;
334 } _resultobj = Py_BuildValue("l",_result);
335 return _resultobj;
336 }
337
338 #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state)
339 static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
340 PyObject * _resultobj;
341 long _result;
342 wxListItem * _arg0;
343 PyObject * _argo0 = 0;
344 char *_kwnames[] = { "self", NULL };
345
346 self = self;
347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0))
348 return NULL;
349 if (_argo0) {
350 if (_argo0 == Py_None) { _arg0 = NULL; }
351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p.");
353 return NULL;
354 }
355 }
356 {
357 wxPy_BEGIN_ALLOW_THREADS;
358 _result = (long )wxListItem_m_state_get(_arg0);
359
360 wxPy_END_ALLOW_THREADS;
361 } _resultobj = Py_BuildValue("l",_result);
362 return _resultobj;
363 }
364
365 #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval)
366 static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
367 PyObject * _resultobj;
368 long _result;
369 wxListItem * _arg0;
370 long _arg1;
371 PyObject * _argo0 = 0;
372 char *_kwnames[] = { "self","m_stateMask", NULL };
373
374 self = self;
375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1))
376 return NULL;
377 if (_argo0) {
378 if (_argo0 == Py_None) { _arg0 = NULL; }
379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p.");
381 return NULL;
382 }
383 }
384 {
385 wxPy_BEGIN_ALLOW_THREADS;
386 _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1);
387
388 wxPy_END_ALLOW_THREADS;
389 } _resultobj = Py_BuildValue("l",_result);
390 return _resultobj;
391 }
392
393 #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask)
394 static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
395 PyObject * _resultobj;
396 long _result;
397 wxListItem * _arg0;
398 PyObject * _argo0 = 0;
399 char *_kwnames[] = { "self", NULL };
400
401 self = self;
402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0))
403 return NULL;
404 if (_argo0) {
405 if (_argo0 == Py_None) { _arg0 = NULL; }
406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p.");
408 return NULL;
409 }
410 }
411 {
412 wxPy_BEGIN_ALLOW_THREADS;
413 _result = (long )wxListItem_m_stateMask_get(_arg0);
414
415 wxPy_END_ALLOW_THREADS;
416 } _resultobj = Py_BuildValue("l",_result);
417 return _resultobj;
418 }
419
420 #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval)
421 static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
422 PyObject * _resultobj;
423 wxString * _result;
424 wxListItem * _arg0;
425 wxString * _arg1;
426 PyObject * _argo0 = 0;
427 PyObject * _obj1 = 0;
428 char *_kwnames[] = { "self","m_text", NULL };
429
430 self = self;
431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1))
432 return NULL;
433 if (_argo0) {
434 if (_argo0 == Py_None) { _arg0 = NULL; }
435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p.");
437 return NULL;
438 }
439 }
440 {
441 if (!PyString_Check(_obj1)) {
442 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
443 return NULL;
444 }
445 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
446 }
447 {
448 wxPy_BEGIN_ALLOW_THREADS;
449 _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1);
450
451 wxPy_END_ALLOW_THREADS;
452 }{
453 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
454 }
455 {
456 if (_obj1)
457 delete _arg1;
458 }
459 return _resultobj;
460 }
461
462 #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text)
463 static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
464 PyObject * _resultobj;
465 wxString * _result;
466 wxListItem * _arg0;
467 PyObject * _argo0 = 0;
468 char *_kwnames[] = { "self", NULL };
469
470 self = self;
471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0))
472 return NULL;
473 if (_argo0) {
474 if (_argo0 == Py_None) { _arg0 = NULL; }
475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p.");
477 return NULL;
478 }
479 }
480 {
481 wxPy_BEGIN_ALLOW_THREADS;
482 _result = (wxString *)wxListItem_m_text_get(_arg0);
483
484 wxPy_END_ALLOW_THREADS;
485 }{
486 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
487 }
488 return _resultobj;
489 }
490
491 #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval)
492 static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
493 PyObject * _resultobj;
494 int _result;
495 wxListItem * _arg0;
496 int _arg1;
497 PyObject * _argo0 = 0;
498 char *_kwnames[] = { "self","m_image", NULL };
499
500 self = self;
501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1))
502 return NULL;
503 if (_argo0) {
504 if (_argo0 == Py_None) { _arg0 = NULL; }
505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p.");
507 return NULL;
508 }
509 }
510 {
511 wxPy_BEGIN_ALLOW_THREADS;
512 _result = (int )wxListItem_m_image_set(_arg0,_arg1);
513
514 wxPy_END_ALLOW_THREADS;
515 } _resultobj = Py_BuildValue("i",_result);
516 return _resultobj;
517 }
518
519 #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image)
520 static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
521 PyObject * _resultobj;
522 int _result;
523 wxListItem * _arg0;
524 PyObject * _argo0 = 0;
525 char *_kwnames[] = { "self", NULL };
526
527 self = self;
528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0))
529 return NULL;
530 if (_argo0) {
531 if (_argo0 == Py_None) { _arg0 = NULL; }
532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p.");
534 return NULL;
535 }
536 }
537 {
538 wxPy_BEGIN_ALLOW_THREADS;
539 _result = (int )wxListItem_m_image_get(_arg0);
540
541 wxPy_END_ALLOW_THREADS;
542 } _resultobj = Py_BuildValue("i",_result);
543 return _resultobj;
544 }
545
546 #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval)
547 static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
548 PyObject * _resultobj;
549 long _result;
550 wxListItem * _arg0;
551 long _arg1;
552 PyObject * _argo0 = 0;
553 char *_kwnames[] = { "self","m_data", NULL };
554
555 self = self;
556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1))
557 return NULL;
558 if (_argo0) {
559 if (_argo0 == Py_None) { _arg0 = NULL; }
560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p.");
562 return NULL;
563 }
564 }
565 {
566 wxPy_BEGIN_ALLOW_THREADS;
567 _result = (long )wxListItem_m_data_set(_arg0,_arg1);
568
569 wxPy_END_ALLOW_THREADS;
570 } _resultobj = Py_BuildValue("l",_result);
571 return _resultobj;
572 }
573
574 #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data)
575 static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
576 PyObject * _resultobj;
577 long _result;
578 wxListItem * _arg0;
579 PyObject * _argo0 = 0;
580 char *_kwnames[] = { "self", NULL };
581
582 self = self;
583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0))
584 return NULL;
585 if (_argo0) {
586 if (_argo0 == Py_None) { _arg0 = NULL; }
587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p.");
589 return NULL;
590 }
591 }
592 {
593 wxPy_BEGIN_ALLOW_THREADS;
594 _result = (long )wxListItem_m_data_get(_arg0);
595
596 wxPy_END_ALLOW_THREADS;
597 } _resultobj = Py_BuildValue("l",_result);
598 return _resultobj;
599 }
600
601 #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval)
602 static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
603 PyObject * _resultobj;
604 int _result;
605 wxListItem * _arg0;
606 int _arg1;
607 PyObject * _argo0 = 0;
608 char *_kwnames[] = { "self","m_format", NULL };
609
610 self = self;
611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1))
612 return NULL;
613 if (_argo0) {
614 if (_argo0 == Py_None) { _arg0 = NULL; }
615 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
616 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p.");
617 return NULL;
618 }
619 }
620 {
621 wxPy_BEGIN_ALLOW_THREADS;
622 _result = (int )wxListItem_m_format_set(_arg0,_arg1);
623
624 wxPy_END_ALLOW_THREADS;
625 } _resultobj = Py_BuildValue("i",_result);
626 return _resultobj;
627 }
628
629 #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format)
630 static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
631 PyObject * _resultobj;
632 int _result;
633 wxListItem * _arg0;
634 PyObject * _argo0 = 0;
635 char *_kwnames[] = { "self", NULL };
636
637 self = self;
638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0))
639 return NULL;
640 if (_argo0) {
641 if (_argo0 == Py_None) { _arg0 = NULL; }
642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p.");
644 return NULL;
645 }
646 }
647 {
648 wxPy_BEGIN_ALLOW_THREADS;
649 _result = (int )wxListItem_m_format_get(_arg0);
650
651 wxPy_END_ALLOW_THREADS;
652 } _resultobj = Py_BuildValue("i",_result);
653 return _resultobj;
654 }
655
656 #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval)
657 static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
658 PyObject * _resultobj;
659 int _result;
660 wxListItem * _arg0;
661 int _arg1;
662 PyObject * _argo0 = 0;
663 char *_kwnames[] = { "self","m_width", NULL };
664
665 self = self;
666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1))
667 return NULL;
668 if (_argo0) {
669 if (_argo0 == Py_None) { _arg0 = NULL; }
670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p.");
672 return NULL;
673 }
674 }
675 {
676 wxPy_BEGIN_ALLOW_THREADS;
677 _result = (int )wxListItem_m_width_set(_arg0,_arg1);
678
679 wxPy_END_ALLOW_THREADS;
680 } _resultobj = Py_BuildValue("i",_result);
681 return _resultobj;
682 }
683
684 #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width)
685 static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
686 PyObject * _resultobj;
687 int _result;
688 wxListItem * _arg0;
689 PyObject * _argo0 = 0;
690 char *_kwnames[] = { "self", NULL };
691
692 self = self;
693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0))
694 return NULL;
695 if (_argo0) {
696 if (_argo0 == Py_None) { _arg0 = NULL; }
697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p.");
699 return NULL;
700 }
701 }
702 {
703 wxPy_BEGIN_ALLOW_THREADS;
704 _result = (int )wxListItem_m_width_get(_arg0);
705
706 wxPy_END_ALLOW_THREADS;
707 } _resultobj = Py_BuildValue("i",_result);
708 return _resultobj;
709 }
710
711 #define new_wxListItem() (new wxListItem())
712 static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
713 PyObject * _resultobj;
714 wxListItem * _result;
715 char *_kwnames[] = { NULL };
716 char _ptemp[128];
717
718 self = self;
719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames))
720 return NULL;
721 {
722 wxPy_BEGIN_ALLOW_THREADS;
723 _result = (wxListItem *)new_wxListItem();
724
725 wxPy_END_ALLOW_THREADS;
726 } if (_result) {
727 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
728 _resultobj = Py_BuildValue("s",_ptemp);
729 } else {
730 Py_INCREF(Py_None);
731 _resultobj = Py_None;
732 }
733 return _resultobj;
734 }
735
736 #define delete_wxListItem(_swigobj) (delete _swigobj)
737 static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
738 PyObject * _resultobj;
739 wxListItem * _arg0;
740 PyObject * _argo0 = 0;
741 char *_kwnames[] = { "self", NULL };
742
743 self = self;
744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0))
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 delete_wxListItem. Expected _wxListItem_p.");
750 return NULL;
751 }
752 }
753 {
754 wxPy_BEGIN_ALLOW_THREADS;
755 delete_wxListItem(_arg0);
756
757 wxPy_END_ALLOW_THREADS;
758 } Py_INCREF(Py_None);
759 _resultobj = Py_None;
760 return _resultobj;
761 }
762
763 static void *SwigwxListEventTowxCommandEvent(void *ptr) {
764 wxListEvent *src;
765 wxCommandEvent *dest;
766 src = (wxListEvent *) ptr;
767 dest = (wxCommandEvent *) src;
768 return (void *) dest;
769 }
770
771 static void *SwigwxListEventTowxEvent(void *ptr) {
772 wxListEvent *src;
773 wxEvent *dest;
774 src = (wxListEvent *) ptr;
775 dest = (wxEvent *) src;
776 return (void *) dest;
777 }
778
779 #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval)
780 static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
781 PyObject * _resultobj;
782 int _result;
783 wxListEvent * _arg0;
784 int _arg1;
785 PyObject * _argo0 = 0;
786 char *_kwnames[] = { "self","m_code", NULL };
787
788 self = self;
789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1))
790 return NULL;
791 if (_argo0) {
792 if (_argo0 == Py_None) { _arg0 = NULL; }
793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p.");
795 return NULL;
796 }
797 }
798 {
799 wxPy_BEGIN_ALLOW_THREADS;
800 _result = (int )wxListEvent_m_code_set(_arg0,_arg1);
801
802 wxPy_END_ALLOW_THREADS;
803 } _resultobj = Py_BuildValue("i",_result);
804 return _resultobj;
805 }
806
807 #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code)
808 static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
809 PyObject * _resultobj;
810 int _result;
811 wxListEvent * _arg0;
812 PyObject * _argo0 = 0;
813 char *_kwnames[] = { "self", NULL };
814
815 self = self;
816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0))
817 return NULL;
818 if (_argo0) {
819 if (_argo0 == Py_None) { _arg0 = NULL; }
820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p.");
822 return NULL;
823 }
824 }
825 {
826 wxPy_BEGIN_ALLOW_THREADS;
827 _result = (int )wxListEvent_m_code_get(_arg0);
828
829 wxPy_END_ALLOW_THREADS;
830 } _resultobj = Py_BuildValue("i",_result);
831 return _resultobj;
832 }
833
834 #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval)
835 static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
836 PyObject * _resultobj;
837 long _result;
838 wxListEvent * _arg0;
839 long _arg1;
840 PyObject * _argo0 = 0;
841 char *_kwnames[] = { "self","m_itemIndex", NULL };
842
843 self = self;
844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1))
845 return NULL;
846 if (_argo0) {
847 if (_argo0 == Py_None) { _arg0 = NULL; }
848 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
849 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p.");
850 return NULL;
851 }
852 }
853 {
854 wxPy_BEGIN_ALLOW_THREADS;
855 _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1);
856
857 wxPy_END_ALLOW_THREADS;
858 } _resultobj = Py_BuildValue("l",_result);
859 return _resultobj;
860 }
861
862 #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex)
863 static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
864 PyObject * _resultobj;
865 long _result;
866 wxListEvent * _arg0;
867 PyObject * _argo0 = 0;
868 char *_kwnames[] = { "self", NULL };
869
870 self = self;
871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0))
872 return NULL;
873 if (_argo0) {
874 if (_argo0 == Py_None) { _arg0 = NULL; }
875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p.");
877 return NULL;
878 }
879 }
880 {
881 wxPy_BEGIN_ALLOW_THREADS;
882 _result = (long )wxListEvent_m_itemIndex_get(_arg0);
883
884 wxPy_END_ALLOW_THREADS;
885 } _resultobj = Py_BuildValue("l",_result);
886 return _resultobj;
887 }
888
889 #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval)
890 static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
891 PyObject * _resultobj;
892 long _result;
893 wxListEvent * _arg0;
894 long _arg1;
895 PyObject * _argo0 = 0;
896 char *_kwnames[] = { "self","m_oldItemIndex", NULL };
897
898 self = self;
899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1))
900 return NULL;
901 if (_argo0) {
902 if (_argo0 == Py_None) { _arg0 = NULL; }
903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p.");
905 return NULL;
906 }
907 }
908 {
909 wxPy_BEGIN_ALLOW_THREADS;
910 _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1);
911
912 wxPy_END_ALLOW_THREADS;
913 } _resultobj = Py_BuildValue("l",_result);
914 return _resultobj;
915 }
916
917 #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex)
918 static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
919 PyObject * _resultobj;
920 long _result;
921 wxListEvent * _arg0;
922 PyObject * _argo0 = 0;
923 char *_kwnames[] = { "self", NULL };
924
925 self = self;
926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0))
927 return NULL;
928 if (_argo0) {
929 if (_argo0 == Py_None) { _arg0 = NULL; }
930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p.");
932 return NULL;
933 }
934 }
935 {
936 wxPy_BEGIN_ALLOW_THREADS;
937 _result = (long )wxListEvent_m_oldItemIndex_get(_arg0);
938
939 wxPy_END_ALLOW_THREADS;
940 } _resultobj = Py_BuildValue("l",_result);
941 return _resultobj;
942 }
943
944 #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
945 static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
946 PyObject * _resultobj;
947 int _result;
948 wxListEvent * _arg0;
949 int _arg1;
950 PyObject * _argo0 = 0;
951 char *_kwnames[] = { "self","m_col", NULL };
952
953 self = self;
954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1))
955 return NULL;
956 if (_argo0) {
957 if (_argo0 == Py_None) { _arg0 = NULL; }
958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p.");
960 return NULL;
961 }
962 }
963 {
964 wxPy_BEGIN_ALLOW_THREADS;
965 _result = (int )wxListEvent_m_col_set(_arg0,_arg1);
966
967 wxPy_END_ALLOW_THREADS;
968 } _resultobj = Py_BuildValue("i",_result);
969 return _resultobj;
970 }
971
972 #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col)
973 static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
974 PyObject * _resultobj;
975 int _result;
976 wxListEvent * _arg0;
977 PyObject * _argo0 = 0;
978 char *_kwnames[] = { "self", NULL };
979
980 self = self;
981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0))
982 return NULL;
983 if (_argo0) {
984 if (_argo0 == Py_None) { _arg0 = NULL; }
985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p.");
987 return NULL;
988 }
989 }
990 {
991 wxPy_BEGIN_ALLOW_THREADS;
992 _result = (int )wxListEvent_m_col_get(_arg0);
993
994 wxPy_END_ALLOW_THREADS;
995 } _resultobj = Py_BuildValue("i",_result);
996 return _resultobj;
997 }
998
999 #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval)
1000 static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1001 PyObject * _resultobj;
1002 bool _result;
1003 wxListEvent * _arg0;
1004 bool _arg1;
1005 PyObject * _argo0 = 0;
1006 int tempbool1;
1007 char *_kwnames[] = { "self","m_cancelled", NULL };
1008
1009 self = self;
1010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1))
1011 return NULL;
1012 if (_argo0) {
1013 if (_argo0 == Py_None) { _arg0 = NULL; }
1014 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1015 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p.");
1016 return NULL;
1017 }
1018 }
1019 _arg1 = (bool ) tempbool1;
1020 {
1021 wxPy_BEGIN_ALLOW_THREADS;
1022 _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1);
1023
1024 wxPy_END_ALLOW_THREADS;
1025 } _resultobj = Py_BuildValue("i",_result);
1026 return _resultobj;
1027 }
1028
1029 #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled)
1030 static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1031 PyObject * _resultobj;
1032 bool _result;
1033 wxListEvent * _arg0;
1034 PyObject * _argo0 = 0;
1035 char *_kwnames[] = { "self", NULL };
1036
1037 self = self;
1038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0))
1039 return NULL;
1040 if (_argo0) {
1041 if (_argo0 == Py_None) { _arg0 = NULL; }
1042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p.");
1044 return NULL;
1045 }
1046 }
1047 {
1048 wxPy_BEGIN_ALLOW_THREADS;
1049 _result = (bool )wxListEvent_m_cancelled_get(_arg0);
1050
1051 wxPy_END_ALLOW_THREADS;
1052 } _resultobj = Py_BuildValue("i",_result);
1053 return _resultobj;
1054 }
1055
1056 #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval)
1057 static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1058 PyObject * _resultobj;
1059 wxPoint * _result;
1060 wxListEvent * _arg0;
1061 wxPoint * _arg1;
1062 PyObject * _argo0 = 0;
1063 wxPoint temp;
1064 PyObject * _obj1 = 0;
1065 char *_kwnames[] = { "self","m_pointDrag", NULL };
1066 char _ptemp[128];
1067
1068 self = self;
1069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1))
1070 return NULL;
1071 if (_argo0) {
1072 if (_argo0 == Py_None) { _arg0 = NULL; }
1073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p.");
1075 return NULL;
1076 }
1077 }
1078 {
1079 _arg1 = &temp;
1080 if (! wxPoint_helper(_obj1, &_arg1))
1081 return NULL;
1082 }
1083 {
1084 wxPy_BEGIN_ALLOW_THREADS;
1085 _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1);
1086
1087 wxPy_END_ALLOW_THREADS;
1088 } if (_result) {
1089 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
1090 _resultobj = Py_BuildValue("s",_ptemp);
1091 } else {
1092 Py_INCREF(Py_None);
1093 _resultobj = Py_None;
1094 }
1095 return _resultobj;
1096 }
1097
1098 #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag)
1099 static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1100 PyObject * _resultobj;
1101 wxPoint * _result;
1102 wxListEvent * _arg0;
1103 PyObject * _argo0 = 0;
1104 char *_kwnames[] = { "self", NULL };
1105 char _ptemp[128];
1106
1107 self = self;
1108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0))
1109 return NULL;
1110 if (_argo0) {
1111 if (_argo0 == Py_None) { _arg0 = NULL; }
1112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p.");
1114 return NULL;
1115 }
1116 }
1117 {
1118 wxPy_BEGIN_ALLOW_THREADS;
1119 _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0);
1120
1121 wxPy_END_ALLOW_THREADS;
1122 } if (_result) {
1123 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
1124 _resultobj = Py_BuildValue("s",_ptemp);
1125 } else {
1126 Py_INCREF(Py_None);
1127 _resultobj = Py_None;
1128 }
1129 return _resultobj;
1130 }
1131
1132 #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval)
1133 static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1134 PyObject * _resultobj;
1135 wxListItem * _result;
1136 wxListEvent * _arg0;
1137 wxListItem * _arg1;
1138 PyObject * _argo0 = 0;
1139 PyObject * _argo1 = 0;
1140 char *_kwnames[] = { "self","m_item", NULL };
1141 char _ptemp[128];
1142
1143 self = self;
1144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1))
1145 return NULL;
1146 if (_argo0) {
1147 if (_argo0 == Py_None) { _arg0 = NULL; }
1148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p.");
1150 return NULL;
1151 }
1152 }
1153 if (_argo1) {
1154 if (_argo1 == Py_None) { _arg1 = NULL; }
1155 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
1156 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p.");
1157 return NULL;
1158 }
1159 }
1160 {
1161 wxPy_BEGIN_ALLOW_THREADS;
1162 _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1);
1163
1164 wxPy_END_ALLOW_THREADS;
1165 } if (_result) {
1166 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
1167 _resultobj = Py_BuildValue("s",_ptemp);
1168 } else {
1169 Py_INCREF(Py_None);
1170 _resultobj = Py_None;
1171 }
1172 return _resultobj;
1173 }
1174
1175 #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item)
1176 static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1177 PyObject * _resultobj;
1178 wxListItem * _result;
1179 wxListEvent * _arg0;
1180 PyObject * _argo0 = 0;
1181 char *_kwnames[] = { "self", NULL };
1182 char _ptemp[128];
1183
1184 self = self;
1185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0))
1186 return NULL;
1187 if (_argo0) {
1188 if (_argo0 == Py_None) { _arg0 = NULL; }
1189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p.");
1191 return NULL;
1192 }
1193 }
1194 {
1195 wxPy_BEGIN_ALLOW_THREADS;
1196 _result = (wxListItem *)wxListEvent_m_item_get(_arg0);
1197
1198 wxPy_END_ALLOW_THREADS;
1199 } if (_result) {
1200 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
1201 _resultobj = Py_BuildValue("s",_ptemp);
1202 } else {
1203 Py_INCREF(Py_None);
1204 _resultobj = Py_None;
1205 }
1206 return _resultobj;
1207 }
1208
1209 static void *SwigwxListCtrlTowxControl(void *ptr) {
1210 wxListCtrl *src;
1211 wxControl *dest;
1212 src = (wxListCtrl *) ptr;
1213 dest = (wxControl *) src;
1214 return (void *) dest;
1215 }
1216
1217 static void *SwigwxListCtrlTowxWindow(void *ptr) {
1218 wxListCtrl *src;
1219 wxWindow *dest;
1220 src = (wxListCtrl *) ptr;
1221 dest = (wxWindow *) src;
1222 return (void *) dest;
1223 }
1224
1225 static void *SwigwxListCtrlTowxEvtHandler(void *ptr) {
1226 wxListCtrl *src;
1227 wxEvtHandler *dest;
1228 src = (wxListCtrl *) ptr;
1229 dest = (wxEvtHandler *) src;
1230 return (void *) dest;
1231 }
1232
1233 #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1234 static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
1235 PyObject * _resultobj;
1236 wxListCtrl * _result;
1237 wxWindow * _arg0;
1238 wxWindowID _arg1;
1239 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
1240 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
1241 long _arg4 = (long ) wxLC_ICON;
1242 wxValidator * _arg5 = (wxValidator *) &wxPyDefaultValidator;
1243 char * _arg6 = (char *) "listCtrl";
1244 PyObject * _argo0 = 0;
1245 wxPoint temp;
1246 PyObject * _obj2 = 0;
1247 wxSize temp0;
1248 PyObject * _obj3 = 0;
1249 PyObject * _argo5 = 0;
1250 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
1251 char _ptemp[128];
1252
1253 self = self;
1254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
1255 return NULL;
1256 if (_argo0) {
1257 if (_argo0 == Py_None) { _arg0 = NULL; }
1258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p.");
1260 return NULL;
1261 }
1262 }
1263 if (_obj2)
1264 {
1265 _arg2 = &temp;
1266 if (! wxPoint_helper(_obj2, &_arg2))
1267 return NULL;
1268 }
1269 if (_obj3)
1270 {
1271 _arg3 = &temp0;
1272 if (! wxSize_helper(_obj3, &_arg3))
1273 return NULL;
1274 }
1275 if (_argo5) {
1276 if (_argo5 == Py_None) { _arg5 = NULL; }
1277 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
1278 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p.");
1279 return NULL;
1280 }
1281 }
1282 {
1283 wxPy_BEGIN_ALLOW_THREADS;
1284 _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
1285
1286 wxPy_END_ALLOW_THREADS;
1287 } if (_result) {
1288 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p");
1289 _resultobj = Py_BuildValue("s",_ptemp);
1290 } else {
1291 Py_INCREF(Py_None);
1292 _resultobj = Py_None;
1293 }
1294 return _resultobj;
1295 }
1296
1297 #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0))
1298 static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
1299 PyObject * _resultobj;
1300 bool _result;
1301 wxListCtrl * _arg0;
1302 int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT);
1303 PyObject * _argo0 = 0;
1304 char *_kwnames[] = { "self","flag", NULL };
1305
1306 self = self;
1307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1))
1308 return NULL;
1309 if (_argo0) {
1310 if (_argo0 == Py_None) { _arg0 = NULL; }
1311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p.");
1313 return NULL;
1314 }
1315 }
1316 {
1317 wxPy_BEGIN_ALLOW_THREADS;
1318 _result = (bool )wxListCtrl_Arrange(_arg0,_arg1);
1319
1320 wxPy_END_ALLOW_THREADS;
1321 } _resultobj = Py_BuildValue("i",_result);
1322 return _resultobj;
1323 }
1324
1325 #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0))
1326 static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
1327 PyObject * _resultobj;
1328 bool _result;
1329 wxListCtrl * _arg0;
1330 long _arg1;
1331 PyObject * _argo0 = 0;
1332 char *_kwnames[] = { "self","item", NULL };
1333
1334 self = self;
1335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1))
1336 return NULL;
1337 if (_argo0) {
1338 if (_argo0 == Py_None) { _arg0 = NULL; }
1339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p.");
1341 return NULL;
1342 }
1343 }
1344 {
1345 wxPy_BEGIN_ALLOW_THREADS;
1346 _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1);
1347
1348 wxPy_END_ALLOW_THREADS;
1349 } _resultobj = Py_BuildValue("i",_result);
1350 return _resultobj;
1351 }
1352
1353 #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
1354 static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
1355 PyObject * _resultobj;
1356 bool _result;
1357 wxListCtrl * _arg0;
1358 PyObject * _argo0 = 0;
1359 char *_kwnames[] = { "self", NULL };
1360
1361 self = self;
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0))
1363 return NULL;
1364 if (_argo0) {
1365 if (_argo0 == Py_None) { _arg0 = NULL; }
1366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p.");
1368 return NULL;
1369 }
1370 }
1371 {
1372 wxPy_BEGIN_ALLOW_THREADS;
1373 _result = (bool )wxListCtrl_DeleteAllItems(_arg0);
1374
1375 wxPy_END_ALLOW_THREADS;
1376 } _resultobj = Py_BuildValue("i",_result);
1377 return _resultobj;
1378 }
1379
1380 #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0))
1381 static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
1382 PyObject * _resultobj;
1383 bool _result;
1384 wxListCtrl * _arg0;
1385 int _arg1;
1386 PyObject * _argo0 = 0;
1387 char *_kwnames[] = { "self","col", NULL };
1388
1389 self = self;
1390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1))
1391 return NULL;
1392 if (_argo0) {
1393 if (_argo0 == Py_None) { _arg0 = NULL; }
1394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p.");
1396 return NULL;
1397 }
1398 }
1399 {
1400 wxPy_BEGIN_ALLOW_THREADS;
1401 _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1);
1402
1403 wxPy_END_ALLOW_THREADS;
1404 } _resultobj = Py_BuildValue("i",_result);
1405 return _resultobj;
1406 }
1407
1408 #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns())
1409 static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
1410 PyObject * _resultobj;
1411 bool _result;
1412 wxListCtrl * _arg0;
1413 PyObject * _argo0 = 0;
1414 char *_kwnames[] = { "self", NULL };
1415
1416 self = self;
1417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0))
1418 return NULL;
1419 if (_argo0) {
1420 if (_argo0 == Py_None) { _arg0 = NULL; }
1421 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1422 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p.");
1423 return NULL;
1424 }
1425 }
1426 {
1427 wxPy_BEGIN_ALLOW_THREADS;
1428 _result = (bool )wxListCtrl_DeleteAllColumns(_arg0);
1429
1430 wxPy_END_ALLOW_THREADS;
1431 } _resultobj = Py_BuildValue("i",_result);
1432 return _resultobj;
1433 }
1434
1435 #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll())
1436 static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
1437 PyObject * _resultobj;
1438 wxListCtrl * _arg0;
1439 PyObject * _argo0 = 0;
1440 char *_kwnames[] = { "self", NULL };
1441
1442 self = self;
1443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0))
1444 return NULL;
1445 if (_argo0) {
1446 if (_argo0 == Py_None) { _arg0 = NULL; }
1447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p.");
1449 return NULL;
1450 }
1451 }
1452 {
1453 wxPy_BEGIN_ALLOW_THREADS;
1454 wxListCtrl_ClearAll(_arg0);
1455
1456 wxPy_END_ALLOW_THREADS;
1457 } Py_INCREF(Py_None);
1458 _resultobj = Py_None;
1459 return _resultobj;
1460 }
1461
1462 #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
1463 static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1464 PyObject * _resultobj;
1465 wxTextCtrl * _result;
1466 wxListCtrl * _arg0;
1467 long _arg1;
1468 PyObject * _argo0 = 0;
1469 char *_kwnames[] = { "self","item", NULL };
1470 char _ptemp[128];
1471
1472 self = self;
1473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1))
1474 return NULL;
1475 if (_argo0) {
1476 if (_argo0 == Py_None) { _arg0 = NULL; }
1477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p.");
1479 return NULL;
1480 }
1481 }
1482 {
1483 wxPy_BEGIN_ALLOW_THREADS;
1484 _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1);
1485
1486 wxPy_END_ALLOW_THREADS;
1487 } if (_result) {
1488 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
1489 _resultobj = Py_BuildValue("s",_ptemp);
1490 } else {
1491 Py_INCREF(Py_None);
1492 _resultobj = Py_None;
1493 }
1494 return _resultobj;
1495 }
1496
1497 #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0))
1498 static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1499 PyObject * _resultobj;
1500 bool _result;
1501 wxListCtrl * _arg0;
1502 bool _arg1;
1503 PyObject * _argo0 = 0;
1504 int tempbool1;
1505 char *_kwnames[] = { "self","cancel", NULL };
1506
1507 self = self;
1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1))
1509 return NULL;
1510 if (_argo0) {
1511 if (_argo0 == Py_None) { _arg0 = NULL; }
1512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxListCtrl_p.");
1514 return NULL;
1515 }
1516 }
1517 _arg1 = (bool ) tempbool1;
1518 {
1519 wxPy_BEGIN_ALLOW_THREADS;
1520 _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1);
1521
1522 wxPy_END_ALLOW_THREADS;
1523 } _resultobj = Py_BuildValue("i",_result);
1524 return _resultobj;
1525 }
1526
1527 #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
1528 static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1529 PyObject * _resultobj;
1530 wxTextCtrl * _result;
1531 wxListCtrl * _arg0;
1532 PyObject * _argo0 = 0;
1533 char *_kwnames[] = { "self", NULL };
1534 char _ptemp[128];
1535
1536 self = self;
1537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0))
1538 return NULL;
1539 if (_argo0) {
1540 if (_argo0 == Py_None) { _arg0 = NULL; }
1541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxListCtrl_p.");
1543 return NULL;
1544 }
1545 }
1546 {
1547 wxPy_BEGIN_ALLOW_THREADS;
1548 _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0);
1549
1550 wxPy_END_ALLOW_THREADS;
1551 } if (_result) {
1552 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
1553 _resultobj = Py_BuildValue("s",_ptemp);
1554 } else {
1555 Py_INCREF(Py_None);
1556 _resultobj = Py_None;
1557 }
1558 return _resultobj;
1559 }
1560
1561 #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
1562 static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1563 PyObject * _resultobj;
1564 bool _result;
1565 wxListCtrl * _arg0;
1566 long _arg1;
1567 PyObject * _argo0 = 0;
1568 char *_kwnames[] = { "self","item", NULL };
1569
1570 self = self;
1571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1))
1572 return NULL;
1573 if (_argo0) {
1574 if (_argo0 == Py_None) { _arg0 = NULL; }
1575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p.");
1577 return NULL;
1578 }
1579 }
1580 {
1581 wxPy_BEGIN_ALLOW_THREADS;
1582 _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1);
1583
1584 wxPy_END_ALLOW_THREADS;
1585 } _resultobj = Py_BuildValue("i",_result);
1586 return _resultobj;
1587 }
1588
1589 #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
1590 static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
1591 PyObject * _resultobj;
1592 long _result;
1593 wxListCtrl * _arg0;
1594 long _arg1;
1595 wxString * _arg2;
1596 bool _arg3 = (bool ) FALSE;
1597 PyObject * _argo0 = 0;
1598 PyObject * _obj2 = 0;
1599 int tempbool3 = (int) FALSE;
1600 char *_kwnames[] = { "self","start","str","partial", NULL };
1601
1602 self = self;
1603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
1604 return NULL;
1605 if (_argo0) {
1606 if (_argo0 == Py_None) { _arg0 = NULL; }
1607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p.");
1609 return NULL;
1610 }
1611 }
1612 {
1613 if (!PyString_Check(_obj2)) {
1614 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1615 return NULL;
1616 }
1617 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1618 }
1619 _arg3 = (bool ) tempbool3;
1620 {
1621 wxPy_BEGIN_ALLOW_THREADS;
1622 _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3);
1623
1624 wxPy_END_ALLOW_THREADS;
1625 } _resultobj = Py_BuildValue("l",_result);
1626 {
1627 if (_obj2)
1628 delete _arg2;
1629 }
1630 return _resultobj;
1631 }
1632
1633 #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1))
1634 static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
1635 PyObject * _resultobj;
1636 long _result;
1637 wxListCtrl * _arg0;
1638 long _arg1;
1639 long _arg2;
1640 PyObject * _argo0 = 0;
1641 char *_kwnames[] = { "self","start","data", NULL };
1642
1643 self = self;
1644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2))
1645 return NULL;
1646 if (_argo0) {
1647 if (_argo0 == Py_None) { _arg0 = NULL; }
1648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p.");
1650 return NULL;
1651 }
1652 }
1653 {
1654 wxPy_BEGIN_ALLOW_THREADS;
1655 _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2);
1656
1657 wxPy_END_ALLOW_THREADS;
1658 } _resultobj = Py_BuildValue("l",_result);
1659 return _resultobj;
1660 }
1661
1662 #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
1663 static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
1664 PyObject * _resultobj;
1665 long _result;
1666 wxListCtrl * _arg0;
1667 long _arg1;
1668 wxPoint * _arg2;
1669 int _arg3;
1670 PyObject * _argo0 = 0;
1671 wxPoint temp;
1672 PyObject * _obj2 = 0;
1673 char *_kwnames[] = { "self","start","pt","direction", NULL };
1674
1675 self = self;
1676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
1677 return NULL;
1678 if (_argo0) {
1679 if (_argo0 == Py_None) { _arg0 = NULL; }
1680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxListCtrl_p.");
1682 return NULL;
1683 }
1684 }
1685 {
1686 _arg2 = &temp;
1687 if (! wxPoint_helper(_obj2, &_arg2))
1688 return NULL;
1689 }
1690 {
1691 wxPy_BEGIN_ALLOW_THREADS;
1692 _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3);
1693
1694 wxPy_END_ALLOW_THREADS;
1695 } _resultobj = Py_BuildValue("l",_result);
1696 return _resultobj;
1697 }
1698
1699 #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1))
1700 static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
1701 PyObject * _resultobj;
1702 bool _result;
1703 wxListCtrl * _arg0;
1704 int _arg1;
1705 wxListItem * _arg2;
1706 PyObject * _argo0 = 0;
1707 PyObject * _argo2 = 0;
1708 char *_kwnames[] = { "self","col","item", NULL };
1709
1710 self = self;
1711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
1712 return NULL;
1713 if (_argo0) {
1714 if (_argo0 == Py_None) { _arg0 = NULL; }
1715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p.");
1717 return NULL;
1718 }
1719 }
1720 if (_argo2) {
1721 if (_argo2 == Py_None) { _arg2 = NULL; }
1722 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
1723 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p.");
1724 return NULL;
1725 }
1726 }
1727 {
1728 wxPy_BEGIN_ALLOW_THREADS;
1729 _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2);
1730
1731 wxPy_END_ALLOW_THREADS;
1732 } _resultobj = Py_BuildValue("i",_result);
1733 return _resultobj;
1734 }
1735
1736 #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0))
1737 static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1738 PyObject * _resultobj;
1739 int _result;
1740 wxListCtrl * _arg0;
1741 int _arg1;
1742 PyObject * _argo0 = 0;
1743 char *_kwnames[] = { "self","col", NULL };
1744
1745 self = self;
1746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1))
1747 return NULL;
1748 if (_argo0) {
1749 if (_argo0 == Py_None) { _arg0 = NULL; }
1750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p.");
1752 return NULL;
1753 }
1754 }
1755 {
1756 wxPy_BEGIN_ALLOW_THREADS;
1757 _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1);
1758
1759 wxPy_END_ALLOW_THREADS;
1760 } _resultobj = Py_BuildValue("i",_result);
1761 return _resultobj;
1762 }
1763
1764 #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage())
1765 static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
1766 PyObject * _resultobj;
1767 int _result;
1768 wxListCtrl * _arg0;
1769 PyObject * _argo0 = 0;
1770 char *_kwnames[] = { "self", NULL };
1771
1772 self = self;
1773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0))
1774 return NULL;
1775 if (_argo0) {
1776 if (_argo0 == Py_None) { _arg0 = NULL; }
1777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p.");
1779 return NULL;
1780 }
1781 }
1782 {
1783 wxPy_BEGIN_ALLOW_THREADS;
1784 _result = (int )wxListCtrl_GetCountPerPage(_arg0);
1785
1786 wxPy_END_ALLOW_THREADS;
1787 } _resultobj = Py_BuildValue("i",_result);
1788 return _resultobj;
1789 }
1790
1791 #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0))
1792 static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
1793 PyObject * _resultobj;
1794 wxImageList * _result;
1795 wxListCtrl * _arg0;
1796 int _arg1;
1797 PyObject * _argo0 = 0;
1798 char *_kwnames[] = { "self","which", NULL };
1799 char _ptemp[128];
1800
1801 self = self;
1802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1))
1803 return NULL;
1804 if (_argo0) {
1805 if (_argo0 == Py_None) { _arg0 = NULL; }
1806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p.");
1808 return NULL;
1809 }
1810 }
1811 {
1812 wxPy_BEGIN_ALLOW_THREADS;
1813 _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1);
1814
1815 wxPy_END_ALLOW_THREADS;
1816 } if (_result) {
1817 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
1818 _resultobj = Py_BuildValue("s",_ptemp);
1819 } else {
1820 Py_INCREF(Py_None);
1821 _resultobj = Py_None;
1822 }
1823 return _resultobj;
1824 }
1825
1826 #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0))
1827 static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
1828 PyObject * _resultobj;
1829 long _result;
1830 wxListCtrl * _arg0;
1831 long _arg1;
1832 PyObject * _argo0 = 0;
1833 char *_kwnames[] = { "self","item", NULL };
1834
1835 self = self;
1836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1))
1837 return NULL;
1838 if (_argo0) {
1839 if (_argo0 == Py_None) { _arg0 = NULL; }
1840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p.");
1842 return NULL;
1843 }
1844 }
1845 {
1846 wxPy_BEGIN_ALLOW_THREADS;
1847 _result = (long )wxListCtrl_GetItemData(_arg0,_arg1);
1848
1849 wxPy_END_ALLOW_THREADS;
1850 } _resultobj = Py_BuildValue("l",_result);
1851 return _resultobj;
1852 }
1853
1854 static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId,int col) {
1855 wxListItem* info = new wxListItem;
1856 info->m_itemId = itemId;
1857 info->m_col = col;
1858 info->m_mask = 0xFFFF;
1859 self->GetItem(*info);
1860 return info;
1861 }
1862 static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
1863 PyObject * _resultobj;
1864 wxListItem * _result;
1865 wxListCtrl * _arg0;
1866 long _arg1;
1867 int _arg2 = (int ) 0;
1868 PyObject * _argo0 = 0;
1869 char *_kwnames[] = { "self","itemId","col", NULL };
1870 char _ptemp[128];
1871
1872 self = self;
1873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2))
1874 return NULL;
1875 if (_argo0) {
1876 if (_argo0 == Py_None) { _arg0 = NULL; }
1877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p.");
1879 return NULL;
1880 }
1881 }
1882 {
1883 wxPy_BEGIN_ALLOW_THREADS;
1884 _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2);
1885
1886 wxPy_END_ALLOW_THREADS;
1887 } if (_result) {
1888 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
1889 _resultobj = Py_BuildValue("s",_ptemp);
1890 } else {
1891 Py_INCREF(Py_None);
1892 _resultobj = Py_None;
1893 }
1894 return _resultobj;
1895 }
1896
1897 static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) {
1898 wxPoint* pos = new wxPoint;
1899 self->GetItemPosition(item, *pos);
1900 return pos;
1901 }
1902 static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject * _resultobj;
1904 wxPoint * _result;
1905 wxListCtrl * _arg0;
1906 long _arg1;
1907 PyObject * _argo0 = 0;
1908 char *_kwnames[] = { "self","item", NULL };
1909 char _ptemp[128];
1910
1911 self = self;
1912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1))
1913 return NULL;
1914 if (_argo0) {
1915 if (_argo0 == Py_None) { _arg0 = NULL; }
1916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p.");
1918 return NULL;
1919 }
1920 }
1921 {
1922 wxPy_BEGIN_ALLOW_THREADS;
1923 _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1);
1924
1925 wxPy_END_ALLOW_THREADS;
1926 } if (_result) {
1927 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
1928 _resultobj = Py_BuildValue("s",_ptemp);
1929 } else {
1930 Py_INCREF(Py_None);
1931 _resultobj = Py_None;
1932 }
1933 return _resultobj;
1934 }
1935
1936 static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) {
1937 wxRect* rect= new wxRect;
1938 self->GetItemRect(item, *rect, code);
1939 return rect;
1940 }
1941 static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
1942 PyObject * _resultobj;
1943 wxRect * _result;
1944 wxListCtrl * _arg0;
1945 long _arg1;
1946 int _arg2 = (int ) (wxLIST_RECT_BOUNDS);
1947 PyObject * _argo0 = 0;
1948 char *_kwnames[] = { "self","item","code", NULL };
1949 char _ptemp[128];
1950
1951 self = self;
1952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2))
1953 return NULL;
1954 if (_argo0) {
1955 if (_argo0 == Py_None) { _arg0 = NULL; }
1956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p.");
1958 return NULL;
1959 }
1960 }
1961 {
1962 wxPy_BEGIN_ALLOW_THREADS;
1963 _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2);
1964
1965 wxPy_END_ALLOW_THREADS;
1966 } if (_result) {
1967 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
1968 _resultobj = Py_BuildValue("s",_ptemp);
1969 } else {
1970 Py_INCREF(Py_None);
1971 _resultobj = Py_None;
1972 }
1973 return _resultobj;
1974 }
1975
1976 #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1))
1977 static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
1978 PyObject * _resultobj;
1979 int _result;
1980 wxListCtrl * _arg0;
1981 long _arg1;
1982 long _arg2;
1983 PyObject * _argo0 = 0;
1984 char *_kwnames[] = { "self","item","stateMask", NULL };
1985
1986 self = self;
1987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2))
1988 return NULL;
1989 if (_argo0) {
1990 if (_argo0 == Py_None) { _arg0 = NULL; }
1991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p.");
1993 return NULL;
1994 }
1995 }
1996 {
1997 wxPy_BEGIN_ALLOW_THREADS;
1998 _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2);
1999
2000 wxPy_END_ALLOW_THREADS;
2001 } _resultobj = Py_BuildValue("i",_result);
2002 return _resultobj;
2003 }
2004
2005 #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount())
2006 static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2007 PyObject * _resultobj;
2008 int _result;
2009 wxListCtrl * _arg0;
2010 PyObject * _argo0 = 0;
2011 char *_kwnames[] = { "self", NULL };
2012
2013 self = self;
2014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0))
2015 return NULL;
2016 if (_argo0) {
2017 if (_argo0 == Py_None) { _arg0 = NULL; }
2018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p.");
2020 return NULL;
2021 }
2022 }
2023 {
2024 wxPy_BEGIN_ALLOW_THREADS;
2025 _result = (int )wxListCtrl_GetItemCount(_arg0);
2026
2027 wxPy_END_ALLOW_THREADS;
2028 } _resultobj = Py_BuildValue("i",_result);
2029 return _resultobj;
2030 }
2031
2032 #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0))
2033 static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
2034 PyObject * _resultobj;
2035 int _result;
2036 wxListCtrl * _arg0;
2037 bool _arg1;
2038 PyObject * _argo0 = 0;
2039 int tempbool1;
2040 char *_kwnames[] = { "self","isSmall", NULL };
2041
2042 self = self;
2043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1))
2044 return NULL;
2045 if (_argo0) {
2046 if (_argo0 == Py_None) { _arg0 = NULL; }
2047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p.");
2049 return NULL;
2050 }
2051 }
2052 _arg1 = (bool ) tempbool1;
2053 {
2054 wxPy_BEGIN_ALLOW_THREADS;
2055 _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1);
2056
2057 wxPy_END_ALLOW_THREADS;
2058 } _resultobj = Py_BuildValue("i",_result);
2059 return _resultobj;
2060 }
2061
2062 #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
2063 static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject * _resultobj;
2065 wxString * _result;
2066 wxListCtrl * _arg0;
2067 long _arg1;
2068 PyObject * _argo0 = 0;
2069 char *_kwnames[] = { "self","item", NULL };
2070
2071 self = self;
2072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1))
2073 return NULL;
2074 if (_argo0) {
2075 if (_argo0 == Py_None) { _arg0 = NULL; }
2076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p.");
2078 return NULL;
2079 }
2080 }
2081 {
2082 wxPy_BEGIN_ALLOW_THREADS;
2083 _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1));
2084
2085 wxPy_END_ALLOW_THREADS;
2086 }{
2087 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2088 }
2089 {
2090 delete _result;
2091 }
2092 return _resultobj;
2093 }
2094
2095 #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2))
2096 static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2097 PyObject * _resultobj;
2098 long _result;
2099 wxListCtrl * _arg0;
2100 long _arg1;
2101 int _arg2 = (int ) (wxLIST_NEXT_ALL);
2102 int _arg3 = (int ) (wxLIST_STATE_DONTCARE);
2103 PyObject * _argo0 = 0;
2104 char *_kwnames[] = { "self","item","geometry","state", NULL };
2105
2106 self = self;
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2108 return NULL;
2109 if (_argo0) {
2110 if (_argo0 == Py_None) { _arg0 = NULL; }
2111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p.");
2113 return NULL;
2114 }
2115 }
2116 {
2117 wxPy_BEGIN_ALLOW_THREADS;
2118 _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3);
2119
2120 wxPy_END_ALLOW_THREADS;
2121 } _resultobj = Py_BuildValue("l",_result);
2122 return _resultobj;
2123 }
2124
2125 #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount())
2126 static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2127 PyObject * _resultobj;
2128 int _result;
2129 wxListCtrl * _arg0;
2130 PyObject * _argo0 = 0;
2131 char *_kwnames[] = { "self", NULL };
2132
2133 self = self;
2134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0))
2135 return NULL;
2136 if (_argo0) {
2137 if (_argo0 == Py_None) { _arg0 = NULL; }
2138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p.");
2140 return NULL;
2141 }
2142 }
2143 {
2144 wxPy_BEGIN_ALLOW_THREADS;
2145 _result = (int )wxListCtrl_GetSelectedItemCount(_arg0);
2146
2147 wxPy_END_ALLOW_THREADS;
2148 } _resultobj = Py_BuildValue("i",_result);
2149 return _resultobj;
2150 }
2151
2152 #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour())
2153 static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2154 PyObject * _resultobj;
2155 wxColour * _result;
2156 wxListCtrl * _arg0;
2157 PyObject * _argo0 = 0;
2158 char *_kwnames[] = { "self", NULL };
2159 char _ptemp[128];
2160
2161 self = self;
2162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0))
2163 return NULL;
2164 if (_argo0) {
2165 if (_argo0 == Py_None) { _arg0 = NULL; }
2166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxListCtrl_p.");
2168 return NULL;
2169 }
2170 }
2171 {
2172 wxPy_BEGIN_ALLOW_THREADS;
2173 _result = new wxColour (wxListCtrl_GetTextColour(_arg0));
2174
2175 wxPy_END_ALLOW_THREADS;
2176 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
2177 _resultobj = Py_BuildValue("s",_ptemp);
2178 return _resultobj;
2179 }
2180
2181 #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
2182 static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2183 PyObject * _resultobj;
2184 wxListCtrl * _arg0;
2185 wxColour * _arg1;
2186 PyObject * _argo0 = 0;
2187 PyObject * _argo1 = 0;
2188 char *_kwnames[] = { "self","col", NULL };
2189
2190 self = self;
2191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_argo1))
2192 return NULL;
2193 if (_argo0) {
2194 if (_argo0 == Py_None) { _arg0 = NULL; }
2195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxListCtrl_p.");
2197 return NULL;
2198 }
2199 }
2200 if (_argo1) {
2201 if (_argo1 == Py_None) { _arg1 = NULL; }
2202 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
2203 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetTextColour. Expected _wxColour_p.");
2204 return NULL;
2205 }
2206 }
2207 {
2208 wxPy_BEGIN_ALLOW_THREADS;
2209 wxListCtrl_SetTextColour(_arg0,*_arg1);
2210
2211 wxPy_END_ALLOW_THREADS;
2212 } Py_INCREF(Py_None);
2213 _resultobj = Py_None;
2214 return _resultobj;
2215 }
2216
2217 #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem())
2218 static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2219 PyObject * _resultobj;
2220 long _result;
2221 wxListCtrl * _arg0;
2222 PyObject * _argo0 = 0;
2223 char *_kwnames[] = { "self", NULL };
2224
2225 self = self;
2226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0))
2227 return NULL;
2228 if (_argo0) {
2229 if (_argo0 == Py_None) { _arg0 = NULL; }
2230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p.");
2232 return NULL;
2233 }
2234 }
2235 {
2236 wxPy_BEGIN_ALLOW_THREADS;
2237 _result = (long )wxListCtrl_GetTopItem(_arg0);
2238
2239 wxPy_END_ALLOW_THREADS;
2240 } _resultobj = Py_BuildValue("l",_result);
2241 return _resultobj;
2242 }
2243
2244 #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
2245 static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
2246 PyObject * _resultobj;
2247 long _result;
2248 wxListCtrl * _arg0;
2249 wxPoint * _arg1;
2250 int * _arg2;
2251 int temp;
2252 PyObject * _argo0 = 0;
2253 wxPoint temp0;
2254 PyObject * _obj1 = 0;
2255 char *_kwnames[] = { "self","point", NULL };
2256
2257 self = self;
2258 {
2259 _arg2 = &temp;
2260 }
2261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1))
2262 return NULL;
2263 if (_argo0) {
2264 if (_argo0 == Py_None) { _arg0 = NULL; }
2265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p.");
2267 return NULL;
2268 }
2269 }
2270 {
2271 _arg1 = &temp0;
2272 if (! wxPoint_helper(_obj1, &_arg1))
2273 return NULL;
2274 }
2275 {
2276 wxPy_BEGIN_ALLOW_THREADS;
2277 _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2);
2278
2279 wxPy_END_ALLOW_THREADS;
2280 } _resultobj = Py_BuildValue("l",_result);
2281 {
2282 PyObject *o;
2283 o = PyInt_FromLong((long) (*_arg2));
2284 _resultobj = t_output_helper(_resultobj, o);
2285 }
2286 return _resultobj;
2287 }
2288
2289 #define wxListCtrl_InsertColumnWith(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
2290 static PyObject *_wrap_wxListCtrl_InsertColumnWith(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject * _resultobj;
2292 long _result;
2293 wxListCtrl * _arg0;
2294 long _arg1;
2295 wxListItem * _arg2;
2296 PyObject * _argo0 = 0;
2297 PyObject * _argo2 = 0;
2298 char *_kwnames[] = { "self","col","info", NULL };
2299
2300 self = self;
2301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnWith",_kwnames,&_argo0,&_arg1,&_argo2))
2302 return NULL;
2303 if (_argo0) {
2304 if (_argo0 == Py_None) { _arg0 = NULL; }
2305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnWith. Expected _wxListCtrl_p.");
2307 return NULL;
2308 }
2309 }
2310 if (_argo2) {
2311 if (_argo2 == Py_None) { _arg2 = NULL; }
2312 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
2313 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnWith. Expected _wxListItem_p.");
2314 return NULL;
2315 }
2316 }
2317 {
2318 wxPy_BEGIN_ALLOW_THREADS;
2319 _result = (long )wxListCtrl_InsertColumnWith(_arg0,_arg1,*_arg2);
2320
2321 wxPy_END_ALLOW_THREADS;
2322 } _resultobj = Py_BuildValue("l",_result);
2323 return _resultobj;
2324 }
2325
2326 #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2327 static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
2328 PyObject * _resultobj;
2329 long _result;
2330 wxListCtrl * _arg0;
2331 long _arg1;
2332 wxString * _arg2;
2333 int _arg3 = (int ) (wxLIST_FORMAT_LEFT);
2334 int _arg4 = (int ) -1;
2335 PyObject * _argo0 = 0;
2336 PyObject * _obj2 = 0;
2337 char *_kwnames[] = { "self","col","heading","format","width", NULL };
2338
2339 self = self;
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4))
2341 return NULL;
2342 if (_argo0) {
2343 if (_argo0 == Py_None) { _arg0 = NULL; }
2344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p.");
2346 return NULL;
2347 }
2348 }
2349 {
2350 if (!PyString_Check(_obj2)) {
2351 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2352 return NULL;
2353 }
2354 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2355 }
2356 {
2357 wxPy_BEGIN_ALLOW_THREADS;
2358 _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4);
2359
2360 wxPy_END_ALLOW_THREADS;
2361 } _resultobj = Py_BuildValue("l",_result);
2362 {
2363 if (_obj2)
2364 delete _arg2;
2365 }
2366 return _resultobj;
2367 }
2368
2369 #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0))
2370 static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2371 PyObject * _resultobj;
2372 long _result;
2373 wxListCtrl * _arg0;
2374 wxListItem * _arg1;
2375 PyObject * _argo0 = 0;
2376 PyObject * _argo1 = 0;
2377 char *_kwnames[] = { "self","info", NULL };
2378
2379 self = self;
2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1))
2381 return NULL;
2382 if (_argo0) {
2383 if (_argo0 == Py_None) { _arg0 = NULL; }
2384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p.");
2386 return NULL;
2387 }
2388 }
2389 if (_argo1) {
2390 if (_argo1 == Py_None) { _arg1 = NULL; }
2391 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
2392 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p.");
2393 return NULL;
2394 }
2395 }
2396 {
2397 wxPy_BEGIN_ALLOW_THREADS;
2398 _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1);
2399
2400 wxPy_END_ALLOW_THREADS;
2401 } _resultobj = Py_BuildValue("l",_result);
2402 return _resultobj;
2403 }
2404
2405 #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
2406 static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2407 PyObject * _resultobj;
2408 long _result;
2409 wxListCtrl * _arg0;
2410 long _arg1;
2411 wxString * _arg2;
2412 PyObject * _argo0 = 0;
2413 PyObject * _obj2 = 0;
2414 char *_kwnames[] = { "self","index","label", NULL };
2415
2416 self = self;
2417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2))
2418 return NULL;
2419 if (_argo0) {
2420 if (_argo0 == Py_None) { _arg0 = NULL; }
2421 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2422 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p.");
2423 return NULL;
2424 }
2425 }
2426 {
2427 if (!PyString_Check(_obj2)) {
2428 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2429 return NULL;
2430 }
2431 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2432 }
2433 {
2434 wxPy_BEGIN_ALLOW_THREADS;
2435 _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2);
2436
2437 wxPy_END_ALLOW_THREADS;
2438 } _resultobj = Py_BuildValue("l",_result);
2439 {
2440 if (_obj2)
2441 delete _arg2;
2442 }
2443 return _resultobj;
2444 }
2445
2446 #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
2447 static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2448 PyObject * _resultobj;
2449 long _result;
2450 wxListCtrl * _arg0;
2451 long _arg1;
2452 int _arg2;
2453 PyObject * _argo0 = 0;
2454 char *_kwnames[] = { "self","index","imageIndex", NULL };
2455
2456 self = self;
2457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2))
2458 return NULL;
2459 if (_argo0) {
2460 if (_argo0 == Py_None) { _arg0 = NULL; }
2461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p.");
2463 return NULL;
2464 }
2465 }
2466 {
2467 wxPy_BEGIN_ALLOW_THREADS;
2468 _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2);
2469
2470 wxPy_END_ALLOW_THREADS;
2471 } _resultobj = Py_BuildValue("l",_result);
2472 return _resultobj;
2473 }
2474
2475 #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2))
2476 static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2477 PyObject * _resultobj;
2478 long _result;
2479 wxListCtrl * _arg0;
2480 long _arg1;
2481 wxString * _arg2;
2482 int _arg3;
2483 PyObject * _argo0 = 0;
2484 PyObject * _obj2 = 0;
2485 char *_kwnames[] = { "self","index","label","imageIndex", NULL };
2486
2487 self = self;
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
2489 return NULL;
2490 if (_argo0) {
2491 if (_argo0 == Py_None) { _arg0 = NULL; }
2492 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2493 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p.");
2494 return NULL;
2495 }
2496 }
2497 {
2498 if (!PyString_Check(_obj2)) {
2499 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2500 return NULL;
2501 }
2502 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2503 }
2504 {
2505 wxPy_BEGIN_ALLOW_THREADS;
2506 _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3);
2507
2508 wxPy_END_ALLOW_THREADS;
2509 } _resultobj = Py_BuildValue("l",_result);
2510 {
2511 if (_obj2)
2512 delete _arg2;
2513 }
2514 return _resultobj;
2515 }
2516
2517 #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1))
2518 static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
2519 PyObject * _resultobj;
2520 bool _result;
2521 wxListCtrl * _arg0;
2522 int _arg1;
2523 int _arg2;
2524 PyObject * _argo0 = 0;
2525 char *_kwnames[] = { "self","dx","dy", NULL };
2526
2527 self = self;
2528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2))
2529 return NULL;
2530 if (_argo0) {
2531 if (_argo0 == Py_None) { _arg0 = NULL; }
2532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p.");
2534 return NULL;
2535 }
2536 }
2537 {
2538 wxPy_BEGIN_ALLOW_THREADS;
2539 _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2);
2540
2541 wxPy_END_ALLOW_THREADS;
2542 } _resultobj = Py_BuildValue("i",_result);
2543 return _resultobj;
2544 }
2545
2546 #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
2547 static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2548 PyObject * _resultobj;
2549 wxListCtrl * _arg0;
2550 wxColour * _arg1;
2551 PyObject * _argo0 = 0;
2552 PyObject * _argo1 = 0;
2553 char *_kwnames[] = { "self","col", NULL };
2554
2555 self = self;
2556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_argo1))
2557 return NULL;
2558 if (_argo0) {
2559 if (_argo0 == Py_None) { _arg0 = NULL; }
2560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p.");
2562 return NULL;
2563 }
2564 }
2565 if (_argo1) {
2566 if (_argo1 == Py_None) { _arg1 = NULL; }
2567 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
2568 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetBackgroundColour. Expected _wxColour_p.");
2569 return NULL;
2570 }
2571 }
2572 {
2573 wxPy_BEGIN_ALLOW_THREADS;
2574 wxListCtrl_SetBackgroundColour(_arg0,*_arg1);
2575
2576 wxPy_END_ALLOW_THREADS;
2577 } Py_INCREF(Py_None);
2578 _resultobj = Py_None;
2579 return _resultobj;
2580 }
2581
2582 #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1))
2583 static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
2584 PyObject * _resultobj;
2585 bool _result;
2586 wxListCtrl * _arg0;
2587 int _arg1;
2588 wxListItem * _arg2;
2589 PyObject * _argo0 = 0;
2590 PyObject * _argo2 = 0;
2591 char *_kwnames[] = { "self","col","item", NULL };
2592
2593 self = self;
2594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
2595 return NULL;
2596 if (_argo0) {
2597 if (_argo0 == Py_None) { _arg0 = NULL; }
2598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxListCtrl_p.");
2600 return NULL;
2601 }
2602 }
2603 if (_argo2) {
2604 if (_argo2 == Py_None) { _arg2 = NULL; }
2605 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
2606 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p.");
2607 return NULL;
2608 }
2609 }
2610 {
2611 wxPy_BEGIN_ALLOW_THREADS;
2612 _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2);
2613
2614 wxPy_END_ALLOW_THREADS;
2615 } _resultobj = Py_BuildValue("i",_result);
2616 return _resultobj;
2617 }
2618
2619 #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1))
2620 static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2621 PyObject * _resultobj;
2622 bool _result;
2623 wxListCtrl * _arg0;
2624 int _arg1;
2625 int _arg2;
2626 PyObject * _argo0 = 0;
2627 char *_kwnames[] = { "self","col","width", NULL };
2628
2629 self = self;
2630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2))
2631 return NULL;
2632 if (_argo0) {
2633 if (_argo0 == Py_None) { _arg0 = NULL; }
2634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p.");
2636 return NULL;
2637 }
2638 }
2639 {
2640 wxPy_BEGIN_ALLOW_THREADS;
2641 _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2);
2642
2643 wxPy_END_ALLOW_THREADS;
2644 } _resultobj = Py_BuildValue("i",_result);
2645 return _resultobj;
2646 }
2647
2648 #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1))
2649 static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
2650 PyObject * _resultobj;
2651 wxListCtrl * _arg0;
2652 wxImageList * _arg1;
2653 int _arg2;
2654 PyObject * _argo0 = 0;
2655 PyObject * _argo1 = 0;
2656 char *_kwnames[] = { "self","imageList","which", NULL };
2657
2658 self = self;
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2))
2660 return NULL;
2661 if (_argo0) {
2662 if (_argo0 == Py_None) { _arg0 = NULL; }
2663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxListCtrl_p.");
2665 return NULL;
2666 }
2667 }
2668 if (_argo1) {
2669 if (_argo1 == Py_None) { _arg1 = NULL; }
2670 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
2671 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p.");
2672 return NULL;
2673 }
2674 }
2675 {
2676 wxPy_BEGIN_ALLOW_THREADS;
2677 wxListCtrl_SetImageList(_arg0,_arg1,_arg2);
2678
2679 wxPy_END_ALLOW_THREADS;
2680 } Py_INCREF(Py_None);
2681 _resultobj = Py_None;
2682 return _resultobj;
2683 }
2684
2685 #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0))
2686 static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2687 PyObject * _resultobj;
2688 bool _result;
2689 wxListCtrl * _arg0;
2690 wxListItem * _arg1;
2691 PyObject * _argo0 = 0;
2692 PyObject * _argo1 = 0;
2693 char *_kwnames[] = { "self","info", NULL };
2694
2695 self = self;
2696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1))
2697 return NULL;
2698 if (_argo0) {
2699 if (_argo0 == Py_None) { _arg0 = NULL; }
2700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p.");
2702 return NULL;
2703 }
2704 }
2705 if (_argo1) {
2706 if (_argo1 == Py_None) { _arg1 = NULL; }
2707 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
2708 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p.");
2709 return NULL;
2710 }
2711 }
2712 {
2713 wxPy_BEGIN_ALLOW_THREADS;
2714 _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1);
2715
2716 wxPy_END_ALLOW_THREADS;
2717 } _resultobj = Py_BuildValue("i",_result);
2718 return _resultobj;
2719 }
2720
2721 #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2722 static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2723 PyObject * _resultobj;
2724 long _result;
2725 wxListCtrl * _arg0;
2726 long _arg1;
2727 int _arg2;
2728 wxString * _arg3;
2729 int _arg4 = (int ) -1;
2730 PyObject * _argo0 = 0;
2731 PyObject * _obj3 = 0;
2732 char *_kwnames[] = { "self","index","col","label","imageId", NULL };
2733
2734 self = self;
2735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
2736 return NULL;
2737 if (_argo0) {
2738 if (_argo0 == Py_None) { _arg0 = NULL; }
2739 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2740 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p.");
2741 return NULL;
2742 }
2743 }
2744 {
2745 if (!PyString_Check(_obj3)) {
2746 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2747 return NULL;
2748 }
2749 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
2750 }
2751 {
2752 wxPy_BEGIN_ALLOW_THREADS;
2753 _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4);
2754
2755 wxPy_END_ALLOW_THREADS;
2756 } _resultobj = Py_BuildValue("l",_result);
2757 {
2758 if (_obj3)
2759 delete _arg3;
2760 }
2761 return _resultobj;
2762 }
2763
2764 #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1))
2765 static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
2766 PyObject * _resultobj;
2767 bool _result;
2768 wxListCtrl * _arg0;
2769 long _arg1;
2770 long _arg2;
2771 PyObject * _argo0 = 0;
2772 char *_kwnames[] = { "self","item","data", NULL };
2773
2774 self = self;
2775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2))
2776 return NULL;
2777 if (_argo0) {
2778 if (_argo0 == Py_None) { _arg0 = NULL; }
2779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p.");
2781 return NULL;
2782 }
2783 }
2784 {
2785 wxPy_BEGIN_ALLOW_THREADS;
2786 _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2);
2787
2788 wxPy_END_ALLOW_THREADS;
2789 } _resultobj = Py_BuildValue("i",_result);
2790 return _resultobj;
2791 }
2792
2793 #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
2794 static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2795 PyObject * _resultobj;
2796 bool _result;
2797 wxListCtrl * _arg0;
2798 long _arg1;
2799 int _arg2;
2800 int _arg3;
2801 PyObject * _argo0 = 0;
2802 char *_kwnames[] = { "self","item","image","selImage", NULL };
2803
2804 self = self;
2805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2806 return NULL;
2807 if (_argo0) {
2808 if (_argo0 == Py_None) { _arg0 = NULL; }
2809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p.");
2811 return NULL;
2812 }
2813 }
2814 {
2815 wxPy_BEGIN_ALLOW_THREADS;
2816 _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3);
2817
2818 wxPy_END_ALLOW_THREADS;
2819 } _resultobj = Py_BuildValue("i",_result);
2820 return _resultobj;
2821 }
2822
2823 #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1))
2824 static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2825 PyObject * _resultobj;
2826 bool _result;
2827 wxListCtrl * _arg0;
2828 long _arg1;
2829 wxPoint * _arg2;
2830 PyObject * _argo0 = 0;
2831 wxPoint temp;
2832 PyObject * _obj2 = 0;
2833 char *_kwnames[] = { "self","item","pos", NULL };
2834
2835 self = self;
2836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2))
2837 return NULL;
2838 if (_argo0) {
2839 if (_argo0 == Py_None) { _arg0 = NULL; }
2840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p.");
2842 return NULL;
2843 }
2844 }
2845 {
2846 _arg2 = &temp;
2847 if (! wxPoint_helper(_obj2, &_arg2))
2848 return NULL;
2849 }
2850 {
2851 wxPy_BEGIN_ALLOW_THREADS;
2852 _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2);
2853
2854 wxPy_END_ALLOW_THREADS;
2855 } _resultobj = Py_BuildValue("i",_result);
2856 return _resultobj;
2857 }
2858
2859 #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2))
2860 static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
2861 PyObject * _resultobj;
2862 bool _result;
2863 wxListCtrl * _arg0;
2864 long _arg1;
2865 long _arg2;
2866 long _arg3;
2867 PyObject * _argo0 = 0;
2868 char *_kwnames[] = { "self","item","state","stateMask", NULL };
2869
2870 self = self;
2871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2872 return NULL;
2873 if (_argo0) {
2874 if (_argo0 == Py_None) { _arg0 = NULL; }
2875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p.");
2877 return NULL;
2878 }
2879 }
2880 {
2881 wxPy_BEGIN_ALLOW_THREADS;
2882 _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3);
2883
2884 wxPy_END_ALLOW_THREADS;
2885 } _resultobj = Py_BuildValue("i",_result);
2886 return _resultobj;
2887 }
2888
2889 #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
2890 static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
2891 PyObject * _resultobj;
2892 wxListCtrl * _arg0;
2893 long _arg1;
2894 wxString * _arg2;
2895 PyObject * _argo0 = 0;
2896 PyObject * _obj2 = 0;
2897 char *_kwnames[] = { "self","item","text", NULL };
2898
2899 self = self;
2900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2))
2901 return NULL;
2902 if (_argo0) {
2903 if (_argo0 == Py_None) { _arg0 = NULL; }
2904 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2905 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p.");
2906 return NULL;
2907 }
2908 }
2909 {
2910 if (!PyString_Check(_obj2)) {
2911 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2912 return NULL;
2913 }
2914 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2915 }
2916 {
2917 wxPy_BEGIN_ALLOW_THREADS;
2918 wxListCtrl_SetItemText(_arg0,_arg1,*_arg2);
2919
2920 wxPy_END_ALLOW_THREADS;
2921 } Py_INCREF(Py_None);
2922 _resultobj = Py_None;
2923 {
2924 if (_obj2)
2925 delete _arg2;
2926 }
2927 return _resultobj;
2928 }
2929
2930 #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1))
2931 static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2932 PyObject * _resultobj;
2933 wxListCtrl * _arg0;
2934 long _arg1;
2935 bool _arg2 = (bool ) TRUE;
2936 PyObject * _argo0 = 0;
2937 int tempbool2 = (int) TRUE;
2938 char *_kwnames[] = { "self","style","add", NULL };
2939
2940 self = self;
2941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2))
2942 return NULL;
2943 if (_argo0) {
2944 if (_argo0 == Py_None) { _arg0 = NULL; }
2945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p.");
2947 return NULL;
2948 }
2949 }
2950 _arg2 = (bool ) tempbool2;
2951 {
2952 wxPy_BEGIN_ALLOW_THREADS;
2953 wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2);
2954
2955 wxPy_END_ALLOW_THREADS;
2956 } Py_INCREF(Py_None);
2957 _resultobj = Py_None;
2958 return _resultobj;
2959 }
2960
2961 #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2962 static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2963 PyObject * _resultobj;
2964 wxListCtrl * _arg0;
2965 long _arg1;
2966 PyObject * _argo0 = 0;
2967 char *_kwnames[] = { "self","style", NULL };
2968
2969 self = self;
2970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
2971 return NULL;
2972 if (_argo0) {
2973 if (_argo0 == Py_None) { _arg0 = NULL; }
2974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p.");
2976 return NULL;
2977 }
2978 }
2979 {
2980 wxPy_BEGIN_ALLOW_THREADS;
2981 wxListCtrl_SetWindowStyleFlag(_arg0,_arg1);
2982
2983 wxPy_END_ALLOW_THREADS;
2984 } Py_INCREF(Py_None);
2985 _resultobj = Py_None;
2986 return _resultobj;
2987 }
2988
2989 #define new_wxTreeItemId() (new wxTreeItemId())
2990 static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
2991 PyObject * _resultobj;
2992 wxTreeItemId * _result;
2993 char *_kwnames[] = { NULL };
2994 char _ptemp[128];
2995
2996 self = self;
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames))
2998 return NULL;
2999 {
3000 wxPy_BEGIN_ALLOW_THREADS;
3001 _result = (wxTreeItemId *)new_wxTreeItemId();
3002
3003 wxPy_END_ALLOW_THREADS;
3004 } if (_result) {
3005 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
3006 _resultobj = Py_BuildValue("s",_ptemp);
3007 } else {
3008 Py_INCREF(Py_None);
3009 _resultobj = Py_None;
3010 }
3011 return _resultobj;
3012 }
3013
3014 #define delete_wxTreeItemId(_swigobj) (delete _swigobj)
3015 static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
3016 PyObject * _resultobj;
3017 wxTreeItemId * _arg0;
3018 PyObject * _argo0 = 0;
3019 char *_kwnames[] = { "self", NULL };
3020
3021 self = self;
3022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0))
3023 return NULL;
3024 if (_argo0) {
3025 if (_argo0 == Py_None) { _arg0 = NULL; }
3026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
3027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p.");
3028 return NULL;
3029 }
3030 }
3031 {
3032 wxPy_BEGIN_ALLOW_THREADS;
3033 delete_wxTreeItemId(_arg0);
3034
3035 wxPy_END_ALLOW_THREADS;
3036 } Py_INCREF(Py_None);
3037 _resultobj = Py_None;
3038 return _resultobj;
3039 }
3040
3041 #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk())
3042 static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3043 PyObject * _resultobj;
3044 bool _result;
3045 wxTreeItemId * _arg0;
3046 PyObject * _argo0 = 0;
3047 char *_kwnames[] = { "self", NULL };
3048
3049 self = self;
3050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0))
3051 return NULL;
3052 if (_argo0) {
3053 if (_argo0 == Py_None) { _arg0 = NULL; }
3054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
3055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p.");
3056 return NULL;
3057 }
3058 }
3059 {
3060 wxPy_BEGIN_ALLOW_THREADS;
3061 _result = (bool )wxTreeItemId_IsOk(_arg0);
3062
3063 wxPy_END_ALLOW_THREADS;
3064 } _resultobj = Py_BuildValue("i",_result);
3065 return _resultobj;
3066 }
3067
3068 #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0))
3069 static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3070 PyObject * _resultobj;
3071 wxPyTreeItemData * _result;
3072 PyObject * _arg0 = (PyObject *) NULL;
3073 PyObject * _obj0 = 0;
3074 char *_kwnames[] = { "obj", NULL };
3075 char _ptemp[128];
3076
3077 self = self;
3078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0))
3079 return NULL;
3080 if (_obj0)
3081 {
3082 _arg0 = _obj0;
3083 }
3084 {
3085 wxPy_BEGIN_ALLOW_THREADS;
3086 _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0);
3087
3088 wxPy_END_ALLOW_THREADS;
3089 } if (_result) {
3090 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
3091 _resultobj = Py_BuildValue("s",_ptemp);
3092 } else {
3093 Py_INCREF(Py_None);
3094 _resultobj = Py_None;
3095 }
3096 return _resultobj;
3097 }
3098
3099 #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData())
3100 static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
3101 PyObject * _resultobj;
3102 PyObject * _result;
3103 wxPyTreeItemData * _arg0;
3104 PyObject * _argo0 = 0;
3105 char *_kwnames[] = { "self", NULL };
3106
3107 self = self;
3108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0))
3109 return NULL;
3110 if (_argo0) {
3111 if (_argo0 == Py_None) { _arg0 = NULL; }
3112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
3113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p.");
3114 return NULL;
3115 }
3116 }
3117 {
3118 wxPy_BEGIN_ALLOW_THREADS;
3119 _result = (PyObject *)wxTreeItemData_GetData(_arg0);
3120
3121 wxPy_END_ALLOW_THREADS;
3122 }{
3123 _resultobj = _result;
3124 }
3125 return _resultobj;
3126 }
3127
3128 #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
3129 static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
3130 PyObject * _resultobj;
3131 wxPyTreeItemData * _arg0;
3132 PyObject * _arg1;
3133 PyObject * _argo0 = 0;
3134 PyObject * _obj1 = 0;
3135 char *_kwnames[] = { "self","obj", NULL };
3136
3137 self = self;
3138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1))
3139 return NULL;
3140 if (_argo0) {
3141 if (_argo0 == Py_None) { _arg0 = NULL; }
3142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
3143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p.");
3144 return NULL;
3145 }
3146 }
3147 {
3148 _arg1 = _obj1;
3149 }
3150 {
3151 wxPy_BEGIN_ALLOW_THREADS;
3152 wxTreeItemData_SetData(_arg0,_arg1);
3153
3154 wxPy_END_ALLOW_THREADS;
3155 } Py_INCREF(Py_None);
3156 _resultobj = Py_None;
3157 return _resultobj;
3158 }
3159
3160 #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId())
3161 static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
3162 PyObject * _resultobj;
3163 wxTreeItemId * _result;
3164 wxPyTreeItemData * _arg0;
3165 PyObject * _argo0 = 0;
3166 char *_kwnames[] = { "self", NULL };
3167 char _ptemp[128];
3168
3169 self = self;
3170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0))
3171 return NULL;
3172 if (_argo0) {
3173 if (_argo0 == Py_None) { _arg0 = NULL; }
3174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
3175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p.");
3176 return NULL;
3177 }
3178 }
3179 {
3180 wxPy_BEGIN_ALLOW_THREADS;
3181 const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0);
3182 _result = (wxTreeItemId *) &_result_ref;
3183
3184 wxPy_END_ALLOW_THREADS;
3185 } if (_result) {
3186 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
3187 _resultobj = Py_BuildValue("s",_ptemp);
3188 } else {
3189 Py_INCREF(Py_None);
3190 _resultobj = Py_None;
3191 }
3192 return _resultobj;
3193 }
3194
3195 #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3196 static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
3197 PyObject * _resultobj;
3198 wxPyTreeItemData * _arg0;
3199 wxTreeItemId * _arg1;
3200 PyObject * _argo0 = 0;
3201 PyObject * _argo1 = 0;
3202 char *_kwnames[] = { "self","id", NULL };
3203
3204 self = self;
3205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1))
3206 return NULL;
3207 if (_argo0) {
3208 if (_argo0 == Py_None) { _arg0 = NULL; }
3209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
3210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p.");
3211 return NULL;
3212 }
3213 }
3214 if (_argo1) {
3215 if (_argo1 == Py_None) { _arg1 = NULL; }
3216 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3217 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p.");
3218 return NULL;
3219 }
3220 }
3221 {
3222 wxPy_BEGIN_ALLOW_THREADS;
3223 wxTreeItemData_SetId(_arg0,*_arg1);
3224
3225 wxPy_END_ALLOW_THREADS;
3226 } Py_INCREF(Py_None);
3227 _resultobj = Py_None;
3228 return _resultobj;
3229 }
3230
3231 static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) {
3232 wxTreeEvent *src;
3233 wxNotifyEvent *dest;
3234 src = (wxTreeEvent *) ptr;
3235 dest = (wxNotifyEvent *) src;
3236 return (void *) dest;
3237 }
3238
3239 static void *SwigwxTreeEventTowxCommandEvent(void *ptr) {
3240 wxTreeEvent *src;
3241 wxCommandEvent *dest;
3242 src = (wxTreeEvent *) ptr;
3243 dest = (wxCommandEvent *) src;
3244 return (void *) dest;
3245 }
3246
3247 static void *SwigwxTreeEventTowxEvent(void *ptr) {
3248 wxTreeEvent *src;
3249 wxEvent *dest;
3250 src = (wxTreeEvent *) ptr;
3251 dest = (wxEvent *) src;
3252 return (void *) dest;
3253 }
3254
3255 #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem())
3256 static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3257 PyObject * _resultobj;
3258 wxTreeItemId * _result;
3259 wxTreeEvent * _arg0;
3260 PyObject * _argo0 = 0;
3261 char *_kwnames[] = { "self", NULL };
3262 char _ptemp[128];
3263
3264 self = self;
3265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0))
3266 return NULL;
3267 if (_argo0) {
3268 if (_argo0 == Py_None) { _arg0 = NULL; }
3269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p.");
3271 return NULL;
3272 }
3273 }
3274 {
3275 wxPy_BEGIN_ALLOW_THREADS;
3276 _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0));
3277
3278 wxPy_END_ALLOW_THREADS;
3279 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
3280 _resultobj = Py_BuildValue("s",_ptemp);
3281 return _resultobj;
3282 }
3283
3284 #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem())
3285 static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3286 PyObject * _resultobj;
3287 wxTreeItemId * _result;
3288 wxTreeEvent * _arg0;
3289 PyObject * _argo0 = 0;
3290 char *_kwnames[] = { "self", NULL };
3291 char _ptemp[128];
3292
3293 self = self;
3294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0))
3295 return NULL;
3296 if (_argo0) {
3297 if (_argo0 == Py_None) { _arg0 = NULL; }
3298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p.");
3300 return NULL;
3301 }
3302 }
3303 {
3304 wxPy_BEGIN_ALLOW_THREADS;
3305 _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0));
3306
3307 wxPy_END_ALLOW_THREADS;
3308 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
3309 _resultobj = Py_BuildValue("s",_ptemp);
3310 return _resultobj;
3311 }
3312
3313 #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
3314 static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3315 PyObject * _resultobj;
3316 wxPoint * _result;
3317 wxTreeEvent * _arg0;
3318 PyObject * _argo0 = 0;
3319 char *_kwnames[] = { "self", NULL };
3320 char _ptemp[128];
3321
3322 self = self;
3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0))
3324 return NULL;
3325 if (_argo0) {
3326 if (_argo0 == Py_None) { _arg0 = NULL; }
3327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p.");
3329 return NULL;
3330 }
3331 }
3332 {
3333 wxPy_BEGIN_ALLOW_THREADS;
3334 _result = new wxPoint (wxTreeEvent_GetPoint(_arg0));
3335
3336 wxPy_END_ALLOW_THREADS;
3337 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3338 _resultobj = Py_BuildValue("s",_ptemp);
3339 return _resultobj;
3340 }
3341
3342 #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode())
3343 static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
3344 PyObject * _resultobj;
3345 int _result;
3346 wxTreeEvent * _arg0;
3347 PyObject * _argo0 = 0;
3348 char *_kwnames[] = { "self", NULL };
3349
3350 self = self;
3351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0))
3352 return NULL;
3353 if (_argo0) {
3354 if (_argo0 == Py_None) { _arg0 = NULL; }
3355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p.");
3357 return NULL;
3358 }
3359 }
3360 {
3361 wxPy_BEGIN_ALLOW_THREADS;
3362 _result = (int )wxTreeEvent_GetCode(_arg0);
3363
3364 wxPy_END_ALLOW_THREADS;
3365 } _resultobj = Py_BuildValue("i",_result);
3366 return _resultobj;
3367 }
3368
3369 #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
3370 static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
3371 PyObject * _resultobj;
3372 wxString * _result;
3373 wxTreeEvent * _arg0;
3374 PyObject * _argo0 = 0;
3375 char *_kwnames[] = { "self", NULL };
3376
3377 self = self;
3378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0))
3379 return NULL;
3380 if (_argo0) {
3381 if (_argo0 == Py_None) { _arg0 = NULL; }
3382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p.");
3384 return NULL;
3385 }
3386 }
3387 {
3388 wxPy_BEGIN_ALLOW_THREADS;
3389 const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0);
3390 _result = (wxString *) &_result_ref;
3391
3392 wxPy_END_ALLOW_THREADS;
3393 }{
3394 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3395 }
3396 return _resultobj;
3397 }
3398
3399 static void *SwigwxTreeCtrlTowxControl(void *ptr) {
3400 wxTreeCtrl *src;
3401 wxControl *dest;
3402 src = (wxTreeCtrl *) ptr;
3403 dest = (wxControl *) src;
3404 return (void *) dest;
3405 }
3406
3407 static void *SwigwxTreeCtrlTowxWindow(void *ptr) {
3408 wxTreeCtrl *src;
3409 wxWindow *dest;
3410 src = (wxTreeCtrl *) ptr;
3411 dest = (wxWindow *) src;
3412 return (void *) dest;
3413 }
3414
3415 static void *SwigwxTreeCtrlTowxEvtHandler(void *ptr) {
3416 wxTreeCtrl *src;
3417 wxEvtHandler *dest;
3418 src = (wxTreeCtrl *) ptr;
3419 dest = (wxEvtHandler *) src;
3420 return (void *) dest;
3421 }
3422
3423 #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3424 static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
3425 PyObject * _resultobj;
3426 wxTreeCtrl * _result;
3427 wxWindow * _arg0;
3428 wxWindowID _arg1 = (wxWindowID ) -1;
3429 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
3430 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
3431 long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT;
3432 wxValidator * _arg5 = (wxValidator *) &wxPyDefaultValidator;
3433 char * _arg6 = (char *) "wxTreeCtrl";
3434 PyObject * _argo0 = 0;
3435 wxPoint temp;
3436 PyObject * _obj2 = 0;
3437 wxSize temp0;
3438 PyObject * _obj3 = 0;
3439 PyObject * _argo5 = 0;
3440 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
3441 char _ptemp[128];
3442
3443 self = self;
3444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
3445 return NULL;
3446 if (_argo0) {
3447 if (_argo0 == Py_None) { _arg0 = NULL; }
3448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p.");
3450 return NULL;
3451 }
3452 }
3453 if (_obj2)
3454 {
3455 _arg2 = &temp;
3456 if (! wxPoint_helper(_obj2, &_arg2))
3457 return NULL;
3458 }
3459 if (_obj3)
3460 {
3461 _arg3 = &temp0;
3462 if (! wxSize_helper(_obj3, &_arg3))
3463 return NULL;
3464 }
3465 if (_argo5) {
3466 if (_argo5 == Py_None) { _arg5 = NULL; }
3467 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
3468 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p.");
3469 return NULL;
3470 }
3471 }
3472 {
3473 wxPy_BEGIN_ALLOW_THREADS;
3474 _result = (wxTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
3475
3476 wxPy_END_ALLOW_THREADS;
3477 } if (_result) {
3478 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeCtrl_p");
3479 _resultobj = Py_BuildValue("s",_ptemp);
3480 } else {
3481 Py_INCREF(Py_None);
3482 _resultobj = Py_None;
3483 }
3484 return _resultobj;
3485 }
3486
3487 #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount())
3488 static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3489 PyObject * _resultobj;
3490 size_t _result;
3491 wxTreeCtrl * _arg0;
3492 PyObject * _argo0 = 0;
3493 char *_kwnames[] = { "self", NULL };
3494
3495 self = self;
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0))
3497 return NULL;
3498 if (_argo0) {
3499 if (_argo0 == Py_None) { _arg0 = NULL; }
3500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxTreeCtrl_p.");
3502 return NULL;
3503 }
3504 }
3505 {
3506 wxPy_BEGIN_ALLOW_THREADS;
3507 _result = (size_t )wxTreeCtrl_GetCount(_arg0);
3508
3509 wxPy_END_ALLOW_THREADS;
3510 } _resultobj = Py_BuildValue("i",_result);
3511 return _resultobj;
3512 }
3513
3514 #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent())
3515 static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
3516 PyObject * _resultobj;
3517 unsigned int _result;
3518 wxTreeCtrl * _arg0;
3519 PyObject * _argo0 = 0;
3520 char *_kwnames[] = { "self", NULL };
3521
3522 self = self;
3523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0))
3524 return NULL;
3525 if (_argo0) {
3526 if (_argo0 == Py_None) { _arg0 = NULL; }
3527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxTreeCtrl_p.");
3529 return NULL;
3530 }
3531 }
3532 {
3533 wxPy_BEGIN_ALLOW_THREADS;
3534 _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0);
3535
3536 wxPy_END_ALLOW_THREADS;
3537 } _resultobj = Py_BuildValue("i",_result);
3538 return _resultobj;
3539 }
3540
3541 #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
3542 static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
3543 PyObject * _resultobj;
3544 wxTreeCtrl * _arg0;
3545 unsigned int _arg1;
3546 PyObject * _argo0 = 0;
3547 char *_kwnames[] = { "self","indent", NULL };
3548
3549 self = self;
3550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1))
3551 return NULL;
3552 if (_argo0) {
3553 if (_argo0 == Py_None) { _arg0 = NULL; }
3554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxTreeCtrl_p.");
3556 return NULL;
3557 }
3558 }
3559 {
3560 wxPy_BEGIN_ALLOW_THREADS;
3561 wxTreeCtrl_SetIndent(_arg0,_arg1);
3562
3563 wxPy_END_ALLOW_THREADS;
3564 } Py_INCREF(Py_None);
3565 _resultobj = Py_None;
3566 return _resultobj;
3567 }
3568
3569 #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList())
3570 static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
3571 PyObject * _resultobj;
3572 wxImageList * _result;
3573 wxTreeCtrl * _arg0;
3574 PyObject * _argo0 = 0;
3575 char *_kwnames[] = { "self", NULL };
3576 char _ptemp[128];
3577
3578 self = self;
3579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0))
3580 return NULL;
3581 if (_argo0) {
3582 if (_argo0 == Py_None) { _arg0 = NULL; }
3583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxTreeCtrl_p.");
3585 return NULL;
3586 }
3587 }
3588 {
3589 wxPy_BEGIN_ALLOW_THREADS;
3590 _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0);
3591
3592 wxPy_END_ALLOW_THREADS;
3593 } if (_result) {
3594 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
3595 _resultobj = Py_BuildValue("s",_ptemp);
3596 } else {
3597 Py_INCREF(Py_None);
3598 _resultobj = Py_None;
3599 }
3600 return _resultobj;
3601 }
3602
3603 #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList())
3604 static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
3605 PyObject * _resultobj;
3606 wxImageList * _result;
3607 wxTreeCtrl * _arg0;
3608 PyObject * _argo0 = 0;
3609 char *_kwnames[] = { "self", NULL };
3610 char _ptemp[128];
3611
3612 self = self;
3613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0))
3614 return NULL;
3615 if (_argo0) {
3616 if (_argo0 == Py_None) { _arg0 = NULL; }
3617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxTreeCtrl_p.");
3619 return NULL;
3620 }
3621 }
3622 {
3623 wxPy_BEGIN_ALLOW_THREADS;
3624 _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0);
3625
3626 wxPy_END_ALLOW_THREADS;
3627 } if (_result) {
3628 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
3629 _resultobj = Py_BuildValue("s",_ptemp);
3630 } else {
3631 Py_INCREF(Py_None);
3632 _resultobj = Py_None;
3633 }
3634 return _resultobj;
3635 }
3636
3637 #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
3638 static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
3639 PyObject * _resultobj;
3640 wxTreeCtrl * _arg0;
3641 wxImageList * _arg1;
3642 PyObject * _argo0 = 0;
3643 PyObject * _argo1 = 0;
3644 char *_kwnames[] = { "self","imageList", NULL };
3645
3646 self = self;
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1))
3648 return NULL;
3649 if (_argo0) {
3650 if (_argo0 == Py_None) { _arg0 = NULL; }
3651 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3652 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxTreeCtrl_p.");
3653 return NULL;
3654 }
3655 }
3656 if (_argo1) {
3657 if (_argo1 == Py_None) { _arg1 = NULL; }
3658 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
3659 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p.");
3660 return NULL;
3661 }
3662 }
3663 {
3664 wxPy_BEGIN_ALLOW_THREADS;
3665 wxTreeCtrl_SetImageList(_arg0,_arg1);
3666
3667 wxPy_END_ALLOW_THREADS;
3668 } Py_INCREF(Py_None);
3669 _resultobj = Py_None;
3670 return _resultobj;
3671 }
3672
3673 #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0))
3674 static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
3675 PyObject * _resultobj;
3676 wxTreeCtrl * _arg0;
3677 wxImageList * _arg1;
3678 PyObject * _argo0 = 0;
3679 PyObject * _argo1 = 0;
3680 char *_kwnames[] = { "self","imageList", NULL };
3681
3682 self = self;
3683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1))
3684 return NULL;
3685 if (_argo0) {
3686 if (_argo0 == Py_None) { _arg0 = NULL; }
3687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxTreeCtrl_p.");
3689 return NULL;
3690 }
3691 }
3692 if (_argo1) {
3693 if (_argo1 == Py_None) { _arg1 = NULL; }
3694 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
3695 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p.");
3696 return NULL;
3697 }
3698 }
3699 {
3700 wxPy_BEGIN_ALLOW_THREADS;
3701 wxTreeCtrl_SetStateImageList(_arg0,_arg1);
3702
3703 wxPy_END_ALLOW_THREADS;
3704 } Py_INCREF(Py_None);
3705 _resultobj = Py_None;
3706 return _resultobj;
3707 }
3708
3709 #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing())
3710 static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
3711 PyObject * _resultobj;
3712 unsigned int _result;
3713 wxTreeCtrl * _arg0;
3714 PyObject * _argo0 = 0;
3715 char *_kwnames[] = { "self", NULL };
3716
3717 self = self;
3718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0))
3719 return NULL;
3720 if (_argo0) {
3721 if (_argo0 == Py_None) { _arg0 = NULL; }
3722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxTreeCtrl_p.");
3724 return NULL;
3725 }
3726 }
3727 {
3728 wxPy_BEGIN_ALLOW_THREADS;
3729 _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0);
3730
3731 wxPy_END_ALLOW_THREADS;
3732 } _resultobj = Py_BuildValue("i",_result);
3733 return _resultobj;
3734 }
3735
3736 #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0))
3737 static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
3738 PyObject * _resultobj;
3739 wxTreeCtrl * _arg0;
3740 unsigned int _arg1;
3741 PyObject * _argo0 = 0;
3742 char *_kwnames[] = { "self","spacing", NULL };
3743
3744 self = self;
3745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1))
3746 return NULL;
3747 if (_argo0) {
3748 if (_argo0 == Py_None) { _arg0 = NULL; }
3749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxTreeCtrl_p.");
3751 return NULL;
3752 }
3753 }
3754 {
3755 wxPy_BEGIN_ALLOW_THREADS;
3756 wxTreeCtrl_SetSpacing(_arg0,_arg1);
3757
3758 wxPy_END_ALLOW_THREADS;
3759 } Py_INCREF(Py_None);
3760 _resultobj = Py_None;
3761 return _resultobj;
3762 }
3763
3764 #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
3765 static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3766 PyObject * _resultobj;
3767 wxString * _result;
3768 wxTreeCtrl * _arg0;
3769 wxTreeItemId * _arg1;
3770 PyObject * _argo0 = 0;
3771 PyObject * _argo1 = 0;
3772 char *_kwnames[] = { "self","item", NULL };
3773
3774 self = self;
3775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1))
3776 return NULL;
3777 if (_argo0) {
3778 if (_argo0 == Py_None) { _arg0 = NULL; }
3779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxTreeCtrl_p.");
3781 return NULL;
3782 }
3783 }
3784 if (_argo1) {
3785 if (_argo1 == Py_None) { _arg1 = NULL; }
3786 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3787 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p.");
3788 return NULL;
3789 }
3790 }
3791 {
3792 wxPy_BEGIN_ALLOW_THREADS;
3793 _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1));
3794
3795 wxPy_END_ALLOW_THREADS;
3796 }{
3797 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3798 }
3799 {
3800 delete _result;
3801 }
3802 return _resultobj;
3803 }
3804
3805 #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1))
3806 static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3807 PyObject * _resultobj;
3808 int _result;
3809 wxTreeCtrl * _arg0;
3810 wxTreeItemId * _arg1;
3811 wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
3812 PyObject * _argo0 = 0;
3813 PyObject * _argo1 = 0;
3814 char *_kwnames[] = { "self","item","which", NULL };
3815
3816 self = self;
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxTreeCtrl_p.");
3823 return NULL;
3824 }
3825 }
3826 if (_argo1) {
3827 if (_argo1 == Py_None) { _arg1 = NULL; }
3828 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3829 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p.");
3830 return NULL;
3831 }
3832 }
3833 {
3834 wxPy_BEGIN_ALLOW_THREADS;
3835 _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2);
3836
3837 wxPy_END_ALLOW_THREADS;
3838 } _resultobj = Py_BuildValue("i",_result);
3839 return _resultobj;
3840 }
3841
3842 #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0))
3843 static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3844 PyObject * _resultobj;
3845 int _result;
3846 wxTreeCtrl * _arg0;
3847 wxTreeItemId * _arg1;
3848 PyObject * _argo0 = 0;
3849 PyObject * _argo1 = 0;
3850 char *_kwnames[] = { "self","item", NULL };
3851
3852 self = self;
3853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1))
3854 return NULL;
3855 if (_argo0) {
3856 if (_argo0 == Py_None) { _arg0 = NULL; }
3857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeCtrl_p.");
3859 return NULL;
3860 }
3861 }
3862 if (_argo1) {
3863 if (_argo1 == Py_None) { _arg1 = NULL; }
3864 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3865 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p.");
3866 return NULL;
3867 }
3868 }
3869 {
3870 wxPy_BEGIN_ALLOW_THREADS;
3871 _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1);
3872
3873 wxPy_END_ALLOW_THREADS;
3874 } _resultobj = Py_BuildValue("i",_result);
3875 return _resultobj;
3876 }
3877
3878 #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
3879 static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject * _resultobj;
3881 wxTreeCtrl * _arg0;
3882 wxTreeItemId * _arg1;
3883 wxString * _arg2;
3884 PyObject * _argo0 = 0;
3885 PyObject * _argo1 = 0;
3886 PyObject * _obj2 = 0;
3887 char *_kwnames[] = { "self","item","text", NULL };
3888
3889 self = self;
3890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2))
3891 return NULL;
3892 if (_argo0) {
3893 if (_argo0 == Py_None) { _arg0 = NULL; }
3894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxTreeCtrl_p.");
3896 return NULL;
3897 }
3898 }
3899 if (_argo1) {
3900 if (_argo1 == Py_None) { _arg1 = NULL; }
3901 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3902 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p.");
3903 return NULL;
3904 }
3905 }
3906 {
3907 if (!PyString_Check(_obj2)) {
3908 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3909 return NULL;
3910 }
3911 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
3912 }
3913 {
3914 wxPy_BEGIN_ALLOW_THREADS;
3915 wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2);
3916
3917 wxPy_END_ALLOW_THREADS;
3918 } Py_INCREF(Py_None);
3919 _resultobj = Py_None;
3920 {
3921 if (_obj2)
3922 delete _arg2;
3923 }
3924 return _resultobj;
3925 }
3926
3927 #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
3928 static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3929 PyObject * _resultobj;
3930 wxTreeCtrl * _arg0;
3931 wxTreeItemId * _arg1;
3932 int _arg2;
3933 wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
3934 PyObject * _argo0 = 0;
3935 PyObject * _argo1 = 0;
3936 char *_kwnames[] = { "self","item","image","which", NULL };
3937
3938 self = self;
3939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
3940 return NULL;
3941 if (_argo0) {
3942 if (_argo0 == Py_None) { _arg0 = NULL; }
3943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxTreeCtrl_p.");
3945 return NULL;
3946 }
3947 }
3948 if (_argo1) {
3949 if (_argo1 == Py_None) { _arg1 = NULL; }
3950 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3951 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p.");
3952 return NULL;
3953 }
3954 }
3955 {
3956 wxPy_BEGIN_ALLOW_THREADS;
3957 wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3);
3958
3959 wxPy_END_ALLOW_THREADS;
3960 } Py_INCREF(Py_None);
3961 _resultobj = Py_None;
3962 return _resultobj;
3963 }
3964
3965 #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1))
3966 static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3967 PyObject * _resultobj;
3968 wxTreeCtrl * _arg0;
3969 wxTreeItemId * _arg1;
3970 int _arg2;
3971 PyObject * _argo0 = 0;
3972 PyObject * _argo1 = 0;
3973 char *_kwnames[] = { "self","item","image", NULL };
3974
3975 self = self;
3976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2))
3977 return NULL;
3978 if (_argo0) {
3979 if (_argo0 == Py_None) { _arg0 = NULL; }
3980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeCtrl_p.");
3982 return NULL;
3983 }
3984 }
3985 if (_argo1) {
3986 if (_argo1 == Py_None) { _arg1 = NULL; }
3987 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3988 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p.");
3989 return NULL;
3990 }
3991 }
3992 {
3993 wxPy_BEGIN_ALLOW_THREADS;
3994 wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2);
3995
3996 wxPy_END_ALLOW_THREADS;
3997 } Py_INCREF(Py_None);
3998 _resultobj = Py_None;
3999 return _resultobj;
4000 }
4001
4002 #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1))
4003 static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
4004 PyObject * _resultobj;
4005 wxTreeCtrl * _arg0;
4006 wxTreeItemId * _arg1;
4007 bool _arg2 = (bool ) TRUE;
4008 PyObject * _argo0 = 0;
4009 PyObject * _argo1 = 0;
4010 int tempbool2 = (int) TRUE;
4011 char *_kwnames[] = { "self","item","hasChildren", NULL };
4012
4013 self = self;
4014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2))
4015 return NULL;
4016 if (_argo0) {
4017 if (_argo0 == Py_None) { _arg0 = NULL; }
4018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeCtrl_p.");
4020 return NULL;
4021 }
4022 }
4023 if (_argo1) {
4024 if (_argo1 == Py_None) { _arg1 = NULL; }
4025 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4026 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p.");
4027 return NULL;
4028 }
4029 }
4030 _arg2 = (bool ) tempbool2;
4031 {
4032 wxPy_BEGIN_ALLOW_THREADS;
4033 wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2);
4034
4035 wxPy_END_ALLOW_THREADS;
4036 } Py_INCREF(Py_None);
4037 _resultobj = Py_None;
4038 return _resultobj;
4039 }
4040
4041 static wxPyTreeItemData * wxTreeCtrl_GetItemData(wxTreeCtrl *self,const wxTreeItemId & item) {
4042 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
4043 if (data == NULL) {
4044 data = new wxPyTreeItemData();
4045 self->SetItemData(item, data);
4046 }
4047 return data;
4048 }
4049 static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
4050 PyObject * _resultobj;
4051 wxPyTreeItemData * _result;
4052 wxTreeCtrl * _arg0;
4053 wxTreeItemId * _arg1;
4054 PyObject * _argo0 = 0;
4055 PyObject * _argo1 = 0;
4056 char *_kwnames[] = { "self","item", NULL };
4057 char _ptemp[128];
4058
4059 self = self;
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1))
4061 return NULL;
4062 if (_argo0) {
4063 if (_argo0 == Py_None) { _arg0 = NULL; }
4064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxTreeCtrl_p.");
4066 return NULL;
4067 }
4068 }
4069 if (_argo1) {
4070 if (_argo1 == Py_None) { _arg1 = NULL; }
4071 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4072 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p.");
4073 return NULL;
4074 }
4075 }
4076 {
4077 wxPy_BEGIN_ALLOW_THREADS;
4078 _result = (wxPyTreeItemData *)wxTreeCtrl_GetItemData(_arg0,*_arg1);
4079
4080 wxPy_END_ALLOW_THREADS;
4081 } if (_result) {
4082 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
4083 _resultobj = Py_BuildValue("s",_ptemp);
4084 } else {
4085 Py_INCREF(Py_None);
4086 _resultobj = Py_None;
4087 }
4088 return _resultobj;
4089 }
4090
4091 static void wxTreeCtrl_SetItemData(wxTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) {
4092 self->SetItemData(item, data);
4093 }
4094 static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
4095 PyObject * _resultobj;
4096 wxTreeCtrl * _arg0;
4097 wxTreeItemId * _arg1;
4098 wxPyTreeItemData * _arg2;
4099 PyObject * _argo0 = 0;
4100 PyObject * _argo1 = 0;
4101 PyObject * _argo2 = 0;
4102 char *_kwnames[] = { "self","item","data", NULL };
4103
4104 self = self;
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2))
4106 return NULL;
4107 if (_argo0) {
4108 if (_argo0 == Py_None) { _arg0 = NULL; }
4109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxTreeCtrl_p.");
4111 return NULL;
4112 }
4113 }
4114 if (_argo1) {
4115 if (_argo1 == Py_None) { _arg1 = NULL; }
4116 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4117 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p.");
4118 return NULL;
4119 }
4120 }
4121 if (_argo2) {
4122 if (_argo2 == Py_None) { _arg2 = NULL; }
4123 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) {
4124 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p.");
4125 return NULL;
4126 }
4127 }
4128 {
4129 wxPy_BEGIN_ALLOW_THREADS;
4130 wxTreeCtrl_SetItemData(_arg0,*_arg1,_arg2);
4131
4132 wxPy_END_ALLOW_THREADS;
4133 } Py_INCREF(Py_None);
4134 _resultobj = Py_None;
4135 return _resultobj;
4136 }
4137
4138 static PyObject * wxTreeCtrl_GetPyData(wxTreeCtrl *self,const wxTreeItemId & item) {
4139 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
4140 if (data == NULL) {
4141 data = new wxPyTreeItemData();
4142 self->SetItemData(item, data);
4143 }
4144 return data->GetData();
4145 }
4146 static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
4147 PyObject * _resultobj;
4148 PyObject * _result;
4149 wxTreeCtrl * _arg0;
4150 wxTreeItemId * _arg1;
4151 PyObject * _argo0 = 0;
4152 PyObject * _argo1 = 0;
4153 char *_kwnames[] = { "self","item", NULL };
4154
4155 self = self;
4156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1))
4157 return NULL;
4158 if (_argo0) {
4159 if (_argo0 == Py_None) { _arg0 = NULL; }
4160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxTreeCtrl_p.");
4162 return NULL;
4163 }
4164 }
4165 if (_argo1) {
4166 if (_argo1 == Py_None) { _arg1 = NULL; }
4167 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4168 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p.");
4169 return NULL;
4170 }
4171 }
4172 {
4173 wxPy_BEGIN_ALLOW_THREADS;
4174 _result = (PyObject *)wxTreeCtrl_GetPyData(_arg0,*_arg1);
4175
4176 wxPy_END_ALLOW_THREADS;
4177 }{
4178 _resultobj = _result;
4179 }
4180 return _resultobj;
4181 }
4182
4183 static void wxTreeCtrl_SetPyData(wxTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) {
4184 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
4185 if (data == NULL) {
4186 data = new wxPyTreeItemData(obj);
4187 self->SetItemData(item, data);
4188 } else
4189 data->SetData(obj);
4190 }
4191 static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
4192 PyObject * _resultobj;
4193 wxTreeCtrl * _arg0;
4194 wxTreeItemId * _arg1;
4195 PyObject * _arg2;
4196 PyObject * _argo0 = 0;
4197 PyObject * _argo1 = 0;
4198 PyObject * _obj2 = 0;
4199 char *_kwnames[] = { "self","item","obj", NULL };
4200
4201 self = self;
4202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2))
4203 return NULL;
4204 if (_argo0) {
4205 if (_argo0 == Py_None) { _arg0 = NULL; }
4206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxTreeCtrl_p.");
4208 return NULL;
4209 }
4210 }
4211 if (_argo1) {
4212 if (_argo1 == Py_None) { _arg1 = NULL; }
4213 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4214 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p.");
4215 return NULL;
4216 }
4217 }
4218 {
4219 _arg2 = _obj2;
4220 }
4221 {
4222 wxPy_BEGIN_ALLOW_THREADS;
4223 wxTreeCtrl_SetPyData(_arg0,*_arg1,_arg2);
4224
4225 wxPy_END_ALLOW_THREADS;
4226 } Py_INCREF(Py_None);
4227 _resultobj = Py_None;
4228 return _resultobj;
4229 }
4230
4231 #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0))
4232 static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4233 PyObject * _resultobj;
4234 bool _result;
4235 wxTreeCtrl * _arg0;
4236 wxTreeItemId * _arg1;
4237 PyObject * _argo0 = 0;
4238 PyObject * _argo1 = 0;
4239 char *_kwnames[] = { "self","item", NULL };
4240
4241 self = self;
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1))
4243 return NULL;
4244 if (_argo0) {
4245 if (_argo0 == Py_None) { _arg0 = NULL; }
4246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxTreeCtrl_p.");
4248 return NULL;
4249 }
4250 }
4251 if (_argo1) {
4252 if (_argo1 == Py_None) { _arg1 = NULL; }
4253 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4254 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p.");
4255 return NULL;
4256 }
4257 }
4258 {
4259 wxPy_BEGIN_ALLOW_THREADS;
4260 _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1);
4261
4262 wxPy_END_ALLOW_THREADS;
4263 } _resultobj = Py_BuildValue("i",_result);
4264 return _resultobj;
4265 }
4266
4267 #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0))
4268 static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
4269 PyObject * _resultobj;
4270 bool _result;
4271 wxTreeCtrl * _arg0;
4272 wxTreeItemId * _arg1;
4273 PyObject * _argo0 = 0;
4274 PyObject * _argo1 = 0;
4275 char *_kwnames[] = { "self","item", NULL };
4276
4277 self = self;
4278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1))
4279 return NULL;
4280 if (_argo0) {
4281 if (_argo0 == Py_None) { _arg0 = NULL; }
4282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeCtrl_p.");
4284 return NULL;
4285 }
4286 }
4287 if (_argo1) {
4288 if (_argo1 == Py_None) { _arg1 = NULL; }
4289 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4290 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p.");
4291 return NULL;
4292 }
4293 }
4294 {
4295 wxPy_BEGIN_ALLOW_THREADS;
4296 _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1);
4297
4298 wxPy_END_ALLOW_THREADS;
4299 } _resultobj = Py_BuildValue("i",_result);
4300 return _resultobj;
4301 }
4302
4303 #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0))
4304 static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
4305 PyObject * _resultobj;
4306 bool _result;
4307 wxTreeCtrl * _arg0;
4308 wxTreeItemId * _arg1;
4309 PyObject * _argo0 = 0;
4310 PyObject * _argo1 = 0;
4311 char *_kwnames[] = { "self","item", NULL };
4312
4313 self = self;
4314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1))
4315 return NULL;
4316 if (_argo0) {
4317 if (_argo0 == Py_None) { _arg0 = NULL; }
4318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxTreeCtrl_p.");
4320 return NULL;
4321 }
4322 }
4323 if (_argo1) {
4324 if (_argo1 == Py_None) { _arg1 = NULL; }
4325 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4326 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p.");
4327 return NULL;
4328 }
4329 }
4330 {
4331 wxPy_BEGIN_ALLOW_THREADS;
4332 _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1);
4333
4334 wxPy_END_ALLOW_THREADS;
4335 } _resultobj = Py_BuildValue("i",_result);
4336 return _resultobj;
4337 }
4338
4339 #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
4340 static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
4341 PyObject * _resultobj;
4342 bool _result;
4343 wxTreeCtrl * _arg0;
4344 wxTreeItemId * _arg1;
4345 PyObject * _argo0 = 0;
4346 PyObject * _argo1 = 0;
4347 char *_kwnames[] = { "self","item", NULL };
4348
4349 self = self;
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1))
4351 return NULL;
4352 if (_argo0) {
4353 if (_argo0 == Py_None) { _arg0 = NULL; }
4354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxTreeCtrl_p.");
4356 return NULL;
4357 }
4358 }
4359 if (_argo1) {
4360 if (_argo1 == Py_None) { _arg1 = NULL; }
4361 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4362 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p.");
4363 return NULL;
4364 }
4365 }
4366 {
4367 wxPy_BEGIN_ALLOW_THREADS;
4368 _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1);
4369
4370 wxPy_END_ALLOW_THREADS;
4371 } _resultobj = Py_BuildValue("i",_result);
4372 return _resultobj;
4373 }
4374
4375 #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem())
4376 static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4377 PyObject * _resultobj;
4378 wxTreeItemId * _result;
4379 wxTreeCtrl * _arg0;
4380 PyObject * _argo0 = 0;
4381 char *_kwnames[] = { "self", NULL };
4382 char _ptemp[128];
4383
4384 self = self;
4385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0))
4386 return NULL;
4387 if (_argo0) {
4388 if (_argo0 == Py_None) { _arg0 = NULL; }
4389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxTreeCtrl_p.");
4391 return NULL;
4392 }
4393 }
4394 {
4395 wxPy_BEGIN_ALLOW_THREADS;
4396 _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0));
4397
4398 wxPy_END_ALLOW_THREADS;
4399 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4400 _resultobj = Py_BuildValue("s",_ptemp);
4401 return _resultobj;
4402 }
4403
4404 #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection())
4405 static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
4406 PyObject * _resultobj;
4407 wxTreeItemId * _result;
4408 wxTreeCtrl * _arg0;
4409 PyObject * _argo0 = 0;
4410 char *_kwnames[] = { "self", NULL };
4411 char _ptemp[128];
4412
4413 self = self;
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0))
4415 return NULL;
4416 if (_argo0) {
4417 if (_argo0 == Py_None) { _arg0 = NULL; }
4418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxTreeCtrl_p.");
4420 return NULL;
4421 }
4422 }
4423 {
4424 wxPy_BEGIN_ALLOW_THREADS;
4425 _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0));
4426
4427 wxPy_END_ALLOW_THREADS;
4428 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4429 _resultobj = Py_BuildValue("s",_ptemp);
4430 return _resultobj;
4431 }
4432
4433 #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0))
4434 static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4435 PyObject * _resultobj;
4436 wxTreeItemId * _result;
4437 wxTreeCtrl * _arg0;
4438 wxTreeItemId * _arg1;
4439 PyObject * _argo0 = 0;
4440 PyObject * _argo1 = 0;
4441 char *_kwnames[] = { "self","item", NULL };
4442 char _ptemp[128];
4443
4444 self = self;
4445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1))
4446 return NULL;
4447 if (_argo0) {
4448 if (_argo0 == Py_None) { _arg0 = NULL; }
4449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxTreeCtrl_p.");
4451 return NULL;
4452 }
4453 }
4454 if (_argo1) {
4455 if (_argo1 == Py_None) { _arg1 = NULL; }
4456 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4457 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p.");
4458 return NULL;
4459 }
4460 }
4461 {
4462 wxPy_BEGIN_ALLOW_THREADS;
4463 _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1));
4464
4465 wxPy_END_ALLOW_THREADS;
4466 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4467 _resultobj = Py_BuildValue("s",_ptemp);
4468 return _resultobj;
4469 }
4470
4471 static PyObject * wxTreeCtrl_GetSelections(wxTreeCtrl *self) {
4472 bool doSave = wxPyRestoreThread();
4473 PyObject* rval = PyList_New(0);
4474 wxArrayTreeItemIds array;
4475 size_t num, x;
4476 num = self->GetSelections(array);
4477 for (x=0; x < num; x++) {
4478 PyObject* item = wxPyConstructObject((void*)&array.Item(x),
4479 "wxTreeItemId");
4480 PyList_Append(rval, item);
4481 }
4482 wxPySaveThread(doSave);
4483 return rval;
4484 }
4485 static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
4486 PyObject * _resultobj;
4487 PyObject * _result;
4488 wxTreeCtrl * _arg0;
4489 PyObject * _argo0 = 0;
4490 char *_kwnames[] = { "self", NULL };
4491
4492 self = self;
4493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0))
4494 return NULL;
4495 if (_argo0) {
4496 if (_argo0 == Py_None) { _arg0 = NULL; }
4497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxTreeCtrl_p.");
4499 return NULL;
4500 }
4501 }
4502 {
4503 wxPy_BEGIN_ALLOW_THREADS;
4504 _result = (PyObject *)wxTreeCtrl_GetSelections(_arg0);
4505
4506 wxPy_END_ALLOW_THREADS;
4507 }{
4508 _resultobj = _result;
4509 }
4510 return _resultobj;
4511 }
4512
4513 #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1))
4514 static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4515 PyObject * _resultobj;
4516 size_t _result;
4517 wxTreeCtrl * _arg0;
4518 wxTreeItemId * _arg1;
4519 bool _arg2 = (bool ) TRUE;
4520 PyObject * _argo0 = 0;
4521 PyObject * _argo1 = 0;
4522 int tempbool2 = (int) TRUE;
4523 char *_kwnames[] = { "self","item","recursively", NULL };
4524
4525 self = self;
4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2))
4527 return NULL;
4528 if (_argo0) {
4529 if (_argo0 == Py_None) { _arg0 = NULL; }
4530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeCtrl_p.");
4532 return NULL;
4533 }
4534 }
4535 if (_argo1) {
4536 if (_argo1 == Py_None) { _arg1 = NULL; }
4537 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4538 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p.");
4539 return NULL;
4540 }
4541 }
4542 _arg2 = (bool ) tempbool2;
4543 {
4544 wxPy_BEGIN_ALLOW_THREADS;
4545 _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2);
4546
4547 wxPy_END_ALLOW_THREADS;
4548 } _resultobj = Py_BuildValue("i",_result);
4549 return _resultobj;
4550 }
4551
4552 #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1))
4553 static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
4554 PyObject * _resultobj;
4555 wxTreeItemId * _result;
4556 wxTreeCtrl * _arg0;
4557 wxTreeItemId * _arg1;
4558 long * _arg2;
4559 PyObject * _argo0 = 0;
4560 PyObject * _argo1 = 0;
4561 long temp;
4562 PyObject * _obj2 = 0;
4563 char *_kwnames[] = { "self","item","INOUT", NULL };
4564 char _ptemp[128];
4565
4566 self = self;
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2))
4568 return NULL;
4569 if (_argo0) {
4570 if (_argo0 == Py_None) { _arg0 = NULL; }
4571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxTreeCtrl_p.");
4573 return NULL;
4574 }
4575 }
4576 if (_argo1) {
4577 if (_argo1 == Py_None) { _arg1 = NULL; }
4578 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4579 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p.");
4580 return NULL;
4581 }
4582 }
4583 {
4584 temp = (long) PyInt_AsLong(_obj2);
4585 _arg2 = &temp;
4586 }
4587 {
4588 wxPy_BEGIN_ALLOW_THREADS;
4589 _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2));
4590
4591 wxPy_END_ALLOW_THREADS;
4592 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4593 _resultobj = Py_BuildValue("s",_ptemp);
4594 {
4595 PyObject *o;
4596 o = PyInt_FromLong((long) (*_arg2));
4597 _resultobj = t_output_helper(_resultobj, o);
4598 }
4599 return _resultobj;
4600 }
4601
4602 #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1))
4603 static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject * _resultobj;
4605 wxTreeItemId * _result;
4606 wxTreeCtrl * _arg0;
4607 wxTreeItemId * _arg1;
4608 long * _arg2;
4609 PyObject * _argo0 = 0;
4610 PyObject * _argo1 = 0;
4611 long temp;
4612 PyObject * _obj2 = 0;
4613 char *_kwnames[] = { "self","item","INOUT", NULL };
4614 char _ptemp[128];
4615
4616 self = self;
4617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2))
4618 return NULL;
4619 if (_argo0) {
4620 if (_argo0 == Py_None) { _arg0 = NULL; }
4621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxTreeCtrl_p.");
4623 return NULL;
4624 }
4625 }
4626 if (_argo1) {
4627 if (_argo1 == Py_None) { _arg1 = NULL; }
4628 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4629 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p.");
4630 return NULL;
4631 }
4632 }
4633 {
4634 temp = (long) PyInt_AsLong(_obj2);
4635 _arg2 = &temp;
4636 }
4637 {
4638 wxPy_BEGIN_ALLOW_THREADS;
4639 _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2));
4640
4641 wxPy_END_ALLOW_THREADS;
4642 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4643 _resultobj = Py_BuildValue("s",_ptemp);
4644 {
4645 PyObject *o;
4646 o = PyInt_FromLong((long) (*_arg2));
4647 _resultobj = t_output_helper(_resultobj, o);
4648 }
4649 return _resultobj;
4650 }
4651
4652 #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0))
4653 static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
4654 PyObject * _resultobj;
4655 wxTreeItemId * _result;
4656 wxTreeCtrl * _arg0;
4657 wxTreeItemId * _arg1;
4658 PyObject * _argo0 = 0;
4659 PyObject * _argo1 = 0;
4660 char *_kwnames[] = { "self","item", NULL };
4661 char _ptemp[128];
4662
4663 self = self;
4664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1))
4665 return NULL;
4666 if (_argo0) {
4667 if (_argo0 == Py_None) { _arg0 = NULL; }
4668 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxTreeCtrl_p.");
4670 return NULL;
4671 }
4672 }
4673 if (_argo1) {
4674 if (_argo1 == Py_None) { _arg1 = NULL; }
4675 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4676 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p.");
4677 return NULL;
4678 }
4679 }
4680 {
4681 wxPy_BEGIN_ALLOW_THREADS;
4682 _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1));
4683
4684 wxPy_END_ALLOW_THREADS;
4685 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4686 _resultobj = Py_BuildValue("s",_ptemp);
4687 return _resultobj;
4688 }
4689
4690 #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0))
4691 static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
4692 PyObject * _resultobj;
4693 wxTreeItemId * _result;
4694 wxTreeCtrl * _arg0;
4695 wxTreeItemId * _arg1;
4696 PyObject * _argo0 = 0;
4697 PyObject * _argo1 = 0;
4698 char *_kwnames[] = { "self","item", NULL };
4699 char _ptemp[128];
4700
4701 self = self;
4702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1))
4703 return NULL;
4704 if (_argo0) {
4705 if (_argo0 == Py_None) { _arg0 = NULL; }
4706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeCtrl_p.");
4708 return NULL;
4709 }
4710 }
4711 if (_argo1) {
4712 if (_argo1 == Py_None) { _arg1 = NULL; }
4713 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4714 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p.");
4715 return NULL;
4716 }
4717 }
4718 {
4719 wxPy_BEGIN_ALLOW_THREADS;
4720 _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1));
4721
4722 wxPy_END_ALLOW_THREADS;
4723 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4724 _resultobj = Py_BuildValue("s",_ptemp);
4725 return _resultobj;
4726 }
4727
4728 #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem())
4729 static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4730 PyObject * _resultobj;
4731 wxTreeItemId * _result;
4732 wxTreeCtrl * _arg0;
4733 PyObject * _argo0 = 0;
4734 char *_kwnames[] = { "self", NULL };
4735 char _ptemp[128];
4736
4737 self = self;
4738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0))
4739 return NULL;
4740 if (_argo0) {
4741 if (_argo0 == Py_None) { _arg0 = NULL; }
4742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxTreeCtrl_p.");
4744 return NULL;
4745 }
4746 }
4747 {
4748 wxPy_BEGIN_ALLOW_THREADS;
4749 _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0));
4750
4751 wxPy_END_ALLOW_THREADS;
4752 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4753 _resultobj = Py_BuildValue("s",_ptemp);
4754 return _resultobj;
4755 }
4756
4757 #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0))
4758 static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4759 PyObject * _resultobj;
4760 wxTreeItemId * _result;
4761 wxTreeCtrl * _arg0;
4762 wxTreeItemId * _arg1;
4763 PyObject * _argo0 = 0;
4764 PyObject * _argo1 = 0;
4765 char *_kwnames[] = { "self","item", NULL };
4766 char _ptemp[128];
4767
4768 self = self;
4769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1))
4770 return NULL;
4771 if (_argo0) {
4772 if (_argo0 == Py_None) { _arg0 = NULL; }
4773 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4774 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxTreeCtrl_p.");
4775 return NULL;
4776 }
4777 }
4778 if (_argo1) {
4779 if (_argo1 == Py_None) { _arg1 = NULL; }
4780 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4781 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p.");
4782 return NULL;
4783 }
4784 }
4785 {
4786 wxPy_BEGIN_ALLOW_THREADS;
4787 _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1));
4788
4789 wxPy_END_ALLOW_THREADS;
4790 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4791 _resultobj = Py_BuildValue("s",_ptemp);
4792 return _resultobj;
4793 }
4794
4795 #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0))
4796 static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4797 PyObject * _resultobj;
4798 wxTreeItemId * _result;
4799 wxTreeCtrl * _arg0;
4800 wxTreeItemId * _arg1;
4801 PyObject * _argo0 = 0;
4802 PyObject * _argo1 = 0;
4803 char *_kwnames[] = { "self","item", NULL };
4804 char _ptemp[128];
4805
4806 self = self;
4807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1))
4808 return NULL;
4809 if (_argo0) {
4810 if (_argo0 == Py_None) { _arg0 = NULL; }
4811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeCtrl_p.");
4813 return NULL;
4814 }
4815 }
4816 if (_argo1) {
4817 if (_argo1 == Py_None) { _arg1 = NULL; }
4818 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4819 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p.");
4820 return NULL;
4821 }
4822 }
4823 {
4824 wxPy_BEGIN_ALLOW_THREADS;
4825 _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1));
4826
4827 wxPy_END_ALLOW_THREADS;
4828 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4829 _resultobj = Py_BuildValue("s",_ptemp);
4830 return _resultobj;
4831 }
4832
4833 #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0))
4834 static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
4835 PyObject * _resultobj;
4836 wxTreeItemId * _result;
4837 wxTreeCtrl * _arg0;
4838 wxTreeItemId * _arg1;
4839 PyObject * _argo0 = 0;
4840 PyObject * _argo1 = 0;
4841 char *_kwnames[] = { "self","item", NULL };
4842 char _ptemp[128];
4843
4844 self = self;
4845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1))
4846 return NULL;
4847 if (_argo0) {
4848 if (_argo0 == Py_None) { _arg0 = NULL; }
4849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxTreeCtrl_p.");
4851 return NULL;
4852 }
4853 }
4854 if (_argo1) {
4855 if (_argo1 == Py_None) { _arg1 = NULL; }
4856 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4857 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p.");
4858 return NULL;
4859 }
4860 }
4861 {
4862 wxPy_BEGIN_ALLOW_THREADS;
4863 _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1));
4864
4865 wxPy_END_ALLOW_THREADS;
4866 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4867 _resultobj = Py_BuildValue("s",_ptemp);
4868 return _resultobj;
4869 }
4870
4871 #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4872 static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
4873 PyObject * _resultobj;
4874 wxTreeItemId * _result;
4875 wxTreeCtrl * _arg0;
4876 wxString * _arg1;
4877 int _arg2 = (int ) -1;
4878 int _arg3 = (int ) -1;
4879 wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL;
4880 PyObject * _argo0 = 0;
4881 PyObject * _obj1 = 0;
4882 PyObject * _argo4 = 0;
4883 char *_kwnames[] = { "self","text","image","selectedImage","data", NULL };
4884 char _ptemp[128];
4885
4886 self = self;
4887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4))
4888 return NULL;
4889 if (_argo0) {
4890 if (_argo0 == Py_None) { _arg0 = NULL; }
4891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxTreeCtrl_p.");
4893 return NULL;
4894 }
4895 }
4896 {
4897 if (!PyString_Check(_obj1)) {
4898 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4899 return NULL;
4900 }
4901 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4902 }
4903 if (_argo4) {
4904 if (_argo4 == Py_None) { _arg4 = NULL; }
4905 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) {
4906 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p.");
4907 return NULL;
4908 }
4909 }
4910 {
4911 wxPy_BEGIN_ALLOW_THREADS;
4912 _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4));
4913
4914 wxPy_END_ALLOW_THREADS;
4915 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4916 _resultobj = Py_BuildValue("s",_ptemp);
4917 {
4918 if (_obj1)
4919 delete _arg1;
4920 }
4921 return _resultobj;
4922 }
4923
4924 #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4925 static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4926 PyObject * _resultobj;
4927 wxTreeItemId * _result;
4928 wxTreeCtrl * _arg0;
4929 wxTreeItemId * _arg1;
4930 wxString * _arg2;
4931 int _arg3 = (int ) -1;
4932 int _arg4 = (int ) -1;
4933 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
4934 PyObject * _argo0 = 0;
4935 PyObject * _argo1 = 0;
4936 PyObject * _obj2 = 0;
4937 PyObject * _argo5 = 0;
4938 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
4939 char _ptemp[128];
4940
4941 self = self;
4942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
4943 return NULL;
4944 if (_argo0) {
4945 if (_argo0 == Py_None) { _arg0 = NULL; }
4946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxTreeCtrl_p.");
4948 return NULL;
4949 }
4950 }
4951 if (_argo1) {
4952 if (_argo1 == Py_None) { _arg1 = NULL; }
4953 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4954 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p.");
4955 return NULL;
4956 }
4957 }
4958 {
4959 if (!PyString_Check(_obj2)) {
4960 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4961 return NULL;
4962 }
4963 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
4964 }
4965 if (_argo5) {
4966 if (_argo5 == Py_None) { _arg5 = NULL; }
4967 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
4968 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p.");
4969 return NULL;
4970 }
4971 }
4972 {
4973 wxPy_BEGIN_ALLOW_THREADS;
4974 _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
4975
4976 wxPy_END_ALLOW_THREADS;
4977 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4978 _resultobj = Py_BuildValue("s",_ptemp);
4979 {
4980 if (_obj2)
4981 delete _arg2;
4982 }
4983 return _resultobj;
4984 }
4985
4986 #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4987 static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4988 PyObject * _resultobj;
4989 wxTreeItemId * _result;
4990 wxTreeCtrl * _arg0;
4991 wxTreeItemId * _arg1;
4992 wxTreeItemId * _arg2;
4993 wxString * _arg3;
4994 int _arg4 = (int ) -1;
4995 int _arg5 = (int ) -1;
4996 wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
4997 PyObject * _argo0 = 0;
4998 PyObject * _argo1 = 0;
4999 PyObject * _argo2 = 0;
5000 PyObject * _obj3 = 0;
5001 PyObject * _argo6 = 0;
5002 char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL };
5003 char _ptemp[128];
5004
5005 self = self;
5006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6))
5007 return NULL;
5008 if (_argo0) {
5009 if (_argo0 == Py_None) { _arg0 = NULL; }
5010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxTreeCtrl_p.");
5012 return NULL;
5013 }
5014 }
5015 if (_argo1) {
5016 if (_argo1 == Py_None) { _arg1 = NULL; }
5017 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5018 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
5019 return NULL;
5020 }
5021 }
5022 if (_argo2) {
5023 if (_argo2 == Py_None) { _arg2 = NULL; }
5024 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) {
5025 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
5026 return NULL;
5027 }
5028 }
5029 {
5030 if (!PyString_Check(_obj3)) {
5031 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5032 return NULL;
5033 }
5034 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
5035 }
5036 if (_argo6) {
5037 if (_argo6 == Py_None) { _arg6 = NULL; }
5038 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
5039 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p.");
5040 return NULL;
5041 }
5042 }
5043 {
5044 wxPy_BEGIN_ALLOW_THREADS;
5045 _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6));
5046
5047 wxPy_END_ALLOW_THREADS;
5048 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
5049 _resultobj = Py_BuildValue("s",_ptemp);
5050 {
5051 if (_obj3)
5052 delete _arg3;
5053 }
5054 return _resultobj;
5055 }
5056
5057 #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5058 static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5059 PyObject * _resultobj;
5060 wxTreeItemId * _result;
5061 wxTreeCtrl * _arg0;
5062 wxTreeItemId * _arg1;
5063 wxString * _arg2;
5064 int _arg3 = (int ) -1;
5065 int _arg4 = (int ) -1;
5066 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
5067 PyObject * _argo0 = 0;
5068 PyObject * _argo1 = 0;
5069 PyObject * _obj2 = 0;
5070 PyObject * _argo5 = 0;
5071 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
5072 char _ptemp[128];
5073
5074 self = self;
5075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
5076 return NULL;
5077 if (_argo0) {
5078 if (_argo0 == Py_None) { _arg0 = NULL; }
5079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxTreeCtrl_p.");
5081 return NULL;
5082 }
5083 }
5084 if (_argo1) {
5085 if (_argo1 == Py_None) { _arg1 = NULL; }
5086 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5087 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p.");
5088 return NULL;
5089 }
5090 }
5091 {
5092 if (!PyString_Check(_obj2)) {
5093 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5094 return NULL;
5095 }
5096 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5097 }
5098 if (_argo5) {
5099 if (_argo5 == Py_None) { _arg5 = NULL; }
5100 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
5101 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p.");
5102 return NULL;
5103 }
5104 }
5105 {
5106 wxPy_BEGIN_ALLOW_THREADS;
5107 _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
5108
5109 wxPy_END_ALLOW_THREADS;
5110 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
5111 _resultobj = Py_BuildValue("s",_ptemp);
5112 {
5113 if (_obj2)
5114 delete _arg2;
5115 }
5116 return _resultobj;
5117 }
5118
5119 #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
5120 static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
5121 PyObject * _resultobj;
5122 wxTreeCtrl * _arg0;
5123 wxTreeItemId * _arg1;
5124 PyObject * _argo0 = 0;
5125 PyObject * _argo1 = 0;
5126 char *_kwnames[] = { "self","item", NULL };
5127
5128 self = self;
5129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1))
5130 return NULL;
5131 if (_argo0) {
5132 if (_argo0 == Py_None) { _arg0 = NULL; }
5133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxTreeCtrl_p.");
5135 return NULL;
5136 }
5137 }
5138 if (_argo1) {
5139 if (_argo1 == Py_None) { _arg1 = NULL; }
5140 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5141 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p.");
5142 return NULL;
5143 }
5144 }
5145 {
5146 wxPy_BEGIN_ALLOW_THREADS;
5147 wxTreeCtrl_Delete(_arg0,*_arg1);
5148
5149 wxPy_END_ALLOW_THREADS;
5150 } Py_INCREF(Py_None);
5151 _resultobj = Py_None;
5152 return _resultobj;
5153 }
5154
5155 #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0))
5156 static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
5157 PyObject * _resultobj;
5158 wxTreeCtrl * _arg0;
5159 wxTreeItemId * _arg1;
5160 PyObject * _argo0 = 0;
5161 PyObject * _argo1 = 0;
5162 char *_kwnames[] = { "self","item", NULL };
5163
5164 self = self;
5165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1))
5166 return NULL;
5167 if (_argo0) {
5168 if (_argo0 == Py_None) { _arg0 = NULL; }
5169 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5170 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxTreeCtrl_p.");
5171 return NULL;
5172 }
5173 }
5174 if (_argo1) {
5175 if (_argo1 == Py_None) { _arg1 = NULL; }
5176 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5177 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p.");
5178 return NULL;
5179 }
5180 }
5181 {
5182 wxPy_BEGIN_ALLOW_THREADS;
5183 wxTreeCtrl_DeleteChildren(_arg0,*_arg1);
5184
5185 wxPy_END_ALLOW_THREADS;
5186 } Py_INCREF(Py_None);
5187 _resultobj = Py_None;
5188 return _resultobj;
5189 }
5190
5191 #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
5192 static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5193 PyObject * _resultobj;
5194 wxTreeCtrl * _arg0;
5195 PyObject * _argo0 = 0;
5196 char *_kwnames[] = { "self", NULL };
5197
5198 self = self;
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0))
5200 return NULL;
5201 if (_argo0) {
5202 if (_argo0 == Py_None) { _arg0 = NULL; }
5203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxTreeCtrl_p.");
5205 return NULL;
5206 }
5207 }
5208 {
5209 wxPy_BEGIN_ALLOW_THREADS;
5210 wxTreeCtrl_DeleteAllItems(_arg0);
5211
5212 wxPy_END_ALLOW_THREADS;
5213 } Py_INCREF(Py_None);
5214 _resultobj = Py_None;
5215 return _resultobj;
5216 }
5217
5218 #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0))
5219 static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
5220 PyObject * _resultobj;
5221 wxTreeCtrl * _arg0;
5222 wxTreeItemId * _arg1;
5223 PyObject * _argo0 = 0;
5224 PyObject * _argo1 = 0;
5225 char *_kwnames[] = { "self","item", NULL };
5226
5227 self = self;
5228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1))
5229 return NULL;
5230 if (_argo0) {
5231 if (_argo0 == Py_None) { _arg0 = NULL; }
5232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxTreeCtrl_p.");
5234 return NULL;
5235 }
5236 }
5237 if (_argo1) {
5238 if (_argo1 == Py_None) { _arg1 = NULL; }
5239 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5240 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p.");
5241 return NULL;
5242 }
5243 }
5244 {
5245 wxPy_BEGIN_ALLOW_THREADS;
5246 wxTreeCtrl_Expand(_arg0,*_arg1);
5247
5248 wxPy_END_ALLOW_THREADS;
5249 } Py_INCREF(Py_None);
5250 _resultobj = Py_None;
5251 return _resultobj;
5252 }
5253
5254 #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0))
5255 static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
5256 PyObject * _resultobj;
5257 wxTreeCtrl * _arg0;
5258 wxTreeItemId * _arg1;
5259 PyObject * _argo0 = 0;
5260 PyObject * _argo1 = 0;
5261 char *_kwnames[] = { "self","item", NULL };
5262
5263 self = self;
5264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1))
5265 return NULL;
5266 if (_argo0) {
5267 if (_argo0 == Py_None) { _arg0 = NULL; }
5268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxTreeCtrl_p.");
5270 return NULL;
5271 }
5272 }
5273 if (_argo1) {
5274 if (_argo1 == Py_None) { _arg1 = NULL; }
5275 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5276 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p.");
5277 return NULL;
5278 }
5279 }
5280 {
5281 wxPy_BEGIN_ALLOW_THREADS;
5282 wxTreeCtrl_Collapse(_arg0,*_arg1);
5283
5284 wxPy_END_ALLOW_THREADS;
5285 } Py_INCREF(Py_None);
5286 _resultobj = Py_None;
5287 return _resultobj;
5288 }
5289
5290 #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0))
5291 static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
5292 PyObject * _resultobj;
5293 wxTreeCtrl * _arg0;
5294 wxTreeItemId * _arg1;
5295 PyObject * _argo0 = 0;
5296 PyObject * _argo1 = 0;
5297 char *_kwnames[] = { "self","item", NULL };
5298
5299 self = self;
5300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1))
5301 return NULL;
5302 if (_argo0) {
5303 if (_argo0 == Py_None) { _arg0 = NULL; }
5304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeCtrl_p.");
5306 return NULL;
5307 }
5308 }
5309 if (_argo1) {
5310 if (_argo1 == Py_None) { _arg1 = NULL; }
5311 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5312 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p.");
5313 return NULL;
5314 }
5315 }
5316 {
5317 wxPy_BEGIN_ALLOW_THREADS;
5318 wxTreeCtrl_CollapseAndReset(_arg0,*_arg1);
5319
5320 wxPy_END_ALLOW_THREADS;
5321 } Py_INCREF(Py_None);
5322 _resultobj = Py_None;
5323 return _resultobj;
5324 }
5325
5326 #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
5327 static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject * _resultobj;
5329 wxTreeCtrl * _arg0;
5330 wxTreeItemId * _arg1;
5331 PyObject * _argo0 = 0;
5332 PyObject * _argo1 = 0;
5333 char *_kwnames[] = { "self","item", NULL };
5334
5335 self = self;
5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1))
5337 return NULL;
5338 if (_argo0) {
5339 if (_argo0 == Py_None) { _arg0 = NULL; }
5340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxTreeCtrl_p.");
5342 return NULL;
5343 }
5344 }
5345 if (_argo1) {
5346 if (_argo1 == Py_None) { _arg1 = NULL; }
5347 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5348 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p.");
5349 return NULL;
5350 }
5351 }
5352 {
5353 wxPy_BEGIN_ALLOW_THREADS;
5354 wxTreeCtrl_Toggle(_arg0,*_arg1);
5355
5356 wxPy_END_ALLOW_THREADS;
5357 } Py_INCREF(Py_None);
5358 _resultobj = Py_None;
5359 return _resultobj;
5360 }
5361
5362 #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect())
5363 static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5364 PyObject * _resultobj;
5365 wxTreeCtrl * _arg0;
5366 PyObject * _argo0 = 0;
5367 char *_kwnames[] = { "self", NULL };
5368
5369 self = self;
5370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0))
5371 return NULL;
5372 if (_argo0) {
5373 if (_argo0 == Py_None) { _arg0 = NULL; }
5374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxTreeCtrl_p.");
5376 return NULL;
5377 }
5378 }
5379 {
5380 wxPy_BEGIN_ALLOW_THREADS;
5381 wxTreeCtrl_Unselect(_arg0);
5382
5383 wxPy_END_ALLOW_THREADS;
5384 } Py_INCREF(Py_None);
5385 _resultobj = Py_None;
5386 return _resultobj;
5387 }
5388
5389 #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll())
5390 static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
5391 PyObject * _resultobj;
5392 wxTreeCtrl * _arg0;
5393 PyObject * _argo0 = 0;
5394 char *_kwnames[] = { "self", NULL };
5395
5396 self = self;
5397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0))
5398 return NULL;
5399 if (_argo0) {
5400 if (_argo0 == Py_None) { _arg0 = NULL; }
5401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxTreeCtrl_p.");
5403 return NULL;
5404 }
5405 }
5406 {
5407 wxPy_BEGIN_ALLOW_THREADS;
5408 wxTreeCtrl_UnselectAll(_arg0);
5409
5410 wxPy_END_ALLOW_THREADS;
5411 } Py_INCREF(Py_None);
5412 _resultobj = Py_None;
5413 return _resultobj;
5414 }
5415
5416 #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0))
5417 static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5418 PyObject * _resultobj;
5419 wxTreeCtrl * _arg0;
5420 wxTreeItemId * _arg1;
5421 PyObject * _argo0 = 0;
5422 PyObject * _argo1 = 0;
5423 char *_kwnames[] = { "self","item", NULL };
5424
5425 self = self;
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1))
5427 return NULL;
5428 if (_argo0) {
5429 if (_argo0 == Py_None) { _arg0 = NULL; }
5430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxTreeCtrl_p.");
5432 return NULL;
5433 }
5434 }
5435 if (_argo1) {
5436 if (_argo1 == Py_None) { _arg1 = NULL; }
5437 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5438 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p.");
5439 return NULL;
5440 }
5441 }
5442 {
5443 wxPy_BEGIN_ALLOW_THREADS;
5444 wxTreeCtrl_SelectItem(_arg0,*_arg1);
5445
5446 wxPy_END_ALLOW_THREADS;
5447 } Py_INCREF(Py_None);
5448 _resultobj = Py_None;
5449 return _resultobj;
5450 }
5451
5452 #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
5453 static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
5454 PyObject * _resultobj;
5455 wxTreeCtrl * _arg0;
5456 wxTreeItemId * _arg1;
5457 PyObject * _argo0 = 0;
5458 PyObject * _argo1 = 0;
5459 char *_kwnames[] = { "self","item", NULL };
5460
5461 self = self;
5462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1))
5463 return NULL;
5464 if (_argo0) {
5465 if (_argo0 == Py_None) { _arg0 = NULL; }
5466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxTreeCtrl_p.");
5468 return NULL;
5469 }
5470 }
5471 if (_argo1) {
5472 if (_argo1 == Py_None) { _arg1 = NULL; }
5473 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5474 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p.");
5475 return NULL;
5476 }
5477 }
5478 {
5479 wxPy_BEGIN_ALLOW_THREADS;
5480 wxTreeCtrl_EnsureVisible(_arg0,*_arg1);
5481
5482 wxPy_END_ALLOW_THREADS;
5483 } Py_INCREF(Py_None);
5484 _resultobj = Py_None;
5485 return _resultobj;
5486 }
5487
5488 #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0))
5489 static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
5490 PyObject * _resultobj;
5491 wxTreeCtrl * _arg0;
5492 wxTreeItemId * _arg1;
5493 PyObject * _argo0 = 0;
5494 PyObject * _argo1 = 0;
5495 char *_kwnames[] = { "self","item", NULL };
5496
5497 self = self;
5498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1))
5499 return NULL;
5500 if (_argo0) {
5501 if (_argo0 == Py_None) { _arg0 = NULL; }
5502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxTreeCtrl_p.");
5504 return NULL;
5505 }
5506 }
5507 if (_argo1) {
5508 if (_argo1 == Py_None) { _arg1 = NULL; }
5509 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5510 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p.");
5511 return NULL;
5512 }
5513 }
5514 {
5515 wxPy_BEGIN_ALLOW_THREADS;
5516 wxTreeCtrl_ScrollTo(_arg0,*_arg1);
5517
5518 wxPy_END_ALLOW_THREADS;
5519 } Py_INCREF(Py_None);
5520 _resultobj = Py_None;
5521 return _resultobj;
5522 }
5523
5524 #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
5525 static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5526 PyObject * _resultobj;
5527 wxTextCtrl * _result;
5528 wxTreeCtrl * _arg0;
5529 wxTreeItemId * _arg1;
5530 PyObject * _argo0 = 0;
5531 PyObject * _argo1 = 0;
5532 char *_kwnames[] = { "self","item", NULL };
5533 char _ptemp[128];
5534
5535 self = self;
5536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1))
5537 return NULL;
5538 if (_argo0) {
5539 if (_argo0 == Py_None) { _arg0 = NULL; }
5540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxTreeCtrl_p.");
5542 return NULL;
5543 }
5544 }
5545 if (_argo1) {
5546 if (_argo1 == Py_None) { _arg1 = NULL; }
5547 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5548 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p.");
5549 return NULL;
5550 }
5551 }
5552 {
5553 wxPy_BEGIN_ALLOW_THREADS;
5554 _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1);
5555
5556 wxPy_END_ALLOW_THREADS;
5557 } if (_result) {
5558 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
5559 _resultobj = Py_BuildValue("s",_ptemp);
5560 } else {
5561 Py_INCREF(Py_None);
5562 _resultobj = Py_None;
5563 }
5564 return _resultobj;
5565 }
5566
5567 #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
5568 static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
5569 PyObject * _resultobj;
5570 wxTextCtrl * _result;
5571 wxTreeCtrl * _arg0;
5572 PyObject * _argo0 = 0;
5573 char *_kwnames[] = { "self", NULL };
5574 char _ptemp[128];
5575
5576 self = self;
5577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0))
5578 return NULL;
5579 if (_argo0) {
5580 if (_argo0 == Py_None) { _arg0 = NULL; }
5581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxTreeCtrl_p.");
5583 return NULL;
5584 }
5585 }
5586 {
5587 wxPy_BEGIN_ALLOW_THREADS;
5588 _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0);
5589
5590 wxPy_END_ALLOW_THREADS;
5591 } if (_result) {
5592 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
5593 _resultobj = Py_BuildValue("s",_ptemp);
5594 } else {
5595 Py_INCREF(Py_None);
5596 _resultobj = Py_None;
5597 }
5598 return _resultobj;
5599 }
5600
5601 #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1))
5602 static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5603 PyObject * _resultobj;
5604 wxTreeCtrl * _arg0;
5605 wxTreeItemId * _arg1;
5606 int _arg2 = (int ) FALSE;
5607 PyObject * _argo0 = 0;
5608 PyObject * _argo1 = 0;
5609 char *_kwnames[] = { "self","item","discardChanges", NULL };
5610
5611 self = self;
5612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2))
5613 return NULL;
5614 if (_argo0) {
5615 if (_argo0 == Py_None) { _arg0 = NULL; }
5616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxTreeCtrl_p.");
5618 return NULL;
5619 }
5620 }
5621 if (_argo1) {
5622 if (_argo1 == Py_None) { _arg1 = NULL; }
5623 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5624 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p.");
5625 return NULL;
5626 }
5627 }
5628 {
5629 wxPy_BEGIN_ALLOW_THREADS;
5630 wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2);
5631
5632 wxPy_END_ALLOW_THREADS;
5633 } Py_INCREF(Py_None);
5634 _resultobj = Py_None;
5635 return _resultobj;
5636 }
5637
5638 #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0))
5639 static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
5640 PyObject * _resultobj;
5641 wxTreeCtrl * _arg0;
5642 wxTreeItemId * _arg1;
5643 PyObject * _argo0 = 0;
5644 PyObject * _argo1 = 0;
5645 char *_kwnames[] = { "self","item", NULL };
5646
5647 self = self;
5648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1))
5649 return NULL;
5650 if (_argo0) {
5651 if (_argo0 == Py_None) { _arg0 = NULL; }
5652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxTreeCtrl_p.");
5654 return NULL;
5655 }
5656 }
5657 if (_argo1) {
5658 if (_argo1 == Py_None) { _arg1 = NULL; }
5659 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5660 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p.");
5661 return NULL;
5662 }
5663 }
5664 {
5665 wxPy_BEGIN_ALLOW_THREADS;
5666 wxTreeCtrl_SortChildren(_arg0,*_arg1);
5667
5668 wxPy_END_ALLOW_THREADS;
5669 } Py_INCREF(Py_None);
5670 _resultobj = Py_None;
5671 return _resultobj;
5672 }
5673
5674 #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1))
5675 static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
5676 PyObject * _resultobj;
5677 wxTreeCtrl * _arg0;
5678 wxTreeItemId * _arg1;
5679 int _arg2 = (int ) TRUE;
5680 PyObject * _argo0 = 0;
5681 PyObject * _argo1 = 0;
5682 char *_kwnames[] = { "self","item","bold", NULL };
5683
5684 self = self;
5685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2))
5686 return NULL;
5687 if (_argo0) {
5688 if (_argo0 == Py_None) { _arg0 = NULL; }
5689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxTreeCtrl_p.");
5691 return NULL;
5692 }
5693 }
5694 if (_argo1) {
5695 if (_argo1 == Py_None) { _arg1 = NULL; }
5696 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5697 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p.");
5698 return NULL;
5699 }
5700 }
5701 {
5702 wxPy_BEGIN_ALLOW_THREADS;
5703 wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2);
5704
5705 wxPy_END_ALLOW_THREADS;
5706 } Py_INCREF(Py_None);
5707 _resultobj = Py_None;
5708 return _resultobj;
5709 }
5710
5711 #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0))
5712 static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
5713 PyObject * _resultobj;
5714 bool _result;
5715 wxTreeCtrl * _arg0;
5716 wxTreeItemId * _arg1;
5717 PyObject * _argo0 = 0;
5718 PyObject * _argo1 = 0;
5719 char *_kwnames[] = { "self","item", NULL };
5720
5721 self = self;
5722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1))
5723 return NULL;
5724 if (_argo0) {
5725 if (_argo0 == Py_None) { _arg0 = NULL; }
5726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxTreeCtrl_p.");
5728 return NULL;
5729 }
5730 }
5731 if (_argo1) {
5732 if (_argo1 == Py_None) { _arg1 = NULL; }
5733 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5734 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p.");
5735 return NULL;
5736 }
5737 }
5738 {
5739 wxPy_BEGIN_ALLOW_THREADS;
5740 _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1);
5741
5742 wxPy_END_ALLOW_THREADS;
5743 } _resultobj = Py_BuildValue("i",_result);
5744 return _resultobj;
5745 }
5746
5747 #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
5748 static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
5749 PyObject * _resultobj;
5750 wxTreeItemId * _result;
5751 wxTreeCtrl * _arg0;
5752 wxPoint * _arg1;
5753 int * _arg2;
5754 int temp;
5755 PyObject * _argo0 = 0;
5756 wxPoint temp0;
5757 PyObject * _obj1 = 0;
5758 char *_kwnames[] = { "self","point", NULL };
5759 char _ptemp[128];
5760
5761 self = self;
5762 {
5763 _arg2 = &temp;
5764 }
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1))
5766 return NULL;
5767 if (_argo0) {
5768 if (_argo0 == Py_None) { _arg0 = NULL; }
5769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxTreeCtrl_p.");
5771 return NULL;
5772 }
5773 }
5774 {
5775 _arg1 = &temp0;
5776 if (! wxPoint_helper(_obj1, &_arg1))
5777 return NULL;
5778 }
5779 {
5780 wxPy_BEGIN_ALLOW_THREADS;
5781 _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2));
5782
5783 wxPy_END_ALLOW_THREADS;
5784 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
5785 _resultobj = Py_BuildValue("s",_ptemp);
5786 {
5787 PyObject *o;
5788 o = PyInt_FromLong((long) (*_arg2));
5789 _resultobj = t_output_helper(_resultobj, o);
5790 }
5791 return _resultobj;
5792 }
5793
5794 #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1))
5795 static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5796 PyObject * _resultobj;
5797 wxTreeCtrl * _arg0;
5798 wxTreeItemId * _arg1;
5799 wxColour * _arg2;
5800 PyObject * _argo0 = 0;
5801 PyObject * _argo1 = 0;
5802 PyObject * _argo2 = 0;
5803 char *_kwnames[] = { "self","item","col", NULL };
5804
5805 self = self;
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_argo2))
5807 return NULL;
5808 if (_argo0) {
5809 if (_argo0 == Py_None) { _arg0 = NULL; }
5810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeCtrl_p.");
5812 return NULL;
5813 }
5814 }
5815 if (_argo1) {
5816 if (_argo1 == Py_None) { _arg1 = NULL; }
5817 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5818 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p.");
5819 return NULL;
5820 }
5821 }
5822 if (_argo2) {
5823 if (_argo2 == Py_None) { _arg2 = NULL; }
5824 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxColour_p")) {
5825 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemTextColour. Expected _wxColour_p.");
5826 return NULL;
5827 }
5828 }
5829 {
5830 wxPy_BEGIN_ALLOW_THREADS;
5831 wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2);
5832
5833 wxPy_END_ALLOW_THREADS;
5834 } Py_INCREF(Py_None);
5835 _resultobj = Py_None;
5836 return _resultobj;
5837 }
5838
5839 #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1))
5840 static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5841 PyObject * _resultobj;
5842 wxTreeCtrl * _arg0;
5843 wxTreeItemId * _arg1;
5844 wxColour * _arg2;
5845 PyObject * _argo0 = 0;
5846 PyObject * _argo1 = 0;
5847 PyObject * _argo2 = 0;
5848 char *_kwnames[] = { "self","item","col", NULL };
5849
5850 self = self;
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_argo2))
5852 return NULL;
5853 if (_argo0) {
5854 if (_argo0 == Py_None) { _arg0 = NULL; }
5855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeCtrl_p.");
5857 return NULL;
5858 }
5859 }
5860 if (_argo1) {
5861 if (_argo1 == Py_None) { _arg1 = NULL; }
5862 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5863 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p.");
5864 return NULL;
5865 }
5866 }
5867 if (_argo2) {
5868 if (_argo2 == Py_None) { _arg2 = NULL; }
5869 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxColour_p")) {
5870 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxColour_p.");
5871 return NULL;
5872 }
5873 }
5874 {
5875 wxPy_BEGIN_ALLOW_THREADS;
5876 wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2);
5877
5878 wxPy_END_ALLOW_THREADS;
5879 } Py_INCREF(Py_None);
5880 _resultobj = Py_None;
5881 return _resultobj;
5882 }
5883
5884 #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1))
5885 static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5886 PyObject * _resultobj;
5887 wxTreeCtrl * _arg0;
5888 wxTreeItemId * _arg1;
5889 wxFont * _arg2;
5890 PyObject * _argo0 = 0;
5891 PyObject * _argo1 = 0;
5892 PyObject * _argo2 = 0;
5893 char *_kwnames[] = { "self","item","font", NULL };
5894
5895 self = self;
5896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2))
5897 return NULL;
5898 if (_argo0) {
5899 if (_argo0 == Py_None) { _arg0 = NULL; }
5900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxTreeCtrl_p.");
5902 return NULL;
5903 }
5904 }
5905 if (_argo1) {
5906 if (_argo1 == Py_None) { _arg1 = NULL; }
5907 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5908 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p.");
5909 return NULL;
5910 }
5911 }
5912 if (_argo2) {
5913 if (_argo2 == Py_None) { _arg2 = NULL; }
5914 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5915 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p.");
5916 return NULL;
5917 }
5918 }
5919 {
5920 wxPy_BEGIN_ALLOW_THREADS;
5921 wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2);
5922
5923 wxPy_END_ALLOW_THREADS;
5924 } Py_INCREF(Py_None);
5925 _resultobj = Py_None;
5926 return _resultobj;
5927 }
5928
5929 #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1))
5930 static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
5931 PyObject * _resultobj;
5932 wxTreeCtrl * _arg0;
5933 wxTreeItemId * _arg1;
5934 int _arg2 = (int ) TRUE;
5935 PyObject * _argo0 = 0;
5936 PyObject * _argo1 = 0;
5937 char *_kwnames[] = { "self","item","highlight", NULL };
5938
5939 self = self;
5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2))
5941 return NULL;
5942 if (_argo0) {
5943 if (_argo0 == Py_None) { _arg0 = NULL; }
5944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeCtrl_p.");
5946 return NULL;
5947 }
5948 }
5949 if (_argo1) {
5950 if (_argo1 == Py_None) { _arg1 = NULL; }
5951 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5952 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p.");
5953 return NULL;
5954 }
5955 }
5956 {
5957 wxPy_BEGIN_ALLOW_THREADS;
5958 wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2);
5959
5960 wxPy_END_ALLOW_THREADS;
5961 } Py_INCREF(Py_None);
5962 _resultobj = Py_None;
5963 return _resultobj;
5964 }
5965
5966 static PyObject * wxTreeCtrl_GetBoundingRect(wxTreeCtrl *self,const wxTreeItemId & item,int textOnly) {
5967 wxRect rect;
5968 if (self->GetBoundingRect(item, rect, textOnly)) {
5969 bool doSave = wxPyRestoreThread();
5970 wxRect* r = new wxRect(rect);
5971 PyObject* val = wxPyConstructObject((void*)r, "wxRect");
5972 wxPySaveThread(doSave);
5973 return val;
5974 }
5975 else {
5976 Py_INCREF(Py_None);
5977 return Py_None;
5978 }
5979 }
5980 static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5981 PyObject * _resultobj;
5982 PyObject * _result;
5983 wxTreeCtrl * _arg0;
5984 wxTreeItemId * _arg1;
5985 int _arg2 = (int ) FALSE;
5986 PyObject * _argo0 = 0;
5987 PyObject * _argo1 = 0;
5988 char *_kwnames[] = { "self","item","textOnly", NULL };
5989
5990 self = self;
5991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2))
5992 return NULL;
5993 if (_argo0) {
5994 if (_argo0 == Py_None) { _arg0 = NULL; }
5995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeCtrl_p.");
5997 return NULL;
5998 }
5999 }
6000 if (_argo1) {
6001 if (_argo1 == Py_None) { _arg1 = NULL; }
6002 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6003 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p.");
6004 return NULL;
6005 }
6006 }
6007 {
6008 wxPy_BEGIN_ALLOW_THREADS;
6009 _result = (PyObject *)wxTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2);
6010
6011 wxPy_END_ALLOW_THREADS;
6012 }{
6013 _resultobj = _result;
6014 }
6015 return _resultobj;
6016 }
6017
6018 static PyMethodDef controls2cMethods[] = {
6019 { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
6020 { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
6021 { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
6022 { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
6023 { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
6024 { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
6025 { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
6026 { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
6027 { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
6028 { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
6029 { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
6030 { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
6031 { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
6032 { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
6033 { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
6034 { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
6035 { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
6036 { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
6037 { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
6038 { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
6039 { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
6040 { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
6041 { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
6042 { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
6043 { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
6044 { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
6045 { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
6046 { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
6047 { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
6048 { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
6049 { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
6050 { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
6051 { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
6052 { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
6053 { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
6054 { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
6055 { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
6056 { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
6057 { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
6058 { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
6059 { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
6060 { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
6061 { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
6062 { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
6063 { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
6064 { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS },
6065 { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS },
6066 { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
6067 { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
6068 { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
6069 { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
6070 { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
6071 { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
6072 { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
6073 { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
6074 { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
6075 { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
6076 { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
6077 { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
6078 { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
6079 { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
6080 { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
6081 { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
6082 { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
6083 { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
6084 { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS },
6085 { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
6086 { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
6087 { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
6088 { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
6089 { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
6090 { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
6091 { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
6092 { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
6093 { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
6094 { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS },
6095 { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
6096 { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
6097 { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
6098 { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
6099 { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
6100 { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
6101 { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
6102 { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
6103 { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
6104 { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
6105 { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
6106 { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
6107 { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
6108 { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
6109 { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
6110 { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
6111 { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
6112 { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
6113 { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
6114 { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
6115 { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
6116 { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
6117 { "wxListCtrl_InsertColumnWith", (PyCFunction) _wrap_wxListCtrl_InsertColumnWith, METH_VARARGS | METH_KEYWORDS },
6118 { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
6119 { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
6120 { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
6121 { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
6122 { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
6123 { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
6124 { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
6125 { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
6126 { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
6127 { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
6128 { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
6129 { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
6130 { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
6131 { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
6132 { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
6133 { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
6134 { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
6135 { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
6136 { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
6137 { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
6138 { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
6139 { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
6140 { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
6141 { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
6142 { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
6143 { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
6144 { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
6145 { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
6146 { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
6147 { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
6148 { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
6149 { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS },
6150 { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
6151 { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS },
6152 { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
6153 { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
6154 { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS },
6155 { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS },
6156 { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
6157 { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
6158 { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
6159 { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
6160 { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
6161 { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
6162 { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
6163 { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
6164 { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS },
6165 { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS },
6166 { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
6167 { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
6168 { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
6169 { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
6170 { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
6171 { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
6172 { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
6173 { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
6174 { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
6175 { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
6176 { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
6177 { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
6178 { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
6179 { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
6180 { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
6181 { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
6182 { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
6183 { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
6184 { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
6185 { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
6186 { NULL, NULL }
6187 };
6188 #ifdef __cplusplus
6189 }
6190 #endif
6191 /*
6192 * This table is used by the pointer type-checker
6193 */
6194 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
6195 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
6196 { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent},
6197 { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
6198 { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent},
6199 { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
6200 { "_wxEvent","_class_wxEvent",0},
6201 { "_class_wxActivateEvent","_wxActivateEvent",0},
6202 { "_signed_long","_long",0},
6203 { "_wxMenuEvent","_class_wxMenuEvent",0},
6204 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
6205 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
6206 { "_class_wxPyCommandEvent","_wxPyCommandEvent",0},
6207 { "_wxPrintQuality","_wxCoord",0},
6208 { "_wxPrintQuality","_int",0},
6209 { "_wxPrintQuality","_signed_int",0},
6210 { "_wxPrintQuality","_unsigned_int",0},
6211 { "_wxPrintQuality","_wxWindowID",0},
6212 { "_wxPrintQuality","_uint",0},
6213 { "_wxPrintQuality","_EBool",0},
6214 { "_wxPrintQuality","_size_t",0},
6215 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
6216 { "_class_wxRegionIterator","_wxRegionIterator",0},
6217 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
6218 { "_class_wxMenuBar","_wxMenuBar",0},
6219 { "_class_wxPyTreeItemData","_wxPyTreeItemData",0},
6220 { "_class_wxEvtHandler","_class_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler},
6221 { "_class_wxEvtHandler","_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler},
6222 { "_class_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler},
6223 { "_class_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler},
6224 { "_class_wxEvtHandler","_wxEvtHandler",0},
6225 { "_wxPaintEvent","_class_wxPaintEvent",0},
6226 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
6227 { "_wxCursor","_class_wxCursor",0},
6228 { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
6229 { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
6230 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
6231 { "_class_wxTreeCtrl","_wxTreeCtrl",0},
6232 { "_wxMask","_class_wxMask",0},
6233 { "_wxPen","_class_wxPen",0},
6234 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
6235 { "_byte","_unsigned_char",0},
6236 { "_wxDataObject","_class_wxDataObject",0},
6237 { "_wxStaticBox","_class_wxStaticBox",0},
6238 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
6239 { "_wxPyDropSource","_class_wxPyDropSource",0},
6240 { "_wxChoice","_class_wxChoice",0},
6241 { "_wxSlider","_class_wxSlider",0},
6242 { "_long","_wxDash",0},
6243 { "_long","_unsigned_long",0},
6244 { "_long","_signed_long",0},
6245 { "_wxImageList","_class_wxImageList",0},
6246 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
6247 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
6248 { "_wxBitmapButton","_class_wxBitmapButton",0},
6249 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
6250 { "_class_wxClipboard","_wxClipboard",0},
6251 { "_class_wxGauge","_wxGauge",0},
6252 { "_wxDC","_class_wxDC",0},
6253 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
6254 { "_wxListEvent","_class_wxListEvent",0},
6255 { "_wxSpinEvent","_class_wxSpinEvent",0},
6256 { "_size_t","_wxCoord",0},
6257 { "_size_t","_wxPrintQuality",0},
6258 { "_size_t","_unsigned_int",0},
6259 { "_size_t","_int",0},
6260 { "_size_t","_wxWindowID",0},
6261 { "_size_t","_uint",0},
6262 { "_class_wxRealPoint","_wxRealPoint",0},
6263 { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0},
6264 { "_wxPrinterDC","_class_wxPrinterDC",0},
6265 { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0},
6266 { "_class_wxMenuItem","_wxMenuItem",0},
6267 { "_class_wxPaintEvent","_wxPaintEvent",0},
6268 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
6269 { "_wxPanel","_class_wxPanel",0},
6270 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
6271 { "_wxCheckBox","_class_wxCheckBox",0},
6272 { "_wxPyEvent","_class_wxPyEvent",0},
6273 { "_wxTextCtrl","_class_wxTextCtrl",0},
6274 { "_class_wxMask","_wxMask",0},
6275 { "_wxTextDataObject","_class_wxTextDataObject",0},
6276 { "_class_wxKeyEvent","_wxKeyEvent",0},
6277 { "_wxColour","_class_wxColour",0},
6278 { "_class_wxDialog","_wxDialog",0},
6279 { "_class_wxFileDataObject","_wxFileDataObject",0},
6280 { "_wxIdleEvent","_class_wxIdleEvent",0},
6281 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
6282 { "_class_wxDataObject","_wxDataObject",0},
6283 { "_wxStaticLine","_class_wxStaticLine",0},
6284 { "_wxBrush","_class_wxBrush",0},
6285 { "_wxDataFormat","_class_wxDataFormat",0},
6286 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
6287 { "_wxShowEvent","_class_wxShowEvent",0},
6288 { "_uint","_wxCoord",0},
6289 { "_uint","_wxPrintQuality",0},
6290 { "_uint","_size_t",0},
6291 { "_uint","_unsigned_int",0},
6292 { "_uint","_int",0},
6293 { "_uint","_wxWindowID",0},
6294 { "_wxPyValidator","_class_wxPyValidator",0},
6295 { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent},
6296 { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
6297 { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent},
6298 { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
6299 { "_class_wxEvent","_wxEvent",0},
6300 { "_wxCheckListBox","_class_wxCheckListBox",0},
6301 { "_wxRect","_class_wxRect",0},
6302 { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
6303 { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
6304 { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent},
6305 { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
6306 { "_wxCommandEvent","_class_wxCommandEvent",0},
6307 { "_wxSizeEvent","_class_wxSizeEvent",0},
6308 { "_wxPoint","_class_wxPoint",0},
6309 { "_class_wxButton","_wxButton",0},
6310 { "_wxRadioBox","_class_wxRadioBox",0},
6311 { "_wxBitmap","_class_wxBitmap",0},
6312 { "_wxPyTimer","_class_wxPyTimer",0},
6313 { "_wxWindowDC","_class_wxWindowDC",0},
6314 { "_wxScrollBar","_class_wxScrollBar",0},
6315 { "_wxSpinButton","_class_wxSpinButton",0},
6316 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
6317 { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
6318 { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
6319 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
6320 { "_class_wxValidator","_wxValidator",0},
6321 { "_class_wxPyEvent","_wxPyEvent",0},
6322 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
6323 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
6324 { "_wxListItem","_class_wxListItem",0},
6325 { "_wxDropTarget","_class_wxDropTarget",0},
6326 { "_class_wxStaticLine","_wxStaticLine",0},
6327 { "_wxScrollEvent","_class_wxScrollEvent",0},
6328 { "_EBool","_wxCoord",0},
6329 { "_EBool","_wxPrintQuality",0},
6330 { "_EBool","_signed_int",0},
6331 { "_EBool","_int",0},
6332 { "_EBool","_wxWindowID",0},
6333 { "_class_wxRegion","_wxRegion",0},
6334 { "_class_wxDataFormat","_wxDataFormat",0},
6335 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
6336 { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0},
6337 { "_wxStaticText","_class_wxStaticText",0},
6338 { "_wxFont","_class_wxFont",0},
6339 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
6340 { "_wxCloseEvent","_class_wxCloseEvent",0},
6341 { "_unsigned_long","_wxDash",0},
6342 { "_unsigned_long","_long",0},
6343 { "_class_wxRect","_wxRect",0},
6344 { "_class_wxDC","_wxDC",0},
6345 { "_wxScrollWinEvent","_class_wxScrollWinEvent",0},
6346 { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0},
6347 { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0},
6348 { "_class_wxTreeEvent","_wxTreeEvent",0},
6349 { "_class_wxPyTimer","_wxPyTimer",0},
6350 { "_wxFocusEvent","_class_wxFocusEvent",0},
6351 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
6352 { "_class_wxSpinButton","_wxSpinButton",0},
6353 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
6354 { "_class_wxPanel","_wxPanel",0},
6355 { "_class_wxCheckBox","_wxCheckBox",0},
6356 { "_wxComboBox","_class_wxComboBox",0},
6357 { "_wxRadioButton","_class_wxRadioButton",0},
6358 { "_signed_int","_wxCoord",0},
6359 { "_signed_int","_wxPrintQuality",0},
6360 { "_signed_int","_EBool",0},
6361 { "_signed_int","_wxWindowID",0},
6362 { "_signed_int","_int",0},
6363 { "_class_wxTextCtrl","_wxTextCtrl",0},
6364 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
6365 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
6366 { "_class_wxTextDataObject","_wxTextDataObject",0},
6367 { "_wxMenu","_class_wxMenu",0},
6368 { "_class_wxMoveEvent","_wxMoveEvent",0},
6369 { "_wxListBox","_class_wxListBox",0},
6370 { "_wxScreenDC","_class_wxScreenDC",0},
6371 { "_WXTYPE","_short",0},
6372 { "_WXTYPE","_signed_short",0},
6373 { "_WXTYPE","_unsigned_short",0},
6374 { "_class_wxDropTarget","_wxDropTarget",0},
6375 { "_class_wxBrush","_wxBrush",0},
6376 { "_unsigned_short","_WXTYPE",0},
6377 { "_unsigned_short","_short",0},
6378 { "_class_wxWindow","_class_wxTreeCtrl",SwigwxTreeCtrlTowxWindow},
6379 { "_class_wxWindow","_wxTreeCtrl",SwigwxTreeCtrlTowxWindow},
6380 { "_class_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow},
6381 { "_class_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow},
6382 { "_class_wxWindow","_wxWindow",0},
6383 { "_class_wxStaticText","_wxStaticText",0},
6384 { "_class_wxFont","_wxFont",0},
6385 { "_wxClipboard","_class_wxClipboard",0},
6386 { "_class_wxPyValidator","_wxPyValidator",0},
6387 { "_class_wxCloseEvent","_wxCloseEvent",0},
6388 { "_wxBusyInfo","_class_wxBusyInfo",0},
6389 { "_class_wxMenuEvent","_wxMenuEvent",0},
6390 { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0},
6391 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
6392 { "_wxClientDC","_class_wxClientDC",0},
6393 { "_wxMouseEvent","_class_wxMouseEvent",0},
6394 { "_wxListCtrl","_class_wxListCtrl",0},
6395 { "_class_wxPoint","_wxPoint",0},
6396 { "_wxRealPoint","_class_wxRealPoint",0},
6397 { "_class_wxRadioBox","_wxRadioBox",0},
6398 { "_signed_short","_WXTYPE",0},
6399 { "_signed_short","_short",0},
6400 { "_wxMemoryDC","_class_wxMemoryDC",0},
6401 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
6402 { "_wxPaintDC","_class_wxPaintDC",0},
6403 { "_class_wxWindowDC","_wxWindowDC",0},
6404 { "_class_wxFocusEvent","_wxFocusEvent",0},
6405 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
6406 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
6407 { "_class_wxCursor","_wxCursor",0},
6408 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
6409 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
6410 { "_wxTreeItemId","_class_wxTreeItemId",0},
6411 { "_unsigned_char","_byte",0},
6412 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
6413 { "_class_wxMenu","_wxMenu",0},
6414 { "_wxControl","_class_wxTreeCtrl",SwigwxTreeCtrlTowxControl},
6415 { "_wxControl","_wxTreeCtrl",SwigwxTreeCtrlTowxControl},
6416 { "_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl},
6417 { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl},
6418 { "_wxControl","_class_wxControl",0},
6419 { "_class_wxListBox","_wxListBox",0},
6420 { "_unsigned_int","_wxCoord",0},
6421 { "_unsigned_int","_wxPrintQuality",0},
6422 { "_unsigned_int","_size_t",0},
6423 { "_unsigned_int","_uint",0},
6424 { "_unsigned_int","_wxWindowID",0},
6425 { "_unsigned_int","_int",0},
6426 { "_wxIcon","_class_wxIcon",0},
6427 { "_wxDialog","_class_wxDialog",0},
6428 { "_class_wxListItem","_wxListItem",0},
6429 { "_class_wxPen","_wxPen",0},
6430 { "_short","_WXTYPE",0},
6431 { "_short","_unsigned_short",0},
6432 { "_short","_signed_short",0},
6433 { "_class_wxStaticBox","_wxStaticBox",0},
6434 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
6435 { "_class_wxPyDropSource","_wxPyDropSource",0},
6436 { "_class_wxScrollEvent","_wxScrollEvent",0},
6437 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
6438 { "_class_wxChoice","_wxChoice",0},
6439 { "_class_wxSlider","_wxSlider",0},
6440 { "_class_wxImageList","_wxImageList",0},
6441 { "_class_wxBitmapButton","_wxBitmapButton",0},
6442 { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0},
6443 { "_wxWindowID","_wxCoord",0},
6444 { "_wxWindowID","_wxPrintQuality",0},
6445 { "_wxWindowID","_size_t",0},
6446 { "_wxWindowID","_EBool",0},
6447 { "_wxWindowID","_uint",0},
6448 { "_wxWindowID","_int",0},
6449 { "_wxWindowID","_signed_int",0},
6450 { "_wxWindowID","_unsigned_int",0},
6451 { "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
6452 { "_int","_wxCoord",0},
6453 { "_int","_wxPrintQuality",0},
6454 { "_int","_size_t",0},
6455 { "_int","_EBool",0},
6456 { "_int","_uint",0},
6457 { "_int","_wxWindowID",0},
6458 { "_int","_unsigned_int",0},
6459 { "_int","_signed_int",0},
6460 { "_class_wxMouseEvent","_wxMouseEvent",0},
6461 { "_wxPyCommandEvent","_class_wxPyCommandEvent",0},
6462 { "_class_wxListEvent","_wxListEvent",0},
6463 { "_class_wxSpinEvent","_wxSpinEvent",0},
6464 { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0},
6465 { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0},
6466 { "_wxButton","_class_wxButton",0},
6467 { "_wxSize","_class_wxSize",0},
6468 { "_wxRegionIterator","_class_wxRegionIterator",0},
6469 { "_class_wxPrinterDC","_wxPrinterDC",0},
6470 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
6471 { "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
6472 { "_class_wxPaintDC","_wxPaintDC",0},
6473 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
6474 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
6475 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
6476 { "_class_wxComboBox","_wxComboBox",0},
6477 { "_class_wxRadioButton","_wxRadioButton",0},
6478 { "_wxValidator","_class_wxValidator",0},
6479 { "_class_wxTreeItemId","_wxTreeItemId",0},
6480 { "_wxTreeCtrl","_class_wxTreeCtrl",0},
6481 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
6482 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
6483 { "_class_wxControl","_class_wxTreeCtrl",SwigwxTreeCtrlTowxControl},
6484 { "_class_wxControl","_wxTreeCtrl",SwigwxTreeCtrlTowxControl},
6485 { "_class_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl},
6486 { "_class_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl},
6487 { "_class_wxControl","_wxControl",0},
6488 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
6489 { "_class_wxIcon","_wxIcon",0},
6490 { "_class_wxColour","_wxColour",0},
6491 { "_class_wxScreenDC","_wxScreenDC",0},
6492 { "_wxPalette","_class_wxPalette",0},
6493 { "_class_wxIdleEvent","_wxIdleEvent",0},
6494 { "_wxCoord","_int",0},
6495 { "_wxCoord","_signed_int",0},
6496 { "_wxCoord","_unsigned_int",0},
6497 { "_wxCoord","_wxWindowID",0},
6498 { "_wxCoord","_uint",0},
6499 { "_wxCoord","_EBool",0},
6500 { "_wxCoord","_size_t",0},
6501 { "_wxCoord","_wxPrintQuality",0},
6502 { "_wxEraseEvent","_class_wxEraseEvent",0},
6503 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
6504 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
6505 { "_wxRegion","_class_wxRegion",0},
6506 { "_class_wxShowEvent","_wxShowEvent",0},
6507 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
6508 { "_wxActivateEvent","_class_wxActivateEvent",0},
6509 { "_wxGauge","_class_wxGauge",0},
6510 { "_class_wxCheckListBox","_wxCheckListBox",0},
6511 { "_class_wxBusyInfo","_wxBusyInfo",0},
6512 { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
6513 { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
6514 { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent},
6515 { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
6516 { "_class_wxCommandEvent","_wxCommandEvent",0},
6517 { "_class_wxClientDC","_wxClientDC",0},
6518 { "_class_wxSizeEvent","_wxSizeEvent",0},
6519 { "_class_wxListCtrl","_wxListCtrl",0},
6520 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
6521 { "_class_wxSize","_wxSize",0},
6522 { "_class_wxBitmap","_wxBitmap",0},
6523 { "_class_wxMemoryDC","_wxMemoryDC",0},
6524 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
6525 { "_wxMenuBar","_class_wxMenuBar",0},
6526 { "_wxTreeEvent","_class_wxTreeEvent",0},
6527 { "_wxEvtHandler","_class_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler},
6528 { "_wxEvtHandler","_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler},
6529 { "_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler},
6530 { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler},
6531 { "_wxEvtHandler","_class_wxEvtHandler",0},
6532 { "_wxMenuItem","_class_wxMenuItem",0},
6533 { "_class_wxScrollBar","_wxScrollBar",0},
6534 { "_wxDash","_unsigned_long",0},
6535 { "_wxDash","_long",0},
6536 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
6537 { "_wxKeyEvent","_class_wxKeyEvent",0},
6538 { "_wxMoveEvent","_class_wxMoveEvent",0},
6539 { "_class_wxPalette","_wxPalette",0},
6540 { "_wxFileDataObject","_class_wxFileDataObject",0},
6541 { "_class_wxEraseEvent","_wxEraseEvent",0},
6542 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
6543 { "_wxWindow","_class_wxTreeCtrl",SwigwxTreeCtrlTowxWindow},
6544 { "_wxWindow","_wxTreeCtrl",SwigwxTreeCtrlTowxWindow},
6545 { "_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow},
6546 { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow},
6547 { "_wxWindow","_class_wxWindow",0},
6548 { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0},
6549 {0,0,0}};
6550
6551 static PyObject *SWIG_globals;
6552 #ifdef __cplusplus
6553 extern "C"
6554 #endif
6555 SWIGEXPORT(void) initcontrols2c() {
6556 PyObject *m, *d;
6557 SWIG_globals = SWIG_newvarlink();
6558 m = Py_InitModule("controls2c", controls2cMethods);
6559 d = PyModule_GetDict(m);
6560 PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT));
6561 PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE));
6562 PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA));
6563 PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH));
6564 PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT));
6565 PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE));
6566 PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE));
6567 PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED));
6568 PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED));
6569 PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED));
6570 PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT));
6571 PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE));
6572 PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW));
6573 PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE));
6574 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON));
6575 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL));
6576 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT));
6577 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON));
6578 PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT));
6579 PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT));
6580 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM));
6581 PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE));
6582 PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL));
6583 PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW));
6584 PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT));
6585 PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT));
6586 PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT));
6587 PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT));
6588 PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP));
6589 PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID));
6590 PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT));
6591 PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT));
6592 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE));
6593 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER));
6594 PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE));
6595 PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER));
6596 PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS));
6597 PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON));
6598 PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL));
6599 PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP));
6600 PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN));
6601 PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT));
6602 PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT));
6603 PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal));
6604 PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected));
6605 PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded));
6606 PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded));
6607 PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max));
6608 PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE));
6609 PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW));
6610 PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE));
6611 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON));
6612 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON));
6613 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT));
6614 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL));
6615 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT));
6616 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON));
6617 PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT));
6618 PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT));
6619 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART));
6620 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART));
6621 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM));
6622 {
6623 int i;
6624 for (i = 0; _swig_mapping[i].n1; i++)
6625 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
6626 }
6627 }