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