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