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