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