]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/controls2.cpp
more fixes to wxSplitterWindow's initial sash position
[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 #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1))
3186 static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
3187 PyObject * _resultobj;
3188 bool _result;
3189 wxPyListCtrl * _arg0;
3190 int _arg1;
3191 wxListItem * _arg2;
3192 PyObject * _argo0 = 0;
3193 PyObject * _argo2 = 0;
3194 char *_kwnames[] = { "self","col","item", NULL };
3195
3196 self = self;
3197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
3198 return NULL;
3199 if (_argo0) {
3200 if (_argo0 == Py_None) { _arg0 = NULL; }
3201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p.");
3203 return NULL;
3204 }
3205 }
3206 if (_argo2) {
3207 if (_argo2 == Py_None) { _arg2 = NULL; }
3208 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
3209 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p.");
3210 return NULL;
3211 }
3212 }
3213 {
3214 PyThreadState* __tstate = wxPyBeginAllowThreads();
3215 _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2);
3216
3217 wxPyEndAllowThreads(__tstate);
3218 if (PyErr_Occurred()) return NULL;
3219 } _resultobj = Py_BuildValue("i",_result);
3220 return _resultobj;
3221 }
3222
3223 #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1))
3224 static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
3225 PyObject * _resultobj;
3226 bool _result;
3227 wxPyListCtrl * _arg0;
3228 int _arg1;
3229 wxListItem * _arg2;
3230 PyObject * _argo0 = 0;
3231 PyObject * _argo2 = 0;
3232 char *_kwnames[] = { "self","col","item", NULL };
3233
3234 self = self;
3235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
3236 return NULL;
3237 if (_argo0) {
3238 if (_argo0 == Py_None) { _arg0 = NULL; }
3239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p.");
3241 return NULL;
3242 }
3243 }
3244 if (_argo2) {
3245 if (_argo2 == Py_None) { _arg2 = NULL; }
3246 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
3247 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p.");
3248 return NULL;
3249 }
3250 }
3251 {
3252 PyThreadState* __tstate = wxPyBeginAllowThreads();
3253 _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2);
3254
3255 wxPyEndAllowThreads(__tstate);
3256 if (PyErr_Occurred()) return NULL;
3257 } _resultobj = Py_BuildValue("i",_result);
3258 return _resultobj;
3259 }
3260
3261 #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0))
3262 static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3263 PyObject * _resultobj;
3264 int _result;
3265 wxPyListCtrl * _arg0;
3266 int _arg1;
3267 PyObject * _argo0 = 0;
3268 char *_kwnames[] = { "self","col", NULL };
3269
3270 self = self;
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1))
3272 return NULL;
3273 if (_argo0) {
3274 if (_argo0 == Py_None) { _arg0 = NULL; }
3275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p.");
3277 return NULL;
3278 }
3279 }
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1);
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) return NULL;
3286 } _resultobj = Py_BuildValue("i",_result);
3287 return _resultobj;
3288 }
3289
3290 #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1))
3291 static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3292 PyObject * _resultobj;
3293 bool _result;
3294 wxPyListCtrl * _arg0;
3295 int _arg1;
3296 int _arg2;
3297 PyObject * _argo0 = 0;
3298 char *_kwnames[] = { "self","col","width", NULL };
3299
3300 self = self;
3301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2))
3302 return NULL;
3303 if (_argo0) {
3304 if (_argo0 == Py_None) { _arg0 = NULL; }
3305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p.");
3307 return NULL;
3308 }
3309 }
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2);
3313
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) return NULL;
3316 } _resultobj = Py_BuildValue("i",_result);
3317 return _resultobj;
3318 }
3319
3320 #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage())
3321 static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3322 PyObject * _resultobj;
3323 int _result;
3324 wxPyListCtrl * _arg0;
3325 PyObject * _argo0 = 0;
3326 char *_kwnames[] = { "self", NULL };
3327
3328 self = self;
3329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0))
3330 return NULL;
3331 if (_argo0) {
3332 if (_argo0 == Py_None) { _arg0 = NULL; }
3333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p.");
3335 return NULL;
3336 }
3337 }
3338 {
3339 PyThreadState* __tstate = wxPyBeginAllowThreads();
3340 _result = (int )wxListCtrl_GetCountPerPage(_arg0);
3341
3342 wxPyEndAllowThreads(__tstate);
3343 if (PyErr_Occurred()) return NULL;
3344 } _resultobj = Py_BuildValue("i",_result);
3345 return _resultobj;
3346 }
3347
3348 #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
3349 static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
3350 PyObject * _resultobj;
3351 wxTextCtrl * _result;
3352 wxPyListCtrl * _arg0;
3353 PyObject * _argo0 = 0;
3354 char *_kwnames[] = { "self", NULL };
3355
3356 self = self;
3357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0))
3358 return NULL;
3359 if (_argo0) {
3360 if (_argo0 == Py_None) { _arg0 = NULL; }
3361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p.");
3363 return NULL;
3364 }
3365 }
3366 {
3367 PyThreadState* __tstate = wxPyBeginAllowThreads();
3368 _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0);
3369
3370 wxPyEndAllowThreads(__tstate);
3371 if (PyErr_Occurred()) return NULL;
3372 }{ _resultobj = wxPyMake_wxObject(_result); }
3373 return _resultobj;
3374 }
3375
3376 static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) {
3377 wxListItem* info = new wxListItem;
3378 info->m_itemId = itemId;
3379 info->m_col = col;
3380 info->m_mask = 0xFFFF;
3381 self->GetItem(*info);
3382 return info;
3383 }
3384 static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3385 PyObject * _resultobj;
3386 wxListItem * _result;
3387 wxPyListCtrl * _arg0;
3388 long _arg1;
3389 int _arg2 = (int ) 0;
3390 PyObject * _argo0 = 0;
3391 char *_kwnames[] = { "self","itemId","col", NULL };
3392
3393 self = self;
3394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2))
3395 return NULL;
3396 if (_argo0) {
3397 if (_argo0 == Py_None) { _arg0 = NULL; }
3398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p.");
3400 return NULL;
3401 }
3402 }
3403 {
3404 PyThreadState* __tstate = wxPyBeginAllowThreads();
3405 _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2);
3406
3407 wxPyEndAllowThreads(__tstate);
3408 if (PyErr_Occurred()) return NULL;
3409 }{ _resultobj = wxPyMake_wxObject(_result); }
3410 return _resultobj;
3411 }
3412
3413 #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0))
3414 static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3415 PyObject * _resultobj;
3416 bool _result;
3417 wxPyListCtrl * _arg0;
3418 wxListItem * _arg1;
3419 PyObject * _argo0 = 0;
3420 PyObject * _argo1 = 0;
3421 char *_kwnames[] = { "self","info", NULL };
3422
3423 self = self;
3424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1))
3425 return NULL;
3426 if (_argo0) {
3427 if (_argo0 == Py_None) { _arg0 = NULL; }
3428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p.");
3430 return NULL;
3431 }
3432 }
3433 if (_argo1) {
3434 if (_argo1 == Py_None) { _arg1 = NULL; }
3435 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
3436 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p.");
3437 return NULL;
3438 }
3439 }
3440 {
3441 PyThreadState* __tstate = wxPyBeginAllowThreads();
3442 _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1);
3443
3444 wxPyEndAllowThreads(__tstate);
3445 if (PyErr_Occurred()) return NULL;
3446 } _resultobj = Py_BuildValue("i",_result);
3447 return _resultobj;
3448 }
3449
3450 #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3451 static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject * _resultobj;
3453 long _result;
3454 wxPyListCtrl * _arg0;
3455 long _arg1;
3456 int _arg2;
3457 wxString * _arg3;
3458 int _arg4 = (int ) -1;
3459 PyObject * _argo0 = 0;
3460 PyObject * _obj3 = 0;
3461 char *_kwnames[] = { "self","index","col","label","imageId", NULL };
3462
3463 self = self;
3464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
3465 return NULL;
3466 if (_argo0) {
3467 if (_argo0 == Py_None) { _arg0 = NULL; }
3468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p.");
3470 return NULL;
3471 }
3472 }
3473 {
3474 #if PYTHON_API_VERSION >= 1009
3475 char* tmpPtr; int tmpSize;
3476 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
3477 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3478 return NULL;
3479 }
3480 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
3481 return NULL;
3482 _arg3 = new wxString(tmpPtr, tmpSize);
3483 #else
3484 if (!PyString_Check(_obj3)) {
3485 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3486 return NULL;
3487 }
3488 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
3489 #endif
3490 }
3491 {
3492 PyThreadState* __tstate = wxPyBeginAllowThreads();
3493 _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4);
3494
3495 wxPyEndAllowThreads(__tstate);
3496 if (PyErr_Occurred()) return NULL;
3497 } _resultobj = Py_BuildValue("l",_result);
3498 {
3499 if (_obj3)
3500 delete _arg3;
3501 }
3502 return _resultobj;
3503 }
3504
3505 #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1))
3506 static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
3507 PyObject * _resultobj;
3508 int _result;
3509 wxPyListCtrl * _arg0;
3510 long _arg1;
3511 long _arg2;
3512 PyObject * _argo0 = 0;
3513 char *_kwnames[] = { "self","item","stateMask", NULL };
3514
3515 self = self;
3516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2))
3517 return NULL;
3518 if (_argo0) {
3519 if (_argo0 == Py_None) { _arg0 = NULL; }
3520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p.");
3522 return NULL;
3523 }
3524 }
3525 {
3526 PyThreadState* __tstate = wxPyBeginAllowThreads();
3527 _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2);
3528
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) return NULL;
3531 } _resultobj = Py_BuildValue("i",_result);
3532 return _resultobj;
3533 }
3534
3535 #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2))
3536 static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
3537 PyObject * _resultobj;
3538 bool _result;
3539 wxPyListCtrl * _arg0;
3540 long _arg1;
3541 long _arg2;
3542 long _arg3;
3543 PyObject * _argo0 = 0;
3544 char *_kwnames[] = { "self","item","state","stateMask", NULL };
3545
3546 self = self;
3547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3548 return NULL;
3549 if (_argo0) {
3550 if (_argo0 == Py_None) { _arg0 = NULL; }
3551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3552 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p.");
3553 return NULL;
3554 }
3555 }
3556 {
3557 PyThreadState* __tstate = wxPyBeginAllowThreads();
3558 _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3);
3559
3560 wxPyEndAllowThreads(__tstate);
3561 if (PyErr_Occurred()) return NULL;
3562 } _resultobj = Py_BuildValue("i",_result);
3563 return _resultobj;
3564 }
3565
3566 #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
3567 static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3568 PyObject * _resultobj;
3569 bool _result;
3570 wxPyListCtrl * _arg0;
3571 long _arg1;
3572 int _arg2;
3573 int _arg3;
3574 PyObject * _argo0 = 0;
3575 char *_kwnames[] = { "self","item","image","selImage", NULL };
3576
3577 self = self;
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3579 return NULL;
3580 if (_argo0) {
3581 if (_argo0 == Py_None) { _arg0 = NULL; }
3582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p.");
3584 return NULL;
3585 }
3586 }
3587 {
3588 PyThreadState* __tstate = wxPyBeginAllowThreads();
3589 _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3);
3590
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) return NULL;
3593 } _resultobj = Py_BuildValue("i",_result);
3594 return _resultobj;
3595 }
3596
3597 #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
3598 static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3599 PyObject * _resultobj;
3600 wxString * _result;
3601 wxPyListCtrl * _arg0;
3602 long _arg1;
3603 PyObject * _argo0 = 0;
3604 char *_kwnames[] = { "self","item", NULL };
3605
3606 self = self;
3607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1))
3608 return NULL;
3609 if (_argo0) {
3610 if (_argo0 == Py_None) { _arg0 = NULL; }
3611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p.");
3613 return NULL;
3614 }
3615 }
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1));
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) return NULL;
3622 }{
3623 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3624 }
3625 {
3626 delete _result;
3627 }
3628 return _resultobj;
3629 }
3630
3631 #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
3632 static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
3633 PyObject * _resultobj;
3634 wxPyListCtrl * _arg0;
3635 long _arg1;
3636 wxString * _arg2;
3637 PyObject * _argo0 = 0;
3638 PyObject * _obj2 = 0;
3639 char *_kwnames[] = { "self","item","str", NULL };
3640
3641 self = self;
3642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2))
3643 return NULL;
3644 if (_argo0) {
3645 if (_argo0 == Py_None) { _arg0 = NULL; }
3646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p.");
3648 return NULL;
3649 }
3650 }
3651 {
3652 #if PYTHON_API_VERSION >= 1009
3653 char* tmpPtr; int tmpSize;
3654 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3655 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3656 return NULL;
3657 }
3658 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3659 return NULL;
3660 _arg2 = new wxString(tmpPtr, tmpSize);
3661 #else
3662 if (!PyString_Check(_obj2)) {
3663 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3664 return NULL;
3665 }
3666 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3667 #endif
3668 }
3669 {
3670 PyThreadState* __tstate = wxPyBeginAllowThreads();
3671 wxListCtrl_SetItemText(_arg0,_arg1,*_arg2);
3672
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) return NULL;
3675 } Py_INCREF(Py_None);
3676 _resultobj = Py_None;
3677 {
3678 if (_obj2)
3679 delete _arg2;
3680 }
3681 return _resultobj;
3682 }
3683
3684 #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0))
3685 static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3686 PyObject * _resultobj;
3687 long _result;
3688 wxPyListCtrl * _arg0;
3689 long _arg1;
3690 PyObject * _argo0 = 0;
3691 char *_kwnames[] = { "self","item", NULL };
3692
3693 self = self;
3694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1))
3695 return NULL;
3696 if (_argo0) {
3697 if (_argo0 == Py_None) { _arg0 = NULL; }
3698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p.");
3700 return NULL;
3701 }
3702 }
3703 {
3704 PyThreadState* __tstate = wxPyBeginAllowThreads();
3705 _result = (long )wxListCtrl_GetItemData(_arg0,_arg1);
3706
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) return NULL;
3709 } _resultobj = Py_BuildValue("l",_result);
3710 return _resultobj;
3711 }
3712
3713 #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1))
3714 static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
3715 PyObject * _resultobj;
3716 bool _result;
3717 wxPyListCtrl * _arg0;
3718 long _arg1;
3719 long _arg2;
3720 PyObject * _argo0 = 0;
3721 char *_kwnames[] = { "self","item","data", NULL };
3722
3723 self = self;
3724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2))
3725 return NULL;
3726 if (_argo0) {
3727 if (_argo0 == Py_None) { _arg0 = NULL; }
3728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p.");
3730 return NULL;
3731 }
3732 }
3733 {
3734 PyThreadState* __tstate = wxPyBeginAllowThreads();
3735 _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2);
3736
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) return NULL;
3739 } _resultobj = Py_BuildValue("i",_result);
3740 return _resultobj;
3741 }
3742
3743 static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) {
3744 wxPoint* pos = new wxPoint;
3745 self->GetItemPosition(item, *pos);
3746 return pos;
3747 }
3748 static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3749 PyObject * _resultobj;
3750 wxPoint * _result;
3751 wxPyListCtrl * _arg0;
3752 long _arg1;
3753 PyObject * _argo0 = 0;
3754 char *_kwnames[] = { "self","item", NULL };
3755 char _ptemp[128];
3756
3757 self = self;
3758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1))
3759 return NULL;
3760 if (_argo0) {
3761 if (_argo0 == Py_None) { _arg0 = NULL; }
3762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p.");
3764 return NULL;
3765 }
3766 }
3767 {
3768 PyThreadState* __tstate = wxPyBeginAllowThreads();
3769 _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1);
3770
3771 wxPyEndAllowThreads(__tstate);
3772 if (PyErr_Occurred()) return NULL;
3773 } if (_result) {
3774 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
3775 _resultobj = Py_BuildValue("s",_ptemp);
3776 } else {
3777 Py_INCREF(Py_None);
3778 _resultobj = Py_None;
3779 }
3780 return _resultobj;
3781 }
3782
3783 static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) {
3784 wxRect* rect= new wxRect;
3785 self->GetItemRect(item, *rect, code);
3786 return rect;
3787 }
3788 static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3789 PyObject * _resultobj;
3790 wxRect * _result;
3791 wxPyListCtrl * _arg0;
3792 long _arg1;
3793 int _arg2 = (int ) (wxLIST_RECT_BOUNDS);
3794 PyObject * _argo0 = 0;
3795 char *_kwnames[] = { "self","item","code", NULL };
3796 char _ptemp[128];
3797
3798 self = self;
3799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2))
3800 return NULL;
3801 if (_argo0) {
3802 if (_argo0 == Py_None) { _arg0 = NULL; }
3803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p.");
3805 return NULL;
3806 }
3807 }
3808 {
3809 PyThreadState* __tstate = wxPyBeginAllowThreads();
3810 _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2);
3811
3812 wxPyEndAllowThreads(__tstate);
3813 if (PyErr_Occurred()) return NULL;
3814 } if (_result) {
3815 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
3816 _resultobj = Py_BuildValue("s",_ptemp);
3817 } else {
3818 Py_INCREF(Py_None);
3819 _resultobj = Py_None;
3820 }
3821 return _resultobj;
3822 }
3823
3824 #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1))
3825 static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3826 PyObject * _resultobj;
3827 bool _result;
3828 wxPyListCtrl * _arg0;
3829 long _arg1;
3830 wxPoint * _arg2;
3831 PyObject * _argo0 = 0;
3832 wxPoint temp;
3833 PyObject * _obj2 = 0;
3834 char *_kwnames[] = { "self","item","pos", NULL };
3835
3836 self = self;
3837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2))
3838 return NULL;
3839 if (_argo0) {
3840 if (_argo0 == Py_None) { _arg0 = NULL; }
3841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p.");
3843 return NULL;
3844 }
3845 }
3846 {
3847 _arg2 = &temp;
3848 if (! wxPoint_helper(_obj2, &_arg2))
3849 return NULL;
3850 }
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2);
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) return NULL;
3857 } _resultobj = Py_BuildValue("i",_result);
3858 return _resultobj;
3859 }
3860
3861 #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount())
3862 static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3863 PyObject * _resultobj;
3864 int _result;
3865 wxPyListCtrl * _arg0;
3866 PyObject * _argo0 = 0;
3867 char *_kwnames[] = { "self", NULL };
3868
3869 self = self;
3870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0))
3871 return NULL;
3872 if (_argo0) {
3873 if (_argo0 == Py_None) { _arg0 = NULL; }
3874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p.");
3876 return NULL;
3877 }
3878 }
3879 {
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 _result = (int )wxListCtrl_GetItemCount(_arg0);
3882
3883 wxPyEndAllowThreads(__tstate);
3884 if (PyErr_Occurred()) return NULL;
3885 } _resultobj = Py_BuildValue("i",_result);
3886 return _resultobj;
3887 }
3888
3889 #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount())
3890 static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3891 PyObject * _resultobj;
3892 int _result;
3893 wxPyListCtrl * _arg0;
3894 PyObject * _argo0 = 0;
3895 char *_kwnames[] = { "self", NULL };
3896
3897 self = self;
3898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0))
3899 return NULL;
3900 if (_argo0) {
3901 if (_argo0 == Py_None) { _arg0 = NULL; }
3902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p.");
3904 return NULL;
3905 }
3906 }
3907 {
3908 PyThreadState* __tstate = wxPyBeginAllowThreads();
3909 _result = (int )wxListCtrl_GetColumnCount(_arg0);
3910
3911 wxPyEndAllowThreads(__tstate);
3912 if (PyErr_Occurred()) return NULL;
3913 } _resultobj = Py_BuildValue("i",_result);
3914 return _resultobj;
3915 }
3916
3917 #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0))
3918 static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
3919 PyObject * _resultobj;
3920 int _result;
3921 wxPyListCtrl * _arg0;
3922 bool _arg1;
3923 PyObject * _argo0 = 0;
3924 int tempbool1;
3925 char *_kwnames[] = { "self","isSmall", NULL };
3926
3927 self = self;
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1))
3929 return NULL;
3930 if (_argo0) {
3931 if (_argo0 == Py_None) { _arg0 = NULL; }
3932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p.");
3934 return NULL;
3935 }
3936 }
3937 _arg1 = (bool ) tempbool1;
3938 {
3939 PyThreadState* __tstate = wxPyBeginAllowThreads();
3940 _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1);
3941
3942 wxPyEndAllowThreads(__tstate);
3943 if (PyErr_Occurred()) return NULL;
3944 } _resultobj = Py_BuildValue("i",_result);
3945 return _resultobj;
3946 }
3947
3948 #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount())
3949 static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3950 PyObject * _resultobj;
3951 int _result;
3952 wxPyListCtrl * _arg0;
3953 PyObject * _argo0 = 0;
3954 char *_kwnames[] = { "self", NULL };
3955
3956 self = self;
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0))
3958 return NULL;
3959 if (_argo0) {
3960 if (_argo0 == Py_None) { _arg0 = NULL; }
3961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p.");
3963 return NULL;
3964 }
3965 }
3966 {
3967 PyThreadState* __tstate = wxPyBeginAllowThreads();
3968 _result = (int )wxListCtrl_GetSelectedItemCount(_arg0);
3969
3970 wxPyEndAllowThreads(__tstate);
3971 if (PyErr_Occurred()) return NULL;
3972 } _resultobj = Py_BuildValue("i",_result);
3973 return _resultobj;
3974 }
3975
3976 #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour())
3977 static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3978 PyObject * _resultobj;
3979 wxColour * _result;
3980 wxPyListCtrl * _arg0;
3981 PyObject * _argo0 = 0;
3982 char *_kwnames[] = { "self", NULL };
3983 char _ptemp[128];
3984
3985 self = self;
3986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0))
3987 return NULL;
3988 if (_argo0) {
3989 if (_argo0 == Py_None) { _arg0 = NULL; }
3990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p.");
3992 return NULL;
3993 }
3994 }
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 _result = new wxColour (wxListCtrl_GetTextColour(_arg0));
3998
3999 wxPyEndAllowThreads(__tstate);
4000 if (PyErr_Occurred()) return NULL;
4001 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4002 _resultobj = Py_BuildValue("s",_ptemp);
4003 return _resultobj;
4004 }
4005
4006 #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
4007 static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4008 PyObject * _resultobj;
4009 wxPyListCtrl * _arg0;
4010 wxColour * _arg1;
4011 PyObject * _argo0 = 0;
4012 wxColour temp;
4013 PyObject * _obj1 = 0;
4014 char *_kwnames[] = { "self","col", NULL };
4015
4016 self = self;
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1))
4018 return NULL;
4019 if (_argo0) {
4020 if (_argo0 == Py_None) { _arg0 = NULL; }
4021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p.");
4023 return NULL;
4024 }
4025 }
4026 {
4027 _arg1 = &temp;
4028 if (! wxColour_helper(_obj1, &_arg1))
4029 return NULL;
4030 }
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 wxListCtrl_SetTextColour(_arg0,*_arg1);
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) return NULL;
4037 } Py_INCREF(Py_None);
4038 _resultobj = Py_None;
4039 return _resultobj;
4040 }
4041
4042 #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem())
4043 static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4044 PyObject * _resultobj;
4045 long _result;
4046 wxPyListCtrl * _arg0;
4047 PyObject * _argo0 = 0;
4048 char *_kwnames[] = { "self", NULL };
4049
4050 self = self;
4051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0))
4052 return NULL;
4053 if (_argo0) {
4054 if (_argo0 == Py_None) { _arg0 = NULL; }
4055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p.");
4057 return NULL;
4058 }
4059 }
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 _result = (long )wxListCtrl_GetTopItem(_arg0);
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) return NULL;
4066 } _resultobj = Py_BuildValue("l",_result);
4067 return _resultobj;
4068 }
4069
4070 #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1))
4071 static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4072 PyObject * _resultobj;
4073 wxPyListCtrl * _arg0;
4074 long _arg1;
4075 bool _arg2 = (bool ) TRUE;
4076 PyObject * _argo0 = 0;
4077 int tempbool2 = (int) TRUE;
4078 char *_kwnames[] = { "self","style","add", NULL };
4079
4080 self = self;
4081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2))
4082 return NULL;
4083 if (_argo0) {
4084 if (_argo0 == Py_None) { _arg0 = NULL; }
4085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p.");
4087 return NULL;
4088 }
4089 }
4090 _arg2 = (bool ) tempbool2;
4091 {
4092 PyThreadState* __tstate = wxPyBeginAllowThreads();
4093 wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2);
4094
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) return NULL;
4097 } Py_INCREF(Py_None);
4098 _resultobj = Py_None;
4099 return _resultobj;
4100 }
4101
4102 #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
4103 static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
4104 PyObject * _resultobj;
4105 wxPyListCtrl * _arg0;
4106 long _arg1;
4107 PyObject * _argo0 = 0;
4108 char *_kwnames[] = { "self","style", NULL };
4109
4110 self = self;
4111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
4112 return NULL;
4113 if (_argo0) {
4114 if (_argo0 == Py_None) { _arg0 = NULL; }
4115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p.");
4117 return NULL;
4118 }
4119 }
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
4122 wxListCtrl_SetWindowStyleFlag(_arg0,_arg1);
4123
4124 wxPyEndAllowThreads(__tstate);
4125 if (PyErr_Occurred()) return NULL;
4126 } Py_INCREF(Py_None);
4127 _resultobj = Py_None;
4128 return _resultobj;
4129 }
4130
4131 #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2))
4132 static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4133 PyObject * _resultobj;
4134 long _result;
4135 wxPyListCtrl * _arg0;
4136 long _arg1;
4137 int _arg2 = (int ) (wxLIST_NEXT_ALL);
4138 int _arg3 = (int ) (wxLIST_STATE_DONTCARE);
4139 PyObject * _argo0 = 0;
4140 char *_kwnames[] = { "self","item","geometry","state", NULL };
4141
4142 self = self;
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
4144 return NULL;
4145 if (_argo0) {
4146 if (_argo0 == Py_None) { _arg0 = NULL; }
4147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p.");
4149 return NULL;
4150 }
4151 }
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3);
4155
4156 wxPyEndAllowThreads(__tstate);
4157 if (PyErr_Occurred()) return NULL;
4158 } _resultobj = Py_BuildValue("l",_result);
4159 return _resultobj;
4160 }
4161
4162 #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0))
4163 static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4164 PyObject * _resultobj;
4165 wxImageList * _result;
4166 wxPyListCtrl * _arg0;
4167 int _arg1;
4168 PyObject * _argo0 = 0;
4169 char *_kwnames[] = { "self","which", NULL };
4170
4171 self = self;
4172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1))
4173 return NULL;
4174 if (_argo0) {
4175 if (_argo0 == Py_None) { _arg0 = NULL; }
4176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p.");
4178 return NULL;
4179 }
4180 }
4181 {
4182 PyThreadState* __tstate = wxPyBeginAllowThreads();
4183 _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1);
4184
4185 wxPyEndAllowThreads(__tstate);
4186 if (PyErr_Occurred()) return NULL;
4187 }{ _resultobj = wxPyMake_wxObject(_result); }
4188 return _resultobj;
4189 }
4190
4191 #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1))
4192 static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4193 PyObject * _resultobj;
4194 wxPyListCtrl * _arg0;
4195 wxImageList * _arg1;
4196 int _arg2;
4197 PyObject * _argo0 = 0;
4198 PyObject * _argo1 = 0;
4199 char *_kwnames[] = { "self","imageList","which", NULL };
4200
4201 self = self;
4202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2))
4203 return NULL;
4204 if (_argo0) {
4205 if (_argo0 == Py_None) { _arg0 = NULL; }
4206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p.");
4208 return NULL;
4209 }
4210 }
4211 if (_argo1) {
4212 if (_argo1 == Py_None) { _arg1 = NULL; }
4213 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4214 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p.");
4215 return NULL;
4216 }
4217 }
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 wxListCtrl_SetImageList(_arg0,_arg1,_arg2);
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) return NULL;
4224 } Py_INCREF(Py_None);
4225 _resultobj = Py_None;
4226 return _resultobj;
4227 }
4228
4229 #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1))
4230 static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4231 PyObject * _resultobj;
4232 wxPyListCtrl * _arg0;
4233 wxImageList * _arg1;
4234 int _arg2;
4235 PyObject * _argo0 = 0;
4236 PyObject * _argo1 = 0;
4237 char *_kwnames[] = { "self","imageList","which", NULL };
4238
4239 self = self;
4240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2))
4241 return NULL;
4242 if (_argo0) {
4243 if (_argo0 == Py_None) { _arg0 = NULL; }
4244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p.");
4246 return NULL;
4247 }
4248 }
4249 if (_argo1) {
4250 if (_argo1 == Py_None) { _arg1 = NULL; }
4251 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4252 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p.");
4253 return NULL;
4254 }
4255 }
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 wxListCtrl_AssignImageList(_arg0,_arg1,_arg2);
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) return NULL;
4262 } Py_INCREF(Py_None);
4263 _resultobj = Py_None;
4264 return _resultobj;
4265 }
4266
4267 #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual())
4268 static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
4269 PyObject * _resultobj;
4270 bool _result;
4271 wxPyListCtrl * _arg0;
4272 PyObject * _argo0 = 0;
4273 char *_kwnames[] = { "self", NULL };
4274
4275 self = self;
4276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0))
4277 return NULL;
4278 if (_argo0) {
4279 if (_argo0 == Py_None) { _arg0 = NULL; }
4280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p.");
4282 return NULL;
4283 }
4284 }
4285 {
4286 PyThreadState* __tstate = wxPyBeginAllowThreads();
4287 _result = (bool )wxListCtrl_IsVirtual(_arg0);
4288
4289 wxPyEndAllowThreads(__tstate);
4290 if (PyErr_Occurred()) return NULL;
4291 } _resultobj = Py_BuildValue("i",_result);
4292 return _resultobj;
4293 }
4294
4295 #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0))
4296 static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4297 PyObject * _resultobj;
4298 wxPyListCtrl * _arg0;
4299 long _arg1;
4300 PyObject * _argo0 = 0;
4301 char *_kwnames[] = { "self","item", NULL };
4302
4303 self = self;
4304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1))
4305 return NULL;
4306 if (_argo0) {
4307 if (_argo0 == Py_None) { _arg0 = NULL; }
4308 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4309 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p.");
4310 return NULL;
4311 }
4312 }
4313 {
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 wxListCtrl_RefreshItem(_arg0,_arg1);
4316
4317 wxPyEndAllowThreads(__tstate);
4318 if (PyErr_Occurred()) return NULL;
4319 } Py_INCREF(Py_None);
4320 _resultobj = Py_None;
4321 return _resultobj;
4322 }
4323
4324 #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1))
4325 static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4326 PyObject * _resultobj;
4327 wxPyListCtrl * _arg0;
4328 long _arg1;
4329 long _arg2;
4330 PyObject * _argo0 = 0;
4331 char *_kwnames[] = { "self","itemFrom","itemTo", NULL };
4332
4333 self = self;
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2))
4335 return NULL;
4336 if (_argo0) {
4337 if (_argo0 == Py_None) { _arg0 = NULL; }
4338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p.");
4340 return NULL;
4341 }
4342 }
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 wxListCtrl_RefreshItems(_arg0,_arg1,_arg2);
4346
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) return NULL;
4349 } Py_INCREF(Py_None);
4350 _resultobj = Py_None;
4351 return _resultobj;
4352 }
4353
4354 #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0))
4355 static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
4356 PyObject * _resultobj;
4357 bool _result;
4358 wxPyListCtrl * _arg0;
4359 int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT);
4360 PyObject * _argo0 = 0;
4361 char *_kwnames[] = { "self","flag", NULL };
4362
4363 self = self;
4364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1))
4365 return NULL;
4366 if (_argo0) {
4367 if (_argo0 == Py_None) { _arg0 = NULL; }
4368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p.");
4370 return NULL;
4371 }
4372 }
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 _result = (bool )wxListCtrl_Arrange(_arg0,_arg1);
4376
4377 wxPyEndAllowThreads(__tstate);
4378 if (PyErr_Occurred()) return NULL;
4379 } _resultobj = Py_BuildValue("i",_result);
4380 return _resultobj;
4381 }
4382
4383 #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0))
4384 static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4385 PyObject * _resultobj;
4386 bool _result;
4387 wxPyListCtrl * _arg0;
4388 long _arg1;
4389 PyObject * _argo0 = 0;
4390 char *_kwnames[] = { "self","item", NULL };
4391
4392 self = self;
4393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1))
4394 return NULL;
4395 if (_argo0) {
4396 if (_argo0 == Py_None) { _arg0 = NULL; }
4397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p.");
4399 return NULL;
4400 }
4401 }
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1);
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) return NULL;
4408 } _resultobj = Py_BuildValue("i",_result);
4409 return _resultobj;
4410 }
4411
4412 #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
4413 static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4414 PyObject * _resultobj;
4415 bool _result;
4416 wxPyListCtrl * _arg0;
4417 PyObject * _argo0 = 0;
4418 char *_kwnames[] = { "self", NULL };
4419
4420 self = self;
4421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0))
4422 return NULL;
4423 if (_argo0) {
4424 if (_argo0 == Py_None) { _arg0 = NULL; }
4425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p.");
4427 return NULL;
4428 }
4429 }
4430 {
4431 PyThreadState* __tstate = wxPyBeginAllowThreads();
4432 _result = (bool )wxListCtrl_DeleteAllItems(_arg0);
4433
4434 wxPyEndAllowThreads(__tstate);
4435 if (PyErr_Occurred()) return NULL;
4436 } _resultobj = Py_BuildValue("i",_result);
4437 return _resultobj;
4438 }
4439
4440 #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0))
4441 static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
4442 PyObject * _resultobj;
4443 bool _result;
4444 wxPyListCtrl * _arg0;
4445 int _arg1;
4446 PyObject * _argo0 = 0;
4447 char *_kwnames[] = { "self","col", NULL };
4448
4449 self = self;
4450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1))
4451 return NULL;
4452 if (_argo0) {
4453 if (_argo0 == Py_None) { _arg0 = NULL; }
4454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p.");
4456 return NULL;
4457 }
4458 }
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1);
4462
4463 wxPyEndAllowThreads(__tstate);
4464 if (PyErr_Occurred()) return NULL;
4465 } _resultobj = Py_BuildValue("i",_result);
4466 return _resultobj;
4467 }
4468
4469 #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns())
4470 static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
4471 PyObject * _resultobj;
4472 bool _result;
4473 wxPyListCtrl * _arg0;
4474 PyObject * _argo0 = 0;
4475 char *_kwnames[] = { "self", NULL };
4476
4477 self = self;
4478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0))
4479 return NULL;
4480 if (_argo0) {
4481 if (_argo0 == Py_None) { _arg0 = NULL; }
4482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p.");
4484 return NULL;
4485 }
4486 }
4487 {
4488 PyThreadState* __tstate = wxPyBeginAllowThreads();
4489 _result = (bool )wxListCtrl_DeleteAllColumns(_arg0);
4490
4491 wxPyEndAllowThreads(__tstate);
4492 if (PyErr_Occurred()) return NULL;
4493 } _resultobj = Py_BuildValue("i",_result);
4494 return _resultobj;
4495 }
4496
4497 #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll())
4498 static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
4499 PyObject * _resultobj;
4500 wxPyListCtrl * _arg0;
4501 PyObject * _argo0 = 0;
4502 char *_kwnames[] = { "self", NULL };
4503
4504 self = self;
4505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0))
4506 return NULL;
4507 if (_argo0) {
4508 if (_argo0 == Py_None) { _arg0 = NULL; }
4509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p.");
4511 return NULL;
4512 }
4513 }
4514 {
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 wxListCtrl_ClearAll(_arg0);
4517
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) return NULL;
4520 } Py_INCREF(Py_None);
4521 _resultobj = Py_None;
4522 return _resultobj;
4523 }
4524
4525 #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
4526 static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4527 PyObject * _resultobj;
4528 wxTextCtrl * _result;
4529 wxPyListCtrl * _arg0;
4530 long _arg1;
4531 PyObject * _argo0 = 0;
4532 char *_kwnames[] = { "self","item", NULL };
4533
4534 self = self;
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1))
4536 return NULL;
4537 if (_argo0) {
4538 if (_argo0 == Py_None) { _arg0 = NULL; }
4539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p.");
4541 return NULL;
4542 }
4543 }
4544 {
4545 PyThreadState* __tstate = wxPyBeginAllowThreads();
4546 _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1);
4547
4548 wxPyEndAllowThreads(__tstate);
4549 if (PyErr_Occurred()) return NULL;
4550 }{ _resultobj = wxPyMake_wxObject(_result); }
4551 return _resultobj;
4552 }
4553
4554 #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0))
4555 static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4556 PyObject * _resultobj;
4557 bool _result;
4558 wxPyListCtrl * _arg0;
4559 bool _arg1;
4560 PyObject * _argo0 = 0;
4561 int tempbool1;
4562 char *_kwnames[] = { "self","cancel", NULL };
4563
4564 self = self;
4565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1))
4566 return NULL;
4567 if (_argo0) {
4568 if (_argo0 == Py_None) { _arg0 = NULL; }
4569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p.");
4571 return NULL;
4572 }
4573 }
4574 _arg1 = (bool ) tempbool1;
4575 {
4576 PyThreadState* __tstate = wxPyBeginAllowThreads();
4577 _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1);
4578
4579 wxPyEndAllowThreads(__tstate);
4580 if (PyErr_Occurred()) return NULL;
4581 } _resultobj = Py_BuildValue("i",_result);
4582 return _resultobj;
4583 }
4584
4585 #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
4586 static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4587 PyObject * _resultobj;
4588 bool _result;
4589 wxPyListCtrl * _arg0;
4590 long _arg1;
4591 PyObject * _argo0 = 0;
4592 char *_kwnames[] = { "self","item", NULL };
4593
4594 self = self;
4595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1))
4596 return NULL;
4597 if (_argo0) {
4598 if (_argo0 == Py_None) { _arg0 = NULL; }
4599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p.");
4601 return NULL;
4602 }
4603 }
4604 {
4605 PyThreadState* __tstate = wxPyBeginAllowThreads();
4606 _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1);
4607
4608 wxPyEndAllowThreads(__tstate);
4609 if (PyErr_Occurred()) return NULL;
4610 } _resultobj = Py_BuildValue("i",_result);
4611 return _resultobj;
4612 }
4613
4614 #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4615 static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4616 PyObject * _resultobj;
4617 long _result;
4618 wxPyListCtrl * _arg0;
4619 long _arg1;
4620 wxString * _arg2;
4621 bool _arg3 = (bool ) FALSE;
4622 PyObject * _argo0 = 0;
4623 PyObject * _obj2 = 0;
4624 int tempbool3 = (int) FALSE;
4625 char *_kwnames[] = { "self","start","str","partial", NULL };
4626
4627 self = self;
4628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
4629 return NULL;
4630 if (_argo0) {
4631 if (_argo0 == Py_None) { _arg0 = NULL; }
4632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p.");
4634 return NULL;
4635 }
4636 }
4637 {
4638 #if PYTHON_API_VERSION >= 1009
4639 char* tmpPtr; int tmpSize;
4640 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4641 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4642 return NULL;
4643 }
4644 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4645 return NULL;
4646 _arg2 = new wxString(tmpPtr, tmpSize);
4647 #else
4648 if (!PyString_Check(_obj2)) {
4649 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4650 return NULL;
4651 }
4652 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4653 #endif
4654 }
4655 _arg3 = (bool ) tempbool3;
4656 {
4657 PyThreadState* __tstate = wxPyBeginAllowThreads();
4658 _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3);
4659
4660 wxPyEndAllowThreads(__tstate);
4661 if (PyErr_Occurred()) return NULL;
4662 } _resultobj = Py_BuildValue("l",_result);
4663 {
4664 if (_obj2)
4665 delete _arg2;
4666 }
4667 return _resultobj;
4668 }
4669
4670 #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1))
4671 static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
4672 PyObject * _resultobj;
4673 long _result;
4674 wxPyListCtrl * _arg0;
4675 long _arg1;
4676 long _arg2;
4677 PyObject * _argo0 = 0;
4678 char *_kwnames[] = { "self","start","data", NULL };
4679
4680 self = self;
4681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2))
4682 return NULL;
4683 if (_argo0) {
4684 if (_argo0 == Py_None) { _arg0 = NULL; }
4685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p.");
4687 return NULL;
4688 }
4689 }
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2);
4693
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) return NULL;
4696 } _resultobj = Py_BuildValue("l",_result);
4697 return _resultobj;
4698 }
4699
4700 #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4701 static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
4702 PyObject * _resultobj;
4703 long _result;
4704 wxPyListCtrl * _arg0;
4705 long _arg1;
4706 wxPoint * _arg2;
4707 int _arg3;
4708 PyObject * _argo0 = 0;
4709 wxPoint temp;
4710 PyObject * _obj2 = 0;
4711 char *_kwnames[] = { "self","start","pt","direction", NULL };
4712
4713 self = self;
4714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4715 return NULL;
4716 if (_argo0) {
4717 if (_argo0 == Py_None) { _arg0 = NULL; }
4718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p.");
4720 return NULL;
4721 }
4722 }
4723 {
4724 _arg2 = &temp;
4725 if (! wxPoint_helper(_obj2, &_arg2))
4726 return NULL;
4727 }
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3);
4731
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) return NULL;
4734 } _resultobj = Py_BuildValue("l",_result);
4735 return _resultobj;
4736 }
4737
4738 #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
4739 static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
4740 PyObject * _resultobj;
4741 long _result;
4742 wxPyListCtrl * _arg0;
4743 wxPoint * _arg1;
4744 int * _arg2;
4745 int temp;
4746 PyObject * _argo0 = 0;
4747 wxPoint temp0;
4748 PyObject * _obj1 = 0;
4749 char *_kwnames[] = { "self","point", NULL };
4750
4751 self = self;
4752 {
4753 _arg2 = &temp;
4754 }
4755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1))
4756 return NULL;
4757 if (_argo0) {
4758 if (_argo0 == Py_None) { _arg0 = NULL; }
4759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p.");
4761 return NULL;
4762 }
4763 }
4764 {
4765 _arg1 = &temp0;
4766 if (! wxPoint_helper(_obj1, &_arg1))
4767 return NULL;
4768 }
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2);
4772
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) return NULL;
4775 } _resultobj = Py_BuildValue("l",_result);
4776 {
4777 PyObject *o;
4778 o = PyInt_FromLong((long) (*_arg2));
4779 _resultobj = t_output_helper(_resultobj, o);
4780 }
4781 return _resultobj;
4782 }
4783
4784 #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0))
4785 static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4786 PyObject * _resultobj;
4787 long _result;
4788 wxPyListCtrl * _arg0;
4789 wxListItem * _arg1;
4790 PyObject * _argo0 = 0;
4791 PyObject * _argo1 = 0;
4792 char *_kwnames[] = { "self","info", NULL };
4793
4794 self = self;
4795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1))
4796 return NULL;
4797 if (_argo0) {
4798 if (_argo0 == Py_None) { _arg0 = NULL; }
4799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p.");
4801 return NULL;
4802 }
4803 }
4804 if (_argo1) {
4805 if (_argo1 == Py_None) { _arg1 = NULL; }
4806 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
4807 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p.");
4808 return NULL;
4809 }
4810 }
4811 {
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1);
4814
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) return NULL;
4817 } _resultobj = Py_BuildValue("l",_result);
4818 return _resultobj;
4819 }
4820
4821 #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4822 static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4823 PyObject * _resultobj;
4824 long _result;
4825 wxPyListCtrl * _arg0;
4826 long _arg1;
4827 wxString * _arg2;
4828 PyObject * _argo0 = 0;
4829 PyObject * _obj2 = 0;
4830 char *_kwnames[] = { "self","index","label", NULL };
4831
4832 self = self;
4833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2))
4834 return NULL;
4835 if (_argo0) {
4836 if (_argo0 == Py_None) { _arg0 = NULL; }
4837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p.");
4839 return NULL;
4840 }
4841 }
4842 {
4843 #if PYTHON_API_VERSION >= 1009
4844 char* tmpPtr; int tmpSize;
4845 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4846 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4847 return NULL;
4848 }
4849 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4850 return NULL;
4851 _arg2 = new wxString(tmpPtr, tmpSize);
4852 #else
4853 if (!PyString_Check(_obj2)) {
4854 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4855 return NULL;
4856 }
4857 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4858 #endif
4859 }
4860 {
4861 PyThreadState* __tstate = wxPyBeginAllowThreads();
4862 _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2);
4863
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) return NULL;
4866 } _resultobj = Py_BuildValue("l",_result);
4867 {
4868 if (_obj2)
4869 delete _arg2;
4870 }
4871 return _resultobj;
4872 }
4873
4874 #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4875 static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4876 PyObject * _resultobj;
4877 long _result;
4878 wxPyListCtrl * _arg0;
4879 long _arg1;
4880 int _arg2;
4881 PyObject * _argo0 = 0;
4882 char *_kwnames[] = { "self","index","imageIndex", NULL };
4883
4884 self = self;
4885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2))
4886 return NULL;
4887 if (_argo0) {
4888 if (_argo0 == Py_None) { _arg0 = NULL; }
4889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p.");
4891 return NULL;
4892 }
4893 }
4894 {
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2);
4897
4898 wxPyEndAllowThreads(__tstate);
4899 if (PyErr_Occurred()) return NULL;
4900 } _resultobj = Py_BuildValue("l",_result);
4901 return _resultobj;
4902 }
4903
4904 #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2))
4905 static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4906 PyObject * _resultobj;
4907 long _result;
4908 wxPyListCtrl * _arg0;
4909 long _arg1;
4910 wxString * _arg2;
4911 int _arg3;
4912 PyObject * _argo0 = 0;
4913 PyObject * _obj2 = 0;
4914 char *_kwnames[] = { "self","index","label","imageIndex", NULL };
4915
4916 self = self;
4917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4918 return NULL;
4919 if (_argo0) {
4920 if (_argo0 == Py_None) { _arg0 = NULL; }
4921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p.");
4923 return NULL;
4924 }
4925 }
4926 {
4927 #if PYTHON_API_VERSION >= 1009
4928 char* tmpPtr; int tmpSize;
4929 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4930 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4931 return NULL;
4932 }
4933 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4934 return NULL;
4935 _arg2 = new wxString(tmpPtr, tmpSize);
4936 #else
4937 if (!PyString_Check(_obj2)) {
4938 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4939 return NULL;
4940 }
4941 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4942 #endif
4943 }
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3);
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) return NULL;
4950 } _resultobj = Py_BuildValue("l",_result);
4951 {
4952 if (_obj2)
4953 delete _arg2;
4954 }
4955 return _resultobj;
4956 }
4957
4958 #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
4959 static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4960 PyObject * _resultobj;
4961 long _result;
4962 wxPyListCtrl * _arg0;
4963 long _arg1;
4964 wxListItem * _arg2;
4965 PyObject * _argo0 = 0;
4966 PyObject * _argo2 = 0;
4967 char *_kwnames[] = { "self","col","info", NULL };
4968
4969 self = self;
4970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2))
4971 return NULL;
4972 if (_argo0) {
4973 if (_argo0 == Py_None) { _arg0 = NULL; }
4974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p.");
4976 return NULL;
4977 }
4978 }
4979 if (_argo2) {
4980 if (_argo2 == Py_None) { _arg2 = NULL; }
4981 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
4982 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p.");
4983 return NULL;
4984 }
4985 }
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2);
4989
4990 wxPyEndAllowThreads(__tstate);
4991 if (PyErr_Occurred()) return NULL;
4992 } _resultobj = Py_BuildValue("l",_result);
4993 return _resultobj;
4994 }
4995
4996 #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4997 static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
4998 PyObject * _resultobj;
4999 long _result;
5000 wxPyListCtrl * _arg0;
5001 long _arg1;
5002 wxString * _arg2;
5003 int _arg3 = (int ) (wxLIST_FORMAT_LEFT);
5004 int _arg4 = (int ) -1;
5005 PyObject * _argo0 = 0;
5006 PyObject * _obj2 = 0;
5007 char *_kwnames[] = { "self","col","heading","format","width", NULL };
5008
5009 self = self;
5010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4))
5011 return NULL;
5012 if (_argo0) {
5013 if (_argo0 == Py_None) { _arg0 = NULL; }
5014 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5015 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p.");
5016 return NULL;
5017 }
5018 }
5019 {
5020 #if PYTHON_API_VERSION >= 1009
5021 char* tmpPtr; int tmpSize;
5022 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
5023 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5024 return NULL;
5025 }
5026 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
5027 return NULL;
5028 _arg2 = new wxString(tmpPtr, tmpSize);
5029 #else
5030 if (!PyString_Check(_obj2)) {
5031 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5032 return NULL;
5033 }
5034 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
5035 #endif
5036 }
5037 {
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4);
5040
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) return NULL;
5043 } _resultobj = Py_BuildValue("l",_result);
5044 {
5045 if (_obj2)
5046 delete _arg2;
5047 }
5048 return _resultobj;
5049 }
5050
5051 #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0))
5052 static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5053 PyObject * _resultobj;
5054 wxPyListCtrl * _arg0;
5055 long _arg1;
5056 PyObject * _argo0 = 0;
5057 char *_kwnames[] = { "self","count", NULL };
5058
5059 self = self;
5060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1))
5061 return NULL;
5062 if (_argo0) {
5063 if (_argo0 == Py_None) { _arg0 = NULL; }
5064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p.");
5066 return NULL;
5067 }
5068 }
5069 {
5070 PyThreadState* __tstate = wxPyBeginAllowThreads();
5071 wxListCtrl_SetItemCount(_arg0,_arg1);
5072
5073 wxPyEndAllowThreads(__tstate);
5074 if (PyErr_Occurred()) return NULL;
5075 } Py_INCREF(Py_None);
5076 _resultobj = Py_None;
5077 return _resultobj;
5078 }
5079
5080 #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1))
5081 static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
5082 PyObject * _resultobj;
5083 bool _result;
5084 wxPyListCtrl * _arg0;
5085 int _arg1;
5086 int _arg2;
5087 PyObject * _argo0 = 0;
5088 char *_kwnames[] = { "self","dx","dy", NULL };
5089
5090 self = self;
5091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2))
5092 return NULL;
5093 if (_argo0) {
5094 if (_argo0 == Py_None) { _arg0 = NULL; }
5095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p.");
5097 return NULL;
5098 }
5099 }
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2);
5103
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) return NULL;
5106 } _resultobj = Py_BuildValue("i",_result);
5107 return _resultobj;
5108 }
5109
5110 static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) {
5111 if (!PyCallable_Check(func))
5112 return FALSE;
5113 return self->SortItems(wxPyListCtrl_SortItems, (long)func);
5114 }
5115 static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5116 PyObject * _resultobj;
5117 bool _result;
5118 wxPyListCtrl * _arg0;
5119 PyObject * _arg1;
5120 PyObject * _argo0 = 0;
5121 PyObject * _obj1 = 0;
5122 char *_kwnames[] = { "self","func", NULL };
5123
5124 self = self;
5125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1))
5126 return NULL;
5127 if (_argo0) {
5128 if (_argo0 == Py_None) { _arg0 = NULL; }
5129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p.");
5131 return NULL;
5132 }
5133 }
5134 {
5135 _arg1 = _obj1;
5136 }
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1);
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) return NULL;
5143 } _resultobj = Py_BuildValue("i",_result);
5144 return _resultobj;
5145 }
5146
5147 static void *SwigwxListViewTowxPyListCtrl(void *ptr) {
5148 wxListView *src;
5149 wxPyListCtrl *dest;
5150 src = (wxListView *) ptr;
5151 dest = (wxPyListCtrl *) src;
5152 return (void *) dest;
5153 }
5154
5155 static void *SwigwxListViewTowxControl(void *ptr) {
5156 wxListView *src;
5157 wxControl *dest;
5158 src = (wxListView *) ptr;
5159 dest = (wxControl *) src;
5160 return (void *) dest;
5161 }
5162
5163 static void *SwigwxListViewTowxWindow(void *ptr) {
5164 wxListView *src;
5165 wxWindow *dest;
5166 src = (wxListView *) ptr;
5167 dest = (wxWindow *) src;
5168 return (void *) dest;
5169 }
5170
5171 static void *SwigwxListViewTowxEvtHandler(void *ptr) {
5172 wxListView *src;
5173 wxEvtHandler *dest;
5174 src = (wxListView *) ptr;
5175 dest = (wxEvtHandler *) src;
5176 return (void *) dest;
5177 }
5178
5179 static void *SwigwxListViewTowxObject(void *ptr) {
5180 wxListView *src;
5181 wxObject *dest;
5182 src = (wxListView *) ptr;
5183 dest = (wxObject *) src;
5184 return (void *) dest;
5185 }
5186
5187 #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5188 static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) {
5189 PyObject * _resultobj;
5190 wxListView * _result;
5191 wxWindow * _arg0;
5192 wxWindowID _arg1 = (wxWindowID ) -1;
5193 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5194 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5195 long _arg4 = (long ) (wxLC_REPORT);
5196 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
5197 wxString * _arg6 = (wxString *) &"listctrl";
5198 PyObject * _argo0 = 0;
5199 wxPoint temp;
5200 PyObject * _obj2 = 0;
5201 wxSize temp0;
5202 PyObject * _obj3 = 0;
5203 PyObject * _argo5 = 0;
5204 PyObject * _obj6 = 0;
5205 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
5206 char _ptemp[128];
5207
5208 self = self;
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6))
5210 return NULL;
5211 if (_argo0) {
5212 if (_argo0 == Py_None) { _arg0 = NULL; }
5213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p.");
5215 return NULL;
5216 }
5217 }
5218 if (_obj2)
5219 {
5220 _arg2 = &temp;
5221 if (! wxPoint_helper(_obj2, &_arg2))
5222 return NULL;
5223 }
5224 if (_obj3)
5225 {
5226 _arg3 = &temp0;
5227 if (! wxSize_helper(_obj3, &_arg3))
5228 return NULL;
5229 }
5230 if (_argo5) {
5231 if (_argo5 == Py_None) { _arg5 = NULL; }
5232 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
5233 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p.");
5234 return NULL;
5235 }
5236 }
5237 if (_obj6)
5238 {
5239 #if PYTHON_API_VERSION >= 1009
5240 char* tmpPtr; int tmpSize;
5241 if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
5242 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5243 return NULL;
5244 }
5245 if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
5246 return NULL;
5247 _arg6 = new wxString(tmpPtr, tmpSize);
5248 #else
5249 if (!PyString_Check(_obj6)) {
5250 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5251 return NULL;
5252 }
5253 _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
5254 #endif
5255 }
5256 {
5257 PyThreadState* __tstate = wxPyBeginAllowThreads();
5258 _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6);
5259
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) return NULL;
5262 } if (_result) {
5263 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p");
5264 _resultobj = Py_BuildValue("s",_ptemp);
5265 } else {
5266 Py_INCREF(Py_None);
5267 _resultobj = Py_None;
5268 }
5269 {
5270 if (_obj6)
5271 delete _arg6;
5272 }
5273 return _resultobj;
5274 }
5275
5276 #define new_wxPreListView() (new wxListView())
5277 static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
5278 PyObject * _resultobj;
5279 wxListView * _result;
5280 char *_kwnames[] = { NULL };
5281 char _ptemp[128];
5282
5283 self = self;
5284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames))
5285 return NULL;
5286 {
5287 PyThreadState* __tstate = wxPyBeginAllowThreads();
5288 _result = (wxListView *)new_wxPreListView();
5289
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) return NULL;
5292 } if (_result) {
5293 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p");
5294 _resultobj = Py_BuildValue("s",_ptemp);
5295 } else {
5296 Py_INCREF(Py_None);
5297 _resultobj = Py_None;
5298 }
5299 return _resultobj;
5300 }
5301
5302 #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5303 static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5304 PyObject * _resultobj;
5305 bool _result;
5306 wxListView * _arg0;
5307 wxWindow * _arg1;
5308 wxWindowID _arg2 = (wxWindowID ) -1;
5309 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5310 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5311 long _arg5 = (long ) (wxLC_REPORT);
5312 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
5313 wxString * _arg7 = (wxString *) &"listctrl";
5314 PyObject * _argo0 = 0;
5315 PyObject * _argo1 = 0;
5316 wxPoint temp;
5317 PyObject * _obj3 = 0;
5318 wxSize temp0;
5319 PyObject * _obj4 = 0;
5320 PyObject * _argo6 = 0;
5321 PyObject * _obj7 = 0;
5322 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
5323
5324 self = self;
5325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
5326 return NULL;
5327 if (_argo0) {
5328 if (_argo0 == Py_None) { _arg0 = NULL; }
5329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p.");
5331 return NULL;
5332 }
5333 }
5334 if (_argo1) {
5335 if (_argo1 == Py_None) { _arg1 = NULL; }
5336 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5337 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p.");
5338 return NULL;
5339 }
5340 }
5341 if (_obj3)
5342 {
5343 _arg3 = &temp;
5344 if (! wxPoint_helper(_obj3, &_arg3))
5345 return NULL;
5346 }
5347 if (_obj4)
5348 {
5349 _arg4 = &temp0;
5350 if (! wxSize_helper(_obj4, &_arg4))
5351 return NULL;
5352 }
5353 if (_argo6) {
5354 if (_argo6 == Py_None) { _arg6 = NULL; }
5355 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
5356 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p.");
5357 return NULL;
5358 }
5359 }
5360 if (_obj7)
5361 {
5362 #if PYTHON_API_VERSION >= 1009
5363 char* tmpPtr; int tmpSize;
5364 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
5365 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5366 return NULL;
5367 }
5368 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
5369 return NULL;
5370 _arg7 = new wxString(tmpPtr, tmpSize);
5371 #else
5372 if (!PyString_Check(_obj7)) {
5373 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5374 return NULL;
5375 }
5376 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
5377 #endif
5378 }
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
5382
5383 wxPyEndAllowThreads(__tstate);
5384 if (PyErr_Occurred()) return NULL;
5385 } _resultobj = Py_BuildValue("i",_result);
5386 {
5387 if (_obj7)
5388 delete _arg7;
5389 }
5390 return _resultobj;
5391 }
5392
5393 #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1))
5394 static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5395 PyObject * _resultobj;
5396 wxListView * _arg0;
5397 long _arg1;
5398 bool _arg2 = (bool ) TRUE;
5399 PyObject * _argo0 = 0;
5400 int tempbool2 = (int) TRUE;
5401 char *_kwnames[] = { "self","n","on", NULL };
5402
5403 self = self;
5404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2))
5405 return NULL;
5406 if (_argo0) {
5407 if (_argo0 == Py_None) { _arg0 = NULL; }
5408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p.");
5410 return NULL;
5411 }
5412 }
5413 _arg2 = (bool ) tempbool2;
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 wxListView_Select(_arg0,_arg1,_arg2);
5417
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) return NULL;
5420 } Py_INCREF(Py_None);
5421 _resultobj = Py_None;
5422 return _resultobj;
5423 }
5424
5425 #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0))
5426 static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject * _resultobj;
5428 wxListView * _arg0;
5429 long _arg1;
5430 PyObject * _argo0 = 0;
5431 char *_kwnames[] = { "self","index", NULL };
5432
5433 self = self;
5434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1))
5435 return NULL;
5436 if (_argo0) {
5437 if (_argo0 == Py_None) { _arg0 = NULL; }
5438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p.");
5440 return NULL;
5441 }
5442 }
5443 {
5444 PyThreadState* __tstate = wxPyBeginAllowThreads();
5445 wxListView_Focus(_arg0,_arg1);
5446
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) return NULL;
5449 } Py_INCREF(Py_None);
5450 _resultobj = Py_None;
5451 return _resultobj;
5452 }
5453
5454 #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem())
5455 static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5456 PyObject * _resultobj;
5457 long _result;
5458 wxListView * _arg0;
5459 PyObject * _argo0 = 0;
5460 char *_kwnames[] = { "self", NULL };
5461
5462 self = self;
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0))
5464 return NULL;
5465 if (_argo0) {
5466 if (_argo0 == Py_None) { _arg0 = NULL; }
5467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p.");
5469 return NULL;
5470 }
5471 }
5472 {
5473 PyThreadState* __tstate = wxPyBeginAllowThreads();
5474 _result = (long )wxListView_GetFocusedItem(_arg0);
5475
5476 wxPyEndAllowThreads(__tstate);
5477 if (PyErr_Occurred()) return NULL;
5478 } _resultobj = Py_BuildValue("l",_result);
5479 return _resultobj;
5480 }
5481
5482 #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0))
5483 static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5484 PyObject * _resultobj;
5485 long _result;
5486 wxListView * _arg0;
5487 long _arg1;
5488 PyObject * _argo0 = 0;
5489 char *_kwnames[] = { "self","item", NULL };
5490
5491 self = self;
5492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1))
5493 return NULL;
5494 if (_argo0) {
5495 if (_argo0 == Py_None) { _arg0 = NULL; }
5496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p.");
5498 return NULL;
5499 }
5500 }
5501 {
5502 PyThreadState* __tstate = wxPyBeginAllowThreads();
5503 _result = (long )wxListView_GetNextSelected(_arg0,_arg1);
5504
5505 wxPyEndAllowThreads(__tstate);
5506 if (PyErr_Occurred()) return NULL;
5507 } _resultobj = Py_BuildValue("l",_result);
5508 return _resultobj;
5509 }
5510
5511 #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected())
5512 static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5513 PyObject * _resultobj;
5514 long _result;
5515 wxListView * _arg0;
5516 PyObject * _argo0 = 0;
5517 char *_kwnames[] = { "self", NULL };
5518
5519 self = self;
5520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0))
5521 return NULL;
5522 if (_argo0) {
5523 if (_argo0 == Py_None) { _arg0 = NULL; }
5524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p.");
5526 return NULL;
5527 }
5528 }
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 _result = (long )wxListView_GetFirstSelected(_arg0);
5532
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) return NULL;
5535 } _resultobj = Py_BuildValue("l",_result);
5536 return _resultobj;
5537 }
5538
5539 #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
5540 static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5541 PyObject * _resultobj;
5542 bool _result;
5543 wxListView * _arg0;
5544 long _arg1;
5545 PyObject * _argo0 = 0;
5546 char *_kwnames[] = { "self","index", NULL };
5547
5548 self = self;
5549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1))
5550 return NULL;
5551 if (_argo0) {
5552 if (_argo0 == Py_None) { _arg0 = NULL; }
5553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p.");
5555 return NULL;
5556 }
5557 }
5558 {
5559 PyThreadState* __tstate = wxPyBeginAllowThreads();
5560 _result = (bool )wxListView_IsSelected(_arg0,_arg1);
5561
5562 wxPyEndAllowThreads(__tstate);
5563 if (PyErr_Occurred()) return NULL;
5564 } _resultobj = Py_BuildValue("i",_result);
5565 return _resultobj;
5566 }
5567
5568 #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1))
5569 static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5570 PyObject * _resultobj;
5571 wxListView * _arg0;
5572 int _arg1;
5573 int _arg2;
5574 PyObject * _argo0 = 0;
5575 char *_kwnames[] = { "self","col","image", NULL };
5576
5577 self = self;
5578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2))
5579 return NULL;
5580 if (_argo0) {
5581 if (_argo0 == Py_None) { _arg0 = NULL; }
5582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p.");
5584 return NULL;
5585 }
5586 }
5587 {
5588 PyThreadState* __tstate = wxPyBeginAllowThreads();
5589 wxListView_SetColumnImage(_arg0,_arg1,_arg2);
5590
5591 wxPyEndAllowThreads(__tstate);
5592 if (PyErr_Occurred()) return NULL;
5593 } Py_INCREF(Py_None);
5594 _resultobj = Py_None;
5595 return _resultobj;
5596 }
5597
5598 #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0))
5599 static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5600 PyObject * _resultobj;
5601 wxListView * _arg0;
5602 int _arg1;
5603 PyObject * _argo0 = 0;
5604 char *_kwnames[] = { "self","col", NULL };
5605
5606 self = self;
5607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1))
5608 return NULL;
5609 if (_argo0) {
5610 if (_argo0 == Py_None) { _arg0 = NULL; }
5611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p.");
5613 return NULL;
5614 }
5615 }
5616 {
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 wxListView_ClearColumnImage(_arg0,_arg1);
5619
5620 wxPyEndAllowThreads(__tstate);
5621 if (PyErr_Occurred()) return NULL;
5622 } Py_INCREF(Py_None);
5623 _resultobj = Py_None;
5624 return _resultobj;
5625 }
5626
5627 #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2))
5628 static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5629 PyObject * _resultobj;
5630 wxTreeItemAttr * _result;
5631 wxColour * _arg0 = (wxColour *) &wxNullColour;
5632 wxColour * _arg1 = (wxColour *) &wxNullColour;
5633 wxFont * _arg2 = (wxFont *) &wxNullFont;
5634 wxColour temp;
5635 PyObject * _obj0 = 0;
5636 wxColour temp0;
5637 PyObject * _obj1 = 0;
5638 PyObject * _argo2 = 0;
5639 char *_kwnames[] = { "colText","colBack","font", NULL };
5640 char _ptemp[128];
5641
5642 self = self;
5643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2))
5644 return NULL;
5645 if (_obj0)
5646 {
5647 _arg0 = &temp;
5648 if (! wxColour_helper(_obj0, &_arg0))
5649 return NULL;
5650 }
5651 if (_obj1)
5652 {
5653 _arg1 = &temp0;
5654 if (! wxColour_helper(_obj1, &_arg1))
5655 return NULL;
5656 }
5657 if (_argo2) {
5658 if (_argo2 == Py_None) { _arg2 = NULL; }
5659 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5660 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p.");
5661 return NULL;
5662 }
5663 }
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2);
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) return NULL;
5670 } if (_result) {
5671 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p");
5672 _resultobj = Py_BuildValue("s",_ptemp);
5673 } else {
5674 Py_INCREF(Py_None);
5675 _resultobj = Py_None;
5676 }
5677 return _resultobj;
5678 }
5679
5680 #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
5681 static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5682 PyObject * _resultobj;
5683 wxTreeItemAttr * _arg0;
5684 wxColour * _arg1;
5685 PyObject * _argo0 = 0;
5686 wxColour temp;
5687 PyObject * _obj1 = 0;
5688 char *_kwnames[] = { "self","colText", NULL };
5689
5690 self = self;
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
5692 return NULL;
5693 if (_argo0) {
5694 if (_argo0 == Py_None) { _arg0 = NULL; }
5695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p.");
5697 return NULL;
5698 }
5699 }
5700 {
5701 _arg1 = &temp;
5702 if (! wxColour_helper(_obj1, &_arg1))
5703 return NULL;
5704 }
5705 {
5706 PyThreadState* __tstate = wxPyBeginAllowThreads();
5707 wxTreeItemAttr_SetTextColour(_arg0,*_arg1);
5708
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) return NULL;
5711 } Py_INCREF(Py_None);
5712 _resultobj = Py_None;
5713 return _resultobj;
5714 }
5715
5716 #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
5717 static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5718 PyObject * _resultobj;
5719 wxTreeItemAttr * _arg0;
5720 wxColour * _arg1;
5721 PyObject * _argo0 = 0;
5722 wxColour temp;
5723 PyObject * _obj1 = 0;
5724 char *_kwnames[] = { "self","colBack", NULL };
5725
5726 self = self;
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
5728 return NULL;
5729 if (_argo0) {
5730 if (_argo0 == Py_None) { _arg0 = NULL; }
5731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p.");
5733 return NULL;
5734 }
5735 }
5736 {
5737 _arg1 = &temp;
5738 if (! wxColour_helper(_obj1, &_arg1))
5739 return NULL;
5740 }
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1);
5744
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) return NULL;
5747 } Py_INCREF(Py_None);
5748 _resultobj = Py_None;
5749 return _resultobj;
5750 }
5751
5752 #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5753 static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5754 PyObject * _resultobj;
5755 wxTreeItemAttr * _arg0;
5756 wxFont * _arg1;
5757 PyObject * _argo0 = 0;
5758 PyObject * _argo1 = 0;
5759 char *_kwnames[] = { "self","font", NULL };
5760
5761 self = self;
5762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1))
5763 return NULL;
5764 if (_argo0) {
5765 if (_argo0 == Py_None) { _arg0 = NULL; }
5766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p.");
5768 return NULL;
5769 }
5770 }
5771 if (_argo1) {
5772 if (_argo1 == Py_None) { _arg1 = NULL; }
5773 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5774 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p.");
5775 return NULL;
5776 }
5777 }
5778 {
5779 PyThreadState* __tstate = wxPyBeginAllowThreads();
5780 wxTreeItemAttr_SetFont(_arg0,*_arg1);
5781
5782 wxPyEndAllowThreads(__tstate);
5783 if (PyErr_Occurred()) return NULL;
5784 } Py_INCREF(Py_None);
5785 _resultobj = Py_None;
5786 return _resultobj;
5787 }
5788
5789 #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
5790 static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5791 PyObject * _resultobj;
5792 bool _result;
5793 wxTreeItemAttr * _arg0;
5794 PyObject * _argo0 = 0;
5795 char *_kwnames[] = { "self", NULL };
5796
5797 self = self;
5798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0))
5799 return NULL;
5800 if (_argo0) {
5801 if (_argo0 == Py_None) { _arg0 = NULL; }
5802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p.");
5804 return NULL;
5805 }
5806 }
5807 {
5808 PyThreadState* __tstate = wxPyBeginAllowThreads();
5809 _result = (bool )wxTreeItemAttr_HasTextColour(_arg0);
5810
5811 wxPyEndAllowThreads(__tstate);
5812 if (PyErr_Occurred()) return NULL;
5813 } _resultobj = Py_BuildValue("i",_result);
5814 return _resultobj;
5815 }
5816
5817 #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
5818 static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5819 PyObject * _resultobj;
5820 bool _result;
5821 wxTreeItemAttr * _arg0;
5822 PyObject * _argo0 = 0;
5823 char *_kwnames[] = { "self", NULL };
5824
5825 self = self;
5826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0))
5827 return NULL;
5828 if (_argo0) {
5829 if (_argo0 == Py_None) { _arg0 = NULL; }
5830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p.");
5832 return NULL;
5833 }
5834 }
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0);
5838
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) return NULL;
5841 } _resultobj = Py_BuildValue("i",_result);
5842 return _resultobj;
5843 }
5844
5845 #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont())
5846 static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5847 PyObject * _resultobj;
5848 bool _result;
5849 wxTreeItemAttr * _arg0;
5850 PyObject * _argo0 = 0;
5851 char *_kwnames[] = { "self", NULL };
5852
5853 self = self;
5854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0))
5855 return NULL;
5856 if (_argo0) {
5857 if (_argo0 == Py_None) { _arg0 = NULL; }
5858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p.");
5860 return NULL;
5861 }
5862 }
5863 {
5864 PyThreadState* __tstate = wxPyBeginAllowThreads();
5865 _result = (bool )wxTreeItemAttr_HasFont(_arg0);
5866
5867 wxPyEndAllowThreads(__tstate);
5868 if (PyErr_Occurred()) return NULL;
5869 } _resultobj = Py_BuildValue("i",_result);
5870 return _resultobj;
5871 }
5872
5873 #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
5874 static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5875 PyObject * _resultobj;
5876 wxColour * _result;
5877 wxTreeItemAttr * _arg0;
5878 PyObject * _argo0 = 0;
5879 char *_kwnames[] = { "self", NULL };
5880 char _ptemp[128];
5881
5882 self = self;
5883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0))
5884 return NULL;
5885 if (_argo0) {
5886 if (_argo0 == Py_None) { _arg0 = NULL; }
5887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p.");
5889 return NULL;
5890 }
5891 }
5892 {
5893 PyThreadState* __tstate = wxPyBeginAllowThreads();
5894 _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0));
5895
5896 wxPyEndAllowThreads(__tstate);
5897 if (PyErr_Occurred()) return NULL;
5898 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5899 _resultobj = Py_BuildValue("s",_ptemp);
5900 return _resultobj;
5901 }
5902
5903 #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
5904 static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5905 PyObject * _resultobj;
5906 wxColour * _result;
5907 wxTreeItemAttr * _arg0;
5908 PyObject * _argo0 = 0;
5909 char *_kwnames[] = { "self", NULL };
5910 char _ptemp[128];
5911
5912 self = self;
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0))
5914 return NULL;
5915 if (_argo0) {
5916 if (_argo0 == Py_None) { _arg0 = NULL; }
5917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p.");
5919 return NULL;
5920 }
5921 }
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0));
5925
5926 wxPyEndAllowThreads(__tstate);
5927 if (PyErr_Occurred()) return NULL;
5928 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5929 _resultobj = Py_BuildValue("s",_ptemp);
5930 return _resultobj;
5931 }
5932
5933 #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont())
5934 static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5935 PyObject * _resultobj;
5936 wxFont * _result;
5937 wxTreeItemAttr * _arg0;
5938 PyObject * _argo0 = 0;
5939 char *_kwnames[] = { "self", NULL };
5940 char _ptemp[128];
5941
5942 self = self;
5943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0))
5944 return NULL;
5945 if (_argo0) {
5946 if (_argo0 == Py_None) { _arg0 = NULL; }
5947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p.");
5949 return NULL;
5950 }
5951 }
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 _result = new wxFont (wxTreeItemAttr_GetFont(_arg0));
5955
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) return NULL;
5958 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
5959 _resultobj = Py_BuildValue("s",_ptemp);
5960 return _resultobj;
5961 }
5962
5963 #define new_wxTreeItemId() (new wxTreeItemId())
5964 static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
5965 PyObject * _resultobj;
5966 wxTreeItemId * _result;
5967 char *_kwnames[] = { NULL };
5968 char _ptemp[128];
5969
5970 self = self;
5971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames))
5972 return NULL;
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 _result = (wxTreeItemId *)new_wxTreeItemId();
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) return NULL;
5979 } if (_result) {
5980 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
5981 _resultobj = Py_BuildValue("s",_ptemp);
5982 } else {
5983 Py_INCREF(Py_None);
5984 _resultobj = Py_None;
5985 }
5986 return _resultobj;
5987 }
5988
5989 #define delete_wxTreeItemId(_swigobj) (delete _swigobj)
5990 static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
5991 PyObject * _resultobj;
5992 wxTreeItemId * _arg0;
5993 PyObject * _argo0 = 0;
5994 char *_kwnames[] = { "self", NULL };
5995
5996 self = self;
5997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0))
5998 return NULL;
5999 if (_argo0) {
6000 if (_argo0 == Py_None) { _arg0 = NULL; }
6001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
6002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p.");
6003 return NULL;
6004 }
6005 }
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 delete_wxTreeItemId(_arg0);
6009
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) return NULL;
6012 } Py_INCREF(Py_None);
6013 _resultobj = Py_None;
6014 return _resultobj;
6015 }
6016
6017 #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk())
6018 static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
6019 PyObject * _resultobj;
6020 bool _result;
6021 wxTreeItemId * _arg0;
6022 PyObject * _argo0 = 0;
6023 char *_kwnames[] = { "self", NULL };
6024
6025 self = self;
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0))
6027 return NULL;
6028 if (_argo0) {
6029 if (_argo0 == Py_None) { _arg0 = NULL; }
6030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
6031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p.");
6032 return NULL;
6033 }
6034 }
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 _result = (bool )wxTreeItemId_IsOk(_arg0);
6038
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) return NULL;
6041 } _resultobj = Py_BuildValue("i",_result);
6042 return _resultobj;
6043 }
6044
6045 static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) {
6046 if (! other) return -1;
6047 return *self != *other;
6048 }
6049 static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
6050 PyObject * _resultobj;
6051 int _result;
6052 wxTreeItemId * _arg0;
6053 wxTreeItemId * _arg1;
6054 PyObject * _argo0 = 0;
6055 PyObject * _argo1 = 0;
6056 char *_kwnames[] = { "self","other", NULL };
6057
6058 self = self;
6059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1))
6060 return NULL;
6061 if (_argo0) {
6062 if (_argo0 == Py_None) { _arg0 = NULL; }
6063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
6064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
6065 return NULL;
6066 }
6067 }
6068 if (_argo1) {
6069 if (_argo1 == Py_None) { _arg1 = NULL; }
6070 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6071 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
6072 return NULL;
6073 }
6074 }
6075 {
6076 PyThreadState* __tstate = wxPyBeginAllowThreads();
6077 _result = (int )wxTreeItemId___cmp__(_arg0,_arg1);
6078
6079 wxPyEndAllowThreads(__tstate);
6080 if (PyErr_Occurred()) return NULL;
6081 } _resultobj = Py_BuildValue("i",_result);
6082 return _resultobj;
6083 }
6084
6085 static void *SwigwxPyTreeItemDataTowxObject(void *ptr) {
6086 wxPyTreeItemData *src;
6087 wxObject *dest;
6088 src = (wxPyTreeItemData *) ptr;
6089 dest = (wxObject *) src;
6090 return (void *) dest;
6091 }
6092
6093 #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0))
6094 static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
6095 PyObject * _resultobj;
6096 wxPyTreeItemData * _result;
6097 PyObject * _arg0 = (PyObject *) NULL;
6098 PyObject * _obj0 = 0;
6099 char *_kwnames[] = { "obj", NULL };
6100 char _ptemp[128];
6101
6102 self = self;
6103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0))
6104 return NULL;
6105 if (_obj0)
6106 {
6107 _arg0 = _obj0;
6108 }
6109 {
6110 PyThreadState* __tstate = wxPyBeginAllowThreads();
6111 _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0);
6112
6113 wxPyEndAllowThreads(__tstate);
6114 if (PyErr_Occurred()) return NULL;
6115 } if (_result) {
6116 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
6117 _resultobj = Py_BuildValue("s",_ptemp);
6118 } else {
6119 Py_INCREF(Py_None);
6120 _resultobj = Py_None;
6121 }
6122 return _resultobj;
6123 }
6124
6125 #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData())
6126 static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
6127 PyObject * _resultobj;
6128 PyObject * _result;
6129 wxPyTreeItemData * _arg0;
6130 PyObject * _argo0 = 0;
6131 char *_kwnames[] = { "self", NULL };
6132
6133 self = self;
6134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0))
6135 return NULL;
6136 if (_argo0) {
6137 if (_argo0 == Py_None) { _arg0 = NULL; }
6138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p.");
6140 return NULL;
6141 }
6142 }
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 _result = (PyObject *)wxTreeItemData_GetData(_arg0);
6146
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) return NULL;
6149 }{
6150 _resultobj = _result;
6151 }
6152 return _resultobj;
6153 }
6154
6155 #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
6156 static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
6157 PyObject * _resultobj;
6158 wxPyTreeItemData * _arg0;
6159 PyObject * _arg1;
6160 PyObject * _argo0 = 0;
6161 PyObject * _obj1 = 0;
6162 char *_kwnames[] = { "self","obj", NULL };
6163
6164 self = self;
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1))
6166 return NULL;
6167 if (_argo0) {
6168 if (_argo0 == Py_None) { _arg0 = NULL; }
6169 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6170 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p.");
6171 return NULL;
6172 }
6173 }
6174 {
6175 _arg1 = _obj1;
6176 }
6177 {
6178 PyThreadState* __tstate = wxPyBeginAllowThreads();
6179 wxTreeItemData_SetData(_arg0,_arg1);
6180
6181 wxPyEndAllowThreads(__tstate);
6182 if (PyErr_Occurred()) return NULL;
6183 } Py_INCREF(Py_None);
6184 _resultobj = Py_None;
6185 return _resultobj;
6186 }
6187
6188 #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId())
6189 static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6190 PyObject * _resultobj;
6191 wxTreeItemId * _result;
6192 wxPyTreeItemData * _arg0;
6193 PyObject * _argo0 = 0;
6194 char *_kwnames[] = { "self", NULL };
6195 char _ptemp[128];
6196
6197 self = self;
6198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0))
6199 return NULL;
6200 if (_argo0) {
6201 if (_argo0 == Py_None) { _arg0 = NULL; }
6202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p.");
6204 return NULL;
6205 }
6206 }
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0);
6210 _result = (wxTreeItemId *) &_result_ref;
6211
6212 wxPyEndAllowThreads(__tstate);
6213 if (PyErr_Occurred()) return NULL;
6214 } if (_result) {
6215 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
6216 _resultobj = Py_BuildValue("s",_ptemp);
6217 } else {
6218 Py_INCREF(Py_None);
6219 _resultobj = Py_None;
6220 }
6221 return _resultobj;
6222 }
6223
6224 #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
6225 static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject * _resultobj;
6227 wxPyTreeItemData * _arg0;
6228 wxTreeItemId * _arg1;
6229 PyObject * _argo0 = 0;
6230 PyObject * _argo1 = 0;
6231 char *_kwnames[] = { "self","id", NULL };
6232
6233 self = self;
6234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1))
6235 return NULL;
6236 if (_argo0) {
6237 if (_argo0 == Py_None) { _arg0 = NULL; }
6238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
6239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p.");
6240 return NULL;
6241 }
6242 }
6243 if (_argo1) {
6244 if (_argo1 == Py_None) { _arg1 = NULL; }
6245 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6246 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p.");
6247 return NULL;
6248 }
6249 }
6250 {
6251 PyThreadState* __tstate = wxPyBeginAllowThreads();
6252 wxTreeItemData_SetId(_arg0,*_arg1);
6253
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) return NULL;
6256 } Py_INCREF(Py_None);
6257 _resultobj = Py_None;
6258 return _resultobj;
6259 }
6260
6261 static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) {
6262 wxTreeEvent *src;
6263 wxNotifyEvent *dest;
6264 src = (wxTreeEvent *) ptr;
6265 dest = (wxNotifyEvent *) src;
6266 return (void *) dest;
6267 }
6268
6269 static void *SwigwxTreeEventTowxCommandEvent(void *ptr) {
6270 wxTreeEvent *src;
6271 wxCommandEvent *dest;
6272 src = (wxTreeEvent *) ptr;
6273 dest = (wxCommandEvent *) src;
6274 return (void *) dest;
6275 }
6276
6277 static void *SwigwxTreeEventTowxEvent(void *ptr) {
6278 wxTreeEvent *src;
6279 wxEvent *dest;
6280 src = (wxTreeEvent *) ptr;
6281 dest = (wxEvent *) src;
6282 return (void *) dest;
6283 }
6284
6285 static void *SwigwxTreeEventTowxObject(void *ptr) {
6286 wxTreeEvent *src;
6287 wxObject *dest;
6288 src = (wxTreeEvent *) ptr;
6289 dest = (wxObject *) src;
6290 return (void *) dest;
6291 }
6292
6293 #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1))
6294 static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6295 PyObject * _resultobj;
6296 wxTreeEvent * _result;
6297 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
6298 int _arg1 = (int ) 0;
6299 char *_kwnames[] = { "commandType","id", NULL };
6300 char _ptemp[128];
6301
6302 self = self;
6303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1))
6304 return NULL;
6305 {
6306 PyThreadState* __tstate = wxPyBeginAllowThreads();
6307 _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1);
6308
6309 wxPyEndAllowThreads(__tstate);
6310 if (PyErr_Occurred()) return NULL;
6311 } if (_result) {
6312 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p");
6313 _resultobj = Py_BuildValue("s",_ptemp);
6314 } else {
6315 Py_INCREF(Py_None);
6316 _resultobj = Py_None;
6317 }
6318 return _resultobj;
6319 }
6320
6321 #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem())
6322 static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6323 PyObject * _resultobj;
6324 wxTreeItemId * _result;
6325 wxTreeEvent * _arg0;
6326 PyObject * _argo0 = 0;
6327 char *_kwnames[] = { "self", NULL };
6328 char _ptemp[128];
6329
6330 self = self;
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0))
6332 return NULL;
6333 if (_argo0) {
6334 if (_argo0 == Py_None) { _arg0 = NULL; }
6335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p.");
6337 return NULL;
6338 }
6339 }
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0));
6343
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) return NULL;
6346 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
6347 _resultobj = Py_BuildValue("s",_ptemp);
6348 return _resultobj;
6349 }
6350
6351 #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem())
6352 static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6353 PyObject * _resultobj;
6354 wxTreeItemId * _result;
6355 wxTreeEvent * _arg0;
6356 PyObject * _argo0 = 0;
6357 char *_kwnames[] = { "self", NULL };
6358 char _ptemp[128];
6359
6360 self = self;
6361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0))
6362 return NULL;
6363 if (_argo0) {
6364 if (_argo0 == Py_None) { _arg0 = NULL; }
6365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p.");
6367 return NULL;
6368 }
6369 }
6370 {
6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
6372 _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0));
6373
6374 wxPyEndAllowThreads(__tstate);
6375 if (PyErr_Occurred()) return NULL;
6376 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
6377 _resultobj = Py_BuildValue("s",_ptemp);
6378 return _resultobj;
6379 }
6380
6381 #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
6382 static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6383 PyObject * _resultobj;
6384 wxPoint * _result;
6385 wxTreeEvent * _arg0;
6386 PyObject * _argo0 = 0;
6387 char *_kwnames[] = { "self", NULL };
6388 char _ptemp[128];
6389
6390 self = self;
6391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0))
6392 return NULL;
6393 if (_argo0) {
6394 if (_argo0 == Py_None) { _arg0 = NULL; }
6395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p.");
6397 return NULL;
6398 }
6399 }
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 _result = new wxPoint (wxTreeEvent_GetPoint(_arg0));
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) return NULL;
6406 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
6407 _resultobj = Py_BuildValue("s",_ptemp);
6408 return _resultobj;
6409 }
6410
6411 #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent())
6412 static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6413 PyObject * _resultobj;
6414 wxKeyEvent * _result;
6415 wxTreeEvent * _arg0;
6416 PyObject * _argo0 = 0;
6417 char *_kwnames[] = { "self", NULL };
6418 char _ptemp[128];
6419
6420 self = self;
6421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0))
6422 return NULL;
6423 if (_argo0) {
6424 if (_argo0 == Py_None) { _arg0 = NULL; }
6425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p.");
6427 return NULL;
6428 }
6429 }
6430 {
6431 PyThreadState* __tstate = wxPyBeginAllowThreads();
6432 const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0);
6433 _result = (wxKeyEvent *) &_result_ref;
6434
6435 wxPyEndAllowThreads(__tstate);
6436 if (PyErr_Occurred()) return NULL;
6437 } if (_result) {
6438 SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p");
6439 _resultobj = Py_BuildValue("s",_ptemp);
6440 } else {
6441 Py_INCREF(Py_None);
6442 _resultobj = Py_None;
6443 }
6444 return _resultobj;
6445 }
6446
6447 #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode())
6448 static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
6449 PyObject * _resultobj;
6450 int _result;
6451 wxTreeEvent * _arg0;
6452 PyObject * _argo0 = 0;
6453 char *_kwnames[] = { "self", NULL };
6454
6455 self = self;
6456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0))
6457 return NULL;
6458 if (_argo0) {
6459 if (_argo0 == Py_None) { _arg0 = NULL; }
6460 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6461 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p.");
6462 return NULL;
6463 }
6464 }
6465 {
6466 PyThreadState* __tstate = wxPyBeginAllowThreads();
6467 _result = (int )wxTreeEvent_GetCode(_arg0);
6468
6469 wxPyEndAllowThreads(__tstate);
6470 if (PyErr_Occurred()) return NULL;
6471 } _resultobj = Py_BuildValue("i",_result);
6472 return _resultobj;
6473 }
6474
6475 #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
6476 static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6477 PyObject * _resultobj;
6478 wxString * _result;
6479 wxTreeEvent * _arg0;
6480 PyObject * _argo0 = 0;
6481 char *_kwnames[] = { "self", NULL };
6482
6483 self = self;
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0))
6485 return NULL;
6486 if (_argo0) {
6487 if (_argo0 == Py_None) { _arg0 = NULL; }
6488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p.");
6490 return NULL;
6491 }
6492 }
6493 {
6494 PyThreadState* __tstate = wxPyBeginAllowThreads();
6495 const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0);
6496 _result = (wxString *) &_result_ref;
6497
6498 wxPyEndAllowThreads(__tstate);
6499 if (PyErr_Occurred()) return NULL;
6500 }{
6501 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6502 }
6503 return _resultobj;
6504 }
6505
6506 static void *SwigwxPyTreeCtrlTowxControl(void *ptr) {
6507 wxPyTreeCtrl *src;
6508 wxControl *dest;
6509 src = (wxPyTreeCtrl *) ptr;
6510 dest = (wxControl *) src;
6511 return (void *) dest;
6512 }
6513
6514 static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) {
6515 wxPyTreeCtrl *src;
6516 wxWindow *dest;
6517 src = (wxPyTreeCtrl *) ptr;
6518 dest = (wxWindow *) src;
6519 return (void *) dest;
6520 }
6521
6522 static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) {
6523 wxPyTreeCtrl *src;
6524 wxEvtHandler *dest;
6525 src = (wxPyTreeCtrl *) ptr;
6526 dest = (wxEvtHandler *) src;
6527 return (void *) dest;
6528 }
6529
6530 static void *SwigwxPyTreeCtrlTowxObject(void *ptr) {
6531 wxPyTreeCtrl *src;
6532 wxObject *dest;
6533 src = (wxPyTreeCtrl *) ptr;
6534 dest = (wxObject *) src;
6535 return (void *) dest;
6536 }
6537
6538 #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6539 static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6540 PyObject * _resultobj;
6541 wxPyTreeCtrl * _result;
6542 wxWindow * _arg0;
6543 wxWindowID _arg1 = (wxWindowID ) -1;
6544 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6545 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6546 long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
6547 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
6548 char * _arg6 = (char *) "wxTreeCtrl";
6549 PyObject * _argo0 = 0;
6550 wxPoint temp;
6551 PyObject * _obj2 = 0;
6552 wxSize temp0;
6553 PyObject * _obj3 = 0;
6554 PyObject * _argo5 = 0;
6555 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
6556 char _ptemp[128];
6557
6558 self = self;
6559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
6560 return NULL;
6561 if (_argo0) {
6562 if (_argo0 == Py_None) { _arg0 = NULL; }
6563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p.");
6565 return NULL;
6566 }
6567 }
6568 if (_obj2)
6569 {
6570 _arg2 = &temp;
6571 if (! wxPoint_helper(_obj2, &_arg2))
6572 return NULL;
6573 }
6574 if (_obj3)
6575 {
6576 _arg3 = &temp0;
6577 if (! wxSize_helper(_obj3, &_arg3))
6578 return NULL;
6579 }
6580 if (_argo5) {
6581 if (_argo5 == Py_None) { _arg5 = NULL; }
6582 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
6583 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p.");
6584 return NULL;
6585 }
6586 }
6587 {
6588 PyThreadState* __tstate = wxPyBeginAllowThreads();
6589 _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
6590
6591 wxPyEndAllowThreads(__tstate);
6592 if (PyErr_Occurred()) return NULL;
6593 } if (_result) {
6594 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
6595 _resultobj = Py_BuildValue("s",_ptemp);
6596 } else {
6597 Py_INCREF(Py_None);
6598 _resultobj = Py_None;
6599 }
6600 return _resultobj;
6601 }
6602
6603 #define new_wxPreTreeCtrl() (new wxPyTreeCtrl())
6604 static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6605 PyObject * _resultobj;
6606 wxPyTreeCtrl * _result;
6607 char *_kwnames[] = { NULL };
6608 char _ptemp[128];
6609
6610 self = self;
6611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames))
6612 return NULL;
6613 {
6614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6615 _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl();
6616
6617 wxPyEndAllowThreads(__tstate);
6618 if (PyErr_Occurred()) return NULL;
6619 } if (_result) {
6620 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
6621 _resultobj = Py_BuildValue("s",_ptemp);
6622 } else {
6623 Py_INCREF(Py_None);
6624 _resultobj = Py_None;
6625 }
6626 return _resultobj;
6627 }
6628
6629 #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6630 static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6631 PyObject * _resultobj;
6632 bool _result;
6633 wxPyTreeCtrl * _arg0;
6634 wxWindow * _arg1;
6635 wxWindowID _arg2 = (wxWindowID ) -1;
6636 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6637 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6638 long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
6639 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
6640 char * _arg7 = (char *) "wxTreeCtrl";
6641 PyObject * _argo0 = 0;
6642 PyObject * _argo1 = 0;
6643 wxPoint temp;
6644 PyObject * _obj3 = 0;
6645 wxSize temp0;
6646 PyObject * _obj4 = 0;
6647 PyObject * _argo6 = 0;
6648 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
6649
6650 self = self;
6651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
6652 return NULL;
6653 if (_argo0) {
6654 if (_argo0 == Py_None) { _arg0 = NULL; }
6655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p.");
6657 return NULL;
6658 }
6659 }
6660 if (_argo1) {
6661 if (_argo1 == Py_None) { _arg1 = NULL; }
6662 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6663 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p.");
6664 return NULL;
6665 }
6666 }
6667 if (_obj3)
6668 {
6669 _arg3 = &temp;
6670 if (! wxPoint_helper(_obj3, &_arg3))
6671 return NULL;
6672 }
6673 if (_obj4)
6674 {
6675 _arg4 = &temp0;
6676 if (! wxSize_helper(_obj4, &_arg4))
6677 return NULL;
6678 }
6679 if (_argo6) {
6680 if (_argo6 == Py_None) { _arg6 = NULL; }
6681 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
6682 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p.");
6683 return NULL;
6684 }
6685 }
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
6689
6690 wxPyEndAllowThreads(__tstate);
6691 if (PyErr_Occurred()) return NULL;
6692 } _resultobj = Py_BuildValue("i",_result);
6693 return _resultobj;
6694 }
6695
6696 #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
6697 static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6698 PyObject * _resultobj;
6699 wxPyTreeCtrl * _arg0;
6700 PyObject * _arg1;
6701 PyObject * _arg2;
6702 PyObject * _argo0 = 0;
6703 PyObject * _obj1 = 0;
6704 PyObject * _obj2 = 0;
6705 char *_kwnames[] = { "self","self","_class", NULL };
6706
6707 self = self;
6708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
6709 return NULL;
6710 if (_argo0) {
6711 if (_argo0 == Py_None) { _arg0 = NULL; }
6712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p.");
6714 return NULL;
6715 }
6716 }
6717 {
6718 _arg1 = _obj1;
6719 }
6720 {
6721 _arg2 = _obj2;
6722 }
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2);
6726
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) return NULL;
6729 } Py_INCREF(Py_None);
6730 _resultobj = Py_None;
6731 return _resultobj;
6732 }
6733
6734 #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount())
6735 static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6736 PyObject * _resultobj;
6737 size_t _result;
6738 wxPyTreeCtrl * _arg0;
6739 PyObject * _argo0 = 0;
6740 char *_kwnames[] = { "self", NULL };
6741
6742 self = self;
6743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0))
6744 return NULL;
6745 if (_argo0) {
6746 if (_argo0 == Py_None) { _arg0 = NULL; }
6747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p.");
6749 return NULL;
6750 }
6751 }
6752 {
6753 PyThreadState* __tstate = wxPyBeginAllowThreads();
6754 _result = (size_t )wxTreeCtrl_GetCount(_arg0);
6755
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) return NULL;
6758 } _resultobj = Py_BuildValue("i",_result);
6759 return _resultobj;
6760 }
6761
6762 #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent())
6763 static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6764 PyObject * _resultobj;
6765 unsigned int _result;
6766 wxPyTreeCtrl * _arg0;
6767 PyObject * _argo0 = 0;
6768 char *_kwnames[] = { "self", NULL };
6769
6770 self = self;
6771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0))
6772 return NULL;
6773 if (_argo0) {
6774 if (_argo0 == Py_None) { _arg0 = NULL; }
6775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p.");
6777 return NULL;
6778 }
6779 }
6780 {
6781 PyThreadState* __tstate = wxPyBeginAllowThreads();
6782 _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0);
6783
6784 wxPyEndAllowThreads(__tstate);
6785 if (PyErr_Occurred()) return NULL;
6786 } _resultobj = Py_BuildValue("i",_result);
6787 return _resultobj;
6788 }
6789
6790 #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
6791 static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6792 PyObject * _resultobj;
6793 wxPyTreeCtrl * _arg0;
6794 unsigned int _arg1;
6795 PyObject * _argo0 = 0;
6796 char *_kwnames[] = { "self","indent", NULL };
6797
6798 self = self;
6799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1))
6800 return NULL;
6801 if (_argo0) {
6802 if (_argo0 == Py_None) { _arg0 = NULL; }
6803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p.");
6805 return NULL;
6806 }
6807 }
6808 {
6809 PyThreadState* __tstate = wxPyBeginAllowThreads();
6810 wxTreeCtrl_SetIndent(_arg0,_arg1);
6811
6812 wxPyEndAllowThreads(__tstate);
6813 if (PyErr_Occurred()) return NULL;
6814 } Py_INCREF(Py_None);
6815 _resultobj = Py_None;
6816 return _resultobj;
6817 }
6818
6819 #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList())
6820 static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6821 PyObject * _resultobj;
6822 wxImageList * _result;
6823 wxPyTreeCtrl * _arg0;
6824 PyObject * _argo0 = 0;
6825 char *_kwnames[] = { "self", NULL };
6826
6827 self = self;
6828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0))
6829 return NULL;
6830 if (_argo0) {
6831 if (_argo0 == Py_None) { _arg0 = NULL; }
6832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p.");
6834 return NULL;
6835 }
6836 }
6837 {
6838 PyThreadState* __tstate = wxPyBeginAllowThreads();
6839 _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0);
6840
6841 wxPyEndAllowThreads(__tstate);
6842 if (PyErr_Occurred()) return NULL;
6843 }{ _resultobj = wxPyMake_wxObject(_result); }
6844 return _resultobj;
6845 }
6846
6847 #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList())
6848 static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6849 PyObject * _resultobj;
6850 wxImageList * _result;
6851 wxPyTreeCtrl * _arg0;
6852 PyObject * _argo0 = 0;
6853 char *_kwnames[] = { "self", NULL };
6854
6855 self = self;
6856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0))
6857 return NULL;
6858 if (_argo0) {
6859 if (_argo0 == Py_None) { _arg0 = NULL; }
6860 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6861 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p.");
6862 return NULL;
6863 }
6864 }
6865 {
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0);
6868
6869 wxPyEndAllowThreads(__tstate);
6870 if (PyErr_Occurred()) return NULL;
6871 }{ _resultobj = wxPyMake_wxObject(_result); }
6872 return _resultobj;
6873 }
6874
6875 #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
6876 static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6877 PyObject * _resultobj;
6878 wxPyTreeCtrl * _arg0;
6879 wxImageList * _arg1;
6880 PyObject * _argo0 = 0;
6881 PyObject * _argo1 = 0;
6882 char *_kwnames[] = { "self","imageList", NULL };
6883
6884 self = self;
6885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1))
6886 return NULL;
6887 if (_argo0) {
6888 if (_argo0 == Py_None) { _arg0 = NULL; }
6889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p.");
6891 return NULL;
6892 }
6893 }
6894 if (_argo1) {
6895 if (_argo1 == Py_None) { _arg1 = NULL; }
6896 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6897 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p.");
6898 return NULL;
6899 }
6900 }
6901 {
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 wxTreeCtrl_SetImageList(_arg0,_arg1);
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) return NULL;
6907 } Py_INCREF(Py_None);
6908 _resultobj = Py_None;
6909 return _resultobj;
6910 }
6911
6912 #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0))
6913 static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6914 PyObject * _resultobj;
6915 wxPyTreeCtrl * _arg0;
6916 wxImageList * _arg1;
6917 PyObject * _argo0 = 0;
6918 PyObject * _argo1 = 0;
6919 char *_kwnames[] = { "self","imageList", NULL };
6920
6921 self = self;
6922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1))
6923 return NULL;
6924 if (_argo0) {
6925 if (_argo0 == Py_None) { _arg0 = NULL; }
6926 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6927 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p.");
6928 return NULL;
6929 }
6930 }
6931 if (_argo1) {
6932 if (_argo1 == Py_None) { _arg1 = NULL; }
6933 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6934 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p.");
6935 return NULL;
6936 }
6937 }
6938 {
6939 PyThreadState* __tstate = wxPyBeginAllowThreads();
6940 wxTreeCtrl_SetStateImageList(_arg0,_arg1);
6941
6942 wxPyEndAllowThreads(__tstate);
6943 if (PyErr_Occurred()) return NULL;
6944 } Py_INCREF(Py_None);
6945 _resultobj = Py_None;
6946 return _resultobj;
6947 }
6948
6949 #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
6950 static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6951 PyObject * _resultobj;
6952 wxPyTreeCtrl * _arg0;
6953 wxImageList * _arg1;
6954 PyObject * _argo0 = 0;
6955 PyObject * _argo1 = 0;
6956 char *_kwnames[] = { "self","imageList", NULL };
6957
6958 self = self;
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1))
6960 return NULL;
6961 if (_argo0) {
6962 if (_argo0 == Py_None) { _arg0 = NULL; }
6963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p.");
6965 return NULL;
6966 }
6967 }
6968 if (_argo1) {
6969 if (_argo1 == Py_None) { _arg1 = NULL; }
6970 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6971 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p.");
6972 return NULL;
6973 }
6974 }
6975 {
6976 PyThreadState* __tstate = wxPyBeginAllowThreads();
6977 wxTreeCtrl_AssignImageList(_arg0,_arg1);
6978
6979 wxPyEndAllowThreads(__tstate);
6980 if (PyErr_Occurred()) return NULL;
6981 } Py_INCREF(Py_None);
6982 _resultobj = Py_None;
6983 return _resultobj;
6984 }
6985
6986 #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0))
6987 static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6988 PyObject * _resultobj;
6989 wxPyTreeCtrl * _arg0;
6990 wxImageList * _arg1;
6991 PyObject * _argo0 = 0;
6992 PyObject * _argo1 = 0;
6993 char *_kwnames[] = { "self","imageList", NULL };
6994
6995 self = self;
6996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1))
6997 return NULL;
6998 if (_argo0) {
6999 if (_argo0 == Py_None) { _arg0 = NULL; }
7000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p.");
7002 return NULL;
7003 }
7004 }
7005 if (_argo1) {
7006 if (_argo1 == Py_None) { _arg1 = NULL; }
7007 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
7008 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p.");
7009 return NULL;
7010 }
7011 }
7012 {
7013 PyThreadState* __tstate = wxPyBeginAllowThreads();
7014 wxTreeCtrl_AssignStateImageList(_arg0,_arg1);
7015
7016 wxPyEndAllowThreads(__tstate);
7017 if (PyErr_Occurred()) return NULL;
7018 } Py_INCREF(Py_None);
7019 _resultobj = Py_None;
7020 return _resultobj;
7021 }
7022
7023 #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing())
7024 static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
7025 PyObject * _resultobj;
7026 unsigned int _result;
7027 wxPyTreeCtrl * _arg0;
7028 PyObject * _argo0 = 0;
7029 char *_kwnames[] = { "self", NULL };
7030
7031 self = self;
7032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0))
7033 return NULL;
7034 if (_argo0) {
7035 if (_argo0 == Py_None) { _arg0 = NULL; }
7036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p.");
7038 return NULL;
7039 }
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0);
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) return NULL;
7047 } _resultobj = Py_BuildValue("i",_result);
7048 return _resultobj;
7049 }
7050
7051 #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0))
7052 static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
7053 PyObject * _resultobj;
7054 wxPyTreeCtrl * _arg0;
7055 unsigned int _arg1;
7056 PyObject * _argo0 = 0;
7057 char *_kwnames[] = { "self","spacing", NULL };
7058
7059 self = self;
7060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1))
7061 return NULL;
7062 if (_argo0) {
7063 if (_argo0 == Py_None) { _arg0 = NULL; }
7064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p.");
7066 return NULL;
7067 }
7068 }
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 wxTreeCtrl_SetSpacing(_arg0,_arg1);
7072
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) return NULL;
7075 } Py_INCREF(Py_None);
7076 _resultobj = Py_None;
7077 return _resultobj;
7078 }
7079
7080 #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
7081 static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
7082 PyObject * _resultobj;
7083 wxString * _result;
7084 wxPyTreeCtrl * _arg0;
7085 wxTreeItemId * _arg1;
7086 PyObject * _argo0 = 0;
7087 PyObject * _argo1 = 0;
7088 char *_kwnames[] = { "self","item", NULL };
7089
7090 self = self;
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1))
7092 return NULL;
7093 if (_argo0) {
7094 if (_argo0 == Py_None) { _arg0 = NULL; }
7095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p.");
7097 return NULL;
7098 }
7099 }
7100 if (_argo1) {
7101 if (_argo1 == Py_None) { _arg1 = NULL; }
7102 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7103 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p.");
7104 return NULL;
7105 }
7106 }
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
7109 _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1));
7110
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) return NULL;
7113 }{
7114 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7115 }
7116 {
7117 delete _result;
7118 }
7119 return _resultobj;
7120 }
7121
7122 #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1))
7123 static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7124 PyObject * _resultobj;
7125 int _result;
7126 wxPyTreeCtrl * _arg0;
7127 wxTreeItemId * _arg1;
7128 wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
7129 PyObject * _argo0 = 0;
7130 PyObject * _argo1 = 0;
7131 char *_kwnames[] = { "self","item","which", NULL };
7132
7133 self = self;
7134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2))
7135 return NULL;
7136 if (_argo0) {
7137 if (_argo0 == Py_None) { _arg0 = NULL; }
7138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p.");
7140 return NULL;
7141 }
7142 }
7143 if (_argo1) {
7144 if (_argo1 == Py_None) { _arg1 = NULL; }
7145 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7146 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p.");
7147 return NULL;
7148 }
7149 }
7150 {
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2);
7153
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) return NULL;
7156 } _resultobj = Py_BuildValue("i",_result);
7157 return _resultobj;
7158 }
7159
7160 #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0))
7161 static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7162 PyObject * _resultobj;
7163 int _result;
7164 wxPyTreeCtrl * _arg0;
7165 wxTreeItemId * _arg1;
7166 PyObject * _argo0 = 0;
7167 PyObject * _argo1 = 0;
7168 char *_kwnames[] = { "self","item", NULL };
7169
7170 self = self;
7171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1))
7172 return NULL;
7173 if (_argo0) {
7174 if (_argo0 == Py_None) { _arg0 = NULL; }
7175 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
7177 return NULL;
7178 }
7179 }
7180 if (_argo1) {
7181 if (_argo1 == Py_None) { _arg1 = NULL; }
7182 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7183 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p.");
7184 return NULL;
7185 }
7186 }
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1);
7190
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) return NULL;
7193 } _resultobj = Py_BuildValue("i",_result);
7194 return _resultobj;
7195 }
7196
7197 #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
7198 static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
7199 PyObject * _resultobj;
7200 wxPyTreeCtrl * _arg0;
7201 wxTreeItemId * _arg1;
7202 wxString * _arg2;
7203 PyObject * _argo0 = 0;
7204 PyObject * _argo1 = 0;
7205 PyObject * _obj2 = 0;
7206 char *_kwnames[] = { "self","item","text", NULL };
7207
7208 self = self;
7209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2))
7210 return NULL;
7211 if (_argo0) {
7212 if (_argo0 == Py_None) { _arg0 = NULL; }
7213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p.");
7215 return NULL;
7216 }
7217 }
7218 if (_argo1) {
7219 if (_argo1 == Py_None) { _arg1 = NULL; }
7220 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7221 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p.");
7222 return NULL;
7223 }
7224 }
7225 {
7226 #if PYTHON_API_VERSION >= 1009
7227 char* tmpPtr; int tmpSize;
7228 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7229 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7230 return NULL;
7231 }
7232 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7233 return NULL;
7234 _arg2 = new wxString(tmpPtr, tmpSize);
7235 #else
7236 if (!PyString_Check(_obj2)) {
7237 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7238 return NULL;
7239 }
7240 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7241 #endif
7242 }
7243 {
7244 PyThreadState* __tstate = wxPyBeginAllowThreads();
7245 wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2);
7246
7247 wxPyEndAllowThreads(__tstate);
7248 if (PyErr_Occurred()) return NULL;
7249 } Py_INCREF(Py_None);
7250 _resultobj = Py_None;
7251 {
7252 if (_obj2)
7253 delete _arg2;
7254 }
7255 return _resultobj;
7256 }
7257
7258 #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
7259 static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7260 PyObject * _resultobj;
7261 wxPyTreeCtrl * _arg0;
7262 wxTreeItemId * _arg1;
7263 int _arg2;
7264 wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
7265 PyObject * _argo0 = 0;
7266 PyObject * _argo1 = 0;
7267 char *_kwnames[] = { "self","item","image","which", NULL };
7268
7269 self = self;
7270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
7271 return NULL;
7272 if (_argo0) {
7273 if (_argo0 == Py_None) { _arg0 = NULL; }
7274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p.");
7276 return NULL;
7277 }
7278 }
7279 if (_argo1) {
7280 if (_argo1 == Py_None) { _arg1 = NULL; }
7281 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7282 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p.");
7283 return NULL;
7284 }
7285 }
7286 {
7287 PyThreadState* __tstate = wxPyBeginAllowThreads();
7288 wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3);
7289
7290 wxPyEndAllowThreads(__tstate);
7291 if (PyErr_Occurred()) return NULL;
7292 } Py_INCREF(Py_None);
7293 _resultobj = Py_None;
7294 return _resultobj;
7295 }
7296
7297 #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1))
7298 static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7299 PyObject * _resultobj;
7300 wxPyTreeCtrl * _arg0;
7301 wxTreeItemId * _arg1;
7302 int _arg2;
7303 PyObject * _argo0 = 0;
7304 PyObject * _argo1 = 0;
7305 char *_kwnames[] = { "self","item","image", NULL };
7306
7307 self = self;
7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2))
7309 return NULL;
7310 if (_argo0) {
7311 if (_argo0 == Py_None) { _arg0 = NULL; }
7312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
7314 return NULL;
7315 }
7316 }
7317 if (_argo1) {
7318 if (_argo1 == Py_None) { _arg1 = NULL; }
7319 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7320 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p.");
7321 return NULL;
7322 }
7323 }
7324 {
7325 PyThreadState* __tstate = wxPyBeginAllowThreads();
7326 wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2);
7327
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) return NULL;
7330 } Py_INCREF(Py_None);
7331 _resultobj = Py_None;
7332 return _resultobj;
7333 }
7334
7335 #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1))
7336 static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
7337 PyObject * _resultobj;
7338 wxPyTreeCtrl * _arg0;
7339 wxTreeItemId * _arg1;
7340 bool _arg2 = (bool ) TRUE;
7341 PyObject * _argo0 = 0;
7342 PyObject * _argo1 = 0;
7343 int tempbool2 = (int) TRUE;
7344 char *_kwnames[] = { "self","item","hasChildren", NULL };
7345
7346 self = self;
7347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2))
7348 return NULL;
7349 if (_argo0) {
7350 if (_argo0 == Py_None) { _arg0 = NULL; }
7351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p.");
7353 return NULL;
7354 }
7355 }
7356 if (_argo1) {
7357 if (_argo1 == Py_None) { _arg1 = NULL; }
7358 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7359 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p.");
7360 return NULL;
7361 }
7362 }
7363 _arg2 = (bool ) tempbool2;
7364 {
7365 PyThreadState* __tstate = wxPyBeginAllowThreads();
7366 wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2);
7367
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) return NULL;
7370 } Py_INCREF(Py_None);
7371 _resultobj = Py_None;
7372 return _resultobj;
7373 }
7374
7375 static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
7376 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7377 if (data == NULL) {
7378 data = new wxPyTreeItemData();
7379 data->SetId(item); // set the id
7380 self->SetItemData(item, data);
7381 }
7382 return data;
7383 }
7384 static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
7385 PyObject * _resultobj;
7386 wxPyTreeItemData * _result;
7387 wxPyTreeCtrl * _arg0;
7388 wxTreeItemId * _arg1;
7389 PyObject * _argo0 = 0;
7390 PyObject * _argo1 = 0;
7391 char *_kwnames[] = { "self","item", NULL };
7392 char _ptemp[128];
7393
7394 self = self;
7395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1))
7396 return NULL;
7397 if (_argo0) {
7398 if (_argo0 == Py_None) { _arg0 = NULL; }
7399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p.");
7401 return NULL;
7402 }
7403 }
7404 if (_argo1) {
7405 if (_argo1 == Py_None) { _arg1 = NULL; }
7406 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7407 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p.");
7408 return NULL;
7409 }
7410 }
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1);
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) return NULL;
7417 } if (_result) {
7418 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
7419 _resultobj = Py_BuildValue("s",_ptemp);
7420 } else {
7421 Py_INCREF(Py_None);
7422 _resultobj = Py_None;
7423 }
7424 return _resultobj;
7425 }
7426
7427 static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) {
7428 data->SetId(item); // set the id
7429 self->SetItemData(item, data);
7430 }
7431 static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
7432 PyObject * _resultobj;
7433 wxPyTreeCtrl * _arg0;
7434 wxTreeItemId * _arg1;
7435 wxPyTreeItemData * _arg2;
7436 PyObject * _argo0 = 0;
7437 PyObject * _argo1 = 0;
7438 PyObject * _argo2 = 0;
7439 char *_kwnames[] = { "self","item","data", NULL };
7440
7441 self = self;
7442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2))
7443 return NULL;
7444 if (_argo0) {
7445 if (_argo0 == Py_None) { _arg0 = NULL; }
7446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p.");
7448 return NULL;
7449 }
7450 }
7451 if (_argo1) {
7452 if (_argo1 == Py_None) { _arg1 = NULL; }
7453 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7454 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p.");
7455 return NULL;
7456 }
7457 }
7458 if (_argo2) {
7459 if (_argo2 == Py_None) { _arg2 = NULL; }
7460 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) {
7461 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p.");
7462 return NULL;
7463 }
7464 }
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2);
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) return NULL;
7471 } Py_INCREF(Py_None);
7472 _resultobj = Py_None;
7473 return _resultobj;
7474 }
7475
7476 static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
7477 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7478 if (data == NULL) {
7479 data = new wxPyTreeItemData();
7480 data->SetId(item); // set the id
7481 self->SetItemData(item, data);
7482 }
7483 return data->GetData();
7484 }
7485 static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
7486 PyObject * _resultobj;
7487 PyObject * _result;
7488 wxPyTreeCtrl * _arg0;
7489 wxTreeItemId * _arg1;
7490 PyObject * _argo0 = 0;
7491 PyObject * _argo1 = 0;
7492 char *_kwnames[] = { "self","item", NULL };
7493
7494 self = self;
7495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1))
7496 return NULL;
7497 if (_argo0) {
7498 if (_argo0 == Py_None) { _arg0 = NULL; }
7499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p.");
7501 return NULL;
7502 }
7503 }
7504 if (_argo1) {
7505 if (_argo1 == Py_None) { _arg1 = NULL; }
7506 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7507 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p.");
7508 return NULL;
7509 }
7510 }
7511 {
7512 PyThreadState* __tstate = wxPyBeginAllowThreads();
7513 _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1);
7514
7515 wxPyEndAllowThreads(__tstate);
7516 if (PyErr_Occurred()) return NULL;
7517 }{
7518 _resultobj = _result;
7519 }
7520 return _resultobj;
7521 }
7522
7523 static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) {
7524 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7525 if (data == NULL) {
7526 data = new wxPyTreeItemData(obj);
7527 data->SetId(item); // set the id
7528 self->SetItemData(item, data);
7529 } else
7530 data->SetData(obj);
7531 }
7532 static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
7533 PyObject * _resultobj;
7534 wxPyTreeCtrl * _arg0;
7535 wxTreeItemId * _arg1;
7536 PyObject * _arg2;
7537 PyObject * _argo0 = 0;
7538 PyObject * _argo1 = 0;
7539 PyObject * _obj2 = 0;
7540 char *_kwnames[] = { "self","item","obj", NULL };
7541
7542 self = self;
7543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2))
7544 return NULL;
7545 if (_argo0) {
7546 if (_argo0 == Py_None) { _arg0 = NULL; }
7547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p.");
7549 return NULL;
7550 }
7551 }
7552 if (_argo1) {
7553 if (_argo1 == Py_None) { _arg1 = NULL; }
7554 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7555 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p.");
7556 return NULL;
7557 }
7558 }
7559 {
7560 _arg2 = _obj2;
7561 }
7562 {
7563 PyThreadState* __tstate = wxPyBeginAllowThreads();
7564 wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2);
7565
7566 wxPyEndAllowThreads(__tstate);
7567 if (PyErr_Occurred()) return NULL;
7568 } Py_INCREF(Py_None);
7569 _resultobj = Py_None;
7570 return _resultobj;
7571 }
7572
7573 #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0))
7574 static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
7575 PyObject * _resultobj;
7576 bool _result;
7577 wxPyTreeCtrl * _arg0;
7578 wxTreeItemId * _arg1;
7579 PyObject * _argo0 = 0;
7580 PyObject * _argo1 = 0;
7581 char *_kwnames[] = { "self","item", NULL };
7582
7583 self = self;
7584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1))
7585 return NULL;
7586 if (_argo0) {
7587 if (_argo0 == Py_None) { _arg0 = NULL; }
7588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p.");
7590 return NULL;
7591 }
7592 }
7593 if (_argo1) {
7594 if (_argo1 == Py_None) { _arg1 = NULL; }
7595 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7596 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p.");
7597 return NULL;
7598 }
7599 }
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1);
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) return NULL;
7606 } _resultobj = Py_BuildValue("i",_result);
7607 return _resultobj;
7608 }
7609
7610 #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0))
7611 static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
7612 PyObject * _resultobj;
7613 bool _result;
7614 wxPyTreeCtrl * _arg0;
7615 wxTreeItemId * _arg1;
7616 PyObject * _argo0 = 0;
7617 PyObject * _argo1 = 0;
7618 char *_kwnames[] = { "self","item", NULL };
7619
7620 self = self;
7621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1))
7622 return NULL;
7623 if (_argo0) {
7624 if (_argo0 == Py_None) { _arg0 = NULL; }
7625 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7626 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p.");
7627 return NULL;
7628 }
7629 }
7630 if (_argo1) {
7631 if (_argo1 == Py_None) { _arg1 = NULL; }
7632 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7633 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p.");
7634 return NULL;
7635 }
7636 }
7637 {
7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
7639 _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1);
7640
7641 wxPyEndAllowThreads(__tstate);
7642 if (PyErr_Occurred()) return NULL;
7643 } _resultobj = Py_BuildValue("i",_result);
7644 return _resultobj;
7645 }
7646
7647 #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0))
7648 static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
7649 PyObject * _resultobj;
7650 bool _result;
7651 wxPyTreeCtrl * _arg0;
7652 wxTreeItemId * _arg1;
7653 PyObject * _argo0 = 0;
7654 PyObject * _argo1 = 0;
7655 char *_kwnames[] = { "self","item", NULL };
7656
7657 self = self;
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1))
7659 return NULL;
7660 if (_argo0) {
7661 if (_argo0 == Py_None) { _arg0 = NULL; }
7662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p.");
7664 return NULL;
7665 }
7666 }
7667 if (_argo1) {
7668 if (_argo1 == Py_None) { _arg1 = NULL; }
7669 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7670 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p.");
7671 return NULL;
7672 }
7673 }
7674 {
7675 PyThreadState* __tstate = wxPyBeginAllowThreads();
7676 _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1);
7677
7678 wxPyEndAllowThreads(__tstate);
7679 if (PyErr_Occurred()) return NULL;
7680 } _resultobj = Py_BuildValue("i",_result);
7681 return _resultobj;
7682 }
7683
7684 #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
7685 static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
7686 PyObject * _resultobj;
7687 bool _result;
7688 wxPyTreeCtrl * _arg0;
7689 wxTreeItemId * _arg1;
7690 PyObject * _argo0 = 0;
7691 PyObject * _argo1 = 0;
7692 char *_kwnames[] = { "self","item", NULL };
7693
7694 self = self;
7695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1))
7696 return NULL;
7697 if (_argo0) {
7698 if (_argo0 == Py_None) { _arg0 = NULL; }
7699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p.");
7701 return NULL;
7702 }
7703 }
7704 if (_argo1) {
7705 if (_argo1 == Py_None) { _arg1 = NULL; }
7706 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7707 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p.");
7708 return NULL;
7709 }
7710 }
7711 {
7712 PyThreadState* __tstate = wxPyBeginAllowThreads();
7713 _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1);
7714
7715 wxPyEndAllowThreads(__tstate);
7716 if (PyErr_Occurred()) return NULL;
7717 } _resultobj = Py_BuildValue("i",_result);
7718 return _resultobj;
7719 }
7720
7721 #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem())
7722 static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7723 PyObject * _resultobj;
7724 wxTreeItemId * _result;
7725 wxPyTreeCtrl * _arg0;
7726 PyObject * _argo0 = 0;
7727 char *_kwnames[] = { "self", NULL };
7728 char _ptemp[128];
7729
7730 self = self;
7731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0))
7732 return NULL;
7733 if (_argo0) {
7734 if (_argo0 == Py_None) { _arg0 = NULL; }
7735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p.");
7737 return NULL;
7738 }
7739 }
7740 {
7741 PyThreadState* __tstate = wxPyBeginAllowThreads();
7742 _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0));
7743
7744 wxPyEndAllowThreads(__tstate);
7745 if (PyErr_Occurred()) return NULL;
7746 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7747 _resultobj = Py_BuildValue("s",_ptemp);
7748 return _resultobj;
7749 }
7750
7751 #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection())
7752 static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject * _resultobj;
7754 wxTreeItemId * _result;
7755 wxPyTreeCtrl * _arg0;
7756 PyObject * _argo0 = 0;
7757 char *_kwnames[] = { "self", NULL };
7758 char _ptemp[128];
7759
7760 self = self;
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0))
7762 return NULL;
7763 if (_argo0) {
7764 if (_argo0 == Py_None) { _arg0 = NULL; }
7765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p.");
7767 return NULL;
7768 }
7769 }
7770 {
7771 PyThreadState* __tstate = wxPyBeginAllowThreads();
7772 _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0));
7773
7774 wxPyEndAllowThreads(__tstate);
7775 if (PyErr_Occurred()) return NULL;
7776 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7777 _resultobj = Py_BuildValue("s",_ptemp);
7778 return _resultobj;
7779 }
7780
7781 #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0))
7782 static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject * _resultobj;
7784 wxTreeItemId * _result;
7785 wxPyTreeCtrl * _arg0;
7786 wxTreeItemId * _arg1;
7787 PyObject * _argo0 = 0;
7788 PyObject * _argo1 = 0;
7789 char *_kwnames[] = { "self","item", NULL };
7790 char _ptemp[128];
7791
7792 self = self;
7793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1))
7794 return NULL;
7795 if (_argo0) {
7796 if (_argo0 == Py_None) { _arg0 = NULL; }
7797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p.");
7799 return NULL;
7800 }
7801 }
7802 if (_argo1) {
7803 if (_argo1 == Py_None) { _arg1 = NULL; }
7804 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7805 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p.");
7806 return NULL;
7807 }
7808 }
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1));
7812
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) return NULL;
7815 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7816 _resultobj = Py_BuildValue("s",_ptemp);
7817 return _resultobj;
7818 }
7819
7820 static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) {
7821 wxPyBeginBlockThreads();
7822 PyObject* rval = PyList_New(0);
7823 wxArrayTreeItemIds array;
7824 size_t num, x;
7825 num = self->GetSelections(array);
7826 for (x=0; x < num; x++) {
7827 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
7828 PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE);
7829 PyList_Append(rval, item);
7830 }
7831 wxPyEndBlockThreads();
7832 return rval;
7833 }
7834 static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
7835 PyObject * _resultobj;
7836 PyObject * _result;
7837 wxPyTreeCtrl * _arg0;
7838 PyObject * _argo0 = 0;
7839 char *_kwnames[] = { "self", NULL };
7840
7841 self = self;
7842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0))
7843 return NULL;
7844 if (_argo0) {
7845 if (_argo0 == Py_None) { _arg0 = NULL; }
7846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p.");
7848 return NULL;
7849 }
7850 }
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0);
7854
7855 wxPyEndAllowThreads(__tstate);
7856 if (PyErr_Occurred()) return NULL;
7857 }{
7858 _resultobj = _result;
7859 }
7860 return _resultobj;
7861 }
7862
7863 #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1))
7864 static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7865 PyObject * _resultobj;
7866 size_t _result;
7867 wxPyTreeCtrl * _arg0;
7868 wxTreeItemId * _arg1;
7869 bool _arg2 = (bool ) TRUE;
7870 PyObject * _argo0 = 0;
7871 PyObject * _argo1 = 0;
7872 int tempbool2 = (int) TRUE;
7873 char *_kwnames[] = { "self","item","recursively", NULL };
7874
7875 self = self;
7876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2))
7877 return NULL;
7878 if (_argo0) {
7879 if (_argo0 == Py_None) { _arg0 = NULL; }
7880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p.");
7882 return NULL;
7883 }
7884 }
7885 if (_argo1) {
7886 if (_argo1 == Py_None) { _arg1 = NULL; }
7887 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7888 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p.");
7889 return NULL;
7890 }
7891 }
7892 _arg2 = (bool ) tempbool2;
7893 {
7894 PyThreadState* __tstate = wxPyBeginAllowThreads();
7895 _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2);
7896
7897 wxPyEndAllowThreads(__tstate);
7898 if (PyErr_Occurred()) return NULL;
7899 } _resultobj = Py_BuildValue("i",_result);
7900 return _resultobj;
7901 }
7902
7903 #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1))
7904 static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
7905 PyObject * _resultobj;
7906 wxTreeItemId * _result;
7907 wxPyTreeCtrl * _arg0;
7908 wxTreeItemId * _arg1;
7909 long * _arg2;
7910 PyObject * _argo0 = 0;
7911 PyObject * _argo1 = 0;
7912 long temp;
7913 PyObject * _obj2 = 0;
7914 char *_kwnames[] = { "self","item","INOUT", NULL };
7915 char _ptemp[128];
7916
7917 self = self;
7918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2))
7919 return NULL;
7920 if (_argo0) {
7921 if (_argo0 == Py_None) { _arg0 = NULL; }
7922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p.");
7924 return NULL;
7925 }
7926 }
7927 if (_argo1) {
7928 if (_argo1 == Py_None) { _arg1 = NULL; }
7929 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7930 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p.");
7931 return NULL;
7932 }
7933 }
7934 {
7935 temp = (long) PyInt_AsLong(_obj2);
7936 _arg2 = &temp;
7937 }
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2));
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) return NULL;
7944 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7945 _resultobj = Py_BuildValue("s",_ptemp);
7946 {
7947 PyObject *o;
7948 o = PyInt_FromLong((long) (*_arg2));
7949 _resultobj = t_output_helper(_resultobj, o);
7950 }
7951 return _resultobj;
7952 }
7953
7954 #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1))
7955 static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject * _resultobj;
7957 wxTreeItemId * _result;
7958 wxPyTreeCtrl * _arg0;
7959 wxTreeItemId * _arg1;
7960 long * _arg2;
7961 PyObject * _argo0 = 0;
7962 PyObject * _argo1 = 0;
7963 long temp;
7964 PyObject * _obj2 = 0;
7965 char *_kwnames[] = { "self","item","INOUT", NULL };
7966 char _ptemp[128];
7967
7968 self = self;
7969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2))
7970 return NULL;
7971 if (_argo0) {
7972 if (_argo0 == Py_None) { _arg0 = NULL; }
7973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p.");
7975 return NULL;
7976 }
7977 }
7978 if (_argo1) {
7979 if (_argo1 == Py_None) { _arg1 = NULL; }
7980 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
7981 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p.");
7982 return NULL;
7983 }
7984 }
7985 {
7986 temp = (long) PyInt_AsLong(_obj2);
7987 _arg2 = &temp;
7988 }
7989 {
7990 PyThreadState* __tstate = wxPyBeginAllowThreads();
7991 _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2));
7992
7993 wxPyEndAllowThreads(__tstate);
7994 if (PyErr_Occurred()) return NULL;
7995 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
7996 _resultobj = Py_BuildValue("s",_ptemp);
7997 {
7998 PyObject *o;
7999 o = PyInt_FromLong((long) (*_arg2));
8000 _resultobj = t_output_helper(_resultobj, o);
8001 }
8002 return _resultobj;
8003 }
8004
8005 #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0))
8006 static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
8007 PyObject * _resultobj;
8008 wxTreeItemId * _result;
8009 wxPyTreeCtrl * _arg0;
8010 wxTreeItemId * _arg1;
8011 PyObject * _argo0 = 0;
8012 PyObject * _argo1 = 0;
8013 char *_kwnames[] = { "self","item", NULL };
8014 char _ptemp[128];
8015
8016 self = self;
8017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1))
8018 return NULL;
8019 if (_argo0) {
8020 if (_argo0 == Py_None) { _arg0 = NULL; }
8021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p.");
8023 return NULL;
8024 }
8025 }
8026 if (_argo1) {
8027 if (_argo1 == Py_None) { _arg1 = NULL; }
8028 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8029 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p.");
8030 return NULL;
8031 }
8032 }
8033 {
8034 PyThreadState* __tstate = wxPyBeginAllowThreads();
8035 _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1));
8036
8037 wxPyEndAllowThreads(__tstate);
8038 if (PyErr_Occurred()) return NULL;
8039 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8040 _resultobj = Py_BuildValue("s",_ptemp);
8041 return _resultobj;
8042 }
8043
8044 #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0))
8045 static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
8046 PyObject * _resultobj;
8047 wxTreeItemId * _result;
8048 wxPyTreeCtrl * _arg0;
8049 wxTreeItemId * _arg1;
8050 PyObject * _argo0 = 0;
8051 PyObject * _argo1 = 0;
8052 char *_kwnames[] = { "self","item", NULL };
8053 char _ptemp[128];
8054
8055 self = self;
8056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1))
8057 return NULL;
8058 if (_argo0) {
8059 if (_argo0 == Py_None) { _arg0 = NULL; }
8060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p.");
8062 return NULL;
8063 }
8064 }
8065 if (_argo1) {
8066 if (_argo1 == Py_None) { _arg1 = NULL; }
8067 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8068 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p.");
8069 return NULL;
8070 }
8071 }
8072 {
8073 PyThreadState* __tstate = wxPyBeginAllowThreads();
8074 _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1));
8075
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) return NULL;
8078 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8079 _resultobj = Py_BuildValue("s",_ptemp);
8080 return _resultobj;
8081 }
8082
8083 #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem())
8084 static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8085 PyObject * _resultobj;
8086 wxTreeItemId * _result;
8087 wxPyTreeCtrl * _arg0;
8088 PyObject * _argo0 = 0;
8089 char *_kwnames[] = { "self", NULL };
8090 char _ptemp[128];
8091
8092 self = self;
8093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0))
8094 return NULL;
8095 if (_argo0) {
8096 if (_argo0 == Py_None) { _arg0 = NULL; }
8097 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8098 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p.");
8099 return NULL;
8100 }
8101 }
8102 {
8103 PyThreadState* __tstate = wxPyBeginAllowThreads();
8104 _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0));
8105
8106 wxPyEndAllowThreads(__tstate);
8107 if (PyErr_Occurred()) return NULL;
8108 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8109 _resultobj = Py_BuildValue("s",_ptemp);
8110 return _resultobj;
8111 }
8112
8113 #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0))
8114 static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8115 PyObject * _resultobj;
8116 wxTreeItemId * _result;
8117 wxPyTreeCtrl * _arg0;
8118 wxTreeItemId * _arg1;
8119 PyObject * _argo0 = 0;
8120 PyObject * _argo1 = 0;
8121 char *_kwnames[] = { "self","item", NULL };
8122 char _ptemp[128];
8123
8124 self = self;
8125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1))
8126 return NULL;
8127 if (_argo0) {
8128 if (_argo0 == Py_None) { _arg0 = NULL; }
8129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p.");
8131 return NULL;
8132 }
8133 }
8134 if (_argo1) {
8135 if (_argo1 == Py_None) { _arg1 = NULL; }
8136 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8137 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p.");
8138 return NULL;
8139 }
8140 }
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1));
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) return NULL;
8147 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8148 _resultobj = Py_BuildValue("s",_ptemp);
8149 return _resultobj;
8150 }
8151
8152 #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0))
8153 static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8154 PyObject * _resultobj;
8155 wxTreeItemId * _result;
8156 wxPyTreeCtrl * _arg0;
8157 wxTreeItemId * _arg1;
8158 PyObject * _argo0 = 0;
8159 PyObject * _argo1 = 0;
8160 char *_kwnames[] = { "self","item", NULL };
8161 char _ptemp[128];
8162
8163 self = self;
8164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1))
8165 return NULL;
8166 if (_argo0) {
8167 if (_argo0 == Py_None) { _arg0 = NULL; }
8168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p.");
8170 return NULL;
8171 }
8172 }
8173 if (_argo1) {
8174 if (_argo1 == Py_None) { _arg1 = NULL; }
8175 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8176 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p.");
8177 return NULL;
8178 }
8179 }
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1));
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) return NULL;
8186 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8187 _resultobj = Py_BuildValue("s",_ptemp);
8188 return _resultobj;
8189 }
8190
8191 #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0))
8192 static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
8193 PyObject * _resultobj;
8194 wxTreeItemId * _result;
8195 wxPyTreeCtrl * _arg0;
8196 wxTreeItemId * _arg1;
8197 PyObject * _argo0 = 0;
8198 PyObject * _argo1 = 0;
8199 char *_kwnames[] = { "self","item", NULL };
8200 char _ptemp[128];
8201
8202 self = self;
8203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1))
8204 return NULL;
8205 if (_argo0) {
8206 if (_argo0 == Py_None) { _arg0 = NULL; }
8207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p.");
8209 return NULL;
8210 }
8211 }
8212 if (_argo1) {
8213 if (_argo1 == Py_None) { _arg1 = NULL; }
8214 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8215 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p.");
8216 return NULL;
8217 }
8218 }
8219 {
8220 PyThreadState* __tstate = wxPyBeginAllowThreads();
8221 _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1));
8222
8223 wxPyEndAllowThreads(__tstate);
8224 if (PyErr_Occurred()) return NULL;
8225 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8226 _resultobj = Py_BuildValue("s",_ptemp);
8227 return _resultobj;
8228 }
8229
8230 #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8231 static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
8232 PyObject * _resultobj;
8233 wxTreeItemId * _result;
8234 wxPyTreeCtrl * _arg0;
8235 wxString * _arg1;
8236 int _arg2 = (int ) -1;
8237 int _arg3 = (int ) -1;
8238 wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL;
8239 PyObject * _argo0 = 0;
8240 PyObject * _obj1 = 0;
8241 PyObject * _argo4 = 0;
8242 char *_kwnames[] = { "self","text","image","selectedImage","data", NULL };
8243 char _ptemp[128];
8244
8245 self = self;
8246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4))
8247 return NULL;
8248 if (_argo0) {
8249 if (_argo0 == Py_None) { _arg0 = NULL; }
8250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p.");
8252 return NULL;
8253 }
8254 }
8255 {
8256 #if PYTHON_API_VERSION >= 1009
8257 char* tmpPtr; int tmpSize;
8258 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8259 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8260 return NULL;
8261 }
8262 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8263 return NULL;
8264 _arg1 = new wxString(tmpPtr, tmpSize);
8265 #else
8266 if (!PyString_Check(_obj1)) {
8267 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8268 return NULL;
8269 }
8270 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8271 #endif
8272 }
8273 if (_argo4) {
8274 if (_argo4 == Py_None) { _arg4 = NULL; }
8275 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) {
8276 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p.");
8277 return NULL;
8278 }
8279 }
8280 {
8281 PyThreadState* __tstate = wxPyBeginAllowThreads();
8282 _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4));
8283
8284 wxPyEndAllowThreads(__tstate);
8285 if (PyErr_Occurred()) return NULL;
8286 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8287 _resultobj = Py_BuildValue("s",_ptemp);
8288 {
8289 if (_obj1)
8290 delete _arg1;
8291 }
8292 return _resultobj;
8293 }
8294
8295 #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8296 static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8297 PyObject * _resultobj;
8298 wxTreeItemId * _result;
8299 wxPyTreeCtrl * _arg0;
8300 wxTreeItemId * _arg1;
8301 wxString * _arg2;
8302 int _arg3 = (int ) -1;
8303 int _arg4 = (int ) -1;
8304 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
8305 PyObject * _argo0 = 0;
8306 PyObject * _argo1 = 0;
8307 PyObject * _obj2 = 0;
8308 PyObject * _argo5 = 0;
8309 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
8310 char _ptemp[128];
8311
8312 self = self;
8313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
8314 return NULL;
8315 if (_argo0) {
8316 if (_argo0 == Py_None) { _arg0 = NULL; }
8317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p.");
8319 return NULL;
8320 }
8321 }
8322 if (_argo1) {
8323 if (_argo1 == Py_None) { _arg1 = NULL; }
8324 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8325 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p.");
8326 return NULL;
8327 }
8328 }
8329 {
8330 #if PYTHON_API_VERSION >= 1009
8331 char* tmpPtr; int tmpSize;
8332 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8333 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8334 return NULL;
8335 }
8336 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8337 return NULL;
8338 _arg2 = new wxString(tmpPtr, tmpSize);
8339 #else
8340 if (!PyString_Check(_obj2)) {
8341 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8342 return NULL;
8343 }
8344 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8345 #endif
8346 }
8347 if (_argo5) {
8348 if (_argo5 == Py_None) { _arg5 = NULL; }
8349 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
8350 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p.");
8351 return NULL;
8352 }
8353 }
8354 {
8355 PyThreadState* __tstate = wxPyBeginAllowThreads();
8356 _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
8357
8358 wxPyEndAllowThreads(__tstate);
8359 if (PyErr_Occurred()) return NULL;
8360 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8361 _resultobj = Py_BuildValue("s",_ptemp);
8362 {
8363 if (_obj2)
8364 delete _arg2;
8365 }
8366 return _resultobj;
8367 }
8368
8369 #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8370 static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8371 PyObject * _resultobj;
8372 wxTreeItemId * _result;
8373 wxPyTreeCtrl * _arg0;
8374 wxTreeItemId * _arg1;
8375 wxTreeItemId * _arg2;
8376 wxString * _arg3;
8377 int _arg4 = (int ) -1;
8378 int _arg5 = (int ) -1;
8379 wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
8380 PyObject * _argo0 = 0;
8381 PyObject * _argo1 = 0;
8382 PyObject * _argo2 = 0;
8383 PyObject * _obj3 = 0;
8384 PyObject * _argo6 = 0;
8385 char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL };
8386 char _ptemp[128];
8387
8388 self = self;
8389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6))
8390 return NULL;
8391 if (_argo0) {
8392 if (_argo0 == Py_None) { _arg0 = NULL; }
8393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p.");
8395 return NULL;
8396 }
8397 }
8398 if (_argo1) {
8399 if (_argo1 == Py_None) { _arg1 = NULL; }
8400 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8401 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
8402 return NULL;
8403 }
8404 }
8405 if (_argo2) {
8406 if (_argo2 == Py_None) { _arg2 = NULL; }
8407 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) {
8408 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
8409 return NULL;
8410 }
8411 }
8412 {
8413 #if PYTHON_API_VERSION >= 1009
8414 char* tmpPtr; int tmpSize;
8415 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8416 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8417 return NULL;
8418 }
8419 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8420 return NULL;
8421 _arg3 = new wxString(tmpPtr, tmpSize);
8422 #else
8423 if (!PyString_Check(_obj3)) {
8424 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8425 return NULL;
8426 }
8427 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8428 #endif
8429 }
8430 if (_argo6) {
8431 if (_argo6 == Py_None) { _arg6 = NULL; }
8432 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
8433 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p.");
8434 return NULL;
8435 }
8436 }
8437 {
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6));
8440
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) return NULL;
8443 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8444 _resultobj = Py_BuildValue("s",_ptemp);
8445 {
8446 if (_obj3)
8447 delete _arg3;
8448 }
8449 return _resultobj;
8450 }
8451
8452 #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8453 static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
8454 PyObject * _resultobj;
8455 wxTreeItemId * _result;
8456 wxPyTreeCtrl * _arg0;
8457 wxTreeItemId * _arg1;
8458 size_t _arg2;
8459 wxString * _arg3;
8460 int _arg4 = (int ) -1;
8461 int _arg5 = (int ) -1;
8462 wxTreeItemData * _arg6 = (wxTreeItemData *) NULL;
8463 PyObject * _argo0 = 0;
8464 PyObject * _argo1 = 0;
8465 PyObject * _obj3 = 0;
8466 PyObject * _argo6 = 0;
8467 char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL };
8468 char _ptemp[128];
8469
8470 self = self;
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6))
8472 return NULL;
8473 if (_argo0) {
8474 if (_argo0 == Py_None) { _arg0 = NULL; }
8475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p.");
8477 return NULL;
8478 }
8479 }
8480 if (_argo1) {
8481 if (_argo1 == Py_None) { _arg1 = NULL; }
8482 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8483 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p.");
8484 return NULL;
8485 }
8486 }
8487 {
8488 #if PYTHON_API_VERSION >= 1009
8489 char* tmpPtr; int tmpSize;
8490 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8491 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8492 return NULL;
8493 }
8494 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8495 return NULL;
8496 _arg3 = new wxString(tmpPtr, tmpSize);
8497 #else
8498 if (!PyString_Check(_obj3)) {
8499 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8500 return NULL;
8501 }
8502 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8503 #endif
8504 }
8505 if (_argo6) {
8506 if (_argo6 == Py_None) { _arg6 = NULL; }
8507 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) {
8508 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p.");
8509 return NULL;
8510 }
8511 }
8512 {
8513 PyThreadState* __tstate = wxPyBeginAllowThreads();
8514 _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6));
8515
8516 wxPyEndAllowThreads(__tstate);
8517 if (PyErr_Occurred()) return NULL;
8518 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8519 _resultobj = Py_BuildValue("s",_ptemp);
8520 {
8521 if (_obj3)
8522 delete _arg3;
8523 }
8524 return _resultobj;
8525 }
8526
8527 #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8528 static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8529 PyObject * _resultobj;
8530 wxTreeItemId * _result;
8531 wxPyTreeCtrl * _arg0;
8532 wxTreeItemId * _arg1;
8533 wxString * _arg2;
8534 int _arg3 = (int ) -1;
8535 int _arg4 = (int ) -1;
8536 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
8537 PyObject * _argo0 = 0;
8538 PyObject * _argo1 = 0;
8539 PyObject * _obj2 = 0;
8540 PyObject * _argo5 = 0;
8541 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
8542 char _ptemp[128];
8543
8544 self = self;
8545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
8546 return NULL;
8547 if (_argo0) {
8548 if (_argo0 == Py_None) { _arg0 = NULL; }
8549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p.");
8551 return NULL;
8552 }
8553 }
8554 if (_argo1) {
8555 if (_argo1 == Py_None) { _arg1 = NULL; }
8556 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8557 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p.");
8558 return NULL;
8559 }
8560 }
8561 {
8562 #if PYTHON_API_VERSION >= 1009
8563 char* tmpPtr; int tmpSize;
8564 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8565 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8566 return NULL;
8567 }
8568 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8569 return NULL;
8570 _arg2 = new wxString(tmpPtr, tmpSize);
8571 #else
8572 if (!PyString_Check(_obj2)) {
8573 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8574 return NULL;
8575 }
8576 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8577 #endif
8578 }
8579 if (_argo5) {
8580 if (_argo5 == Py_None) { _arg5 = NULL; }
8581 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
8582 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p.");
8583 return NULL;
8584 }
8585 }
8586 {
8587 PyThreadState* __tstate = wxPyBeginAllowThreads();
8588 _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
8589
8590 wxPyEndAllowThreads(__tstate);
8591 if (PyErr_Occurred()) return NULL;
8592 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8593 _resultobj = Py_BuildValue("s",_ptemp);
8594 {
8595 if (_obj2)
8596 delete _arg2;
8597 }
8598 return _resultobj;
8599 }
8600
8601 #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
8602 static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
8603 PyObject * _resultobj;
8604 wxPyTreeCtrl * _arg0;
8605 wxTreeItemId * _arg1;
8606 PyObject * _argo0 = 0;
8607 PyObject * _argo1 = 0;
8608 char *_kwnames[] = { "self","item", NULL };
8609
8610 self = self;
8611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1))
8612 return NULL;
8613 if (_argo0) {
8614 if (_argo0 == Py_None) { _arg0 = NULL; }
8615 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8616 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p.");
8617 return NULL;
8618 }
8619 }
8620 if (_argo1) {
8621 if (_argo1 == Py_None) { _arg1 = NULL; }
8622 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8623 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p.");
8624 return NULL;
8625 }
8626 }
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 wxTreeCtrl_Delete(_arg0,*_arg1);
8630
8631 wxPyEndAllowThreads(__tstate);
8632 if (PyErr_Occurred()) return NULL;
8633 } Py_INCREF(Py_None);
8634 _resultobj = Py_None;
8635 return _resultobj;
8636 }
8637
8638 #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0))
8639 static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
8640 PyObject * _resultobj;
8641 wxPyTreeCtrl * _arg0;
8642 wxTreeItemId * _arg1;
8643 PyObject * _argo0 = 0;
8644 PyObject * _argo1 = 0;
8645 char *_kwnames[] = { "self","item", NULL };
8646
8647 self = self;
8648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1))
8649 return NULL;
8650 if (_argo0) {
8651 if (_argo0 == Py_None) { _arg0 = NULL; }
8652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p.");
8654 return NULL;
8655 }
8656 }
8657 if (_argo1) {
8658 if (_argo1 == Py_None) { _arg1 = NULL; }
8659 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8660 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p.");
8661 return NULL;
8662 }
8663 }
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 wxTreeCtrl_DeleteChildren(_arg0,*_arg1);
8667
8668 wxPyEndAllowThreads(__tstate);
8669 if (PyErr_Occurred()) return NULL;
8670 } Py_INCREF(Py_None);
8671 _resultobj = Py_None;
8672 return _resultobj;
8673 }
8674
8675 #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
8676 static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
8677 PyObject * _resultobj;
8678 wxPyTreeCtrl * _arg0;
8679 PyObject * _argo0 = 0;
8680 char *_kwnames[] = { "self", NULL };
8681
8682 self = self;
8683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0))
8684 return NULL;
8685 if (_argo0) {
8686 if (_argo0 == Py_None) { _arg0 = NULL; }
8687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p.");
8689 return NULL;
8690 }
8691 }
8692 {
8693 PyThreadState* __tstate = wxPyBeginAllowThreads();
8694 wxTreeCtrl_DeleteAllItems(_arg0);
8695
8696 wxPyEndAllowThreads(__tstate);
8697 if (PyErr_Occurred()) return NULL;
8698 } Py_INCREF(Py_None);
8699 _resultobj = Py_None;
8700 return _resultobj;
8701 }
8702
8703 #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0))
8704 static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
8705 PyObject * _resultobj;
8706 wxPyTreeCtrl * _arg0;
8707 wxTreeItemId * _arg1;
8708 PyObject * _argo0 = 0;
8709 PyObject * _argo1 = 0;
8710 char *_kwnames[] = { "self","item", NULL };
8711
8712 self = self;
8713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1))
8714 return NULL;
8715 if (_argo0) {
8716 if (_argo0 == Py_None) { _arg0 = NULL; }
8717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p.");
8719 return NULL;
8720 }
8721 }
8722 if (_argo1) {
8723 if (_argo1 == Py_None) { _arg1 = NULL; }
8724 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8725 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p.");
8726 return NULL;
8727 }
8728 }
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 wxTreeCtrl_Expand(_arg0,*_arg1);
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) return NULL;
8735 } Py_INCREF(Py_None);
8736 _resultobj = Py_None;
8737 return _resultobj;
8738 }
8739
8740 #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0))
8741 static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
8742 PyObject * _resultobj;
8743 wxPyTreeCtrl * _arg0;
8744 wxTreeItemId * _arg1;
8745 PyObject * _argo0 = 0;
8746 PyObject * _argo1 = 0;
8747 char *_kwnames[] = { "self","item", NULL };
8748
8749 self = self;
8750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1))
8751 return NULL;
8752 if (_argo0) {
8753 if (_argo0 == Py_None) { _arg0 = NULL; }
8754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8755 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p.");
8756 return NULL;
8757 }
8758 }
8759 if (_argo1) {
8760 if (_argo1 == Py_None) { _arg1 = NULL; }
8761 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8762 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p.");
8763 return NULL;
8764 }
8765 }
8766 {
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 wxTreeCtrl_Collapse(_arg0,*_arg1);
8769
8770 wxPyEndAllowThreads(__tstate);
8771 if (PyErr_Occurred()) return NULL;
8772 } Py_INCREF(Py_None);
8773 _resultobj = Py_None;
8774 return _resultobj;
8775 }
8776
8777 #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0))
8778 static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
8779 PyObject * _resultobj;
8780 wxPyTreeCtrl * _arg0;
8781 wxTreeItemId * _arg1;
8782 PyObject * _argo0 = 0;
8783 PyObject * _argo1 = 0;
8784 char *_kwnames[] = { "self","item", NULL };
8785
8786 self = self;
8787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1))
8788 return NULL;
8789 if (_argo0) {
8790 if (_argo0 == Py_None) { _arg0 = NULL; }
8791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p.");
8793 return NULL;
8794 }
8795 }
8796 if (_argo1) {
8797 if (_argo1 == Py_None) { _arg1 = NULL; }
8798 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8799 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p.");
8800 return NULL;
8801 }
8802 }
8803 {
8804 PyThreadState* __tstate = wxPyBeginAllowThreads();
8805 wxTreeCtrl_CollapseAndReset(_arg0,*_arg1);
8806
8807 wxPyEndAllowThreads(__tstate);
8808 if (PyErr_Occurred()) return NULL;
8809 } Py_INCREF(Py_None);
8810 _resultobj = Py_None;
8811 return _resultobj;
8812 }
8813
8814 #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
8815 static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
8816 PyObject * _resultobj;
8817 wxPyTreeCtrl * _arg0;
8818 wxTreeItemId * _arg1;
8819 PyObject * _argo0 = 0;
8820 PyObject * _argo1 = 0;
8821 char *_kwnames[] = { "self","item", NULL };
8822
8823 self = self;
8824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1))
8825 return NULL;
8826 if (_argo0) {
8827 if (_argo0 == Py_None) { _arg0 = NULL; }
8828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p.");
8830 return NULL;
8831 }
8832 }
8833 if (_argo1) {
8834 if (_argo1 == Py_None) { _arg1 = NULL; }
8835 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8836 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p.");
8837 return NULL;
8838 }
8839 }
8840 {
8841 PyThreadState* __tstate = wxPyBeginAllowThreads();
8842 wxTreeCtrl_Toggle(_arg0,*_arg1);
8843
8844 wxPyEndAllowThreads(__tstate);
8845 if (PyErr_Occurred()) return NULL;
8846 } Py_INCREF(Py_None);
8847 _resultobj = Py_None;
8848 return _resultobj;
8849 }
8850
8851 #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect())
8852 static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
8853 PyObject * _resultobj;
8854 wxPyTreeCtrl * _arg0;
8855 PyObject * _argo0 = 0;
8856 char *_kwnames[] = { "self", NULL };
8857
8858 self = self;
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0))
8860 return NULL;
8861 if (_argo0) {
8862 if (_argo0 == Py_None) { _arg0 = NULL; }
8863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p.");
8865 return NULL;
8866 }
8867 }
8868 {
8869 PyThreadState* __tstate = wxPyBeginAllowThreads();
8870 wxTreeCtrl_Unselect(_arg0);
8871
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) return NULL;
8874 } Py_INCREF(Py_None);
8875 _resultobj = Py_None;
8876 return _resultobj;
8877 }
8878
8879 #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll())
8880 static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8881 PyObject * _resultobj;
8882 wxPyTreeCtrl * _arg0;
8883 PyObject * _argo0 = 0;
8884 char *_kwnames[] = { "self", NULL };
8885
8886 self = self;
8887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0))
8888 return NULL;
8889 if (_argo0) {
8890 if (_argo0 == Py_None) { _arg0 = NULL; }
8891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p.");
8893 return NULL;
8894 }
8895 }
8896 {
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 wxTreeCtrl_UnselectAll(_arg0);
8899
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) return NULL;
8902 } Py_INCREF(Py_None);
8903 _resultobj = Py_None;
8904 return _resultobj;
8905 }
8906
8907 #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0))
8908 static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8909 PyObject * _resultobj;
8910 wxPyTreeCtrl * _arg0;
8911 wxTreeItemId * _arg1;
8912 PyObject * _argo0 = 0;
8913 PyObject * _argo1 = 0;
8914 char *_kwnames[] = { "self","item", NULL };
8915
8916 self = self;
8917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1))
8918 return NULL;
8919 if (_argo0) {
8920 if (_argo0 == Py_None) { _arg0 = NULL; }
8921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p.");
8923 return NULL;
8924 }
8925 }
8926 if (_argo1) {
8927 if (_argo1 == Py_None) { _arg1 = NULL; }
8928 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8929 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p.");
8930 return NULL;
8931 }
8932 }
8933 {
8934 PyThreadState* __tstate = wxPyBeginAllowThreads();
8935 wxTreeCtrl_SelectItem(_arg0,*_arg1);
8936
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) return NULL;
8939 } Py_INCREF(Py_None);
8940 _resultobj = Py_None;
8941 return _resultobj;
8942 }
8943
8944 #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
8945 static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8946 PyObject * _resultobj;
8947 wxPyTreeCtrl * _arg0;
8948 wxTreeItemId * _arg1;
8949 PyObject * _argo0 = 0;
8950 PyObject * _argo1 = 0;
8951 char *_kwnames[] = { "self","item", NULL };
8952
8953 self = self;
8954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1))
8955 return NULL;
8956 if (_argo0) {
8957 if (_argo0 == Py_None) { _arg0 = NULL; }
8958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p.");
8960 return NULL;
8961 }
8962 }
8963 if (_argo1) {
8964 if (_argo1 == Py_None) { _arg1 = NULL; }
8965 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8966 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p.");
8967 return NULL;
8968 }
8969 }
8970 {
8971 PyThreadState* __tstate = wxPyBeginAllowThreads();
8972 wxTreeCtrl_EnsureVisible(_arg0,*_arg1);
8973
8974 wxPyEndAllowThreads(__tstate);
8975 if (PyErr_Occurred()) return NULL;
8976 } Py_INCREF(Py_None);
8977 _resultobj = Py_None;
8978 return _resultobj;
8979 }
8980
8981 #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0))
8982 static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
8983 PyObject * _resultobj;
8984 wxPyTreeCtrl * _arg0;
8985 wxTreeItemId * _arg1;
8986 PyObject * _argo0 = 0;
8987 PyObject * _argo1 = 0;
8988 char *_kwnames[] = { "self","item", NULL };
8989
8990 self = self;
8991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1))
8992 return NULL;
8993 if (_argo0) {
8994 if (_argo0 == Py_None) { _arg0 = NULL; }
8995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p.");
8997 return NULL;
8998 }
8999 }
9000 if (_argo1) {
9001 if (_argo1 == Py_None) { _arg1 = NULL; }
9002 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9003 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p.");
9004 return NULL;
9005 }
9006 }
9007 {
9008 PyThreadState* __tstate = wxPyBeginAllowThreads();
9009 wxTreeCtrl_ScrollTo(_arg0,*_arg1);
9010
9011 wxPyEndAllowThreads(__tstate);
9012 if (PyErr_Occurred()) return NULL;
9013 } Py_INCREF(Py_None);
9014 _resultobj = Py_None;
9015 return _resultobj;
9016 }
9017
9018 #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
9019 static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9020 PyObject * _resultobj;
9021 wxTextCtrl * _result;
9022 wxPyTreeCtrl * _arg0;
9023 wxTreeItemId * _arg1;
9024 PyObject * _argo0 = 0;
9025 PyObject * _argo1 = 0;
9026 char *_kwnames[] = { "self","item", NULL };
9027
9028 self = self;
9029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1))
9030 return NULL;
9031 if (_argo0) {
9032 if (_argo0 == Py_None) { _arg0 = NULL; }
9033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p.");
9035 return NULL;
9036 }
9037 }
9038 if (_argo1) {
9039 if (_argo1 == Py_None) { _arg1 = NULL; }
9040 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9041 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p.");
9042 return NULL;
9043 }
9044 }
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1);
9048
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) return NULL;
9051 }{ _resultobj = wxPyMake_wxObject(_result); }
9052 return _resultobj;
9053 }
9054
9055 #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
9056 static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9057 PyObject * _resultobj;
9058 wxTextCtrl * _result;
9059 wxPyTreeCtrl * _arg0;
9060 PyObject * _argo0 = 0;
9061 char *_kwnames[] = { "self", NULL };
9062
9063 self = self;
9064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0))
9065 return NULL;
9066 if (_argo0) {
9067 if (_argo0 == Py_None) { _arg0 = NULL; }
9068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p.");
9070 return NULL;
9071 }
9072 }
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0);
9076
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) return NULL;
9079 }{ _resultobj = wxPyMake_wxObject(_result); }
9080 return _resultobj;
9081 }
9082
9083 #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1))
9084 static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject * _resultobj;
9086 wxPyTreeCtrl * _arg0;
9087 wxTreeItemId * _arg1;
9088 int _arg2 = (int ) FALSE;
9089 PyObject * _argo0 = 0;
9090 PyObject * _argo1 = 0;
9091 char *_kwnames[] = { "self","item","discardChanges", NULL };
9092
9093 self = self;
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2))
9095 return NULL;
9096 if (_argo0) {
9097 if (_argo0 == Py_None) { _arg0 = NULL; }
9098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p.");
9100 return NULL;
9101 }
9102 }
9103 if (_argo1) {
9104 if (_argo1 == Py_None) { _arg1 = NULL; }
9105 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9106 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p.");
9107 return NULL;
9108 }
9109 }
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2);
9113
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) return NULL;
9116 } Py_INCREF(Py_None);
9117 _resultobj = Py_None;
9118 return _resultobj;
9119 }
9120
9121 #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0))
9122 static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
9123 PyObject * _resultobj;
9124 wxPyTreeCtrl * _arg0;
9125 wxTreeItemId * _arg1;
9126 PyObject * _argo0 = 0;
9127 PyObject * _argo1 = 0;
9128 char *_kwnames[] = { "self","item", NULL };
9129
9130 self = self;
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1))
9132 return NULL;
9133 if (_argo0) {
9134 if (_argo0 == Py_None) { _arg0 = NULL; }
9135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p.");
9137 return NULL;
9138 }
9139 }
9140 if (_argo1) {
9141 if (_argo1 == Py_None) { _arg1 = NULL; }
9142 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9143 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p.");
9144 return NULL;
9145 }
9146 }
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 wxTreeCtrl_SortChildren(_arg0,*_arg1);
9150
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) return NULL;
9153 } Py_INCREF(Py_None);
9154 _resultobj = Py_None;
9155 return _resultobj;
9156 }
9157
9158 #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1))
9159 static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
9160 PyObject * _resultobj;
9161 wxPyTreeCtrl * _arg0;
9162 wxTreeItemId * _arg1;
9163 int _arg2 = (int ) TRUE;
9164 PyObject * _argo0 = 0;
9165 PyObject * _argo1 = 0;
9166 char *_kwnames[] = { "self","item","bold", NULL };
9167
9168 self = self;
9169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2))
9170 return NULL;
9171 if (_argo0) {
9172 if (_argo0 == Py_None) { _arg0 = NULL; }
9173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p.");
9175 return NULL;
9176 }
9177 }
9178 if (_argo1) {
9179 if (_argo1 == Py_None) { _arg1 = NULL; }
9180 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9181 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p.");
9182 return NULL;
9183 }
9184 }
9185 {
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2);
9188
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) return NULL;
9191 } Py_INCREF(Py_None);
9192 _resultobj = Py_None;
9193 return _resultobj;
9194 }
9195
9196 #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0))
9197 static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
9198 PyObject * _resultobj;
9199 bool _result;
9200 wxPyTreeCtrl * _arg0;
9201 wxTreeItemId * _arg1;
9202 PyObject * _argo0 = 0;
9203 PyObject * _argo1 = 0;
9204 char *_kwnames[] = { "self","item", NULL };
9205
9206 self = self;
9207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1))
9208 return NULL;
9209 if (_argo0) {
9210 if (_argo0 == Py_None) { _arg0 = NULL; }
9211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p.");
9213 return NULL;
9214 }
9215 }
9216 if (_argo1) {
9217 if (_argo1 == Py_None) { _arg1 = NULL; }
9218 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9219 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p.");
9220 return NULL;
9221 }
9222 }
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1);
9226
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) return NULL;
9229 } _resultobj = Py_BuildValue("i",_result);
9230 return _resultobj;
9231 }
9232
9233 #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
9234 static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
9235 PyObject * _resultobj;
9236 wxTreeItemId * _result;
9237 wxPyTreeCtrl * _arg0;
9238 wxPoint * _arg1;
9239 int * _arg2;
9240 int temp;
9241 PyObject * _argo0 = 0;
9242 wxPoint temp0;
9243 PyObject * _obj1 = 0;
9244 char *_kwnames[] = { "self","point", NULL };
9245 char _ptemp[128];
9246
9247 self = self;
9248 {
9249 _arg2 = &temp;
9250 }
9251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1))
9252 return NULL;
9253 if (_argo0) {
9254 if (_argo0 == Py_None) { _arg0 = NULL; }
9255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p.");
9257 return NULL;
9258 }
9259 }
9260 {
9261 _arg1 = &temp0;
9262 if (! wxPoint_helper(_obj1, &_arg1))
9263 return NULL;
9264 }
9265 {
9266 PyThreadState* __tstate = wxPyBeginAllowThreads();
9267 _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2));
9268
9269 wxPyEndAllowThreads(__tstate);
9270 if (PyErr_Occurred()) return NULL;
9271 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
9272 _resultobj = Py_BuildValue("s",_ptemp);
9273 {
9274 PyObject *o;
9275 o = PyInt_FromLong((long) (*_arg2));
9276 _resultobj = t_output_helper(_resultobj, o);
9277 }
9278 return _resultobj;
9279 }
9280
9281 #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1))
9282 static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9283 PyObject * _resultobj;
9284 wxPyTreeCtrl * _arg0;
9285 wxTreeItemId * _arg1;
9286 wxColour * _arg2;
9287 PyObject * _argo0 = 0;
9288 PyObject * _argo1 = 0;
9289 wxColour temp;
9290 PyObject * _obj2 = 0;
9291 char *_kwnames[] = { "self","item","col", NULL };
9292
9293 self = self;
9294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2))
9295 return NULL;
9296 if (_argo0) {
9297 if (_argo0 == Py_None) { _arg0 = NULL; }
9298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p.");
9300 return NULL;
9301 }
9302 }
9303 if (_argo1) {
9304 if (_argo1 == Py_None) { _arg1 = NULL; }
9305 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9306 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p.");
9307 return NULL;
9308 }
9309 }
9310 {
9311 _arg2 = &temp;
9312 if (! wxColour_helper(_obj2, &_arg2))
9313 return NULL;
9314 }
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2);
9318
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) return NULL;
9321 } Py_INCREF(Py_None);
9322 _resultobj = Py_None;
9323 return _resultobj;
9324 }
9325
9326 #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1))
9327 static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9328 PyObject * _resultobj;
9329 wxPyTreeCtrl * _arg0;
9330 wxTreeItemId * _arg1;
9331 wxColour * _arg2;
9332 PyObject * _argo0 = 0;
9333 PyObject * _argo1 = 0;
9334 wxColour temp;
9335 PyObject * _obj2 = 0;
9336 char *_kwnames[] = { "self","item","col", NULL };
9337
9338 self = self;
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2))
9340 return NULL;
9341 if (_argo0) {
9342 if (_argo0 == Py_None) { _arg0 = NULL; }
9343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p.");
9345 return NULL;
9346 }
9347 }
9348 if (_argo1) {
9349 if (_argo1 == Py_None) { _arg1 = NULL; }
9350 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9351 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p.");
9352 return NULL;
9353 }
9354 }
9355 {
9356 _arg2 = &temp;
9357 if (! wxColour_helper(_obj2, &_arg2))
9358 return NULL;
9359 }
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2);
9363
9364 wxPyEndAllowThreads(__tstate);
9365 if (PyErr_Occurred()) return NULL;
9366 } Py_INCREF(Py_None);
9367 _resultobj = Py_None;
9368 return _resultobj;
9369 }
9370
9371 #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1))
9372 static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9373 PyObject * _resultobj;
9374 wxPyTreeCtrl * _arg0;
9375 wxTreeItemId * _arg1;
9376 wxFont * _arg2;
9377 PyObject * _argo0 = 0;
9378 PyObject * _argo1 = 0;
9379 PyObject * _argo2 = 0;
9380 char *_kwnames[] = { "self","item","font", NULL };
9381
9382 self = self;
9383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2))
9384 return NULL;
9385 if (_argo0) {
9386 if (_argo0 == Py_None) { _arg0 = NULL; }
9387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p.");
9389 return NULL;
9390 }
9391 }
9392 if (_argo1) {
9393 if (_argo1 == Py_None) { _arg1 = NULL; }
9394 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9395 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p.");
9396 return NULL;
9397 }
9398 }
9399 if (_argo2) {
9400 if (_argo2 == Py_None) { _arg2 = NULL; }
9401 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
9402 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p.");
9403 return NULL;
9404 }
9405 }
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2);
9409
9410 wxPyEndAllowThreads(__tstate);
9411 if (PyErr_Occurred()) return NULL;
9412 } Py_INCREF(Py_None);
9413 _resultobj = Py_None;
9414 return _resultobj;
9415 }
9416
9417 #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1))
9418 static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
9419 PyObject * _resultobj;
9420 wxPyTreeCtrl * _arg0;
9421 wxTreeItemId * _arg1;
9422 int _arg2 = (int ) TRUE;
9423 PyObject * _argo0 = 0;
9424 PyObject * _argo1 = 0;
9425 char *_kwnames[] = { "self","item","highlight", NULL };
9426
9427 self = self;
9428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2))
9429 return NULL;
9430 if (_argo0) {
9431 if (_argo0 == Py_None) { _arg0 = NULL; }
9432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p.");
9434 return NULL;
9435 }
9436 }
9437 if (_argo1) {
9438 if (_argo1 == Py_None) { _arg1 = NULL; }
9439 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9440 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p.");
9441 return NULL;
9442 }
9443 }
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2);
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) return NULL;
9450 } Py_INCREF(Py_None);
9451 _resultobj = Py_None;
9452 return _resultobj;
9453 }
9454
9455 static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) {
9456 wxRect rect;
9457 if (self->GetBoundingRect(item, rect, textOnly)) {
9458 wxPyBeginBlockThreads();
9459 wxRect* r = new wxRect(rect);
9460 PyObject* val = wxPyConstructObject((void*)r, "wxRect");
9461 wxPyEndBlockThreads();
9462 return val;
9463 }
9464 else {
9465 Py_INCREF(Py_None);
9466 return Py_None;
9467 }
9468 }
9469 static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9470 PyObject * _resultobj;
9471 PyObject * _result;
9472 wxPyTreeCtrl * _arg0;
9473 wxTreeItemId * _arg1;
9474 int _arg2 = (int ) FALSE;
9475 PyObject * _argo0 = 0;
9476 PyObject * _argo1 = 0;
9477 char *_kwnames[] = { "self","item","textOnly", NULL };
9478
9479 self = self;
9480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2))
9481 return NULL;
9482 if (_argo0) {
9483 if (_argo0 == Py_None) { _arg0 = NULL; }
9484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p.");
9486 return NULL;
9487 }
9488 }
9489 if (_argo1) {
9490 if (_argo1 == Py_None) { _arg1 = NULL; }
9491 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9492 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p.");
9493 return NULL;
9494 }
9495 }
9496 {
9497 PyThreadState* __tstate = wxPyBeginAllowThreads();
9498 _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2);
9499
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) return NULL;
9502 }{
9503 _resultobj = _result;
9504 }
9505 return _resultobj;
9506 }
9507
9508 static void *SwigwxDirItemDataTowxObject(void *ptr) {
9509 wxDirItemData *src;
9510 wxObject *dest;
9511 src = (wxDirItemData *) ptr;
9512 dest = (wxObject *) src;
9513 return (void *) dest;
9514 }
9515
9516 #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2))
9517 static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
9518 PyObject * _resultobj;
9519 wxDirItemData * _result;
9520 wxString * _arg0;
9521 wxString * _arg1;
9522 bool _arg2;
9523 PyObject * _obj0 = 0;
9524 PyObject * _obj1 = 0;
9525 int tempbool2;
9526 char *_kwnames[] = { "path","name","isDir", NULL };
9527 char _ptemp[128];
9528
9529 self = self;
9530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2))
9531 return NULL;
9532 {
9533 #if PYTHON_API_VERSION >= 1009
9534 char* tmpPtr; int tmpSize;
9535 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
9536 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9537 return NULL;
9538 }
9539 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
9540 return NULL;
9541 _arg0 = new wxString(tmpPtr, tmpSize);
9542 #else
9543 if (!PyString_Check(_obj0)) {
9544 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9545 return NULL;
9546 }
9547 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
9548 #endif
9549 }
9550 {
9551 #if PYTHON_API_VERSION >= 1009
9552 char* tmpPtr; int tmpSize;
9553 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9554 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9555 return NULL;
9556 }
9557 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9558 return NULL;
9559 _arg1 = new wxString(tmpPtr, tmpSize);
9560 #else
9561 if (!PyString_Check(_obj1)) {
9562 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9563 return NULL;
9564 }
9565 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9566 #endif
9567 }
9568 _arg2 = (bool ) tempbool2;
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2);
9572
9573 wxPyEndAllowThreads(__tstate);
9574 if (PyErr_Occurred()) return NULL;
9575 } if (_result) {
9576 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p");
9577 _resultobj = Py_BuildValue("s",_ptemp);
9578 } else {
9579 Py_INCREF(Py_None);
9580 _resultobj = Py_None;
9581 }
9582 {
9583 if (_obj0)
9584 delete _arg0;
9585 }
9586 {
9587 if (_obj1)
9588 delete _arg1;
9589 }
9590 return _resultobj;
9591 }
9592
9593 #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0))
9594 static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) {
9595 PyObject * _resultobj;
9596 wxDirItemData * _arg0;
9597 wxString * _arg1;
9598 PyObject * _argo0 = 0;
9599 PyObject * _obj1 = 0;
9600 char *_kwnames[] = { "self","path", NULL };
9601
9602 self = self;
9603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1))
9604 return NULL;
9605 if (_argo0) {
9606 if (_argo0 == Py_None) { _arg0 = NULL; }
9607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p.");
9609 return NULL;
9610 }
9611 }
9612 {
9613 #if PYTHON_API_VERSION >= 1009
9614 char* tmpPtr; int tmpSize;
9615 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9616 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9617 return NULL;
9618 }
9619 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9620 return NULL;
9621 _arg1 = new wxString(tmpPtr, tmpSize);
9622 #else
9623 if (!PyString_Check(_obj1)) {
9624 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9625 return NULL;
9626 }
9627 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9628 #endif
9629 }
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 wxDirItemData_SetNewDirName(_arg0,*_arg1);
9633
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) return NULL;
9636 } Py_INCREF(Py_None);
9637 _resultobj = Py_None;
9638 {
9639 if (_obj1)
9640 delete _arg1;
9641 }
9642 return _resultobj;
9643 }
9644
9645 #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval)
9646 static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9647 PyObject * _resultobj;
9648 wxString * _result;
9649 wxDirItemData * _arg0;
9650 wxString * _arg1;
9651 PyObject * _argo0 = 0;
9652 PyObject * _obj1 = 0;
9653 char *_kwnames[] = { "self","m_path", NULL };
9654
9655 self = self;
9656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1))
9657 return NULL;
9658 if (_argo0) {
9659 if (_argo0 == Py_None) { _arg0 = NULL; }
9660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p.");
9662 return NULL;
9663 }
9664 }
9665 {
9666 #if PYTHON_API_VERSION >= 1009
9667 char* tmpPtr; int tmpSize;
9668 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9669 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9670 return NULL;
9671 }
9672 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9673 return NULL;
9674 _arg1 = new wxString(tmpPtr, tmpSize);
9675 #else
9676 if (!PyString_Check(_obj1)) {
9677 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9678 return NULL;
9679 }
9680 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9681 #endif
9682 }
9683 {
9684 PyThreadState* __tstate = wxPyBeginAllowThreads();
9685 _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1);
9686
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) return NULL;
9689 }{
9690 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9691 }
9692 {
9693 if (_obj1)
9694 delete _arg1;
9695 }
9696 return _resultobj;
9697 }
9698
9699 #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path)
9700 static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9701 PyObject * _resultobj;
9702 wxString * _result;
9703 wxDirItemData * _arg0;
9704 PyObject * _argo0 = 0;
9705 char *_kwnames[] = { "self", NULL };
9706
9707 self = self;
9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0))
9709 return NULL;
9710 if (_argo0) {
9711 if (_argo0 == Py_None) { _arg0 = NULL; }
9712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p.");
9714 return NULL;
9715 }
9716 }
9717 {
9718 PyThreadState* __tstate = wxPyBeginAllowThreads();
9719 _result = (wxString *)wxDirItemData_m_path_get(_arg0);
9720
9721 wxPyEndAllowThreads(__tstate);
9722 if (PyErr_Occurred()) return NULL;
9723 }{
9724 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9725 }
9726 return _resultobj;
9727 }
9728
9729 #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval)
9730 static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9731 PyObject * _resultobj;
9732 wxString * _result;
9733 wxDirItemData * _arg0;
9734 wxString * _arg1;
9735 PyObject * _argo0 = 0;
9736 PyObject * _obj1 = 0;
9737 char *_kwnames[] = { "self","m_name", NULL };
9738
9739 self = self;
9740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1))
9741 return NULL;
9742 if (_argo0) {
9743 if (_argo0 == Py_None) { _arg0 = NULL; }
9744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p.");
9746 return NULL;
9747 }
9748 }
9749 {
9750 #if PYTHON_API_VERSION >= 1009
9751 char* tmpPtr; int tmpSize;
9752 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9753 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9754 return NULL;
9755 }
9756 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9757 return NULL;
9758 _arg1 = new wxString(tmpPtr, tmpSize);
9759 #else
9760 if (!PyString_Check(_obj1)) {
9761 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9762 return NULL;
9763 }
9764 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9765 #endif
9766 }
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1);
9770
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) return NULL;
9773 }{
9774 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9775 }
9776 {
9777 if (_obj1)
9778 delete _arg1;
9779 }
9780 return _resultobj;
9781 }
9782
9783 #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name)
9784 static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9785 PyObject * _resultobj;
9786 wxString * _result;
9787 wxDirItemData * _arg0;
9788 PyObject * _argo0 = 0;
9789 char *_kwnames[] = { "self", NULL };
9790
9791 self = self;
9792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0))
9793 return NULL;
9794 if (_argo0) {
9795 if (_argo0 == Py_None) { _arg0 = NULL; }
9796 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9797 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p.");
9798 return NULL;
9799 }
9800 }
9801 {
9802 PyThreadState* __tstate = wxPyBeginAllowThreads();
9803 _result = (wxString *)wxDirItemData_m_name_get(_arg0);
9804
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) return NULL;
9807 }{
9808 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9809 }
9810 return _resultobj;
9811 }
9812
9813 #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval)
9814 static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9815 PyObject * _resultobj;
9816 bool _result;
9817 wxDirItemData * _arg0;
9818 bool _arg1;
9819 PyObject * _argo0 = 0;
9820 int tempbool1;
9821 char *_kwnames[] = { "self","m_isHidden", NULL };
9822
9823 self = self;
9824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1))
9825 return NULL;
9826 if (_argo0) {
9827 if (_argo0 == Py_None) { _arg0 = NULL; }
9828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p.");
9830 return NULL;
9831 }
9832 }
9833 _arg1 = (bool ) tempbool1;
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1);
9837
9838 wxPyEndAllowThreads(__tstate);
9839 if (PyErr_Occurred()) return NULL;
9840 } _resultobj = Py_BuildValue("i",_result);
9841 return _resultobj;
9842 }
9843
9844 #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden)
9845 static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9846 PyObject * _resultobj;
9847 bool _result;
9848 wxDirItemData * _arg0;
9849 PyObject * _argo0 = 0;
9850 char *_kwnames[] = { "self", NULL };
9851
9852 self = self;
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0))
9854 return NULL;
9855 if (_argo0) {
9856 if (_argo0 == Py_None) { _arg0 = NULL; }
9857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p.");
9859 return NULL;
9860 }
9861 }
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 _result = (bool )wxDirItemData_m_isHidden_get(_arg0);
9865
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) return NULL;
9868 } _resultobj = Py_BuildValue("i",_result);
9869 return _resultobj;
9870 }
9871
9872 #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval)
9873 static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9874 PyObject * _resultobj;
9875 bool _result;
9876 wxDirItemData * _arg0;
9877 bool _arg1;
9878 PyObject * _argo0 = 0;
9879 int tempbool1;
9880 char *_kwnames[] = { "self","m_isExpanded", NULL };
9881
9882 self = self;
9883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1))
9884 return NULL;
9885 if (_argo0) {
9886 if (_argo0 == Py_None) { _arg0 = NULL; }
9887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p.");
9889 return NULL;
9890 }
9891 }
9892 _arg1 = (bool ) tempbool1;
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1);
9896
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) return NULL;
9899 } _resultobj = Py_BuildValue("i",_result);
9900 return _resultobj;
9901 }
9902
9903 #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded)
9904 static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9905 PyObject * _resultobj;
9906 bool _result;
9907 wxDirItemData * _arg0;
9908 PyObject * _argo0 = 0;
9909 char *_kwnames[] = { "self", NULL };
9910
9911 self = self;
9912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0))
9913 return NULL;
9914 if (_argo0) {
9915 if (_argo0 == Py_None) { _arg0 = NULL; }
9916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p.");
9918 return NULL;
9919 }
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 _result = (bool )wxDirItemData_m_isExpanded_get(_arg0);
9924
9925 wxPyEndAllowThreads(__tstate);
9926 if (PyErr_Occurred()) return NULL;
9927 } _resultobj = Py_BuildValue("i",_result);
9928 return _resultobj;
9929 }
9930
9931 #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval)
9932 static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9933 PyObject * _resultobj;
9934 bool _result;
9935 wxDirItemData * _arg0;
9936 bool _arg1;
9937 PyObject * _argo0 = 0;
9938 int tempbool1;
9939 char *_kwnames[] = { "self","m_isDir", NULL };
9940
9941 self = self;
9942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1))
9943 return NULL;
9944 if (_argo0) {
9945 if (_argo0 == Py_None) { _arg0 = NULL; }
9946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p.");
9948 return NULL;
9949 }
9950 }
9951 _arg1 = (bool ) tempbool1;
9952 {
9953 PyThreadState* __tstate = wxPyBeginAllowThreads();
9954 _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1);
9955
9956 wxPyEndAllowThreads(__tstate);
9957 if (PyErr_Occurred()) return NULL;
9958 } _resultobj = Py_BuildValue("i",_result);
9959 return _resultobj;
9960 }
9961
9962 #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir)
9963 static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9964 PyObject * _resultobj;
9965 bool _result;
9966 wxDirItemData * _arg0;
9967 PyObject * _argo0 = 0;
9968 char *_kwnames[] = { "self", NULL };
9969
9970 self = self;
9971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0))
9972 return NULL;
9973 if (_argo0) {
9974 if (_argo0 == Py_None) { _arg0 = NULL; }
9975 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9976 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p.");
9977 return NULL;
9978 }
9979 }
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 _result = (bool )wxDirItemData_m_isDir_get(_arg0);
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) return NULL;
9986 } _resultobj = Py_BuildValue("i",_result);
9987 return _resultobj;
9988 }
9989
9990 static void *SwigwxGenericDirCtrlTowxControl(void *ptr) {
9991 wxGenericDirCtrl *src;
9992 wxControl *dest;
9993 src = (wxGenericDirCtrl *) ptr;
9994 dest = (wxControl *) src;
9995 return (void *) dest;
9996 }
9997
9998 static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) {
9999 wxGenericDirCtrl *src;
10000 wxWindow *dest;
10001 src = (wxGenericDirCtrl *) ptr;
10002 dest = (wxWindow *) src;
10003 return (void *) dest;
10004 }
10005
10006 static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) {
10007 wxGenericDirCtrl *src;
10008 wxEvtHandler *dest;
10009 src = (wxGenericDirCtrl *) ptr;
10010 dest = (wxEvtHandler *) src;
10011 return (void *) dest;
10012 }
10013
10014 static void *SwigwxGenericDirCtrlTowxObject(void *ptr) {
10015 wxGenericDirCtrl *src;
10016 wxObject *dest;
10017 src = (wxGenericDirCtrl *) ptr;
10018 dest = (wxObject *) src;
10019 return (void *) dest;
10020 }
10021
10022 #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
10023 static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10024 PyObject * _resultobj;
10025 wxGenericDirCtrl * _result;
10026 wxWindow * _arg0;
10027 wxWindowID _arg1 = (wxWindowID ) -1;
10028 char * _arg2 = (char *) wxDirDialogDefaultFolderStr;
10029 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10030 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10031 long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER;
10032 char * _arg6 = (char *) wxEmptyString;
10033 int _arg7 = (int ) 0;
10034 char * _arg8 = (char *) "dirCtrl";
10035 PyObject * _argo0 = 0;
10036 wxPoint temp;
10037 PyObject * _obj3 = 0;
10038 wxSize temp0;
10039 PyObject * _obj4 = 0;
10040 char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL };
10041 char _ptemp[128];
10042
10043 self = self;
10044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOlsis:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8))
10045 return NULL;
10046 if (_argo0) {
10047 if (_argo0 == Py_None) { _arg0 = NULL; }
10048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p.");
10050 return NULL;
10051 }
10052 }
10053 if (_obj3)
10054 {
10055 _arg3 = &temp;
10056 if (! wxPoint_helper(_obj3, &_arg3))
10057 return NULL;
10058 }
10059 if (_obj4)
10060 {
10061 _arg4 = &temp0;
10062 if (! wxSize_helper(_obj4, &_arg4))
10063 return NULL;
10064 }
10065 {
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8);
10068
10069 wxPyEndAllowThreads(__tstate);
10070 if (PyErr_Occurred()) return NULL;
10071 } if (_result) {
10072 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p");
10073 _resultobj = Py_BuildValue("s",_ptemp);
10074 } else {
10075 Py_INCREF(Py_None);
10076 _resultobj = Py_None;
10077 }
10078 return _resultobj;
10079 }
10080
10081 #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl())
10082 static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10083 PyObject * _resultobj;
10084 wxGenericDirCtrl * _result;
10085 char *_kwnames[] = { NULL };
10086 char _ptemp[128];
10087
10088 self = self;
10089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames))
10090 return NULL;
10091 {
10092 PyThreadState* __tstate = wxPyBeginAllowThreads();
10093 _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl();
10094
10095 wxPyEndAllowThreads(__tstate);
10096 if (PyErr_Occurred()) return NULL;
10097 } if (_result) {
10098 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p");
10099 _resultobj = Py_BuildValue("s",_ptemp);
10100 } else {
10101 Py_INCREF(Py_None);
10102 _resultobj = Py_None;
10103 }
10104 return _resultobj;
10105 }
10106
10107 #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
10108 static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10109 PyObject * _resultobj;
10110 bool _result;
10111 wxGenericDirCtrl * _arg0;
10112 wxWindow * _arg1;
10113 wxWindowID _arg2 = (wxWindowID ) -1;
10114 char * _arg3 = (char *) wxDirDialogDefaultFolderStr;
10115 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
10116 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
10117 long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER;
10118 char * _arg7 = (char *) wxEmptyString;
10119 int _arg8 = (int ) 0;
10120 char * _arg9 = (char *) "dirCtrl";
10121 PyObject * _argo0 = 0;
10122 PyObject * _argo1 = 0;
10123 wxPoint temp;
10124 PyObject * _obj4 = 0;
10125 wxSize temp0;
10126 PyObject * _obj5 = 0;
10127 char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL };
10128
10129 self = self;
10130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOlsis:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9))
10131 return NULL;
10132 if (_argo0) {
10133 if (_argo0 == Py_None) { _arg0 = NULL; }
10134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p.");
10136 return NULL;
10137 }
10138 }
10139 if (_argo1) {
10140 if (_argo1 == Py_None) { _arg1 = NULL; }
10141 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10142 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p.");
10143 return NULL;
10144 }
10145 }
10146 if (_obj4)
10147 {
10148 _arg4 = &temp;
10149 if (! wxPoint_helper(_obj4, &_arg4))
10150 return NULL;
10151 }
10152 if (_obj5)
10153 {
10154 _arg5 = &temp0;
10155 if (! wxSize_helper(_obj5, &_arg5))
10156 return NULL;
10157 }
10158 {
10159 PyThreadState* __tstate = wxPyBeginAllowThreads();
10160 _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9);
10161
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) return NULL;
10164 } _resultobj = Py_BuildValue("i",_result);
10165 return _resultobj;
10166 }
10167
10168 #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0))
10169 static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10170 PyObject * _resultobj;
10171 bool _result;
10172 wxGenericDirCtrl * _arg0;
10173 wxString * _arg1;
10174 PyObject * _argo0 = 0;
10175 PyObject * _obj1 = 0;
10176 char *_kwnames[] = { "self","path", NULL };
10177
10178 self = self;
10179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1))
10180 return NULL;
10181 if (_argo0) {
10182 if (_argo0 == Py_None) { _arg0 = NULL; }
10183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p.");
10185 return NULL;
10186 }
10187 }
10188 {
10189 #if PYTHON_API_VERSION >= 1009
10190 char* tmpPtr; int tmpSize;
10191 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10192 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10193 return NULL;
10194 }
10195 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10196 return NULL;
10197 _arg1 = new wxString(tmpPtr, tmpSize);
10198 #else
10199 if (!PyString_Check(_obj1)) {
10200 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10201 return NULL;
10202 }
10203 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10204 #endif
10205 }
10206 {
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1);
10209
10210 wxPyEndAllowThreads(__tstate);
10211 if (PyErr_Occurred()) return NULL;
10212 } _resultobj = Py_BuildValue("i",_result);
10213 {
10214 if (_obj1)
10215 delete _arg1;
10216 }
10217 return _resultobj;
10218 }
10219
10220 #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath())
10221 static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10222 PyObject * _resultobj;
10223 wxString * _result;
10224 wxGenericDirCtrl * _arg0;
10225 PyObject * _argo0 = 0;
10226 char *_kwnames[] = { "self", NULL };
10227
10228 self = self;
10229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0))
10230 return NULL;
10231 if (_argo0) {
10232 if (_argo0 == Py_None) { _arg0 = NULL; }
10233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p.");
10235 return NULL;
10236 }
10237 }
10238 {
10239 PyThreadState* __tstate = wxPyBeginAllowThreads();
10240 _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0));
10241
10242 wxPyEndAllowThreads(__tstate);
10243 if (PyErr_Occurred()) return NULL;
10244 }{
10245 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10246 }
10247 {
10248 delete _result;
10249 }
10250 return _resultobj;
10251 }
10252
10253 #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0))
10254 static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10255 PyObject * _resultobj;
10256 wxGenericDirCtrl * _arg0;
10257 wxString * _arg1;
10258 PyObject * _argo0 = 0;
10259 PyObject * _obj1 = 0;
10260 char *_kwnames[] = { "self","path", NULL };
10261
10262 self = self;
10263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1))
10264 return NULL;
10265 if (_argo0) {
10266 if (_argo0 == Py_None) { _arg0 = NULL; }
10267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p.");
10269 return NULL;
10270 }
10271 }
10272 {
10273 #if PYTHON_API_VERSION >= 1009
10274 char* tmpPtr; int tmpSize;
10275 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10276 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10277 return NULL;
10278 }
10279 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10280 return NULL;
10281 _arg1 = new wxString(tmpPtr, tmpSize);
10282 #else
10283 if (!PyString_Check(_obj1)) {
10284 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10285 return NULL;
10286 }
10287 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10288 #endif
10289 }
10290 {
10291 PyThreadState* __tstate = wxPyBeginAllowThreads();
10292 wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1);
10293
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) return NULL;
10296 } Py_INCREF(Py_None);
10297 _resultobj = Py_None;
10298 {
10299 if (_obj1)
10300 delete _arg1;
10301 }
10302 return _resultobj;
10303 }
10304
10305 #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath())
10306 static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10307 PyObject * _resultobj;
10308 wxString * _result;
10309 wxGenericDirCtrl * _arg0;
10310 PyObject * _argo0 = 0;
10311 char *_kwnames[] = { "self", NULL };
10312
10313 self = self;
10314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0))
10315 return NULL;
10316 if (_argo0) {
10317 if (_argo0 == Py_None) { _arg0 = NULL; }
10318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p.");
10320 return NULL;
10321 }
10322 }
10323 {
10324 PyThreadState* __tstate = wxPyBeginAllowThreads();
10325 _result = new wxString (wxGenericDirCtrl_GetPath(_arg0));
10326
10327 wxPyEndAllowThreads(__tstate);
10328 if (PyErr_Occurred()) return NULL;
10329 }{
10330 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10331 }
10332 {
10333 delete _result;
10334 }
10335 return _resultobj;
10336 }
10337
10338 #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath())
10339 static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
10340 PyObject * _resultobj;
10341 wxString * _result;
10342 wxGenericDirCtrl * _arg0;
10343 PyObject * _argo0 = 0;
10344 char *_kwnames[] = { "self", NULL };
10345
10346 self = self;
10347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0))
10348 return NULL;
10349 if (_argo0) {
10350 if (_argo0 == Py_None) { _arg0 = NULL; }
10351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p.");
10353 return NULL;
10354 }
10355 }
10356 {
10357 PyThreadState* __tstate = wxPyBeginAllowThreads();
10358 _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0));
10359
10360 wxPyEndAllowThreads(__tstate);
10361 if (PyErr_Occurred()) return NULL;
10362 }{
10363 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10364 }
10365 {
10366 delete _result;
10367 }
10368 return _resultobj;
10369 }
10370
10371 #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
10372 static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10373 PyObject * _resultobj;
10374 wxGenericDirCtrl * _arg0;
10375 wxString * _arg1;
10376 PyObject * _argo0 = 0;
10377 PyObject * _obj1 = 0;
10378 char *_kwnames[] = { "self","path", NULL };
10379
10380 self = self;
10381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1))
10382 return NULL;
10383 if (_argo0) {
10384 if (_argo0 == Py_None) { _arg0 = NULL; }
10385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p.");
10387 return NULL;
10388 }
10389 }
10390 {
10391 #if PYTHON_API_VERSION >= 1009
10392 char* tmpPtr; int tmpSize;
10393 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10394 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10395 return NULL;
10396 }
10397 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10398 return NULL;
10399 _arg1 = new wxString(tmpPtr, tmpSize);
10400 #else
10401 if (!PyString_Check(_obj1)) {
10402 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10403 return NULL;
10404 }
10405 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10406 #endif
10407 }
10408 {
10409 PyThreadState* __tstate = wxPyBeginAllowThreads();
10410 wxGenericDirCtrl_SetPath(_arg0,*_arg1);
10411
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) return NULL;
10414 } Py_INCREF(Py_None);
10415 _resultobj = Py_None;
10416 {
10417 if (_obj1)
10418 delete _arg1;
10419 }
10420 return _resultobj;
10421 }
10422
10423 #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0))
10424 static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
10425 PyObject * _resultobj;
10426 wxGenericDirCtrl * _arg0;
10427 bool _arg1;
10428 PyObject * _argo0 = 0;
10429 int tempbool1;
10430 char *_kwnames[] = { "self","show", NULL };
10431
10432 self = self;
10433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1))
10434 return NULL;
10435 if (_argo0) {
10436 if (_argo0 == Py_None) { _arg0 = NULL; }
10437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p.");
10439 return NULL;
10440 }
10441 }
10442 _arg1 = (bool ) tempbool1;
10443 {
10444 PyThreadState* __tstate = wxPyBeginAllowThreads();
10445 wxGenericDirCtrl_ShowHidden(_arg0,_arg1);
10446
10447 wxPyEndAllowThreads(__tstate);
10448 if (PyErr_Occurred()) return NULL;
10449 } Py_INCREF(Py_None);
10450 _resultobj = Py_None;
10451 return _resultobj;
10452 }
10453
10454 #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden())
10455 static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
10456 PyObject * _resultobj;
10457 bool _result;
10458 wxGenericDirCtrl * _arg0;
10459 PyObject * _argo0 = 0;
10460 char *_kwnames[] = { "self", NULL };
10461
10462 self = self;
10463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0))
10464 return NULL;
10465 if (_argo0) {
10466 if (_argo0 == Py_None) { _arg0 = NULL; }
10467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p.");
10469 return NULL;
10470 }
10471 }
10472 {
10473 PyThreadState* __tstate = wxPyBeginAllowThreads();
10474 _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0);
10475
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) return NULL;
10478 } _resultobj = Py_BuildValue("i",_result);
10479 return _resultobj;
10480 }
10481
10482 #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter())
10483 static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
10484 PyObject * _resultobj;
10485 wxString * _result;
10486 wxGenericDirCtrl * _arg0;
10487 PyObject * _argo0 = 0;
10488 char *_kwnames[] = { "self", NULL };
10489
10490 self = self;
10491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0))
10492 return NULL;
10493 if (_argo0) {
10494 if (_argo0 == Py_None) { _arg0 = NULL; }
10495 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10496 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p.");
10497 return NULL;
10498 }
10499 }
10500 {
10501 PyThreadState* __tstate = wxPyBeginAllowThreads();
10502 _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0));
10503
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) return NULL;
10506 }{
10507 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10508 }
10509 {
10510 delete _result;
10511 }
10512 return _resultobj;
10513 }
10514
10515 #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0))
10516 static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
10517 PyObject * _resultobj;
10518 wxGenericDirCtrl * _arg0;
10519 wxString * _arg1;
10520 PyObject * _argo0 = 0;
10521 PyObject * _obj1 = 0;
10522 char *_kwnames[] = { "self","filter", NULL };
10523
10524 self = self;
10525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1))
10526 return NULL;
10527 if (_argo0) {
10528 if (_argo0 == Py_None) { _arg0 = NULL; }
10529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p.");
10531 return NULL;
10532 }
10533 }
10534 {
10535 #if PYTHON_API_VERSION >= 1009
10536 char* tmpPtr; int tmpSize;
10537 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10538 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10539 return NULL;
10540 }
10541 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10542 return NULL;
10543 _arg1 = new wxString(tmpPtr, tmpSize);
10544 #else
10545 if (!PyString_Check(_obj1)) {
10546 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10547 return NULL;
10548 }
10549 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10550 #endif
10551 }
10552 {
10553 PyThreadState* __tstate = wxPyBeginAllowThreads();
10554 wxGenericDirCtrl_SetFilter(_arg0,*_arg1);
10555
10556 wxPyEndAllowThreads(__tstate);
10557 if (PyErr_Occurred()) return NULL;
10558 } Py_INCREF(Py_None);
10559 _resultobj = Py_None;
10560 {
10561 if (_obj1)
10562 delete _arg1;
10563 }
10564 return _resultobj;
10565 }
10566
10567 #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex())
10568 static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
10569 PyObject * _resultobj;
10570 int _result;
10571 wxGenericDirCtrl * _arg0;
10572 PyObject * _argo0 = 0;
10573 char *_kwnames[] = { "self", NULL };
10574
10575 self = self;
10576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0))
10577 return NULL;
10578 if (_argo0) {
10579 if (_argo0 == Py_None) { _arg0 = NULL; }
10580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p.");
10582 return NULL;
10583 }
10584 }
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0);
10588
10589 wxPyEndAllowThreads(__tstate);
10590 if (PyErr_Occurred()) return NULL;
10591 } _resultobj = Py_BuildValue("i",_result);
10592 return _resultobj;
10593 }
10594
10595 #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0))
10596 static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
10597 PyObject * _resultobj;
10598 wxGenericDirCtrl * _arg0;
10599 int _arg1;
10600 PyObject * _argo0 = 0;
10601 char *_kwnames[] = { "self","n", NULL };
10602
10603 self = self;
10604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1))
10605 return NULL;
10606 if (_argo0) {
10607 if (_argo0 == Py_None) { _arg0 = NULL; }
10608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p.");
10610 return NULL;
10611 }
10612 }
10613 {
10614 PyThreadState* __tstate = wxPyBeginAllowThreads();
10615 wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1);
10616
10617 wxPyEndAllowThreads(__tstate);
10618 if (PyErr_Occurred()) return NULL;
10619 } Py_INCREF(Py_None);
10620 _resultobj = Py_None;
10621 return _resultobj;
10622 }
10623
10624 #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId())
10625 static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject * _resultobj;
10627 wxTreeItemId * _result;
10628 wxGenericDirCtrl * _arg0;
10629 PyObject * _argo0 = 0;
10630 char *_kwnames[] = { "self", NULL };
10631 char _ptemp[128];
10632
10633 self = self;
10634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0))
10635 return NULL;
10636 if (_argo0) {
10637 if (_argo0 == Py_None) { _arg0 = NULL; }
10638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p.");
10640 return NULL;
10641 }
10642 }
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0));
10646
10647 wxPyEndAllowThreads(__tstate);
10648 if (PyErr_Occurred()) return NULL;
10649 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
10650 _resultobj = Py_BuildValue("s",_ptemp);
10651 return _resultobj;
10652 }
10653
10654 #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl())
10655 static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10656 PyObject * _resultobj;
10657 wxTreeCtrl * _result;
10658 wxGenericDirCtrl * _arg0;
10659 PyObject * _argo0 = 0;
10660 char *_kwnames[] = { "self", NULL };
10661 char _ptemp[128];
10662
10663 self = self;
10664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0))
10665 return NULL;
10666 if (_argo0) {
10667 if (_argo0 == Py_None) { _arg0 = NULL; }
10668 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p.");
10670 return NULL;
10671 }
10672 }
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0);
10676
10677 wxPyEndAllowThreads(__tstate);
10678 if (PyErr_Occurred()) return NULL;
10679 } if (_result) {
10680 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeCtrl_p");
10681 _resultobj = Py_BuildValue("s",_ptemp);
10682 } else {
10683 Py_INCREF(Py_None);
10684 _resultobj = Py_None;
10685 }
10686 return _resultobj;
10687 }
10688
10689 #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl())
10690 static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10691 PyObject * _resultobj;
10692 wxDirFilterListCtrl * _result;
10693 wxGenericDirCtrl * _arg0;
10694 PyObject * _argo0 = 0;
10695 char *_kwnames[] = { "self", NULL };
10696 char _ptemp[128];
10697
10698 self = self;
10699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0))
10700 return NULL;
10701 if (_argo0) {
10702 if (_argo0 == Py_None) { _arg0 = NULL; }
10703 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p.");
10705 return NULL;
10706 }
10707 }
10708 {
10709 PyThreadState* __tstate = wxPyBeginAllowThreads();
10710 _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0);
10711
10712 wxPyEndAllowThreads(__tstate);
10713 if (PyErr_Occurred()) return NULL;
10714 } if (_result) {
10715 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p");
10716 _resultobj = Py_BuildValue("s",_ptemp);
10717 } else {
10718 Py_INCREF(Py_None);
10719 _resultobj = Py_None;
10720 }
10721 return _resultobj;
10722 }
10723
10724 static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) {
10725 wxDirFilterListCtrl *src;
10726 wxChoice *dest;
10727 src = (wxDirFilterListCtrl *) ptr;
10728 dest = (wxChoice *) src;
10729 return (void *) dest;
10730 }
10731
10732 static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) {
10733 wxDirFilterListCtrl *src;
10734 wxControlWithItems *dest;
10735 src = (wxDirFilterListCtrl *) ptr;
10736 dest = (wxControlWithItems *) src;
10737 return (void *) dest;
10738 }
10739
10740 static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) {
10741 wxDirFilterListCtrl *src;
10742 wxControl *dest;
10743 src = (wxDirFilterListCtrl *) ptr;
10744 dest = (wxControl *) src;
10745 return (void *) dest;
10746 }
10747
10748 static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) {
10749 wxDirFilterListCtrl *src;
10750 wxWindow *dest;
10751 src = (wxDirFilterListCtrl *) ptr;
10752 dest = (wxWindow *) src;
10753 return (void *) dest;
10754 }
10755
10756 static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) {
10757 wxDirFilterListCtrl *src;
10758 wxEvtHandler *dest;
10759 src = (wxDirFilterListCtrl *) ptr;
10760 dest = (wxEvtHandler *) src;
10761 return (void *) dest;
10762 }
10763
10764 static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) {
10765 wxDirFilterListCtrl *src;
10766 wxObject *dest;
10767 src = (wxDirFilterListCtrl *) ptr;
10768 dest = (wxObject *) src;
10769 return (void *) dest;
10770 }
10771
10772 #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
10773 static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10774 PyObject * _resultobj;
10775 wxDirFilterListCtrl * _result;
10776 wxGenericDirCtrl * _arg0;
10777 wxWindowID _arg1 = (wxWindowID ) -1;
10778 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
10779 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
10780 long _arg4 = (long ) 0;
10781 PyObject * _argo0 = 0;
10782 wxPoint temp;
10783 PyObject * _obj2 = 0;
10784 wxSize temp0;
10785 PyObject * _obj3 = 0;
10786 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
10787 char _ptemp[128];
10788
10789 self = self;
10790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
10791 return NULL;
10792 if (_argo0) {
10793 if (_argo0 == Py_None) { _arg0 = NULL; }
10794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p.");
10796 return NULL;
10797 }
10798 }
10799 if (_obj2)
10800 {
10801 _arg2 = &temp;
10802 if (! wxPoint_helper(_obj2, &_arg2))
10803 return NULL;
10804 }
10805 if (_obj3)
10806 {
10807 _arg3 = &temp0;
10808 if (! wxSize_helper(_obj3, &_arg3))
10809 return NULL;
10810 }
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4);
10814
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) return NULL;
10817 } if (_result) {
10818 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p");
10819 _resultobj = Py_BuildValue("s",_ptemp);
10820 } else {
10821 Py_INCREF(Py_None);
10822 _resultobj = Py_None;
10823 }
10824 return _resultobj;
10825 }
10826
10827 #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl())
10828 static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10829 PyObject * _resultobj;
10830 wxDirFilterListCtrl * _result;
10831 char *_kwnames[] = { NULL };
10832 char _ptemp[128];
10833
10834 self = self;
10835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames))
10836 return NULL;
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl();
10840
10841 wxPyEndAllowThreads(__tstate);
10842 if (PyErr_Occurred()) return NULL;
10843 } if (_result) {
10844 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p");
10845 _resultobj = Py_BuildValue("s",_ptemp);
10846 } else {
10847 Py_INCREF(Py_None);
10848 _resultobj = Py_None;
10849 }
10850 return _resultobj;
10851 }
10852
10853 #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
10854 static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10855 PyObject * _resultobj;
10856 bool _result;
10857 wxDirFilterListCtrl * _arg0;
10858 wxGenericDirCtrl * _arg1;
10859 wxWindowID _arg2 = (wxWindowID ) -1;
10860 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10861 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10862 long _arg5 = (long ) 0;
10863 PyObject * _argo0 = 0;
10864 PyObject * _argo1 = 0;
10865 wxPoint temp;
10866 PyObject * _obj3 = 0;
10867 wxSize temp0;
10868 PyObject * _obj4 = 0;
10869 char *_kwnames[] = { "self","parent","id","pos","size","style", NULL };
10870
10871 self = self;
10872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5))
10873 return NULL;
10874 if (_argo0) {
10875 if (_argo0 == Py_None) { _arg0 = NULL; }
10876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) {
10877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p.");
10878 return NULL;
10879 }
10880 }
10881 if (_argo1) {
10882 if (_argo1 == Py_None) { _arg1 = NULL; }
10883 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) {
10884 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p.");
10885 return NULL;
10886 }
10887 }
10888 if (_obj3)
10889 {
10890 _arg3 = &temp;
10891 if (! wxPoint_helper(_obj3, &_arg3))
10892 return NULL;
10893 }
10894 if (_obj4)
10895 {
10896 _arg4 = &temp0;
10897 if (! wxSize_helper(_obj4, &_arg4))
10898 return NULL;
10899 }
10900 {
10901 PyThreadState* __tstate = wxPyBeginAllowThreads();
10902 _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5);
10903
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) return NULL;
10906 } _resultobj = Py_BuildValue("i",_result);
10907 return _resultobj;
10908 }
10909
10910 #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1))
10911 static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
10912 PyObject * _resultobj;
10913 wxDirFilterListCtrl * _arg0;
10914 wxString * _arg1;
10915 int _arg2;
10916 PyObject * _argo0 = 0;
10917 PyObject * _obj1 = 0;
10918 char *_kwnames[] = { "self","filter","defaultFilter", NULL };
10919
10920 self = self;
10921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2))
10922 return NULL;
10923 if (_argo0) {
10924 if (_argo0 == Py_None) { _arg0 = NULL; }
10925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) {
10926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p.");
10927 return NULL;
10928 }
10929 }
10930 {
10931 #if PYTHON_API_VERSION >= 1009
10932 char* tmpPtr; int tmpSize;
10933 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10934 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10935 return NULL;
10936 }
10937 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10938 return NULL;
10939 _arg1 = new wxString(tmpPtr, tmpSize);
10940 #else
10941 if (!PyString_Check(_obj1)) {
10942 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10943 return NULL;
10944 }
10945 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10946 #endif
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2);
10951
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) return NULL;
10954 } Py_INCREF(Py_None);
10955 _resultobj = Py_None;
10956 {
10957 if (_obj1)
10958 delete _arg1;
10959 }
10960 return _resultobj;
10961 }
10962
10963 static PyMethodDef controls2cMethods[] = {
10964 { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
10965 { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
10966 { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
10967 { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
10968 { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
10969 { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
10970 { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
10971 { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
10972 { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
10973 { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
10974 { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
10975 { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
10976 { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
10977 { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
10978 { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
10979 { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
10980 { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
10981 { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
10982 { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
10983 { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
10984 { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
10985 { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
10986 { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS },
10987 { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS },
10988 { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS },
10989 { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS },
10990 { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS },
10991 { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS },
10992 { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS },
10993 { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS },
10994 { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS },
10995 { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS },
10996 { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS },
10997 { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS },
10998 { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
10999 { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
11000 { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
11001 { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11002 { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
11003 { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
11004 { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
11005 { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
11006 { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
11007 { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
11008 { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
11009 { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
11010 { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
11011 { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
11012 { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
11013 { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
11014 { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
11015 { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
11016 { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
11017 { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
11018 { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
11019 { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
11020 { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
11021 { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
11022 { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
11023 { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
11024 { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
11025 { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
11026 { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
11027 { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
11028 { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
11029 { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
11030 { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
11031 { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
11032 { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
11033 { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
11034 { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
11035 { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
11036 { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
11037 { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
11038 { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
11039 { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
11040 { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
11041 { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
11042 { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
11043 { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
11044 { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS },
11045 { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS },
11046 { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
11047 { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
11048 { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
11049 { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
11050 { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
11051 { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
11052 { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
11053 { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
11054 { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
11055 { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
11056 { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
11057 { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
11058 { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
11059 { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
11060 { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
11061 { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
11062 { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
11063 { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
11064 { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
11065 { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
11066 { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
11067 { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
11068 { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
11069 { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS },
11070 { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
11071 { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
11072 { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
11073 { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
11074 { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
11075 { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
11076 { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS },
11077 { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
11078 { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
11079 { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
11080 { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
11081 { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS },
11082 { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS },
11083 { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
11084 { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
11085 { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
11086 { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
11087 { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11088 { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11089 { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
11090 { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11091 { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
11092 { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
11093 { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11094 { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11095 { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS },
11096 { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
11097 { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
11098 { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
11099 { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
11100 { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
11101 { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
11102 { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS },
11103 { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS },
11104 { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS },
11105 { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS },
11106 { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS },
11107 { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
11108 { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
11109 { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
11110 { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
11111 { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
11112 { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
11113 { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
11114 { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
11115 { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
11116 { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
11117 { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
11118 { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
11119 { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
11120 { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
11121 { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
11122 { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
11123 { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
11124 { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
11125 { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
11126 { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
11127 { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
11128 { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
11129 { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
11130 { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
11131 { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
11132 { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
11133 { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
11134 { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
11135 { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
11136 { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
11137 { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
11138 { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
11139 { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11140 { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11141 { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
11142 { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
11143 { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
11144 { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
11145 { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
11146 { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
11147 { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
11148 { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
11149 { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
11150 { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
11151 { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
11152 { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
11153 { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
11154 { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
11155 { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
11156 { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
11157 { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
11158 { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
11159 { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
11160 { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
11161 { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
11162 { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
11163 { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
11164 { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11165 { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
11166 { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
11167 { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
11168 { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS },
11169 { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS },
11170 { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
11171 { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
11172 { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
11173 { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
11174 { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
11175 { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
11176 { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
11177 { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
11178 { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
11179 { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
11180 { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
11181 { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
11182 { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
11183 { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS },
11184 { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
11185 { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
11186 { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
11187 { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
11188 { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
11189 { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
11190 { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
11191 { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
11192 { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
11193 { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
11194 { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS },
11195 { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
11196 { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
11197 { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
11198 { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
11199 { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
11200 { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
11201 { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
11202 { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
11203 { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
11204 { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
11205 { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
11206 { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
11207 { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
11208 { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
11209 { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
11210 { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
11211 { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
11212 { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
11213 { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
11214 { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
11215 { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
11216 { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11217 { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11218 { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
11219 { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
11220 { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
11221 { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
11222 { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS },
11223 { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
11224 { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS },
11225 { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS },
11226 { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
11227 { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS },
11228 { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
11229 { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
11230 { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11231 { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11232 { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
11233 { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
11234 { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS },
11235 { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
11236 { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS },
11237 { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
11238 { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS },
11239 { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
11240 { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS },
11241 { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
11242 { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
11243 { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS },
11244 { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS },
11245 { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS },
11246 { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
11247 { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11248 { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11249 { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
11250 { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11251 { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
11252 { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
11253 { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11254 { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11255 { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS },
11256 { NULL, NULL }
11257 };
11258 #ifdef __cplusplus
11259 }
11260 #endif
11261 /*
11262 * This table is used by the pointer type-checker
11263 */
11264 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
11265 { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
11266 { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
11267 { "_signed_long","_long",0},
11268 { "_wxPrintQuality","_wxCoord",0},
11269 { "_wxPrintQuality","_int",0},
11270 { "_wxPrintQuality","_signed_int",0},
11271 { "_wxPrintQuality","_unsigned_int",0},
11272 { "_wxPrintQuality","_wxWindowID",0},
11273 { "_wxPrintQuality","_uint",0},
11274 { "_wxPrintQuality","_EBool",0},
11275 { "_wxPrintQuality","_size_t",0},
11276 { "_wxPrintQuality","_time_t",0},
11277 { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
11278 { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent},
11279 { "_byte","_unsigned_char",0},
11280 { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice},
11281 { "_long","_unsigned_long",0},
11282 { "_long","_signed_long",0},
11283 { "_size_t","_wxCoord",0},
11284 { "_size_t","_wxPrintQuality",0},
11285 { "_size_t","_time_t",0},
11286 { "_size_t","_unsigned_int",0},
11287 { "_size_t","_int",0},
11288 { "_size_t","_wxWindowID",0},
11289 { "_size_t","_uint",0},
11290 { "_uint","_wxCoord",0},
11291 { "_uint","_wxPrintQuality",0},
11292 { "_uint","_time_t",0},
11293 { "_uint","_size_t",0},
11294 { "_uint","_unsigned_int",0},
11295 { "_uint","_int",0},
11296 { "_uint","_wxWindowID",0},
11297 { "_wxChar","_char",0},
11298 { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
11299 { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
11300 { "_char","_wxChar",0},
11301 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11302 { "_EBool","_wxCoord",0},
11303 { "_EBool","_wxPrintQuality",0},
11304 { "_EBool","_signed_int",0},
11305 { "_EBool","_int",0},
11306 { "_EBool","_wxWindowID",0},
11307 { "_unsigned_long","_long",0},
11308 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11309 { "_signed_int","_wxCoord",0},
11310 { "_signed_int","_wxPrintQuality",0},
11311 { "_signed_int","_EBool",0},
11312 { "_signed_int","_wxWindowID",0},
11313 { "_signed_int","_int",0},
11314 { "_WXTYPE","_short",0},
11315 { "_WXTYPE","_signed_short",0},
11316 { "_WXTYPE","_unsigned_short",0},
11317 { "_unsigned_short","_WXTYPE",0},
11318 { "_unsigned_short","_short",0},
11319 { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject},
11320 { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject},
11321 { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject},
11322 { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
11323 { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject},
11324 { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
11325 { "_wxObject","_wxListView",SwigwxListViewTowxObject},
11326 { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject},
11327 { "_wxObject","_wxListEvent",SwigwxListEventTowxObject},
11328 { "_wxObject","_wxListItem",SwigwxListItemTowxObject},
11329 { "_signed_short","_WXTYPE",0},
11330 { "_signed_short","_short",0},
11331 { "_unsigned_char","_byte",0},
11332 { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl},
11333 { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl},
11334 { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl},
11335 { "_wxControl","_wxListView",SwigwxListViewTowxControl},
11336 { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl},
11337 { "_unsigned_int","_wxCoord",0},
11338 { "_unsigned_int","_wxPrintQuality",0},
11339 { "_unsigned_int","_time_t",0},
11340 { "_unsigned_int","_size_t",0},
11341 { "_unsigned_int","_uint",0},
11342 { "_unsigned_int","_wxWindowID",0},
11343 { "_unsigned_int","_int",0},
11344 { "_short","_WXTYPE",0},
11345 { "_short","_unsigned_short",0},
11346 { "_short","_signed_short",0},
11347 { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems},
11348 { "_wxWindowID","_wxCoord",0},
11349 { "_wxWindowID","_wxPrintQuality",0},
11350 { "_wxWindowID","_time_t",0},
11351 { "_wxWindowID","_size_t",0},
11352 { "_wxWindowID","_EBool",0},
11353 { "_wxWindowID","_uint",0},
11354 { "_wxWindowID","_int",0},
11355 { "_wxWindowID","_signed_int",0},
11356 { "_wxWindowID","_unsigned_int",0},
11357 { "_int","_wxCoord",0},
11358 { "_int","_wxPrintQuality",0},
11359 { "_int","_time_t",0},
11360 { "_int","_size_t",0},
11361 { "_int","_EBool",0},
11362 { "_int","_uint",0},
11363 { "_int","_wxWindowID",0},
11364 { "_int","_unsigned_int",0},
11365 { "_int","_signed_int",0},
11366 { "_time_t","_wxCoord",0},
11367 { "_time_t","_wxPrintQuality",0},
11368 { "_time_t","_unsigned_int",0},
11369 { "_time_t","_int",0},
11370 { "_time_t","_wxWindowID",0},
11371 { "_time_t","_uint",0},
11372 { "_time_t","_size_t",0},
11373 { "_wxCoord","_int",0},
11374 { "_wxCoord","_signed_int",0},
11375 { "_wxCoord","_unsigned_int",0},
11376 { "_wxCoord","_wxWindowID",0},
11377 { "_wxCoord","_uint",0},
11378 { "_wxCoord","_EBool",0},
11379 { "_wxCoord","_size_t",0},
11380 { "_wxCoord","_time_t",0},
11381 { "_wxCoord","_wxPrintQuality",0},
11382 { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl},
11383 { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler},
11384 { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler},
11385 { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler},
11386 { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler},
11387 { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler},
11388 { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow},
11389 { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow},
11390 { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow},
11391 { "_wxWindow","_wxListView",SwigwxListViewTowxWindow},
11392 { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow},
11393 {0,0,0}};
11394
11395 static PyObject *SWIG_globals;
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 SWIGEXPORT(void) initcontrols2c() {
11400 PyObject *m, *d;
11401 SWIG_globals = SWIG_newvarlink();
11402 m = Py_InitModule("controls2c", controls2cMethods);
11403 d = PyModule_GetDict(m);
11404 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG));
11405 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG));
11406 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
11407 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT));
11408 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM));
11409 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
11410 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO));
11411 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO));
11412 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED));
11413 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED));
11414 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN));
11415 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM));
11416 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK));
11417 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
11418 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
11419 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
11420 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT));
11421 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
11422 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
11423 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING));
11424 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG));
11425 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED));
11426 PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES));
11427 PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES));
11428 PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON));
11429 PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON));
11430 PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST));
11431 PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT));
11432 PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP));
11433 PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT));
11434 PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE));
11435 PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL));
11436 PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS));
11437 PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER));
11438 PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER));
11439 PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL));
11440 PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING));
11441 PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING));
11442 PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE));
11443 PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN));
11444 PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT));
11445 PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT));
11446 PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE));
11447 PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT));
11448 PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE));
11449 PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA));
11450 PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM));
11451 PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH));
11452 PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT));
11453 PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE));
11454 PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED));
11455 PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED));
11456 PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED));
11457 PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT));
11458 PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE));
11459 PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW));
11460 PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE));
11461 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON));
11462 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL));
11463 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT));
11464 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON));
11465 PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT));
11466 PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT));
11467 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM));
11468 PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE));
11469 PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL));
11470 PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW));
11471 PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT));
11472 PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT));
11473 PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT));
11474 PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT));
11475 PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP));
11476 PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID));
11477 PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE));
11478 PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER));
11479 PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS));
11480 PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON));
11481 PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL));
11482 PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP));
11483 PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN));
11484 PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT));
11485 PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT));
11486 PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT));
11487 PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT));
11488 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE));
11489 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER));
11490 PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS));
11491 PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS));
11492 PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS));
11493 PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES));
11494 PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS));
11495 PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS));
11496 PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE));
11497 PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE));
11498 PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED));
11499 PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT));
11500 PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS));
11501 PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT));
11502 PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT));
11503 PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES));
11504 PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT));
11505 PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE));
11506 PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal));
11507 PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected));
11508 PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded));
11509 PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded));
11510 PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max));
11511 PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE));
11512 PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW));
11513 PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE));
11514 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON));
11515 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON));
11516 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT));
11517 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL));
11518 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT));
11519 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON));
11520 PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT));
11521 PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT));
11522 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART));
11523 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART));
11524 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM));
11525 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG));
11526 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG));
11527 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
11528 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT));
11529 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM));
11530 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO));
11531 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO));
11532 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED));
11533 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING));
11534 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
11535 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
11536 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED));
11537 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING));
11538 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN));
11539 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
11540 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
11541 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
11542 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG));
11543 PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY));
11544 PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST));
11545 PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS));
11546 PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL));
11547
11548 // Map renamed classes back to their common name for OOR
11549 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
11550 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
11551 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
11552 {
11553 int i;
11554 for (i = 0; _swig_mapping[i].n1; i++)
11555 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
11556 }
11557 }