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