]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/controls2.cpp
Added ability for wxSTC's scrollbars to be supplieed externally, such
[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 required";
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_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
2301 static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2302 PyObject * _resultobj;
2303 int _result;
2304 wxListEvent * _arg0;
2305 int _arg1;
2306 PyObject * _argo0 = 0;
2307 char *_kwnames[] = { "self","m_col", NULL };
2308
2309 self = self;
2310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_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_col_set. Expected _wxListEvent_p.");
2316 return NULL;
2317 }
2318 }
2319 {
2320 wxPy_BEGIN_ALLOW_THREADS;
2321 _result = (int )wxListEvent_m_col_set(_arg0,_arg1);
2322
2323 wxPy_END_ALLOW_THREADS;
2324 if (PyErr_Occurred()) return NULL;
2325 } _resultobj = Py_BuildValue("i",_result);
2326 return _resultobj;
2327 }
2328
2329 #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col)
2330 static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2331 PyObject * _resultobj;
2332 int _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_col_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_col_get. Expected _wxListEvent_p.");
2344 return NULL;
2345 }
2346 }
2347 {
2348 wxPy_BEGIN_ALLOW_THREADS;
2349 _result = (int )wxListEvent_m_col_get(_arg0);
2350
2351 wxPy_END_ALLOW_THREADS;
2352 if (PyErr_Occurred()) return NULL;
2353 } _resultobj = Py_BuildValue("i",_result);
2354 return _resultobj;
2355 }
2356
2357 #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval)
2358 static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2359 PyObject * _resultobj;
2360 bool _result;
2361 wxListEvent * _arg0;
2362 bool _arg1;
2363 PyObject * _argo0 = 0;
2364 int tempbool1;
2365 char *_kwnames[] = { "self","m_cancelled", NULL };
2366
2367 self = self;
2368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1))
2369 return NULL;
2370 if (_argo0) {
2371 if (_argo0 == Py_None) { _arg0 = NULL; }
2372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p.");
2374 return NULL;
2375 }
2376 }
2377 _arg1 = (bool ) tempbool1;
2378 {
2379 wxPy_BEGIN_ALLOW_THREADS;
2380 _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1);
2381
2382 wxPy_END_ALLOW_THREADS;
2383 if (PyErr_Occurred()) return NULL;
2384 } _resultobj = Py_BuildValue("i",_result);
2385 return _resultobj;
2386 }
2387
2388 #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled)
2389 static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2390 PyObject * _resultobj;
2391 bool _result;
2392 wxListEvent * _arg0;
2393 PyObject * _argo0 = 0;
2394 char *_kwnames[] = { "self", NULL };
2395
2396 self = self;
2397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0))
2398 return NULL;
2399 if (_argo0) {
2400 if (_argo0 == Py_None) { _arg0 = NULL; }
2401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p.");
2403 return NULL;
2404 }
2405 }
2406 {
2407 wxPy_BEGIN_ALLOW_THREADS;
2408 _result = (bool )wxListEvent_m_cancelled_get(_arg0);
2409
2410 wxPy_END_ALLOW_THREADS;
2411 if (PyErr_Occurred()) return NULL;
2412 } _resultobj = Py_BuildValue("i",_result);
2413 return _resultobj;
2414 }
2415
2416 #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval)
2417 static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2418 PyObject * _resultobj;
2419 wxPoint * _result;
2420 wxListEvent * _arg0;
2421 wxPoint * _arg1;
2422 PyObject * _argo0 = 0;
2423 wxPoint temp;
2424 PyObject * _obj1 = 0;
2425 char *_kwnames[] = { "self","m_pointDrag", NULL };
2426 char _ptemp[128];
2427
2428 self = self;
2429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1))
2430 return NULL;
2431 if (_argo0) {
2432 if (_argo0 == Py_None) { _arg0 = NULL; }
2433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p.");
2435 return NULL;
2436 }
2437 }
2438 {
2439 _arg1 = &temp;
2440 if (! wxPoint_helper(_obj1, &_arg1))
2441 return NULL;
2442 }
2443 {
2444 wxPy_BEGIN_ALLOW_THREADS;
2445 _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1);
2446
2447 wxPy_END_ALLOW_THREADS;
2448 if (PyErr_Occurred()) return NULL;
2449 } if (_result) {
2450 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
2451 _resultobj = Py_BuildValue("s",_ptemp);
2452 } else {
2453 Py_INCREF(Py_None);
2454 _resultobj = Py_None;
2455 }
2456 return _resultobj;
2457 }
2458
2459 #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag)
2460 static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2461 PyObject * _resultobj;
2462 wxPoint * _result;
2463 wxListEvent * _arg0;
2464 PyObject * _argo0 = 0;
2465 char *_kwnames[] = { "self", NULL };
2466 char _ptemp[128];
2467
2468 self = self;
2469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0))
2470 return NULL;
2471 if (_argo0) {
2472 if (_argo0 == Py_None) { _arg0 = NULL; }
2473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p.");
2475 return NULL;
2476 }
2477 }
2478 {
2479 wxPy_BEGIN_ALLOW_THREADS;
2480 _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0);
2481
2482 wxPy_END_ALLOW_THREADS;
2483 if (PyErr_Occurred()) return NULL;
2484 } if (_result) {
2485 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
2486 _resultobj = Py_BuildValue("s",_ptemp);
2487 } else {
2488 Py_INCREF(Py_None);
2489 _resultobj = Py_None;
2490 }
2491 return _resultobj;
2492 }
2493
2494 #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval)
2495 static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2496 PyObject * _resultobj;
2497 wxListItem * _result;
2498 wxListEvent * _arg0;
2499 wxListItem * _arg1;
2500 PyObject * _argo0 = 0;
2501 PyObject * _argo1 = 0;
2502 char *_kwnames[] = { "self","m_item", NULL };
2503
2504 self = self;
2505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1))
2506 return NULL;
2507 if (_argo0) {
2508 if (_argo0 == Py_None) { _arg0 = NULL; }
2509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p.");
2511 return NULL;
2512 }
2513 }
2514 if (_argo1) {
2515 if (_argo1 == Py_None) { _arg1 = NULL; }
2516 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
2517 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p.");
2518 return NULL;
2519 }
2520 }
2521 {
2522 wxPy_BEGIN_ALLOW_THREADS;
2523 _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1);
2524
2525 wxPy_END_ALLOW_THREADS;
2526 if (PyErr_Occurred()) return NULL;
2527 }{ _resultobj = wxPyMake_wxObject(_result); }
2528 return _resultobj;
2529 }
2530
2531 #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item)
2532 static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2533 PyObject * _resultobj;
2534 wxListItem * _result;
2535 wxListEvent * _arg0;
2536 PyObject * _argo0 = 0;
2537 char *_kwnames[] = { "self", NULL };
2538
2539 self = self;
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0))
2541 return NULL;
2542 if (_argo0) {
2543 if (_argo0 == Py_None) { _arg0 = NULL; }
2544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p.");
2546 return NULL;
2547 }
2548 }
2549 {
2550 wxPy_BEGIN_ALLOW_THREADS;
2551 _result = (wxListItem *)wxListEvent_m_item_get(_arg0);
2552
2553 wxPy_END_ALLOW_THREADS;
2554 if (PyErr_Occurred()) return NULL;
2555 }{ _resultobj = wxPyMake_wxObject(_result); }
2556 return _resultobj;
2557 }
2558
2559 #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode())
2560 static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
2561 PyObject * _resultobj;
2562 int _result;
2563 wxListEvent * _arg0;
2564 PyObject * _argo0 = 0;
2565 char *_kwnames[] = { "self", NULL };
2566
2567 self = self;
2568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0))
2569 return NULL;
2570 if (_argo0) {
2571 if (_argo0 == Py_None) { _arg0 = NULL; }
2572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p.");
2574 return NULL;
2575 }
2576 }
2577 {
2578 wxPy_BEGIN_ALLOW_THREADS;
2579 _result = (int )wxListEvent_GetCode(_arg0);
2580
2581 wxPy_END_ALLOW_THREADS;
2582 if (PyErr_Occurred()) return NULL;
2583 } _resultobj = Py_BuildValue("i",_result);
2584 return _resultobj;
2585 }
2586
2587 #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex())
2588 static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
2589 PyObject * _resultobj;
2590 long _result;
2591 wxListEvent * _arg0;
2592 PyObject * _argo0 = 0;
2593 char *_kwnames[] = { "self", NULL };
2594
2595 self = self;
2596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0))
2597 return NULL;
2598 if (_argo0) {
2599 if (_argo0 == Py_None) { _arg0 = NULL; }
2600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p.");
2602 return NULL;
2603 }
2604 }
2605 {
2606 wxPy_BEGIN_ALLOW_THREADS;
2607 _result = (long )wxListEvent_GetIndex(_arg0);
2608
2609 wxPy_END_ALLOW_THREADS;
2610 if (PyErr_Occurred()) return NULL;
2611 } _resultobj = Py_BuildValue("l",_result);
2612 return _resultobj;
2613 }
2614
2615 #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn())
2616 static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
2617 PyObject * _resultobj;
2618 int _result;
2619 wxListEvent * _arg0;
2620 PyObject * _argo0 = 0;
2621 char *_kwnames[] = { "self", NULL };
2622
2623 self = self;
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0))
2625 return NULL;
2626 if (_argo0) {
2627 if (_argo0 == Py_None) { _arg0 = NULL; }
2628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p.");
2630 return NULL;
2631 }
2632 }
2633 {
2634 wxPy_BEGIN_ALLOW_THREADS;
2635 _result = (int )wxListEvent_GetColumn(_arg0);
2636
2637 wxPy_END_ALLOW_THREADS;
2638 if (PyErr_Occurred()) return NULL;
2639 } _resultobj = Py_BuildValue("i",_result);
2640 return _resultobj;
2641 }
2642
2643 #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled())
2644 static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) {
2645 PyObject * _resultobj;
2646 bool _result;
2647 wxListEvent * _arg0;
2648 PyObject * _argo0 = 0;
2649 char *_kwnames[] = { "self", NULL };
2650
2651 self = self;
2652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0))
2653 return NULL;
2654 if (_argo0) {
2655 if (_argo0 == Py_None) { _arg0 = NULL; }
2656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p.");
2658 return NULL;
2659 }
2660 }
2661 {
2662 wxPy_BEGIN_ALLOW_THREADS;
2663 _result = (bool )wxListEvent_Cancelled(_arg0);
2664
2665 wxPy_END_ALLOW_THREADS;
2666 if (PyErr_Occurred()) return NULL;
2667 } _resultobj = Py_BuildValue("i",_result);
2668 return _resultobj;
2669 }
2670
2671 #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
2672 static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2673 PyObject * _resultobj;
2674 wxPoint * _result;
2675 wxListEvent * _arg0;
2676 PyObject * _argo0 = 0;
2677 char *_kwnames[] = { "self", NULL };
2678 char _ptemp[128];
2679
2680 self = self;
2681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_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_GetPoint. Expected _wxListEvent_p.");
2687 return NULL;
2688 }
2689 }
2690 {
2691 wxPy_BEGIN_ALLOW_THREADS;
2692 _result = new wxPoint (wxListEvent_GetPoint(_arg0));
2693
2694 wxPy_END_ALLOW_THREADS;
2695 if (PyErr_Occurred()) return NULL;
2696 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2697 _resultobj = Py_BuildValue("s",_ptemp);
2698 return _resultobj;
2699 }
2700
2701 #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
2702 static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2703 PyObject * _resultobj;
2704 wxString * _result;
2705 wxListEvent * _arg0;
2706 PyObject * _argo0 = 0;
2707 char *_kwnames[] = { "self", NULL };
2708
2709 self = self;
2710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0))
2711 return NULL;
2712 if (_argo0) {
2713 if (_argo0 == Py_None) { _arg0 = NULL; }
2714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p.");
2716 return NULL;
2717 }
2718 }
2719 {
2720 wxPy_BEGIN_ALLOW_THREADS;
2721 const wxString & _result_ref = wxListEvent_GetLabel(_arg0);
2722 _result = (wxString *) &_result_ref;
2723
2724 wxPy_END_ALLOW_THREADS;
2725 if (PyErr_Occurred()) return NULL;
2726 }{
2727 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2728 }
2729 return _resultobj;
2730 }
2731
2732 #define wxListEvent_GetText(_swigobj) (_swigobj->GetText())
2733 static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
2734 PyObject * _resultobj;
2735 wxString * _result;
2736 wxListEvent * _arg0;
2737 PyObject * _argo0 = 0;
2738 char *_kwnames[] = { "self", NULL };
2739
2740 self = self;
2741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0))
2742 return NULL;
2743 if (_argo0) {
2744 if (_argo0 == Py_None) { _arg0 = NULL; }
2745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p.");
2747 return NULL;
2748 }
2749 }
2750 {
2751 wxPy_BEGIN_ALLOW_THREADS;
2752 const wxString & _result_ref = wxListEvent_GetText(_arg0);
2753 _result = (wxString *) &_result_ref;
2754
2755 wxPy_END_ALLOW_THREADS;
2756 if (PyErr_Occurred()) return NULL;
2757 }{
2758 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2759 }
2760 return _resultobj;
2761 }
2762
2763 #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage())
2764 static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2765 PyObject * _resultobj;
2766 int _result;
2767 wxListEvent * _arg0;
2768 PyObject * _argo0 = 0;
2769 char *_kwnames[] = { "self", NULL };
2770
2771 self = self;
2772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0))
2773 return NULL;
2774 if (_argo0) {
2775 if (_argo0 == Py_None) { _arg0 = NULL; }
2776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p.");
2778 return NULL;
2779 }
2780 }
2781 {
2782 wxPy_BEGIN_ALLOW_THREADS;
2783 _result = (int )wxListEvent_GetImage(_arg0);
2784
2785 wxPy_END_ALLOW_THREADS;
2786 if (PyErr_Occurred()) return NULL;
2787 } _resultobj = Py_BuildValue("i",_result);
2788 return _resultobj;
2789 }
2790
2791 #define wxListEvent_GetData(_swigobj) (_swigobj->GetData())
2792 static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2793 PyObject * _resultobj;
2794 long _result;
2795 wxListEvent * _arg0;
2796 PyObject * _argo0 = 0;
2797 char *_kwnames[] = { "self", NULL };
2798
2799 self = self;
2800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0))
2801 return NULL;
2802 if (_argo0) {
2803 if (_argo0 == Py_None) { _arg0 = NULL; }
2804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p.");
2806 return NULL;
2807 }
2808 }
2809 {
2810 wxPy_BEGIN_ALLOW_THREADS;
2811 _result = (long )wxListEvent_GetData(_arg0);
2812
2813 wxPy_END_ALLOW_THREADS;
2814 if (PyErr_Occurred()) return NULL;
2815 } _resultobj = Py_BuildValue("l",_result);
2816 return _resultobj;
2817 }
2818
2819 #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask())
2820 static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2821 PyObject * _resultobj;
2822 long _result;
2823 wxListEvent * _arg0;
2824 PyObject * _argo0 = 0;
2825 char *_kwnames[] = { "self", NULL };
2826
2827 self = self;
2828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0))
2829 return NULL;
2830 if (_argo0) {
2831 if (_argo0 == Py_None) { _arg0 = NULL; }
2832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p.");
2834 return NULL;
2835 }
2836 }
2837 {
2838 wxPy_BEGIN_ALLOW_THREADS;
2839 _result = (long )wxListEvent_GetMask(_arg0);
2840
2841 wxPy_END_ALLOW_THREADS;
2842 if (PyErr_Occurred()) return NULL;
2843 } _resultobj = Py_BuildValue("l",_result);
2844 return _resultobj;
2845 }
2846
2847 #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem())
2848 static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
2849 PyObject * _resultobj;
2850 wxListItem * _result;
2851 wxListEvent * _arg0;
2852 PyObject * _argo0 = 0;
2853 char *_kwnames[] = { "self", NULL };
2854
2855 self = self;
2856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0))
2857 return NULL;
2858 if (_argo0) {
2859 if (_argo0 == Py_None) { _arg0 = NULL; }
2860 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2861 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p.");
2862 return NULL;
2863 }
2864 }
2865 {
2866 wxPy_BEGIN_ALLOW_THREADS;
2867 const wxListItem & _result_ref = wxListEvent_GetItem(_arg0);
2868 _result = (wxListItem *) &_result_ref;
2869
2870 wxPy_END_ALLOW_THREADS;
2871 if (PyErr_Occurred()) return NULL;
2872 }{ _resultobj = wxPyMake_wxObject(_result); }
2873 return _resultobj;
2874 }
2875
2876 #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom())
2877 static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
2878 PyObject * _resultobj;
2879 long _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_GetCacheFrom",_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_GetCacheFrom. Expected _wxListEvent_p.");
2891 return NULL;
2892 }
2893 }
2894 {
2895 wxPy_BEGIN_ALLOW_THREADS;
2896 _result = (long )wxListEvent_GetCacheFrom(_arg0);
2897
2898 wxPy_END_ALLOW_THREADS;
2899 if (PyErr_Occurred()) return NULL;
2900 } _resultobj = Py_BuildValue("l",_result);
2901 return _resultobj;
2902 }
2903
2904 #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo())
2905 static PyObject *_wrap_wxListEvent_GetCacheTo(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_GetCacheTo",_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_GetCacheTo. Expected _wxListEvent_p.");
2919 return NULL;
2920 }
2921 }
2922 {
2923 wxPy_BEGIN_ALLOW_THREADS;
2924 _result = (long )wxListEvent_GetCacheTo(_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 static void *SwigwxPyListCtrlTowxControl(void *ptr) {
2933 wxPyListCtrl *src;
2934 wxControl *dest;
2935 src = (wxPyListCtrl *) ptr;
2936 dest = (wxControl *) src;
2937 return (void *) dest;
2938 }
2939
2940 static void *SwigwxPyListCtrlTowxWindow(void *ptr) {
2941 wxPyListCtrl *src;
2942 wxWindow *dest;
2943 src = (wxPyListCtrl *) ptr;
2944 dest = (wxWindow *) src;
2945 return (void *) dest;
2946 }
2947
2948 static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) {
2949 wxPyListCtrl *src;
2950 wxEvtHandler *dest;
2951 src = (wxPyListCtrl *) ptr;
2952 dest = (wxEvtHandler *) src;
2953 return (void *) dest;
2954 }
2955
2956 static void *SwigwxPyListCtrlTowxObject(void *ptr) {
2957 wxPyListCtrl *src;
2958 wxObject *dest;
2959 src = (wxPyListCtrl *) ptr;
2960 dest = (wxObject *) src;
2961 return (void *) dest;
2962 }
2963
2964 #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2965 static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
2966 PyObject * _resultobj;
2967 wxPyListCtrl * _result;
2968 wxWindow * _arg0;
2969 wxWindowID _arg1 = (wxWindowID ) -1;
2970 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
2971 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2972 long _arg4 = (long ) (wxLC_ICON);
2973 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
2974 char * _arg6 = (char *) "listCtrl";
2975 PyObject * _argo0 = 0;
2976 wxPoint temp;
2977 PyObject * _obj2 = 0;
2978 wxSize temp0;
2979 PyObject * _obj3 = 0;
2980 PyObject * _argo5 = 0;
2981 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
2982 char _ptemp[128];
2983
2984 self = self;
2985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
2986 return NULL;
2987 if (_argo0) {
2988 if (_argo0 == Py_None) { _arg0 = NULL; }
2989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p.");
2991 return NULL;
2992 }
2993 }
2994 if (_obj2)
2995 {
2996 _arg2 = &temp;
2997 if (! wxPoint_helper(_obj2, &_arg2))
2998 return NULL;
2999 }
3000 if (_obj3)
3001 {
3002 _arg3 = &temp0;
3003 if (! wxSize_helper(_obj3, &_arg3))
3004 return NULL;
3005 }
3006 if (_argo5) {
3007 if (_argo5 == Py_None) { _arg5 = NULL; }
3008 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
3009 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p.");
3010 return NULL;
3011 }
3012 }
3013 {
3014 wxPy_BEGIN_ALLOW_THREADS;
3015 _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
3016
3017 wxPy_END_ALLOW_THREADS;
3018 if (PyErr_Occurred()) return NULL;
3019 } if (_result) {
3020 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p");
3021 _resultobj = Py_BuildValue("s",_ptemp);
3022 } else {
3023 Py_INCREF(Py_None);
3024 _resultobj = Py_None;
3025 }
3026 return _resultobj;
3027 }
3028
3029 #define new_wxPreListCtrl() (new wxPyListCtrl())
3030 static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
3031 PyObject * _resultobj;
3032 wxPyListCtrl * _result;
3033 char *_kwnames[] = { NULL };
3034 char _ptemp[128];
3035
3036 self = self;
3037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames))
3038 return NULL;
3039 {
3040 wxPy_BEGIN_ALLOW_THREADS;
3041 _result = (wxPyListCtrl *)new_wxPreListCtrl();
3042
3043 wxPy_END_ALLOW_THREADS;
3044 if (PyErr_Occurred()) return NULL;
3045 } if (_result) {
3046 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p");
3047 _resultobj = Py_BuildValue("s",_ptemp);
3048 } else {
3049 Py_INCREF(Py_None);
3050 _resultobj = Py_None;
3051 }
3052 return _resultobj;
3053 }
3054
3055 #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3056 static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3057 PyObject * _resultobj;
3058 bool _result;
3059 wxPyListCtrl * _arg0;
3060 wxWindow * _arg1;
3061 wxWindowID _arg2 = (wxWindowID ) -1;
3062 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3063 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3064 long _arg5 = (long ) (wxLC_ICON);
3065 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
3066 char * _arg7 = (char *) "listCtrl";
3067 PyObject * _argo0 = 0;
3068 PyObject * _argo1 = 0;
3069 wxPoint temp;
3070 PyObject * _obj3 = 0;
3071 wxSize temp0;
3072 PyObject * _obj4 = 0;
3073 PyObject * _argo6 = 0;
3074 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
3075
3076 self = self;
3077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
3078 return NULL;
3079 if (_argo0) {
3080 if (_argo0 == Py_None) { _arg0 = NULL; }
3081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p.");
3083 return NULL;
3084 }
3085 }
3086 if (_argo1) {
3087 if (_argo1 == Py_None) { _arg1 = NULL; }
3088 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3089 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p.");
3090 return NULL;
3091 }
3092 }
3093 if (_obj3)
3094 {
3095 _arg3 = &temp;
3096 if (! wxPoint_helper(_obj3, &_arg3))
3097 return NULL;
3098 }
3099 if (_obj4)
3100 {
3101 _arg4 = &temp0;
3102 if (! wxSize_helper(_obj4, &_arg4))
3103 return NULL;
3104 }
3105 if (_argo6) {
3106 if (_argo6 == Py_None) { _arg6 = NULL; }
3107 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
3108 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p.");
3109 return NULL;
3110 }
3111 }
3112 {
3113 wxPy_BEGIN_ALLOW_THREADS;
3114 _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
3115
3116 wxPy_END_ALLOW_THREADS;
3117 if (PyErr_Occurred()) return NULL;
3118 } _resultobj = Py_BuildValue("i",_result);
3119 return _resultobj;
3120 }
3121
3122 #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3123 static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3124 PyObject * _resultobj;
3125 wxPyListCtrl * _arg0;
3126 PyObject * _arg1;
3127 PyObject * _arg2;
3128 PyObject * _argo0 = 0;
3129 PyObject * _obj1 = 0;
3130 PyObject * _obj2 = 0;
3131 char *_kwnames[] = { "self","self","_class", NULL };
3132
3133 self = self;
3134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3135 return NULL;
3136 if (_argo0) {
3137 if (_argo0 == Py_None) { _arg0 = NULL; }
3138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p.");
3140 return NULL;
3141 }
3142 }
3143 {
3144 _arg1 = _obj1;
3145 }
3146 {
3147 _arg2 = _obj2;
3148 }
3149 {
3150 wxPy_BEGIN_ALLOW_THREADS;
3151 wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2);
3152
3153 wxPy_END_ALLOW_THREADS;
3154 if (PyErr_Occurred()) return NULL;
3155 } Py_INCREF(Py_None);
3156 _resultobj = Py_None;
3157 return _resultobj;
3158 }
3159
3160 #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3161 static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3162 PyObject * _resultobj;
3163 bool _result;
3164 wxPyListCtrl * _arg0;
3165 wxColour * _arg1;
3166 PyObject * _argo0 = 0;
3167 wxColour temp;
3168 PyObject * _obj1 = 0;
3169 char *_kwnames[] = { "self","col", NULL };
3170
3171 self = self;
3172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1))
3173 return NULL;
3174 if (_argo0) {
3175 if (_argo0 == Py_None) { _arg0 = NULL; }
3176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p.");
3178 return NULL;
3179 }
3180 }
3181 {
3182 _arg1 = &temp;
3183 if (! wxColour_helper(_obj1, &_arg1))
3184 return NULL;
3185 }
3186 {
3187 wxPy_BEGIN_ALLOW_THREADS;
3188 _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1);
3189
3190 wxPy_END_ALLOW_THREADS;
3191 if (PyErr_Occurred()) return NULL;
3192 } _resultobj = Py_BuildValue("i",_result);
3193 return _resultobj;
3194 }
3195
3196 #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3197 static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3198 PyObject * _resultobj;
3199 bool _result;
3200 wxPyListCtrl * _arg0;
3201 wxColour * _arg1;
3202 PyObject * _argo0 = 0;
3203 wxColour temp;
3204 PyObject * _obj1 = 0;
3205 char *_kwnames[] = { "self","col", NULL };
3206
3207 self = self;
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
3209 return NULL;
3210 if (_argo0) {
3211 if (_argo0 == Py_None) { _arg0 = NULL; }
3212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p.");
3214 return NULL;
3215 }
3216 }
3217 {
3218 _arg1 = &temp;
3219 if (! wxColour_helper(_obj1, &_arg1))
3220 return NULL;
3221 }
3222 {
3223 wxPy_BEGIN_ALLOW_THREADS;
3224 _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1);
3225
3226 wxPy_END_ALLOW_THREADS;
3227 if (PyErr_Occurred()) return NULL;
3228 } _resultobj = Py_BuildValue("i",_result);
3229 return _resultobj;
3230 }
3231
3232 #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1))
3233 static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
3234 PyObject * _resultobj;
3235 bool _result;
3236 wxPyListCtrl * _arg0;
3237 int _arg1;
3238 wxListItem * _arg2;
3239 PyObject * _argo0 = 0;
3240 PyObject * _argo2 = 0;
3241 char *_kwnames[] = { "self","col","item", NULL };
3242
3243 self = self;
3244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
3245 return NULL;
3246 if (_argo0) {
3247 if (_argo0 == Py_None) { _arg0 = NULL; }
3248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p.");
3250 return NULL;
3251 }
3252 }
3253 if (_argo2) {
3254 if (_argo2 == Py_None) { _arg2 = NULL; }
3255 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
3256 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p.");
3257 return NULL;
3258 }
3259 }
3260 {
3261 wxPy_BEGIN_ALLOW_THREADS;
3262 _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2);
3263
3264 wxPy_END_ALLOW_THREADS;
3265 if (PyErr_Occurred()) return NULL;
3266 } _resultobj = Py_BuildValue("i",_result);
3267 return _resultobj;
3268 }
3269
3270 #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1))
3271 static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject * _resultobj;
3273 bool _result;
3274 wxPyListCtrl * _arg0;
3275 int _arg1;
3276 wxListItem * _arg2;
3277 PyObject * _argo0 = 0;
3278 PyObject * _argo2 = 0;
3279 char *_kwnames[] = { "self","col","item", NULL };
3280
3281 self = self;
3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
3283 return NULL;
3284 if (_argo0) {
3285 if (_argo0 == Py_None) { _arg0 = NULL; }
3286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p.");
3288 return NULL;
3289 }
3290 }
3291 if (_argo2) {
3292 if (_argo2 == Py_None) { _arg2 = NULL; }
3293 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
3294 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p.");
3295 return NULL;
3296 }
3297 }
3298 {
3299 wxPy_BEGIN_ALLOW_THREADS;
3300 _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2);
3301
3302 wxPy_END_ALLOW_THREADS;
3303 if (PyErr_Occurred()) return NULL;
3304 } _resultobj = Py_BuildValue("i",_result);
3305 return _resultobj;
3306 }
3307
3308 #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0))
3309 static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3310 PyObject * _resultobj;
3311 int _result;
3312 wxPyListCtrl * _arg0;
3313 int _arg1;
3314 PyObject * _argo0 = 0;
3315 char *_kwnames[] = { "self","col", NULL };
3316
3317 self = self;
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1))
3319 return NULL;
3320 if (_argo0) {
3321 if (_argo0 == Py_None) { _arg0 = NULL; }
3322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p.");
3324 return NULL;
3325 }
3326 }
3327 {
3328 wxPy_BEGIN_ALLOW_THREADS;
3329 _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1);
3330
3331 wxPy_END_ALLOW_THREADS;
3332 if (PyErr_Occurred()) return NULL;
3333 } _resultobj = Py_BuildValue("i",_result);
3334 return _resultobj;
3335 }
3336
3337 #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1))
3338 static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3339 PyObject * _resultobj;
3340 bool _result;
3341 wxPyListCtrl * _arg0;
3342 int _arg1;
3343 int _arg2;
3344 PyObject * _argo0 = 0;
3345 char *_kwnames[] = { "self","col","width", NULL };
3346
3347 self = self;
3348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2))
3349 return NULL;
3350 if (_argo0) {
3351 if (_argo0 == Py_None) { _arg0 = NULL; }
3352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p.");
3354 return NULL;
3355 }
3356 }
3357 {
3358 wxPy_BEGIN_ALLOW_THREADS;
3359 _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2);
3360
3361 wxPy_END_ALLOW_THREADS;
3362 if (PyErr_Occurred()) return NULL;
3363 } _resultobj = Py_BuildValue("i",_result);
3364 return _resultobj;
3365 }
3366
3367 #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage())
3368 static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3369 PyObject * _resultobj;
3370 int _result;
3371 wxPyListCtrl * _arg0;
3372 PyObject * _argo0 = 0;
3373 char *_kwnames[] = { "self", NULL };
3374
3375 self = self;
3376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0))
3377 return NULL;
3378 if (_argo0) {
3379 if (_argo0 == Py_None) { _arg0 = NULL; }
3380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p.");
3382 return NULL;
3383 }
3384 }
3385 {
3386 wxPy_BEGIN_ALLOW_THREADS;
3387 _result = (int )wxListCtrl_GetCountPerPage(_arg0);
3388
3389 wxPy_END_ALLOW_THREADS;
3390 if (PyErr_Occurred()) return NULL;
3391 } _resultobj = Py_BuildValue("i",_result);
3392 return _resultobj;
3393 }
3394
3395 #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
3396 static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
3397 PyObject * _resultobj;
3398 wxTextCtrl * _result;
3399 wxPyListCtrl * _arg0;
3400 PyObject * _argo0 = 0;
3401 char *_kwnames[] = { "self", NULL };
3402
3403 self = self;
3404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0))
3405 return NULL;
3406 if (_argo0) {
3407 if (_argo0 == Py_None) { _arg0 = NULL; }
3408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p.");
3410 return NULL;
3411 }
3412 }
3413 {
3414 wxPy_BEGIN_ALLOW_THREADS;
3415 _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0);
3416
3417 wxPy_END_ALLOW_THREADS;
3418 if (PyErr_Occurred()) return NULL;
3419 }{ _resultobj = wxPyMake_wxObject(_result); }
3420 return _resultobj;
3421 }
3422
3423 static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) {
3424 wxListItem* info = new wxListItem;
3425 info->m_itemId = itemId;
3426 info->m_col = col;
3427 info->m_mask = 0xFFFF;
3428 self->GetItem(*info);
3429 return info;
3430 }
3431 static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3432 PyObject * _resultobj;
3433 wxListItem * _result;
3434 wxPyListCtrl * _arg0;
3435 long _arg1;
3436 int _arg2 = (int ) 0;
3437 PyObject * _argo0 = 0;
3438 char *_kwnames[] = { "self","itemId","col", NULL };
3439
3440 self = self;
3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2))
3442 return NULL;
3443 if (_argo0) {
3444 if (_argo0 == Py_None) { _arg0 = NULL; }
3445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p.");
3447 return NULL;
3448 }
3449 }
3450 {
3451 wxPy_BEGIN_ALLOW_THREADS;
3452 _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2);
3453
3454 wxPy_END_ALLOW_THREADS;
3455 if (PyErr_Occurred()) return NULL;
3456 }{ _resultobj = wxPyMake_wxObject(_result); }
3457 return _resultobj;
3458 }
3459
3460 #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0))
3461 static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3462 PyObject * _resultobj;
3463 bool _result;
3464 wxPyListCtrl * _arg0;
3465 wxListItem * _arg1;
3466 PyObject * _argo0 = 0;
3467 PyObject * _argo1 = 0;
3468 char *_kwnames[] = { "self","info", NULL };
3469
3470 self = self;
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1))
3472 return NULL;
3473 if (_argo0) {
3474 if (_argo0 == Py_None) { _arg0 = NULL; }
3475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p.");
3477 return NULL;
3478 }
3479 }
3480 if (_argo1) {
3481 if (_argo1 == Py_None) { _arg1 = NULL; }
3482 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
3483 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p.");
3484 return NULL;
3485 }
3486 }
3487 {
3488 wxPy_BEGIN_ALLOW_THREADS;
3489 _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1);
3490
3491 wxPy_END_ALLOW_THREADS;
3492 if (PyErr_Occurred()) return NULL;
3493 } _resultobj = Py_BuildValue("i",_result);
3494 return _resultobj;
3495 }
3496
3497 #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3498 static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3499 PyObject * _resultobj;
3500 long _result;
3501 wxPyListCtrl * _arg0;
3502 long _arg1;
3503 int _arg2;
3504 wxString * _arg3;
3505 int _arg4 = (int ) -1;
3506 PyObject * _argo0 = 0;
3507 PyObject * _obj3 = 0;
3508 char *_kwnames[] = { "self","index","col","label","imageId", NULL };
3509
3510 self = self;
3511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
3512 return NULL;
3513 if (_argo0) {
3514 if (_argo0 == Py_None) { _arg0 = NULL; }
3515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p.");
3517 return NULL;
3518 }
3519 }
3520 {
3521 #if PYTHON_API_VERSION >= 1009
3522 char* tmpPtr; int tmpSize;
3523 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
3524 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3525 return NULL;
3526 }
3527 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
3528 return NULL;
3529 _arg3 = new wxString(tmpPtr, tmpSize);
3530 #else
3531 if (!PyString_Check(_obj3)) {
3532 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3533 return NULL;
3534 }
3535 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
3536 #endif
3537 }
3538 {
3539 wxPy_BEGIN_ALLOW_THREADS;
3540 _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4);
3541
3542 wxPy_END_ALLOW_THREADS;
3543 if (PyErr_Occurred()) return NULL;
3544 } _resultobj = Py_BuildValue("l",_result);
3545 {
3546 if (_obj3)
3547 delete _arg3;
3548 }
3549 return _resultobj;
3550 }
3551
3552 #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1))
3553 static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
3554 PyObject * _resultobj;
3555 int _result;
3556 wxPyListCtrl * _arg0;
3557 long _arg1;
3558 long _arg2;
3559 PyObject * _argo0 = 0;
3560 char *_kwnames[] = { "self","item","stateMask", NULL };
3561
3562 self = self;
3563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2))
3564 return NULL;
3565 if (_argo0) {
3566 if (_argo0 == Py_None) { _arg0 = NULL; }
3567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p.");
3569 return NULL;
3570 }
3571 }
3572 {
3573 wxPy_BEGIN_ALLOW_THREADS;
3574 _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2);
3575
3576 wxPy_END_ALLOW_THREADS;
3577 if (PyErr_Occurred()) return NULL;
3578 } _resultobj = Py_BuildValue("i",_result);
3579 return _resultobj;
3580 }
3581
3582 #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2))
3583 static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
3584 PyObject * _resultobj;
3585 bool _result;
3586 wxPyListCtrl * _arg0;
3587 long _arg1;
3588 long _arg2;
3589 long _arg3;
3590 PyObject * _argo0 = 0;
3591 char *_kwnames[] = { "self","item","state","stateMask", NULL };
3592
3593 self = self;
3594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3595 return NULL;
3596 if (_argo0) {
3597 if (_argo0 == Py_None) { _arg0 = NULL; }
3598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p.");
3600 return NULL;
3601 }
3602 }
3603 {
3604 wxPy_BEGIN_ALLOW_THREADS;
3605 _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3);
3606
3607 wxPy_END_ALLOW_THREADS;
3608 if (PyErr_Occurred()) return NULL;
3609 } _resultobj = Py_BuildValue("i",_result);
3610 return _resultobj;
3611 }
3612
3613 #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
3614 static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3615 PyObject * _resultobj;
3616 bool _result;
3617 wxPyListCtrl * _arg0;
3618 long _arg1;
3619 int _arg2;
3620 int _arg3;
3621 PyObject * _argo0 = 0;
3622 char *_kwnames[] = { "self","item","image","selImage", NULL };
3623
3624 self = self;
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3626 return NULL;
3627 if (_argo0) {
3628 if (_argo0 == Py_None) { _arg0 = NULL; }
3629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p.");
3631 return NULL;
3632 }
3633 }
3634 {
3635 wxPy_BEGIN_ALLOW_THREADS;
3636 _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3);
3637
3638 wxPy_END_ALLOW_THREADS;
3639 if (PyErr_Occurred()) return NULL;
3640 } _resultobj = Py_BuildValue("i",_result);
3641 return _resultobj;
3642 }
3643
3644 #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
3645 static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3646 PyObject * _resultobj;
3647 wxString * _result;
3648 wxPyListCtrl * _arg0;
3649 long _arg1;
3650 PyObject * _argo0 = 0;
3651 char *_kwnames[] = { "self","item", NULL };
3652
3653 self = self;
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1))
3655 return NULL;
3656 if (_argo0) {
3657 if (_argo0 == Py_None) { _arg0 = NULL; }
3658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p.");
3660 return NULL;
3661 }
3662 }
3663 {
3664 wxPy_BEGIN_ALLOW_THREADS;
3665 _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1));
3666
3667 wxPy_END_ALLOW_THREADS;
3668 if (PyErr_Occurred()) return NULL;
3669 }{
3670 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3671 }
3672 {
3673 delete _result;
3674 }
3675 return _resultobj;
3676 }
3677
3678 #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
3679 static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3680 PyObject * _resultobj;
3681 wxPyListCtrl * _arg0;
3682 long _arg1;
3683 wxString * _arg2;
3684 PyObject * _argo0 = 0;
3685 PyObject * _obj2 = 0;
3686 char *_kwnames[] = { "self","item","str", NULL };
3687
3688 self = self;
3689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2))
3690 return NULL;
3691 if (_argo0) {
3692 if (_argo0 == Py_None) { _arg0 = NULL; }
3693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p.");
3695 return NULL;
3696 }
3697 }
3698 {
3699 #if PYTHON_API_VERSION >= 1009
3700 char* tmpPtr; int tmpSize;
3701 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3702 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3703 return NULL;
3704 }
3705 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3706 return NULL;
3707 _arg2 = new wxString(tmpPtr, tmpSize);
3708 #else
3709 if (!PyString_Check(_obj2)) {
3710 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3711 return NULL;
3712 }
3713 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3714 #endif
3715 }
3716 {
3717 wxPy_BEGIN_ALLOW_THREADS;
3718 wxListCtrl_SetItemText(_arg0,_arg1,*_arg2);
3719
3720 wxPy_END_ALLOW_THREADS;
3721 if (PyErr_Occurred()) return NULL;
3722 } Py_INCREF(Py_None);
3723 _resultobj = Py_None;
3724 {
3725 if (_obj2)
3726 delete _arg2;
3727 }
3728 return _resultobj;
3729 }
3730
3731 #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0))
3732 static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3733 PyObject * _resultobj;
3734 long _result;
3735 wxPyListCtrl * _arg0;
3736 long _arg1;
3737 PyObject * _argo0 = 0;
3738 char *_kwnames[] = { "self","item", NULL };
3739
3740 self = self;
3741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1))
3742 return NULL;
3743 if (_argo0) {
3744 if (_argo0 == Py_None) { _arg0 = NULL; }
3745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p.");
3747 return NULL;
3748 }
3749 }
3750 {
3751 wxPy_BEGIN_ALLOW_THREADS;
3752 _result = (long )wxListCtrl_GetItemData(_arg0,_arg1);
3753
3754 wxPy_END_ALLOW_THREADS;
3755 if (PyErr_Occurred()) return NULL;
3756 } _resultobj = Py_BuildValue("l",_result);
3757 return _resultobj;
3758 }
3759
3760 #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1))
3761 static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3762 PyObject * _resultobj;
3763 bool _result;
3764 wxPyListCtrl * _arg0;
3765 long _arg1;
3766 long _arg2;
3767 PyObject * _argo0 = 0;
3768 char *_kwnames[] = { "self","item","data", NULL };
3769
3770 self = self;
3771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2))
3772 return NULL;
3773 if (_argo0) {
3774 if (_argo0 == Py_None) { _arg0 = NULL; }
3775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p.");
3777 return NULL;
3778 }
3779 }
3780 {
3781 wxPy_BEGIN_ALLOW_THREADS;
3782 _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2);
3783
3784 wxPy_END_ALLOW_THREADS;
3785 if (PyErr_Occurred()) return NULL;
3786 } _resultobj = Py_BuildValue("i",_result);
3787 return _resultobj;
3788 }
3789
3790 static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) {
3791 wxPoint* pos = new wxPoint;
3792 self->GetItemPosition(item, *pos);
3793 return pos;
3794 }
3795 static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3796 PyObject * _resultobj;
3797 wxPoint * _result;
3798 wxPyListCtrl * _arg0;
3799 long _arg1;
3800 PyObject * _argo0 = 0;
3801 char *_kwnames[] = { "self","item", NULL };
3802 char _ptemp[128];
3803
3804 self = self;
3805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1))
3806 return NULL;
3807 if (_argo0) {
3808 if (_argo0 == Py_None) { _arg0 = NULL; }
3809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p.");
3811 return NULL;
3812 }
3813 }
3814 {
3815 wxPy_BEGIN_ALLOW_THREADS;
3816 _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1);
3817
3818 wxPy_END_ALLOW_THREADS;
3819 if (PyErr_Occurred()) return NULL;
3820 } if (_result) {
3821 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
3822 _resultobj = Py_BuildValue("s",_ptemp);
3823 } else {
3824 Py_INCREF(Py_None);
3825 _resultobj = Py_None;
3826 }
3827 return _resultobj;
3828 }
3829
3830 static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) {
3831 wxRect* rect= new wxRect;
3832 self->GetItemRect(item, *rect, code);
3833 return rect;
3834 }
3835 static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3836 PyObject * _resultobj;
3837 wxRect * _result;
3838 wxPyListCtrl * _arg0;
3839 long _arg1;
3840 int _arg2 = (int ) (wxLIST_RECT_BOUNDS);
3841 PyObject * _argo0 = 0;
3842 char *_kwnames[] = { "self","item","code", NULL };
3843 char _ptemp[128];
3844
3845 self = self;
3846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2))
3847 return NULL;
3848 if (_argo0) {
3849 if (_argo0 == Py_None) { _arg0 = NULL; }
3850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p.");
3852 return NULL;
3853 }
3854 }
3855 {
3856 wxPy_BEGIN_ALLOW_THREADS;
3857 _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2);
3858
3859 wxPy_END_ALLOW_THREADS;
3860 if (PyErr_Occurred()) return NULL;
3861 } if (_result) {
3862 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
3863 _resultobj = Py_BuildValue("s",_ptemp);
3864 } else {
3865 Py_INCREF(Py_None);
3866 _resultobj = Py_None;
3867 }
3868 return _resultobj;
3869 }
3870
3871 #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1))
3872 static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3873 PyObject * _resultobj;
3874 bool _result;
3875 wxPyListCtrl * _arg0;
3876 long _arg1;
3877 wxPoint * _arg2;
3878 PyObject * _argo0 = 0;
3879 wxPoint temp;
3880 PyObject * _obj2 = 0;
3881 char *_kwnames[] = { "self","item","pos", NULL };
3882
3883 self = self;
3884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2))
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_SetItemPosition. Expected _wxPyListCtrl_p.");
3890 return NULL;
3891 }
3892 }
3893 {
3894 _arg2 = &temp;
3895 if (! wxPoint_helper(_obj2, &_arg2))
3896 return NULL;
3897 }
3898 {
3899 wxPy_BEGIN_ALLOW_THREADS;
3900 _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2);
3901
3902 wxPy_END_ALLOW_THREADS;
3903 if (PyErr_Occurred()) return NULL;
3904 } _resultobj = Py_BuildValue("i",_result);
3905 return _resultobj;
3906 }
3907
3908 #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount())
3909 static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3910 PyObject * _resultobj;
3911 int _result;
3912 wxPyListCtrl * _arg0;
3913 PyObject * _argo0 = 0;
3914 char *_kwnames[] = { "self", NULL };
3915
3916 self = self;
3917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0))
3918 return NULL;
3919 if (_argo0) {
3920 if (_argo0 == Py_None) { _arg0 = NULL; }
3921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p.");
3923 return NULL;
3924 }
3925 }
3926 {
3927 wxPy_BEGIN_ALLOW_THREADS;
3928 _result = (int )wxListCtrl_GetItemCount(_arg0);
3929
3930 wxPy_END_ALLOW_THREADS;
3931 if (PyErr_Occurred()) return NULL;
3932 } _resultobj = Py_BuildValue("i",_result);
3933 return _resultobj;
3934 }
3935
3936 #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount())
3937 static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject * _resultobj;
3939 int _result;
3940 wxPyListCtrl * _arg0;
3941 PyObject * _argo0 = 0;
3942 char *_kwnames[] = { "self", NULL };
3943
3944 self = self;
3945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0))
3946 return NULL;
3947 if (_argo0) {
3948 if (_argo0 == Py_None) { _arg0 = NULL; }
3949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p.");
3951 return NULL;
3952 }
3953 }
3954 {
3955 wxPy_BEGIN_ALLOW_THREADS;
3956 _result = (int )wxListCtrl_GetColumnCount(_arg0);
3957
3958 wxPy_END_ALLOW_THREADS;
3959 if (PyErr_Occurred()) return NULL;
3960 } _resultobj = Py_BuildValue("i",_result);
3961 return _resultobj;
3962 }
3963
3964 #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0))
3965 static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
3966 PyObject * _resultobj;
3967 int _result;
3968 wxPyListCtrl * _arg0;
3969 bool _arg1;
3970 PyObject * _argo0 = 0;
3971 int tempbool1;
3972 char *_kwnames[] = { "self","isSmall", NULL };
3973
3974 self = self;
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1))
3976 return NULL;
3977 if (_argo0) {
3978 if (_argo0 == Py_None) { _arg0 = NULL; }
3979 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3980 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p.");
3981 return NULL;
3982 }
3983 }
3984 _arg1 = (bool ) tempbool1;
3985 {
3986 wxPy_BEGIN_ALLOW_THREADS;
3987 _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1);
3988
3989 wxPy_END_ALLOW_THREADS;
3990 if (PyErr_Occurred()) return NULL;
3991 } _resultobj = Py_BuildValue("i",_result);
3992 return _resultobj;
3993 }
3994
3995 #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount())
3996 static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3997 PyObject * _resultobj;
3998 int _result;
3999 wxPyListCtrl * _arg0;
4000 PyObject * _argo0 = 0;
4001 char *_kwnames[] = { "self", NULL };
4002
4003 self = self;
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0))
4005 return NULL;
4006 if (_argo0) {
4007 if (_argo0 == Py_None) { _arg0 = NULL; }
4008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p.");
4010 return NULL;
4011 }
4012 }
4013 {
4014 wxPy_BEGIN_ALLOW_THREADS;
4015 _result = (int )wxListCtrl_GetSelectedItemCount(_arg0);
4016
4017 wxPy_END_ALLOW_THREADS;
4018 if (PyErr_Occurred()) return NULL;
4019 } _resultobj = Py_BuildValue("i",_result);
4020 return _resultobj;
4021 }
4022
4023 #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour())
4024 static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4025 PyObject * _resultobj;
4026 wxColour * _result;
4027 wxPyListCtrl * _arg0;
4028 PyObject * _argo0 = 0;
4029 char *_kwnames[] = { "self", NULL };
4030 char _ptemp[128];
4031
4032 self = self;
4033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0))
4034 return NULL;
4035 if (_argo0) {
4036 if (_argo0 == Py_None) { _arg0 = NULL; }
4037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p.");
4039 return NULL;
4040 }
4041 }
4042 {
4043 wxPy_BEGIN_ALLOW_THREADS;
4044 _result = new wxColour (wxListCtrl_GetTextColour(_arg0));
4045
4046 wxPy_END_ALLOW_THREADS;
4047 if (PyErr_Occurred()) return NULL;
4048 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4049 _resultobj = Py_BuildValue("s",_ptemp);
4050 return _resultobj;
4051 }
4052
4053 #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
4054 static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4055 PyObject * _resultobj;
4056 wxPyListCtrl * _arg0;
4057 wxColour * _arg1;
4058 PyObject * _argo0 = 0;
4059 wxColour temp;
4060 PyObject * _obj1 = 0;
4061 char *_kwnames[] = { "self","col", NULL };
4062
4063 self = self;
4064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1))
4065 return NULL;
4066 if (_argo0) {
4067 if (_argo0 == Py_None) { _arg0 = NULL; }
4068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p.");
4070 return NULL;
4071 }
4072 }
4073 {
4074 _arg1 = &temp;
4075 if (! wxColour_helper(_obj1, &_arg1))
4076 return NULL;
4077 }
4078 {
4079 wxPy_BEGIN_ALLOW_THREADS;
4080 wxListCtrl_SetTextColour(_arg0,*_arg1);
4081
4082 wxPy_END_ALLOW_THREADS;
4083 if (PyErr_Occurred()) return NULL;
4084 } Py_INCREF(Py_None);
4085 _resultobj = Py_None;
4086 return _resultobj;
4087 }
4088
4089 #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem())
4090 static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4091 PyObject * _resultobj;
4092 long _result;
4093 wxPyListCtrl * _arg0;
4094 PyObject * _argo0 = 0;
4095 char *_kwnames[] = { "self", NULL };
4096
4097 self = self;
4098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0))
4099 return NULL;
4100 if (_argo0) {
4101 if (_argo0 == Py_None) { _arg0 = NULL; }
4102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p.");
4104 return NULL;
4105 }
4106 }
4107 {
4108 wxPy_BEGIN_ALLOW_THREADS;
4109 _result = (long )wxListCtrl_GetTopItem(_arg0);
4110
4111 wxPy_END_ALLOW_THREADS;
4112 if (PyErr_Occurred()) return NULL;
4113 } _resultobj = Py_BuildValue("l",_result);
4114 return _resultobj;
4115 }
4116
4117 #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1))
4118 static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4119 PyObject * _resultobj;
4120 wxPyListCtrl * _arg0;
4121 long _arg1;
4122 bool _arg2 = (bool ) TRUE;
4123 PyObject * _argo0 = 0;
4124 int tempbool2 = (int) TRUE;
4125 char *_kwnames[] = { "self","style","add", NULL };
4126
4127 self = self;
4128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2))
4129 return NULL;
4130 if (_argo0) {
4131 if (_argo0 == Py_None) { _arg0 = NULL; }
4132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p.");
4134 return NULL;
4135 }
4136 }
4137 _arg2 = (bool ) tempbool2;
4138 {
4139 wxPy_BEGIN_ALLOW_THREADS;
4140 wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2);
4141
4142 wxPy_END_ALLOW_THREADS;
4143 if (PyErr_Occurred()) return NULL;
4144 } Py_INCREF(Py_None);
4145 _resultobj = Py_None;
4146 return _resultobj;
4147 }
4148
4149 #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
4150 static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
4151 PyObject * _resultobj;
4152 wxPyListCtrl * _arg0;
4153 long _arg1;
4154 PyObject * _argo0 = 0;
4155 char *_kwnames[] = { "self","style", NULL };
4156
4157 self = self;
4158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
4159 return NULL;
4160 if (_argo0) {
4161 if (_argo0 == Py_None) { _arg0 = NULL; }
4162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p.");
4164 return NULL;
4165 }
4166 }
4167 {
4168 wxPy_BEGIN_ALLOW_THREADS;
4169 wxListCtrl_SetWindowStyleFlag(_arg0,_arg1);
4170
4171 wxPy_END_ALLOW_THREADS;
4172 if (PyErr_Occurred()) return NULL;
4173 } Py_INCREF(Py_None);
4174 _resultobj = Py_None;
4175 return _resultobj;
4176 }
4177
4178 #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2))
4179 static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4180 PyObject * _resultobj;
4181 long _result;
4182 wxPyListCtrl * _arg0;
4183 long _arg1;
4184 int _arg2 = (int ) (wxLIST_NEXT_ALL);
4185 int _arg3 = (int ) (wxLIST_STATE_DONTCARE);
4186 PyObject * _argo0 = 0;
4187 char *_kwnames[] = { "self","item","geometry","state", NULL };
4188
4189 self = self;
4190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
4191 return NULL;
4192 if (_argo0) {
4193 if (_argo0 == Py_None) { _arg0 = NULL; }
4194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p.");
4196 return NULL;
4197 }
4198 }
4199 {
4200 wxPy_BEGIN_ALLOW_THREADS;
4201 _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3);
4202
4203 wxPy_END_ALLOW_THREADS;
4204 if (PyErr_Occurred()) return NULL;
4205 } _resultobj = Py_BuildValue("l",_result);
4206 return _resultobj;
4207 }
4208
4209 #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0))
4210 static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4211 PyObject * _resultobj;
4212 wxImageList * _result;
4213 wxPyListCtrl * _arg0;
4214 int _arg1;
4215 PyObject * _argo0 = 0;
4216 char *_kwnames[] = { "self","which", NULL };
4217
4218 self = self;
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1))
4220 return NULL;
4221 if (_argo0) {
4222 if (_argo0 == Py_None) { _arg0 = NULL; }
4223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p.");
4225 return NULL;
4226 }
4227 }
4228 {
4229 wxPy_BEGIN_ALLOW_THREADS;
4230 _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1);
4231
4232 wxPy_END_ALLOW_THREADS;
4233 if (PyErr_Occurred()) return NULL;
4234 }{ _resultobj = wxPyMake_wxObject(_result); }
4235 return _resultobj;
4236 }
4237
4238 #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1))
4239 static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4240 PyObject * _resultobj;
4241 wxPyListCtrl * _arg0;
4242 wxImageList * _arg1;
4243 int _arg2;
4244 PyObject * _argo0 = 0;
4245 PyObject * _argo1 = 0;
4246 char *_kwnames[] = { "self","imageList","which", NULL };
4247
4248 self = self;
4249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2))
4250 return NULL;
4251 if (_argo0) {
4252 if (_argo0 == Py_None) { _arg0 = NULL; }
4253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p.");
4255 return NULL;
4256 }
4257 }
4258 if (_argo1) {
4259 if (_argo1 == Py_None) { _arg1 = NULL; }
4260 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4261 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p.");
4262 return NULL;
4263 }
4264 }
4265 {
4266 wxPy_BEGIN_ALLOW_THREADS;
4267 wxListCtrl_SetImageList(_arg0,_arg1,_arg2);
4268
4269 wxPy_END_ALLOW_THREADS;
4270 if (PyErr_Occurred()) return NULL;
4271 } Py_INCREF(Py_None);
4272 _resultobj = Py_None;
4273 return _resultobj;
4274 }
4275
4276 #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1))
4277 static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4278 PyObject * _resultobj;
4279 wxPyListCtrl * _arg0;
4280 wxImageList * _arg1;
4281 int _arg2;
4282 PyObject * _argo0 = 0;
4283 PyObject * _argo1 = 0;
4284 char *_kwnames[] = { "self","imageList","which", NULL };
4285
4286 self = self;
4287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2))
4288 return NULL;
4289 if (_argo0) {
4290 if (_argo0 == Py_None) { _arg0 = NULL; }
4291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p.");
4293 return NULL;
4294 }
4295 }
4296 if (_argo1) {
4297 if (_argo1 == Py_None) { _arg1 = NULL; }
4298 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4299 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p.");
4300 return NULL;
4301 }
4302 }
4303 {
4304 wxPy_BEGIN_ALLOW_THREADS;
4305 wxListCtrl_AssignImageList(_arg0,_arg1,_arg2);
4306
4307 wxPy_END_ALLOW_THREADS;
4308 if (PyErr_Occurred()) return NULL;
4309 } Py_INCREF(Py_None);
4310 _resultobj = Py_None;
4311 return _resultobj;
4312 }
4313
4314 #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual())
4315 static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
4316 PyObject * _resultobj;
4317 bool _result;
4318 wxPyListCtrl * _arg0;
4319 PyObject * _argo0 = 0;
4320 char *_kwnames[] = { "self", NULL };
4321
4322 self = self;
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0))
4324 return NULL;
4325 if (_argo0) {
4326 if (_argo0 == Py_None) { _arg0 = NULL; }
4327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p.");
4329 return NULL;
4330 }
4331 }
4332 {
4333 wxPy_BEGIN_ALLOW_THREADS;
4334 _result = (bool )wxListCtrl_IsVirtual(_arg0);
4335
4336 wxPy_END_ALLOW_THREADS;
4337 if (PyErr_Occurred()) return NULL;
4338 } _resultobj = Py_BuildValue("i",_result);
4339 return _resultobj;
4340 }
4341
4342 #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0))
4343 static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4344 PyObject * _resultobj;
4345 wxPyListCtrl * _arg0;
4346 long _arg1;
4347 PyObject * _argo0 = 0;
4348 char *_kwnames[] = { "self","item", NULL };
4349
4350 self = self;
4351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1))
4352 return NULL;
4353 if (_argo0) {
4354 if (_argo0 == Py_None) { _arg0 = NULL; }
4355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p.");
4357 return NULL;
4358 }
4359 }
4360 {
4361 wxPy_BEGIN_ALLOW_THREADS;
4362 wxListCtrl_RefreshItem(_arg0,_arg1);
4363
4364 wxPy_END_ALLOW_THREADS;
4365 if (PyErr_Occurred()) return NULL;
4366 } Py_INCREF(Py_None);
4367 _resultobj = Py_None;
4368 return _resultobj;
4369 }
4370
4371 #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1))
4372 static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4373 PyObject * _resultobj;
4374 wxPyListCtrl * _arg0;
4375 long _arg1;
4376 long _arg2;
4377 PyObject * _argo0 = 0;
4378 char *_kwnames[] = { "self","itemFrom","itemTo", NULL };
4379
4380 self = self;
4381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2))
4382 return NULL;
4383 if (_argo0) {
4384 if (_argo0 == Py_None) { _arg0 = NULL; }
4385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p.");
4387 return NULL;
4388 }
4389 }
4390 {
4391 wxPy_BEGIN_ALLOW_THREADS;
4392 wxListCtrl_RefreshItems(_arg0,_arg1,_arg2);
4393
4394 wxPy_END_ALLOW_THREADS;
4395 if (PyErr_Occurred()) return NULL;
4396 } Py_INCREF(Py_None);
4397 _resultobj = Py_None;
4398 return _resultobj;
4399 }
4400
4401 #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0))
4402 static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
4403 PyObject * _resultobj;
4404 bool _result;
4405 wxPyListCtrl * _arg0;
4406 int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT);
4407 PyObject * _argo0 = 0;
4408 char *_kwnames[] = { "self","flag", NULL };
4409
4410 self = self;
4411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1))
4412 return NULL;
4413 if (_argo0) {
4414 if (_argo0 == Py_None) { _arg0 = NULL; }
4415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p.");
4417 return NULL;
4418 }
4419 }
4420 {
4421 wxPy_BEGIN_ALLOW_THREADS;
4422 _result = (bool )wxListCtrl_Arrange(_arg0,_arg1);
4423
4424 wxPy_END_ALLOW_THREADS;
4425 if (PyErr_Occurred()) return NULL;
4426 } _resultobj = Py_BuildValue("i",_result);
4427 return _resultobj;
4428 }
4429
4430 #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0))
4431 static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4432 PyObject * _resultobj;
4433 bool _result;
4434 wxPyListCtrl * _arg0;
4435 long _arg1;
4436 PyObject * _argo0 = 0;
4437 char *_kwnames[] = { "self","item", NULL };
4438
4439 self = self;
4440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1))
4441 return NULL;
4442 if (_argo0) {
4443 if (_argo0 == Py_None) { _arg0 = NULL; }
4444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p.");
4446 return NULL;
4447 }
4448 }
4449 {
4450 wxPy_BEGIN_ALLOW_THREADS;
4451 _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1);
4452
4453 wxPy_END_ALLOW_THREADS;
4454 if (PyErr_Occurred()) return NULL;
4455 } _resultobj = Py_BuildValue("i",_result);
4456 return _resultobj;
4457 }
4458
4459 #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
4460 static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4461 PyObject * _resultobj;
4462 bool _result;
4463 wxPyListCtrl * _arg0;
4464 PyObject * _argo0 = 0;
4465 char *_kwnames[] = { "self", NULL };
4466
4467 self = self;
4468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0))
4469 return NULL;
4470 if (_argo0) {
4471 if (_argo0 == Py_None) { _arg0 = NULL; }
4472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p.");
4474 return NULL;
4475 }
4476 }
4477 {
4478 wxPy_BEGIN_ALLOW_THREADS;
4479 _result = (bool )wxListCtrl_DeleteAllItems(_arg0);
4480
4481 wxPy_END_ALLOW_THREADS;
4482 if (PyErr_Occurred()) return NULL;
4483 } _resultobj = Py_BuildValue("i",_result);
4484 return _resultobj;
4485 }
4486
4487 #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0))
4488 static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
4489 PyObject * _resultobj;
4490 bool _result;
4491 wxPyListCtrl * _arg0;
4492 int _arg1;
4493 PyObject * _argo0 = 0;
4494 char *_kwnames[] = { "self","col", NULL };
4495
4496 self = self;
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1))
4498 return NULL;
4499 if (_argo0) {
4500 if (_argo0 == Py_None) { _arg0 = NULL; }
4501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p.");
4503 return NULL;
4504 }
4505 }
4506 {
4507 wxPy_BEGIN_ALLOW_THREADS;
4508 _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1);
4509
4510 wxPy_END_ALLOW_THREADS;
4511 if (PyErr_Occurred()) return NULL;
4512 } _resultobj = Py_BuildValue("i",_result);
4513 return _resultobj;
4514 }
4515
4516 #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns())
4517 static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
4518 PyObject * _resultobj;
4519 bool _result;
4520 wxPyListCtrl * _arg0;
4521 PyObject * _argo0 = 0;
4522 char *_kwnames[] = { "self", NULL };
4523
4524 self = self;
4525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0))
4526 return NULL;
4527 if (_argo0) {
4528 if (_argo0 == Py_None) { _arg0 = NULL; }
4529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p.");
4531 return NULL;
4532 }
4533 }
4534 {
4535 wxPy_BEGIN_ALLOW_THREADS;
4536 _result = (bool )wxListCtrl_DeleteAllColumns(_arg0);
4537
4538 wxPy_END_ALLOW_THREADS;
4539 if (PyErr_Occurred()) return NULL;
4540 } _resultobj = Py_BuildValue("i",_result);
4541 return _resultobj;
4542 }
4543
4544 #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll())
4545 static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
4546 PyObject * _resultobj;
4547 wxPyListCtrl * _arg0;
4548 PyObject * _argo0 = 0;
4549 char *_kwnames[] = { "self", NULL };
4550
4551 self = self;
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0))
4553 return NULL;
4554 if (_argo0) {
4555 if (_argo0 == Py_None) { _arg0 = NULL; }
4556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p.");
4558 return NULL;
4559 }
4560 }
4561 {
4562 wxPy_BEGIN_ALLOW_THREADS;
4563 wxListCtrl_ClearAll(_arg0);
4564
4565 wxPy_END_ALLOW_THREADS;
4566 if (PyErr_Occurred()) return NULL;
4567 } Py_INCREF(Py_None);
4568 _resultobj = Py_None;
4569 return _resultobj;
4570 }
4571
4572 #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
4573 static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4574 PyObject * _resultobj;
4575 wxTextCtrl * _result;
4576 wxPyListCtrl * _arg0;
4577 long _arg1;
4578 PyObject * _argo0 = 0;
4579 char *_kwnames[] = { "self","item", NULL };
4580
4581 self = self;
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1))
4583 return NULL;
4584 if (_argo0) {
4585 if (_argo0 == Py_None) { _arg0 = NULL; }
4586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p.");
4588 return NULL;
4589 }
4590 }
4591 {
4592 wxPy_BEGIN_ALLOW_THREADS;
4593 _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1);
4594
4595 wxPy_END_ALLOW_THREADS;
4596 if (PyErr_Occurred()) return NULL;
4597 }{ _resultobj = wxPyMake_wxObject(_result); }
4598 return _resultobj;
4599 }
4600
4601 #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0))
4602 static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4603 PyObject * _resultobj;
4604 bool _result;
4605 wxPyListCtrl * _arg0;
4606 bool _arg1;
4607 PyObject * _argo0 = 0;
4608 int tempbool1;
4609 char *_kwnames[] = { "self","cancel", NULL };
4610
4611 self = self;
4612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1))
4613 return NULL;
4614 if (_argo0) {
4615 if (_argo0 == Py_None) { _arg0 = NULL; }
4616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p.");
4618 return NULL;
4619 }
4620 }
4621 _arg1 = (bool ) tempbool1;
4622 {
4623 wxPy_BEGIN_ALLOW_THREADS;
4624 _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1);
4625
4626 wxPy_END_ALLOW_THREADS;
4627 if (PyErr_Occurred()) return NULL;
4628 } _resultobj = Py_BuildValue("i",_result);
4629 return _resultobj;
4630 }
4631
4632 #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
4633 static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4634 PyObject * _resultobj;
4635 bool _result;
4636 wxPyListCtrl * _arg0;
4637 long _arg1;
4638 PyObject * _argo0 = 0;
4639 char *_kwnames[] = { "self","item", NULL };
4640
4641 self = self;
4642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1))
4643 return NULL;
4644 if (_argo0) {
4645 if (_argo0 == Py_None) { _arg0 = NULL; }
4646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p.");
4648 return NULL;
4649 }
4650 }
4651 {
4652 wxPy_BEGIN_ALLOW_THREADS;
4653 _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1);
4654
4655 wxPy_END_ALLOW_THREADS;
4656 if (PyErr_Occurred()) return NULL;
4657 } _resultobj = Py_BuildValue("i",_result);
4658 return _resultobj;
4659 }
4660
4661 #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4662 static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4663 PyObject * _resultobj;
4664 long _result;
4665 wxPyListCtrl * _arg0;
4666 long _arg1;
4667 wxString * _arg2;
4668 bool _arg3 = (bool ) FALSE;
4669 PyObject * _argo0 = 0;
4670 PyObject * _obj2 = 0;
4671 int tempbool3 = (int) FALSE;
4672 char *_kwnames[] = { "self","start","str","partial", NULL };
4673
4674 self = self;
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
4676 return NULL;
4677 if (_argo0) {
4678 if (_argo0 == Py_None) { _arg0 = NULL; }
4679 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4680 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p.");
4681 return NULL;
4682 }
4683 }
4684 {
4685 #if PYTHON_API_VERSION >= 1009
4686 char* tmpPtr; int tmpSize;
4687 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4688 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4689 return NULL;
4690 }
4691 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4692 return NULL;
4693 _arg2 = new wxString(tmpPtr, tmpSize);
4694 #else
4695 if (!PyString_Check(_obj2)) {
4696 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4697 return NULL;
4698 }
4699 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4700 #endif
4701 }
4702 _arg3 = (bool ) tempbool3;
4703 {
4704 wxPy_BEGIN_ALLOW_THREADS;
4705 _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3);
4706
4707 wxPy_END_ALLOW_THREADS;
4708 if (PyErr_Occurred()) return NULL;
4709 } _resultobj = Py_BuildValue("l",_result);
4710 {
4711 if (_obj2)
4712 delete _arg2;
4713 }
4714 return _resultobj;
4715 }
4716
4717 #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1))
4718 static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
4719 PyObject * _resultobj;
4720 long _result;
4721 wxPyListCtrl * _arg0;
4722 long _arg1;
4723 long _arg2;
4724 PyObject * _argo0 = 0;
4725 char *_kwnames[] = { "self","start","data", NULL };
4726
4727 self = self;
4728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2))
4729 return NULL;
4730 if (_argo0) {
4731 if (_argo0 == Py_None) { _arg0 = NULL; }
4732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p.");
4734 return NULL;
4735 }
4736 }
4737 {
4738 wxPy_BEGIN_ALLOW_THREADS;
4739 _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2);
4740
4741 wxPy_END_ALLOW_THREADS;
4742 if (PyErr_Occurred()) return NULL;
4743 } _resultobj = Py_BuildValue("l",_result);
4744 return _resultobj;
4745 }
4746
4747 #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4748 static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
4749 PyObject * _resultobj;
4750 long _result;
4751 wxPyListCtrl * _arg0;
4752 long _arg1;
4753 wxPoint * _arg2;
4754 int _arg3;
4755 PyObject * _argo0 = 0;
4756 wxPoint temp;
4757 PyObject * _obj2 = 0;
4758 char *_kwnames[] = { "self","start","pt","direction", NULL };
4759
4760 self = self;
4761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4762 return NULL;
4763 if (_argo0) {
4764 if (_argo0 == Py_None) { _arg0 = NULL; }
4765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p.");
4767 return NULL;
4768 }
4769 }
4770 {
4771 _arg2 = &temp;
4772 if (! wxPoint_helper(_obj2, &_arg2))
4773 return NULL;
4774 }
4775 {
4776 wxPy_BEGIN_ALLOW_THREADS;
4777 _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3);
4778
4779 wxPy_END_ALLOW_THREADS;
4780 if (PyErr_Occurred()) return NULL;
4781 } _resultobj = Py_BuildValue("l",_result);
4782 return _resultobj;
4783 }
4784
4785 #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
4786 static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
4787 PyObject * _resultobj;
4788 long _result;
4789 wxPyListCtrl * _arg0;
4790 wxPoint * _arg1;
4791 int * _arg2;
4792 int temp;
4793 PyObject * _argo0 = 0;
4794 wxPoint temp0;
4795 PyObject * _obj1 = 0;
4796 char *_kwnames[] = { "self","point", NULL };
4797
4798 self = self;
4799 {
4800 _arg2 = &temp;
4801 }
4802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1))
4803 return NULL;
4804 if (_argo0) {
4805 if (_argo0 == Py_None) { _arg0 = NULL; }
4806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p.");
4808 return NULL;
4809 }
4810 }
4811 {
4812 _arg1 = &temp0;
4813 if (! wxPoint_helper(_obj1, &_arg1))
4814 return NULL;
4815 }
4816 {
4817 wxPy_BEGIN_ALLOW_THREADS;
4818 _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2);
4819
4820 wxPy_END_ALLOW_THREADS;
4821 if (PyErr_Occurred()) return NULL;
4822 } _resultobj = Py_BuildValue("l",_result);
4823 {
4824 PyObject *o;
4825 o = PyInt_FromLong((long) (*_arg2));
4826 _resultobj = t_output_helper(_resultobj, o);
4827 }
4828 return _resultobj;
4829 }
4830
4831 #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0))
4832 static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4833 PyObject * _resultobj;
4834 long _result;
4835 wxPyListCtrl * _arg0;
4836 wxListItem * _arg1;
4837 PyObject * _argo0 = 0;
4838 PyObject * _argo1 = 0;
4839 char *_kwnames[] = { "self","info", NULL };
4840
4841 self = self;
4842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1))
4843 return NULL;
4844 if (_argo0) {
4845 if (_argo0 == Py_None) { _arg0 = NULL; }
4846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p.");
4848 return NULL;
4849 }
4850 }
4851 if (_argo1) {
4852 if (_argo1 == Py_None) { _arg1 = NULL; }
4853 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
4854 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p.");
4855 return NULL;
4856 }
4857 }
4858 {
4859 wxPy_BEGIN_ALLOW_THREADS;
4860 _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1);
4861
4862 wxPy_END_ALLOW_THREADS;
4863 if (PyErr_Occurred()) return NULL;
4864 } _resultobj = Py_BuildValue("l",_result);
4865 return _resultobj;
4866 }
4867
4868 #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4869 static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4870 PyObject * _resultobj;
4871 long _result;
4872 wxPyListCtrl * _arg0;
4873 long _arg1;
4874 wxString * _arg2;
4875 PyObject * _argo0 = 0;
4876 PyObject * _obj2 = 0;
4877 char *_kwnames[] = { "self","index","label", NULL };
4878
4879 self = self;
4880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2))
4881 return NULL;
4882 if (_argo0) {
4883 if (_argo0 == Py_None) { _arg0 = NULL; }
4884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p.");
4886 return NULL;
4887 }
4888 }
4889 {
4890 #if PYTHON_API_VERSION >= 1009
4891 char* tmpPtr; int tmpSize;
4892 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4893 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4894 return NULL;
4895 }
4896 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4897 return NULL;
4898 _arg2 = new wxString(tmpPtr, tmpSize);
4899 #else
4900 if (!PyString_Check(_obj2)) {
4901 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4902 return NULL;
4903 }
4904 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4905 #endif
4906 }
4907 {
4908 wxPy_BEGIN_ALLOW_THREADS;
4909 _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2);
4910
4911 wxPy_END_ALLOW_THREADS;
4912 if (PyErr_Occurred()) return NULL;
4913 } _resultobj = Py_BuildValue("l",_result);
4914 {
4915 if (_obj2)
4916 delete _arg2;
4917 }
4918 return _resultobj;
4919 }
4920
4921 #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4922 static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4923 PyObject * _resultobj;
4924 long _result;
4925 wxPyListCtrl * _arg0;
4926 long _arg1;
4927 int _arg2;
4928 PyObject * _argo0 = 0;
4929 char *_kwnames[] = { "self","index","imageIndex", NULL };
4930
4931 self = self;
4932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2))
4933 return NULL;
4934 if (_argo0) {
4935 if (_argo0 == Py_None) { _arg0 = NULL; }
4936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p.");
4938 return NULL;
4939 }
4940 }
4941 {
4942 wxPy_BEGIN_ALLOW_THREADS;
4943 _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2);
4944
4945 wxPy_END_ALLOW_THREADS;
4946 if (PyErr_Occurred()) return NULL;
4947 } _resultobj = Py_BuildValue("l",_result);
4948 return _resultobj;
4949 }
4950
4951 #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2))
4952 static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject * _resultobj;
4954 long _result;
4955 wxPyListCtrl * _arg0;
4956 long _arg1;
4957 wxString * _arg2;
4958 int _arg3;
4959 PyObject * _argo0 = 0;
4960 PyObject * _obj2 = 0;
4961 char *_kwnames[] = { "self","index","label","imageIndex", NULL };
4962
4963 self = self;
4964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4965 return NULL;
4966 if (_argo0) {
4967 if (_argo0 == Py_None) { _arg0 = NULL; }
4968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p.");
4970 return NULL;
4971 }
4972 }
4973 {
4974 #if PYTHON_API_VERSION >= 1009
4975 char* tmpPtr; int tmpSize;
4976 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4977 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4978 return NULL;
4979 }
4980 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4981 return NULL;
4982 _arg2 = new wxString(tmpPtr, tmpSize);
4983 #else
4984 if (!PyString_Check(_obj2)) {
4985 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4986 return NULL;
4987 }
4988 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4989 #endif
4990 }
4991 {
4992 wxPy_BEGIN_ALLOW_THREADS;
4993 _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3);
4994
4995 wxPy_END_ALLOW_THREADS;
4996 if (PyErr_Occurred()) return NULL;
4997 } _resultobj = Py_BuildValue("l",_result);
4998 {
4999 if (_obj2)
5000 delete _arg2;
5001 }
5002 return _resultobj;
5003 }
5004
5005 #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
5006 static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject * _resultobj;
5008 long _result;
5009 wxPyListCtrl * _arg0;
5010 long _arg1;
5011 wxListItem * _arg2;
5012 PyObject * _argo0 = 0;
5013 PyObject * _argo2 = 0;
5014 char *_kwnames[] = { "self","col","info", NULL };
5015
5016 self = self;
5017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2))
5018 return NULL;
5019 if (_argo0) {
5020 if (_argo0 == Py_None) { _arg0 = NULL; }
5021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p.");
5023 return NULL;
5024 }
5025 }
5026 if (_argo2) {
5027 if (_argo2 == Py_None) { _arg2 = NULL; }
5028 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
5029 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p.");
5030 return NULL;
5031 }
5032 }
5033 {
5034 wxPy_BEGIN_ALLOW_THREADS;
5035 _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2);
5036
5037 wxPy_END_ALLOW_THREADS;
5038 if (PyErr_Occurred()) return NULL;
5039 } _resultobj = Py_BuildValue("l",_result);
5040 return _resultobj;
5041 }
5042
5043 #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5044 static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
5045 PyObject * _resultobj;
5046 long _result;
5047 wxPyListCtrl * _arg0;
5048 long _arg1;
5049 wxString * _arg2;
5050 int _arg3 = (int ) (wxLIST_FORMAT_LEFT);
5051 int _arg4 = (int ) -1;
5052 PyObject * _argo0 = 0;
5053 PyObject * _obj2 = 0;
5054 char *_kwnames[] = { "self","col","heading","format","width", NULL };
5055
5056 self = self;
5057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4))
5058 return NULL;
5059 if (_argo0) {
5060 if (_argo0 == Py_None) { _arg0 = NULL; }
5061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p.");
5063 return NULL;
5064 }
5065 }
5066 {
5067 #if PYTHON_API_VERSION >= 1009
5068 char* tmpPtr; int tmpSize;
5069 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
5070 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5071 return NULL;
5072 }
5073 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
5074 return NULL;
5075 _arg2 = new wxString(tmpPtr, tmpSize);
5076 #else
5077 if (!PyString_Check(_obj2)) {
5078 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5079 return NULL;
5080 }
5081 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
5082 #endif
5083 }
5084 {
5085 wxPy_BEGIN_ALLOW_THREADS;
5086 _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4);
5087
5088 wxPy_END_ALLOW_THREADS;
5089 if (PyErr_Occurred()) return NULL;
5090 } _resultobj = Py_BuildValue("l",_result);
5091 {
5092 if (_obj2)
5093 delete _arg2;
5094 }
5095 return _resultobj;
5096 }
5097
5098 #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0))
5099 static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5100 PyObject * _resultobj;
5101 wxPyListCtrl * _arg0;
5102 long _arg1;
5103 PyObject * _argo0 = 0;
5104 char *_kwnames[] = { "self","count", NULL };
5105
5106 self = self;
5107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1))
5108 return NULL;
5109 if (_argo0) {
5110 if (_argo0 == Py_None) { _arg0 = NULL; }
5111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p.");
5113 return NULL;
5114 }
5115 }
5116 {
5117 wxPy_BEGIN_ALLOW_THREADS;
5118 wxListCtrl_SetItemCount(_arg0,_arg1);
5119
5120 wxPy_END_ALLOW_THREADS;
5121 if (PyErr_Occurred()) return NULL;
5122 } Py_INCREF(Py_None);
5123 _resultobj = Py_None;
5124 return _resultobj;
5125 }
5126
5127 #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1))
5128 static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
5129 PyObject * _resultobj;
5130 bool _result;
5131 wxPyListCtrl * _arg0;
5132 int _arg1;
5133 int _arg2;
5134 PyObject * _argo0 = 0;
5135 char *_kwnames[] = { "self","dx","dy", NULL };
5136
5137 self = self;
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2))
5139 return NULL;
5140 if (_argo0) {
5141 if (_argo0 == Py_None) { _arg0 = NULL; }
5142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p.");
5144 return NULL;
5145 }
5146 }
5147 {
5148 wxPy_BEGIN_ALLOW_THREADS;
5149 _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2);
5150
5151 wxPy_END_ALLOW_THREADS;
5152 if (PyErr_Occurred()) return NULL;
5153 } _resultobj = Py_BuildValue("i",_result);
5154 return _resultobj;
5155 }
5156
5157 static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) {
5158 if (!PyCallable_Check(func))
5159 return FALSE;
5160 return self->SortItems(wxPyListCtrl_SortItems, (long)func);
5161 }
5162 static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5163 PyObject * _resultobj;
5164 bool _result;
5165 wxPyListCtrl * _arg0;
5166 PyObject * _arg1;
5167 PyObject * _argo0 = 0;
5168 PyObject * _obj1 = 0;
5169 char *_kwnames[] = { "self","func", NULL };
5170
5171 self = self;
5172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1))
5173 return NULL;
5174 if (_argo0) {
5175 if (_argo0 == Py_None) { _arg0 = NULL; }
5176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p.");
5178 return NULL;
5179 }
5180 }
5181 {
5182 _arg1 = _obj1;
5183 }
5184 {
5185 wxPy_BEGIN_ALLOW_THREADS;
5186 _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1);
5187
5188 wxPy_END_ALLOW_THREADS;
5189 if (PyErr_Occurred()) return NULL;
5190 } _resultobj = Py_BuildValue("i",_result);
5191 return _resultobj;
5192 }
5193
5194 static void *SwigwxListViewTowxPyListCtrl(void *ptr) {
5195 wxListView *src;
5196 wxPyListCtrl *dest;
5197 src = (wxListView *) ptr;
5198 dest = (wxPyListCtrl *) src;
5199 return (void *) dest;
5200 }
5201
5202 static void *SwigwxListViewTowxControl(void *ptr) {
5203 wxListView *src;
5204 wxControl *dest;
5205 src = (wxListView *) ptr;
5206 dest = (wxControl *) src;
5207 return (void *) dest;
5208 }
5209
5210 static void *SwigwxListViewTowxWindow(void *ptr) {
5211 wxListView *src;
5212 wxWindow *dest;
5213 src = (wxListView *) ptr;
5214 dest = (wxWindow *) src;
5215 return (void *) dest;
5216 }
5217
5218 static void *SwigwxListViewTowxEvtHandler(void *ptr) {
5219 wxListView *src;
5220 wxEvtHandler *dest;
5221 src = (wxListView *) ptr;
5222 dest = (wxEvtHandler *) src;
5223 return (void *) dest;
5224 }
5225
5226 static void *SwigwxListViewTowxObject(void *ptr) {
5227 wxListView *src;
5228 wxObject *dest;
5229 src = (wxListView *) ptr;
5230 dest = (wxObject *) src;
5231 return (void *) dest;
5232 }
5233
5234 #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5235 static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) {
5236 PyObject * _resultobj;
5237 wxListView * _result;
5238 wxWindow * _arg0;
5239 wxWindowID _arg1 = (wxWindowID ) -1;
5240 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5241 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5242 long _arg4 = (long ) (wxLC_REPORT);
5243 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
5244 wxString * _arg6 = (wxString *) &"listctrl";
5245 PyObject * _argo0 = 0;
5246 wxPoint temp;
5247 PyObject * _obj2 = 0;
5248 wxSize temp0;
5249 PyObject * _obj3 = 0;
5250 PyObject * _argo5 = 0;
5251 PyObject * _obj6 = 0;
5252 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
5253 char _ptemp[128];
5254
5255 self = self;
5256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6))
5257 return NULL;
5258 if (_argo0) {
5259 if (_argo0 == Py_None) { _arg0 = NULL; }
5260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p.");
5262 return NULL;
5263 }
5264 }
5265 if (_obj2)
5266 {
5267 _arg2 = &temp;
5268 if (! wxPoint_helper(_obj2, &_arg2))
5269 return NULL;
5270 }
5271 if (_obj3)
5272 {
5273 _arg3 = &temp0;
5274 if (! wxSize_helper(_obj3, &_arg3))
5275 return NULL;
5276 }
5277 if (_argo5) {
5278 if (_argo5 == Py_None) { _arg5 = NULL; }
5279 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
5280 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p.");
5281 return NULL;
5282 }
5283 }
5284 if (_obj6)
5285 {
5286 #if PYTHON_API_VERSION >= 1009
5287 char* tmpPtr; int tmpSize;
5288 if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
5289 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5290 return NULL;
5291 }
5292 if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
5293 return NULL;
5294 _arg6 = new wxString(tmpPtr, tmpSize);
5295 #else
5296 if (!PyString_Check(_obj6)) {
5297 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5298 return NULL;
5299 }
5300 _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
5301 #endif
5302 }
5303 {
5304 wxPy_BEGIN_ALLOW_THREADS;
5305 _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6);
5306
5307 wxPy_END_ALLOW_THREADS;
5308 if (PyErr_Occurred()) return NULL;
5309 } if (_result) {
5310 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p");
5311 _resultobj = Py_BuildValue("s",_ptemp);
5312 } else {
5313 Py_INCREF(Py_None);
5314 _resultobj = Py_None;
5315 }
5316 {
5317 if (_obj6)
5318 delete _arg6;
5319 }
5320 return _resultobj;
5321 }
5322
5323 #define new_wxPreListView() (new wxListView())
5324 static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
5325 PyObject * _resultobj;
5326 wxListView * _result;
5327 char *_kwnames[] = { NULL };
5328 char _ptemp[128];
5329
5330 self = self;
5331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames))
5332 return NULL;
5333 {
5334 wxPy_BEGIN_ALLOW_THREADS;
5335 _result = (wxListView *)new_wxPreListView();
5336
5337 wxPy_END_ALLOW_THREADS;
5338 if (PyErr_Occurred()) return NULL;
5339 } if (_result) {
5340 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p");
5341 _resultobj = Py_BuildValue("s",_ptemp);
5342 } else {
5343 Py_INCREF(Py_None);
5344 _resultobj = Py_None;
5345 }
5346 return _resultobj;
5347 }
5348
5349 #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5350 static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5351 PyObject * _resultobj;
5352 bool _result;
5353 wxListView * _arg0;
5354 wxWindow * _arg1;
5355 wxWindowID _arg2 = (wxWindowID ) -1;
5356 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5357 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5358 long _arg5 = (long ) (wxLC_REPORT);
5359 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
5360 wxString * _arg7 = (wxString *) &"listctrl";
5361 PyObject * _argo0 = 0;
5362 PyObject * _argo1 = 0;
5363 wxPoint temp;
5364 PyObject * _obj3 = 0;
5365 wxSize temp0;
5366 PyObject * _obj4 = 0;
5367 PyObject * _argo6 = 0;
5368 PyObject * _obj7 = 0;
5369 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
5370
5371 self = self;
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
5373 return NULL;
5374 if (_argo0) {
5375 if (_argo0 == Py_None) { _arg0 = NULL; }
5376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p.");
5378 return NULL;
5379 }
5380 }
5381 if (_argo1) {
5382 if (_argo1 == Py_None) { _arg1 = NULL; }
5383 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5384 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p.");
5385 return NULL;
5386 }
5387 }
5388 if (_obj3)
5389 {
5390 _arg3 = &temp;
5391 if (! wxPoint_helper(_obj3, &_arg3))
5392 return NULL;
5393 }
5394 if (_obj4)
5395 {
5396 _arg4 = &temp0;
5397 if (! wxSize_helper(_obj4, &_arg4))
5398 return NULL;
5399 }
5400 if (_argo6) {
5401 if (_argo6 == Py_None) { _arg6 = NULL; }
5402 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
5403 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p.");
5404 return NULL;
5405 }
5406 }
5407 if (_obj7)
5408 {
5409 #if PYTHON_API_VERSION >= 1009
5410 char* tmpPtr; int tmpSize;
5411 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
5412 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5413 return NULL;
5414 }
5415 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
5416 return NULL;
5417 _arg7 = new wxString(tmpPtr, tmpSize);
5418 #else
5419 if (!PyString_Check(_obj7)) {
5420 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5421 return NULL;
5422 }
5423 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
5424 #endif
5425 }
5426 {
5427 wxPy_BEGIN_ALLOW_THREADS;
5428 _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
5429
5430 wxPy_END_ALLOW_THREADS;
5431 if (PyErr_Occurred()) return NULL;
5432 } _resultobj = Py_BuildValue("i",_result);
5433 {
5434 if (_obj7)
5435 delete _arg7;
5436 }
5437 return _resultobj;
5438 }
5439
5440 #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1))
5441 static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5442 PyObject * _resultobj;
5443 wxListView * _arg0;
5444 long _arg1;
5445 bool _arg2 = (bool ) TRUE;
5446 PyObject * _argo0 = 0;
5447 int tempbool2 = (int) TRUE;
5448 char *_kwnames[] = { "self","n","on", NULL };
5449
5450 self = self;
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2))
5452 return NULL;
5453 if (_argo0) {
5454 if (_argo0 == Py_None) { _arg0 = NULL; }
5455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p.");
5457 return NULL;
5458 }
5459 }
5460 _arg2 = (bool ) tempbool2;
5461 {
5462 wxPy_BEGIN_ALLOW_THREADS;
5463 wxListView_Select(_arg0,_arg1,_arg2);
5464
5465 wxPy_END_ALLOW_THREADS;
5466 if (PyErr_Occurred()) return NULL;
5467 } Py_INCREF(Py_None);
5468 _resultobj = Py_None;
5469 return _resultobj;
5470 }
5471
5472 #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0))
5473 static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
5474 PyObject * _resultobj;
5475 wxListView * _arg0;
5476 long _arg1;
5477 PyObject * _argo0 = 0;
5478 char *_kwnames[] = { "self","index", NULL };
5479
5480 self = self;
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1))
5482 return NULL;
5483 if (_argo0) {
5484 if (_argo0 == Py_None) { _arg0 = NULL; }
5485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p.");
5487 return NULL;
5488 }
5489 }
5490 {
5491 wxPy_BEGIN_ALLOW_THREADS;
5492 wxListView_Focus(_arg0,_arg1);
5493
5494 wxPy_END_ALLOW_THREADS;
5495 if (PyErr_Occurred()) return NULL;
5496 } Py_INCREF(Py_None);
5497 _resultobj = Py_None;
5498 return _resultobj;
5499 }
5500
5501 #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem())
5502 static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5503 PyObject * _resultobj;
5504 long _result;
5505 wxListView * _arg0;
5506 PyObject * _argo0 = 0;
5507 char *_kwnames[] = { "self", NULL };
5508
5509 self = self;
5510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0))
5511 return NULL;
5512 if (_argo0) {
5513 if (_argo0 == Py_None) { _arg0 = NULL; }
5514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p.");
5516 return NULL;
5517 }
5518 }
5519 {
5520 wxPy_BEGIN_ALLOW_THREADS;
5521 _result = (long )wxListView_GetFocusedItem(_arg0);
5522
5523 wxPy_END_ALLOW_THREADS;
5524 if (PyErr_Occurred()) return NULL;
5525 } _resultobj = Py_BuildValue("l",_result);
5526 return _resultobj;
5527 }
5528
5529 #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0))
5530 static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject * _resultobj;
5532 long _result;
5533 wxListView * _arg0;
5534 long _arg1;
5535 PyObject * _argo0 = 0;
5536 char *_kwnames[] = { "self","item", NULL };
5537
5538 self = self;
5539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1))
5540 return NULL;
5541 if (_argo0) {
5542 if (_argo0 == Py_None) { _arg0 = NULL; }
5543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p.");
5545 return NULL;
5546 }
5547 }
5548 {
5549 wxPy_BEGIN_ALLOW_THREADS;
5550 _result = (long )wxListView_GetNextSelected(_arg0,_arg1);
5551
5552 wxPy_END_ALLOW_THREADS;
5553 if (PyErr_Occurred()) return NULL;
5554 } _resultobj = Py_BuildValue("l",_result);
5555 return _resultobj;
5556 }
5557
5558 #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected())
5559 static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5560 PyObject * _resultobj;
5561 long _result;
5562 wxListView * _arg0;
5563 PyObject * _argo0 = 0;
5564 char *_kwnames[] = { "self", NULL };
5565
5566 self = self;
5567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0))
5568 return NULL;
5569 if (_argo0) {
5570 if (_argo0 == Py_None) { _arg0 = NULL; }
5571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p.");
5573 return NULL;
5574 }
5575 }
5576 {
5577 wxPy_BEGIN_ALLOW_THREADS;
5578 _result = (long )wxListView_GetFirstSelected(_arg0);
5579
5580 wxPy_END_ALLOW_THREADS;
5581 if (PyErr_Occurred()) return NULL;
5582 } _resultobj = Py_BuildValue("l",_result);
5583 return _resultobj;
5584 }
5585
5586 #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
5587 static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5588 PyObject * _resultobj;
5589 bool _result;
5590 wxListView * _arg0;
5591 long _arg1;
5592 PyObject * _argo0 = 0;
5593 char *_kwnames[] = { "self","index", NULL };
5594
5595 self = self;
5596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1))
5597 return NULL;
5598 if (_argo0) {
5599 if (_argo0 == Py_None) { _arg0 = NULL; }
5600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p.");
5602 return NULL;
5603 }
5604 }
5605 {
5606 wxPy_BEGIN_ALLOW_THREADS;
5607 _result = (bool )wxListView_IsSelected(_arg0,_arg1);
5608
5609 wxPy_END_ALLOW_THREADS;
5610 if (PyErr_Occurred()) return NULL;
5611 } _resultobj = Py_BuildValue("i",_result);
5612 return _resultobj;
5613 }
5614
5615 #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1))
5616 static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5617 PyObject * _resultobj;
5618 wxListView * _arg0;
5619 int _arg1;
5620 int _arg2;
5621 PyObject * _argo0 = 0;
5622 char *_kwnames[] = { "self","col","image", NULL };
5623
5624 self = self;
5625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2))
5626 return NULL;
5627 if (_argo0) {
5628 if (_argo0 == Py_None) { _arg0 = NULL; }
5629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p.");
5631 return NULL;
5632 }
5633 }
5634 {
5635 wxPy_BEGIN_ALLOW_THREADS;
5636 wxListView_SetColumnImage(_arg0,_arg1,_arg2);
5637
5638 wxPy_END_ALLOW_THREADS;
5639 if (PyErr_Occurred()) return NULL;
5640 } Py_INCREF(Py_None);
5641 _resultobj = Py_None;
5642 return _resultobj;
5643 }
5644
5645 #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0))
5646 static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5647 PyObject * _resultobj;
5648 wxListView * _arg0;
5649 int _arg1;
5650 PyObject * _argo0 = 0;
5651 char *_kwnames[] = { "self","col", NULL };
5652
5653 self = self;
5654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1))
5655 return NULL;
5656 if (_argo0) {
5657 if (_argo0 == Py_None) { _arg0 = NULL; }
5658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p.");
5660 return NULL;
5661 }
5662 }
5663 {
5664 wxPy_BEGIN_ALLOW_THREADS;
5665 wxListView_ClearColumnImage(_arg0,_arg1);
5666
5667 wxPy_END_ALLOW_THREADS;
5668 if (PyErr_Occurred()) return NULL;
5669 } Py_INCREF(Py_None);
5670 _resultobj = Py_None;
5671 return _resultobj;
5672 }
5673
5674 #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2))
5675 static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5676 PyObject * _resultobj;
5677 wxTreeItemAttr * _result;
5678 wxColour * _arg0 = (wxColour *) &wxNullColour;
5679 wxColour * _arg1 = (wxColour *) &wxNullColour;
5680 wxFont * _arg2 = (wxFont *) &wxNullFont;
5681 wxColour temp;
5682 PyObject * _obj0 = 0;
5683 wxColour temp0;
5684 PyObject * _obj1 = 0;
5685 PyObject * _argo2 = 0;
5686 char *_kwnames[] = { "colText","colBack","font", NULL };
5687 char _ptemp[128];
5688
5689 self = self;
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2))
5691 return NULL;
5692 if (_obj0)
5693 {
5694 _arg0 = &temp;
5695 if (! wxColour_helper(_obj0, &_arg0))
5696 return NULL;
5697 }
5698 if (_obj1)
5699 {
5700 _arg1 = &temp0;
5701 if (! wxColour_helper(_obj1, &_arg1))
5702 return NULL;
5703 }
5704 if (_argo2) {
5705 if (_argo2 == Py_None) { _arg2 = NULL; }
5706 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5707 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p.");
5708 return NULL;
5709 }
5710 }
5711 {
5712 wxPy_BEGIN_ALLOW_THREADS;
5713 _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2);
5714
5715 wxPy_END_ALLOW_THREADS;
5716 if (PyErr_Occurred()) return NULL;
5717 } if (_result) {
5718 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p");
5719 _resultobj = Py_BuildValue("s",_ptemp);
5720 } else {
5721 Py_INCREF(Py_None);
5722 _resultobj = Py_None;
5723 }
5724 return _resultobj;
5725 }
5726
5727 #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
5728 static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5729 PyObject * _resultobj;
5730 wxTreeItemAttr * _arg0;
5731 wxColour * _arg1;
5732 PyObject * _argo0 = 0;
5733 wxColour temp;
5734 PyObject * _obj1 = 0;
5735 char *_kwnames[] = { "self","colText", NULL };
5736
5737 self = self;
5738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
5739 return NULL;
5740 if (_argo0) {
5741 if (_argo0 == Py_None) { _arg0 = NULL; }
5742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p.");
5744 return NULL;
5745 }
5746 }
5747 {
5748 _arg1 = &temp;
5749 if (! wxColour_helper(_obj1, &_arg1))
5750 return NULL;
5751 }
5752 {
5753 wxPy_BEGIN_ALLOW_THREADS;
5754 wxTreeItemAttr_SetTextColour(_arg0,*_arg1);
5755
5756 wxPy_END_ALLOW_THREADS;
5757 if (PyErr_Occurred()) return NULL;
5758 } Py_INCREF(Py_None);
5759 _resultobj = Py_None;
5760 return _resultobj;
5761 }
5762
5763 #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
5764 static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5765 PyObject * _resultobj;
5766 wxTreeItemAttr * _arg0;
5767 wxColour * _arg1;
5768 PyObject * _argo0 = 0;
5769 wxColour temp;
5770 PyObject * _obj1 = 0;
5771 char *_kwnames[] = { "self","colBack", NULL };
5772
5773 self = self;
5774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
5775 return NULL;
5776 if (_argo0) {
5777 if (_argo0 == Py_None) { _arg0 = NULL; }
5778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p.");
5780 return NULL;
5781 }
5782 }
5783 {
5784 _arg1 = &temp;
5785 if (! wxColour_helper(_obj1, &_arg1))
5786 return NULL;
5787 }
5788 {
5789 wxPy_BEGIN_ALLOW_THREADS;
5790 wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1);
5791
5792 wxPy_END_ALLOW_THREADS;
5793 if (PyErr_Occurred()) return NULL;
5794 } Py_INCREF(Py_None);
5795 _resultobj = Py_None;
5796 return _resultobj;
5797 }
5798
5799 #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5800 static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5801 PyObject * _resultobj;
5802 wxTreeItemAttr * _arg0;
5803 wxFont * _arg1;
5804 PyObject * _argo0 = 0;
5805 PyObject * _argo1 = 0;
5806 char *_kwnames[] = { "self","font", NULL };
5807
5808 self = self;
5809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1))
5810 return NULL;
5811 if (_argo0) {
5812 if (_argo0 == Py_None) { _arg0 = NULL; }
5813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p.");
5815 return NULL;
5816 }
5817 }
5818 if (_argo1) {
5819 if (_argo1 == Py_None) { _arg1 = NULL; }
5820 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5821 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p.");
5822 return NULL;
5823 }
5824 }
5825 {
5826 wxPy_BEGIN_ALLOW_THREADS;
5827 wxTreeItemAttr_SetFont(_arg0,*_arg1);
5828
5829 wxPy_END_ALLOW_THREADS;
5830 if (PyErr_Occurred()) return NULL;
5831 } Py_INCREF(Py_None);
5832 _resultobj = Py_None;
5833 return _resultobj;
5834 }
5835
5836 #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
5837 static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5838 PyObject * _resultobj;
5839 bool _result;
5840 wxTreeItemAttr * _arg0;
5841 PyObject * _argo0 = 0;
5842 char *_kwnames[] = { "self", NULL };
5843
5844 self = self;
5845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0))
5846 return NULL;
5847 if (_argo0) {
5848 if (_argo0 == Py_None) { _arg0 = NULL; }
5849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p.");
5851 return NULL;
5852 }
5853 }
5854 {
5855 wxPy_BEGIN_ALLOW_THREADS;
5856 _result = (bool )wxTreeItemAttr_HasTextColour(_arg0);
5857
5858 wxPy_END_ALLOW_THREADS;
5859 if (PyErr_Occurred()) return NULL;
5860 } _resultobj = Py_BuildValue("i",_result);
5861 return _resultobj;
5862 }
5863
5864 #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
5865 static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5866 PyObject * _resultobj;
5867 bool _result;
5868 wxTreeItemAttr * _arg0;
5869 PyObject * _argo0 = 0;
5870 char *_kwnames[] = { "self", NULL };
5871
5872 self = self;
5873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0))
5874 return NULL;
5875 if (_argo0) {
5876 if (_argo0 == Py_None) { _arg0 = NULL; }
5877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p.");
5879 return NULL;
5880 }
5881 }
5882 {
5883 wxPy_BEGIN_ALLOW_THREADS;
5884 _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0);
5885
5886 wxPy_END_ALLOW_THREADS;
5887 if (PyErr_Occurred()) return NULL;
5888 } _resultobj = Py_BuildValue("i",_result);
5889 return _resultobj;
5890 }
5891
5892 #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont())
5893 static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5894 PyObject * _resultobj;
5895 bool _result;
5896 wxTreeItemAttr * _arg0;
5897 PyObject * _argo0 = 0;
5898 char *_kwnames[] = { "self", NULL };
5899
5900 self = self;
5901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0))
5902 return NULL;
5903 if (_argo0) {
5904 if (_argo0 == Py_None) { _arg0 = NULL; }
5905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p.");
5907 return NULL;
5908 }
5909 }
5910 {
5911 wxPy_BEGIN_ALLOW_THREADS;
5912 _result = (bool )wxTreeItemAttr_HasFont(_arg0);
5913
5914 wxPy_END_ALLOW_THREADS;
5915 if (PyErr_Occurred()) return NULL;
5916 } _resultobj = Py_BuildValue("i",_result);
5917 return _resultobj;
5918 }
5919
5920 #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
5921 static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5922 PyObject * _resultobj;
5923 wxColour * _result;
5924 wxTreeItemAttr * _arg0;
5925 PyObject * _argo0 = 0;
5926 char *_kwnames[] = { "self", NULL };
5927 char _ptemp[128];
5928
5929 self = self;
5930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0))
5931 return NULL;
5932 if (_argo0) {
5933 if (_argo0 == Py_None) { _arg0 = NULL; }
5934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p.");
5936 return NULL;
5937 }
5938 }
5939 {
5940 wxPy_BEGIN_ALLOW_THREADS;
5941 const wxColour & _result_ref = wxTreeItemAttr_GetTextColour(_arg0);
5942 _result = (wxColour *) &_result_ref;
5943
5944 wxPy_END_ALLOW_THREADS;
5945 if (PyErr_Occurred()) return NULL;
5946 } if (_result) {
5947 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5948 _resultobj = Py_BuildValue("s",_ptemp);
5949 } else {
5950 Py_INCREF(Py_None);
5951 _resultobj = Py_None;
5952 }
5953 return _resultobj;
5954 }
5955
5956 #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
5957 static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5958 PyObject * _resultobj;
5959 wxColour * _result;
5960 wxTreeItemAttr * _arg0;
5961 PyObject * _argo0 = 0;
5962 char *_kwnames[] = { "self", NULL };
5963 char _ptemp[128];
5964
5965 self = self;
5966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0))
5967 return NULL;
5968 if (_argo0) {
5969 if (_argo0 == Py_None) { _arg0 = NULL; }
5970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p.");
5972 return NULL;
5973 }
5974 }
5975 {
5976 wxPy_BEGIN_ALLOW_THREADS;
5977 const wxColour & _result_ref = wxTreeItemAttr_GetBackgroundColour(_arg0);
5978 _result = (wxColour *) &_result_ref;
5979
5980 wxPy_END_ALLOW_THREADS;
5981 if (PyErr_Occurred()) return NULL;
5982 } if (_result) {
5983 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5984 _resultobj = Py_BuildValue("s",_ptemp);
5985 } else {
5986 Py_INCREF(Py_None);
5987 _resultobj = Py_None;
5988 }
5989 return _resultobj;
5990 }
5991
5992 #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont())
5993 static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5994 PyObject * _resultobj;
5995 wxFont * _result;
5996 wxTreeItemAttr * _arg0;
5997 PyObject * _argo0 = 0;
5998 char *_kwnames[] = { "self", NULL };
5999 char _ptemp[128];
6000
6001 self = self;
6002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0))
6003 return NULL;
6004 if (_argo0) {
6005 if (_argo0 == Py_None) { _arg0 = NULL; }
6006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
6007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p.");
6008 return NULL;
6009 }
6010 }
6011 {
6012 wxPy_BEGIN_ALLOW_THREADS;
6013 const wxFont & _result_ref = wxTreeItemAttr_GetFont(_arg0);
6014 _result = (wxFont *) &_result_ref;
6015
6016 wxPy_END_ALLOW_THREADS;
6017 if (PyErr_Occurred()) return NULL;
6018 } if (_result) {
6019 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
6020 _resultobj = Py_BuildValue("s",_ptemp);
6021 } else {
6022 Py_INCREF(Py_None);
6023 _resultobj = Py_None;
6024 }
6025 return _resultobj;
6026 }
6027
6028 #define new_wxTreeItemId() (new wxTreeItemId())
6029 static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
6030 PyObject * _resultobj;
6031 wxTreeItemId * _result;
6032 char *_kwnames[] = { NULL };
6033 char _ptemp[128];
6034
6035 self = self;
6036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames))
6037 return NULL;
6038 {
6039 wxPy_BEGIN_ALLOW_THREADS;
6040 _result = (wxTreeItemId *)new_wxTreeItemId();
6041
6042 wxPy_END_ALLOW_THREADS;
6043 if (PyErr_Occurred()) return NULL;
6044 } if (_result) {
6045 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
6046 _resultobj = Py_BuildValue("s",_ptemp);
6047 } else {
6048 Py_INCREF(Py_None);
6049 _resultobj = Py_None;
6050 }
6051 return _resultobj;
6052 }
6053
6054 #define delete_wxTreeItemId(_swigobj) (delete _swigobj)
6055 static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
6056 PyObject * _resultobj;
6057 wxTreeItemId * _arg0;
6058 PyObject * _argo0 = 0;
6059 char *_kwnames[] = { "self", NULL };
6060
6061 self = self;
6062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0))
6063 return NULL;
6064 if (_argo0) {
6065 if (_argo0 == Py_None) { _arg0 = NULL; }
6066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
6067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p.");
6068 return NULL;
6069 }
6070 }
6071 {
6072 wxPy_BEGIN_ALLOW_THREADS;
6073 delete_wxTreeItemId(_arg0);
6074
6075 wxPy_END_ALLOW_THREADS;
6076 if (PyErr_Occurred()) return NULL;
6077 } Py_INCREF(Py_None);
6078 _resultobj = Py_None;
6079 return _resultobj;
6080 }
6081
6082 #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk())
6083 static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
6084 PyObject * _resultobj;
6085 bool _result;
6086 wxTreeItemId * _arg0;
6087 PyObject * _argo0 = 0;
6088 char *_kwnames[] = { "self", NULL };
6089
6090 self = self;
6091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0))
6092 return NULL;
6093 if (_argo0) {
6094 if (_argo0 == Py_None) { _arg0 = NULL; }
6095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
6096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p.");
6097 return NULL;
6098 }
6099 }
6100 {
6101 wxPy_BEGIN_ALLOW_THREADS;
6102 _result = (bool )wxTreeItemId_IsOk(_arg0);
6103
6104 wxPy_END_ALLOW_THREADS;
6105 if (PyErr_Occurred()) return NULL;
6106 } _resultobj = Py_BuildValue("i",_result);
6107 return _resultobj;
6108 }
6109
6110 static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) {
6111 if (! other) return -1;
6112 return *self != *other;
6113 }
6114 static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject * _resultobj;
6116 int _result;
6117 wxTreeItemId * _arg0;
6118 wxTreeItemId * _arg1;
6119 PyObject * _argo0 = 0;
6120 PyObject * _argo1 = 0;
6121 char *_kwnames[] = { "self","other", NULL };
6122
6123 self = self;
6124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1))
6125 return NULL;
6126 if (_argo0) {
6127 if (_argo0 == Py_None) { _arg0 = NULL; }
6128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
6129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
6130 return NULL;
6131 }
6132 }
6133 if (_argo1) {
6134 if (_argo1 == Py_None) { _arg1 = NULL; }
6135 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6136 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
6137 return NULL;
6138 }
6139 }
6140 {
6141 wxPy_BEGIN_ALLOW_THREADS;
6142 _result = (int )wxTreeItemId___cmp__(_arg0,_arg1);
6143
6144 wxPy_END_ALLOW_THREADS;
6145 if (PyErr_Occurred()) return NULL;
6146 } _resultobj = Py_BuildValue("i",_result);
6147 return _resultobj;
6148 }
6149
6150 static void *SwigwxPyTreeItemDataTowxObject(void *ptr) {
6151 wxPyTreeItemData *src;
6152 wxObject *dest;
6153 src = (wxPyTreeItemData *) ptr;
6154 dest = (wxObject *) src;
6155 return (void *) dest;
6156 }
6157
6158 #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0))
6159 static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
6160 PyObject * _resultobj;
6161 wxPyTreeItemData * _result;
6162 PyObject * _arg0 = (PyObject *) NULL;
6163 PyObject * _obj0 = 0;
6164 char *_kwnames[] = { "obj", NULL };
6165 char _ptemp[128];
6166
6167 self = self;
6168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0))
6169 return NULL;
6170 if (_obj0)
6171 {
6172 _arg0 = _obj0;
6173 }
6174 {
6175 wxPy_BEGIN_ALLOW_THREADS;
6176 _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0);
6177
6178 wxPy_END_ALLOW_THREADS;
6179 if (PyErr_Occurred()) return NULL;
6180 } if (_result) {
6181 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
6182 _resultobj = Py_BuildValue("s",_ptemp);
6183 } else {
6184 Py_INCREF(Py_None);
6185 _resultobj = Py_None;
6186 }
6187 return _resultobj;
6188 }
6189
6190 #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData())
6191 static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
6192 PyObject * _resultobj;
6193 PyObject * _result;
6194 wxPyTreeItemData * _arg0;
6195 PyObject * _argo0 = 0;
6196 char *_kwnames[] = { "self", NULL };
6197
6198 self = self;
6199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0))
6200 return NULL;
6201 if (_argo0) {
6202 if (_argo0 == Py_None) { _arg0 = NULL; }
6203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p.");
6205 return NULL;
6206 }
6207 }
6208 {
6209 wxPy_BEGIN_ALLOW_THREADS;
6210 _result = (PyObject *)wxTreeItemData_GetData(_arg0);
6211
6212 wxPy_END_ALLOW_THREADS;
6213 if (PyErr_Occurred()) return NULL;
6214 }{
6215 _resultobj = _result;
6216 }
6217 return _resultobj;
6218 }
6219
6220 #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
6221 static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
6222 PyObject * _resultobj;
6223 wxPyTreeItemData * _arg0;
6224 PyObject * _arg1;
6225 PyObject * _argo0 = 0;
6226 PyObject * _obj1 = 0;
6227 char *_kwnames[] = { "self","obj", NULL };
6228
6229 self = self;
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1))
6231 return NULL;
6232 if (_argo0) {
6233 if (_argo0 == Py_None) { _arg0 = NULL; }
6234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p.");
6236 return NULL;
6237 }
6238 }
6239 {
6240 _arg1 = _obj1;
6241 }
6242 {
6243 wxPy_BEGIN_ALLOW_THREADS;
6244 wxTreeItemData_SetData(_arg0,_arg1);
6245
6246 wxPy_END_ALLOW_THREADS;
6247 if (PyErr_Occurred()) return NULL;
6248 } Py_INCREF(Py_None);
6249 _resultobj = Py_None;
6250 return _resultobj;
6251 }
6252
6253 #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId())
6254 static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6255 PyObject * _resultobj;
6256 wxTreeItemId * _result;
6257 wxPyTreeItemData * _arg0;
6258 PyObject * _argo0 = 0;
6259 char *_kwnames[] = { "self", NULL };
6260 char _ptemp[128];
6261
6262 self = self;
6263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0))
6264 return NULL;
6265 if (_argo0) {
6266 if (_argo0 == Py_None) { _arg0 = NULL; }
6267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p.");
6269 return NULL;
6270 }
6271 }
6272 {
6273 wxPy_BEGIN_ALLOW_THREADS;
6274 const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0);
6275 _result = (wxTreeItemId *) &_result_ref;
6276
6277 wxPy_END_ALLOW_THREADS;
6278 if (PyErr_Occurred()) return NULL;
6279 } if (_result) {
6280 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
6281 _resultobj = Py_BuildValue("s",_ptemp);
6282 } else {
6283 Py_INCREF(Py_None);
6284 _resultobj = Py_None;
6285 }
6286 return _resultobj;
6287 }
6288
6289 #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
6290 static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6291 PyObject * _resultobj;
6292 wxPyTreeItemData * _arg0;
6293 wxTreeItemId * _arg1;
6294 PyObject * _argo0 = 0;
6295 PyObject * _argo1 = 0;
6296 char *_kwnames[] = { "self","id", NULL };
6297
6298 self = self;
6299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1))
6300 return NULL;
6301 if (_argo0) {
6302 if (_argo0 == Py_None) { _arg0 = NULL; }
6303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p.");
6305 return NULL;
6306 }
6307 }
6308 if (_argo1) {
6309 if (_argo1 == Py_None) { _arg1 = NULL; }
6310 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6311 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p.");
6312 return NULL;
6313 }
6314 }
6315 {
6316 wxPy_BEGIN_ALLOW_THREADS;
6317 wxTreeItemData_SetId(_arg0,*_arg1);
6318
6319 wxPy_END_ALLOW_THREADS;
6320 if (PyErr_Occurred()) return NULL;
6321 } Py_INCREF(Py_None);
6322 _resultobj = Py_None;
6323 return _resultobj;
6324 }
6325
6326 static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) {
6327 wxTreeEvent *src;
6328 wxNotifyEvent *dest;
6329 src = (wxTreeEvent *) ptr;
6330 dest = (wxNotifyEvent *) src;
6331 return (void *) dest;
6332 }
6333
6334 static void *SwigwxTreeEventTowxCommandEvent(void *ptr) {
6335 wxTreeEvent *src;
6336 wxCommandEvent *dest;
6337 src = (wxTreeEvent *) ptr;
6338 dest = (wxCommandEvent *) src;
6339 return (void *) dest;
6340 }
6341
6342 static void *SwigwxTreeEventTowxEvent(void *ptr) {
6343 wxTreeEvent *src;
6344 wxEvent *dest;
6345 src = (wxTreeEvent *) ptr;
6346 dest = (wxEvent *) src;
6347 return (void *) dest;
6348 }
6349
6350 static void *SwigwxTreeEventTowxObject(void *ptr) {
6351 wxTreeEvent *src;
6352 wxObject *dest;
6353 src = (wxTreeEvent *) ptr;
6354 dest = (wxObject *) src;
6355 return (void *) dest;
6356 }
6357
6358 #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1))
6359 static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6360 PyObject * _resultobj;
6361 wxTreeEvent * _result;
6362 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
6363 int _arg1 = (int ) 0;
6364 char *_kwnames[] = { "commandType","id", NULL };
6365 char _ptemp[128];
6366
6367 self = self;
6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1))
6369 return NULL;
6370 {
6371 wxPy_BEGIN_ALLOW_THREADS;
6372 _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1);
6373
6374 wxPy_END_ALLOW_THREADS;
6375 if (PyErr_Occurred()) return NULL;
6376 } if (_result) {
6377 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p");
6378 _resultobj = Py_BuildValue("s",_ptemp);
6379 } else {
6380 Py_INCREF(Py_None);
6381 _resultobj = Py_None;
6382 }
6383 return _resultobj;
6384 }
6385
6386 #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem())
6387 static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6388 PyObject * _resultobj;
6389 wxTreeItemId * _result;
6390 wxTreeEvent * _arg0;
6391 PyObject * _argo0 = 0;
6392 char *_kwnames[] = { "self", NULL };
6393 char _ptemp[128];
6394
6395 self = self;
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0))
6397 return NULL;
6398 if (_argo0) {
6399 if (_argo0 == Py_None) { _arg0 = NULL; }
6400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p.");
6402 return NULL;
6403 }
6404 }
6405 {
6406 wxPy_BEGIN_ALLOW_THREADS;
6407 _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0));
6408
6409 wxPy_END_ALLOW_THREADS;
6410 if (PyErr_Occurred()) return NULL;
6411 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
6412 _resultobj = Py_BuildValue("s",_ptemp);
6413 return _resultobj;
6414 }
6415
6416 #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem())
6417 static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6418 PyObject * _resultobj;
6419 wxTreeItemId * _result;
6420 wxTreeEvent * _arg0;
6421 PyObject * _argo0 = 0;
6422 char *_kwnames[] = { "self", NULL };
6423 char _ptemp[128];
6424
6425 self = self;
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0))
6427 return NULL;
6428 if (_argo0) {
6429 if (_argo0 == Py_None) { _arg0 = NULL; }
6430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p.");
6432 return NULL;
6433 }
6434 }
6435 {
6436 wxPy_BEGIN_ALLOW_THREADS;
6437 _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0));
6438
6439 wxPy_END_ALLOW_THREADS;
6440 if (PyErr_Occurred()) return NULL;
6441 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
6442 _resultobj = Py_BuildValue("s",_ptemp);
6443 return _resultobj;
6444 }
6445
6446 #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
6447 static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6448 PyObject * _resultobj;
6449 wxPoint * _result;
6450 wxTreeEvent * _arg0;
6451 PyObject * _argo0 = 0;
6452 char *_kwnames[] = { "self", NULL };
6453 char _ptemp[128];
6454
6455 self = self;
6456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0))
6457 return NULL;
6458 if (_argo0) {
6459 if (_argo0 == Py_None) { _arg0 = NULL; }
6460 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6461 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p.");
6462 return NULL;
6463 }
6464 }
6465 {
6466 wxPy_BEGIN_ALLOW_THREADS;
6467 _result = new wxPoint (wxTreeEvent_GetPoint(_arg0));
6468
6469 wxPy_END_ALLOW_THREADS;
6470 if (PyErr_Occurred()) return NULL;
6471 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
6472 _resultobj = Py_BuildValue("s",_ptemp);
6473 return _resultobj;
6474 }
6475
6476 #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent())
6477 static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject * _resultobj;
6479 wxKeyEvent * _result;
6480 wxTreeEvent * _arg0;
6481 PyObject * _argo0 = 0;
6482 char *_kwnames[] = { "self", NULL };
6483 char _ptemp[128];
6484
6485 self = self;
6486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0))
6487 return NULL;
6488 if (_argo0) {
6489 if (_argo0 == Py_None) { _arg0 = NULL; }
6490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p.");
6492 return NULL;
6493 }
6494 }
6495 {
6496 wxPy_BEGIN_ALLOW_THREADS;
6497 const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0);
6498 _result = (wxKeyEvent *) &_result_ref;
6499
6500 wxPy_END_ALLOW_THREADS;
6501 if (PyErr_Occurred()) return NULL;
6502 } if (_result) {
6503 SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p");
6504 _resultobj = Py_BuildValue("s",_ptemp);
6505 } else {
6506 Py_INCREF(Py_None);
6507 _resultobj = Py_None;
6508 }
6509 return _resultobj;
6510 }
6511
6512 #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode())
6513 static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
6514 PyObject * _resultobj;
6515 int _result;
6516 wxTreeEvent * _arg0;
6517 PyObject * _argo0 = 0;
6518 char *_kwnames[] = { "self", NULL };
6519
6520 self = self;
6521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0))
6522 return NULL;
6523 if (_argo0) {
6524 if (_argo0 == Py_None) { _arg0 = NULL; }
6525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p.");
6527 return NULL;
6528 }
6529 }
6530 {
6531 wxPy_BEGIN_ALLOW_THREADS;
6532 _result = (int )wxTreeEvent_GetCode(_arg0);
6533
6534 wxPy_END_ALLOW_THREADS;
6535 if (PyErr_Occurred()) return NULL;
6536 } _resultobj = Py_BuildValue("i",_result);
6537 return _resultobj;
6538 }
6539
6540 #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
6541 static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6542 PyObject * _resultobj;
6543 wxString * _result;
6544 wxTreeEvent * _arg0;
6545 PyObject * _argo0 = 0;
6546 char *_kwnames[] = { "self", NULL };
6547
6548 self = self;
6549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0))
6550 return NULL;
6551 if (_argo0) {
6552 if (_argo0 == Py_None) { _arg0 = NULL; }
6553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p.");
6555 return NULL;
6556 }
6557 }
6558 {
6559 wxPy_BEGIN_ALLOW_THREADS;
6560 const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0);
6561 _result = (wxString *) &_result_ref;
6562
6563 wxPy_END_ALLOW_THREADS;
6564 if (PyErr_Occurred()) return NULL;
6565 }{
6566 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6567 }
6568 return _resultobj;
6569 }
6570
6571 static void *SwigwxPyTreeCtrlTowxControl(void *ptr) {
6572 wxPyTreeCtrl *src;
6573 wxControl *dest;
6574 src = (wxPyTreeCtrl *) ptr;
6575 dest = (wxControl *) src;
6576 return (void *) dest;
6577 }
6578
6579 static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) {
6580 wxPyTreeCtrl *src;
6581 wxWindow *dest;
6582 src = (wxPyTreeCtrl *) ptr;
6583 dest = (wxWindow *) src;
6584 return (void *) dest;
6585 }
6586
6587 static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) {
6588 wxPyTreeCtrl *src;
6589 wxEvtHandler *dest;
6590 src = (wxPyTreeCtrl *) ptr;
6591 dest = (wxEvtHandler *) src;
6592 return (void *) dest;
6593 }
6594
6595 static void *SwigwxPyTreeCtrlTowxObject(void *ptr) {
6596 wxPyTreeCtrl *src;
6597 wxObject *dest;
6598 src = (wxPyTreeCtrl *) ptr;
6599 dest = (wxObject *) src;
6600 return (void *) dest;
6601 }
6602
6603 #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6604 static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6605 PyObject * _resultobj;
6606 wxPyTreeCtrl * _result;
6607 wxWindow * _arg0;
6608 wxWindowID _arg1 = (wxWindowID ) -1;
6609 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6610 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6611 long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
6612 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
6613 char * _arg6 = (char *) "wxTreeCtrl";
6614 PyObject * _argo0 = 0;
6615 wxPoint temp;
6616 PyObject * _obj2 = 0;
6617 wxSize temp0;
6618 PyObject * _obj3 = 0;
6619 PyObject * _argo5 = 0;
6620 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
6621 char _ptemp[128];
6622
6623 self = self;
6624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
6625 return NULL;
6626 if (_argo0) {
6627 if (_argo0 == Py_None) { _arg0 = NULL; }
6628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p.");
6630 return NULL;
6631 }
6632 }
6633 if (_obj2)
6634 {
6635 _arg2 = &temp;
6636 if (! wxPoint_helper(_obj2, &_arg2))
6637 return NULL;
6638 }
6639 if (_obj3)
6640 {
6641 _arg3 = &temp0;
6642 if (! wxSize_helper(_obj3, &_arg3))
6643 return NULL;
6644 }
6645 if (_argo5) {
6646 if (_argo5 == Py_None) { _arg5 = NULL; }
6647 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
6648 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p.");
6649 return NULL;
6650 }
6651 }
6652 {
6653 wxPy_BEGIN_ALLOW_THREADS;
6654 _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
6655
6656 wxPy_END_ALLOW_THREADS;
6657 if (PyErr_Occurred()) return NULL;
6658 } if (_result) {
6659 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
6660 _resultobj = Py_BuildValue("s",_ptemp);
6661 } else {
6662 Py_INCREF(Py_None);
6663 _resultobj = Py_None;
6664 }
6665 return _resultobj;
6666 }
6667
6668 #define new_wxPreTreeCtrl() (new wxPyTreeCtrl())
6669 static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6670 PyObject * _resultobj;
6671 wxPyTreeCtrl * _result;
6672 char *_kwnames[] = { NULL };
6673 char _ptemp[128];
6674
6675 self = self;
6676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames))
6677 return NULL;
6678 {
6679 wxPy_BEGIN_ALLOW_THREADS;
6680 _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl();
6681
6682 wxPy_END_ALLOW_THREADS;
6683 if (PyErr_Occurred()) return NULL;
6684 } if (_result) {
6685 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
6686 _resultobj = Py_BuildValue("s",_ptemp);
6687 } else {
6688 Py_INCREF(Py_None);
6689 _resultobj = Py_None;
6690 }
6691 return _resultobj;
6692 }
6693
6694 #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6695 static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6696 PyObject * _resultobj;
6697 bool _result;
6698 wxPyTreeCtrl * _arg0;
6699 wxWindow * _arg1;
6700 wxWindowID _arg2 = (wxWindowID ) -1;
6701 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6702 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6703 long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
6704 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
6705 char * _arg7 = (char *) "wxTreeCtrl";
6706 PyObject * _argo0 = 0;
6707 PyObject * _argo1 = 0;
6708 wxPoint temp;
6709 PyObject * _obj3 = 0;
6710 wxSize temp0;
6711 PyObject * _obj4 = 0;
6712 PyObject * _argo6 = 0;
6713 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
6714
6715 self = self;
6716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
6717 return NULL;
6718 if (_argo0) {
6719 if (_argo0 == Py_None) { _arg0 = NULL; }
6720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p.");
6722 return NULL;
6723 }
6724 }
6725 if (_argo1) {
6726 if (_argo1 == Py_None) { _arg1 = NULL; }
6727 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6728 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p.");
6729 return NULL;
6730 }
6731 }
6732 if (_obj3)
6733 {
6734 _arg3 = &temp;
6735 if (! wxPoint_helper(_obj3, &_arg3))
6736 return NULL;
6737 }
6738 if (_obj4)
6739 {
6740 _arg4 = &temp0;
6741 if (! wxSize_helper(_obj4, &_arg4))
6742 return NULL;
6743 }
6744 if (_argo6) {
6745 if (_argo6 == Py_None) { _arg6 = NULL; }
6746 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
6747 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p.");
6748 return NULL;
6749 }
6750 }
6751 {
6752 wxPy_BEGIN_ALLOW_THREADS;
6753 _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
6754
6755 wxPy_END_ALLOW_THREADS;
6756 if (PyErr_Occurred()) return NULL;
6757 } _resultobj = Py_BuildValue("i",_result);
6758 return _resultobj;
6759 }
6760
6761 #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
6762 static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6763 PyObject * _resultobj;
6764 wxPyTreeCtrl * _arg0;
6765 PyObject * _arg1;
6766 PyObject * _arg2;
6767 PyObject * _argo0 = 0;
6768 PyObject * _obj1 = 0;
6769 PyObject * _obj2 = 0;
6770 char *_kwnames[] = { "self","self","_class", NULL };
6771
6772 self = self;
6773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
6774 return NULL;
6775 if (_argo0) {
6776 if (_argo0 == Py_None) { _arg0 = NULL; }
6777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p.");
6779 return NULL;
6780 }
6781 }
6782 {
6783 _arg1 = _obj1;
6784 }
6785 {
6786 _arg2 = _obj2;
6787 }
6788 {
6789 wxPy_BEGIN_ALLOW_THREADS;
6790 wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2);
6791
6792 wxPy_END_ALLOW_THREADS;
6793 if (PyErr_Occurred()) return NULL;
6794 } Py_INCREF(Py_None);
6795 _resultobj = Py_None;
6796 return _resultobj;
6797 }
6798
6799 #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount())
6800 static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject * _resultobj;
6802 size_t _result;
6803 wxPyTreeCtrl * _arg0;
6804 PyObject * _argo0 = 0;
6805 char *_kwnames[] = { "self", NULL };
6806
6807 self = self;
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0))
6809 return NULL;
6810 if (_argo0) {
6811 if (_argo0 == Py_None) { _arg0 = NULL; }
6812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p.");
6814 return NULL;
6815 }
6816 }
6817 {
6818 wxPy_BEGIN_ALLOW_THREADS;
6819 _result = (size_t )wxTreeCtrl_GetCount(_arg0);
6820
6821 wxPy_END_ALLOW_THREADS;
6822 if (PyErr_Occurred()) return NULL;
6823 } _resultobj = Py_BuildValue("i",_result);
6824 return _resultobj;
6825 }
6826
6827 #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent())
6828 static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6829 PyObject * _resultobj;
6830 unsigned int _result;
6831 wxPyTreeCtrl * _arg0;
6832 PyObject * _argo0 = 0;
6833 char *_kwnames[] = { "self", NULL };
6834
6835 self = self;
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0))
6837 return NULL;
6838 if (_argo0) {
6839 if (_argo0 == Py_None) { _arg0 = NULL; }
6840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p.");
6842 return NULL;
6843 }
6844 }
6845 {
6846 wxPy_BEGIN_ALLOW_THREADS;
6847 _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0);
6848
6849 wxPy_END_ALLOW_THREADS;
6850 if (PyErr_Occurred()) return NULL;
6851 } _resultobj = Py_BuildValue("i",_result);
6852 return _resultobj;
6853 }
6854
6855 #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
6856 static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6857 PyObject * _resultobj;
6858 wxPyTreeCtrl * _arg0;
6859 unsigned int _arg1;
6860 PyObject * _argo0 = 0;
6861 char *_kwnames[] = { "self","indent", NULL };
6862
6863 self = self;
6864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1))
6865 return NULL;
6866 if (_argo0) {
6867 if (_argo0 == Py_None) { _arg0 = NULL; }
6868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p.");
6870 return NULL;
6871 }
6872 }
6873 {
6874 wxPy_BEGIN_ALLOW_THREADS;
6875 wxTreeCtrl_SetIndent(_arg0,_arg1);
6876
6877 wxPy_END_ALLOW_THREADS;
6878 if (PyErr_Occurred()) return NULL;
6879 } Py_INCREF(Py_None);
6880 _resultobj = Py_None;
6881 return _resultobj;
6882 }
6883
6884 #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList())
6885 static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6886 PyObject * _resultobj;
6887 wxImageList * _result;
6888 wxPyTreeCtrl * _arg0;
6889 PyObject * _argo0 = 0;
6890 char *_kwnames[] = { "self", NULL };
6891
6892 self = self;
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0))
6894 return NULL;
6895 if (_argo0) {
6896 if (_argo0 == Py_None) { _arg0 = NULL; }
6897 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6898 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p.");
6899 return NULL;
6900 }
6901 }
6902 {
6903 wxPy_BEGIN_ALLOW_THREADS;
6904 _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0);
6905
6906 wxPy_END_ALLOW_THREADS;
6907 if (PyErr_Occurred()) return NULL;
6908 }{ _resultobj = wxPyMake_wxObject(_result); }
6909 return _resultobj;
6910 }
6911
6912 #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList())
6913 static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6914 PyObject * _resultobj;
6915 wxImageList * _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_GetStateImageList",_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_GetStateImageList. Expected _wxPyTreeCtrl_p.");
6927 return NULL;
6928 }
6929 }
6930 {
6931 wxPy_BEGIN_ALLOW_THREADS;
6932 _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0);
6933
6934 wxPy_END_ALLOW_THREADS;
6935 if (PyErr_Occurred()) return NULL;
6936 }{ _resultobj = wxPyMake_wxObject(_result); }
6937 return _resultobj;
6938 }
6939
6940 #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
6941 static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6942 PyObject * _resultobj;
6943 wxPyTreeCtrl * _arg0;
6944 wxImageList * _arg1;
6945 PyObject * _argo0 = 0;
6946 PyObject * _argo1 = 0;
6947 char *_kwnames[] = { "self","imageList", NULL };
6948
6949 self = self;
6950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1))
6951 return NULL;
6952 if (_argo0) {
6953 if (_argo0 == Py_None) { _arg0 = NULL; }
6954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p.");
6956 return NULL;
6957 }
6958 }
6959 if (_argo1) {
6960 if (_argo1 == Py_None) { _arg1 = NULL; }
6961 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6962 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p.");
6963 return NULL;
6964 }
6965 }
6966 {
6967 wxPy_BEGIN_ALLOW_THREADS;
6968 wxTreeCtrl_SetImageList(_arg0,_arg1);
6969
6970 wxPy_END_ALLOW_THREADS;
6971 if (PyErr_Occurred()) return NULL;
6972 } Py_INCREF(Py_None);
6973 _resultobj = Py_None;
6974 return _resultobj;
6975 }
6976
6977 #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0))
6978 static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6979 PyObject * _resultobj;
6980 wxPyTreeCtrl * _arg0;
6981 wxImageList * _arg1;
6982 PyObject * _argo0 = 0;
6983 PyObject * _argo1 = 0;
6984 char *_kwnames[] = { "self","imageList", NULL };
6985
6986 self = self;
6987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1))
6988 return NULL;
6989 if (_argo0) {
6990 if (_argo0 == Py_None) { _arg0 = NULL; }
6991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p.");
6993 return NULL;
6994 }
6995 }
6996 if (_argo1) {
6997 if (_argo1 == Py_None) { _arg1 = NULL; }
6998 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6999 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p.");
7000 return NULL;
7001 }
7002 }
7003 {
7004 wxPy_BEGIN_ALLOW_THREADS;
7005 wxTreeCtrl_SetStateImageList(_arg0,_arg1);
7006
7007 wxPy_END_ALLOW_THREADS;
7008 if (PyErr_Occurred()) return NULL;
7009 } Py_INCREF(Py_None);
7010 _resultobj = Py_None;
7011 return _resultobj;
7012 }
7013
7014 #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
7015 static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
7016 PyObject * _resultobj;
7017 wxPyTreeCtrl * _arg0;
7018 wxImageList * _arg1;
7019 PyObject * _argo0 = 0;
7020 PyObject * _argo1 = 0;
7021 char *_kwnames[] = { "self","imageList", NULL };
7022
7023 self = self;
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1))
7025 return NULL;
7026 if (_argo0) {
7027 if (_argo0 == Py_None) { _arg0 = NULL; }
7028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p.");
7030 return NULL;
7031 }
7032 }
7033 if (_argo1) {
7034 if (_argo1 == Py_None) { _arg1 = NULL; }
7035 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
7036 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p.");
7037 return NULL;
7038 }
7039 }
7040 {
7041 wxPy_BEGIN_ALLOW_THREADS;
7042 wxTreeCtrl_AssignImageList(_arg0,_arg1);
7043
7044 wxPy_END_ALLOW_THREADS;
7045 if (PyErr_Occurred()) return NULL;
7046 } Py_INCREF(Py_None);
7047 _resultobj = Py_None;
7048 return _resultobj;
7049 }
7050
7051 #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0))
7052 static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
7053 PyObject * _resultobj;
7054 wxPyTreeCtrl * _arg0;
7055 wxImageList * _arg1;
7056 PyObject * _argo0 = 0;
7057 PyObject * _argo1 = 0;
7058 char *_kwnames[] = { "self","imageList", NULL };
7059
7060 self = self;
7061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1))
7062 return NULL;
7063 if (_argo0) {
7064 if (_argo0 == Py_None) { _arg0 = NULL; }
7065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p.");
7067 return NULL;
7068 }
7069 }
7070 if (_argo1) {
7071 if (_argo1 == Py_None) { _arg1 = NULL; }
7072 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
7073 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p.");
7074 return NULL;
7075 }
7076 }
7077 {
7078 wxPy_BEGIN_ALLOW_THREADS;
7079 wxTreeCtrl_AssignStateImageList(_arg0,_arg1);
7080
7081 wxPy_END_ALLOW_THREADS;
7082 if (PyErr_Occurred()) return NULL;
7083 } Py_INCREF(Py_None);
7084 _resultobj = Py_None;
7085 return _resultobj;
7086 }
7087
7088 #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing())
7089 static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
7090 PyObject * _resultobj;
7091 unsigned int _result;
7092 wxPyTreeCtrl * _arg0;
7093 PyObject * _argo0 = 0;
7094 char *_kwnames[] = { "self", NULL };
7095
7096 self = self;
7097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0))
7098 return NULL;
7099 if (_argo0) {
7100 if (_argo0 == Py_None) { _arg0 = NULL; }
7101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p.");
7103 return NULL;
7104 }
7105 }
7106 {
7107 wxPy_BEGIN_ALLOW_THREADS;
7108 _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0);
7109
7110 wxPy_END_ALLOW_THREADS;
7111 if (PyErr_Occurred()) return NULL;
7112 } _resultobj = Py_BuildValue("i",_result);
7113 return _resultobj;
7114 }
7115
7116 #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0))
7117 static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
7118 PyObject * _resultobj;
7119 wxPyTreeCtrl * _arg0;
7120 unsigned int _arg1;
7121 PyObject * _argo0 = 0;
7122 char *_kwnames[] = { "self","spacing", NULL };
7123
7124 self = self;
7125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1))
7126 return NULL;
7127 if (_argo0) {
7128 if (_argo0 == Py_None) { _arg0 = NULL; }
7129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p.");
7131 return NULL;
7132 }
7133 }
7134 {
7135 wxPy_BEGIN_ALLOW_THREADS;
7136 wxTreeCtrl_SetSpacing(_arg0,_arg1);
7137
7138 wxPy_END_ALLOW_THREADS;
7139 if (PyErr_Occurred()) return NULL;
7140 } Py_INCREF(Py_None);
7141 _resultobj = Py_None;
7142 return _resultobj;
7143 }
7144
7145 #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
7146 static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
7147 PyObject * _resultobj;
7148 wxString * _result;
7149 wxPyTreeCtrl * _arg0;
7150 wxTreeItemId * _arg1;
7151 PyObject * _argo0 = 0;
7152 PyObject * _argo1 = 0;
7153 char *_kwnames[] = { "self","item", NULL };
7154
7155 self = self;
7156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1))
7157 return NULL;
7158 if (_argo0) {
7159 if (_argo0 == Py_None) { _arg0 = NULL; }
7160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p.");
7162 return NULL;
7163 }
7164 }
7165 if (_argo1) {
7166 if (_argo1 == Py_None) { _arg1 = NULL; }
7167 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7168 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p.");
7169 return NULL;
7170 }
7171 }
7172 {
7173 wxPy_BEGIN_ALLOW_THREADS;
7174 _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1));
7175
7176 wxPy_END_ALLOW_THREADS;
7177 if (PyErr_Occurred()) return NULL;
7178 }{
7179 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7180 }
7181 {
7182 delete _result;
7183 }
7184 return _resultobj;
7185 }
7186
7187 #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1))
7188 static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7189 PyObject * _resultobj;
7190 int _result;
7191 wxPyTreeCtrl * _arg0;
7192 wxTreeItemId * _arg1;
7193 wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
7194 PyObject * _argo0 = 0;
7195 PyObject * _argo1 = 0;
7196 char *_kwnames[] = { "self","item","which", NULL };
7197
7198 self = self;
7199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2))
7200 return NULL;
7201 if (_argo0) {
7202 if (_argo0 == Py_None) { _arg0 = NULL; }
7203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p.");
7205 return NULL;
7206 }
7207 }
7208 if (_argo1) {
7209 if (_argo1 == Py_None) { _arg1 = NULL; }
7210 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7211 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p.");
7212 return NULL;
7213 }
7214 }
7215 {
7216 wxPy_BEGIN_ALLOW_THREADS;
7217 _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2);
7218
7219 wxPy_END_ALLOW_THREADS;
7220 if (PyErr_Occurred()) return NULL;
7221 } _resultobj = Py_BuildValue("i",_result);
7222 return _resultobj;
7223 }
7224
7225 #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0))
7226 static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7227 PyObject * _resultobj;
7228 int _result;
7229 wxPyTreeCtrl * _arg0;
7230 wxTreeItemId * _arg1;
7231 PyObject * _argo0 = 0;
7232 PyObject * _argo1 = 0;
7233 char *_kwnames[] = { "self","item", NULL };
7234
7235 self = self;
7236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1))
7237 return NULL;
7238 if (_argo0) {
7239 if (_argo0 == Py_None) { _arg0 = NULL; }
7240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
7242 return NULL;
7243 }
7244 }
7245 if (_argo1) {
7246 if (_argo1 == Py_None) { _arg1 = NULL; }
7247 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7248 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p.");
7249 return NULL;
7250 }
7251 }
7252 {
7253 wxPy_BEGIN_ALLOW_THREADS;
7254 _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1);
7255
7256 wxPy_END_ALLOW_THREADS;
7257 if (PyErr_Occurred()) return NULL;
7258 } _resultobj = Py_BuildValue("i",_result);
7259 return _resultobj;
7260 }
7261
7262 #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
7263 static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
7264 PyObject * _resultobj;
7265 wxPyTreeCtrl * _arg0;
7266 wxTreeItemId * _arg1;
7267 wxString * _arg2;
7268 PyObject * _argo0 = 0;
7269 PyObject * _argo1 = 0;
7270 PyObject * _obj2 = 0;
7271 char *_kwnames[] = { "self","item","text", NULL };
7272
7273 self = self;
7274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2))
7275 return NULL;
7276 if (_argo0) {
7277 if (_argo0 == Py_None) { _arg0 = NULL; }
7278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p.");
7280 return NULL;
7281 }
7282 }
7283 if (_argo1) {
7284 if (_argo1 == Py_None) { _arg1 = NULL; }
7285 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7286 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p.");
7287 return NULL;
7288 }
7289 }
7290 {
7291 #if PYTHON_API_VERSION >= 1009
7292 char* tmpPtr; int tmpSize;
7293 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7294 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7295 return NULL;
7296 }
7297 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7298 return NULL;
7299 _arg2 = new wxString(tmpPtr, tmpSize);
7300 #else
7301 if (!PyString_Check(_obj2)) {
7302 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7303 return NULL;
7304 }
7305 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7306 #endif
7307 }
7308 {
7309 wxPy_BEGIN_ALLOW_THREADS;
7310 wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2);
7311
7312 wxPy_END_ALLOW_THREADS;
7313 if (PyErr_Occurred()) return NULL;
7314 } Py_INCREF(Py_None);
7315 _resultobj = Py_None;
7316 {
7317 if (_obj2)
7318 delete _arg2;
7319 }
7320 return _resultobj;
7321 }
7322
7323 #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
7324 static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7325 PyObject * _resultobj;
7326 wxPyTreeCtrl * _arg0;
7327 wxTreeItemId * _arg1;
7328 int _arg2;
7329 wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
7330 PyObject * _argo0 = 0;
7331 PyObject * _argo1 = 0;
7332 char *_kwnames[] = { "self","item","image","which", NULL };
7333
7334 self = self;
7335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
7336 return NULL;
7337 if (_argo0) {
7338 if (_argo0 == Py_None) { _arg0 = NULL; }
7339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p.");
7341 return NULL;
7342 }
7343 }
7344 if (_argo1) {
7345 if (_argo1 == Py_None) { _arg1 = NULL; }
7346 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7347 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p.");
7348 return NULL;
7349 }
7350 }
7351 {
7352 wxPy_BEGIN_ALLOW_THREADS;
7353 wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3);
7354
7355 wxPy_END_ALLOW_THREADS;
7356 if (PyErr_Occurred()) return NULL;
7357 } Py_INCREF(Py_None);
7358 _resultobj = Py_None;
7359 return _resultobj;
7360 }
7361
7362 #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1))
7363 static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7364 PyObject * _resultobj;
7365 wxPyTreeCtrl * _arg0;
7366 wxTreeItemId * _arg1;
7367 int _arg2;
7368 PyObject * _argo0 = 0;
7369 PyObject * _argo1 = 0;
7370 char *_kwnames[] = { "self","item","image", NULL };
7371
7372 self = self;
7373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2))
7374 return NULL;
7375 if (_argo0) {
7376 if (_argo0 == Py_None) { _arg0 = NULL; }
7377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
7379 return NULL;
7380 }
7381 }
7382 if (_argo1) {
7383 if (_argo1 == Py_None) { _arg1 = NULL; }
7384 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7385 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p.");
7386 return NULL;
7387 }
7388 }
7389 {
7390 wxPy_BEGIN_ALLOW_THREADS;
7391 wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2);
7392
7393 wxPy_END_ALLOW_THREADS;
7394 if (PyErr_Occurred()) return NULL;
7395 } Py_INCREF(Py_None);
7396 _resultobj = Py_None;
7397 return _resultobj;
7398 }
7399
7400 #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1))
7401 static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
7402 PyObject * _resultobj;
7403 wxPyTreeCtrl * _arg0;
7404 wxTreeItemId * _arg1;
7405 bool _arg2 = (bool ) TRUE;
7406 PyObject * _argo0 = 0;
7407 PyObject * _argo1 = 0;
7408 int tempbool2 = (int) TRUE;
7409 char *_kwnames[] = { "self","item","hasChildren", NULL };
7410
7411 self = self;
7412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2))
7413 return NULL;
7414 if (_argo0) {
7415 if (_argo0 == Py_None) { _arg0 = NULL; }
7416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p.");
7418 return NULL;
7419 }
7420 }
7421 if (_argo1) {
7422 if (_argo1 == Py_None) { _arg1 = NULL; }
7423 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7424 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p.");
7425 return NULL;
7426 }
7427 }
7428 _arg2 = (bool ) tempbool2;
7429 {
7430 wxPy_BEGIN_ALLOW_THREADS;
7431 wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2);
7432
7433 wxPy_END_ALLOW_THREADS;
7434 if (PyErr_Occurred()) return NULL;
7435 } Py_INCREF(Py_None);
7436 _resultobj = Py_None;
7437 return _resultobj;
7438 }
7439
7440 static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
7441 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7442 if (data == NULL) {
7443 data = new wxPyTreeItemData();
7444 data->SetId(item); // set the id
7445 self->SetItemData(item, data);
7446 }
7447 return data;
7448 }
7449 static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
7450 PyObject * _resultobj;
7451 wxPyTreeItemData * _result;
7452 wxPyTreeCtrl * _arg0;
7453 wxTreeItemId * _arg1;
7454 PyObject * _argo0 = 0;
7455 PyObject * _argo1 = 0;
7456 char *_kwnames[] = { "self","item", NULL };
7457 char _ptemp[128];
7458
7459 self = self;
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1))
7461 return NULL;
7462 if (_argo0) {
7463 if (_argo0 == Py_None) { _arg0 = NULL; }
7464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p.");
7466 return NULL;
7467 }
7468 }
7469 if (_argo1) {
7470 if (_argo1 == Py_None) { _arg1 = NULL; }
7471 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7472 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p.");
7473 return NULL;
7474 }
7475 }
7476 {
7477 wxPy_BEGIN_ALLOW_THREADS;
7478 _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1);
7479
7480 wxPy_END_ALLOW_THREADS;
7481 if (PyErr_Occurred()) return NULL;
7482 } if (_result) {
7483 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
7484 _resultobj = Py_BuildValue("s",_ptemp);
7485 } else {
7486 Py_INCREF(Py_None);
7487 _resultobj = Py_None;
7488 }
7489 return _resultobj;
7490 }
7491
7492 static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) {
7493 data->SetId(item); // set the id
7494 self->SetItemData(item, data);
7495 }
7496 static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
7497 PyObject * _resultobj;
7498 wxPyTreeCtrl * _arg0;
7499 wxTreeItemId * _arg1;
7500 wxPyTreeItemData * _arg2;
7501 PyObject * _argo0 = 0;
7502 PyObject * _argo1 = 0;
7503 PyObject * _argo2 = 0;
7504 char *_kwnames[] = { "self","item","data", NULL };
7505
7506 self = self;
7507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2))
7508 return NULL;
7509 if (_argo0) {
7510 if (_argo0 == Py_None) { _arg0 = NULL; }
7511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p.");
7513 return NULL;
7514 }
7515 }
7516 if (_argo1) {
7517 if (_argo1 == Py_None) { _arg1 = NULL; }
7518 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7519 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p.");
7520 return NULL;
7521 }
7522 }
7523 if (_argo2) {
7524 if (_argo2 == Py_None) { _arg2 = NULL; }
7525 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) {
7526 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p.");
7527 return NULL;
7528 }
7529 }
7530 {
7531 wxPy_BEGIN_ALLOW_THREADS;
7532 wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2);
7533
7534 wxPy_END_ALLOW_THREADS;
7535 if (PyErr_Occurred()) return NULL;
7536 } Py_INCREF(Py_None);
7537 _resultobj = Py_None;
7538 return _resultobj;
7539 }
7540
7541 static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
7542 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7543 if (data == NULL) {
7544 data = new wxPyTreeItemData();
7545 data->SetId(item); // set the id
7546 self->SetItemData(item, data);
7547 }
7548 return data->GetData();
7549 }
7550 static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
7551 PyObject * _resultobj;
7552 PyObject * _result;
7553 wxPyTreeCtrl * _arg0;
7554 wxTreeItemId * _arg1;
7555 PyObject * _argo0 = 0;
7556 PyObject * _argo1 = 0;
7557 char *_kwnames[] = { "self","item", NULL };
7558
7559 self = self;
7560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1))
7561 return NULL;
7562 if (_argo0) {
7563 if (_argo0 == Py_None) { _arg0 = NULL; }
7564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p.");
7566 return NULL;
7567 }
7568 }
7569 if (_argo1) {
7570 if (_argo1 == Py_None) { _arg1 = NULL; }
7571 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7572 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p.");
7573 return NULL;
7574 }
7575 }
7576 {
7577 wxPy_BEGIN_ALLOW_THREADS;
7578 _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1);
7579
7580 wxPy_END_ALLOW_THREADS;
7581 if (PyErr_Occurred()) return NULL;
7582 }{
7583 _resultobj = _result;
7584 }
7585 return _resultobj;
7586 }
7587
7588 static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) {
7589 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7590 if (data == NULL) {
7591 data = new wxPyTreeItemData(obj);
7592 data->SetId(item); // set the id
7593 self->SetItemData(item, data);
7594 } else
7595 data->SetData(obj);
7596 }
7597 static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
7598 PyObject * _resultobj;
7599 wxPyTreeCtrl * _arg0;
7600 wxTreeItemId * _arg1;
7601 PyObject * _arg2;
7602 PyObject * _argo0 = 0;
7603 PyObject * _argo1 = 0;
7604 PyObject * _obj2 = 0;
7605 char *_kwnames[] = { "self","item","obj", NULL };
7606
7607 self = self;
7608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2))
7609 return NULL;
7610 if (_argo0) {
7611 if (_argo0 == Py_None) { _arg0 = NULL; }
7612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p.");
7614 return NULL;
7615 }
7616 }
7617 if (_argo1) {
7618 if (_argo1 == Py_None) { _arg1 = NULL; }
7619 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7620 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p.");
7621 return NULL;
7622 }
7623 }
7624 {
7625 _arg2 = _obj2;
7626 }
7627 {
7628 wxPy_BEGIN_ALLOW_THREADS;
7629 wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2);
7630
7631 wxPy_END_ALLOW_THREADS;
7632 if (PyErr_Occurred()) return NULL;
7633 } Py_INCREF(Py_None);
7634 _resultobj = Py_None;
7635 return _resultobj;
7636 }
7637
7638 #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0))
7639 static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
7640 PyObject * _resultobj;
7641 bool _result;
7642 wxPyTreeCtrl * _arg0;
7643 wxTreeItemId * _arg1;
7644 PyObject * _argo0 = 0;
7645 PyObject * _argo1 = 0;
7646 char *_kwnames[] = { "self","item", NULL };
7647
7648 self = self;
7649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1))
7650 return NULL;
7651 if (_argo0) {
7652 if (_argo0 == Py_None) { _arg0 = NULL; }
7653 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7654 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p.");
7655 return NULL;
7656 }
7657 }
7658 if (_argo1) {
7659 if (_argo1 == Py_None) { _arg1 = NULL; }
7660 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7661 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p.");
7662 return NULL;
7663 }
7664 }
7665 {
7666 wxPy_BEGIN_ALLOW_THREADS;
7667 _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1);
7668
7669 wxPy_END_ALLOW_THREADS;
7670 if (PyErr_Occurred()) return NULL;
7671 } _resultobj = Py_BuildValue("i",_result);
7672 return _resultobj;
7673 }
7674
7675 #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0))
7676 static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
7677 PyObject * _resultobj;
7678 bool _result;
7679 wxPyTreeCtrl * _arg0;
7680 wxTreeItemId * _arg1;
7681 PyObject * _argo0 = 0;
7682 PyObject * _argo1 = 0;
7683 char *_kwnames[] = { "self","item", NULL };
7684
7685 self = self;
7686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1))
7687 return NULL;
7688 if (_argo0) {
7689 if (_argo0 == Py_None) { _arg0 = NULL; }
7690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p.");
7692 return NULL;
7693 }
7694 }
7695 if (_argo1) {
7696 if (_argo1 == Py_None) { _arg1 = NULL; }
7697 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7698 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p.");
7699 return NULL;
7700 }
7701 }
7702 {
7703 wxPy_BEGIN_ALLOW_THREADS;
7704 _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1);
7705
7706 wxPy_END_ALLOW_THREADS;
7707 if (PyErr_Occurred()) return NULL;
7708 } _resultobj = Py_BuildValue("i",_result);
7709 return _resultobj;
7710 }
7711
7712 #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0))
7713 static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
7714 PyObject * _resultobj;
7715 bool _result;
7716 wxPyTreeCtrl * _arg0;
7717 wxTreeItemId * _arg1;
7718 PyObject * _argo0 = 0;
7719 PyObject * _argo1 = 0;
7720 char *_kwnames[] = { "self","item", NULL };
7721
7722 self = self;
7723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1))
7724 return NULL;
7725 if (_argo0) {
7726 if (_argo0 == Py_None) { _arg0 = NULL; }
7727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p.");
7729 return NULL;
7730 }
7731 }
7732 if (_argo1) {
7733 if (_argo1 == Py_None) { _arg1 = NULL; }
7734 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7735 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p.");
7736 return NULL;
7737 }
7738 }
7739 {
7740 wxPy_BEGIN_ALLOW_THREADS;
7741 _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1);
7742
7743 wxPy_END_ALLOW_THREADS;
7744 if (PyErr_Occurred()) return NULL;
7745 } _resultobj = Py_BuildValue("i",_result);
7746 return _resultobj;
7747 }
7748
7749 #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
7750 static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
7751 PyObject * _resultobj;
7752 bool _result;
7753 wxPyTreeCtrl * _arg0;
7754 wxTreeItemId * _arg1;
7755 PyObject * _argo0 = 0;
7756 PyObject * _argo1 = 0;
7757 char *_kwnames[] = { "self","item", NULL };
7758
7759 self = self;
7760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1))
7761 return NULL;
7762 if (_argo0) {
7763 if (_argo0 == Py_None) { _arg0 = NULL; }
7764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p.");
7766 return NULL;
7767 }
7768 }
7769 if (_argo1) {
7770 if (_argo1 == Py_None) { _arg1 = NULL; }
7771 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7772 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p.");
7773 return NULL;
7774 }
7775 }
7776 {
7777 wxPy_BEGIN_ALLOW_THREADS;
7778 _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1);
7779
7780 wxPy_END_ALLOW_THREADS;
7781 if (PyErr_Occurred()) return NULL;
7782 } _resultobj = Py_BuildValue("i",_result);
7783 return _resultobj;
7784 }
7785
7786 #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem())
7787 static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7788 PyObject * _resultobj;
7789 wxTreeItemId * _result;
7790 wxPyTreeCtrl * _arg0;
7791 PyObject * _argo0 = 0;
7792 char *_kwnames[] = { "self", NULL };
7793 char _ptemp[128];
7794
7795 self = self;
7796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0))
7797 return NULL;
7798 if (_argo0) {
7799 if (_argo0 == Py_None) { _arg0 = NULL; }
7800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p.");
7802 return NULL;
7803 }
7804 }
7805 {
7806 wxPy_BEGIN_ALLOW_THREADS;
7807 _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0));
7808
7809 wxPy_END_ALLOW_THREADS;
7810 if (PyErr_Occurred()) return NULL;
7811 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7812 _resultobj = Py_BuildValue("s",_ptemp);
7813 return _resultobj;
7814 }
7815
7816 #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection())
7817 static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7818 PyObject * _resultobj;
7819 wxTreeItemId * _result;
7820 wxPyTreeCtrl * _arg0;
7821 PyObject * _argo0 = 0;
7822 char *_kwnames[] = { "self", NULL };
7823 char _ptemp[128];
7824
7825 self = self;
7826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0))
7827 return NULL;
7828 if (_argo0) {
7829 if (_argo0 == Py_None) { _arg0 = NULL; }
7830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p.");
7832 return NULL;
7833 }
7834 }
7835 {
7836 wxPy_BEGIN_ALLOW_THREADS;
7837 _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0));
7838
7839 wxPy_END_ALLOW_THREADS;
7840 if (PyErr_Occurred()) return NULL;
7841 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7842 _resultobj = Py_BuildValue("s",_ptemp);
7843 return _resultobj;
7844 }
7845
7846 #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0))
7847 static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7848 PyObject * _resultobj;
7849 wxTreeItemId * _result;
7850 wxPyTreeCtrl * _arg0;
7851 wxTreeItemId * _arg1;
7852 PyObject * _argo0 = 0;
7853 PyObject * _argo1 = 0;
7854 char *_kwnames[] = { "self","item", NULL };
7855 char _ptemp[128];
7856
7857 self = self;
7858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1))
7859 return NULL;
7860 if (_argo0) {
7861 if (_argo0 == Py_None) { _arg0 = NULL; }
7862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p.");
7864 return NULL;
7865 }
7866 }
7867 if (_argo1) {
7868 if (_argo1 == Py_None) { _arg1 = NULL; }
7869 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7870 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p.");
7871 return NULL;
7872 }
7873 }
7874 {
7875 wxPy_BEGIN_ALLOW_THREADS;
7876 _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1));
7877
7878 wxPy_END_ALLOW_THREADS;
7879 if (PyErr_Occurred()) return NULL;
7880 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7881 _resultobj = Py_BuildValue("s",_ptemp);
7882 return _resultobj;
7883 }
7884
7885 static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) {
7886 wxPyTState* state = wxPyBeginBlockThreads();
7887 PyObject* rval = PyList_New(0);
7888 wxArrayTreeItemIds array;
7889 size_t num, x;
7890 num = self->GetSelections(array);
7891 for (x=0; x < num; x++) {
7892 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
7893 PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE);
7894 PyList_Append(rval, item);
7895 }
7896 wxPyEndBlockThreads(state);
7897 return rval;
7898 }
7899 static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
7900 PyObject * _resultobj;
7901 PyObject * _result;
7902 wxPyTreeCtrl * _arg0;
7903 PyObject * _argo0 = 0;
7904 char *_kwnames[] = { "self", NULL };
7905
7906 self = self;
7907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0))
7908 return NULL;
7909 if (_argo0) {
7910 if (_argo0 == Py_None) { _arg0 = NULL; }
7911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p.");
7913 return NULL;
7914 }
7915 }
7916 {
7917 wxPy_BEGIN_ALLOW_THREADS;
7918 _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0);
7919
7920 wxPy_END_ALLOW_THREADS;
7921 if (PyErr_Occurred()) return NULL;
7922 }{
7923 _resultobj = _result;
7924 }
7925 return _resultobj;
7926 }
7927
7928 #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1))
7929 static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7930 PyObject * _resultobj;
7931 size_t _result;
7932 wxPyTreeCtrl * _arg0;
7933 wxTreeItemId * _arg1;
7934 bool _arg2 = (bool ) TRUE;
7935 PyObject * _argo0 = 0;
7936 PyObject * _argo1 = 0;
7937 int tempbool2 = (int) TRUE;
7938 char *_kwnames[] = { "self","item","recursively", NULL };
7939
7940 self = self;
7941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2))
7942 return NULL;
7943 if (_argo0) {
7944 if (_argo0 == Py_None) { _arg0 = NULL; }
7945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p.");
7947 return NULL;
7948 }
7949 }
7950 if (_argo1) {
7951 if (_argo1 == Py_None) { _arg1 = NULL; }
7952 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7953 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p.");
7954 return NULL;
7955 }
7956 }
7957 _arg2 = (bool ) tempbool2;
7958 {
7959 wxPy_BEGIN_ALLOW_THREADS;
7960 _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2);
7961
7962 wxPy_END_ALLOW_THREADS;
7963 if (PyErr_Occurred()) return NULL;
7964 } _resultobj = Py_BuildValue("i",_result);
7965 return _resultobj;
7966 }
7967
7968 #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1))
7969 static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
7970 PyObject * _resultobj;
7971 wxTreeItemId * _result;
7972 wxPyTreeCtrl * _arg0;
7973 wxTreeItemId * _arg1;
7974 long * _arg2;
7975 PyObject * _argo0 = 0;
7976 PyObject * _argo1 = 0;
7977 long temp;
7978 PyObject * _obj2 = 0;
7979 char *_kwnames[] = { "self","item","INOUT", NULL };
7980 char _ptemp[128];
7981
7982 self = self;
7983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2))
7984 return NULL;
7985 if (_argo0) {
7986 if (_argo0 == Py_None) { _arg0 = NULL; }
7987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p.");
7989 return NULL;
7990 }
7991 }
7992 if (_argo1) {
7993 if (_argo1 == Py_None) { _arg1 = NULL; }
7994 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7995 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p.");
7996 return NULL;
7997 }
7998 }
7999 {
8000 temp = (long) PyInt_AsLong(_obj2);
8001 _arg2 = &temp;
8002 }
8003 {
8004 wxPy_BEGIN_ALLOW_THREADS;
8005 _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2));
8006
8007 wxPy_END_ALLOW_THREADS;
8008 if (PyErr_Occurred()) return NULL;
8009 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8010 _resultobj = Py_BuildValue("s",_ptemp);
8011 {
8012 PyObject *o;
8013 o = PyInt_FromLong((long) (*_arg2));
8014 _resultobj = t_output_helper(_resultobj, o);
8015 }
8016 return _resultobj;
8017 }
8018
8019 #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1))
8020 static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
8021 PyObject * _resultobj;
8022 wxTreeItemId * _result;
8023 wxPyTreeCtrl * _arg0;
8024 wxTreeItemId * _arg1;
8025 long * _arg2;
8026 PyObject * _argo0 = 0;
8027 PyObject * _argo1 = 0;
8028 long temp;
8029 PyObject * _obj2 = 0;
8030 char *_kwnames[] = { "self","item","INOUT", NULL };
8031 char _ptemp[128];
8032
8033 self = self;
8034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2))
8035 return NULL;
8036 if (_argo0) {
8037 if (_argo0 == Py_None) { _arg0 = NULL; }
8038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p.");
8040 return NULL;
8041 }
8042 }
8043 if (_argo1) {
8044 if (_argo1 == Py_None) { _arg1 = NULL; }
8045 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8046 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p.");
8047 return NULL;
8048 }
8049 }
8050 {
8051 temp = (long) PyInt_AsLong(_obj2);
8052 _arg2 = &temp;
8053 }
8054 {
8055 wxPy_BEGIN_ALLOW_THREADS;
8056 _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2));
8057
8058 wxPy_END_ALLOW_THREADS;
8059 if (PyErr_Occurred()) return NULL;
8060 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8061 _resultobj = Py_BuildValue("s",_ptemp);
8062 {
8063 PyObject *o;
8064 o = PyInt_FromLong((long) (*_arg2));
8065 _resultobj = t_output_helper(_resultobj, o);
8066 }
8067 return _resultobj;
8068 }
8069
8070 #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0))
8071 static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
8072 PyObject * _resultobj;
8073 wxTreeItemId * _result;
8074 wxPyTreeCtrl * _arg0;
8075 wxTreeItemId * _arg1;
8076 PyObject * _argo0 = 0;
8077 PyObject * _argo1 = 0;
8078 char *_kwnames[] = { "self","item", NULL };
8079 char _ptemp[128];
8080
8081 self = self;
8082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1))
8083 return NULL;
8084 if (_argo0) {
8085 if (_argo0 == Py_None) { _arg0 = NULL; }
8086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p.");
8088 return NULL;
8089 }
8090 }
8091 if (_argo1) {
8092 if (_argo1 == Py_None) { _arg1 = NULL; }
8093 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8094 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p.");
8095 return NULL;
8096 }
8097 }
8098 {
8099 wxPy_BEGIN_ALLOW_THREADS;
8100 _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1));
8101
8102 wxPy_END_ALLOW_THREADS;
8103 if (PyErr_Occurred()) return NULL;
8104 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8105 _resultobj = Py_BuildValue("s",_ptemp);
8106 return _resultobj;
8107 }
8108
8109 #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0))
8110 static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
8111 PyObject * _resultobj;
8112 wxTreeItemId * _result;
8113 wxPyTreeCtrl * _arg0;
8114 wxTreeItemId * _arg1;
8115 PyObject * _argo0 = 0;
8116 PyObject * _argo1 = 0;
8117 char *_kwnames[] = { "self","item", NULL };
8118 char _ptemp[128];
8119
8120 self = self;
8121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1))
8122 return NULL;
8123 if (_argo0) {
8124 if (_argo0 == Py_None) { _arg0 = NULL; }
8125 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8126 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p.");
8127 return NULL;
8128 }
8129 }
8130 if (_argo1) {
8131 if (_argo1 == Py_None) { _arg1 = NULL; }
8132 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8133 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p.");
8134 return NULL;
8135 }
8136 }
8137 {
8138 wxPy_BEGIN_ALLOW_THREADS;
8139 _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1));
8140
8141 wxPy_END_ALLOW_THREADS;
8142 if (PyErr_Occurred()) return NULL;
8143 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8144 _resultobj = Py_BuildValue("s",_ptemp);
8145 return _resultobj;
8146 }
8147
8148 #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem())
8149 static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8150 PyObject * _resultobj;
8151 wxTreeItemId * _result;
8152 wxPyTreeCtrl * _arg0;
8153 PyObject * _argo0 = 0;
8154 char *_kwnames[] = { "self", NULL };
8155 char _ptemp[128];
8156
8157 self = self;
8158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0))
8159 return NULL;
8160 if (_argo0) {
8161 if (_argo0 == Py_None) { _arg0 = NULL; }
8162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p.");
8164 return NULL;
8165 }
8166 }
8167 {
8168 wxPy_BEGIN_ALLOW_THREADS;
8169 _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0));
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 return _resultobj;
8176 }
8177
8178 #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0))
8179 static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8180 PyObject * _resultobj;
8181 wxTreeItemId * _result;
8182 wxPyTreeCtrl * _arg0;
8183 wxTreeItemId * _arg1;
8184 PyObject * _argo0 = 0;
8185 PyObject * _argo1 = 0;
8186 char *_kwnames[] = { "self","item", NULL };
8187 char _ptemp[128];
8188
8189 self = self;
8190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1))
8191 return NULL;
8192 if (_argo0) {
8193 if (_argo0 == Py_None) { _arg0 = NULL; }
8194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p.");
8196 return NULL;
8197 }
8198 }
8199 if (_argo1) {
8200 if (_argo1 == Py_None) { _arg1 = NULL; }
8201 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8202 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p.");
8203 return NULL;
8204 }
8205 }
8206 {
8207 wxPy_BEGIN_ALLOW_THREADS;
8208 _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1));
8209
8210 wxPy_END_ALLOW_THREADS;
8211 if (PyErr_Occurred()) return NULL;
8212 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8213 _resultobj = Py_BuildValue("s",_ptemp);
8214 return _resultobj;
8215 }
8216
8217 #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0))
8218 static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8219 PyObject * _resultobj;
8220 wxTreeItemId * _result;
8221 wxPyTreeCtrl * _arg0;
8222 wxTreeItemId * _arg1;
8223 PyObject * _argo0 = 0;
8224 PyObject * _argo1 = 0;
8225 char *_kwnames[] = { "self","item", NULL };
8226 char _ptemp[128];
8227
8228 self = self;
8229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1))
8230 return NULL;
8231 if (_argo0) {
8232 if (_argo0 == Py_None) { _arg0 = NULL; }
8233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p.");
8235 return NULL;
8236 }
8237 }
8238 if (_argo1) {
8239 if (_argo1 == Py_None) { _arg1 = NULL; }
8240 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8241 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p.");
8242 return NULL;
8243 }
8244 }
8245 {
8246 wxPy_BEGIN_ALLOW_THREADS;
8247 _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1));
8248
8249 wxPy_END_ALLOW_THREADS;
8250 if (PyErr_Occurred()) return NULL;
8251 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8252 _resultobj = Py_BuildValue("s",_ptemp);
8253 return _resultobj;
8254 }
8255
8256 #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0))
8257 static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
8258 PyObject * _resultobj;
8259 wxTreeItemId * _result;
8260 wxPyTreeCtrl * _arg0;
8261 wxTreeItemId * _arg1;
8262 PyObject * _argo0 = 0;
8263 PyObject * _argo1 = 0;
8264 char *_kwnames[] = { "self","item", NULL };
8265 char _ptemp[128];
8266
8267 self = self;
8268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1))
8269 return NULL;
8270 if (_argo0) {
8271 if (_argo0 == Py_None) { _arg0 = NULL; }
8272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p.");
8274 return NULL;
8275 }
8276 }
8277 if (_argo1) {
8278 if (_argo1 == Py_None) { _arg1 = NULL; }
8279 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8280 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p.");
8281 return NULL;
8282 }
8283 }
8284 {
8285 wxPy_BEGIN_ALLOW_THREADS;
8286 _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1));
8287
8288 wxPy_END_ALLOW_THREADS;
8289 if (PyErr_Occurred()) return NULL;
8290 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8291 _resultobj = Py_BuildValue("s",_ptemp);
8292 return _resultobj;
8293 }
8294
8295 #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8296 static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
8297 PyObject * _resultobj;
8298 wxTreeItemId * _result;
8299 wxPyTreeCtrl * _arg0;
8300 wxString * _arg1;
8301 int _arg2 = (int ) -1;
8302 int _arg3 = (int ) -1;
8303 wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL;
8304 PyObject * _argo0 = 0;
8305 PyObject * _obj1 = 0;
8306 PyObject * _argo4 = 0;
8307 char *_kwnames[] = { "self","text","image","selectedImage","data", NULL };
8308 char _ptemp[128];
8309
8310 self = self;
8311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4))
8312 return NULL;
8313 if (_argo0) {
8314 if (_argo0 == Py_None) { _arg0 = NULL; }
8315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p.");
8317 return NULL;
8318 }
8319 }
8320 {
8321 #if PYTHON_API_VERSION >= 1009
8322 char* tmpPtr; int tmpSize;
8323 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8324 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8325 return NULL;
8326 }
8327 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8328 return NULL;
8329 _arg1 = new wxString(tmpPtr, tmpSize);
8330 #else
8331 if (!PyString_Check(_obj1)) {
8332 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8333 return NULL;
8334 }
8335 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8336 #endif
8337 }
8338 if (_argo4) {
8339 if (_argo4 == Py_None) { _arg4 = NULL; }
8340 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) {
8341 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p.");
8342 return NULL;
8343 }
8344 }
8345 {
8346 wxPy_BEGIN_ALLOW_THREADS;
8347 _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4));
8348
8349 wxPy_END_ALLOW_THREADS;
8350 if (PyErr_Occurred()) return NULL;
8351 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8352 _resultobj = Py_BuildValue("s",_ptemp);
8353 {
8354 if (_obj1)
8355 delete _arg1;
8356 }
8357 return _resultobj;
8358 }
8359
8360 #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8361 static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8362 PyObject * _resultobj;
8363 wxTreeItemId * _result;
8364 wxPyTreeCtrl * _arg0;
8365 wxTreeItemId * _arg1;
8366 wxString * _arg2;
8367 int _arg3 = (int ) -1;
8368 int _arg4 = (int ) -1;
8369 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
8370 PyObject * _argo0 = 0;
8371 PyObject * _argo1 = 0;
8372 PyObject * _obj2 = 0;
8373 PyObject * _argo5 = 0;
8374 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
8375 char _ptemp[128];
8376
8377 self = self;
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
8379 return NULL;
8380 if (_argo0) {
8381 if (_argo0 == Py_None) { _arg0 = NULL; }
8382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p.");
8384 return NULL;
8385 }
8386 }
8387 if (_argo1) {
8388 if (_argo1 == Py_None) { _arg1 = NULL; }
8389 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8390 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p.");
8391 return NULL;
8392 }
8393 }
8394 {
8395 #if PYTHON_API_VERSION >= 1009
8396 char* tmpPtr; int tmpSize;
8397 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8398 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8399 return NULL;
8400 }
8401 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8402 return NULL;
8403 _arg2 = new wxString(tmpPtr, tmpSize);
8404 #else
8405 if (!PyString_Check(_obj2)) {
8406 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8407 return NULL;
8408 }
8409 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8410 #endif
8411 }
8412 if (_argo5) {
8413 if (_argo5 == Py_None) { _arg5 = NULL; }
8414 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
8415 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p.");
8416 return NULL;
8417 }
8418 }
8419 {
8420 wxPy_BEGIN_ALLOW_THREADS;
8421 _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
8422
8423 wxPy_END_ALLOW_THREADS;
8424 if (PyErr_Occurred()) return NULL;
8425 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8426 _resultobj = Py_BuildValue("s",_ptemp);
8427 {
8428 if (_obj2)
8429 delete _arg2;
8430 }
8431 return _resultobj;
8432 }
8433
8434 #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8435 static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8436 PyObject * _resultobj;
8437 wxTreeItemId * _result;
8438 wxPyTreeCtrl * _arg0;
8439 wxTreeItemId * _arg1;
8440 wxTreeItemId * _arg2;
8441 wxString * _arg3;
8442 int _arg4 = (int ) -1;
8443 int _arg5 = (int ) -1;
8444 wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
8445 PyObject * _argo0 = 0;
8446 PyObject * _argo1 = 0;
8447 PyObject * _argo2 = 0;
8448 PyObject * _obj3 = 0;
8449 PyObject * _argo6 = 0;
8450 char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL };
8451 char _ptemp[128];
8452
8453 self = self;
8454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6))
8455 return NULL;
8456 if (_argo0) {
8457 if (_argo0 == Py_None) { _arg0 = NULL; }
8458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p.");
8460 return NULL;
8461 }
8462 }
8463 if (_argo1) {
8464 if (_argo1 == Py_None) { _arg1 = NULL; }
8465 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8466 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
8467 return NULL;
8468 }
8469 }
8470 if (_argo2) {
8471 if (_argo2 == Py_None) { _arg2 = NULL; }
8472 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) {
8473 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
8474 return NULL;
8475 }
8476 }
8477 {
8478 #if PYTHON_API_VERSION >= 1009
8479 char* tmpPtr; int tmpSize;
8480 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8481 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8482 return NULL;
8483 }
8484 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8485 return NULL;
8486 _arg3 = new wxString(tmpPtr, tmpSize);
8487 #else
8488 if (!PyString_Check(_obj3)) {
8489 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8490 return NULL;
8491 }
8492 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8493 #endif
8494 }
8495 if (_argo6) {
8496 if (_argo6 == Py_None) { _arg6 = NULL; }
8497 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
8498 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p.");
8499 return NULL;
8500 }
8501 }
8502 {
8503 wxPy_BEGIN_ALLOW_THREADS;
8504 _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6));
8505
8506 wxPy_END_ALLOW_THREADS;
8507 if (PyErr_Occurred()) return NULL;
8508 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8509 _resultobj = Py_BuildValue("s",_ptemp);
8510 {
8511 if (_obj3)
8512 delete _arg3;
8513 }
8514 return _resultobj;
8515 }
8516
8517 #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8518 static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
8519 PyObject * _resultobj;
8520 wxTreeItemId * _result;
8521 wxPyTreeCtrl * _arg0;
8522 wxTreeItemId * _arg1;
8523 size_t _arg2;
8524 wxString * _arg3;
8525 int _arg4 = (int ) -1;
8526 int _arg5 = (int ) -1;
8527 wxTreeItemData * _arg6 = (wxTreeItemData *) NULL;
8528 PyObject * _argo0 = 0;
8529 PyObject * _argo1 = 0;
8530 PyObject * _obj3 = 0;
8531 PyObject * _argo6 = 0;
8532 char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL };
8533 char _ptemp[128];
8534
8535 self = self;
8536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6))
8537 return NULL;
8538 if (_argo0) {
8539 if (_argo0 == Py_None) { _arg0 = NULL; }
8540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p.");
8542 return NULL;
8543 }
8544 }
8545 if (_argo1) {
8546 if (_argo1 == Py_None) { _arg1 = NULL; }
8547 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8548 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p.");
8549 return NULL;
8550 }
8551 }
8552 {
8553 #if PYTHON_API_VERSION >= 1009
8554 char* tmpPtr; int tmpSize;
8555 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8556 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8557 return NULL;
8558 }
8559 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8560 return NULL;
8561 _arg3 = new wxString(tmpPtr, tmpSize);
8562 #else
8563 if (!PyString_Check(_obj3)) {
8564 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8565 return NULL;
8566 }
8567 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8568 #endif
8569 }
8570 if (_argo6) {
8571 if (_argo6 == Py_None) { _arg6 = NULL; }
8572 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) {
8573 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p.");
8574 return NULL;
8575 }
8576 }
8577 {
8578 wxPy_BEGIN_ALLOW_THREADS;
8579 _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6));
8580
8581 wxPy_END_ALLOW_THREADS;
8582 if (PyErr_Occurred()) return NULL;
8583 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8584 _resultobj = Py_BuildValue("s",_ptemp);
8585 {
8586 if (_obj3)
8587 delete _arg3;
8588 }
8589 return _resultobj;
8590 }
8591
8592 #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8593 static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8594 PyObject * _resultobj;
8595 wxTreeItemId * _result;
8596 wxPyTreeCtrl * _arg0;
8597 wxTreeItemId * _arg1;
8598 wxString * _arg2;
8599 int _arg3 = (int ) -1;
8600 int _arg4 = (int ) -1;
8601 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
8602 PyObject * _argo0 = 0;
8603 PyObject * _argo1 = 0;
8604 PyObject * _obj2 = 0;
8605 PyObject * _argo5 = 0;
8606 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
8607 char _ptemp[128];
8608
8609 self = self;
8610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
8611 return NULL;
8612 if (_argo0) {
8613 if (_argo0 == Py_None) { _arg0 = NULL; }
8614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p.");
8616 return NULL;
8617 }
8618 }
8619 if (_argo1) {
8620 if (_argo1 == Py_None) { _arg1 = NULL; }
8621 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8622 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p.");
8623 return NULL;
8624 }
8625 }
8626 {
8627 #if PYTHON_API_VERSION >= 1009
8628 char* tmpPtr; int tmpSize;
8629 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8630 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8631 return NULL;
8632 }
8633 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8634 return NULL;
8635 _arg2 = new wxString(tmpPtr, tmpSize);
8636 #else
8637 if (!PyString_Check(_obj2)) {
8638 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8639 return NULL;
8640 }
8641 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8642 #endif
8643 }
8644 if (_argo5) {
8645 if (_argo5 == Py_None) { _arg5 = NULL; }
8646 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
8647 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p.");
8648 return NULL;
8649 }
8650 }
8651 {
8652 wxPy_BEGIN_ALLOW_THREADS;
8653 _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
8654
8655 wxPy_END_ALLOW_THREADS;
8656 if (PyErr_Occurred()) return NULL;
8657 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8658 _resultobj = Py_BuildValue("s",_ptemp);
8659 {
8660 if (_obj2)
8661 delete _arg2;
8662 }
8663 return _resultobj;
8664 }
8665
8666 #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
8667 static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
8668 PyObject * _resultobj;
8669 wxPyTreeCtrl * _arg0;
8670 wxTreeItemId * _arg1;
8671 PyObject * _argo0 = 0;
8672 PyObject * _argo1 = 0;
8673 char *_kwnames[] = { "self","item", NULL };
8674
8675 self = self;
8676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1))
8677 return NULL;
8678 if (_argo0) {
8679 if (_argo0 == Py_None) { _arg0 = NULL; }
8680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p.");
8682 return NULL;
8683 }
8684 }
8685 if (_argo1) {
8686 if (_argo1 == Py_None) { _arg1 = NULL; }
8687 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8688 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p.");
8689 return NULL;
8690 }
8691 }
8692 {
8693 wxPy_BEGIN_ALLOW_THREADS;
8694 wxTreeCtrl_Delete(_arg0,*_arg1);
8695
8696 wxPy_END_ALLOW_THREADS;
8697 if (PyErr_Occurred()) return NULL;
8698 } Py_INCREF(Py_None);
8699 _resultobj = Py_None;
8700 return _resultobj;
8701 }
8702
8703 #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0))
8704 static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
8705 PyObject * _resultobj;
8706 wxPyTreeCtrl * _arg0;
8707 wxTreeItemId * _arg1;
8708 PyObject * _argo0 = 0;
8709 PyObject * _argo1 = 0;
8710 char *_kwnames[] = { "self","item", NULL };
8711
8712 self = self;
8713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1))
8714 return NULL;
8715 if (_argo0) {
8716 if (_argo0 == Py_None) { _arg0 = NULL; }
8717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p.");
8719 return NULL;
8720 }
8721 }
8722 if (_argo1) {
8723 if (_argo1 == Py_None) { _arg1 = NULL; }
8724 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8725 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p.");
8726 return NULL;
8727 }
8728 }
8729 {
8730 wxPy_BEGIN_ALLOW_THREADS;
8731 wxTreeCtrl_DeleteChildren(_arg0,*_arg1);
8732
8733 wxPy_END_ALLOW_THREADS;
8734 if (PyErr_Occurred()) return NULL;
8735 } Py_INCREF(Py_None);
8736 _resultobj = Py_None;
8737 return _resultobj;
8738 }
8739
8740 #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
8741 static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
8742 PyObject * _resultobj;
8743 wxPyTreeCtrl * _arg0;
8744 PyObject * _argo0 = 0;
8745 char *_kwnames[] = { "self", NULL };
8746
8747 self = self;
8748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0))
8749 return NULL;
8750 if (_argo0) {
8751 if (_argo0 == Py_None) { _arg0 = NULL; }
8752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p.");
8754 return NULL;
8755 }
8756 }
8757 {
8758 wxPy_BEGIN_ALLOW_THREADS;
8759 wxTreeCtrl_DeleteAllItems(_arg0);
8760
8761 wxPy_END_ALLOW_THREADS;
8762 if (PyErr_Occurred()) return NULL;
8763 } Py_INCREF(Py_None);
8764 _resultobj = Py_None;
8765 return _resultobj;
8766 }
8767
8768 #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0))
8769 static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
8770 PyObject * _resultobj;
8771 wxPyTreeCtrl * _arg0;
8772 wxTreeItemId * _arg1;
8773 PyObject * _argo0 = 0;
8774 PyObject * _argo1 = 0;
8775 char *_kwnames[] = { "self","item", NULL };
8776
8777 self = self;
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1))
8779 return NULL;
8780 if (_argo0) {
8781 if (_argo0 == Py_None) { _arg0 = NULL; }
8782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p.");
8784 return NULL;
8785 }
8786 }
8787 if (_argo1) {
8788 if (_argo1 == Py_None) { _arg1 = NULL; }
8789 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8790 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p.");
8791 return NULL;
8792 }
8793 }
8794 {
8795 wxPy_BEGIN_ALLOW_THREADS;
8796 wxTreeCtrl_Expand(_arg0,*_arg1);
8797
8798 wxPy_END_ALLOW_THREADS;
8799 if (PyErr_Occurred()) return NULL;
8800 } Py_INCREF(Py_None);
8801 _resultobj = Py_None;
8802 return _resultobj;
8803 }
8804
8805 #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0))
8806 static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
8807 PyObject * _resultobj;
8808 wxPyTreeCtrl * _arg0;
8809 wxTreeItemId * _arg1;
8810 PyObject * _argo0 = 0;
8811 PyObject * _argo1 = 0;
8812 char *_kwnames[] = { "self","item", NULL };
8813
8814 self = self;
8815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1))
8816 return NULL;
8817 if (_argo0) {
8818 if (_argo0 == Py_None) { _arg0 = NULL; }
8819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p.");
8821 return NULL;
8822 }
8823 }
8824 if (_argo1) {
8825 if (_argo1 == Py_None) { _arg1 = NULL; }
8826 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8827 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p.");
8828 return NULL;
8829 }
8830 }
8831 {
8832 wxPy_BEGIN_ALLOW_THREADS;
8833 wxTreeCtrl_Collapse(_arg0,*_arg1);
8834
8835 wxPy_END_ALLOW_THREADS;
8836 if (PyErr_Occurred()) return NULL;
8837 } Py_INCREF(Py_None);
8838 _resultobj = Py_None;
8839 return _resultobj;
8840 }
8841
8842 #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0))
8843 static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
8844 PyObject * _resultobj;
8845 wxPyTreeCtrl * _arg0;
8846 wxTreeItemId * _arg1;
8847 PyObject * _argo0 = 0;
8848 PyObject * _argo1 = 0;
8849 char *_kwnames[] = { "self","item", NULL };
8850
8851 self = self;
8852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1))
8853 return NULL;
8854 if (_argo0) {
8855 if (_argo0 == Py_None) { _arg0 = NULL; }
8856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p.");
8858 return NULL;
8859 }
8860 }
8861 if (_argo1) {
8862 if (_argo1 == Py_None) { _arg1 = NULL; }
8863 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8864 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p.");
8865 return NULL;
8866 }
8867 }
8868 {
8869 wxPy_BEGIN_ALLOW_THREADS;
8870 wxTreeCtrl_CollapseAndReset(_arg0,*_arg1);
8871
8872 wxPy_END_ALLOW_THREADS;
8873 if (PyErr_Occurred()) return NULL;
8874 } Py_INCREF(Py_None);
8875 _resultobj = Py_None;
8876 return _resultobj;
8877 }
8878
8879 #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
8880 static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
8881 PyObject * _resultobj;
8882 wxPyTreeCtrl * _arg0;
8883 wxTreeItemId * _arg1;
8884 PyObject * _argo0 = 0;
8885 PyObject * _argo1 = 0;
8886 char *_kwnames[] = { "self","item", NULL };
8887
8888 self = self;
8889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1))
8890 return NULL;
8891 if (_argo0) {
8892 if (_argo0 == Py_None) { _arg0 = NULL; }
8893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p.");
8895 return NULL;
8896 }
8897 }
8898 if (_argo1) {
8899 if (_argo1 == Py_None) { _arg1 = NULL; }
8900 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8901 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p.");
8902 return NULL;
8903 }
8904 }
8905 {
8906 wxPy_BEGIN_ALLOW_THREADS;
8907 wxTreeCtrl_Toggle(_arg0,*_arg1);
8908
8909 wxPy_END_ALLOW_THREADS;
8910 if (PyErr_Occurred()) return NULL;
8911 } Py_INCREF(Py_None);
8912 _resultobj = Py_None;
8913 return _resultobj;
8914 }
8915
8916 #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect())
8917 static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
8918 PyObject * _resultobj;
8919 wxPyTreeCtrl * _arg0;
8920 PyObject * _argo0 = 0;
8921 char *_kwnames[] = { "self", NULL };
8922
8923 self = self;
8924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0))
8925 return NULL;
8926 if (_argo0) {
8927 if (_argo0 == Py_None) { _arg0 = NULL; }
8928 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8929 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p.");
8930 return NULL;
8931 }
8932 }
8933 {
8934 wxPy_BEGIN_ALLOW_THREADS;
8935 wxTreeCtrl_Unselect(_arg0);
8936
8937 wxPy_END_ALLOW_THREADS;
8938 if (PyErr_Occurred()) return NULL;
8939 } Py_INCREF(Py_None);
8940 _resultobj = Py_None;
8941 return _resultobj;
8942 }
8943
8944 #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll())
8945 static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8946 PyObject * _resultobj;
8947 wxPyTreeCtrl * _arg0;
8948 PyObject * _argo0 = 0;
8949 char *_kwnames[] = { "self", NULL };
8950
8951 self = self;
8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0))
8953 return NULL;
8954 if (_argo0) {
8955 if (_argo0 == Py_None) { _arg0 = NULL; }
8956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p.");
8958 return NULL;
8959 }
8960 }
8961 {
8962 wxPy_BEGIN_ALLOW_THREADS;
8963 wxTreeCtrl_UnselectAll(_arg0);
8964
8965 wxPy_END_ALLOW_THREADS;
8966 if (PyErr_Occurred()) return NULL;
8967 } Py_INCREF(Py_None);
8968 _resultobj = Py_None;
8969 return _resultobj;
8970 }
8971
8972 #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0))
8973 static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8974 PyObject * _resultobj;
8975 wxPyTreeCtrl * _arg0;
8976 wxTreeItemId * _arg1;
8977 PyObject * _argo0 = 0;
8978 PyObject * _argo1 = 0;
8979 char *_kwnames[] = { "self","item", NULL };
8980
8981 self = self;
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1))
8983 return NULL;
8984 if (_argo0) {
8985 if (_argo0 == Py_None) { _arg0 = NULL; }
8986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p.");
8988 return NULL;
8989 }
8990 }
8991 if (_argo1) {
8992 if (_argo1 == Py_None) { _arg1 = NULL; }
8993 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8994 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p.");
8995 return NULL;
8996 }
8997 }
8998 {
8999 wxPy_BEGIN_ALLOW_THREADS;
9000 wxTreeCtrl_SelectItem(_arg0,*_arg1);
9001
9002 wxPy_END_ALLOW_THREADS;
9003 if (PyErr_Occurred()) return NULL;
9004 } Py_INCREF(Py_None);
9005 _resultobj = Py_None;
9006 return _resultobj;
9007 }
9008
9009 #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
9010 static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
9011 PyObject * _resultobj;
9012 wxPyTreeCtrl * _arg0;
9013 wxTreeItemId * _arg1;
9014 PyObject * _argo0 = 0;
9015 PyObject * _argo1 = 0;
9016 char *_kwnames[] = { "self","item", NULL };
9017
9018 self = self;
9019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1))
9020 return NULL;
9021 if (_argo0) {
9022 if (_argo0 == Py_None) { _arg0 = NULL; }
9023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p.");
9025 return NULL;
9026 }
9027 }
9028 if (_argo1) {
9029 if (_argo1 == Py_None) { _arg1 = NULL; }
9030 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9031 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p.");
9032 return NULL;
9033 }
9034 }
9035 {
9036 wxPy_BEGIN_ALLOW_THREADS;
9037 wxTreeCtrl_EnsureVisible(_arg0,*_arg1);
9038
9039 wxPy_END_ALLOW_THREADS;
9040 if (PyErr_Occurred()) return NULL;
9041 } Py_INCREF(Py_None);
9042 _resultobj = Py_None;
9043 return _resultobj;
9044 }
9045
9046 #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0))
9047 static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
9048 PyObject * _resultobj;
9049 wxPyTreeCtrl * _arg0;
9050 wxTreeItemId * _arg1;
9051 PyObject * _argo0 = 0;
9052 PyObject * _argo1 = 0;
9053 char *_kwnames[] = { "self","item", NULL };
9054
9055 self = self;
9056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1))
9057 return NULL;
9058 if (_argo0) {
9059 if (_argo0 == Py_None) { _arg0 = NULL; }
9060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p.");
9062 return NULL;
9063 }
9064 }
9065 if (_argo1) {
9066 if (_argo1 == Py_None) { _arg1 = NULL; }
9067 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9068 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p.");
9069 return NULL;
9070 }
9071 }
9072 {
9073 wxPy_BEGIN_ALLOW_THREADS;
9074 wxTreeCtrl_ScrollTo(_arg0,*_arg1);
9075
9076 wxPy_END_ALLOW_THREADS;
9077 if (PyErr_Occurred()) return NULL;
9078 } Py_INCREF(Py_None);
9079 _resultobj = Py_None;
9080 return _resultobj;
9081 }
9082
9083 #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
9084 static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject * _resultobj;
9086 wxTextCtrl * _result;
9087 wxPyTreeCtrl * _arg0;
9088 wxTreeItemId * _arg1;
9089 PyObject * _argo0 = 0;
9090 PyObject * _argo1 = 0;
9091 char *_kwnames[] = { "self","item", NULL };
9092
9093 self = self;
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1))
9095 return NULL;
9096 if (_argo0) {
9097 if (_argo0 == Py_None) { _arg0 = NULL; }
9098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p.");
9100 return NULL;
9101 }
9102 }
9103 if (_argo1) {
9104 if (_argo1 == Py_None) { _arg1 = NULL; }
9105 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9106 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p.");
9107 return NULL;
9108 }
9109 }
9110 {
9111 wxPy_BEGIN_ALLOW_THREADS;
9112 _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1);
9113
9114 wxPy_END_ALLOW_THREADS;
9115 if (PyErr_Occurred()) return NULL;
9116 }{ _resultobj = wxPyMake_wxObject(_result); }
9117 return _resultobj;
9118 }
9119
9120 #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
9121 static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9122 PyObject * _resultobj;
9123 wxTextCtrl * _result;
9124 wxPyTreeCtrl * _arg0;
9125 PyObject * _argo0 = 0;
9126 char *_kwnames[] = { "self", NULL };
9127
9128 self = self;
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0))
9130 return NULL;
9131 if (_argo0) {
9132 if (_argo0 == Py_None) { _arg0 = NULL; }
9133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p.");
9135 return NULL;
9136 }
9137 }
9138 {
9139 wxPy_BEGIN_ALLOW_THREADS;
9140 _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0);
9141
9142 wxPy_END_ALLOW_THREADS;
9143 if (PyErr_Occurred()) return NULL;
9144 }{ _resultobj = wxPyMake_wxObject(_result); }
9145 return _resultobj;
9146 }
9147
9148 #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1))
9149 static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9150 PyObject * _resultobj;
9151 wxPyTreeCtrl * _arg0;
9152 wxTreeItemId * _arg1;
9153 int _arg2 = (int ) FALSE;
9154 PyObject * _argo0 = 0;
9155 PyObject * _argo1 = 0;
9156 char *_kwnames[] = { "self","item","discardChanges", NULL };
9157
9158 self = self;
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2))
9160 return NULL;
9161 if (_argo0) {
9162 if (_argo0 == Py_None) { _arg0 = NULL; }
9163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p.");
9165 return NULL;
9166 }
9167 }
9168 if (_argo1) {
9169 if (_argo1 == Py_None) { _arg1 = NULL; }
9170 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9171 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p.");
9172 return NULL;
9173 }
9174 }
9175 {
9176 wxPy_BEGIN_ALLOW_THREADS;
9177 wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2);
9178
9179 wxPy_END_ALLOW_THREADS;
9180 if (PyErr_Occurred()) return NULL;
9181 } Py_INCREF(Py_None);
9182 _resultobj = Py_None;
9183 return _resultobj;
9184 }
9185
9186 #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0))
9187 static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
9188 PyObject * _resultobj;
9189 wxPyTreeCtrl * _arg0;
9190 wxTreeItemId * _arg1;
9191 PyObject * _argo0 = 0;
9192 PyObject * _argo1 = 0;
9193 char *_kwnames[] = { "self","item", NULL };
9194
9195 self = self;
9196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1))
9197 return NULL;
9198 if (_argo0) {
9199 if (_argo0 == Py_None) { _arg0 = NULL; }
9200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p.");
9202 return NULL;
9203 }
9204 }
9205 if (_argo1) {
9206 if (_argo1 == Py_None) { _arg1 = NULL; }
9207 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9208 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p.");
9209 return NULL;
9210 }
9211 }
9212 {
9213 wxPy_BEGIN_ALLOW_THREADS;
9214 wxTreeCtrl_SortChildren(_arg0,*_arg1);
9215
9216 wxPy_END_ALLOW_THREADS;
9217 if (PyErr_Occurred()) return NULL;
9218 } Py_INCREF(Py_None);
9219 _resultobj = Py_None;
9220 return _resultobj;
9221 }
9222
9223 #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1))
9224 static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
9225 PyObject * _resultobj;
9226 wxPyTreeCtrl * _arg0;
9227 wxTreeItemId * _arg1;
9228 int _arg2 = (int ) TRUE;
9229 PyObject * _argo0 = 0;
9230 PyObject * _argo1 = 0;
9231 char *_kwnames[] = { "self","item","bold", NULL };
9232
9233 self = self;
9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2))
9235 return NULL;
9236 if (_argo0) {
9237 if (_argo0 == Py_None) { _arg0 = NULL; }
9238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p.");
9240 return NULL;
9241 }
9242 }
9243 if (_argo1) {
9244 if (_argo1 == Py_None) { _arg1 = NULL; }
9245 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9246 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p.");
9247 return NULL;
9248 }
9249 }
9250 {
9251 wxPy_BEGIN_ALLOW_THREADS;
9252 wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2);
9253
9254 wxPy_END_ALLOW_THREADS;
9255 if (PyErr_Occurred()) return NULL;
9256 } Py_INCREF(Py_None);
9257 _resultobj = Py_None;
9258 return _resultobj;
9259 }
9260
9261 #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0))
9262 static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
9263 PyObject * _resultobj;
9264 bool _result;
9265 wxPyTreeCtrl * _arg0;
9266 wxTreeItemId * _arg1;
9267 PyObject * _argo0 = 0;
9268 PyObject * _argo1 = 0;
9269 char *_kwnames[] = { "self","item", NULL };
9270
9271 self = self;
9272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1))
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_IsBold. 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_IsBold. Expected _wxTreeItemId_p.");
9285 return NULL;
9286 }
9287 }
9288 {
9289 wxPy_BEGIN_ALLOW_THREADS;
9290 _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1);
9291
9292 wxPy_END_ALLOW_THREADS;
9293 if (PyErr_Occurred()) return NULL;
9294 } _resultobj = Py_BuildValue("i",_result);
9295 return _resultobj;
9296 }
9297
9298 #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
9299 static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9300 PyObject * _resultobj;
9301 wxTreeItemId * _result;
9302 wxPyTreeCtrl * _arg0;
9303 wxPoint * _arg1;
9304 int * _arg2;
9305 int temp;
9306 PyObject * _argo0 = 0;
9307 wxPoint temp0;
9308 PyObject * _obj1 = 0;
9309 char *_kwnames[] = { "self","point", NULL };
9310 char _ptemp[128];
9311
9312 self = self;
9313 {
9314 _arg2 = &temp;
9315 }
9316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1))
9317 return NULL;
9318 if (_argo0) {
9319 if (_argo0 == Py_None) { _arg0 = NULL; }
9320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p.");
9322 return NULL;
9323 }
9324 }
9325 {
9326 _arg1 = &temp0;
9327 if (! wxPoint_helper(_obj1, &_arg1))
9328 return NULL;
9329 }
9330 {
9331 wxPy_BEGIN_ALLOW_THREADS;
9332 _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2));
9333
9334 wxPy_END_ALLOW_THREADS;
9335 if (PyErr_Occurred()) return NULL;
9336 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
9337 _resultobj = Py_BuildValue("s",_ptemp);
9338 {
9339 PyObject *o;
9340 o = PyInt_FromLong((long) (*_arg2));
9341 _resultobj = t_output_helper(_resultobj, o);
9342 }
9343 return _resultobj;
9344 }
9345
9346 #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1))
9347 static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9348 PyObject * _resultobj;
9349 wxPyTreeCtrl * _arg0;
9350 wxTreeItemId * _arg1;
9351 wxColour * _arg2;
9352 PyObject * _argo0 = 0;
9353 PyObject * _argo1 = 0;
9354 wxColour temp;
9355 PyObject * _obj2 = 0;
9356 char *_kwnames[] = { "self","item","col", NULL };
9357
9358 self = self;
9359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2))
9360 return NULL;
9361 if (_argo0) {
9362 if (_argo0 == Py_None) { _arg0 = NULL; }
9363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p.");
9365 return NULL;
9366 }
9367 }
9368 if (_argo1) {
9369 if (_argo1 == Py_None) { _arg1 = NULL; }
9370 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9371 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p.");
9372 return NULL;
9373 }
9374 }
9375 {
9376 _arg2 = &temp;
9377 if (! wxColour_helper(_obj2, &_arg2))
9378 return NULL;
9379 }
9380 {
9381 wxPy_BEGIN_ALLOW_THREADS;
9382 wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2);
9383
9384 wxPy_END_ALLOW_THREADS;
9385 if (PyErr_Occurred()) return NULL;
9386 } Py_INCREF(Py_None);
9387 _resultobj = Py_None;
9388 return _resultobj;
9389 }
9390
9391 #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1))
9392 static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9393 PyObject * _resultobj;
9394 wxPyTreeCtrl * _arg0;
9395 wxTreeItemId * _arg1;
9396 wxColour * _arg2;
9397 PyObject * _argo0 = 0;
9398 PyObject * _argo1 = 0;
9399 wxColour temp;
9400 PyObject * _obj2 = 0;
9401 char *_kwnames[] = { "self","item","col", NULL };
9402
9403 self = self;
9404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2))
9405 return NULL;
9406 if (_argo0) {
9407 if (_argo0 == Py_None) { _arg0 = NULL; }
9408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p.");
9410 return NULL;
9411 }
9412 }
9413 if (_argo1) {
9414 if (_argo1 == Py_None) { _arg1 = NULL; }
9415 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9416 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p.");
9417 return NULL;
9418 }
9419 }
9420 {
9421 _arg2 = &temp;
9422 if (! wxColour_helper(_obj2, &_arg2))
9423 return NULL;
9424 }
9425 {
9426 wxPy_BEGIN_ALLOW_THREADS;
9427 wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2);
9428
9429 wxPy_END_ALLOW_THREADS;
9430 if (PyErr_Occurred()) return NULL;
9431 } Py_INCREF(Py_None);
9432 _resultobj = Py_None;
9433 return _resultobj;
9434 }
9435
9436 #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1))
9437 static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9438 PyObject * _resultobj;
9439 wxPyTreeCtrl * _arg0;
9440 wxTreeItemId * _arg1;
9441 wxFont * _arg2;
9442 PyObject * _argo0 = 0;
9443 PyObject * _argo1 = 0;
9444 PyObject * _argo2 = 0;
9445 char *_kwnames[] = { "self","item","font", NULL };
9446
9447 self = self;
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2))
9449 return NULL;
9450 if (_argo0) {
9451 if (_argo0 == Py_None) { _arg0 = NULL; }
9452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p.");
9454 return NULL;
9455 }
9456 }
9457 if (_argo1) {
9458 if (_argo1 == Py_None) { _arg1 = NULL; }
9459 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9460 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p.");
9461 return NULL;
9462 }
9463 }
9464 if (_argo2) {
9465 if (_argo2 == Py_None) { _arg2 = NULL; }
9466 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
9467 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p.");
9468 return NULL;
9469 }
9470 }
9471 {
9472 wxPy_BEGIN_ALLOW_THREADS;
9473 wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2);
9474
9475 wxPy_END_ALLOW_THREADS;
9476 if (PyErr_Occurred()) return NULL;
9477 } Py_INCREF(Py_None);
9478 _resultobj = Py_None;
9479 return _resultobj;
9480 }
9481
9482 #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1))
9483 static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
9484 PyObject * _resultobj;
9485 wxPyTreeCtrl * _arg0;
9486 wxTreeItemId * _arg1;
9487 int _arg2 = (int ) TRUE;
9488 PyObject * _argo0 = 0;
9489 PyObject * _argo1 = 0;
9490 char *_kwnames[] = { "self","item","highlight", NULL };
9491
9492 self = self;
9493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2))
9494 return NULL;
9495 if (_argo0) {
9496 if (_argo0 == Py_None) { _arg0 = NULL; }
9497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p.");
9499 return NULL;
9500 }
9501 }
9502 if (_argo1) {
9503 if (_argo1 == Py_None) { _arg1 = NULL; }
9504 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9505 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p.");
9506 return NULL;
9507 }
9508 }
9509 {
9510 wxPy_BEGIN_ALLOW_THREADS;
9511 wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2);
9512
9513 wxPy_END_ALLOW_THREADS;
9514 if (PyErr_Occurred()) return NULL;
9515 } Py_INCREF(Py_None);
9516 _resultobj = Py_None;
9517 return _resultobj;
9518 }
9519
9520 static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) {
9521 wxRect rect;
9522 if (self->GetBoundingRect(item, rect, textOnly)) {
9523 wxPyTState* state = wxPyBeginBlockThreads();
9524 wxRect* r = new wxRect(rect);
9525 PyObject* val = wxPyConstructObject((void*)r, "wxRect");
9526 wxPyEndBlockThreads(state);
9527 return val;
9528 }
9529 else {
9530 Py_INCREF(Py_None);
9531 return Py_None;
9532 }
9533 }
9534 static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9535 PyObject * _resultobj;
9536 PyObject * _result;
9537 wxPyTreeCtrl * _arg0;
9538 wxTreeItemId * _arg1;
9539 int _arg2 = (int ) FALSE;
9540 PyObject * _argo0 = 0;
9541 PyObject * _argo1 = 0;
9542 char *_kwnames[] = { "self","item","textOnly", NULL };
9543
9544 self = self;
9545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2))
9546 return NULL;
9547 if (_argo0) {
9548 if (_argo0 == Py_None) { _arg0 = NULL; }
9549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p.");
9551 return NULL;
9552 }
9553 }
9554 if (_argo1) {
9555 if (_argo1 == Py_None) { _arg1 = NULL; }
9556 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9557 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p.");
9558 return NULL;
9559 }
9560 }
9561 {
9562 wxPy_BEGIN_ALLOW_THREADS;
9563 _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2);
9564
9565 wxPy_END_ALLOW_THREADS;
9566 if (PyErr_Occurred()) return NULL;
9567 }{
9568 _resultobj = _result;
9569 }
9570 return _resultobj;
9571 }
9572
9573 static PyMethodDef controls2cMethods[] = {
9574 { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
9575 { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
9576 { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
9577 { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9578 { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
9579 { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
9580 { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
9581 { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
9582 { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
9583 { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
9584 { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
9585 { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
9586 { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
9587 { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
9588 { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
9589 { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
9590 { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
9591 { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
9592 { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
9593 { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
9594 { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
9595 { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
9596 { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
9597 { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
9598 { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
9599 { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
9600 { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
9601 { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
9602 { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
9603 { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
9604 { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
9605 { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
9606 { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
9607 { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
9608 { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
9609 { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
9610 { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
9611 { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
9612 { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
9613 { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
9614 { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
9615 { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
9616 { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
9617 { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
9618 { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
9619 { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
9620 { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS },
9621 { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS },
9622 { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
9623 { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
9624 { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
9625 { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
9626 { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
9627 { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
9628 { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
9629 { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
9630 { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
9631 { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
9632 { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
9633 { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
9634 { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
9635 { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
9636 { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
9637 { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
9638 { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
9639 { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
9640 { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
9641 { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
9642 { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
9643 { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
9644 { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
9645 { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS },
9646 { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
9647 { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
9648 { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
9649 { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
9650 { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
9651 { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
9652 { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS },
9653 { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
9654 { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
9655 { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
9656 { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
9657 { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS },
9658 { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS },
9659 { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
9660 { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
9661 { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
9662 { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
9663 { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9664 { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9665 { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
9666 { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9667 { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
9668 { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
9669 { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9670 { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9671 { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS },
9672 { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
9673 { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
9674 { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
9675 { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
9676 { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
9677 { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
9678 { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS },
9679 { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS },
9680 { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS },
9681 { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS },
9682 { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS },
9683 { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
9684 { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
9685 { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
9686 { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
9687 { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
9688 { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
9689 { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
9690 { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
9691 { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
9692 { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
9693 { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
9694 { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
9695 { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
9696 { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
9697 { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
9698 { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
9699 { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
9700 { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
9701 { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
9702 { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
9703 { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
9704 { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
9705 { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
9706 { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
9707 { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
9708 { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
9709 { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
9710 { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
9711 { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
9712 { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
9713 { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
9714 { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
9715 { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9716 { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9717 { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
9718 { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
9719 { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
9720 { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
9721 { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
9722 { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
9723 { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
9724 { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
9725 { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
9726 { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
9727 { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
9728 { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
9729 { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
9730 { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
9731 { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
9732 { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
9733 { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
9734 { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
9735 { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
9736 { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
9737 { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
9738 { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
9739 { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
9740 { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9741 { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
9742 { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
9743 { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
9744 { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS },
9745 { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS },
9746 { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
9747 { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
9748 { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
9749 { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
9750 { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
9751 { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
9752 { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
9753 { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
9754 { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
9755 { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS },
9756 { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
9757 { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
9758 { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
9759 { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
9760 { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS },
9761 { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
9762 { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
9763 { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS },
9764 { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS },
9765 { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
9766 { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
9767 { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
9768 { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
9769 { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
9770 { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
9771 { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS },
9772 { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
9773 { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
9774 { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
9775 { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
9776 { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
9777 { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
9778 { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
9779 { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
9780 { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
9781 { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
9782 { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
9783 { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
9784 { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
9785 { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
9786 { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
9787 { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
9788 { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
9789 { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
9790 { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
9791 { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
9792 { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
9793 { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9794 { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9795 { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
9796 { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
9797 { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
9798 { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
9799 { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS },
9800 { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
9801 { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS },
9802 { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS },
9803 { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
9804 { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS },
9805 { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
9806 { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
9807 { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9808 { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9809 { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
9810 { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
9811 { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS },
9812 { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
9813 { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS },
9814 { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
9815 { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS },
9816 { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
9817 { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS },
9818 { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
9819 { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
9820 { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS },
9821 { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS },
9822 { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS },
9823 { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
9824 { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9825 { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
9826 { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
9827 { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9828 { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
9829 { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
9830 { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9831 { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
9832 { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS },
9833 { NULL, NULL }
9834 };
9835 #ifdef __cplusplus
9836 }
9837 #endif
9838 /*
9839 * This table is used by the pointer type-checker
9840 */
9841 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
9842 { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
9843 { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
9844 { "_signed_long","_long",0},
9845 { "_wxPrintQuality","_wxCoord",0},
9846 { "_wxPrintQuality","_int",0},
9847 { "_wxPrintQuality","_signed_int",0},
9848 { "_wxPrintQuality","_unsigned_int",0},
9849 { "_wxPrintQuality","_wxWindowID",0},
9850 { "_wxPrintQuality","_uint",0},
9851 { "_wxPrintQuality","_EBool",0},
9852 { "_wxPrintQuality","_size_t",0},
9853 { "_wxPrintQuality","_time_t",0},
9854 { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
9855 { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent},
9856 { "_byte","_unsigned_char",0},
9857 { "_long","_unsigned_long",0},
9858 { "_long","_signed_long",0},
9859 { "_size_t","_wxCoord",0},
9860 { "_size_t","_wxPrintQuality",0},
9861 { "_size_t","_time_t",0},
9862 { "_size_t","_unsigned_int",0},
9863 { "_size_t","_int",0},
9864 { "_size_t","_wxWindowID",0},
9865 { "_size_t","_uint",0},
9866 { "_uint","_wxCoord",0},
9867 { "_uint","_wxPrintQuality",0},
9868 { "_uint","_time_t",0},
9869 { "_uint","_size_t",0},
9870 { "_uint","_unsigned_int",0},
9871 { "_uint","_int",0},
9872 { "_uint","_wxWindowID",0},
9873 { "_wxChar","_char",0},
9874 { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
9875 { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
9876 { "_char","_wxChar",0},
9877 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
9878 { "_EBool","_wxCoord",0},
9879 { "_EBool","_wxPrintQuality",0},
9880 { "_EBool","_signed_int",0},
9881 { "_EBool","_int",0},
9882 { "_EBool","_wxWindowID",0},
9883 { "_unsigned_long","_long",0},
9884 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
9885 { "_signed_int","_wxCoord",0},
9886 { "_signed_int","_wxPrintQuality",0},
9887 { "_signed_int","_EBool",0},
9888 { "_signed_int","_wxWindowID",0},
9889 { "_signed_int","_int",0},
9890 { "_WXTYPE","_short",0},
9891 { "_WXTYPE","_signed_short",0},
9892 { "_WXTYPE","_unsigned_short",0},
9893 { "_unsigned_short","_WXTYPE",0},
9894 { "_unsigned_short","_short",0},
9895 { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
9896 { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject},
9897 { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
9898 { "_wxObject","_wxListView",SwigwxListViewTowxObject},
9899 { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject},
9900 { "_wxObject","_wxListEvent",SwigwxListEventTowxObject},
9901 { "_wxObject","_wxListItem",SwigwxListItemTowxObject},
9902 { "_signed_short","_WXTYPE",0},
9903 { "_signed_short","_short",0},
9904 { "_unsigned_char","_byte",0},
9905 { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl},
9906 { "_wxControl","_wxListView",SwigwxListViewTowxControl},
9907 { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl},
9908 { "_unsigned_int","_wxCoord",0},
9909 { "_unsigned_int","_wxPrintQuality",0},
9910 { "_unsigned_int","_time_t",0},
9911 { "_unsigned_int","_size_t",0},
9912 { "_unsigned_int","_uint",0},
9913 { "_unsigned_int","_wxWindowID",0},
9914 { "_unsigned_int","_int",0},
9915 { "_short","_WXTYPE",0},
9916 { "_short","_unsigned_short",0},
9917 { "_short","_signed_short",0},
9918 { "_wxWindowID","_wxCoord",0},
9919 { "_wxWindowID","_wxPrintQuality",0},
9920 { "_wxWindowID","_time_t",0},
9921 { "_wxWindowID","_size_t",0},
9922 { "_wxWindowID","_EBool",0},
9923 { "_wxWindowID","_uint",0},
9924 { "_wxWindowID","_int",0},
9925 { "_wxWindowID","_signed_int",0},
9926 { "_wxWindowID","_unsigned_int",0},
9927 { "_int","_wxCoord",0},
9928 { "_int","_wxPrintQuality",0},
9929 { "_int","_time_t",0},
9930 { "_int","_size_t",0},
9931 { "_int","_EBool",0},
9932 { "_int","_uint",0},
9933 { "_int","_wxWindowID",0},
9934 { "_int","_unsigned_int",0},
9935 { "_int","_signed_int",0},
9936 { "_time_t","_wxCoord",0},
9937 { "_time_t","_wxPrintQuality",0},
9938 { "_time_t","_unsigned_int",0},
9939 { "_time_t","_int",0},
9940 { "_time_t","_wxWindowID",0},
9941 { "_time_t","_uint",0},
9942 { "_time_t","_size_t",0},
9943 { "_wxCoord","_int",0},
9944 { "_wxCoord","_signed_int",0},
9945 { "_wxCoord","_unsigned_int",0},
9946 { "_wxCoord","_wxWindowID",0},
9947 { "_wxCoord","_uint",0},
9948 { "_wxCoord","_EBool",0},
9949 { "_wxCoord","_size_t",0},
9950 { "_wxCoord","_time_t",0},
9951 { "_wxCoord","_wxPrintQuality",0},
9952 { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl},
9953 { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler},
9954 { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler},
9955 { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler},
9956 { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow},
9957 { "_wxWindow","_wxListView",SwigwxListViewTowxWindow},
9958 { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow},
9959 {0,0,0}};
9960
9961 static PyObject *SWIG_globals;
9962 #ifdef __cplusplus
9963 extern "C"
9964 #endif
9965 SWIGEXPORT(void) initcontrols2c() {
9966 PyObject *m, *d;
9967 SWIG_globals = SWIG_newvarlink();
9968 m = Py_InitModule("controls2c", controls2cMethods);
9969 d = PyModule_GetDict(m);
9970 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG));
9971 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG));
9972 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
9973 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT));
9974 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM));
9975 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
9976 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO));
9977 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO));
9978 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED));
9979 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED));
9980 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN));
9981 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM));
9982 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK));
9983 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
9984 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
9985 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
9986 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT));
9987 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
9988 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
9989 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING));
9990 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG));
9991 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED));
9992 PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES));
9993 PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES));
9994 PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON));
9995 PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON));
9996 PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST));
9997 PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT));
9998 PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP));
9999 PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT));
10000 PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE));
10001 PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL));
10002 PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS));
10003 PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER));
10004 PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER));
10005 PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL));
10006 PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING));
10007 PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING));
10008 PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE));
10009 PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN));
10010 PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT));
10011 PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT));
10012 PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE));
10013 PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT));
10014 PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE));
10015 PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA));
10016 PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM));
10017 PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH));
10018 PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT));
10019 PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE));
10020 PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED));
10021 PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED));
10022 PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED));
10023 PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT));
10024 PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE));
10025 PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW));
10026 PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE));
10027 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON));
10028 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL));
10029 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT));
10030 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON));
10031 PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT));
10032 PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT));
10033 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM));
10034 PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE));
10035 PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL));
10036 PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW));
10037 PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT));
10038 PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT));
10039 PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT));
10040 PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT));
10041 PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP));
10042 PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID));
10043 PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE));
10044 PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER));
10045 PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS));
10046 PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON));
10047 PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL));
10048 PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP));
10049 PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN));
10050 PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT));
10051 PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT));
10052 PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT));
10053 PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT));
10054 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE));
10055 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER));
10056 PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS));
10057 PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS));
10058 PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS));
10059 PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES));
10060 PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS));
10061 PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE));
10062 PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE));
10063 PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED));
10064 PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS));
10065 PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT));
10066 PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT));
10067 PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES));
10068 PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT));
10069 PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE));
10070 PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal));
10071 PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected));
10072 PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded));
10073 PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded));
10074 PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max));
10075 PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE));
10076 PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW));
10077 PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE));
10078 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON));
10079 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON));
10080 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT));
10081 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL));
10082 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT));
10083 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON));
10084 PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT));
10085 PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT));
10086 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART));
10087 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART));
10088 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM));
10089 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG));
10090 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG));
10091 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
10092 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT));
10093 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM));
10094 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO));
10095 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO));
10096 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED));
10097 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING));
10098 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
10099 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
10100 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED));
10101 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING));
10102 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN));
10103 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
10104 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
10105 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
10106 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG));
10107
10108 // Map renamed classes back to their common name for OOR
10109 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
10110 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
10111 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
10112 {
10113 int i;
10114 for (i = 0; _swig_mapping[i].n1; i++)
10115 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10116 }
10117 }