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