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