]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/gtk/controls2.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initcontrols2c | |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #ifdef __WXMSW__ | |
60 | #include <windows.h> | |
61 | #endif | |
62 | #include <wx/listctrl.h> | |
63 | #include <wx/treectrl.h> | |
64 | #include <wx/imaglist.h> | |
65 | ||
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 | #if PYTHON_API_VERSION >= 1009 | |
94 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
95 | #else | |
96 | static char* wxStringErrorMsg = "String type required"; | |
97 | #endif | |
98 | // C++ Version of a Python aware class | |
99 | class wxPyListCtrl : public wxListCtrl { | |
100 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
101 | public: | |
102 | wxPyListCtrl() : wxListCtrl() {} | |
103 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
104 | const wxPoint& pos, | |
105 | const wxSize& size, | |
106 | long style, | |
107 | const wxValidator& validator, | |
108 | char* name) : | |
109 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
110 | ||
111 | bool Create(wxWindow* parent, wxWindowID id, | |
112 | const wxPoint& pos, | |
113 | const wxSize& size, | |
114 | long style, | |
115 | const wxValidator& validator, | |
116 | char* name) { | |
117 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
118 | } | |
119 | ||
120 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
121 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
122 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
123 | ||
124 | PYPRIVATE; | |
125 | }; | |
126 | ||
127 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
128 | ||
129 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
130 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
131 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
132 | // Python aware sorting function for wxPyListCtrl | |
133 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
134 | int retval = 0; | |
135 | PyObject* func = (PyObject*)funcPtr; | |
136 | wxPyTState* state = wxPyBeginBlockThreads(); | |
137 | ||
138 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
139 | PyObject* result = PyEval_CallObject(func, args); | |
140 | Py_DECREF(args); | |
141 | if (result) { | |
142 | retval = PyInt_AsLong(result); | |
143 | Py_DECREF(result); | |
144 | } | |
145 | ||
146 | wxPyEndBlockThreads(state); | |
147 | return retval; | |
148 | } | |
149 | ||
150 | ||
151 | class wxPyTreeItemData : public wxTreeItemData { | |
152 | public: | |
153 | wxPyTreeItemData(PyObject* obj = NULL) { | |
154 | if (obj == NULL) | |
155 | obj = Py_None; | |
156 | Py_INCREF(obj); | |
157 | m_obj = obj; | |
158 | } | |
159 | ||
160 | ~wxPyTreeItemData() { | |
161 | wxPyTState* state = wxPyBeginBlockThreads(); | |
162 | Py_DECREF(m_obj); | |
163 | wxPyEndBlockThreads(state); | |
164 | } | |
165 | ||
166 | PyObject* GetData() { | |
167 | Py_INCREF(m_obj); | |
168 | return m_obj; | |
169 | } | |
170 | ||
171 | void SetData(PyObject* obj) { | |
172 | wxPyTState* state = wxPyBeginBlockThreads(); | |
173 | Py_DECREF(m_obj); | |
174 | wxPyEndBlockThreads(state); | |
175 | m_obj = obj; | |
176 | Py_INCREF(obj); | |
177 | } | |
178 | ||
179 | PyObject* m_obj; | |
180 | }; | |
181 | // C++ version of Python aware wxTreeCtrl | |
182 | class wxPyTreeCtrl : public wxTreeCtrl { | |
183 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
184 | public: | |
185 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
186 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
187 | const wxPoint& pos, | |
188 | const wxSize& size, | |
189 | long style, | |
190 | const wxValidator& validator, | |
191 | char* name) : | |
192 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
193 | ||
194 | bool Create(wxWindow *parent, wxWindowID id, | |
195 | const wxPoint& pos, | |
196 | const wxSize& size, | |
197 | long style, | |
198 | const wxValidator& validator, | |
199 | char* name) { | |
200 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
201 | } | |
202 | ||
203 | ||
204 | int OnCompareItems(const wxTreeItemId& item1, | |
205 | const wxTreeItemId& item2) { | |
206 | int rval = 0; | |
207 | bool found; | |
208 | wxPyTState* state = wxPyBeginBlockThreads(); | |
209 | if ((found = m_myInst.findCallback("OnCompareItems"))) | |
210 | rval = m_myInst.callCallback(Py_BuildValue( | |
211 | "(OO)", | |
212 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
213 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
214 | wxPyEndBlockThreads(state); | |
215 | if (! found) | |
216 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
217 | return rval; | |
218 | } | |
219 | PYPRIVATE; | |
220 | }; | |
221 | ||
222 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
223 | ||
224 | #ifdef __cplusplus | |
225 | extern "C" { | |
226 | #endif | |
227 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) | |
228 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
229 | PyObject * _resultobj; | |
230 | wxListItemAttr * _result; | |
231 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
232 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
233 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
234 | wxColour temp; | |
235 | PyObject * _obj0 = 0; | |
236 | wxColour temp0; | |
237 | PyObject * _obj1 = 0; | |
238 | PyObject * _argo2 = 0; | |
239 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
240 | char _ptemp[128]; | |
241 | ||
242 | self = self; | |
243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
244 | return NULL; | |
245 | if (_obj0) | |
246 | { | |
247 | _arg0 = &temp; | |
248 | if (! wxColour_helper(_obj0, &_arg0)) | |
249 | return NULL; | |
250 | } | |
251 | if (_obj1) | |
252 | { | |
253 | _arg1 = &temp0; | |
254 | if (! wxColour_helper(_obj1, &_arg1)) | |
255 | return NULL; | |
256 | } | |
257 | if (_argo2) { | |
258 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
261 | return NULL; | |
262 | } | |
263 | } | |
264 | { | |
265 | wxPy_BEGIN_ALLOW_THREADS; | |
266 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); | |
267 | ||
268 | wxPy_END_ALLOW_THREADS; | |
269 | if (PyErr_Occurred()) return NULL; | |
270 | } if (_result) { | |
271 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
272 | _resultobj = Py_BuildValue("s",_ptemp); | |
273 | } else { | |
274 | Py_INCREF(Py_None); | |
275 | _resultobj = Py_None; | |
276 | } | |
277 | return _resultobj; | |
278 | } | |
279 | ||
280 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
281 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
282 | PyObject * _resultobj; | |
283 | wxListItemAttr * _arg0; | |
284 | wxColour * _arg1; | |
285 | PyObject * _argo0 = 0; | |
286 | wxColour temp; | |
287 | PyObject * _obj1 = 0; | |
288 | char *_kwnames[] = { "self","colText", NULL }; | |
289 | ||
290 | self = self; | |
291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
292 | return NULL; | |
293 | if (_argo0) { | |
294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
297 | return NULL; | |
298 | } | |
299 | } | |
300 | { | |
301 | _arg1 = &temp; | |
302 | if (! wxColour_helper(_obj1, &_arg1)) | |
303 | return NULL; | |
304 | } | |
305 | { | |
306 | wxPy_BEGIN_ALLOW_THREADS; | |
307 | wxListItemAttr_SetTextColour(_arg0,*_arg1); | |
308 | ||
309 | wxPy_END_ALLOW_THREADS; | |
310 | if (PyErr_Occurred()) return NULL; | |
311 | } Py_INCREF(Py_None); | |
312 | _resultobj = Py_None; | |
313 | return _resultobj; | |
314 | } | |
315 | ||
316 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
317 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
318 | PyObject * _resultobj; | |
319 | wxListItemAttr * _arg0; | |
320 | wxColour * _arg1; | |
321 | PyObject * _argo0 = 0; | |
322 | wxColour temp; | |
323 | PyObject * _obj1 = 0; | |
324 | char *_kwnames[] = { "self","colBack", NULL }; | |
325 | ||
326 | self = self; | |
327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
328 | return NULL; | |
329 | if (_argo0) { | |
330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
333 | return NULL; | |
334 | } | |
335 | } | |
336 | { | |
337 | _arg1 = &temp; | |
338 | if (! wxColour_helper(_obj1, &_arg1)) | |
339 | return NULL; | |
340 | } | |
341 | { | |
342 | wxPy_BEGIN_ALLOW_THREADS; | |
343 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
344 | ||
345 | wxPy_END_ALLOW_THREADS; | |
346 | if (PyErr_Occurred()) return NULL; | |
347 | } Py_INCREF(Py_None); | |
348 | _resultobj = Py_None; | |
349 | return _resultobj; | |
350 | } | |
351 | ||
352 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
353 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
354 | PyObject * _resultobj; | |
355 | wxListItemAttr * _arg0; | |
356 | wxFont * _arg1; | |
357 | PyObject * _argo0 = 0; | |
358 | PyObject * _argo1 = 0; | |
359 | char *_kwnames[] = { "self","font", NULL }; | |
360 | ||
361 | self = self; | |
362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
363 | return NULL; | |
364 | if (_argo0) { | |
365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
368 | return NULL; | |
369 | } | |
370 | } | |
371 | if (_argo1) { | |
372 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
373 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
375 | return NULL; | |
376 | } | |
377 | } | |
378 | { | |
379 | wxPy_BEGIN_ALLOW_THREADS; | |
380 | wxListItemAttr_SetFont(_arg0,*_arg1); | |
381 | ||
382 | wxPy_END_ALLOW_THREADS; | |
383 | if (PyErr_Occurred()) return NULL; | |
384 | } Py_INCREF(Py_None); | |
385 | _resultobj = Py_None; | |
386 | return _resultobj; | |
387 | } | |
388 | ||
389 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
390 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
391 | PyObject * _resultobj; | |
392 | bool _result; | |
393 | wxListItemAttr * _arg0; | |
394 | PyObject * _argo0 = 0; | |
395 | char *_kwnames[] = { "self", NULL }; | |
396 | ||
397 | self = self; | |
398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
399 | return NULL; | |
400 | if (_argo0) { | |
401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
404 | return NULL; | |
405 | } | |
406 | } | |
407 | { | |
408 | wxPy_BEGIN_ALLOW_THREADS; | |
409 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); | |
410 | ||
411 | wxPy_END_ALLOW_THREADS; | |
412 | if (PyErr_Occurred()) return NULL; | |
413 | } _resultobj = Py_BuildValue("i",_result); | |
414 | return _resultobj; | |
415 | } | |
416 | ||
417 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
418 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
419 | PyObject * _resultobj; | |
420 | bool _result; | |
421 | wxListItemAttr * _arg0; | |
422 | PyObject * _argo0 = 0; | |
423 | char *_kwnames[] = { "self", NULL }; | |
424 | ||
425 | self = self; | |
426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
427 | return NULL; | |
428 | if (_argo0) { | |
429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
432 | return NULL; | |
433 | } | |
434 | } | |
435 | { | |
436 | wxPy_BEGIN_ALLOW_THREADS; | |
437 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); | |
438 | ||
439 | wxPy_END_ALLOW_THREADS; | |
440 | if (PyErr_Occurred()) return NULL; | |
441 | } _resultobj = Py_BuildValue("i",_result); | |
442 | return _resultobj; | |
443 | } | |
444 | ||
445 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
446 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
447 | PyObject * _resultobj; | |
448 | bool _result; | |
449 | wxListItemAttr * _arg0; | |
450 | PyObject * _argo0 = 0; | |
451 | char *_kwnames[] = { "self", NULL }; | |
452 | ||
453 | self = self; | |
454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
455 | return NULL; | |
456 | if (_argo0) { | |
457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
460 | return NULL; | |
461 | } | |
462 | } | |
463 | { | |
464 | wxPy_BEGIN_ALLOW_THREADS; | |
465 | _result = (bool )wxListItemAttr_HasFont(_arg0); | |
466 | ||
467 | wxPy_END_ALLOW_THREADS; | |
468 | if (PyErr_Occurred()) return NULL; | |
469 | } _resultobj = Py_BuildValue("i",_result); | |
470 | return _resultobj; | |
471 | } | |
472 | ||
473 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
474 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
475 | PyObject * _resultobj; | |
476 | wxColour * _result; | |
477 | wxListItemAttr * _arg0; | |
478 | PyObject * _argo0 = 0; | |
479 | char *_kwnames[] = { "self", NULL }; | |
480 | char _ptemp[128]; | |
481 | ||
482 | self = self; | |
483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
484 | return NULL; | |
485 | if (_argo0) { | |
486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
489 | return NULL; | |
490 | } | |
491 | } | |
492 | { | |
493 | wxPy_BEGIN_ALLOW_THREADS; | |
494 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); | |
495 | _result = (wxColour *) &_result_ref; | |
496 | ||
497 | wxPy_END_ALLOW_THREADS; | |
498 | if (PyErr_Occurred()) return NULL; | |
499 | } if (_result) { | |
500 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
501 | _resultobj = Py_BuildValue("s",_ptemp); | |
502 | } else { | |
503 | Py_INCREF(Py_None); | |
504 | _resultobj = Py_None; | |
505 | } | |
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 | wxPy_BEGIN_ALLOW_THREADS; | |
530 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); | |
531 | _result = (wxColour *) &_result_ref; | |
532 | ||
533 | wxPy_END_ALLOW_THREADS; | |
534 | if (PyErr_Occurred()) return NULL; | |
535 | } if (_result) { | |
536 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
537 | _resultobj = Py_BuildValue("s",_ptemp); | |
538 | } else { | |
539 | Py_INCREF(Py_None); | |
540 | _resultobj = Py_None; | |
541 | } | |
542 | return _resultobj; | |
543 | } | |
544 | ||
545 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
546 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
547 | PyObject * _resultobj; | |
548 | wxFont * _result; | |
549 | wxListItemAttr * _arg0; | |
550 | PyObject * _argo0 = 0; | |
551 | char *_kwnames[] = { "self", NULL }; | |
552 | char _ptemp[128]; | |
553 | ||
554 | self = self; | |
555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
556 | return NULL; | |
557 | if (_argo0) { | |
558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
561 | return NULL; | |
562 | } | |
563 | } | |
564 | { | |
565 | wxPy_BEGIN_ALLOW_THREADS; | |
566 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); | |
567 | _result = (wxFont *) &_result_ref; | |
568 | ||
569 | wxPy_END_ALLOW_THREADS; | |
570 | if (PyErr_Occurred()) return NULL; | |
571 | } if (_result) { | |
572 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
573 | _resultobj = Py_BuildValue("s",_ptemp); | |
574 | } else { | |
575 | Py_INCREF(Py_None); | |
576 | _resultobj = Py_None; | |
577 | } | |
578 | return _resultobj; | |
579 | } | |
580 | ||
581 | static void *SwigwxListItemTowxObject(void *ptr) { | |
582 | wxListItem *src; | |
583 | wxObject *dest; | |
584 | src = (wxListItem *) ptr; | |
585 | dest = (wxObject *) src; | |
586 | return (void *) dest; | |
587 | } | |
588 | ||
589 | #define new_wxListItem() (new wxListItem()) | |
590 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
591 | PyObject * _resultobj; | |
592 | wxListItem * _result; | |
593 | char *_kwnames[] = { NULL }; | |
594 | char _ptemp[128]; | |
595 | ||
596 | self = self; | |
597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
598 | return NULL; | |
599 | { | |
600 | wxPy_BEGIN_ALLOW_THREADS; | |
601 | _result = (wxListItem *)new_wxListItem(); | |
602 | ||
603 | wxPy_END_ALLOW_THREADS; | |
604 | if (PyErr_Occurred()) return NULL; | |
605 | } if (_result) { | |
606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
607 | _resultobj = Py_BuildValue("s",_ptemp); | |
608 | } else { | |
609 | Py_INCREF(Py_None); | |
610 | _resultobj = Py_None; | |
611 | } | |
612 | return _resultobj; | |
613 | } | |
614 | ||
615 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
616 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
617 | PyObject * _resultobj; | |
618 | wxListItem * _arg0; | |
619 | PyObject * _argo0 = 0; | |
620 | char *_kwnames[] = { "self", NULL }; | |
621 | ||
622 | self = self; | |
623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
624 | return NULL; | |
625 | if (_argo0) { | |
626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
629 | return NULL; | |
630 | } | |
631 | } | |
632 | { | |
633 | wxPy_BEGIN_ALLOW_THREADS; | |
634 | delete_wxListItem(_arg0); | |
635 | ||
636 | wxPy_END_ALLOW_THREADS; | |
637 | if (PyErr_Occurred()) return NULL; | |
638 | } Py_INCREF(Py_None); | |
639 | _resultobj = Py_None; | |
640 | return _resultobj; | |
641 | } | |
642 | ||
643 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
644 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
645 | PyObject * _resultobj; | |
646 | wxListItem * _arg0; | |
647 | PyObject * _argo0 = 0; | |
648 | char *_kwnames[] = { "self", NULL }; | |
649 | ||
650 | self = self; | |
651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
652 | return NULL; | |
653 | if (_argo0) { | |
654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
657 | return NULL; | |
658 | } | |
659 | } | |
660 | { | |
661 | wxPy_BEGIN_ALLOW_THREADS; | |
662 | wxListItem_Clear(_arg0); | |
663 | ||
664 | wxPy_END_ALLOW_THREADS; | |
665 | if (PyErr_Occurred()) return NULL; | |
666 | } Py_INCREF(Py_None); | |
667 | _resultobj = Py_None; | |
668 | return _resultobj; | |
669 | } | |
670 | ||
671 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
672 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
673 | PyObject * _resultobj; | |
674 | wxListItem * _arg0; | |
675 | PyObject * _argo0 = 0; | |
676 | char *_kwnames[] = { "self", NULL }; | |
677 | ||
678 | self = self; | |
679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
680 | return NULL; | |
681 | if (_argo0) { | |
682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
685 | return NULL; | |
686 | } | |
687 | } | |
688 | { | |
689 | wxPy_BEGIN_ALLOW_THREADS; | |
690 | wxListItem_ClearAttributes(_arg0); | |
691 | ||
692 | wxPy_END_ALLOW_THREADS; | |
693 | if (PyErr_Occurred()) return NULL; | |
694 | } Py_INCREF(Py_None); | |
695 | _resultobj = Py_None; | |
696 | return _resultobj; | |
697 | } | |
698 | ||
699 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
700 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
701 | PyObject * _resultobj; | |
702 | wxListItem * _arg0; | |
703 | long _arg1; | |
704 | PyObject * _argo0 = 0; | |
705 | char *_kwnames[] = { "self","mask", NULL }; | |
706 | ||
707 | self = self; | |
708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
709 | return NULL; | |
710 | if (_argo0) { | |
711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
714 | return NULL; | |
715 | } | |
716 | } | |
717 | { | |
718 | wxPy_BEGIN_ALLOW_THREADS; | |
719 | wxListItem_SetMask(_arg0,_arg1); | |
720 | ||
721 | wxPy_END_ALLOW_THREADS; | |
722 | if (PyErr_Occurred()) return NULL; | |
723 | } Py_INCREF(Py_None); | |
724 | _resultobj = Py_None; | |
725 | return _resultobj; | |
726 | } | |
727 | ||
728 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
729 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
730 | PyObject * _resultobj; | |
731 | wxListItem * _arg0; | |
732 | long _arg1; | |
733 | PyObject * _argo0 = 0; | |
734 | char *_kwnames[] = { "self","id", NULL }; | |
735 | ||
736 | self = self; | |
737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
738 | return NULL; | |
739 | if (_argo0) { | |
740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
743 | return NULL; | |
744 | } | |
745 | } | |
746 | { | |
747 | wxPy_BEGIN_ALLOW_THREADS; | |
748 | wxListItem_SetId(_arg0,_arg1); | |
749 | ||
750 | wxPy_END_ALLOW_THREADS; | |
751 | if (PyErr_Occurred()) return NULL; | |
752 | } Py_INCREF(Py_None); | |
753 | _resultobj = Py_None; | |
754 | return _resultobj; | |
755 | } | |
756 | ||
757 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
758 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
759 | PyObject * _resultobj; | |
760 | wxListItem * _arg0; | |
761 | int _arg1; | |
762 | PyObject * _argo0 = 0; | |
763 | char *_kwnames[] = { "self","col", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
776 | wxPy_BEGIN_ALLOW_THREADS; | |
777 | wxListItem_SetColumn(_arg0,_arg1); | |
778 | ||
779 | wxPy_END_ALLOW_THREADS; | |
780 | if (PyErr_Occurred()) return NULL; | |
781 | } Py_INCREF(Py_None); | |
782 | _resultobj = Py_None; | |
783 | return _resultobj; | |
784 | } | |
785 | ||
786 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
787 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
788 | PyObject * _resultobj; | |
789 | wxListItem * _arg0; | |
790 | long _arg1; | |
791 | PyObject * _argo0 = 0; | |
792 | char *_kwnames[] = { "self","state", NULL }; | |
793 | ||
794 | self = self; | |
795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
796 | return NULL; | |
797 | if (_argo0) { | |
798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
801 | return NULL; | |
802 | } | |
803 | } | |
804 | { | |
805 | wxPy_BEGIN_ALLOW_THREADS; | |
806 | wxListItem_SetState(_arg0,_arg1); | |
807 | ||
808 | wxPy_END_ALLOW_THREADS; | |
809 | if (PyErr_Occurred()) return NULL; | |
810 | } Py_INCREF(Py_None); | |
811 | _resultobj = Py_None; | |
812 | return _resultobj; | |
813 | } | |
814 | ||
815 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
816 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
817 | PyObject * _resultobj; | |
818 | wxListItem * _arg0; | |
819 | long _arg1; | |
820 | PyObject * _argo0 = 0; | |
821 | char *_kwnames[] = { "self","stateMask", NULL }; | |
822 | ||
823 | self = self; | |
824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
825 | return NULL; | |
826 | if (_argo0) { | |
827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
830 | return NULL; | |
831 | } | |
832 | } | |
833 | { | |
834 | wxPy_BEGIN_ALLOW_THREADS; | |
835 | wxListItem_SetStateMask(_arg0,_arg1); | |
836 | ||
837 | wxPy_END_ALLOW_THREADS; | |
838 | if (PyErr_Occurred()) return NULL; | |
839 | } Py_INCREF(Py_None); | |
840 | _resultobj = Py_None; | |
841 | return _resultobj; | |
842 | } | |
843 | ||
844 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
845 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
846 | PyObject * _resultobj; | |
847 | wxListItem * _arg0; | |
848 | wxString * _arg1; | |
849 | PyObject * _argo0 = 0; | |
850 | PyObject * _obj1 = 0; | |
851 | char *_kwnames[] = { "self","text", NULL }; | |
852 | ||
853 | self = self; | |
854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
855 | return NULL; | |
856 | if (_argo0) { | |
857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
860 | return NULL; | |
861 | } | |
862 | } | |
863 | { | |
864 | #if PYTHON_API_VERSION >= 1009 | |
865 | char* tmpPtr; int tmpSize; | |
866 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
868 | return NULL; | |
869 | } | |
870 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
871 | return NULL; | |
872 | _arg1 = new wxString(tmpPtr, tmpSize); | |
873 | #else | |
874 | if (!PyString_Check(_obj1)) { | |
875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
876 | return NULL; | |
877 | } | |
878 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
879 | #endif | |
880 | } | |
881 | { | |
882 | wxPy_BEGIN_ALLOW_THREADS; | |
883 | wxListItem_SetText(_arg0,*_arg1); | |
884 | ||
885 | wxPy_END_ALLOW_THREADS; | |
886 | if (PyErr_Occurred()) return NULL; | |
887 | } Py_INCREF(Py_None); | |
888 | _resultobj = Py_None; | |
889 | { | |
890 | if (_obj1) | |
891 | delete _arg1; | |
892 | } | |
893 | return _resultobj; | |
894 | } | |
895 | ||
896 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
897 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
898 | PyObject * _resultobj; | |
899 | wxListItem * _arg0; | |
900 | int _arg1; | |
901 | PyObject * _argo0 = 0; | |
902 | char *_kwnames[] = { "self","image", NULL }; | |
903 | ||
904 | self = self; | |
905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
906 | return NULL; | |
907 | if (_argo0) { | |
908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
911 | return NULL; | |
912 | } | |
913 | } | |
914 | { | |
915 | wxPy_BEGIN_ALLOW_THREADS; | |
916 | wxListItem_SetImage(_arg0,_arg1); | |
917 | ||
918 | wxPy_END_ALLOW_THREADS; | |
919 | if (PyErr_Occurred()) return NULL; | |
920 | } Py_INCREF(Py_None); | |
921 | _resultobj = Py_None; | |
922 | return _resultobj; | |
923 | } | |
924 | ||
925 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
926 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
927 | PyObject * _resultobj; | |
928 | wxListItem * _arg0; | |
929 | long _arg1; | |
930 | PyObject * _argo0 = 0; | |
931 | char *_kwnames[] = { "self","data", NULL }; | |
932 | ||
933 | self = self; | |
934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
935 | return NULL; | |
936 | if (_argo0) { | |
937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
940 | return NULL; | |
941 | } | |
942 | } | |
943 | { | |
944 | wxPy_BEGIN_ALLOW_THREADS; | |
945 | wxListItem_SetData(_arg0,_arg1); | |
946 | ||
947 | wxPy_END_ALLOW_THREADS; | |
948 | if (PyErr_Occurred()) return NULL; | |
949 | } Py_INCREF(Py_None); | |
950 | _resultobj = Py_None; | |
951 | return _resultobj; | |
952 | } | |
953 | ||
954 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
955 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
956 | PyObject * _resultobj; | |
957 | wxListItem * _arg0; | |
958 | int _arg1; | |
959 | PyObject * _argo0 = 0; | |
960 | char *_kwnames[] = { "self","width", NULL }; | |
961 | ||
962 | self = self; | |
963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
964 | return NULL; | |
965 | if (_argo0) { | |
966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
969 | return NULL; | |
970 | } | |
971 | } | |
972 | { | |
973 | wxPy_BEGIN_ALLOW_THREADS; | |
974 | wxListItem_SetWidth(_arg0,_arg1); | |
975 | ||
976 | wxPy_END_ALLOW_THREADS; | |
977 | if (PyErr_Occurred()) return NULL; | |
978 | } Py_INCREF(Py_None); | |
979 | _resultobj = Py_None; | |
980 | return _resultobj; | |
981 | } | |
982 | ||
983 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
984 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
985 | PyObject * _resultobj; | |
986 | wxListItem * _arg0; | |
987 | wxListColumnFormat _arg1; | |
988 | PyObject * _argo0 = 0; | |
989 | char *_kwnames[] = { "self","align", NULL }; | |
990 | ||
991 | self = self; | |
992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
993 | return NULL; | |
994 | if (_argo0) { | |
995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
998 | return NULL; | |
999 | } | |
1000 | } | |
1001 | { | |
1002 | wxPy_BEGIN_ALLOW_THREADS; | |
1003 | wxListItem_SetAlign(_arg0,_arg1); | |
1004 | ||
1005 | wxPy_END_ALLOW_THREADS; | |
1006 | if (PyErr_Occurred()) return NULL; | |
1007 | } Py_INCREF(Py_None); | |
1008 | _resultobj = Py_None; | |
1009 | return _resultobj; | |
1010 | } | |
1011 | ||
1012 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
1013 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1014 | PyObject * _resultobj; | |
1015 | wxListItem * _arg0; | |
1016 | wxColour * _arg1; | |
1017 | PyObject * _argo0 = 0; | |
1018 | wxColour temp; | |
1019 | PyObject * _obj1 = 0; | |
1020 | char *_kwnames[] = { "self","colText", NULL }; | |
1021 | ||
1022 | self = self; | |
1023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1024 | return NULL; | |
1025 | if (_argo0) { | |
1026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1029 | return NULL; | |
1030 | } | |
1031 | } | |
1032 | { | |
1033 | _arg1 = &temp; | |
1034 | if (! wxColour_helper(_obj1, &_arg1)) | |
1035 | return NULL; | |
1036 | } | |
1037 | { | |
1038 | wxPy_BEGIN_ALLOW_THREADS; | |
1039 | wxListItem_SetTextColour(_arg0,*_arg1); | |
1040 | ||
1041 | wxPy_END_ALLOW_THREADS; | |
1042 | if (PyErr_Occurred()) return NULL; | |
1043 | } Py_INCREF(Py_None); | |
1044 | _resultobj = Py_None; | |
1045 | return _resultobj; | |
1046 | } | |
1047 | ||
1048 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1049 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1050 | PyObject * _resultobj; | |
1051 | wxListItem * _arg0; | |
1052 | wxColour * _arg1; | |
1053 | PyObject * _argo0 = 0; | |
1054 | wxColour temp; | |
1055 | PyObject * _obj1 = 0; | |
1056 | char *_kwnames[] = { "self","colBack", NULL }; | |
1057 | ||
1058 | self = self; | |
1059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1060 | return NULL; | |
1061 | if (_argo0) { | |
1062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1065 | return NULL; | |
1066 | } | |
1067 | } | |
1068 | { | |
1069 | _arg1 = &temp; | |
1070 | if (! wxColour_helper(_obj1, &_arg1)) | |
1071 | return NULL; | |
1072 | } | |
1073 | { | |
1074 | wxPy_BEGIN_ALLOW_THREADS; | |
1075 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1076 | ||
1077 | wxPy_END_ALLOW_THREADS; | |
1078 | if (PyErr_Occurred()) return NULL; | |
1079 | } Py_INCREF(Py_None); | |
1080 | _resultobj = Py_None; | |
1081 | return _resultobj; | |
1082 | } | |
1083 | ||
1084 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1085 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | wxListItem * _arg0; | |
1088 | wxFont * _arg1; | |
1089 | PyObject * _argo0 = 0; | |
1090 | PyObject * _argo1 = 0; | |
1091 | char *_kwnames[] = { "self","font", NULL }; | |
1092 | ||
1093 | self = self; | |
1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1095 | return NULL; | |
1096 | if (_argo0) { | |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | if (_argo1) { | |
1104 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1105 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1107 | return NULL; | |
1108 | } | |
1109 | } | |
1110 | { | |
1111 | wxPy_BEGIN_ALLOW_THREADS; | |
1112 | wxListItem_SetFont(_arg0,*_arg1); | |
1113 | ||
1114 | wxPy_END_ALLOW_THREADS; | |
1115 | if (PyErr_Occurred()) return NULL; | |
1116 | } Py_INCREF(Py_None); | |
1117 | _resultobj = Py_None; | |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1122 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1123 | PyObject * _resultobj; | |
1124 | long _result; | |
1125 | wxListItem * _arg0; | |
1126 | PyObject * _argo0 = 0; | |
1127 | char *_kwnames[] = { "self", NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1131 | return NULL; | |
1132 | if (_argo0) { | |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
1139 | { | |
1140 | wxPy_BEGIN_ALLOW_THREADS; | |
1141 | _result = (long )wxListItem_GetMask(_arg0); | |
1142 | ||
1143 | wxPy_END_ALLOW_THREADS; | |
1144 | if (PyErr_Occurred()) return NULL; | |
1145 | } _resultobj = Py_BuildValue("l",_result); | |
1146 | return _resultobj; | |
1147 | } | |
1148 | ||
1149 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1150 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1151 | PyObject * _resultobj; | |
1152 | long _result; | |
1153 | wxListItem * _arg0; | |
1154 | PyObject * _argo0 = 0; | |
1155 | char *_kwnames[] = { "self", NULL }; | |
1156 | ||
1157 | self = self; | |
1158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1159 | return NULL; | |
1160 | if (_argo0) { | |
1161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1164 | return NULL; | |
1165 | } | |
1166 | } | |
1167 | { | |
1168 | wxPy_BEGIN_ALLOW_THREADS; | |
1169 | _result = (long )wxListItem_GetId(_arg0); | |
1170 | ||
1171 | wxPy_END_ALLOW_THREADS; | |
1172 | if (PyErr_Occurred()) return NULL; | |
1173 | } _resultobj = Py_BuildValue("l",_result); | |
1174 | return _resultobj; | |
1175 | } | |
1176 | ||
1177 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1178 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1179 | PyObject * _resultobj; | |
1180 | int _result; | |
1181 | wxListItem * _arg0; | |
1182 | PyObject * _argo0 = 0; | |
1183 | char *_kwnames[] = { "self", NULL }; | |
1184 | ||
1185 | self = self; | |
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1187 | return NULL; | |
1188 | if (_argo0) { | |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
1195 | { | |
1196 | wxPy_BEGIN_ALLOW_THREADS; | |
1197 | _result = (int )wxListItem_GetColumn(_arg0); | |
1198 | ||
1199 | wxPy_END_ALLOW_THREADS; | |
1200 | if (PyErr_Occurred()) return NULL; | |
1201 | } _resultobj = Py_BuildValue("i",_result); | |
1202 | return _resultobj; | |
1203 | } | |
1204 | ||
1205 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1206 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1207 | PyObject * _resultobj; | |
1208 | long _result; | |
1209 | wxListItem * _arg0; | |
1210 | PyObject * _argo0 = 0; | |
1211 | char *_kwnames[] = { "self", NULL }; | |
1212 | ||
1213 | self = self; | |
1214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1215 | return NULL; | |
1216 | if (_argo0) { | |
1217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | { | |
1224 | wxPy_BEGIN_ALLOW_THREADS; | |
1225 | _result = (long )wxListItem_GetState(_arg0); | |
1226 | ||
1227 | wxPy_END_ALLOW_THREADS; | |
1228 | if (PyErr_Occurred()) return NULL; | |
1229 | } _resultobj = Py_BuildValue("l",_result); | |
1230 | return _resultobj; | |
1231 | } | |
1232 | ||
1233 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1234 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1235 | PyObject * _resultobj; | |
1236 | wxString * _result; | |
1237 | wxListItem * _arg0; | |
1238 | PyObject * _argo0 = 0; | |
1239 | char *_kwnames[] = { "self", NULL }; | |
1240 | ||
1241 | self = self; | |
1242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1243 | return NULL; | |
1244 | if (_argo0) { | |
1245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1248 | return NULL; | |
1249 | } | |
1250 | } | |
1251 | { | |
1252 | wxPy_BEGIN_ALLOW_THREADS; | |
1253 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1254 | _result = (wxString *) &_result_ref; | |
1255 | ||
1256 | wxPy_END_ALLOW_THREADS; | |
1257 | if (PyErr_Occurred()) return NULL; | |
1258 | }{ | |
1259 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1260 | } | |
1261 | return _resultobj; | |
1262 | } | |
1263 | ||
1264 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1265 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1266 | PyObject * _resultobj; | |
1267 | int _result; | |
1268 | wxListItem * _arg0; | |
1269 | PyObject * _argo0 = 0; | |
1270 | char *_kwnames[] = { "self", NULL }; | |
1271 | ||
1272 | self = self; | |
1273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1274 | return NULL; | |
1275 | if (_argo0) { | |
1276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1279 | return NULL; | |
1280 | } | |
1281 | } | |
1282 | { | |
1283 | wxPy_BEGIN_ALLOW_THREADS; | |
1284 | _result = (int )wxListItem_GetImage(_arg0); | |
1285 | ||
1286 | wxPy_END_ALLOW_THREADS; | |
1287 | if (PyErr_Occurred()) return NULL; | |
1288 | } _resultobj = Py_BuildValue("i",_result); | |
1289 | return _resultobj; | |
1290 | } | |
1291 | ||
1292 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1293 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1294 | PyObject * _resultobj; | |
1295 | long _result; | |
1296 | wxListItem * _arg0; | |
1297 | PyObject * _argo0 = 0; | |
1298 | char *_kwnames[] = { "self", NULL }; | |
1299 | ||
1300 | self = self; | |
1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1302 | return NULL; | |
1303 | if (_argo0) { | |
1304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1307 | return NULL; | |
1308 | } | |
1309 | } | |
1310 | { | |
1311 | wxPy_BEGIN_ALLOW_THREADS; | |
1312 | _result = (long )wxListItem_GetData(_arg0); | |
1313 | ||
1314 | wxPy_END_ALLOW_THREADS; | |
1315 | if (PyErr_Occurred()) return NULL; | |
1316 | } _resultobj = Py_BuildValue("l",_result); | |
1317 | return _resultobj; | |
1318 | } | |
1319 | ||
1320 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1321 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1322 | PyObject * _resultobj; | |
1323 | int _result; | |
1324 | wxListItem * _arg0; | |
1325 | PyObject * _argo0 = 0; | |
1326 | char *_kwnames[] = { "self", NULL }; | |
1327 | ||
1328 | self = self; | |
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1330 | return NULL; | |
1331 | if (_argo0) { | |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | { | |
1339 | wxPy_BEGIN_ALLOW_THREADS; | |
1340 | _result = (int )wxListItem_GetWidth(_arg0); | |
1341 | ||
1342 | wxPy_END_ALLOW_THREADS; | |
1343 | if (PyErr_Occurred()) return NULL; | |
1344 | } _resultobj = Py_BuildValue("i",_result); | |
1345 | return _resultobj; | |
1346 | } | |
1347 | ||
1348 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1349 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1350 | PyObject * _resultobj; | |
1351 | wxListColumnFormat _result; | |
1352 | wxListItem * _arg0; | |
1353 | PyObject * _argo0 = 0; | |
1354 | char *_kwnames[] = { "self", NULL }; | |
1355 | ||
1356 | self = self; | |
1357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1358 | return NULL; | |
1359 | if (_argo0) { | |
1360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1363 | return NULL; | |
1364 | } | |
1365 | } | |
1366 | { | |
1367 | wxPy_BEGIN_ALLOW_THREADS; | |
1368 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1369 | ||
1370 | wxPy_END_ALLOW_THREADS; | |
1371 | if (PyErr_Occurred()) return NULL; | |
1372 | } _resultobj = Py_BuildValue("i",_result); | |
1373 | return _resultobj; | |
1374 | } | |
1375 | ||
1376 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1377 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject * _resultobj; | |
1379 | wxListItemAttr * _result; | |
1380 | wxListItem * _arg0; | |
1381 | PyObject * _argo0 = 0; | |
1382 | char *_kwnames[] = { "self", NULL }; | |
1383 | char _ptemp[128]; | |
1384 | ||
1385 | self = self; | |
1386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1387 | return NULL; | |
1388 | if (_argo0) { | |
1389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1392 | return NULL; | |
1393 | } | |
1394 | } | |
1395 | { | |
1396 | wxPy_BEGIN_ALLOW_THREADS; | |
1397 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1398 | ||
1399 | wxPy_END_ALLOW_THREADS; | |
1400 | if (PyErr_Occurred()) return NULL; | |
1401 | } if (_result) { | |
1402 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1403 | _resultobj = Py_BuildValue("s",_ptemp); | |
1404 | } else { | |
1405 | Py_INCREF(Py_None); | |
1406 | _resultobj = Py_None; | |
1407 | } | |
1408 | return _resultobj; | |
1409 | } | |
1410 | ||
1411 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1412 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1413 | PyObject * _resultobj; | |
1414 | bool _result; | |
1415 | wxListItem * _arg0; | |
1416 | PyObject * _argo0 = 0; | |
1417 | char *_kwnames[] = { "self", NULL }; | |
1418 | ||
1419 | self = self; | |
1420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1421 | return NULL; | |
1422 | if (_argo0) { | |
1423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1426 | return NULL; | |
1427 | } | |
1428 | } | |
1429 | { | |
1430 | wxPy_BEGIN_ALLOW_THREADS; | |
1431 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1432 | ||
1433 | wxPy_END_ALLOW_THREADS; | |
1434 | if (PyErr_Occurred()) return NULL; | |
1435 | } _resultobj = Py_BuildValue("i",_result); | |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
1439 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1440 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1441 | PyObject * _resultobj; | |
1442 | wxColour * _result; | |
1443 | wxListItem * _arg0; | |
1444 | PyObject * _argo0 = 0; | |
1445 | char *_kwnames[] = { "self", NULL }; | |
1446 | char _ptemp[128]; | |
1447 | ||
1448 | self = self; | |
1449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1450 | return NULL; | |
1451 | if (_argo0) { | |
1452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1455 | return NULL; | |
1456 | } | |
1457 | } | |
1458 | { | |
1459 | wxPy_BEGIN_ALLOW_THREADS; | |
1460 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1461 | ||
1462 | wxPy_END_ALLOW_THREADS; | |
1463 | if (PyErr_Occurred()) return NULL; | |
1464 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1465 | _resultobj = Py_BuildValue("s",_ptemp); | |
1466 | return _resultobj; | |
1467 | } | |
1468 | ||
1469 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1470 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject * _resultobj; | |
1472 | wxColour * _result; | |
1473 | wxListItem * _arg0; | |
1474 | PyObject * _argo0 = 0; | |
1475 | char *_kwnames[] = { "self", NULL }; | |
1476 | char _ptemp[128]; | |
1477 | ||
1478 | self = self; | |
1479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1480 | return NULL; | |
1481 | if (_argo0) { | |
1482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1485 | return NULL; | |
1486 | } | |
1487 | } | |
1488 | { | |
1489 | wxPy_BEGIN_ALLOW_THREADS; | |
1490 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1491 | ||
1492 | wxPy_END_ALLOW_THREADS; | |
1493 | if (PyErr_Occurred()) return NULL; | |
1494 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1495 | _resultobj = Py_BuildValue("s",_ptemp); | |
1496 | return _resultobj; | |
1497 | } | |
1498 | ||
1499 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1500 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1501 | PyObject * _resultobj; | |
1502 | wxFont * _result; | |
1503 | wxListItem * _arg0; | |
1504 | PyObject * _argo0 = 0; | |
1505 | char *_kwnames[] = { "self", NULL }; | |
1506 | char _ptemp[128]; | |
1507 | ||
1508 | self = self; | |
1509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1510 | return NULL; | |
1511 | if (_argo0) { | |
1512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1515 | return NULL; | |
1516 | } | |
1517 | } | |
1518 | { | |
1519 | wxPy_BEGIN_ALLOW_THREADS; | |
1520 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1521 | ||
1522 | wxPy_END_ALLOW_THREADS; | |
1523 | if (PyErr_Occurred()) return NULL; | |
1524 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1525 | _resultobj = Py_BuildValue("s",_ptemp); | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1530 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | long _result; | |
1533 | wxListItem * _arg0; | |
1534 | long _arg1; | |
1535 | PyObject * _argo0 = 0; | |
1536 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1537 | ||
1538 | self = self; | |
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1540 | return NULL; | |
1541 | if (_argo0) { | |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
1549 | wxPy_BEGIN_ALLOW_THREADS; | |
1550 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1551 | ||
1552 | wxPy_END_ALLOW_THREADS; | |
1553 | if (PyErr_Occurred()) return NULL; | |
1554 | } _resultobj = Py_BuildValue("l",_result); | |
1555 | return _resultobj; | |
1556 | } | |
1557 | ||
1558 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1559 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject * _resultobj; | |
1561 | long _result; | |
1562 | wxListItem * _arg0; | |
1563 | PyObject * _argo0 = 0; | |
1564 | char *_kwnames[] = { "self", NULL }; | |
1565 | ||
1566 | self = self; | |
1567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1568 | return NULL; | |
1569 | if (_argo0) { | |
1570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1573 | return NULL; | |
1574 | } | |
1575 | } | |
1576 | { | |
1577 | wxPy_BEGIN_ALLOW_THREADS; | |
1578 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1579 | ||
1580 | wxPy_END_ALLOW_THREADS; | |
1581 | if (PyErr_Occurred()) return NULL; | |
1582 | } _resultobj = Py_BuildValue("l",_result); | |
1583 | return _resultobj; | |
1584 | } | |
1585 | ||
1586 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1587 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1588 | PyObject * _resultobj; | |
1589 | long _result; | |
1590 | wxListItem * _arg0; | |
1591 | long _arg1; | |
1592 | PyObject * _argo0 = 0; | |
1593 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1594 | ||
1595 | self = self; | |
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1597 | return NULL; | |
1598 | if (_argo0) { | |
1599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1602 | return NULL; | |
1603 | } | |
1604 | } | |
1605 | { | |
1606 | wxPy_BEGIN_ALLOW_THREADS; | |
1607 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1608 | ||
1609 | wxPy_END_ALLOW_THREADS; | |
1610 | if (PyErr_Occurred()) return NULL; | |
1611 | } _resultobj = Py_BuildValue("l",_result); | |
1612 | return _resultobj; | |
1613 | } | |
1614 | ||
1615 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1616 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject * _resultobj; | |
1618 | long _result; | |
1619 | wxListItem * _arg0; | |
1620 | PyObject * _argo0 = 0; | |
1621 | char *_kwnames[] = { "self", NULL }; | |
1622 | ||
1623 | self = self; | |
1624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1625 | return NULL; | |
1626 | if (_argo0) { | |
1627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1630 | return NULL; | |
1631 | } | |
1632 | } | |
1633 | { | |
1634 | wxPy_BEGIN_ALLOW_THREADS; | |
1635 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1636 | ||
1637 | wxPy_END_ALLOW_THREADS; | |
1638 | if (PyErr_Occurred()) return NULL; | |
1639 | } _resultobj = Py_BuildValue("l",_result); | |
1640 | return _resultobj; | |
1641 | } | |
1642 | ||
1643 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1644 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject * _resultobj; | |
1646 | int _result; | |
1647 | wxListItem * _arg0; | |
1648 | int _arg1; | |
1649 | PyObject * _argo0 = 0; | |
1650 | char *_kwnames[] = { "self","m_col", NULL }; | |
1651 | ||
1652 | self = self; | |
1653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1654 | return NULL; | |
1655 | if (_argo0) { | |
1656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1659 | return NULL; | |
1660 | } | |
1661 | } | |
1662 | { | |
1663 | wxPy_BEGIN_ALLOW_THREADS; | |
1664 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1665 | ||
1666 | wxPy_END_ALLOW_THREADS; | |
1667 | if (PyErr_Occurred()) return NULL; | |
1668 | } _resultobj = Py_BuildValue("i",_result); | |
1669 | return _resultobj; | |
1670 | } | |
1671 | ||
1672 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1673 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1674 | PyObject * _resultobj; | |
1675 | int _result; | |
1676 | wxListItem * _arg0; | |
1677 | PyObject * _argo0 = 0; | |
1678 | char *_kwnames[] = { "self", NULL }; | |
1679 | ||
1680 | self = self; | |
1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1682 | return NULL; | |
1683 | if (_argo0) { | |
1684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1687 | return NULL; | |
1688 | } | |
1689 | } | |
1690 | { | |
1691 | wxPy_BEGIN_ALLOW_THREADS; | |
1692 | _result = (int )wxListItem_m_col_get(_arg0); | |
1693 | ||
1694 | wxPy_END_ALLOW_THREADS; | |
1695 | if (PyErr_Occurred()) return NULL; | |
1696 | } _resultobj = Py_BuildValue("i",_result); | |
1697 | return _resultobj; | |
1698 | } | |
1699 | ||
1700 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1701 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1702 | PyObject * _resultobj; | |
1703 | long _result; | |
1704 | wxListItem * _arg0; | |
1705 | long _arg1; | |
1706 | PyObject * _argo0 = 0; | |
1707 | char *_kwnames[] = { "self","m_state", NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1711 | return NULL; | |
1712 | if (_argo0) { | |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
1720 | wxPy_BEGIN_ALLOW_THREADS; | |
1721 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1722 | ||
1723 | wxPy_END_ALLOW_THREADS; | |
1724 | if (PyErr_Occurred()) return NULL; | |
1725 | } _resultobj = Py_BuildValue("l",_result); | |
1726 | return _resultobj; | |
1727 | } | |
1728 | ||
1729 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1730 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1731 | PyObject * _resultobj; | |
1732 | long _result; | |
1733 | wxListItem * _arg0; | |
1734 | PyObject * _argo0 = 0; | |
1735 | char *_kwnames[] = { "self", NULL }; | |
1736 | ||
1737 | self = self; | |
1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1739 | return NULL; | |
1740 | if (_argo0) { | |
1741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1744 | return NULL; | |
1745 | } | |
1746 | } | |
1747 | { | |
1748 | wxPy_BEGIN_ALLOW_THREADS; | |
1749 | _result = (long )wxListItem_m_state_get(_arg0); | |
1750 | ||
1751 | wxPy_END_ALLOW_THREADS; | |
1752 | if (PyErr_Occurred()) return NULL; | |
1753 | } _resultobj = Py_BuildValue("l",_result); | |
1754 | return _resultobj; | |
1755 | } | |
1756 | ||
1757 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1758 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1759 | PyObject * _resultobj; | |
1760 | long _result; | |
1761 | wxListItem * _arg0; | |
1762 | long _arg1; | |
1763 | PyObject * _argo0 = 0; | |
1764 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1765 | ||
1766 | self = self; | |
1767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1768 | return NULL; | |
1769 | if (_argo0) { | |
1770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1773 | return NULL; | |
1774 | } | |
1775 | } | |
1776 | { | |
1777 | wxPy_BEGIN_ALLOW_THREADS; | |
1778 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1779 | ||
1780 | wxPy_END_ALLOW_THREADS; | |
1781 | if (PyErr_Occurred()) return NULL; | |
1782 | } _resultobj = Py_BuildValue("l",_result); | |
1783 | return _resultobj; | |
1784 | } | |
1785 | ||
1786 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1787 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1788 | PyObject * _resultobj; | |
1789 | long _result; | |
1790 | wxListItem * _arg0; | |
1791 | PyObject * _argo0 = 0; | |
1792 | char *_kwnames[] = { "self", NULL }; | |
1793 | ||
1794 | self = self; | |
1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1796 | return NULL; | |
1797 | if (_argo0) { | |
1798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1801 | return NULL; | |
1802 | } | |
1803 | } | |
1804 | { | |
1805 | wxPy_BEGIN_ALLOW_THREADS; | |
1806 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1807 | ||
1808 | wxPy_END_ALLOW_THREADS; | |
1809 | if (PyErr_Occurred()) return NULL; | |
1810 | } _resultobj = Py_BuildValue("l",_result); | |
1811 | return _resultobj; | |
1812 | } | |
1813 | ||
1814 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1815 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1816 | PyObject * _resultobj; | |
1817 | wxString * _result; | |
1818 | wxListItem * _arg0; | |
1819 | wxString * _arg1; | |
1820 | PyObject * _argo0 = 0; | |
1821 | PyObject * _obj1 = 0; | |
1822 | char *_kwnames[] = { "self","m_text", NULL }; | |
1823 | ||
1824 | self = self; | |
1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1826 | return NULL; | |
1827 | if (_argo0) { | |
1828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1831 | return NULL; | |
1832 | } | |
1833 | } | |
1834 | { | |
1835 | #if PYTHON_API_VERSION >= 1009 | |
1836 | char* tmpPtr; int tmpSize; | |
1837 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1838 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1839 | return NULL; | |
1840 | } | |
1841 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1842 | return NULL; | |
1843 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1844 | #else | |
1845 | if (!PyString_Check(_obj1)) { | |
1846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1847 | return NULL; | |
1848 | } | |
1849 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1850 | #endif | |
1851 | } | |
1852 | { | |
1853 | wxPy_BEGIN_ALLOW_THREADS; | |
1854 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1855 | ||
1856 | wxPy_END_ALLOW_THREADS; | |
1857 | if (PyErr_Occurred()) return NULL; | |
1858 | }{ | |
1859 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1860 | } | |
1861 | { | |
1862 | if (_obj1) | |
1863 | delete _arg1; | |
1864 | } | |
1865 | return _resultobj; | |
1866 | } | |
1867 | ||
1868 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1869 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1870 | PyObject * _resultobj; | |
1871 | wxString * _result; | |
1872 | wxListItem * _arg0; | |
1873 | PyObject * _argo0 = 0; | |
1874 | char *_kwnames[] = { "self", NULL }; | |
1875 | ||
1876 | self = self; | |
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1878 | return NULL; | |
1879 | if (_argo0) { | |
1880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1883 | return NULL; | |
1884 | } | |
1885 | } | |
1886 | { | |
1887 | wxPy_BEGIN_ALLOW_THREADS; | |
1888 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1889 | ||
1890 | wxPy_END_ALLOW_THREADS; | |
1891 | if (PyErr_Occurred()) return NULL; | |
1892 | }{ | |
1893 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1894 | } | |
1895 | return _resultobj; | |
1896 | } | |
1897 | ||
1898 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1899 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1900 | PyObject * _resultobj; | |
1901 | int _result; | |
1902 | wxListItem * _arg0; | |
1903 | int _arg1; | |
1904 | PyObject * _argo0 = 0; | |
1905 | char *_kwnames[] = { "self","m_image", NULL }; | |
1906 | ||
1907 | self = self; | |
1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1909 | return NULL; | |
1910 | if (_argo0) { | |
1911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1914 | return NULL; | |
1915 | } | |
1916 | } | |
1917 | { | |
1918 | wxPy_BEGIN_ALLOW_THREADS; | |
1919 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1920 | ||
1921 | wxPy_END_ALLOW_THREADS; | |
1922 | if (PyErr_Occurred()) return NULL; | |
1923 | } _resultobj = Py_BuildValue("i",_result); | |
1924 | return _resultobj; | |
1925 | } | |
1926 | ||
1927 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1928 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1929 | PyObject * _resultobj; | |
1930 | int _result; | |
1931 | wxListItem * _arg0; | |
1932 | PyObject * _argo0 = 0; | |
1933 | char *_kwnames[] = { "self", NULL }; | |
1934 | ||
1935 | self = self; | |
1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1937 | return NULL; | |
1938 | if (_argo0) { | |
1939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1942 | return NULL; | |
1943 | } | |
1944 | } | |
1945 | { | |
1946 | wxPy_BEGIN_ALLOW_THREADS; | |
1947 | _result = (int )wxListItem_m_image_get(_arg0); | |
1948 | ||
1949 | wxPy_END_ALLOW_THREADS; | |
1950 | if (PyErr_Occurred()) return NULL; | |
1951 | } _resultobj = Py_BuildValue("i",_result); | |
1952 | return _resultobj; | |
1953 | } | |
1954 | ||
1955 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1956 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1957 | PyObject * _resultobj; | |
1958 | long _result; | |
1959 | wxListItem * _arg0; | |
1960 | long _arg1; | |
1961 | PyObject * _argo0 = 0; | |
1962 | char *_kwnames[] = { "self","m_data", NULL }; | |
1963 | ||
1964 | self = self; | |
1965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1966 | return NULL; | |
1967 | if (_argo0) { | |
1968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1971 | return NULL; | |
1972 | } | |
1973 | } | |
1974 | { | |
1975 | wxPy_BEGIN_ALLOW_THREADS; | |
1976 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1977 | ||
1978 | wxPy_END_ALLOW_THREADS; | |
1979 | if (PyErr_Occurred()) return NULL; | |
1980 | } _resultobj = Py_BuildValue("l",_result); | |
1981 | return _resultobj; | |
1982 | } | |
1983 | ||
1984 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1985 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1986 | PyObject * _resultobj; | |
1987 | long _result; | |
1988 | wxListItem * _arg0; | |
1989 | PyObject * _argo0 = 0; | |
1990 | char *_kwnames[] = { "self", NULL }; | |
1991 | ||
1992 | self = self; | |
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1994 | return NULL; | |
1995 | if (_argo0) { | |
1996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1999 | return NULL; | |
2000 | } | |
2001 | } | |
2002 | { | |
2003 | wxPy_BEGIN_ALLOW_THREADS; | |
2004 | _result = (long )wxListItem_m_data_get(_arg0); | |
2005 | ||
2006 | wxPy_END_ALLOW_THREADS; | |
2007 | if (PyErr_Occurred()) return NULL; | |
2008 | } _resultobj = Py_BuildValue("l",_result); | |
2009 | return _resultobj; | |
2010 | } | |
2011 | ||
2012 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
2013 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2014 | PyObject * _resultobj; | |
2015 | int _result; | |
2016 | wxListItem * _arg0; | |
2017 | int _arg1; | |
2018 | PyObject * _argo0 = 0; | |
2019 | char *_kwnames[] = { "self","m_format", NULL }; | |
2020 | ||
2021 | self = self; | |
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
2023 | return NULL; | |
2024 | if (_argo0) { | |
2025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2028 | return NULL; | |
2029 | } | |
2030 | } | |
2031 | { | |
2032 | wxPy_BEGIN_ALLOW_THREADS; | |
2033 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
2034 | ||
2035 | wxPy_END_ALLOW_THREADS; | |
2036 | if (PyErr_Occurred()) return NULL; | |
2037 | } _resultobj = Py_BuildValue("i",_result); | |
2038 | return _resultobj; | |
2039 | } | |
2040 | ||
2041 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2042 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2043 | PyObject * _resultobj; | |
2044 | int _result; | |
2045 | wxListItem * _arg0; | |
2046 | PyObject * _argo0 = 0; | |
2047 | char *_kwnames[] = { "self", NULL }; | |
2048 | ||
2049 | self = self; | |
2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2051 | return NULL; | |
2052 | if (_argo0) { | |
2053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2056 | return NULL; | |
2057 | } | |
2058 | } | |
2059 | { | |
2060 | wxPy_BEGIN_ALLOW_THREADS; | |
2061 | _result = (int )wxListItem_m_format_get(_arg0); | |
2062 | ||
2063 | wxPy_END_ALLOW_THREADS; | |
2064 | if (PyErr_Occurred()) return NULL; | |
2065 | } _resultobj = Py_BuildValue("i",_result); | |
2066 | return _resultobj; | |
2067 | } | |
2068 | ||
2069 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) | |
2070 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2071 | PyObject * _resultobj; | |
2072 | int _result; | |
2073 | wxListItem * _arg0; | |
2074 | int _arg1; | |
2075 | PyObject * _argo0 = 0; | |
2076 | char *_kwnames[] = { "self","m_width", NULL }; | |
2077 | ||
2078 | self = self; | |
2079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) | |
2080 | return NULL; | |
2081 | if (_argo0) { | |
2082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); | |
2085 | return NULL; | |
2086 | } | |
2087 | } | |
2088 | { | |
2089 | wxPy_BEGIN_ALLOW_THREADS; | |
2090 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); | |
2091 | ||
2092 | wxPy_END_ALLOW_THREADS; | |
2093 | if (PyErr_Occurred()) return NULL; | |
2094 | } _resultobj = Py_BuildValue("i",_result); | |
2095 | return _resultobj; | |
2096 | } | |
2097 | ||
2098 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) | |
2099 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2100 | PyObject * _resultobj; | |
2101 | int _result; | |
2102 | wxListItem * _arg0; | |
2103 | PyObject * _argo0 = 0; | |
2104 | char *_kwnames[] = { "self", NULL }; | |
2105 | ||
2106 | self = self; | |
2107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) | |
2108 | return NULL; | |
2109 | if (_argo0) { | |
2110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); | |
2113 | return NULL; | |
2114 | } | |
2115 | } | |
2116 | { | |
2117 | wxPy_BEGIN_ALLOW_THREADS; | |
2118 | _result = (int )wxListItem_m_width_get(_arg0); | |
2119 | ||
2120 | wxPy_END_ALLOW_THREADS; | |
2121 | if (PyErr_Occurred()) return NULL; | |
2122 | } _resultobj = Py_BuildValue("i",_result); | |
2123 | return _resultobj; | |
2124 | } | |
2125 | ||
2126 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { | |
2127 | wxListEvent *src; | |
2128 | wxNotifyEvent *dest; | |
2129 | src = (wxListEvent *) ptr; | |
2130 | dest = (wxNotifyEvent *) src; | |
2131 | return (void *) dest; | |
2132 | } | |
2133 | ||
2134 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { | |
2135 | wxListEvent *src; | |
2136 | wxCommandEvent *dest; | |
2137 | src = (wxListEvent *) ptr; | |
2138 | dest = (wxCommandEvent *) src; | |
2139 | return (void *) dest; | |
2140 | } | |
2141 | ||
2142 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2143 | wxListEvent *src; | |
2144 | wxEvent *dest; | |
2145 | src = (wxListEvent *) ptr; | |
2146 | dest = (wxEvent *) src; | |
2147 | return (void *) dest; | |
2148 | } | |
2149 | ||
2150 | static void *SwigwxListEventTowxObject(void *ptr) { | |
2151 | wxListEvent *src; | |
2152 | wxObject *dest; | |
2153 | src = (wxListEvent *) ptr; | |
2154 | dest = (wxObject *) src; | |
2155 | return (void *) dest; | |
2156 | } | |
2157 | ||
2158 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) | |
2159 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2160 | PyObject * _resultobj; | |
2161 | wxListEvent * _result; | |
2162 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2163 | int _arg1 = (int ) 0; | |
2164 | char *_kwnames[] = { "commandType","id", NULL }; | |
2165 | char _ptemp[128]; | |
2166 | ||
2167 | self = self; | |
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2169 | return NULL; | |
2170 | { | |
2171 | wxPy_BEGIN_ALLOW_THREADS; | |
2172 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); | |
2173 | ||
2174 | wxPy_END_ALLOW_THREADS; | |
2175 | if (PyErr_Occurred()) return NULL; | |
2176 | } if (_result) { | |
2177 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2178 | _resultobj = Py_BuildValue("s",_ptemp); | |
2179 | } else { | |
2180 | Py_INCREF(Py_None); | |
2181 | _resultobj = Py_None; | |
2182 | } | |
2183 | return _resultobj; | |
2184 | } | |
2185 | ||
2186 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) | |
2187 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2188 | PyObject * _resultobj; | |
2189 | int _result; | |
2190 | wxListEvent * _arg0; | |
2191 | int _arg1; | |
2192 | PyObject * _argo0 = 0; | |
2193 | char *_kwnames[] = { "self","m_code", NULL }; | |
2194 | ||
2195 | self = self; | |
2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
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_code_set. Expected _wxListEvent_p."); | |
2202 | return NULL; | |
2203 | } | |
2204 | } | |
2205 | { | |
2206 | wxPy_BEGIN_ALLOW_THREADS; | |
2207 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
2208 | ||
2209 | wxPy_END_ALLOW_THREADS; | |
2210 | if (PyErr_Occurred()) return NULL; | |
2211 | } _resultobj = Py_BuildValue("i",_result); | |
2212 | return _resultobj; | |
2213 | } | |
2214 | ||
2215 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2216 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2217 | PyObject * _resultobj; | |
2218 | int _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_code_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_code_get. Expected _wxListEvent_p."); | |
2230 | return NULL; | |
2231 | } | |
2232 | } | |
2233 | { | |
2234 | wxPy_BEGIN_ALLOW_THREADS; | |
2235 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2236 | ||
2237 | wxPy_END_ALLOW_THREADS; | |
2238 | if (PyErr_Occurred()) return NULL; | |
2239 | } _resultobj = Py_BuildValue("i",_result); | |
2240 | return _resultobj; | |
2241 | } | |
2242 | ||
2243 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) | |
2244 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2245 | PyObject * _resultobj; | |
2246 | long _result; | |
2247 | wxListEvent * _arg0; | |
2248 | long _arg1; | |
2249 | PyObject * _argo0 = 0; | |
2250 | char *_kwnames[] = { "self","m_itemIndex", NULL }; | |
2251 | ||
2252 | self = self; | |
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2254 | return NULL; | |
2255 | if (_argo0) { | |
2256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
2259 | return NULL; | |
2260 | } | |
2261 | } | |
2262 | { | |
2263 | wxPy_BEGIN_ALLOW_THREADS; | |
2264 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
2265 | ||
2266 | wxPy_END_ALLOW_THREADS; | |
2267 | if (PyErr_Occurred()) return NULL; | |
2268 | } _resultobj = Py_BuildValue("l",_result); | |
2269 | return _resultobj; | |
2270 | } | |
2271 | ||
2272 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2273 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2274 | PyObject * _resultobj; | |
2275 | long _result; | |
2276 | wxListEvent * _arg0; | |
2277 | PyObject * _argo0 = 0; | |
2278 | char *_kwnames[] = { "self", NULL }; | |
2279 | ||
2280 | self = self; | |
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_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_itemIndex_get. Expected _wxListEvent_p."); | |
2287 | return NULL; | |
2288 | } | |
2289 | } | |
2290 | { | |
2291 | wxPy_BEGIN_ALLOW_THREADS; | |
2292 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2293 | ||
2294 | wxPy_END_ALLOW_THREADS; | |
2295 | if (PyErr_Occurred()) return NULL; | |
2296 | } _resultobj = Py_BuildValue("l",_result); | |
2297 | return _resultobj; | |
2298 | } | |
2299 | ||
2300 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
2301 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2302 | PyObject * _resultobj; | |
2303 | int _result; | |
2304 | wxListEvent * _arg0; | |
2305 | int _arg1; | |
2306 | PyObject * _argo0 = 0; | |
2307 | char *_kwnames[] = { "self","m_col", NULL }; | |
2308 | ||
2309 | self = self; | |
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) | |
2311 | return NULL; | |
2312 | if (_argo0) { | |
2313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
2316 | return NULL; | |
2317 | } | |
2318 | } | |
2319 | { | |
2320 | wxPy_BEGIN_ALLOW_THREADS; | |
2321 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); | |
2322 | ||
2323 | wxPy_END_ALLOW_THREADS; | |
2324 | if (PyErr_Occurred()) return NULL; | |
2325 | } _resultobj = Py_BuildValue("i",_result); | |
2326 | return _resultobj; | |
2327 | } | |
2328 | ||
2329 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
2330 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2331 | PyObject * _resultobj; | |
2332 | int _result; | |
2333 | wxListEvent * _arg0; | |
2334 | PyObject * _argo0 = 0; | |
2335 | char *_kwnames[] = { "self", NULL }; | |
2336 | ||
2337 | self = self; | |
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) | |
2339 | return NULL; | |
2340 | if (_argo0) { | |
2341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
2344 | return NULL; | |
2345 | } | |
2346 | } | |
2347 | { | |
2348 | wxPy_BEGIN_ALLOW_THREADS; | |
2349 | _result = (int )wxListEvent_m_col_get(_arg0); | |
2350 | ||
2351 | wxPy_END_ALLOW_THREADS; | |
2352 | if (PyErr_Occurred()) return NULL; | |
2353 | } _resultobj = Py_BuildValue("i",_result); | |
2354 | return _resultobj; | |
2355 | } | |
2356 | ||
2357 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) | |
2358 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2359 | PyObject * _resultobj; | |
2360 | bool _result; | |
2361 | wxListEvent * _arg0; | |
2362 | bool _arg1; | |
2363 | PyObject * _argo0 = 0; | |
2364 | int tempbool1; | |
2365 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
2366 | ||
2367 | self = self; | |
2368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) | |
2369 | return NULL; | |
2370 | if (_argo0) { | |
2371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
2374 | return NULL; | |
2375 | } | |
2376 | } | |
2377 | _arg1 = (bool ) tempbool1; | |
2378 | { | |
2379 | wxPy_BEGIN_ALLOW_THREADS; | |
2380 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); | |
2381 | ||
2382 | wxPy_END_ALLOW_THREADS; | |
2383 | if (PyErr_Occurred()) return NULL; | |
2384 | } _resultobj = Py_BuildValue("i",_result); | |
2385 | return _resultobj; | |
2386 | } | |
2387 | ||
2388 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) | |
2389 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2390 | PyObject * _resultobj; | |
2391 | bool _result; | |
2392 | wxListEvent * _arg0; | |
2393 | PyObject * _argo0 = 0; | |
2394 | char *_kwnames[] = { "self", NULL }; | |
2395 | ||
2396 | self = self; | |
2397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) | |
2398 | return NULL; | |
2399 | if (_argo0) { | |
2400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
2403 | return NULL; | |
2404 | } | |
2405 | } | |
2406 | { | |
2407 | wxPy_BEGIN_ALLOW_THREADS; | |
2408 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); | |
2409 | ||
2410 | wxPy_END_ALLOW_THREADS; | |
2411 | if (PyErr_Occurred()) return NULL; | |
2412 | } _resultobj = Py_BuildValue("i",_result); | |
2413 | return _resultobj; | |
2414 | } | |
2415 | ||
2416 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) | |
2417 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2418 | PyObject * _resultobj; | |
2419 | wxPoint * _result; | |
2420 | wxListEvent * _arg0; | |
2421 | wxPoint * _arg1; | |
2422 | PyObject * _argo0 = 0; | |
2423 | wxPoint temp; | |
2424 | PyObject * _obj1 = 0; | |
2425 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2426 | char _ptemp[128]; | |
2427 | ||
2428 | self = self; | |
2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) | |
2430 | return NULL; | |
2431 | if (_argo0) { | |
2432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2435 | return NULL; | |
2436 | } | |
2437 | } | |
2438 | { | |
2439 | _arg1 = &temp; | |
2440 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2441 | return NULL; | |
2442 | } | |
2443 | { | |
2444 | wxPy_BEGIN_ALLOW_THREADS; | |
2445 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); | |
2446 | ||
2447 | wxPy_END_ALLOW_THREADS; | |
2448 | if (PyErr_Occurred()) return NULL; | |
2449 | } if (_result) { | |
2450 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2451 | _resultobj = Py_BuildValue("s",_ptemp); | |
2452 | } else { | |
2453 | Py_INCREF(Py_None); | |
2454 | _resultobj = Py_None; | |
2455 | } | |
2456 | return _resultobj; | |
2457 | } | |
2458 | ||
2459 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) | |
2460 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2461 | PyObject * _resultobj; | |
2462 | wxPoint * _result; | |
2463 | wxListEvent * _arg0; | |
2464 | PyObject * _argo0 = 0; | |
2465 | char *_kwnames[] = { "self", NULL }; | |
2466 | char _ptemp[128]; | |
2467 | ||
2468 | self = self; | |
2469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) | |
2470 | return NULL; | |
2471 | if (_argo0) { | |
2472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
2475 | return NULL; | |
2476 | } | |
2477 | } | |
2478 | { | |
2479 | wxPy_BEGIN_ALLOW_THREADS; | |
2480 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); | |
2481 | ||
2482 | wxPy_END_ALLOW_THREADS; | |
2483 | if (PyErr_Occurred()) return NULL; | |
2484 | } if (_result) { | |
2485 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2486 | _resultobj = Py_BuildValue("s",_ptemp); | |
2487 | } else { | |
2488 | Py_INCREF(Py_None); | |
2489 | _resultobj = Py_None; | |
2490 | } | |
2491 | return _resultobj; | |
2492 | } | |
2493 | ||
2494 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) | |
2495 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject * _resultobj; | |
2497 | wxListItem * _result; | |
2498 | wxListEvent * _arg0; | |
2499 | wxListItem * _arg1; | |
2500 | PyObject * _argo0 = 0; | |
2501 | PyObject * _argo1 = 0; | |
2502 | char *_kwnames[] = { "self","m_item", NULL }; | |
2503 | ||
2504 | self = self; | |
2505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2506 | return NULL; | |
2507 | if (_argo0) { | |
2508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2511 | return NULL; | |
2512 | } | |
2513 | } | |
2514 | if (_argo1) { | |
2515 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2516 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2518 | return NULL; | |
2519 | } | |
2520 | } | |
2521 | { | |
2522 | wxPy_BEGIN_ALLOW_THREADS; | |
2523 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); | |
2524 | ||
2525 | wxPy_END_ALLOW_THREADS; | |
2526 | if (PyErr_Occurred()) return NULL; | |
2527 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2528 | return _resultobj; | |
2529 | } | |
2530 | ||
2531 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) | |
2532 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2533 | PyObject * _resultobj; | |
2534 | wxListItem * _result; | |
2535 | wxListEvent * _arg0; | |
2536 | PyObject * _argo0 = 0; | |
2537 | char *_kwnames[] = { "self", NULL }; | |
2538 | ||
2539 | self = self; | |
2540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) | |
2541 | return NULL; | |
2542 | if (_argo0) { | |
2543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); | |
2546 | return NULL; | |
2547 | } | |
2548 | } | |
2549 | { | |
2550 | wxPy_BEGIN_ALLOW_THREADS; | |
2551 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); | |
2552 | ||
2553 | wxPy_END_ALLOW_THREADS; | |
2554 | if (PyErr_Occurred()) return NULL; | |
2555 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2556 | return _resultobj; | |
2557 | } | |
2558 | ||
2559 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) | |
2560 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2561 | PyObject * _resultobj; | |
2562 | int _result; | |
2563 | wxListEvent * _arg0; | |
2564 | PyObject * _argo0 = 0; | |
2565 | char *_kwnames[] = { "self", NULL }; | |
2566 | ||
2567 | self = self; | |
2568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) | |
2569 | return NULL; | |
2570 | if (_argo0) { | |
2571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); | |
2574 | return NULL; | |
2575 | } | |
2576 | } | |
2577 | { | |
2578 | wxPy_BEGIN_ALLOW_THREADS; | |
2579 | _result = (int )wxListEvent_GetCode(_arg0); | |
2580 | ||
2581 | wxPy_END_ALLOW_THREADS; | |
2582 | if (PyErr_Occurred()) return NULL; | |
2583 | } _resultobj = Py_BuildValue("i",_result); | |
2584 | return _resultobj; | |
2585 | } | |
2586 | ||
2587 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) | |
2588 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2589 | PyObject * _resultobj; | |
2590 | long _result; | |
2591 | wxListEvent * _arg0; | |
2592 | PyObject * _argo0 = 0; | |
2593 | char *_kwnames[] = { "self", NULL }; | |
2594 | ||
2595 | self = self; | |
2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) | |
2597 | return NULL; | |
2598 | if (_argo0) { | |
2599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); | |
2602 | return NULL; | |
2603 | } | |
2604 | } | |
2605 | { | |
2606 | wxPy_BEGIN_ALLOW_THREADS; | |
2607 | _result = (long )wxListEvent_GetIndex(_arg0); | |
2608 | ||
2609 | wxPy_END_ALLOW_THREADS; | |
2610 | if (PyErr_Occurred()) return NULL; | |
2611 | } _resultobj = Py_BuildValue("l",_result); | |
2612 | return _resultobj; | |
2613 | } | |
2614 | ||
2615 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
2616 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2617 | PyObject * _resultobj; | |
2618 | int _result; | |
2619 | wxListEvent * _arg0; | |
2620 | PyObject * _argo0 = 0; | |
2621 | char *_kwnames[] = { "self", NULL }; | |
2622 | ||
2623 | self = self; | |
2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) | |
2625 | return NULL; | |
2626 | if (_argo0) { | |
2627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); | |
2630 | return NULL; | |
2631 | } | |
2632 | } | |
2633 | { | |
2634 | wxPy_BEGIN_ALLOW_THREADS; | |
2635 | _result = (int )wxListEvent_GetColumn(_arg0); | |
2636 | ||
2637 | wxPy_END_ALLOW_THREADS; | |
2638 | if (PyErr_Occurred()) return NULL; | |
2639 | } _resultobj = Py_BuildValue("i",_result); | |
2640 | return _resultobj; | |
2641 | } | |
2642 | ||
2643 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) | |
2644 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2645 | PyObject * _resultobj; | |
2646 | bool _result; | |
2647 | wxListEvent * _arg0; | |
2648 | PyObject * _argo0 = 0; | |
2649 | char *_kwnames[] = { "self", NULL }; | |
2650 | ||
2651 | self = self; | |
2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) | |
2653 | return NULL; | |
2654 | if (_argo0) { | |
2655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); | |
2658 | return NULL; | |
2659 | } | |
2660 | } | |
2661 | { | |
2662 | wxPy_BEGIN_ALLOW_THREADS; | |
2663 | _result = (bool )wxListEvent_Cancelled(_arg0); | |
2664 | ||
2665 | wxPy_END_ALLOW_THREADS; | |
2666 | if (PyErr_Occurred()) return NULL; | |
2667 | } _resultobj = Py_BuildValue("i",_result); | |
2668 | return _resultobj; | |
2669 | } | |
2670 | ||
2671 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) | |
2672 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2673 | PyObject * _resultobj; | |
2674 | wxPoint * _result; | |
2675 | wxListEvent * _arg0; | |
2676 | PyObject * _argo0 = 0; | |
2677 | char *_kwnames[] = { "self", NULL }; | |
2678 | char _ptemp[128]; | |
2679 | ||
2680 | self = self; | |
2681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) | |
2682 | return NULL; | |
2683 | if (_argo0) { | |
2684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); | |
2687 | return NULL; | |
2688 | } | |
2689 | } | |
2690 | { | |
2691 | wxPy_BEGIN_ALLOW_THREADS; | |
2692 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); | |
2693 | ||
2694 | wxPy_END_ALLOW_THREADS; | |
2695 | if (PyErr_Occurred()) return NULL; | |
2696 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2697 | _resultobj = Py_BuildValue("s",_ptemp); | |
2698 | return _resultobj; | |
2699 | } | |
2700 | ||
2701 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
2702 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2703 | PyObject * _resultobj; | |
2704 | wxString * _result; | |
2705 | wxListEvent * _arg0; | |
2706 | PyObject * _argo0 = 0; | |
2707 | char *_kwnames[] = { "self", NULL }; | |
2708 | ||
2709 | self = self; | |
2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) | |
2711 | return NULL; | |
2712 | if (_argo0) { | |
2713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); | |
2716 | return NULL; | |
2717 | } | |
2718 | } | |
2719 | { | |
2720 | wxPy_BEGIN_ALLOW_THREADS; | |
2721 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); | |
2722 | _result = (wxString *) &_result_ref; | |
2723 | ||
2724 | wxPy_END_ALLOW_THREADS; | |
2725 | if (PyErr_Occurred()) return NULL; | |
2726 | }{ | |
2727 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2728 | } | |
2729 | return _resultobj; | |
2730 | } | |
2731 | ||
2732 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) | |
2733 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2734 | PyObject * _resultobj; | |
2735 | wxString * _result; | |
2736 | wxListEvent * _arg0; | |
2737 | PyObject * _argo0 = 0; | |
2738 | char *_kwnames[] = { "self", NULL }; | |
2739 | ||
2740 | self = self; | |
2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) | |
2742 | return NULL; | |
2743 | if (_argo0) { | |
2744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); | |
2747 | return NULL; | |
2748 | } | |
2749 | } | |
2750 | { | |
2751 | wxPy_BEGIN_ALLOW_THREADS; | |
2752 | const wxString & _result_ref = wxListEvent_GetText(_arg0); | |
2753 | _result = (wxString *) &_result_ref; | |
2754 | ||
2755 | wxPy_END_ALLOW_THREADS; | |
2756 | if (PyErr_Occurred()) return NULL; | |
2757 | }{ | |
2758 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2759 | } | |
2760 | return _resultobj; | |
2761 | } | |
2762 | ||
2763 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) | |
2764 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2765 | PyObject * _resultobj; | |
2766 | int _result; | |
2767 | wxListEvent * _arg0; | |
2768 | PyObject * _argo0 = 0; | |
2769 | char *_kwnames[] = { "self", NULL }; | |
2770 | ||
2771 | self = self; | |
2772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) | |
2773 | return NULL; | |
2774 | if (_argo0) { | |
2775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); | |
2778 | return NULL; | |
2779 | } | |
2780 | } | |
2781 | { | |
2782 | wxPy_BEGIN_ALLOW_THREADS; | |
2783 | _result = (int )wxListEvent_GetImage(_arg0); | |
2784 | ||
2785 | wxPy_END_ALLOW_THREADS; | |
2786 | if (PyErr_Occurred()) return NULL; | |
2787 | } _resultobj = Py_BuildValue("i",_result); | |
2788 | return _resultobj; | |
2789 | } | |
2790 | ||
2791 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) | |
2792 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2793 | PyObject * _resultobj; | |
2794 | long _result; | |
2795 | wxListEvent * _arg0; | |
2796 | PyObject * _argo0 = 0; | |
2797 | char *_kwnames[] = { "self", NULL }; | |
2798 | ||
2799 | self = self; | |
2800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) | |
2801 | return NULL; | |
2802 | if (_argo0) { | |
2803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); | |
2806 | return NULL; | |
2807 | } | |
2808 | } | |
2809 | { | |
2810 | wxPy_BEGIN_ALLOW_THREADS; | |
2811 | _result = (long )wxListEvent_GetData(_arg0); | |
2812 | ||
2813 | wxPy_END_ALLOW_THREADS; | |
2814 | if (PyErr_Occurred()) return NULL; | |
2815 | } _resultobj = Py_BuildValue("l",_result); | |
2816 | return _resultobj; | |
2817 | } | |
2818 | ||
2819 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) | |
2820 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2821 | PyObject * _resultobj; | |
2822 | long _result; | |
2823 | wxListEvent * _arg0; | |
2824 | PyObject * _argo0 = 0; | |
2825 | char *_kwnames[] = { "self", NULL }; | |
2826 | ||
2827 | self = self; | |
2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) | |
2829 | return NULL; | |
2830 | if (_argo0) { | |
2831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); | |
2834 | return NULL; | |
2835 | } | |
2836 | } | |
2837 | { | |
2838 | wxPy_BEGIN_ALLOW_THREADS; | |
2839 | _result = (long )wxListEvent_GetMask(_arg0); | |
2840 | ||
2841 | wxPy_END_ALLOW_THREADS; | |
2842 | if (PyErr_Occurred()) return NULL; | |
2843 | } _resultobj = Py_BuildValue("l",_result); | |
2844 | return _resultobj; | |
2845 | } | |
2846 | ||
2847 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) | |
2848 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2849 | PyObject * _resultobj; | |
2850 | wxListItem * _result; | |
2851 | wxListEvent * _arg0; | |
2852 | PyObject * _argo0 = 0; | |
2853 | char *_kwnames[] = { "self", NULL }; | |
2854 | ||
2855 | self = self; | |
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) | |
2857 | return NULL; | |
2858 | if (_argo0) { | |
2859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); | |
2862 | return NULL; | |
2863 | } | |
2864 | } | |
2865 | { | |
2866 | wxPy_BEGIN_ALLOW_THREADS; | |
2867 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); | |
2868 | _result = (wxListItem *) &_result_ref; | |
2869 | ||
2870 | wxPy_END_ALLOW_THREADS; | |
2871 | if (PyErr_Occurred()) return NULL; | |
2872 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2873 | return _resultobj; | |
2874 | } | |
2875 | ||
2876 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) | |
2877 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2878 | PyObject * _resultobj; | |
2879 | long _result; | |
2880 | wxListEvent * _arg0; | |
2881 | PyObject * _argo0 = 0; | |
2882 | char *_kwnames[] = { "self", NULL }; | |
2883 | ||
2884 | self = self; | |
2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2886 | return NULL; | |
2887 | if (_argo0) { | |
2888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2891 | return NULL; | |
2892 | } | |
2893 | } | |
2894 | { | |
2895 | wxPy_BEGIN_ALLOW_THREADS; | |
2896 | _result = (long )wxListEvent_GetCacheFrom(_arg0); | |
2897 | ||
2898 | wxPy_END_ALLOW_THREADS; | |
2899 | if (PyErr_Occurred()) return NULL; | |
2900 | } _resultobj = Py_BuildValue("l",_result); | |
2901 | return _resultobj; | |
2902 | } | |
2903 | ||
2904 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2905 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2906 | PyObject * _resultobj; | |
2907 | long _result; | |
2908 | wxListEvent * _arg0; | |
2909 | PyObject * _argo0 = 0; | |
2910 | char *_kwnames[] = { "self", NULL }; | |
2911 | ||
2912 | self = self; | |
2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2914 | return NULL; | |
2915 | if (_argo0) { | |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2919 | return NULL; | |
2920 | } | |
2921 | } | |
2922 | { | |
2923 | wxPy_BEGIN_ALLOW_THREADS; | |
2924 | _result = (long )wxListEvent_GetCacheTo(_arg0); | |
2925 | ||
2926 | wxPy_END_ALLOW_THREADS; | |
2927 | if (PyErr_Occurred()) return NULL; | |
2928 | } _resultobj = Py_BuildValue("l",_result); | |
2929 | return _resultobj; | |
2930 | } | |
2931 | ||
2932 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { | |
2933 | wxPyListCtrl *src; | |
2934 | wxControl *dest; | |
2935 | src = (wxPyListCtrl *) ptr; | |
2936 | dest = (wxControl *) src; | |
2937 | return (void *) dest; | |
2938 | } | |
2939 | ||
2940 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { | |
2941 | wxPyListCtrl *src; | |
2942 | wxWindow *dest; | |
2943 | src = (wxPyListCtrl *) ptr; | |
2944 | dest = (wxWindow *) src; | |
2945 | return (void *) dest; | |
2946 | } | |
2947 | ||
2948 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { | |
2949 | wxPyListCtrl *src; | |
2950 | wxEvtHandler *dest; | |
2951 | src = (wxPyListCtrl *) ptr; | |
2952 | dest = (wxEvtHandler *) src; | |
2953 | return (void *) dest; | |
2954 | } | |
2955 | ||
2956 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { | |
2957 | wxPyListCtrl *src; | |
2958 | wxObject *dest; | |
2959 | src = (wxPyListCtrl *) ptr; | |
2960 | dest = (wxObject *) src; | |
2961 | return (void *) dest; | |
2962 | } | |
2963 | ||
2964 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2965 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2966 | PyObject * _resultobj; | |
2967 | wxPyListCtrl * _result; | |
2968 | wxWindow * _arg0; | |
2969 | wxWindowID _arg1 = (wxWindowID ) -1; | |
2970 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2971 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2972 | long _arg4 = (long ) (wxLC_ICON); | |
2973 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
2974 | char * _arg6 = (char *) "listCtrl"; | |
2975 | PyObject * _argo0 = 0; | |
2976 | wxPoint temp; | |
2977 | PyObject * _obj2 = 0; | |
2978 | wxSize temp0; | |
2979 | PyObject * _obj3 = 0; | |
2980 | PyObject * _argo5 = 0; | |
2981 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
2982 | char _ptemp[128]; | |
2983 | ||
2984 | self = self; | |
2985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
2986 | return NULL; | |
2987 | if (_argo0) { | |
2988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); | |
2991 | return NULL; | |
2992 | } | |
2993 | } | |
2994 | if (_obj2) | |
2995 | { | |
2996 | _arg2 = &temp; | |
2997 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2998 | return NULL; | |
2999 | } | |
3000 | if (_obj3) | |
3001 | { | |
3002 | _arg3 = &temp0; | |
3003 | if (! wxSize_helper(_obj3, &_arg3)) | |
3004 | return NULL; | |
3005 | } | |
3006 | if (_argo5) { | |
3007 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3008 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
3009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); | |
3010 | return NULL; | |
3011 | } | |
3012 | } | |
3013 | { | |
3014 | wxPy_BEGIN_ALLOW_THREADS; | |
3015 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
3016 | ||
3017 | wxPy_END_ALLOW_THREADS; | |
3018 | if (PyErr_Occurred()) return NULL; | |
3019 | } if (_result) { | |
3020 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
3021 | _resultobj = Py_BuildValue("s",_ptemp); | |
3022 | } else { | |
3023 | Py_INCREF(Py_None); | |
3024 | _resultobj = Py_None; | |
3025 | } | |
3026 | return _resultobj; | |
3027 | } | |
3028 | ||
3029 | #define new_wxPreListCtrl() (new wxPyListCtrl()) | |
3030 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3031 | PyObject * _resultobj; | |
3032 | wxPyListCtrl * _result; | |
3033 | char *_kwnames[] = { NULL }; | |
3034 | char _ptemp[128]; | |
3035 | ||
3036 | self = self; | |
3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
3038 | return NULL; | |
3039 | { | |
3040 | wxPy_BEGIN_ALLOW_THREADS; | |
3041 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); | |
3042 | ||
3043 | wxPy_END_ALLOW_THREADS; | |
3044 | if (PyErr_Occurred()) return NULL; | |
3045 | } if (_result) { | |
3046 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
3047 | _resultobj = Py_BuildValue("s",_ptemp); | |
3048 | } else { | |
3049 | Py_INCREF(Py_None); | |
3050 | _resultobj = Py_None; | |
3051 | } | |
3052 | return _resultobj; | |
3053 | } | |
3054 | ||
3055 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3056 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3057 | PyObject * _resultobj; | |
3058 | bool _result; | |
3059 | wxPyListCtrl * _arg0; | |
3060 | wxWindow * _arg1; | |
3061 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3062 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3063 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3064 | long _arg5 = (long ) (wxLC_ICON); | |
3065 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3066 | char * _arg7 = (char *) "listCtrl"; | |
3067 | PyObject * _argo0 = 0; | |
3068 | PyObject * _argo1 = 0; | |
3069 | wxPoint temp; | |
3070 | PyObject * _obj3 = 0; | |
3071 | wxSize temp0; | |
3072 | PyObject * _obj4 = 0; | |
3073 | PyObject * _argo6 = 0; | |
3074 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
3075 | ||
3076 | self = self; | |
3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3078 | return NULL; | |
3079 | if (_argo0) { | |
3080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3083 | return NULL; | |
3084 | } | |
3085 | } | |
3086 | if (_argo1) { | |
3087 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3088 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3090 | return NULL; | |
3091 | } | |
3092 | } | |
3093 | if (_obj3) | |
3094 | { | |
3095 | _arg3 = &temp; | |
3096 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3097 | return NULL; | |
3098 | } | |
3099 | if (_obj4) | |
3100 | { | |
3101 | _arg4 = &temp0; | |
3102 | if (! wxSize_helper(_obj4, &_arg4)) | |
3103 | return NULL; | |
3104 | } | |
3105 | if (_argo6) { | |
3106 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3107 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3109 | return NULL; | |
3110 | } | |
3111 | } | |
3112 | { | |
3113 | wxPy_BEGIN_ALLOW_THREADS; | |
3114 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
3115 | ||
3116 | wxPy_END_ALLOW_THREADS; | |
3117 | if (PyErr_Occurred()) return NULL; | |
3118 | } _resultobj = Py_BuildValue("i",_result); | |
3119 | return _resultobj; | |
3120 | } | |
3121 | ||
3122 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
3123 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3124 | PyObject * _resultobj; | |
3125 | wxPyListCtrl * _arg0; | |
3126 | PyObject * _arg1; | |
3127 | PyObject * _arg2; | |
3128 | PyObject * _argo0 = 0; | |
3129 | PyObject * _obj1 = 0; | |
3130 | PyObject * _obj2 = 0; | |
3131 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3132 | ||
3133 | self = self; | |
3134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3135 | return NULL; | |
3136 | if (_argo0) { | |
3137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); | |
3140 | return NULL; | |
3141 | } | |
3142 | } | |
3143 | { | |
3144 | _arg1 = _obj1; | |
3145 | } | |
3146 | { | |
3147 | _arg2 = _obj2; | |
3148 | } | |
3149 | { | |
3150 | wxPy_BEGIN_ALLOW_THREADS; | |
3151 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); | |
3152 | ||
3153 | wxPy_END_ALLOW_THREADS; | |
3154 | if (PyErr_Occurred()) return NULL; | |
3155 | } Py_INCREF(Py_None); | |
3156 | _resultobj = Py_None; | |
3157 | return _resultobj; | |
3158 | } | |
3159 | ||
3160 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
3161 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3162 | PyObject * _resultobj; | |
3163 | bool _result; | |
3164 | wxPyListCtrl * _arg0; | |
3165 | wxColour * _arg1; | |
3166 | PyObject * _argo0 = 0; | |
3167 | wxColour temp; | |
3168 | PyObject * _obj1 = 0; | |
3169 | char *_kwnames[] = { "self","col", NULL }; | |
3170 | ||
3171 | self = self; | |
3172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
3173 | return NULL; | |
3174 | if (_argo0) { | |
3175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
3178 | return NULL; | |
3179 | } | |
3180 | } | |
3181 | { | |
3182 | _arg1 = &temp; | |
3183 | if (! wxColour_helper(_obj1, &_arg1)) | |
3184 | return NULL; | |
3185 | } | |
3186 | { | |
3187 | wxPy_BEGIN_ALLOW_THREADS; | |
3188 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); | |
3189 | ||
3190 | wxPy_END_ALLOW_THREADS; | |
3191 | if (PyErr_Occurred()) return NULL; | |
3192 | } _resultobj = Py_BuildValue("i",_result); | |
3193 | return _resultobj; | |
3194 | } | |
3195 | ||
3196 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3197 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3198 | PyObject * _resultobj; | |
3199 | bool _result; | |
3200 | wxPyListCtrl * _arg0; | |
3201 | wxColour * _arg1; | |
3202 | PyObject * _argo0 = 0; | |
3203 | wxColour temp; | |
3204 | PyObject * _obj1 = 0; | |
3205 | char *_kwnames[] = { "self","col", NULL }; | |
3206 | ||
3207 | self = self; | |
3208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3209 | return NULL; | |
3210 | if (_argo0) { | |
3211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
3214 | return NULL; | |
3215 | } | |
3216 | } | |
3217 | { | |
3218 | _arg1 = &temp; | |
3219 | if (! wxColour_helper(_obj1, &_arg1)) | |
3220 | return NULL; | |
3221 | } | |
3222 | { | |
3223 | wxPy_BEGIN_ALLOW_THREADS; | |
3224 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
3225 | ||
3226 | wxPy_END_ALLOW_THREADS; | |
3227 | if (PyErr_Occurred()) return NULL; | |
3228 | } _resultobj = Py_BuildValue("i",_result); | |
3229 | return _resultobj; | |
3230 | } | |
3231 | ||
3232 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) | |
3233 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3234 | PyObject * _resultobj; | |
3235 | bool _result; | |
3236 | wxPyListCtrl * _arg0; | |
3237 | int _arg1; | |
3238 | wxListItem * _arg2; | |
3239 | PyObject * _argo0 = 0; | |
3240 | PyObject * _argo2 = 0; | |
3241 | char *_kwnames[] = { "self","col","item", NULL }; | |
3242 | ||
3243 | self = self; | |
3244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) | |
3245 | return NULL; | |
3246 | if (_argo0) { | |
3247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3250 | return NULL; | |
3251 | } | |
3252 | } | |
3253 | if (_argo2) { | |
3254 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3255 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
3257 | return NULL; | |
3258 | } | |
3259 | } | |
3260 | { | |
3261 | wxPy_BEGIN_ALLOW_THREADS; | |
3262 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); | |
3263 | ||
3264 | wxPy_END_ALLOW_THREADS; | |
3265 | if (PyErr_Occurred()) return NULL; | |
3266 | } _resultobj = Py_BuildValue("i",_result); | |
3267 | return _resultobj; | |
3268 | } | |
3269 | ||
3270 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
3271 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3272 | PyObject * _resultobj; | |
3273 | bool _result; | |
3274 | wxPyListCtrl * _arg0; | |
3275 | int _arg1; | |
3276 | wxListItem * _arg2; | |
3277 | PyObject * _argo0 = 0; | |
3278 | PyObject * _argo2 = 0; | |
3279 | char *_kwnames[] = { "self","col","item", NULL }; | |
3280 | ||
3281 | self = self; | |
3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) | |
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_SetColumn. Expected _wxPyListCtrl_p."); | |
3288 | return NULL; | |
3289 | } | |
3290 | } | |
3291 | if (_argo2) { | |
3292 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3293 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
3295 | return NULL; | |
3296 | } | |
3297 | } | |
3298 | { | |
3299 | wxPy_BEGIN_ALLOW_THREADS; | |
3300 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
3301 | ||
3302 | wxPy_END_ALLOW_THREADS; | |
3303 | if (PyErr_Occurred()) return NULL; | |
3304 | } _resultobj = Py_BuildValue("i",_result); | |
3305 | return _resultobj; | |
3306 | } | |
3307 | ||
3308 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
3309 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3310 | PyObject * _resultobj; | |
3311 | int _result; | |
3312 | wxPyListCtrl * _arg0; | |
3313 | int _arg1; | |
3314 | PyObject * _argo0 = 0; | |
3315 | char *_kwnames[] = { "self","col", NULL }; | |
3316 | ||
3317 | self = self; | |
3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) | |
3319 | return NULL; | |
3320 | if (_argo0) { | |
3321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
3324 | return NULL; | |
3325 | } | |
3326 | } | |
3327 | { | |
3328 | wxPy_BEGIN_ALLOW_THREADS; | |
3329 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
3330 | ||
3331 | wxPy_END_ALLOW_THREADS; | |
3332 | if (PyErr_Occurred()) return NULL; | |
3333 | } _resultobj = Py_BuildValue("i",_result); | |
3334 | return _resultobj; | |
3335 | } | |
3336 | ||
3337 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
3338 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3339 | PyObject * _resultobj; | |
3340 | bool _result; | |
3341 | wxPyListCtrl * _arg0; | |
3342 | int _arg1; | |
3343 | int _arg2; | |
3344 | PyObject * _argo0 = 0; | |
3345 | char *_kwnames[] = { "self","col","width", NULL }; | |
3346 | ||
3347 | self = self; | |
3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3349 | return NULL; | |
3350 | if (_argo0) { | |
3351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
3354 | return NULL; | |
3355 | } | |
3356 | } | |
3357 | { | |
3358 | wxPy_BEGIN_ALLOW_THREADS; | |
3359 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
3360 | ||
3361 | wxPy_END_ALLOW_THREADS; | |
3362 | if (PyErr_Occurred()) return NULL; | |
3363 | } _resultobj = Py_BuildValue("i",_result); | |
3364 | return _resultobj; | |
3365 | } | |
3366 | ||
3367 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
3368 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject * _resultobj; | |
3370 | int _result; | |
3371 | wxPyListCtrl * _arg0; | |
3372 | PyObject * _argo0 = 0; | |
3373 | char *_kwnames[] = { "self", NULL }; | |
3374 | ||
3375 | self = self; | |
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) | |
3377 | return NULL; | |
3378 | if (_argo0) { | |
3379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
3382 | return NULL; | |
3383 | } | |
3384 | } | |
3385 | { | |
3386 | wxPy_BEGIN_ALLOW_THREADS; | |
3387 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
3388 | ||
3389 | wxPy_END_ALLOW_THREADS; | |
3390 | if (PyErr_Occurred()) return NULL; | |
3391 | } _resultobj = Py_BuildValue("i",_result); | |
3392 | return _resultobj; | |
3393 | } | |
3394 | ||
3395 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { | |
3396 | wxListItem* info = new wxListItem; | |
3397 | info->m_itemId = itemId; | |
3398 | info->m_col = col; | |
3399 | info->m_mask = 0xFFFF; | |
3400 | self->GetItem(*info); | |
3401 | return info; | |
3402 | } | |
3403 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject * _resultobj; | |
3405 | wxListItem * _result; | |
3406 | wxPyListCtrl * _arg0; | |
3407 | long _arg1; | |
3408 | int _arg2 = (int ) 0; | |
3409 | PyObject * _argo0 = 0; | |
3410 | char *_kwnames[] = { "self","itemId","col", NULL }; | |
3411 | ||
3412 | self = self; | |
3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3414 | return NULL; | |
3415 | if (_argo0) { | |
3416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
3419 | return NULL; | |
3420 | } | |
3421 | } | |
3422 | { | |
3423 | wxPy_BEGIN_ALLOW_THREADS; | |
3424 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); | |
3425 | ||
3426 | wxPy_END_ALLOW_THREADS; | |
3427 | if (PyErr_Occurred()) return NULL; | |
3428 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3429 | return _resultobj; | |
3430 | } | |
3431 | ||
3432 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
3433 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject * _resultobj; | |
3435 | bool _result; | |
3436 | wxPyListCtrl * _arg0; | |
3437 | wxListItem * _arg1; | |
3438 | PyObject * _argo0 = 0; | |
3439 | PyObject * _argo1 = 0; | |
3440 | char *_kwnames[] = { "self","info", NULL }; | |
3441 | ||
3442 | self = self; | |
3443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) | |
3444 | return NULL; | |
3445 | if (_argo0) { | |
3446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3449 | return NULL; | |
3450 | } | |
3451 | } | |
3452 | if (_argo1) { | |
3453 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3454 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
3456 | return NULL; | |
3457 | } | |
3458 | } | |
3459 | { | |
3460 | wxPy_BEGIN_ALLOW_THREADS; | |
3461 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
3462 | ||
3463 | wxPy_END_ALLOW_THREADS; | |
3464 | if (PyErr_Occurred()) return NULL; | |
3465 | } _resultobj = Py_BuildValue("i",_result); | |
3466 | return _resultobj; | |
3467 | } | |
3468 | ||
3469 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3470 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3471 | PyObject * _resultobj; | |
3472 | long _result; | |
3473 | wxPyListCtrl * _arg0; | |
3474 | long _arg1; | |
3475 | int _arg2; | |
3476 | wxString * _arg3; | |
3477 | int _arg4 = (int ) -1; | |
3478 | PyObject * _argo0 = 0; | |
3479 | PyObject * _obj3 = 0; | |
3480 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
3481 | ||
3482 | self = self; | |
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
3484 | return NULL; | |
3485 | if (_argo0) { | |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
3489 | return NULL; | |
3490 | } | |
3491 | } | |
3492 | { | |
3493 | #if PYTHON_API_VERSION >= 1009 | |
3494 | char* tmpPtr; int tmpSize; | |
3495 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3496 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3497 | return NULL; | |
3498 | } | |
3499 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3500 | return NULL; | |
3501 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3502 | #else | |
3503 | if (!PyString_Check(_obj3)) { | |
3504 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3505 | return NULL; | |
3506 | } | |
3507 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3508 | #endif | |
3509 | } | |
3510 | { | |
3511 | wxPy_BEGIN_ALLOW_THREADS; | |
3512 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
3513 | ||
3514 | wxPy_END_ALLOW_THREADS; | |
3515 | if (PyErr_Occurred()) return NULL; | |
3516 | } _resultobj = Py_BuildValue("l",_result); | |
3517 | { | |
3518 | if (_obj3) | |
3519 | delete _arg3; | |
3520 | } | |
3521 | return _resultobj; | |
3522 | } | |
3523 | ||
3524 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
3525 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3526 | PyObject * _resultobj; | |
3527 | int _result; | |
3528 | wxPyListCtrl * _arg0; | |
3529 | long _arg1; | |
3530 | long _arg2; | |
3531 | PyObject * _argo0 = 0; | |
3532 | char *_kwnames[] = { "self","item","stateMask", NULL }; | |
3533 | ||
3534 | self = self; | |
3535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3536 | return NULL; | |
3537 | if (_argo0) { | |
3538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
3541 | return NULL; | |
3542 | } | |
3543 | } | |
3544 | { | |
3545 | wxPy_BEGIN_ALLOW_THREADS; | |
3546 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
3547 | ||
3548 | wxPy_END_ALLOW_THREADS; | |
3549 | if (PyErr_Occurred()) return NULL; | |
3550 | } _resultobj = Py_BuildValue("i",_result); | |
3551 | return _resultobj; | |
3552 | } | |
3553 | ||
3554 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
3555 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3556 | PyObject * _resultobj; | |
3557 | bool _result; | |
3558 | wxPyListCtrl * _arg0; | |
3559 | long _arg1; | |
3560 | long _arg2; | |
3561 | long _arg3; | |
3562 | PyObject * _argo0 = 0; | |
3563 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; | |
3564 | ||
3565 | self = self; | |
3566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3567 | return NULL; | |
3568 | if (_argo0) { | |
3569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
3572 | return NULL; | |
3573 | } | |
3574 | } | |
3575 | { | |
3576 | wxPy_BEGIN_ALLOW_THREADS; | |
3577 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
3578 | ||
3579 | wxPy_END_ALLOW_THREADS; | |
3580 | if (PyErr_Occurred()) return NULL; | |
3581 | } _resultobj = Py_BuildValue("i",_result); | |
3582 | return _resultobj; | |
3583 | } | |
3584 | ||
3585 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
3586 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3587 | PyObject * _resultobj; | |
3588 | bool _result; | |
3589 | wxPyListCtrl * _arg0; | |
3590 | long _arg1; | |
3591 | int _arg2; | |
3592 | int _arg3; | |
3593 | PyObject * _argo0 = 0; | |
3594 | char *_kwnames[] = { "self","item","image","selImage", NULL }; | |
3595 | ||
3596 | self = self; | |
3597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3598 | return NULL; | |
3599 | if (_argo0) { | |
3600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
3603 | return NULL; | |
3604 | } | |
3605 | } | |
3606 | { | |
3607 | wxPy_BEGIN_ALLOW_THREADS; | |
3608 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
3609 | ||
3610 | wxPy_END_ALLOW_THREADS; | |
3611 | if (PyErr_Occurred()) return NULL; | |
3612 | } _resultobj = Py_BuildValue("i",_result); | |
3613 | return _resultobj; | |
3614 | } | |
3615 | ||
3616 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
3617 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3618 | PyObject * _resultobj; | |
3619 | wxString * _result; | |
3620 | wxPyListCtrl * _arg0; | |
3621 | long _arg1; | |
3622 | PyObject * _argo0 = 0; | |
3623 | char *_kwnames[] = { "self","item", NULL }; | |
3624 | ||
3625 | self = self; | |
3626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) | |
3627 | return NULL; | |
3628 | if (_argo0) { | |
3629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
3632 | return NULL; | |
3633 | } | |
3634 | } | |
3635 | { | |
3636 | wxPy_BEGIN_ALLOW_THREADS; | |
3637 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
3638 | ||
3639 | wxPy_END_ALLOW_THREADS; | |
3640 | if (PyErr_Occurred()) return NULL; | |
3641 | }{ | |
3642 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3643 | } | |
3644 | { | |
3645 | delete _result; | |
3646 | } | |
3647 | return _resultobj; | |
3648 | } | |
3649 | ||
3650 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
3651 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3652 | PyObject * _resultobj; | |
3653 | wxPyListCtrl * _arg0; | |
3654 | long _arg1; | |
3655 | wxString * _arg2; | |
3656 | PyObject * _argo0 = 0; | |
3657 | PyObject * _obj2 = 0; | |
3658 | char *_kwnames[] = { "self","item","str", NULL }; | |
3659 | ||
3660 | self = self; | |
3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3662 | return NULL; | |
3663 | if (_argo0) { | |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
3667 | return NULL; | |
3668 | } | |
3669 | } | |
3670 | { | |
3671 | #if PYTHON_API_VERSION >= 1009 | |
3672 | char* tmpPtr; int tmpSize; | |
3673 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3674 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3675 | return NULL; | |
3676 | } | |
3677 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3678 | return NULL; | |
3679 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3680 | #else | |
3681 | if (!PyString_Check(_obj2)) { | |
3682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3683 | return NULL; | |
3684 | } | |
3685 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3686 | #endif | |
3687 | } | |
3688 | { | |
3689 | wxPy_BEGIN_ALLOW_THREADS; | |
3690 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
3691 | ||
3692 | wxPy_END_ALLOW_THREADS; | |
3693 | if (PyErr_Occurred()) return NULL; | |
3694 | } Py_INCREF(Py_None); | |
3695 | _resultobj = Py_None; | |
3696 | { | |
3697 | if (_obj2) | |
3698 | delete _arg2; | |
3699 | } | |
3700 | return _resultobj; | |
3701 | } | |
3702 | ||
3703 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
3704 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject * _resultobj; | |
3706 | long _result; | |
3707 | wxPyListCtrl * _arg0; | |
3708 | long _arg1; | |
3709 | PyObject * _argo0 = 0; | |
3710 | char *_kwnames[] = { "self","item", NULL }; | |
3711 | ||
3712 | self = self; | |
3713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) | |
3714 | return NULL; | |
3715 | if (_argo0) { | |
3716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
3719 | return NULL; | |
3720 | } | |
3721 | } | |
3722 | { | |
3723 | wxPy_BEGIN_ALLOW_THREADS; | |
3724 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3725 | ||
3726 | wxPy_END_ALLOW_THREADS; | |
3727 | if (PyErr_Occurred()) return NULL; | |
3728 | } _resultobj = Py_BuildValue("l",_result); | |
3729 | return _resultobj; | |
3730 | } | |
3731 | ||
3732 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
3733 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3734 | PyObject * _resultobj; | |
3735 | bool _result; | |
3736 | wxPyListCtrl * _arg0; | |
3737 | long _arg1; | |
3738 | long _arg2; | |
3739 | PyObject * _argo0 = 0; | |
3740 | char *_kwnames[] = { "self","item","data", NULL }; | |
3741 | ||
3742 | self = self; | |
3743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3744 | return NULL; | |
3745 | if (_argo0) { | |
3746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
3749 | return NULL; | |
3750 | } | |
3751 | } | |
3752 | { | |
3753 | wxPy_BEGIN_ALLOW_THREADS; | |
3754 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
3755 | ||
3756 | wxPy_END_ALLOW_THREADS; | |
3757 | if (PyErr_Occurred()) return NULL; | |
3758 | } _resultobj = Py_BuildValue("i",_result); | |
3759 | return _resultobj; | |
3760 | } | |
3761 | ||
3762 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { | |
3763 | wxPoint* pos = new wxPoint; | |
3764 | self->GetItemPosition(item, *pos); | |
3765 | return pos; | |
3766 | } | |
3767 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3768 | PyObject * _resultobj; | |
3769 | wxPoint * _result; | |
3770 | wxPyListCtrl * _arg0; | |
3771 | long _arg1; | |
3772 | PyObject * _argo0 = 0; | |
3773 | char *_kwnames[] = { "self","item", NULL }; | |
3774 | char _ptemp[128]; | |
3775 | ||
3776 | self = self; | |
3777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) | |
3778 | return NULL; | |
3779 | if (_argo0) { | |
3780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
3783 | return NULL; | |
3784 | } | |
3785 | } | |
3786 | { | |
3787 | wxPy_BEGIN_ALLOW_THREADS; | |
3788 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); | |
3789 | ||
3790 | wxPy_END_ALLOW_THREADS; | |
3791 | if (PyErr_Occurred()) return NULL; | |
3792 | } if (_result) { | |
3793 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3794 | _resultobj = Py_BuildValue("s",_ptemp); | |
3795 | } else { | |
3796 | Py_INCREF(Py_None); | |
3797 | _resultobj = Py_None; | |
3798 | } | |
3799 | return _resultobj; | |
3800 | } | |
3801 | ||
3802 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { | |
3803 | wxRect* rect= new wxRect; | |
3804 | self->GetItemRect(item, *rect, code); | |
3805 | return rect; | |
3806 | } | |
3807 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3808 | PyObject * _resultobj; | |
3809 | wxRect * _result; | |
3810 | wxPyListCtrl * _arg0; | |
3811 | long _arg1; | |
3812 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); | |
3813 | PyObject * _argo0 = 0; | |
3814 | char *_kwnames[] = { "self","item","code", NULL }; | |
3815 | char _ptemp[128]; | |
3816 | ||
3817 | self = self; | |
3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3819 | return NULL; | |
3820 | if (_argo0) { | |
3821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
3824 | return NULL; | |
3825 | } | |
3826 | } | |
3827 | { | |
3828 | wxPy_BEGIN_ALLOW_THREADS; | |
3829 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
3830 | ||
3831 | wxPy_END_ALLOW_THREADS; | |
3832 | if (PyErr_Occurred()) return NULL; | |
3833 | } if (_result) { | |
3834 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3835 | _resultobj = Py_BuildValue("s",_ptemp); | |
3836 | } else { | |
3837 | Py_INCREF(Py_None); | |
3838 | _resultobj = Py_None; | |
3839 | } | |
3840 | return _resultobj; | |
3841 | } | |
3842 | ||
3843 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
3844 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3845 | PyObject * _resultobj; | |
3846 | bool _result; | |
3847 | wxPyListCtrl * _arg0; | |
3848 | long _arg1; | |
3849 | wxPoint * _arg2; | |
3850 | PyObject * _argo0 = 0; | |
3851 | wxPoint temp; | |
3852 | PyObject * _obj2 = 0; | |
3853 | char *_kwnames[] = { "self","item","pos", NULL }; | |
3854 | ||
3855 | self = self; | |
3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3857 | return NULL; | |
3858 | if (_argo0) { | |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
3865 | { | |
3866 | _arg2 = &temp; | |
3867 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3868 | return NULL; | |
3869 | } | |
3870 | { | |
3871 | wxPy_BEGIN_ALLOW_THREADS; | |
3872 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
3873 | ||
3874 | wxPy_END_ALLOW_THREADS; | |
3875 | if (PyErr_Occurred()) return NULL; | |
3876 | } _resultobj = Py_BuildValue("i",_result); | |
3877 | return _resultobj; | |
3878 | } | |
3879 | ||
3880 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
3881 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3882 | PyObject * _resultobj; | |
3883 | int _result; | |
3884 | wxPyListCtrl * _arg0; | |
3885 | PyObject * _argo0 = 0; | |
3886 | char *_kwnames[] = { "self", NULL }; | |
3887 | ||
3888 | self = self; | |
3889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) | |
3890 | return NULL; | |
3891 | if (_argo0) { | |
3892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
3895 | return NULL; | |
3896 | } | |
3897 | } | |
3898 | { | |
3899 | wxPy_BEGIN_ALLOW_THREADS; | |
3900 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3901 | ||
3902 | wxPy_END_ALLOW_THREADS; | |
3903 | if (PyErr_Occurred()) return NULL; | |
3904 | } _resultobj = Py_BuildValue("i",_result); | |
3905 | return _resultobj; | |
3906 | } | |
3907 | ||
3908 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) | |
3909 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3910 | PyObject * _resultobj; | |
3911 | int _result; | |
3912 | wxPyListCtrl * _arg0; | |
3913 | PyObject * _argo0 = 0; | |
3914 | char *_kwnames[] = { "self", NULL }; | |
3915 | ||
3916 | self = self; | |
3917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3918 | return NULL; | |
3919 | if (_argo0) { | |
3920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3923 | return NULL; | |
3924 | } | |
3925 | } | |
3926 | { | |
3927 | wxPy_BEGIN_ALLOW_THREADS; | |
3928 | _result = (int )wxListCtrl_GetColumnCount(_arg0); | |
3929 | ||
3930 | wxPy_END_ALLOW_THREADS; | |
3931 | if (PyErr_Occurred()) return NULL; | |
3932 | } _resultobj = Py_BuildValue("i",_result); | |
3933 | return _resultobj; | |
3934 | } | |
3935 | ||
3936 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
3937 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3938 | PyObject * _resultobj; | |
3939 | int _result; | |
3940 | wxPyListCtrl * _arg0; | |
3941 | bool _arg1; | |
3942 | PyObject * _argo0 = 0; | |
3943 | int tempbool1; | |
3944 | char *_kwnames[] = { "self","isSmall", NULL }; | |
3945 | ||
3946 | self = self; | |
3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) | |
3948 | return NULL; | |
3949 | if (_argo0) { | |
3950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
3953 | return NULL; | |
3954 | } | |
3955 | } | |
3956 | _arg1 = (bool ) tempbool1; | |
3957 | { | |
3958 | wxPy_BEGIN_ALLOW_THREADS; | |
3959 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3960 | ||
3961 | wxPy_END_ALLOW_THREADS; | |
3962 | if (PyErr_Occurred()) return NULL; | |
3963 | } _resultobj = Py_BuildValue("i",_result); | |
3964 | return _resultobj; | |
3965 | } | |
3966 | ||
3967 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
3968 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3969 | PyObject * _resultobj; | |
3970 | int _result; | |
3971 | wxPyListCtrl * _arg0; | |
3972 | PyObject * _argo0 = 0; | |
3973 | char *_kwnames[] = { "self", NULL }; | |
3974 | ||
3975 | self = self; | |
3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) | |
3977 | return NULL; | |
3978 | if (_argo0) { | |
3979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
3982 | return NULL; | |
3983 | } | |
3984 | } | |
3985 | { | |
3986 | wxPy_BEGIN_ALLOW_THREADS; | |
3987 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
3988 | ||
3989 | wxPy_END_ALLOW_THREADS; | |
3990 | if (PyErr_Occurred()) return NULL; | |
3991 | } _resultobj = Py_BuildValue("i",_result); | |
3992 | return _resultobj; | |
3993 | } | |
3994 | ||
3995 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
3996 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3997 | PyObject * _resultobj; | |
3998 | wxColour * _result; | |
3999 | wxPyListCtrl * _arg0; | |
4000 | PyObject * _argo0 = 0; | |
4001 | char *_kwnames[] = { "self", NULL }; | |
4002 | char _ptemp[128]; | |
4003 | ||
4004 | self = self; | |
4005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) | |
4006 | return NULL; | |
4007 | if (_argo0) { | |
4008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
4011 | return NULL; | |
4012 | } | |
4013 | } | |
4014 | { | |
4015 | wxPy_BEGIN_ALLOW_THREADS; | |
4016 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
4017 | ||
4018 | wxPy_END_ALLOW_THREADS; | |
4019 | if (PyErr_Occurred()) return NULL; | |
4020 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4021 | _resultobj = Py_BuildValue("s",_ptemp); | |
4022 | return _resultobj; | |
4023 | } | |
4024 | ||
4025 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
4026 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4027 | PyObject * _resultobj; | |
4028 | wxPyListCtrl * _arg0; | |
4029 | wxColour * _arg1; | |
4030 | PyObject * _argo0 = 0; | |
4031 | wxColour temp; | |
4032 | PyObject * _obj1 = 0; | |
4033 | char *_kwnames[] = { "self","col", NULL }; | |
4034 | ||
4035 | self = self; | |
4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
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_SetTextColour. Expected _wxPyListCtrl_p."); | |
4042 | return NULL; | |
4043 | } | |
4044 | } | |
4045 | { | |
4046 | _arg1 = &temp; | |
4047 | if (! wxColour_helper(_obj1, &_arg1)) | |
4048 | return NULL; | |
4049 | } | |
4050 | { | |
4051 | wxPy_BEGIN_ALLOW_THREADS; | |
4052 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
4053 | ||
4054 | wxPy_END_ALLOW_THREADS; | |
4055 | if (PyErr_Occurred()) return NULL; | |
4056 | } Py_INCREF(Py_None); | |
4057 | _resultobj = Py_None; | |
4058 | return _resultobj; | |
4059 | } | |
4060 | ||
4061 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) | |
4062 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4063 | PyObject * _resultobj; | |
4064 | long _result; | |
4065 | wxPyListCtrl * _arg0; | |
4066 | PyObject * _argo0 = 0; | |
4067 | char *_kwnames[] = { "self", NULL }; | |
4068 | ||
4069 | self = self; | |
4070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) | |
4071 | return NULL; | |
4072 | if (_argo0) { | |
4073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
4076 | return NULL; | |
4077 | } | |
4078 | } | |
4079 | { | |
4080 | wxPy_BEGIN_ALLOW_THREADS; | |
4081 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
4082 | ||
4083 | wxPy_END_ALLOW_THREADS; | |
4084 | if (PyErr_Occurred()) return NULL; | |
4085 | } _resultobj = Py_BuildValue("l",_result); | |
4086 | return _resultobj; | |
4087 | } | |
4088 | ||
4089 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
4090 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4091 | PyObject * _resultobj; | |
4092 | wxPyListCtrl * _arg0; | |
4093 | long _arg1; | |
4094 | bool _arg2 = (bool ) TRUE; | |
4095 | PyObject * _argo0 = 0; | |
4096 | int tempbool2 = (int) TRUE; | |
4097 | char *_kwnames[] = { "self","style","add", NULL }; | |
4098 | ||
4099 | self = self; | |
4100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
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_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4106 | return NULL; | |
4107 | } | |
4108 | } | |
4109 | _arg2 = (bool ) tempbool2; | |
4110 | { | |
4111 | wxPy_BEGIN_ALLOW_THREADS; | |
4112 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4113 | ||
4114 | wxPy_END_ALLOW_THREADS; | |
4115 | if (PyErr_Occurred()) return NULL; | |
4116 | } Py_INCREF(Py_None); | |
4117 | _resultobj = Py_None; | |
4118 | return _resultobj; | |
4119 | } | |
4120 | ||
4121 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4122 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4123 | PyObject * _resultobj; | |
4124 | wxPyListCtrl * _arg0; | |
4125 | long _arg1; | |
4126 | PyObject * _argo0 = 0; | |
4127 | char *_kwnames[] = { "self","style", NULL }; | |
4128 | ||
4129 | self = self; | |
4130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
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_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
4136 | return NULL; | |
4137 | } | |
4138 | } | |
4139 | { | |
4140 | wxPy_BEGIN_ALLOW_THREADS; | |
4141 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4142 | ||
4143 | wxPy_END_ALLOW_THREADS; | |
4144 | if (PyErr_Occurred()) return NULL; | |
4145 | } Py_INCREF(Py_None); | |
4146 | _resultobj = Py_None; | |
4147 | return _resultobj; | |
4148 | } | |
4149 | ||
4150 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4151 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject * _resultobj; | |
4153 | long _result; | |
4154 | wxPyListCtrl * _arg0; | |
4155 | long _arg1; | |
4156 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4157 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4158 | PyObject * _argo0 = 0; | |
4159 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4160 | ||
4161 | self = self; | |
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4163 | return NULL; | |
4164 | if (_argo0) { | |
4165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4168 | return NULL; | |
4169 | } | |
4170 | } | |
4171 | { | |
4172 | wxPy_BEGIN_ALLOW_THREADS; | |
4173 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
4174 | ||
4175 | wxPy_END_ALLOW_THREADS; | |
4176 | if (PyErr_Occurred()) return NULL; | |
4177 | } _resultobj = Py_BuildValue("l",_result); | |
4178 | return _resultobj; | |
4179 | } | |
4180 | ||
4181 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4182 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4183 | PyObject * _resultobj; | |
4184 | wxImageList * _result; | |
4185 | wxPyListCtrl * _arg0; | |
4186 | int _arg1; | |
4187 | PyObject * _argo0 = 0; | |
4188 | char *_kwnames[] = { "self","which", NULL }; | |
4189 | ||
4190 | self = self; | |
4191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4192 | return NULL; | |
4193 | if (_argo0) { | |
4194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4197 | return NULL; | |
4198 | } | |
4199 | } | |
4200 | { | |
4201 | wxPy_BEGIN_ALLOW_THREADS; | |
4202 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
4203 | ||
4204 | wxPy_END_ALLOW_THREADS; | |
4205 | if (PyErr_Occurred()) return NULL; | |
4206 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4207 | return _resultobj; | |
4208 | } | |
4209 | ||
4210 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
4211 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4212 | PyObject * _resultobj; | |
4213 | wxPyListCtrl * _arg0; | |
4214 | wxImageList * _arg1; | |
4215 | int _arg2; | |
4216 | PyObject * _argo0 = 0; | |
4217 | PyObject * _argo1 = 0; | |
4218 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
4219 | ||
4220 | self = self; | |
4221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4222 | return NULL; | |
4223 | if (_argo0) { | |
4224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
4227 | return NULL; | |
4228 | } | |
4229 | } | |
4230 | if (_argo1) { | |
4231 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4232 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
4234 | return NULL; | |
4235 | } | |
4236 | } | |
4237 | { | |
4238 | wxPy_BEGIN_ALLOW_THREADS; | |
4239 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
4240 | ||
4241 | wxPy_END_ALLOW_THREADS; | |
4242 | if (PyErr_Occurred()) return NULL; | |
4243 | } Py_INCREF(Py_None); | |
4244 | _resultobj = Py_None; | |
4245 | return _resultobj; | |
4246 | } | |
4247 | ||
4248 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) | |
4249 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4250 | PyObject * _resultobj; | |
4251 | wxPyListCtrl * _arg0; | |
4252 | wxImageList * _arg1; | |
4253 | int _arg2; | |
4254 | PyObject * _argo0 = 0; | |
4255 | PyObject * _argo1 = 0; | |
4256 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
4257 | ||
4258 | self = self; | |
4259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4260 | return NULL; | |
4261 | if (_argo0) { | |
4262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
4265 | return NULL; | |
4266 | } | |
4267 | } | |
4268 | if (_argo1) { | |
4269 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4270 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
4272 | return NULL; | |
4273 | } | |
4274 | } | |
4275 | { | |
4276 | wxPy_BEGIN_ALLOW_THREADS; | |
4277 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
4278 | ||
4279 | wxPy_END_ALLOW_THREADS; | |
4280 | if (PyErr_Occurred()) return NULL; | |
4281 | } Py_INCREF(Py_None); | |
4282 | _resultobj = Py_None; | |
4283 | return _resultobj; | |
4284 | } | |
4285 | ||
4286 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4287 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4288 | PyObject * _resultobj; | |
4289 | bool _result; | |
4290 | wxPyListCtrl * _arg0; | |
4291 | PyObject * _argo0 = 0; | |
4292 | char *_kwnames[] = { "self", NULL }; | |
4293 | ||
4294 | self = self; | |
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
4296 | return NULL; | |
4297 | if (_argo0) { | |
4298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
4301 | return NULL; | |
4302 | } | |
4303 | } | |
4304 | { | |
4305 | wxPy_BEGIN_ALLOW_THREADS; | |
4306 | _result = (bool )wxListCtrl_IsVirtual(_arg0); | |
4307 | ||
4308 | wxPy_END_ALLOW_THREADS; | |
4309 | if (PyErr_Occurred()) return NULL; | |
4310 | } _resultobj = Py_BuildValue("i",_result); | |
4311 | return _resultobj; | |
4312 | } | |
4313 | ||
4314 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4315 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4316 | PyObject * _resultobj; | |
4317 | wxPyListCtrl * _arg0; | |
4318 | long _arg1; | |
4319 | PyObject * _argo0 = 0; | |
4320 | char *_kwnames[] = { "self","item", NULL }; | |
4321 | ||
4322 | self = self; | |
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4324 | return NULL; | |
4325 | if (_argo0) { | |
4326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4329 | return NULL; | |
4330 | } | |
4331 | } | |
4332 | { | |
4333 | wxPy_BEGIN_ALLOW_THREADS; | |
4334 | wxListCtrl_RefreshItem(_arg0,_arg1); | |
4335 | ||
4336 | wxPy_END_ALLOW_THREADS; | |
4337 | if (PyErr_Occurred()) return NULL; | |
4338 | } Py_INCREF(Py_None); | |
4339 | _resultobj = Py_None; | |
4340 | return _resultobj; | |
4341 | } | |
4342 | ||
4343 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) | |
4344 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4345 | PyObject * _resultobj; | |
4346 | wxPyListCtrl * _arg0; | |
4347 | long _arg1; | |
4348 | long _arg2; | |
4349 | PyObject * _argo0 = 0; | |
4350 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; | |
4351 | ||
4352 | self = self; | |
4353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4354 | return NULL; | |
4355 | if (_argo0) { | |
4356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
4359 | return NULL; | |
4360 | } | |
4361 | } | |
4362 | { | |
4363 | wxPy_BEGIN_ALLOW_THREADS; | |
4364 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); | |
4365 | ||
4366 | wxPy_END_ALLOW_THREADS; | |
4367 | if (PyErr_Occurred()) return NULL; | |
4368 | } Py_INCREF(Py_None); | |
4369 | _resultobj = Py_None; | |
4370 | return _resultobj; | |
4371 | } | |
4372 | ||
4373 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4374 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4375 | PyObject * _resultobj; | |
4376 | bool _result; | |
4377 | wxPyListCtrl * _arg0; | |
4378 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4379 | PyObject * _argo0 = 0; | |
4380 | char *_kwnames[] = { "self","flag", NULL }; | |
4381 | ||
4382 | self = self; | |
4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4384 | return NULL; | |
4385 | if (_argo0) { | |
4386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
4389 | return NULL; | |
4390 | } | |
4391 | } | |
4392 | { | |
4393 | wxPy_BEGIN_ALLOW_THREADS; | |
4394 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
4395 | ||
4396 | wxPy_END_ALLOW_THREADS; | |
4397 | if (PyErr_Occurred()) return NULL; | |
4398 | } _resultobj = Py_BuildValue("i",_result); | |
4399 | return _resultobj; | |
4400 | } | |
4401 | ||
4402 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) | |
4403 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4404 | PyObject * _resultobj; | |
4405 | bool _result; | |
4406 | wxPyListCtrl * _arg0; | |
4407 | long _arg1; | |
4408 | PyObject * _argo0 = 0; | |
4409 | char *_kwnames[] = { "self","item", NULL }; | |
4410 | ||
4411 | self = self; | |
4412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) | |
4413 | return NULL; | |
4414 | if (_argo0) { | |
4415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
4418 | return NULL; | |
4419 | } | |
4420 | } | |
4421 | { | |
4422 | wxPy_BEGIN_ALLOW_THREADS; | |
4423 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
4424 | ||
4425 | wxPy_END_ALLOW_THREADS; | |
4426 | if (PyErr_Occurred()) return NULL; | |
4427 | } _resultobj = Py_BuildValue("i",_result); | |
4428 | return _resultobj; | |
4429 | } | |
4430 | ||
4431 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4432 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4433 | PyObject * _resultobj; | |
4434 | bool _result; | |
4435 | wxPyListCtrl * _arg0; | |
4436 | PyObject * _argo0 = 0; | |
4437 | char *_kwnames[] = { "self", NULL }; | |
4438 | ||
4439 | self = self; | |
4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4441 | return NULL; | |
4442 | if (_argo0) { | |
4443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
4446 | return NULL; | |
4447 | } | |
4448 | } | |
4449 | { | |
4450 | wxPy_BEGIN_ALLOW_THREADS; | |
4451 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
4452 | ||
4453 | wxPy_END_ALLOW_THREADS; | |
4454 | if (PyErr_Occurred()) return NULL; | |
4455 | } _resultobj = Py_BuildValue("i",_result); | |
4456 | return _resultobj; | |
4457 | } | |
4458 | ||
4459 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4460 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4461 | PyObject * _resultobj; | |
4462 | bool _result; | |
4463 | wxPyListCtrl * _arg0; | |
4464 | int _arg1; | |
4465 | PyObject * _argo0 = 0; | |
4466 | char *_kwnames[] = { "self","col", NULL }; | |
4467 | ||
4468 | self = self; | |
4469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
4470 | return NULL; | |
4471 | if (_argo0) { | |
4472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4475 | return NULL; | |
4476 | } | |
4477 | } | |
4478 | { | |
4479 | wxPy_BEGIN_ALLOW_THREADS; | |
4480 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
4481 | ||
4482 | wxPy_END_ALLOW_THREADS; | |
4483 | if (PyErr_Occurred()) return NULL; | |
4484 | } _resultobj = Py_BuildValue("i",_result); | |
4485 | return _resultobj; | |
4486 | } | |
4487 | ||
4488 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4489 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject * _resultobj; | |
4491 | bool _result; | |
4492 | wxPyListCtrl * _arg0; | |
4493 | PyObject * _argo0 = 0; | |
4494 | char *_kwnames[] = { "self", NULL }; | |
4495 | ||
4496 | self = self; | |
4497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
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_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4503 | return NULL; | |
4504 | } | |
4505 | } | |
4506 | { | |
4507 | wxPy_BEGIN_ALLOW_THREADS; | |
4508 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
4509 | ||
4510 | wxPy_END_ALLOW_THREADS; | |
4511 | if (PyErr_Occurred()) return NULL; | |
4512 | } _resultobj = Py_BuildValue("i",_result); | |
4513 | return _resultobj; | |
4514 | } | |
4515 | ||
4516 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4517 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4518 | PyObject * _resultobj; | |
4519 | wxPyListCtrl * _arg0; | |
4520 | PyObject * _argo0 = 0; | |
4521 | char *_kwnames[] = { "self", NULL }; | |
4522 | ||
4523 | self = self; | |
4524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4525 | return NULL; | |
4526 | if (_argo0) { | |
4527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4530 | return NULL; | |
4531 | } | |
4532 | } | |
4533 | { | |
4534 | wxPy_BEGIN_ALLOW_THREADS; | |
4535 | wxListCtrl_ClearAll(_arg0); | |
4536 | ||
4537 | wxPy_END_ALLOW_THREADS; | |
4538 | if (PyErr_Occurred()) return NULL; | |
4539 | } Py_INCREF(Py_None); | |
4540 | _resultobj = Py_None; | |
4541 | return _resultobj; | |
4542 | } | |
4543 | ||
4544 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4545 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4546 | PyObject * _resultobj; | |
4547 | bool _result; | |
4548 | wxPyListCtrl * _arg0; | |
4549 | long _arg1; | |
4550 | PyObject * _argo0 = 0; | |
4551 | char *_kwnames[] = { "self","item", NULL }; | |
4552 | ||
4553 | self = self; | |
4554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4555 | return NULL; | |
4556 | if (_argo0) { | |
4557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
4560 | return NULL; | |
4561 | } | |
4562 | } | |
4563 | { | |
4564 | wxPy_BEGIN_ALLOW_THREADS; | |
4565 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
4566 | ||
4567 | wxPy_END_ALLOW_THREADS; | |
4568 | if (PyErr_Occurred()) return NULL; | |
4569 | } _resultobj = Py_BuildValue("i",_result); | |
4570 | return _resultobj; | |
4571 | } | |
4572 | ||
4573 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
4574 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4575 | PyObject * _resultobj; | |
4576 | long _result; | |
4577 | wxPyListCtrl * _arg0; | |
4578 | long _arg1; | |
4579 | wxString * _arg2; | |
4580 | bool _arg3 = (bool ) FALSE; | |
4581 | PyObject * _argo0 = 0; | |
4582 | PyObject * _obj2 = 0; | |
4583 | int tempbool3 = (int) FALSE; | |
4584 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
4585 | ||
4586 | self = self; | |
4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) | |
4588 | return NULL; | |
4589 | if (_argo0) { | |
4590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
4593 | return NULL; | |
4594 | } | |
4595 | } | |
4596 | { | |
4597 | #if PYTHON_API_VERSION >= 1009 | |
4598 | char* tmpPtr; int tmpSize; | |
4599 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4600 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4601 | return NULL; | |
4602 | } | |
4603 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4604 | return NULL; | |
4605 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4606 | #else | |
4607 | if (!PyString_Check(_obj2)) { | |
4608 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4609 | return NULL; | |
4610 | } | |
4611 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4612 | #endif | |
4613 | } | |
4614 | _arg3 = (bool ) tempbool3; | |
4615 | { | |
4616 | wxPy_BEGIN_ALLOW_THREADS; | |
4617 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
4618 | ||
4619 | wxPy_END_ALLOW_THREADS; | |
4620 | if (PyErr_Occurred()) return NULL; | |
4621 | } _resultobj = Py_BuildValue("l",_result); | |
4622 | { | |
4623 | if (_obj2) | |
4624 | delete _arg2; | |
4625 | } | |
4626 | return _resultobj; | |
4627 | } | |
4628 | ||
4629 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
4630 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4631 | PyObject * _resultobj; | |
4632 | long _result; | |
4633 | wxPyListCtrl * _arg0; | |
4634 | long _arg1; | |
4635 | long _arg2; | |
4636 | PyObject * _argo0 = 0; | |
4637 | char *_kwnames[] = { "self","start","data", NULL }; | |
4638 | ||
4639 | self = self; | |
4640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4641 | return NULL; | |
4642 | if (_argo0) { | |
4643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
4646 | return NULL; | |
4647 | } | |
4648 | } | |
4649 | { | |
4650 | wxPy_BEGIN_ALLOW_THREADS; | |
4651 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
4652 | ||
4653 | wxPy_END_ALLOW_THREADS; | |
4654 | if (PyErr_Occurred()) return NULL; | |
4655 | } _resultobj = Py_BuildValue("l",_result); | |
4656 | return _resultobj; | |
4657 | } | |
4658 | ||
4659 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
4660 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4661 | PyObject * _resultobj; | |
4662 | long _result; | |
4663 | wxPyListCtrl * _arg0; | |
4664 | long _arg1; | |
4665 | wxPoint * _arg2; | |
4666 | int _arg3; | |
4667 | PyObject * _argo0 = 0; | |
4668 | wxPoint temp; | |
4669 | PyObject * _obj2 = 0; | |
4670 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4671 | ||
4672 | self = self; | |
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4674 | return NULL; | |
4675 | if (_argo0) { | |
4676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4679 | return NULL; | |
4680 | } | |
4681 | } | |
4682 | { | |
4683 | _arg2 = &temp; | |
4684 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4685 | return NULL; | |
4686 | } | |
4687 | { | |
4688 | wxPy_BEGIN_ALLOW_THREADS; | |
4689 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
4690 | ||
4691 | wxPy_END_ALLOW_THREADS; | |
4692 | if (PyErr_Occurred()) return NULL; | |
4693 | } _resultobj = Py_BuildValue("l",_result); | |
4694 | return _resultobj; | |
4695 | } | |
4696 | ||
4697 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4698 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4699 | PyObject * _resultobj; | |
4700 | long _result; | |
4701 | wxPyListCtrl * _arg0; | |
4702 | wxPoint * _arg1; | |
4703 | int * _arg2; | |
4704 | int temp; | |
4705 | PyObject * _argo0 = 0; | |
4706 | wxPoint temp0; | |
4707 | PyObject * _obj1 = 0; | |
4708 | char *_kwnames[] = { "self","point", NULL }; | |
4709 | ||
4710 | self = self; | |
4711 | { | |
4712 | _arg2 = &temp; | |
4713 | } | |
4714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4715 | return NULL; | |
4716 | if (_argo0) { | |
4717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4720 | return NULL; | |
4721 | } | |
4722 | } | |
4723 | { | |
4724 | _arg1 = &temp0; | |
4725 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4726 | return NULL; | |
4727 | } | |
4728 | { | |
4729 | wxPy_BEGIN_ALLOW_THREADS; | |
4730 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
4731 | ||
4732 | wxPy_END_ALLOW_THREADS; | |
4733 | if (PyErr_Occurred()) return NULL; | |
4734 | } _resultobj = Py_BuildValue("l",_result); | |
4735 | { | |
4736 | PyObject *o; | |
4737 | o = PyInt_FromLong((long) (*_arg2)); | |
4738 | _resultobj = t_output_helper(_resultobj, o); | |
4739 | } | |
4740 | return _resultobj; | |
4741 | } | |
4742 | ||
4743 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4744 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4745 | PyObject * _resultobj; | |
4746 | long _result; | |
4747 | wxPyListCtrl * _arg0; | |
4748 | wxListItem * _arg1; | |
4749 | PyObject * _argo0 = 0; | |
4750 | PyObject * _argo1 = 0; | |
4751 | char *_kwnames[] = { "self","info", NULL }; | |
4752 | ||
4753 | self = self; | |
4754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4755 | return NULL; | |
4756 | if (_argo0) { | |
4757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4760 | return NULL; | |
4761 | } | |
4762 | } | |
4763 | if (_argo1) { | |
4764 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4765 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4767 | return NULL; | |
4768 | } | |
4769 | } | |
4770 | { | |
4771 | wxPy_BEGIN_ALLOW_THREADS; | |
4772 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
4773 | ||
4774 | wxPy_END_ALLOW_THREADS; | |
4775 | if (PyErr_Occurred()) return NULL; | |
4776 | } _resultobj = Py_BuildValue("l",_result); | |
4777 | return _resultobj; | |
4778 | } | |
4779 | ||
4780 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4781 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4782 | PyObject * _resultobj; | |
4783 | long _result; | |
4784 | wxPyListCtrl * _arg0; | |
4785 | long _arg1; | |
4786 | wxString * _arg2; | |
4787 | PyObject * _argo0 = 0; | |
4788 | PyObject * _obj2 = 0; | |
4789 | char *_kwnames[] = { "self","index","label", NULL }; | |
4790 | ||
4791 | self = self; | |
4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4793 | return NULL; | |
4794 | if (_argo0) { | |
4795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4798 | return NULL; | |
4799 | } | |
4800 | } | |
4801 | { | |
4802 | #if PYTHON_API_VERSION >= 1009 | |
4803 | char* tmpPtr; int tmpSize; | |
4804 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4805 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4806 | return NULL; | |
4807 | } | |
4808 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4809 | return NULL; | |
4810 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4811 | #else | |
4812 | if (!PyString_Check(_obj2)) { | |
4813 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4814 | return NULL; | |
4815 | } | |
4816 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4817 | #endif | |
4818 | } | |
4819 | { | |
4820 | wxPy_BEGIN_ALLOW_THREADS; | |
4821 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
4822 | ||
4823 | wxPy_END_ALLOW_THREADS; | |
4824 | if (PyErr_Occurred()) return NULL; | |
4825 | } _resultobj = Py_BuildValue("l",_result); | |
4826 | { | |
4827 | if (_obj2) | |
4828 | delete _arg2; | |
4829 | } | |
4830 | return _resultobj; | |
4831 | } | |
4832 | ||
4833 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4834 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4835 | PyObject * _resultobj; | |
4836 | long _result; | |
4837 | wxPyListCtrl * _arg0; | |
4838 | long _arg1; | |
4839 | int _arg2; | |
4840 | PyObject * _argo0 = 0; | |
4841 | char *_kwnames[] = { "self","index","imageIndex", NULL }; | |
4842 | ||
4843 | self = self; | |
4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4845 | return NULL; | |
4846 | if (_argo0) { | |
4847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
4850 | return NULL; | |
4851 | } | |
4852 | } | |
4853 | { | |
4854 | wxPy_BEGIN_ALLOW_THREADS; | |
4855 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
4856 | ||
4857 | wxPy_END_ALLOW_THREADS; | |
4858 | if (PyErr_Occurred()) return NULL; | |
4859 | } _resultobj = Py_BuildValue("l",_result); | |
4860 | return _resultobj; | |
4861 | } | |
4862 | ||
4863 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
4864 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4865 | PyObject * _resultobj; | |
4866 | long _result; | |
4867 | wxPyListCtrl * _arg0; | |
4868 | long _arg1; | |
4869 | wxString * _arg2; | |
4870 | int _arg3; | |
4871 | PyObject * _argo0 = 0; | |
4872 | PyObject * _obj2 = 0; | |
4873 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; | |
4874 | ||
4875 | self = self; | |
4876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4877 | return NULL; | |
4878 | if (_argo0) { | |
4879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
4882 | return NULL; | |
4883 | } | |
4884 | } | |
4885 | { | |
4886 | #if PYTHON_API_VERSION >= 1009 | |
4887 | char* tmpPtr; int tmpSize; | |
4888 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4889 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4890 | return NULL; | |
4891 | } | |
4892 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4893 | return NULL; | |
4894 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4895 | #else | |
4896 | if (!PyString_Check(_obj2)) { | |
4897 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4898 | return NULL; | |
4899 | } | |
4900 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4901 | #endif | |
4902 | } | |
4903 | { | |
4904 | wxPy_BEGIN_ALLOW_THREADS; | |
4905 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
4906 | ||
4907 | wxPy_END_ALLOW_THREADS; | |
4908 | if (PyErr_Occurred()) return NULL; | |
4909 | } _resultobj = Py_BuildValue("l",_result); | |
4910 | { | |
4911 | if (_obj2) | |
4912 | delete _arg2; | |
4913 | } | |
4914 | return _resultobj; | |
4915 | } | |
4916 | ||
4917 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) | |
4918 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4919 | PyObject * _resultobj; | |
4920 | long _result; | |
4921 | wxPyListCtrl * _arg0; | |
4922 | long _arg1; | |
4923 | wxListItem * _arg2; | |
4924 | PyObject * _argo0 = 0; | |
4925 | PyObject * _argo2 = 0; | |
4926 | char *_kwnames[] = { "self","col","info", NULL }; | |
4927 | ||
4928 | self = self; | |
4929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) | |
4930 | return NULL; | |
4931 | if (_argo0) { | |
4932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4935 | return NULL; | |
4936 | } | |
4937 | } | |
4938 | if (_argo2) { | |
4939 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4940 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
4942 | return NULL; | |
4943 | } | |
4944 | } | |
4945 | { | |
4946 | wxPy_BEGIN_ALLOW_THREADS; | |
4947 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); | |
4948 | ||
4949 | wxPy_END_ALLOW_THREADS; | |
4950 | if (PyErr_Occurred()) return NULL; | |
4951 | } _resultobj = Py_BuildValue("l",_result); | |
4952 | return _resultobj; | |
4953 | } | |
4954 | ||
4955 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4956 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4957 | PyObject * _resultobj; | |
4958 | long _result; | |
4959 | wxPyListCtrl * _arg0; | |
4960 | long _arg1; | |
4961 | wxString * _arg2; | |
4962 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); | |
4963 | int _arg4 = (int ) -1; | |
4964 | PyObject * _argo0 = 0; | |
4965 | PyObject * _obj2 = 0; | |
4966 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; | |
4967 | ||
4968 | self = self; | |
4969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) | |
4970 | return NULL; | |
4971 | if (_argo0) { | |
4972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
4975 | return NULL; | |
4976 | } | |
4977 | } | |
4978 | { | |
4979 | #if PYTHON_API_VERSION >= 1009 | |
4980 | char* tmpPtr; int tmpSize; | |
4981 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4982 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4983 | return NULL; | |
4984 | } | |
4985 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4986 | return NULL; | |
4987 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4988 | #else | |
4989 | if (!PyString_Check(_obj2)) { | |
4990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4991 | return NULL; | |
4992 | } | |
4993 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4994 | #endif | |
4995 | } | |
4996 | { | |
4997 | wxPy_BEGIN_ALLOW_THREADS; | |
4998 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
4999 | ||
5000 | wxPy_END_ALLOW_THREADS; | |
5001 | if (PyErr_Occurred()) return NULL; | |
5002 | } _resultobj = Py_BuildValue("l",_result); | |
5003 | { | |
5004 | if (_obj2) | |
5005 | delete _arg2; | |
5006 | } | |
5007 | return _resultobj; | |
5008 | } | |
5009 | ||
5010 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) | |
5011 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5012 | PyObject * _resultobj; | |
5013 | wxPyListCtrl * _arg0; | |
5014 | long _arg1; | |
5015 | PyObject * _argo0 = 0; | |
5016 | char *_kwnames[] = { "self","count", NULL }; | |
5017 | ||
5018 | self = self; | |
5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) | |
5020 | return NULL; | |
5021 | if (_argo0) { | |
5022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
5025 | return NULL; | |
5026 | } | |
5027 | } | |
5028 | { | |
5029 | wxPy_BEGIN_ALLOW_THREADS; | |
5030 | wxListCtrl_SetItemCount(_arg0,_arg1); | |
5031 | ||
5032 | wxPy_END_ALLOW_THREADS; | |
5033 | if (PyErr_Occurred()) return NULL; | |
5034 | } Py_INCREF(Py_None); | |
5035 | _resultobj = Py_None; | |
5036 | return _resultobj; | |
5037 | } | |
5038 | ||
5039 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
5040 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5041 | PyObject * _resultobj; | |
5042 | bool _result; | |
5043 | wxPyListCtrl * _arg0; | |
5044 | int _arg1; | |
5045 | int _arg2; | |
5046 | PyObject * _argo0 = 0; | |
5047 | char *_kwnames[] = { "self","dx","dy", NULL }; | |
5048 | ||
5049 | self = self; | |
5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5051 | return NULL; | |
5052 | if (_argo0) { | |
5053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
5056 | return NULL; | |
5057 | } | |
5058 | } | |
5059 | { | |
5060 | wxPy_BEGIN_ALLOW_THREADS; | |
5061 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
5062 | ||
5063 | wxPy_END_ALLOW_THREADS; | |
5064 | if (PyErr_Occurred()) return NULL; | |
5065 | } _resultobj = Py_BuildValue("i",_result); | |
5066 | return _resultobj; | |
5067 | } | |
5068 | ||
5069 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { | |
5070 | if (!PyCallable_Check(func)) | |
5071 | return FALSE; | |
5072 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); | |
5073 | } | |
5074 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5075 | PyObject * _resultobj; | |
5076 | bool _result; | |
5077 | wxPyListCtrl * _arg0; | |
5078 | PyObject * _arg1; | |
5079 | PyObject * _argo0 = 0; | |
5080 | PyObject * _obj1 = 0; | |
5081 | char *_kwnames[] = { "self","func", NULL }; | |
5082 | ||
5083 | self = self; | |
5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5085 | return NULL; | |
5086 | if (_argo0) { | |
5087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
5090 | return NULL; | |
5091 | } | |
5092 | } | |
5093 | { | |
5094 | _arg1 = _obj1; | |
5095 | } | |
5096 | { | |
5097 | wxPy_BEGIN_ALLOW_THREADS; | |
5098 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); | |
5099 | ||
5100 | wxPy_END_ALLOW_THREADS; | |
5101 | if (PyErr_Occurred()) return NULL; | |
5102 | } _resultobj = Py_BuildValue("i",_result); | |
5103 | return _resultobj; | |
5104 | } | |
5105 | ||
5106 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { | |
5107 | wxListView *src; | |
5108 | wxPyListCtrl *dest; | |
5109 | src = (wxListView *) ptr; | |
5110 | dest = (wxPyListCtrl *) src; | |
5111 | return (void *) dest; | |
5112 | } | |
5113 | ||
5114 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5115 | wxListView *src; | |
5116 | wxControl *dest; | |
5117 | src = (wxListView *) ptr; | |
5118 | dest = (wxControl *) src; | |
5119 | return (void *) dest; | |
5120 | } | |
5121 | ||
5122 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5123 | wxListView *src; | |
5124 | wxWindow *dest; | |
5125 | src = (wxListView *) ptr; | |
5126 | dest = (wxWindow *) src; | |
5127 | return (void *) dest; | |
5128 | } | |
5129 | ||
5130 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5131 | wxListView *src; | |
5132 | wxEvtHandler *dest; | |
5133 | src = (wxListView *) ptr; | |
5134 | dest = (wxEvtHandler *) src; | |
5135 | return (void *) dest; | |
5136 | } | |
5137 | ||
5138 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5139 | wxListView *src; | |
5140 | wxObject *dest; | |
5141 | src = (wxListView *) ptr; | |
5142 | dest = (wxObject *) src; | |
5143 | return (void *) dest; | |
5144 | } | |
5145 | ||
5146 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5147 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5148 | PyObject * _resultobj; | |
5149 | wxListView * _result; | |
5150 | wxWindow * _arg0; | |
5151 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5152 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5153 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5154 | long _arg4 = (long ) (wxLC_REPORT); | |
5155 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5156 | wxString * _arg6 = (wxString *) &"listctrl"; | |
5157 | PyObject * _argo0 = 0; | |
5158 | wxPoint temp; | |
5159 | PyObject * _obj2 = 0; | |
5160 | wxSize temp0; | |
5161 | PyObject * _obj3 = 0; | |
5162 | PyObject * _argo5 = 0; | |
5163 | PyObject * _obj6 = 0; | |
5164 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5165 | char _ptemp[128]; | |
5166 | ||
5167 | self = self; | |
5168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5169 | return NULL; | |
5170 | if (_argo0) { | |
5171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5174 | return NULL; | |
5175 | } | |
5176 | } | |
5177 | if (_obj2) | |
5178 | { | |
5179 | _arg2 = &temp; | |
5180 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5181 | return NULL; | |
5182 | } | |
5183 | if (_obj3) | |
5184 | { | |
5185 | _arg3 = &temp0; | |
5186 | if (! wxSize_helper(_obj3, &_arg3)) | |
5187 | return NULL; | |
5188 | } | |
5189 | if (_argo5) { | |
5190 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5191 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5193 | return NULL; | |
5194 | } | |
5195 | } | |
5196 | if (_obj6) | |
5197 | { | |
5198 | #if PYTHON_API_VERSION >= 1009 | |
5199 | char* tmpPtr; int tmpSize; | |
5200 | if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) { | |
5201 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5202 | return NULL; | |
5203 | } | |
5204 | if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1) | |
5205 | return NULL; | |
5206 | _arg6 = new wxString(tmpPtr, tmpSize); | |
5207 | #else | |
5208 | if (!PyString_Check(_obj6)) { | |
5209 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5210 | return NULL; | |
5211 | } | |
5212 | _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6)); | |
5213 | #endif | |
5214 | } | |
5215 | { | |
5216 | wxPy_BEGIN_ALLOW_THREADS; | |
5217 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
5218 | ||
5219 | wxPy_END_ALLOW_THREADS; | |
5220 | if (PyErr_Occurred()) return NULL; | |
5221 | } if (_result) { | |
5222 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5223 | _resultobj = Py_BuildValue("s",_ptemp); | |
5224 | } else { | |
5225 | Py_INCREF(Py_None); | |
5226 | _resultobj = Py_None; | |
5227 | } | |
5228 | { | |
5229 | if (_obj6) | |
5230 | delete _arg6; | |
5231 | } | |
5232 | return _resultobj; | |
5233 | } | |
5234 | ||
5235 | #define new_wxPreListView() (new wxListView()) | |
5236 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5237 | PyObject * _resultobj; | |
5238 | wxListView * _result; | |
5239 | char *_kwnames[] = { NULL }; | |
5240 | char _ptemp[128]; | |
5241 | ||
5242 | self = self; | |
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5244 | return NULL; | |
5245 | { | |
5246 | wxPy_BEGIN_ALLOW_THREADS; | |
5247 | _result = (wxListView *)new_wxPreListView(); | |
5248 | ||
5249 | wxPy_END_ALLOW_THREADS; | |
5250 | if (PyErr_Occurred()) return NULL; | |
5251 | } if (_result) { | |
5252 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5253 | _resultobj = Py_BuildValue("s",_ptemp); | |
5254 | } else { | |
5255 | Py_INCREF(Py_None); | |
5256 | _resultobj = Py_None; | |
5257 | } | |
5258 | return _resultobj; | |
5259 | } | |
5260 | ||
5261 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5262 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5263 | PyObject * _resultobj; | |
5264 | bool _result; | |
5265 | wxListView * _arg0; | |
5266 | wxWindow * _arg1; | |
5267 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5268 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5269 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5270 | long _arg5 = (long ) (wxLC_REPORT); | |
5271 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5272 | wxString * _arg7 = (wxString *) &"listctrl"; | |
5273 | PyObject * _argo0 = 0; | |
5274 | PyObject * _argo1 = 0; | |
5275 | wxPoint temp; | |
5276 | PyObject * _obj3 = 0; | |
5277 | wxSize temp0; | |
5278 | PyObject * _obj4 = 0; | |
5279 | PyObject * _argo6 = 0; | |
5280 | PyObject * _obj7 = 0; | |
5281 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5282 | ||
5283 | self = self; | |
5284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5285 | return NULL; | |
5286 | if (_argo0) { | |
5287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5290 | return NULL; | |
5291 | } | |
5292 | } | |
5293 | if (_argo1) { | |
5294 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5295 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5297 | return NULL; | |
5298 | } | |
5299 | } | |
5300 | if (_obj3) | |
5301 | { | |
5302 | _arg3 = &temp; | |
5303 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5304 | return NULL; | |
5305 | } | |
5306 | if (_obj4) | |
5307 | { | |
5308 | _arg4 = &temp0; | |
5309 | if (! wxSize_helper(_obj4, &_arg4)) | |
5310 | return NULL; | |
5311 | } | |
5312 | if (_argo6) { | |
5313 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5314 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5316 | return NULL; | |
5317 | } | |
5318 | } | |
5319 | if (_obj7) | |
5320 | { | |
5321 | #if PYTHON_API_VERSION >= 1009 | |
5322 | char* tmpPtr; int tmpSize; | |
5323 | if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) { | |
5324 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5325 | return NULL; | |
5326 | } | |
5327 | if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1) | |
5328 | return NULL; | |
5329 | _arg7 = new wxString(tmpPtr, tmpSize); | |
5330 | #else | |
5331 | if (!PyString_Check(_obj7)) { | |
5332 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5333 | return NULL; | |
5334 | } | |
5335 | _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7)); | |
5336 | #endif | |
5337 | } | |
5338 | { | |
5339 | wxPy_BEGIN_ALLOW_THREADS; | |
5340 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
5341 | ||
5342 | wxPy_END_ALLOW_THREADS; | |
5343 | if (PyErr_Occurred()) return NULL; | |
5344 | } _resultobj = Py_BuildValue("i",_result); | |
5345 | { | |
5346 | if (_obj7) | |
5347 | delete _arg7; | |
5348 | } | |
5349 | return _resultobj; | |
5350 | } | |
5351 | ||
5352 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5353 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5354 | PyObject * _resultobj; | |
5355 | wxListView * _arg0; | |
5356 | long _arg1; | |
5357 | bool _arg2 = (bool ) TRUE; | |
5358 | PyObject * _argo0 = 0; | |
5359 | int tempbool2 = (int) TRUE; | |
5360 | char *_kwnames[] = { "self","n","on", NULL }; | |
5361 | ||
5362 | self = self; | |
5363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5364 | return NULL; | |
5365 | if (_argo0) { | |
5366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5369 | return NULL; | |
5370 | } | |
5371 | } | |
5372 | _arg2 = (bool ) tempbool2; | |
5373 | { | |
5374 | wxPy_BEGIN_ALLOW_THREADS; | |
5375 | wxListView_Select(_arg0,_arg1,_arg2); | |
5376 | ||
5377 | wxPy_END_ALLOW_THREADS; | |
5378 | if (PyErr_Occurred()) return NULL; | |
5379 | } Py_INCREF(Py_None); | |
5380 | _resultobj = Py_None; | |
5381 | return _resultobj; | |
5382 | } | |
5383 | ||
5384 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5385 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5386 | PyObject * _resultobj; | |
5387 | wxListView * _arg0; | |
5388 | long _arg1; | |
5389 | PyObject * _argo0 = 0; | |
5390 | char *_kwnames[] = { "self","index", NULL }; | |
5391 | ||
5392 | self = self; | |
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5394 | return NULL; | |
5395 | if (_argo0) { | |
5396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5399 | return NULL; | |
5400 | } | |
5401 | } | |
5402 | { | |
5403 | wxPy_BEGIN_ALLOW_THREADS; | |
5404 | wxListView_Focus(_arg0,_arg1); | |
5405 | ||
5406 | wxPy_END_ALLOW_THREADS; | |
5407 | if (PyErr_Occurred()) return NULL; | |
5408 | } Py_INCREF(Py_None); | |
5409 | _resultobj = Py_None; | |
5410 | return _resultobj; | |
5411 | } | |
5412 | ||
5413 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5414 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5415 | PyObject * _resultobj; | |
5416 | long _result; | |
5417 | wxListView * _arg0; | |
5418 | PyObject * _argo0 = 0; | |
5419 | char *_kwnames[] = { "self", NULL }; | |
5420 | ||
5421 | self = self; | |
5422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5423 | return NULL; | |
5424 | if (_argo0) { | |
5425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5428 | return NULL; | |
5429 | } | |
5430 | } | |
5431 | { | |
5432 | wxPy_BEGIN_ALLOW_THREADS; | |
5433 | _result = (long )wxListView_GetFocusedItem(_arg0); | |
5434 | ||
5435 | wxPy_END_ALLOW_THREADS; | |
5436 | if (PyErr_Occurred()) return NULL; | |
5437 | } _resultobj = Py_BuildValue("l",_result); | |
5438 | return _resultobj; | |
5439 | } | |
5440 | ||
5441 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5442 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5443 | PyObject * _resultobj; | |
5444 | long _result; | |
5445 | wxListView * _arg0; | |
5446 | long _arg1; | |
5447 | PyObject * _argo0 = 0; | |
5448 | char *_kwnames[] = { "self","item", NULL }; | |
5449 | ||
5450 | self = self; | |
5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5452 | return NULL; | |
5453 | if (_argo0) { | |
5454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5457 | return NULL; | |
5458 | } | |
5459 | } | |
5460 | { | |
5461 | wxPy_BEGIN_ALLOW_THREADS; | |
5462 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); | |
5463 | ||
5464 | wxPy_END_ALLOW_THREADS; | |
5465 | if (PyErr_Occurred()) return NULL; | |
5466 | } _resultobj = Py_BuildValue("l",_result); | |
5467 | return _resultobj; | |
5468 | } | |
5469 | ||
5470 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5471 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5472 | PyObject * _resultobj; | |
5473 | long _result; | |
5474 | wxListView * _arg0; | |
5475 | PyObject * _argo0 = 0; | |
5476 | char *_kwnames[] = { "self", NULL }; | |
5477 | ||
5478 | self = self; | |
5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5480 | return NULL; | |
5481 | if (_argo0) { | |
5482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5485 | return NULL; | |
5486 | } | |
5487 | } | |
5488 | { | |
5489 | wxPy_BEGIN_ALLOW_THREADS; | |
5490 | _result = (long )wxListView_GetFirstSelected(_arg0); | |
5491 | ||
5492 | wxPy_END_ALLOW_THREADS; | |
5493 | if (PyErr_Occurred()) return NULL; | |
5494 | } _resultobj = Py_BuildValue("l",_result); | |
5495 | return _resultobj; | |
5496 | } | |
5497 | ||
5498 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5499 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5500 | PyObject * _resultobj; | |
5501 | bool _result; | |
5502 | wxListView * _arg0; | |
5503 | long _arg1; | |
5504 | PyObject * _argo0 = 0; | |
5505 | char *_kwnames[] = { "self","index", NULL }; | |
5506 | ||
5507 | self = self; | |
5508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5509 | return NULL; | |
5510 | if (_argo0) { | |
5511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5514 | return NULL; | |
5515 | } | |
5516 | } | |
5517 | { | |
5518 | wxPy_BEGIN_ALLOW_THREADS; | |
5519 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); | |
5520 | ||
5521 | wxPy_END_ALLOW_THREADS; | |
5522 | if (PyErr_Occurred()) return NULL; | |
5523 | } _resultobj = Py_BuildValue("i",_result); | |
5524 | return _resultobj; | |
5525 | } | |
5526 | ||
5527 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5528 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5529 | PyObject * _resultobj; | |
5530 | wxListView * _arg0; | |
5531 | int _arg1; | |
5532 | int _arg2; | |
5533 | PyObject * _argo0 = 0; | |
5534 | char *_kwnames[] = { "self","col","image", NULL }; | |
5535 | ||
5536 | self = self; | |
5537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5538 | return NULL; | |
5539 | if (_argo0) { | |
5540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5543 | return NULL; | |
5544 | } | |
5545 | } | |
5546 | { | |
5547 | wxPy_BEGIN_ALLOW_THREADS; | |
5548 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); | |
5549 | ||
5550 | wxPy_END_ALLOW_THREADS; | |
5551 | if (PyErr_Occurred()) return NULL; | |
5552 | } Py_INCREF(Py_None); | |
5553 | _resultobj = Py_None; | |
5554 | return _resultobj; | |
5555 | } | |
5556 | ||
5557 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5558 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5559 | PyObject * _resultobj; | |
5560 | wxListView * _arg0; | |
5561 | int _arg1; | |
5562 | PyObject * _argo0 = 0; | |
5563 | char *_kwnames[] = { "self","col", NULL }; | |
5564 | ||
5565 | self = self; | |
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5567 | return NULL; | |
5568 | if (_argo0) { | |
5569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5572 | return NULL; | |
5573 | } | |
5574 | } | |
5575 | { | |
5576 | wxPy_BEGIN_ALLOW_THREADS; | |
5577 | wxListView_ClearColumnImage(_arg0,_arg1); | |
5578 | ||
5579 | wxPy_END_ALLOW_THREADS; | |
5580 | if (PyErr_Occurred()) return NULL; | |
5581 | } Py_INCREF(Py_None); | |
5582 | _resultobj = Py_None; | |
5583 | return _resultobj; | |
5584 | } | |
5585 | ||
5586 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) | |
5587 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5588 | PyObject * _resultobj; | |
5589 | wxTreeItemAttr * _result; | |
5590 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5591 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5592 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5593 | wxColour temp; | |
5594 | PyObject * _obj0 = 0; | |
5595 | wxColour temp0; | |
5596 | PyObject * _obj1 = 0; | |
5597 | PyObject * _argo2 = 0; | |
5598 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5599 | char _ptemp[128]; | |
5600 | ||
5601 | self = self; | |
5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5603 | return NULL; | |
5604 | if (_obj0) | |
5605 | { | |
5606 | _arg0 = &temp; | |
5607 | if (! wxColour_helper(_obj0, &_arg0)) | |
5608 | return NULL; | |
5609 | } | |
5610 | if (_obj1) | |
5611 | { | |
5612 | _arg1 = &temp0; | |
5613 | if (! wxColour_helper(_obj1, &_arg1)) | |
5614 | return NULL; | |
5615 | } | |
5616 | if (_argo2) { | |
5617 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5618 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
5620 | return NULL; | |
5621 | } | |
5622 | } | |
5623 | { | |
5624 | wxPy_BEGIN_ALLOW_THREADS; | |
5625 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); | |
5626 | ||
5627 | wxPy_END_ALLOW_THREADS; | |
5628 | if (PyErr_Occurred()) return NULL; | |
5629 | } if (_result) { | |
5630 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5631 | _resultobj = Py_BuildValue("s",_ptemp); | |
5632 | } else { | |
5633 | Py_INCREF(Py_None); | |
5634 | _resultobj = Py_None; | |
5635 | } | |
5636 | return _resultobj; | |
5637 | } | |
5638 | ||
5639 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5640 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5641 | PyObject * _resultobj; | |
5642 | wxTreeItemAttr * _arg0; | |
5643 | wxColour * _arg1; | |
5644 | PyObject * _argo0 = 0; | |
5645 | wxColour temp; | |
5646 | PyObject * _obj1 = 0; | |
5647 | char *_kwnames[] = { "self","colText", NULL }; | |
5648 | ||
5649 | self = self; | |
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5651 | return NULL; | |
5652 | if (_argo0) { | |
5653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5656 | return NULL; | |
5657 | } | |
5658 | } | |
5659 | { | |
5660 | _arg1 = &temp; | |
5661 | if (! wxColour_helper(_obj1, &_arg1)) | |
5662 | return NULL; | |
5663 | } | |
5664 | { | |
5665 | wxPy_BEGIN_ALLOW_THREADS; | |
5666 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); | |
5667 | ||
5668 | wxPy_END_ALLOW_THREADS; | |
5669 | if (PyErr_Occurred()) return NULL; | |
5670 | } Py_INCREF(Py_None); | |
5671 | _resultobj = Py_None; | |
5672 | return _resultobj; | |
5673 | } | |
5674 | ||
5675 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5676 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5677 | PyObject * _resultobj; | |
5678 | wxTreeItemAttr * _arg0; | |
5679 | wxColour * _arg1; | |
5680 | PyObject * _argo0 = 0; | |
5681 | wxColour temp; | |
5682 | PyObject * _obj1 = 0; | |
5683 | char *_kwnames[] = { "self","colBack", NULL }; | |
5684 | ||
5685 | self = self; | |
5686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5687 | return NULL; | |
5688 | if (_argo0) { | |
5689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5692 | return NULL; | |
5693 | } | |
5694 | } | |
5695 | { | |
5696 | _arg1 = &temp; | |
5697 | if (! wxColour_helper(_obj1, &_arg1)) | |
5698 | return NULL; | |
5699 | } | |
5700 | { | |
5701 | wxPy_BEGIN_ALLOW_THREADS; | |
5702 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
5703 | ||
5704 | wxPy_END_ALLOW_THREADS; | |
5705 | if (PyErr_Occurred()) return NULL; | |
5706 | } Py_INCREF(Py_None); | |
5707 | _resultobj = Py_None; | |
5708 | return _resultobj; | |
5709 | } | |
5710 | ||
5711 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5712 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5713 | PyObject * _resultobj; | |
5714 | wxTreeItemAttr * _arg0; | |
5715 | wxFont * _arg1; | |
5716 | PyObject * _argo0 = 0; | |
5717 | PyObject * _argo1 = 0; | |
5718 | char *_kwnames[] = { "self","font", NULL }; | |
5719 | ||
5720 | self = self; | |
5721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5722 | return NULL; | |
5723 | if (_argo0) { | |
5724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5727 | return NULL; | |
5728 | } | |
5729 | } | |
5730 | if (_argo1) { | |
5731 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5732 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
5737 | { | |
5738 | wxPy_BEGIN_ALLOW_THREADS; | |
5739 | wxTreeItemAttr_SetFont(_arg0,*_arg1); | |
5740 | ||
5741 | wxPy_END_ALLOW_THREADS; | |
5742 | if (PyErr_Occurred()) return NULL; | |
5743 | } Py_INCREF(Py_None); | |
5744 | _resultobj = Py_None; | |
5745 | return _resultobj; | |
5746 | } | |
5747 | ||
5748 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5749 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5750 | PyObject * _resultobj; | |
5751 | bool _result; | |
5752 | wxTreeItemAttr * _arg0; | |
5753 | PyObject * _argo0 = 0; | |
5754 | char *_kwnames[] = { "self", NULL }; | |
5755 | ||
5756 | self = self; | |
5757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5758 | return NULL; | |
5759 | if (_argo0) { | |
5760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5763 | return NULL; | |
5764 | } | |
5765 | } | |
5766 | { | |
5767 | wxPy_BEGIN_ALLOW_THREADS; | |
5768 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); | |
5769 | ||
5770 | wxPy_END_ALLOW_THREADS; | |
5771 | if (PyErr_Occurred()) return NULL; | |
5772 | } _resultobj = Py_BuildValue("i",_result); | |
5773 | return _resultobj; | |
5774 | } | |
5775 | ||
5776 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5777 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5778 | PyObject * _resultobj; | |
5779 | bool _result; | |
5780 | wxTreeItemAttr * _arg0; | |
5781 | PyObject * _argo0 = 0; | |
5782 | char *_kwnames[] = { "self", NULL }; | |
5783 | ||
5784 | self = self; | |
5785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5786 | return NULL; | |
5787 | if (_argo0) { | |
5788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5791 | return NULL; | |
5792 | } | |
5793 | } | |
5794 | { | |
5795 | wxPy_BEGIN_ALLOW_THREADS; | |
5796 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); | |
5797 | ||
5798 | wxPy_END_ALLOW_THREADS; | |
5799 | if (PyErr_Occurred()) return NULL; | |
5800 | } _resultobj = Py_BuildValue("i",_result); | |
5801 | return _resultobj; | |
5802 | } | |
5803 | ||
5804 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5805 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5806 | PyObject * _resultobj; | |
5807 | bool _result; | |
5808 | wxTreeItemAttr * _arg0; | |
5809 | PyObject * _argo0 = 0; | |
5810 | char *_kwnames[] = { "self", NULL }; | |
5811 | ||
5812 | self = self; | |
5813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5814 | return NULL; | |
5815 | if (_argo0) { | |
5816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5819 | return NULL; | |
5820 | } | |
5821 | } | |
5822 | { | |
5823 | wxPy_BEGIN_ALLOW_THREADS; | |
5824 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); | |
5825 | ||
5826 | wxPy_END_ALLOW_THREADS; | |
5827 | if (PyErr_Occurred()) return NULL; | |
5828 | } _resultobj = Py_BuildValue("i",_result); | |
5829 | return _resultobj; | |
5830 | } | |
5831 | ||
5832 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5833 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5834 | PyObject * _resultobj; | |
5835 | wxColour * _result; | |
5836 | wxTreeItemAttr * _arg0; | |
5837 | PyObject * _argo0 = 0; | |
5838 | char *_kwnames[] = { "self", NULL }; | |
5839 | char _ptemp[128]; | |
5840 | ||
5841 | self = self; | |
5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5843 | return NULL; | |
5844 | if (_argo0) { | |
5845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5848 | return NULL; | |
5849 | } | |
5850 | } | |
5851 | { | |
5852 | wxPy_BEGIN_ALLOW_THREADS; | |
5853 | const wxColour & _result_ref = wxTreeItemAttr_GetTextColour(_arg0); | |
5854 | _result = (wxColour *) &_result_ref; | |
5855 | ||
5856 | wxPy_END_ALLOW_THREADS; | |
5857 | if (PyErr_Occurred()) return NULL; | |
5858 | } if (_result) { | |
5859 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5860 | _resultobj = Py_BuildValue("s",_ptemp); | |
5861 | } else { | |
5862 | Py_INCREF(Py_None); | |
5863 | _resultobj = Py_None; | |
5864 | } | |
5865 | return _resultobj; | |
5866 | } | |
5867 | ||
5868 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5869 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5870 | PyObject * _resultobj; | |
5871 | wxColour * _result; | |
5872 | wxTreeItemAttr * _arg0; | |
5873 | PyObject * _argo0 = 0; | |
5874 | char *_kwnames[] = { "self", NULL }; | |
5875 | char _ptemp[128]; | |
5876 | ||
5877 | self = self; | |
5878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5879 | return NULL; | |
5880 | if (_argo0) { | |
5881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5884 | return NULL; | |
5885 | } | |
5886 | } | |
5887 | { | |
5888 | wxPy_BEGIN_ALLOW_THREADS; | |
5889 | const wxColour & _result_ref = wxTreeItemAttr_GetBackgroundColour(_arg0); | |
5890 | _result = (wxColour *) &_result_ref; | |
5891 | ||
5892 | wxPy_END_ALLOW_THREADS; | |
5893 | if (PyErr_Occurred()) return NULL; | |
5894 | } if (_result) { | |
5895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5896 | _resultobj = Py_BuildValue("s",_ptemp); | |
5897 | } else { | |
5898 | Py_INCREF(Py_None); | |
5899 | _resultobj = Py_None; | |
5900 | } | |
5901 | return _resultobj; | |
5902 | } | |
5903 | ||
5904 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5905 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5906 | PyObject * _resultobj; | |
5907 | wxFont * _result; | |
5908 | wxTreeItemAttr * _arg0; | |
5909 | PyObject * _argo0 = 0; | |
5910 | char *_kwnames[] = { "self", NULL }; | |
5911 | char _ptemp[128]; | |
5912 | ||
5913 | self = self; | |
5914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5915 | return NULL; | |
5916 | if (_argo0) { | |
5917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5920 | return NULL; | |
5921 | } | |
5922 | } | |
5923 | { | |
5924 | wxPy_BEGIN_ALLOW_THREADS; | |
5925 | const wxFont & _result_ref = wxTreeItemAttr_GetFont(_arg0); | |
5926 | _result = (wxFont *) &_result_ref; | |
5927 | ||
5928 | wxPy_END_ALLOW_THREADS; | |
5929 | if (PyErr_Occurred()) return NULL; | |
5930 | } if (_result) { | |
5931 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5932 | _resultobj = Py_BuildValue("s",_ptemp); | |
5933 | } else { | |
5934 | Py_INCREF(Py_None); | |
5935 | _resultobj = Py_None; | |
5936 | } | |
5937 | return _resultobj; | |
5938 | } | |
5939 | ||
5940 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5941 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5942 | PyObject * _resultobj; | |
5943 | wxTreeItemId * _result; | |
5944 | char *_kwnames[] = { NULL }; | |
5945 | char _ptemp[128]; | |
5946 | ||
5947 | self = self; | |
5948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5949 | return NULL; | |
5950 | { | |
5951 | wxPy_BEGIN_ALLOW_THREADS; | |
5952 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
5953 | ||
5954 | wxPy_END_ALLOW_THREADS; | |
5955 | if (PyErr_Occurred()) return NULL; | |
5956 | } if (_result) { | |
5957 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5958 | _resultobj = Py_BuildValue("s",_ptemp); | |
5959 | } else { | |
5960 | Py_INCREF(Py_None); | |
5961 | _resultobj = Py_None; | |
5962 | } | |
5963 | return _resultobj; | |
5964 | } | |
5965 | ||
5966 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5967 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5968 | PyObject * _resultobj; | |
5969 | wxTreeItemId * _arg0; | |
5970 | PyObject * _argo0 = 0; | |
5971 | char *_kwnames[] = { "self", NULL }; | |
5972 | ||
5973 | self = self; | |
5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5975 | return NULL; | |
5976 | if (_argo0) { | |
5977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5980 | return NULL; | |
5981 | } | |
5982 | } | |
5983 | { | |
5984 | wxPy_BEGIN_ALLOW_THREADS; | |
5985 | delete_wxTreeItemId(_arg0); | |
5986 | ||
5987 | wxPy_END_ALLOW_THREADS; | |
5988 | if (PyErr_Occurred()) return NULL; | |
5989 | } Py_INCREF(Py_None); | |
5990 | _resultobj = Py_None; | |
5991 | return _resultobj; | |
5992 | } | |
5993 | ||
5994 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5995 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5996 | PyObject * _resultobj; | |
5997 | bool _result; | |
5998 | wxTreeItemId * _arg0; | |
5999 | PyObject * _argo0 = 0; | |
6000 | char *_kwnames[] = { "self", NULL }; | |
6001 | ||
6002 | self = self; | |
6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
6004 | return NULL; | |
6005 | if (_argo0) { | |
6006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
6008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
6009 | return NULL; | |
6010 | } | |
6011 | } | |
6012 | { | |
6013 | wxPy_BEGIN_ALLOW_THREADS; | |
6014 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
6015 | ||
6016 | wxPy_END_ALLOW_THREADS; | |
6017 | if (PyErr_Occurred()) return NULL; | |
6018 | } _resultobj = Py_BuildValue("i",_result); | |
6019 | return _resultobj; | |
6020 | } | |
6021 | ||
6022 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
6023 | if (! other) return -1; | |
6024 | return *self != *other; | |
6025 | } | |
6026 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6027 | PyObject * _resultobj; | |
6028 | int _result; | |
6029 | wxTreeItemId * _arg0; | |
6030 | wxTreeItemId * _arg1; | |
6031 | PyObject * _argo0 = 0; | |
6032 | PyObject * _argo1 = 0; | |
6033 | char *_kwnames[] = { "self","other", NULL }; | |
6034 | ||
6035 | self = self; | |
6036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
6037 | return NULL; | |
6038 | if (_argo0) { | |
6039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
6041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
6042 | return NULL; | |
6043 | } | |
6044 | } | |
6045 | if (_argo1) { | |
6046 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6047 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
6049 | return NULL; | |
6050 | } | |
6051 | } | |
6052 | { | |
6053 | wxPy_BEGIN_ALLOW_THREADS; | |
6054 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
6055 | ||
6056 | wxPy_END_ALLOW_THREADS; | |
6057 | if (PyErr_Occurred()) return NULL; | |
6058 | } _resultobj = Py_BuildValue("i",_result); | |
6059 | return _resultobj; | |
6060 | } | |
6061 | ||
6062 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
6063 | wxPyTreeItemData *src; | |
6064 | wxObject *dest; | |
6065 | src = (wxPyTreeItemData *) ptr; | |
6066 | dest = (wxObject *) src; | |
6067 | return (void *) dest; | |
6068 | } | |
6069 | ||
6070 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
6071 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6072 | PyObject * _resultobj; | |
6073 | wxPyTreeItemData * _result; | |
6074 | PyObject * _arg0 = (PyObject *) NULL; | |
6075 | PyObject * _obj0 = 0; | |
6076 | char *_kwnames[] = { "obj", NULL }; | |
6077 | char _ptemp[128]; | |
6078 | ||
6079 | self = self; | |
6080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
6081 | return NULL; | |
6082 | if (_obj0) | |
6083 | { | |
6084 | _arg0 = _obj0; | |
6085 | } | |
6086 | { | |
6087 | wxPy_BEGIN_ALLOW_THREADS; | |
6088 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
6089 | ||
6090 | wxPy_END_ALLOW_THREADS; | |
6091 | if (PyErr_Occurred()) return NULL; | |
6092 | } if (_result) { | |
6093 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6094 | _resultobj = Py_BuildValue("s",_ptemp); | |
6095 | } else { | |
6096 | Py_INCREF(Py_None); | |
6097 | _resultobj = Py_None; | |
6098 | } | |
6099 | return _resultobj; | |
6100 | } | |
6101 | ||
6102 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
6103 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6104 | PyObject * _resultobj; | |
6105 | PyObject * _result; | |
6106 | wxPyTreeItemData * _arg0; | |
6107 | PyObject * _argo0 = 0; | |
6108 | char *_kwnames[] = { "self", NULL }; | |
6109 | ||
6110 | self = self; | |
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
6112 | return NULL; | |
6113 | if (_argo0) { | |
6114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
6117 | return NULL; | |
6118 | } | |
6119 | } | |
6120 | { | |
6121 | wxPy_BEGIN_ALLOW_THREADS; | |
6122 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
6123 | ||
6124 | wxPy_END_ALLOW_THREADS; | |
6125 | if (PyErr_Occurred()) return NULL; | |
6126 | }{ | |
6127 | _resultobj = _result; | |
6128 | } | |
6129 | return _resultobj; | |
6130 | } | |
6131 | ||
6132 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
6133 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6134 | PyObject * _resultobj; | |
6135 | wxPyTreeItemData * _arg0; | |
6136 | PyObject * _arg1; | |
6137 | PyObject * _argo0 = 0; | |
6138 | PyObject * _obj1 = 0; | |
6139 | char *_kwnames[] = { "self","obj", NULL }; | |
6140 | ||
6141 | self = self; | |
6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
6143 | return NULL; | |
6144 | if (_argo0) { | |
6145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6148 | return NULL; | |
6149 | } | |
6150 | } | |
6151 | { | |
6152 | _arg1 = _obj1; | |
6153 | } | |
6154 | { | |
6155 | wxPy_BEGIN_ALLOW_THREADS; | |
6156 | wxTreeItemData_SetData(_arg0,_arg1); | |
6157 | ||
6158 | wxPy_END_ALLOW_THREADS; | |
6159 | if (PyErr_Occurred()) return NULL; | |
6160 | } Py_INCREF(Py_None); | |
6161 | _resultobj = Py_None; | |
6162 | return _resultobj; | |
6163 | } | |
6164 | ||
6165 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6166 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6167 | PyObject * _resultobj; | |
6168 | wxTreeItemId * _result; | |
6169 | wxPyTreeItemData * _arg0; | |
6170 | PyObject * _argo0 = 0; | |
6171 | char *_kwnames[] = { "self", NULL }; | |
6172 | char _ptemp[128]; | |
6173 | ||
6174 | self = self; | |
6175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6176 | return NULL; | |
6177 | if (_argo0) { | |
6178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6181 | return NULL; | |
6182 | } | |
6183 | } | |
6184 | { | |
6185 | wxPy_BEGIN_ALLOW_THREADS; | |
6186 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
6187 | _result = (wxTreeItemId *) &_result_ref; | |
6188 | ||
6189 | wxPy_END_ALLOW_THREADS; | |
6190 | if (PyErr_Occurred()) return NULL; | |
6191 | } if (_result) { | |
6192 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6193 | _resultobj = Py_BuildValue("s",_ptemp); | |
6194 | } else { | |
6195 | Py_INCREF(Py_None); | |
6196 | _resultobj = Py_None; | |
6197 | } | |
6198 | return _resultobj; | |
6199 | } | |
6200 | ||
6201 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6202 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6203 | PyObject * _resultobj; | |
6204 | wxPyTreeItemData * _arg0; | |
6205 | wxTreeItemId * _arg1; | |
6206 | PyObject * _argo0 = 0; | |
6207 | PyObject * _argo1 = 0; | |
6208 | char *_kwnames[] = { "self","id", NULL }; | |
6209 | ||
6210 | self = self; | |
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) | |
6212 | return NULL; | |
6213 | if (_argo0) { | |
6214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); | |
6217 | return NULL; | |
6218 | } | |
6219 | } | |
6220 | if (_argo1) { | |
6221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); | |
6224 | return NULL; | |
6225 | } | |
6226 | } | |
6227 | { | |
6228 | wxPy_BEGIN_ALLOW_THREADS; | |
6229 | wxTreeItemData_SetId(_arg0,*_arg1); | |
6230 | ||
6231 | wxPy_END_ALLOW_THREADS; | |
6232 | if (PyErr_Occurred()) return NULL; | |
6233 | } Py_INCREF(Py_None); | |
6234 | _resultobj = Py_None; | |
6235 | return _resultobj; | |
6236 | } | |
6237 | ||
6238 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { | |
6239 | wxTreeEvent *src; | |
6240 | wxNotifyEvent *dest; | |
6241 | src = (wxTreeEvent *) ptr; | |
6242 | dest = (wxNotifyEvent *) src; | |
6243 | return (void *) dest; | |
6244 | } | |
6245 | ||
6246 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { | |
6247 | wxTreeEvent *src; | |
6248 | wxCommandEvent *dest; | |
6249 | src = (wxTreeEvent *) ptr; | |
6250 | dest = (wxCommandEvent *) src; | |
6251 | return (void *) dest; | |
6252 | } | |
6253 | ||
6254 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6255 | wxTreeEvent *src; | |
6256 | wxEvent *dest; | |
6257 | src = (wxTreeEvent *) ptr; | |
6258 | dest = (wxEvent *) src; | |
6259 | return (void *) dest; | |
6260 | } | |
6261 | ||
6262 | static void *SwigwxTreeEventTowxObject(void *ptr) { | |
6263 | wxTreeEvent *src; | |
6264 | wxObject *dest; | |
6265 | src = (wxTreeEvent *) ptr; | |
6266 | dest = (wxObject *) src; | |
6267 | return (void *) dest; | |
6268 | } | |
6269 | ||
6270 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) | |
6271 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6272 | PyObject * _resultobj; | |
6273 | wxTreeEvent * _result; | |
6274 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6275 | int _arg1 = (int ) 0; | |
6276 | char *_kwnames[] = { "commandType","id", NULL }; | |
6277 | char _ptemp[128]; | |
6278 | ||
6279 | self = self; | |
6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6281 | return NULL; | |
6282 | { | |
6283 | wxPy_BEGIN_ALLOW_THREADS; | |
6284 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); | |
6285 | ||
6286 | wxPy_END_ALLOW_THREADS; | |
6287 | if (PyErr_Occurred()) return NULL; | |
6288 | } if (_result) { | |
6289 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6290 | _resultobj = Py_BuildValue("s",_ptemp); | |
6291 | } else { | |
6292 | Py_INCREF(Py_None); | |
6293 | _resultobj = Py_None; | |
6294 | } | |
6295 | return _resultobj; | |
6296 | } | |
6297 | ||
6298 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) | |
6299 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6300 | PyObject * _resultobj; | |
6301 | wxTreeItemId * _result; | |
6302 | wxTreeEvent * _arg0; | |
6303 | PyObject * _argo0 = 0; | |
6304 | char *_kwnames[] = { "self", NULL }; | |
6305 | char _ptemp[128]; | |
6306 | ||
6307 | self = self; | |
6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) | |
6309 | return NULL; | |
6310 | if (_argo0) { | |
6311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); | |
6314 | return NULL; | |
6315 | } | |
6316 | } | |
6317 | { | |
6318 | wxPy_BEGIN_ALLOW_THREADS; | |
6319 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
6320 | ||
6321 | wxPy_END_ALLOW_THREADS; | |
6322 | if (PyErr_Occurred()) return NULL; | |
6323 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6324 | _resultobj = Py_BuildValue("s",_ptemp); | |
6325 | return _resultobj; | |
6326 | } | |
6327 | ||
6328 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) | |
6329 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject * _resultobj; | |
6331 | wxTreeItemId * _result; | |
6332 | wxTreeEvent * _arg0; | |
6333 | PyObject * _argo0 = 0; | |
6334 | char *_kwnames[] = { "self", NULL }; | |
6335 | char _ptemp[128]; | |
6336 | ||
6337 | self = self; | |
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) | |
6339 | return NULL; | |
6340 | if (_argo0) { | |
6341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); | |
6344 | return NULL; | |
6345 | } | |
6346 | } | |
6347 | { | |
6348 | wxPy_BEGIN_ALLOW_THREADS; | |
6349 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
6350 | ||
6351 | wxPy_END_ALLOW_THREADS; | |
6352 | if (PyErr_Occurred()) return NULL; | |
6353 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6354 | _resultobj = Py_BuildValue("s",_ptemp); | |
6355 | return _resultobj; | |
6356 | } | |
6357 | ||
6358 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) | |
6359 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6360 | PyObject * _resultobj; | |
6361 | wxPoint * _result; | |
6362 | wxTreeEvent * _arg0; | |
6363 | PyObject * _argo0 = 0; | |
6364 | char *_kwnames[] = { "self", NULL }; | |
6365 | char _ptemp[128]; | |
6366 | ||
6367 | self = self; | |
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) | |
6369 | return NULL; | |
6370 | if (_argo0) { | |
6371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); | |
6374 | return NULL; | |
6375 | } | |
6376 | } | |
6377 | { | |
6378 | wxPy_BEGIN_ALLOW_THREADS; | |
6379 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
6380 | ||
6381 | wxPy_END_ALLOW_THREADS; | |
6382 | if (PyErr_Occurred()) return NULL; | |
6383 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6384 | _resultobj = Py_BuildValue("s",_ptemp); | |
6385 | return _resultobj; | |
6386 | } | |
6387 | ||
6388 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) | |
6389 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6390 | PyObject * _resultobj; | |
6391 | wxKeyEvent * _result; | |
6392 | wxTreeEvent * _arg0; | |
6393 | PyObject * _argo0 = 0; | |
6394 | char *_kwnames[] = { "self", NULL }; | |
6395 | char _ptemp[128]; | |
6396 | ||
6397 | self = self; | |
6398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6399 | return NULL; | |
6400 | if (_argo0) { | |
6401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6404 | return NULL; | |
6405 | } | |
6406 | } | |
6407 | { | |
6408 | wxPy_BEGIN_ALLOW_THREADS; | |
6409 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); | |
6410 | _result = (wxKeyEvent *) &_result_ref; | |
6411 | ||
6412 | wxPy_END_ALLOW_THREADS; | |
6413 | if (PyErr_Occurred()) return NULL; | |
6414 | } if (_result) { | |
6415 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6416 | _resultobj = Py_BuildValue("s",_ptemp); | |
6417 | } else { | |
6418 | Py_INCREF(Py_None); | |
6419 | _resultobj = Py_None; | |
6420 | } | |
6421 | return _resultobj; | |
6422 | } | |
6423 | ||
6424 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) | |
6425 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6426 | PyObject * _resultobj; | |
6427 | int _result; | |
6428 | wxTreeEvent * _arg0; | |
6429 | PyObject * _argo0 = 0; | |
6430 | char *_kwnames[] = { "self", NULL }; | |
6431 | ||
6432 | self = self; | |
6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) | |
6434 | return NULL; | |
6435 | if (_argo0) { | |
6436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); | |
6439 | return NULL; | |
6440 | } | |
6441 | } | |
6442 | { | |
6443 | wxPy_BEGIN_ALLOW_THREADS; | |
6444 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
6445 | ||
6446 | wxPy_END_ALLOW_THREADS; | |
6447 | if (PyErr_Occurred()) return NULL; | |
6448 | } _resultobj = Py_BuildValue("i",_result); | |
6449 | return _resultobj; | |
6450 | } | |
6451 | ||
6452 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
6453 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6454 | PyObject * _resultobj; | |
6455 | wxString * _result; | |
6456 | wxTreeEvent * _arg0; | |
6457 | PyObject * _argo0 = 0; | |
6458 | char *_kwnames[] = { "self", NULL }; | |
6459 | ||
6460 | self = self; | |
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) | |
6462 | return NULL; | |
6463 | if (_argo0) { | |
6464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); | |
6467 | return NULL; | |
6468 | } | |
6469 | } | |
6470 | { | |
6471 | wxPy_BEGIN_ALLOW_THREADS; | |
6472 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); | |
6473 | _result = (wxString *) &_result_ref; | |
6474 | ||
6475 | wxPy_END_ALLOW_THREADS; | |
6476 | if (PyErr_Occurred()) return NULL; | |
6477 | }{ | |
6478 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6479 | } | |
6480 | return _resultobj; | |
6481 | } | |
6482 | ||
6483 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { | |
6484 | wxPyTreeCtrl *src; | |
6485 | wxControl *dest; | |
6486 | src = (wxPyTreeCtrl *) ptr; | |
6487 | dest = (wxControl *) src; | |
6488 | return (void *) dest; | |
6489 | } | |
6490 | ||
6491 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { | |
6492 | wxPyTreeCtrl *src; | |
6493 | wxWindow *dest; | |
6494 | src = (wxPyTreeCtrl *) ptr; | |
6495 | dest = (wxWindow *) src; | |
6496 | return (void *) dest; | |
6497 | } | |
6498 | ||
6499 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { | |
6500 | wxPyTreeCtrl *src; | |
6501 | wxEvtHandler *dest; | |
6502 | src = (wxPyTreeCtrl *) ptr; | |
6503 | dest = (wxEvtHandler *) src; | |
6504 | return (void *) dest; | |
6505 | } | |
6506 | ||
6507 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { | |
6508 | wxPyTreeCtrl *src; | |
6509 | wxObject *dest; | |
6510 | src = (wxPyTreeCtrl *) ptr; | |
6511 | dest = (wxObject *) src; | |
6512 | return (void *) dest; | |
6513 | } | |
6514 | ||
6515 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6516 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6517 | PyObject * _resultobj; | |
6518 | wxPyTreeCtrl * _result; | |
6519 | wxWindow * _arg0; | |
6520 | wxWindowID _arg1 = (wxWindowID ) -1; | |
6521 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6522 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6523 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6524 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
6525 | char * _arg6 = (char *) "wxTreeCtrl"; | |
6526 | PyObject * _argo0 = 0; | |
6527 | wxPoint temp; | |
6528 | PyObject * _obj2 = 0; | |
6529 | wxSize temp0; | |
6530 | PyObject * _obj3 = 0; | |
6531 | PyObject * _argo5 = 0; | |
6532 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
6533 | char _ptemp[128]; | |
6534 | ||
6535 | self = self; | |
6536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
6537 | return NULL; | |
6538 | if (_argo0) { | |
6539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); | |
6542 | return NULL; | |
6543 | } | |
6544 | } | |
6545 | if (_obj2) | |
6546 | { | |
6547 | _arg2 = &temp; | |
6548 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6549 | return NULL; | |
6550 | } | |
6551 | if (_obj3) | |
6552 | { | |
6553 | _arg3 = &temp0; | |
6554 | if (! wxSize_helper(_obj3, &_arg3)) | |
6555 | return NULL; | |
6556 | } | |
6557 | if (_argo5) { | |
6558 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6559 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
6560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); | |
6561 | return NULL; | |
6562 | } | |
6563 | } | |
6564 | { | |
6565 | wxPy_BEGIN_ALLOW_THREADS; | |
6566 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
6567 | ||
6568 | wxPy_END_ALLOW_THREADS; | |
6569 | if (PyErr_Occurred()) return NULL; | |
6570 | } if (_result) { | |
6571 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6572 | _resultobj = Py_BuildValue("s",_ptemp); | |
6573 | } else { | |
6574 | Py_INCREF(Py_None); | |
6575 | _resultobj = Py_None; | |
6576 | } | |
6577 | return _resultobj; | |
6578 | } | |
6579 | ||
6580 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) | |
6581 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6582 | PyObject * _resultobj; | |
6583 | wxPyTreeCtrl * _result; | |
6584 | char *_kwnames[] = { NULL }; | |
6585 | char _ptemp[128]; | |
6586 | ||
6587 | self = self; | |
6588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6589 | return NULL; | |
6590 | { | |
6591 | wxPy_BEGIN_ALLOW_THREADS; | |
6592 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); | |
6593 | ||
6594 | wxPy_END_ALLOW_THREADS; | |
6595 | if (PyErr_Occurred()) return NULL; | |
6596 | } if (_result) { | |
6597 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6598 | _resultobj = Py_BuildValue("s",_ptemp); | |
6599 | } else { | |
6600 | Py_INCREF(Py_None); | |
6601 | _resultobj = Py_None; | |
6602 | } | |
6603 | return _resultobj; | |
6604 | } | |
6605 | ||
6606 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6607 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6608 | PyObject * _resultobj; | |
6609 | bool _result; | |
6610 | wxPyTreeCtrl * _arg0; | |
6611 | wxWindow * _arg1; | |
6612 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6613 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6614 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6615 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6616 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6617 | char * _arg7 = (char *) "wxTreeCtrl"; | |
6618 | PyObject * _argo0 = 0; | |
6619 | PyObject * _argo1 = 0; | |
6620 | wxPoint temp; | |
6621 | PyObject * _obj3 = 0; | |
6622 | wxSize temp0; | |
6623 | PyObject * _obj4 = 0; | |
6624 | PyObject * _argo6 = 0; | |
6625 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
6626 | ||
6627 | self = self; | |
6628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
6629 | return NULL; | |
6630 | if (_argo0) { | |
6631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6634 | return NULL; | |
6635 | } | |
6636 | } | |
6637 | if (_argo1) { | |
6638 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6639 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6641 | return NULL; | |
6642 | } | |
6643 | } | |
6644 | if (_obj3) | |
6645 | { | |
6646 | _arg3 = &temp; | |
6647 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6648 | return NULL; | |
6649 | } | |
6650 | if (_obj4) | |
6651 | { | |
6652 | _arg4 = &temp0; | |
6653 | if (! wxSize_helper(_obj4, &_arg4)) | |
6654 | return NULL; | |
6655 | } | |
6656 | if (_argo6) { | |
6657 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6658 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6660 | return NULL; | |
6661 | } | |
6662 | } | |
6663 | { | |
6664 | wxPy_BEGIN_ALLOW_THREADS; | |
6665 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
6666 | ||
6667 | wxPy_END_ALLOW_THREADS; | |
6668 | if (PyErr_Occurred()) return NULL; | |
6669 | } _resultobj = Py_BuildValue("i",_result); | |
6670 | return _resultobj; | |
6671 | } | |
6672 | ||
6673 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
6674 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6675 | PyObject * _resultobj; | |
6676 | wxPyTreeCtrl * _arg0; | |
6677 | PyObject * _arg1; | |
6678 | PyObject * _arg2; | |
6679 | PyObject * _argo0 = 0; | |
6680 | PyObject * _obj1 = 0; | |
6681 | PyObject * _obj2 = 0; | |
6682 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6683 | ||
6684 | self = self; | |
6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
6686 | return NULL; | |
6687 | if (_argo0) { | |
6688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); | |
6691 | return NULL; | |
6692 | } | |
6693 | } | |
6694 | { | |
6695 | _arg1 = _obj1; | |
6696 | } | |
6697 | { | |
6698 | _arg2 = _obj2; | |
6699 | } | |
6700 | { | |
6701 | wxPy_BEGIN_ALLOW_THREADS; | |
6702 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); | |
6703 | ||
6704 | wxPy_END_ALLOW_THREADS; | |
6705 | if (PyErr_Occurred()) return NULL; | |
6706 | } Py_INCREF(Py_None); | |
6707 | _resultobj = Py_None; | |
6708 | return _resultobj; | |
6709 | } | |
6710 | ||
6711 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) | |
6712 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6713 | PyObject * _resultobj; | |
6714 | size_t _result; | |
6715 | wxPyTreeCtrl * _arg0; | |
6716 | PyObject * _argo0 = 0; | |
6717 | char *_kwnames[] = { "self", NULL }; | |
6718 | ||
6719 | self = self; | |
6720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) | |
6721 | return NULL; | |
6722 | if (_argo0) { | |
6723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
6726 | return NULL; | |
6727 | } | |
6728 | } | |
6729 | { | |
6730 | wxPy_BEGIN_ALLOW_THREADS; | |
6731 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); | |
6732 | ||
6733 | wxPy_END_ALLOW_THREADS; | |
6734 | if (PyErr_Occurred()) return NULL; | |
6735 | } _resultobj = Py_BuildValue("i",_result); | |
6736 | return _resultobj; | |
6737 | } | |
6738 | ||
6739 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) | |
6740 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6741 | PyObject * _resultobj; | |
6742 | unsigned int _result; | |
6743 | wxPyTreeCtrl * _arg0; | |
6744 | PyObject * _argo0 = 0; | |
6745 | char *_kwnames[] = { "self", NULL }; | |
6746 | ||
6747 | self = self; | |
6748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) | |
6749 | return NULL; | |
6750 | if (_argo0) { | |
6751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
6754 | return NULL; | |
6755 | } | |
6756 | } | |
6757 | { | |
6758 | wxPy_BEGIN_ALLOW_THREADS; | |
6759 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
6760 | ||
6761 | wxPy_END_ALLOW_THREADS; | |
6762 | if (PyErr_Occurred()) return NULL; | |
6763 | } _resultobj = Py_BuildValue("i",_result); | |
6764 | return _resultobj; | |
6765 | } | |
6766 | ||
6767 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) | |
6768 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6769 | PyObject * _resultobj; | |
6770 | wxPyTreeCtrl * _arg0; | |
6771 | unsigned int _arg1; | |
6772 | PyObject * _argo0 = 0; | |
6773 | char *_kwnames[] = { "self","indent", NULL }; | |
6774 | ||
6775 | self = self; | |
6776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) | |
6777 | return NULL; | |
6778 | if (_argo0) { | |
6779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
6782 | return NULL; | |
6783 | } | |
6784 | } | |
6785 | { | |
6786 | wxPy_BEGIN_ALLOW_THREADS; | |
6787 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
6788 | ||
6789 | wxPy_END_ALLOW_THREADS; | |
6790 | if (PyErr_Occurred()) return NULL; | |
6791 | } Py_INCREF(Py_None); | |
6792 | _resultobj = Py_None; | |
6793 | return _resultobj; | |
6794 | } | |
6795 | ||
6796 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) | |
6797 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6798 | PyObject * _resultobj; | |
6799 | wxImageList * _result; | |
6800 | wxPyTreeCtrl * _arg0; | |
6801 | PyObject * _argo0 = 0; | |
6802 | char *_kwnames[] = { "self", NULL }; | |
6803 | ||
6804 | self = self; | |
6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) | |
6806 | return NULL; | |
6807 | if (_argo0) { | |
6808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
6811 | return NULL; | |
6812 | } | |
6813 | } | |
6814 | { | |
6815 | wxPy_BEGIN_ALLOW_THREADS; | |
6816 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
6817 | ||
6818 | wxPy_END_ALLOW_THREADS; | |
6819 | if (PyErr_Occurred()) return NULL; | |
6820 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6821 | return _resultobj; | |
6822 | } | |
6823 | ||
6824 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) | |
6825 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6826 | PyObject * _resultobj; | |
6827 | wxImageList * _result; | |
6828 | wxPyTreeCtrl * _arg0; | |
6829 | PyObject * _argo0 = 0; | |
6830 | char *_kwnames[] = { "self", NULL }; | |
6831 | ||
6832 | self = self; | |
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) | |
6834 | return NULL; | |
6835 | if (_argo0) { | |
6836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
6839 | return NULL; | |
6840 | } | |
6841 | } | |
6842 | { | |
6843 | wxPy_BEGIN_ALLOW_THREADS; | |
6844 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
6845 | ||
6846 | wxPy_END_ALLOW_THREADS; | |
6847 | if (PyErr_Occurred()) return NULL; | |
6848 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6849 | return _resultobj; | |
6850 | } | |
6851 | ||
6852 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) | |
6853 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6854 | PyObject * _resultobj; | |
6855 | wxPyTreeCtrl * _arg0; | |
6856 | wxImageList * _arg1; | |
6857 | PyObject * _argo0 = 0; | |
6858 | PyObject * _argo1 = 0; | |
6859 | char *_kwnames[] = { "self","imageList", NULL }; | |
6860 | ||
6861 | self = self; | |
6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) | |
6863 | return NULL; | |
6864 | if (_argo0) { | |
6865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
6868 | return NULL; | |
6869 | } | |
6870 | } | |
6871 | if (_argo1) { | |
6872 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6873 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); | |
6875 | return NULL; | |
6876 | } | |
6877 | } | |
6878 | { | |
6879 | wxPy_BEGIN_ALLOW_THREADS; | |
6880 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
6881 | ||
6882 | wxPy_END_ALLOW_THREADS; | |
6883 | if (PyErr_Occurred()) return NULL; | |
6884 | } Py_INCREF(Py_None); | |
6885 | _resultobj = Py_None; | |
6886 | return _resultobj; | |
6887 | } | |
6888 | ||
6889 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) | |
6890 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6891 | PyObject * _resultobj; | |
6892 | wxPyTreeCtrl * _arg0; | |
6893 | wxImageList * _arg1; | |
6894 | PyObject * _argo0 = 0; | |
6895 | PyObject * _argo1 = 0; | |
6896 | char *_kwnames[] = { "self","imageList", NULL }; | |
6897 | ||
6898 | self = self; | |
6899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) | |
6900 | return NULL; | |
6901 | if (_argo0) { | |
6902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
6905 | return NULL; | |
6906 | } | |
6907 | } | |
6908 | if (_argo1) { | |
6909 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6910 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); | |
6912 | return NULL; | |
6913 | } | |
6914 | } | |
6915 | { | |
6916 | wxPy_BEGIN_ALLOW_THREADS; | |
6917 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
6918 | ||
6919 | wxPy_END_ALLOW_THREADS; | |
6920 | if (PyErr_Occurred()) return NULL; | |
6921 | } Py_INCREF(Py_None); | |
6922 | _resultobj = Py_None; | |
6923 | return _resultobj; | |
6924 | } | |
6925 | ||
6926 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) | |
6927 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6928 | PyObject * _resultobj; | |
6929 | wxPyTreeCtrl * _arg0; | |
6930 | wxImageList * _arg1; | |
6931 | PyObject * _argo0 = 0; | |
6932 | PyObject * _argo1 = 0; | |
6933 | char *_kwnames[] = { "self","imageList", NULL }; | |
6934 | ||
6935 | self = self; | |
6936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6937 | return NULL; | |
6938 | if (_argo0) { | |
6939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6942 | return NULL; | |
6943 | } | |
6944 | } | |
6945 | if (_argo1) { | |
6946 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6947 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6949 | return NULL; | |
6950 | } | |
6951 | } | |
6952 | { | |
6953 | wxPy_BEGIN_ALLOW_THREADS; | |
6954 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
6955 | ||
6956 | wxPy_END_ALLOW_THREADS; | |
6957 | if (PyErr_Occurred()) return NULL; | |
6958 | } Py_INCREF(Py_None); | |
6959 | _resultobj = Py_None; | |
6960 | return _resultobj; | |
6961 | } | |
6962 | ||
6963 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6964 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject * _resultobj; | |
6966 | wxPyTreeCtrl * _arg0; | |
6967 | wxImageList * _arg1; | |
6968 | PyObject * _argo0 = 0; | |
6969 | PyObject * _argo1 = 0; | |
6970 | char *_kwnames[] = { "self","imageList", NULL }; | |
6971 | ||
6972 | self = self; | |
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6974 | return NULL; | |
6975 | if (_argo0) { | |
6976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6979 | return NULL; | |
6980 | } | |
6981 | } | |
6982 | if (_argo1) { | |
6983 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6984 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6986 | return NULL; | |
6987 | } | |
6988 | } | |
6989 | { | |
6990 | wxPy_BEGIN_ALLOW_THREADS; | |
6991 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); | |
6992 | ||
6993 | wxPy_END_ALLOW_THREADS; | |
6994 | if (PyErr_Occurred()) return NULL; | |
6995 | } Py_INCREF(Py_None); | |
6996 | _resultobj = Py_None; | |
6997 | return _resultobj; | |
6998 | } | |
6999 | ||
7000 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) | |
7001 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7002 | PyObject * _resultobj; | |
7003 | unsigned int _result; | |
7004 | wxPyTreeCtrl * _arg0; | |
7005 | PyObject * _argo0 = 0; | |
7006 | char *_kwnames[] = { "self", NULL }; | |
7007 | ||
7008 | self = self; | |
7009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
7010 | return NULL; | |
7011 | if (_argo0) { | |
7012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
7015 | return NULL; | |
7016 | } | |
7017 | } | |
7018 | { | |
7019 | wxPy_BEGIN_ALLOW_THREADS; | |
7020 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
7021 | ||
7022 | wxPy_END_ALLOW_THREADS; | |
7023 | if (PyErr_Occurred()) return NULL; | |
7024 | } _resultobj = Py_BuildValue("i",_result); | |
7025 | return _resultobj; | |
7026 | } | |
7027 | ||
7028 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
7029 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7030 | PyObject * _resultobj; | |
7031 | wxPyTreeCtrl * _arg0; | |
7032 | unsigned int _arg1; | |
7033 | PyObject * _argo0 = 0; | |
7034 | char *_kwnames[] = { "self","spacing", NULL }; | |
7035 | ||
7036 | self = self; | |
7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
7038 | return NULL; | |
7039 | if (_argo0) { | |
7040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
7043 | return NULL; | |
7044 | } | |
7045 | } | |
7046 | { | |
7047 | wxPy_BEGIN_ALLOW_THREADS; | |
7048 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
7049 | ||
7050 | wxPy_END_ALLOW_THREADS; | |
7051 | if (PyErr_Occurred()) return NULL; | |
7052 | } Py_INCREF(Py_None); | |
7053 | _resultobj = Py_None; | |
7054 | return _resultobj; | |
7055 | } | |
7056 | ||
7057 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
7058 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7059 | PyObject * _resultobj; | |
7060 | wxString * _result; | |
7061 | wxPyTreeCtrl * _arg0; | |
7062 | wxTreeItemId * _arg1; | |
7063 | PyObject * _argo0 = 0; | |
7064 | PyObject * _argo1 = 0; | |
7065 | char *_kwnames[] = { "self","item", NULL }; | |
7066 | ||
7067 | self = self; | |
7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) | |
7069 | return NULL; | |
7070 | if (_argo0) { | |
7071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
7074 | return NULL; | |
7075 | } | |
7076 | } | |
7077 | if (_argo1) { | |
7078 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); | |
7081 | return NULL; | |
7082 | } | |
7083 | } | |
7084 | { | |
7085 | wxPy_BEGIN_ALLOW_THREADS; | |
7086 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
7087 | ||
7088 | wxPy_END_ALLOW_THREADS; | |
7089 | if (PyErr_Occurred()) return NULL; | |
7090 | }{ | |
7091 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7092 | } | |
7093 | { | |
7094 | delete _result; | |
7095 | } | |
7096 | return _resultobj; | |
7097 | } | |
7098 | ||
7099 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) | |
7100 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7101 | PyObject * _resultobj; | |
7102 | int _result; | |
7103 | wxPyTreeCtrl * _arg0; | |
7104 | wxTreeItemId * _arg1; | |
7105 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); | |
7106 | PyObject * _argo0 = 0; | |
7107 | PyObject * _argo1 = 0; | |
7108 | char *_kwnames[] = { "self","item","which", NULL }; | |
7109 | ||
7110 | self = self; | |
7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7112 | return NULL; | |
7113 | if (_argo0) { | |
7114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
7117 | return NULL; | |
7118 | } | |
7119 | } | |
7120 | if (_argo1) { | |
7121 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7122 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); | |
7124 | return NULL; | |
7125 | } | |
7126 | } | |
7127 | { | |
7128 | wxPy_BEGIN_ALLOW_THREADS; | |
7129 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); | |
7130 | ||
7131 | wxPy_END_ALLOW_THREADS; | |
7132 | if (PyErr_Occurred()) return NULL; | |
7133 | } _resultobj = Py_BuildValue("i",_result); | |
7134 | return _resultobj; | |
7135 | } | |
7136 | ||
7137 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) | |
7138 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7139 | PyObject * _resultobj; | |
7140 | int _result; | |
7141 | wxPyTreeCtrl * _arg0; | |
7142 | wxTreeItemId * _arg1; | |
7143 | PyObject * _argo0 = 0; | |
7144 | PyObject * _argo1 = 0; | |
7145 | char *_kwnames[] = { "self","item", NULL }; | |
7146 | ||
7147 | self = self; | |
7148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) | |
7149 | return NULL; | |
7150 | if (_argo0) { | |
7151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
7154 | return NULL; | |
7155 | } | |
7156 | } | |
7157 | if (_argo1) { | |
7158 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7159 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); | |
7161 | return NULL; | |
7162 | } | |
7163 | } | |
7164 | { | |
7165 | wxPy_BEGIN_ALLOW_THREADS; | |
7166 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
7167 | ||
7168 | wxPy_END_ALLOW_THREADS; | |
7169 | if (PyErr_Occurred()) return NULL; | |
7170 | } _resultobj = Py_BuildValue("i",_result); | |
7171 | return _resultobj; | |
7172 | } | |
7173 | ||
7174 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
7175 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7176 | PyObject * _resultobj; | |
7177 | wxPyTreeCtrl * _arg0; | |
7178 | wxTreeItemId * _arg1; | |
7179 | wxString * _arg2; | |
7180 | PyObject * _argo0 = 0; | |
7181 | PyObject * _argo1 = 0; | |
7182 | PyObject * _obj2 = 0; | |
7183 | char *_kwnames[] = { "self","item","text", NULL }; | |
7184 | ||
7185 | self = self; | |
7186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7187 | return NULL; | |
7188 | if (_argo0) { | |
7189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
7192 | return NULL; | |
7193 | } | |
7194 | } | |
7195 | if (_argo1) { | |
7196 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7197 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); | |
7199 | return NULL; | |
7200 | } | |
7201 | } | |
7202 | { | |
7203 | #if PYTHON_API_VERSION >= 1009 | |
7204 | char* tmpPtr; int tmpSize; | |
7205 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7206 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7207 | return NULL; | |
7208 | } | |
7209 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7210 | return NULL; | |
7211 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7212 | #else | |
7213 | if (!PyString_Check(_obj2)) { | |
7214 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7215 | return NULL; | |
7216 | } | |
7217 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7218 | #endif | |
7219 | } | |
7220 | { | |
7221 | wxPy_BEGIN_ALLOW_THREADS; | |
7222 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
7223 | ||
7224 | wxPy_END_ALLOW_THREADS; | |
7225 | if (PyErr_Occurred()) return NULL; | |
7226 | } Py_INCREF(Py_None); | |
7227 | _resultobj = Py_None; | |
7228 | { | |
7229 | if (_obj2) | |
7230 | delete _arg2; | |
7231 | } | |
7232 | return _resultobj; | |
7233 | } | |
7234 | ||
7235 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
7236 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7237 | PyObject * _resultobj; | |
7238 | wxPyTreeCtrl * _arg0; | |
7239 | wxTreeItemId * _arg1; | |
7240 | int _arg2; | |
7241 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); | |
7242 | PyObject * _argo0 = 0; | |
7243 | PyObject * _argo1 = 0; | |
7244 | char *_kwnames[] = { "self","item","image","which", NULL }; | |
7245 | ||
7246 | self = self; | |
7247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
7248 | return NULL; | |
7249 | if (_argo0) { | |
7250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
7253 | return NULL; | |
7254 | } | |
7255 | } | |
7256 | if (_argo1) { | |
7257 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7258 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); | |
7260 | return NULL; | |
7261 | } | |
7262 | } | |
7263 | { | |
7264 | wxPy_BEGIN_ALLOW_THREADS; | |
7265 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); | |
7266 | ||
7267 | wxPy_END_ALLOW_THREADS; | |
7268 | if (PyErr_Occurred()) return NULL; | |
7269 | } Py_INCREF(Py_None); | |
7270 | _resultobj = Py_None; | |
7271 | return _resultobj; | |
7272 | } | |
7273 | ||
7274 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) | |
7275 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7276 | PyObject * _resultobj; | |
7277 | wxPyTreeCtrl * _arg0; | |
7278 | wxTreeItemId * _arg1; | |
7279 | int _arg2; | |
7280 | PyObject * _argo0 = 0; | |
7281 | PyObject * _argo1 = 0; | |
7282 | char *_kwnames[] = { "self","item","image", NULL }; | |
7283 | ||
7284 | self = self; | |
7285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7286 | return NULL; | |
7287 | if (_argo0) { | |
7288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
7291 | return NULL; | |
7292 | } | |
7293 | } | |
7294 | if (_argo1) { | |
7295 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7296 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); | |
7298 | return NULL; | |
7299 | } | |
7300 | } | |
7301 | { | |
7302 | wxPy_BEGIN_ALLOW_THREADS; | |
7303 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
7304 | ||
7305 | wxPy_END_ALLOW_THREADS; | |
7306 | if (PyErr_Occurred()) return NULL; | |
7307 | } Py_INCREF(Py_None); | |
7308 | _resultobj = Py_None; | |
7309 | return _resultobj; | |
7310 | } | |
7311 | ||
7312 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
7313 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7314 | PyObject * _resultobj; | |
7315 | wxPyTreeCtrl * _arg0; | |
7316 | wxTreeItemId * _arg1; | |
7317 | bool _arg2 = (bool ) TRUE; | |
7318 | PyObject * _argo0 = 0; | |
7319 | PyObject * _argo1 = 0; | |
7320 | int tempbool2 = (int) TRUE; | |
7321 | char *_kwnames[] = { "self","item","hasChildren", NULL }; | |
7322 | ||
7323 | self = self; | |
7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
7325 | return NULL; | |
7326 | if (_argo0) { | |
7327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
7330 | return NULL; | |
7331 | } | |
7332 | } | |
7333 | if (_argo1) { | |
7334 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7335 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); | |
7337 | return NULL; | |
7338 | } | |
7339 | } | |
7340 | _arg2 = (bool ) tempbool2; | |
7341 | { | |
7342 | wxPy_BEGIN_ALLOW_THREADS; | |
7343 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
7344 | ||
7345 | wxPy_END_ALLOW_THREADS; | |
7346 | if (PyErr_Occurred()) return NULL; | |
7347 | } Py_INCREF(Py_None); | |
7348 | _resultobj = Py_None; | |
7349 | return _resultobj; | |
7350 | } | |
7351 | ||
7352 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { | |
7353 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7354 | if (data == NULL) { | |
7355 | data = new wxPyTreeItemData(); | |
7356 | data->SetId(item); // set the id | |
7357 | self->SetItemData(item, data); | |
7358 | } | |
7359 | return data; | |
7360 | } | |
7361 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7362 | PyObject * _resultobj; | |
7363 | wxPyTreeItemData * _result; | |
7364 | wxPyTreeCtrl * _arg0; | |
7365 | wxTreeItemId * _arg1; | |
7366 | PyObject * _argo0 = 0; | |
7367 | PyObject * _argo1 = 0; | |
7368 | char *_kwnames[] = { "self","item", NULL }; | |
7369 | char _ptemp[128]; | |
7370 | ||
7371 | self = self; | |
7372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) | |
7373 | return NULL; | |
7374 | if (_argo0) { | |
7375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
7378 | return NULL; | |
7379 | } | |
7380 | } | |
7381 | if (_argo1) { | |
7382 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7383 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); | |
7385 | return NULL; | |
7386 | } | |
7387 | } | |
7388 | { | |
7389 | wxPy_BEGIN_ALLOW_THREADS; | |
7390 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); | |
7391 | ||
7392 | wxPy_END_ALLOW_THREADS; | |
7393 | if (PyErr_Occurred()) return NULL; | |
7394 | } if (_result) { | |
7395 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7396 | _resultobj = Py_BuildValue("s",_ptemp); | |
7397 | } else { | |
7398 | Py_INCREF(Py_None); | |
7399 | _resultobj = Py_None; | |
7400 | } | |
7401 | return _resultobj; | |
7402 | } | |
7403 | ||
7404 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { | |
7405 | data->SetId(item); // set the id | |
7406 | self->SetItemData(item, data); | |
7407 | } | |
7408 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7409 | PyObject * _resultobj; | |
7410 | wxPyTreeCtrl * _arg0; | |
7411 | wxTreeItemId * _arg1; | |
7412 | wxPyTreeItemData * _arg2; | |
7413 | PyObject * _argo0 = 0; | |
7414 | PyObject * _argo1 = 0; | |
7415 | PyObject * _argo2 = 0; | |
7416 | char *_kwnames[] = { "self","item","data", NULL }; | |
7417 | ||
7418 | self = self; | |
7419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) | |
7420 | return NULL; | |
7421 | if (_argo0) { | |
7422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
7425 | return NULL; | |
7426 | } | |
7427 | } | |
7428 | if (_argo1) { | |
7429 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7430 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); | |
7432 | return NULL; | |
7433 | } | |
7434 | } | |
7435 | if (_argo2) { | |
7436 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7437 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
7438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); | |
7439 | return NULL; | |
7440 | } | |
7441 | } | |
7442 | { | |
7443 | wxPy_BEGIN_ALLOW_THREADS; | |
7444 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); | |
7445 | ||
7446 | wxPy_END_ALLOW_THREADS; | |
7447 | if (PyErr_Occurred()) return NULL; | |
7448 | } Py_INCREF(Py_None); | |
7449 | _resultobj = Py_None; | |
7450 | return _resultobj; | |
7451 | } | |
7452 | ||
7453 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { | |
7454 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7455 | if (data == NULL) { | |
7456 | data = new wxPyTreeItemData(); | |
7457 | data->SetId(item); // set the id | |
7458 | self->SetItemData(item, data); | |
7459 | } | |
7460 | return data->GetData(); | |
7461 | } | |
7462 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject * _resultobj; | |
7464 | PyObject * _result; | |
7465 | wxPyTreeCtrl * _arg0; | |
7466 | wxTreeItemId * _arg1; | |
7467 | PyObject * _argo0 = 0; | |
7468 | PyObject * _argo1 = 0; | |
7469 | char *_kwnames[] = { "self","item", NULL }; | |
7470 | ||
7471 | self = self; | |
7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) | |
7473 | return NULL; | |
7474 | if (_argo0) { | |
7475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
7478 | return NULL; | |
7479 | } | |
7480 | } | |
7481 | if (_argo1) { | |
7482 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7483 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); | |
7485 | return NULL; | |
7486 | } | |
7487 | } | |
7488 | { | |
7489 | wxPy_BEGIN_ALLOW_THREADS; | |
7490 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); | |
7491 | ||
7492 | wxPy_END_ALLOW_THREADS; | |
7493 | if (PyErr_Occurred()) return NULL; | |
7494 | }{ | |
7495 | _resultobj = _result; | |
7496 | } | |
7497 | return _resultobj; | |
7498 | } | |
7499 | ||
7500 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { | |
7501 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7502 | if (data == NULL) { | |
7503 | data = new wxPyTreeItemData(obj); | |
7504 | data->SetId(item); // set the id | |
7505 | self->SetItemData(item, data); | |
7506 | } else | |
7507 | data->SetData(obj); | |
7508 | } | |
7509 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject * _resultobj; | |
7511 | wxPyTreeCtrl * _arg0; | |
7512 | wxTreeItemId * _arg1; | |
7513 | PyObject * _arg2; | |
7514 | PyObject * _argo0 = 0; | |
7515 | PyObject * _argo1 = 0; | |
7516 | PyObject * _obj2 = 0; | |
7517 | char *_kwnames[] = { "self","item","obj", NULL }; | |
7518 | ||
7519 | self = self; | |
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7521 | return NULL; | |
7522 | if (_argo0) { | |
7523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
7526 | return NULL; | |
7527 | } | |
7528 | } | |
7529 | if (_argo1) { | |
7530 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7531 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); | |
7533 | return NULL; | |
7534 | } | |
7535 | } | |
7536 | { | |
7537 | _arg2 = _obj2; | |
7538 | } | |
7539 | { | |
7540 | wxPy_BEGIN_ALLOW_THREADS; | |
7541 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); | |
7542 | ||
7543 | wxPy_END_ALLOW_THREADS; | |
7544 | if (PyErr_Occurred()) return NULL; | |
7545 | } Py_INCREF(Py_None); | |
7546 | _resultobj = Py_None; | |
7547 | return _resultobj; | |
7548 | } | |
7549 | ||
7550 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) | |
7551 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7552 | PyObject * _resultobj; | |
7553 | bool _result; | |
7554 | wxPyTreeCtrl * _arg0; | |
7555 | wxTreeItemId * _arg1; | |
7556 | PyObject * _argo0 = 0; | |
7557 | PyObject * _argo1 = 0; | |
7558 | char *_kwnames[] = { "self","item", NULL }; | |
7559 | ||
7560 | self = self; | |
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) | |
7562 | return NULL; | |
7563 | if (_argo0) { | |
7564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
7567 | return NULL; | |
7568 | } | |
7569 | } | |
7570 | if (_argo1) { | |
7571 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7572 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); | |
7574 | return NULL; | |
7575 | } | |
7576 | } | |
7577 | { | |
7578 | wxPy_BEGIN_ALLOW_THREADS; | |
7579 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
7580 | ||
7581 | wxPy_END_ALLOW_THREADS; | |
7582 | if (PyErr_Occurred()) return NULL; | |
7583 | } _resultobj = Py_BuildValue("i",_result); | |
7584 | return _resultobj; | |
7585 | } | |
7586 | ||
7587 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) | |
7588 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7589 | PyObject * _resultobj; | |
7590 | bool _result; | |
7591 | wxPyTreeCtrl * _arg0; | |
7592 | wxTreeItemId * _arg1; | |
7593 | PyObject * _argo0 = 0; | |
7594 | PyObject * _argo1 = 0; | |
7595 | char *_kwnames[] = { "self","item", NULL }; | |
7596 | ||
7597 | self = self; | |
7598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) | |
7599 | return NULL; | |
7600 | if (_argo0) { | |
7601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
7604 | return NULL; | |
7605 | } | |
7606 | } | |
7607 | if (_argo1) { | |
7608 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7609 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); | |
7611 | return NULL; | |
7612 | } | |
7613 | } | |
7614 | { | |
7615 | wxPy_BEGIN_ALLOW_THREADS; | |
7616 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
7617 | ||
7618 | wxPy_END_ALLOW_THREADS; | |
7619 | if (PyErr_Occurred()) return NULL; | |
7620 | } _resultobj = Py_BuildValue("i",_result); | |
7621 | return _resultobj; | |
7622 | } | |
7623 | ||
7624 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) | |
7625 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7626 | PyObject * _resultobj; | |
7627 | bool _result; | |
7628 | wxPyTreeCtrl * _arg0; | |
7629 | wxTreeItemId * _arg1; | |
7630 | PyObject * _argo0 = 0; | |
7631 | PyObject * _argo1 = 0; | |
7632 | char *_kwnames[] = { "self","item", NULL }; | |
7633 | ||
7634 | self = self; | |
7635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) | |
7636 | return NULL; | |
7637 | if (_argo0) { | |
7638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
7641 | return NULL; | |
7642 | } | |
7643 | } | |
7644 | if (_argo1) { | |
7645 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7646 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); | |
7648 | return NULL; | |
7649 | } | |
7650 | } | |
7651 | { | |
7652 | wxPy_BEGIN_ALLOW_THREADS; | |
7653 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
7654 | ||
7655 | wxPy_END_ALLOW_THREADS; | |
7656 | if (PyErr_Occurred()) return NULL; | |
7657 | } _resultobj = Py_BuildValue("i",_result); | |
7658 | return _resultobj; | |
7659 | } | |
7660 | ||
7661 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
7662 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7663 | PyObject * _resultobj; | |
7664 | bool _result; | |
7665 | wxPyTreeCtrl * _arg0; | |
7666 | wxTreeItemId * _arg1; | |
7667 | PyObject * _argo0 = 0; | |
7668 | PyObject * _argo1 = 0; | |
7669 | char *_kwnames[] = { "self","item", NULL }; | |
7670 | ||
7671 | self = self; | |
7672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) | |
7673 | return NULL; | |
7674 | if (_argo0) { | |
7675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
7678 | return NULL; | |
7679 | } | |
7680 | } | |
7681 | if (_argo1) { | |
7682 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7683 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); | |
7685 | return NULL; | |
7686 | } | |
7687 | } | |
7688 | { | |
7689 | wxPy_BEGIN_ALLOW_THREADS; | |
7690 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
7691 | ||
7692 | wxPy_END_ALLOW_THREADS; | |
7693 | if (PyErr_Occurred()) return NULL; | |
7694 | } _resultobj = Py_BuildValue("i",_result); | |
7695 | return _resultobj; | |
7696 | } | |
7697 | ||
7698 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
7699 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7700 | PyObject * _resultobj; | |
7701 | wxTreeItemId * _result; | |
7702 | wxPyTreeCtrl * _arg0; | |
7703 | PyObject * _argo0 = 0; | |
7704 | char *_kwnames[] = { "self", NULL }; | |
7705 | char _ptemp[128]; | |
7706 | ||
7707 | self = self; | |
7708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) | |
7709 | return NULL; | |
7710 | if (_argo0) { | |
7711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
7714 | return NULL; | |
7715 | } | |
7716 | } | |
7717 | { | |
7718 | wxPy_BEGIN_ALLOW_THREADS; | |
7719 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
7720 | ||
7721 | wxPy_END_ALLOW_THREADS; | |
7722 | if (PyErr_Occurred()) return NULL; | |
7723 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7724 | _resultobj = Py_BuildValue("s",_ptemp); | |
7725 | return _resultobj; | |
7726 | } | |
7727 | ||
7728 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
7729 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7730 | PyObject * _resultobj; | |
7731 | wxTreeItemId * _result; | |
7732 | wxPyTreeCtrl * _arg0; | |
7733 | PyObject * _argo0 = 0; | |
7734 | char *_kwnames[] = { "self", NULL }; | |
7735 | char _ptemp[128]; | |
7736 | ||
7737 | self = self; | |
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) | |
7739 | return NULL; | |
7740 | if (_argo0) { | |
7741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
7744 | return NULL; | |
7745 | } | |
7746 | } | |
7747 | { | |
7748 | wxPy_BEGIN_ALLOW_THREADS; | |
7749 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
7750 | ||
7751 | wxPy_END_ALLOW_THREADS; | |
7752 | if (PyErr_Occurred()) return NULL; | |
7753 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7754 | _resultobj = Py_BuildValue("s",_ptemp); | |
7755 | return _resultobj; | |
7756 | } | |
7757 | ||
7758 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) | |
7759 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7760 | PyObject * _resultobj; | |
7761 | wxTreeItemId * _result; | |
7762 | wxPyTreeCtrl * _arg0; | |
7763 | wxTreeItemId * _arg1; | |
7764 | PyObject * _argo0 = 0; | |
7765 | PyObject * _argo1 = 0; | |
7766 | char *_kwnames[] = { "self","item", NULL }; | |
7767 | char _ptemp[128]; | |
7768 | ||
7769 | self = self; | |
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) | |
7771 | return NULL; | |
7772 | if (_argo0) { | |
7773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
7776 | return NULL; | |
7777 | } | |
7778 | } | |
7779 | if (_argo1) { | |
7780 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7781 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); | |
7783 | return NULL; | |
7784 | } | |
7785 | } | |
7786 | { | |
7787 | wxPy_BEGIN_ALLOW_THREADS; | |
7788 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); | |
7789 | ||
7790 | wxPy_END_ALLOW_THREADS; | |
7791 | if (PyErr_Occurred()) return NULL; | |
7792 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7793 | _resultobj = Py_BuildValue("s",_ptemp); | |
7794 | return _resultobj; | |
7795 | } | |
7796 | ||
7797 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { | |
7798 | wxPyTState* state = wxPyBeginBlockThreads(); | |
7799 | PyObject* rval = PyList_New(0); | |
7800 | wxArrayTreeItemIds array; | |
7801 | size_t num, x; | |
7802 | num = self->GetSelections(array); | |
7803 | for (x=0; x < num; x++) { | |
7804 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
7805 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
7806 | PyList_Append(rval, item); | |
7807 | } | |
7808 | wxPyEndBlockThreads(state); | |
7809 | return rval; | |
7810 | } | |
7811 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7812 | PyObject * _resultobj; | |
7813 | PyObject * _result; | |
7814 | wxPyTreeCtrl * _arg0; | |
7815 | PyObject * _argo0 = 0; | |
7816 | char *_kwnames[] = { "self", NULL }; | |
7817 | ||
7818 | self = self; | |
7819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7820 | return NULL; | |
7821 | if (_argo0) { | |
7822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
7825 | return NULL; | |
7826 | } | |
7827 | } | |
7828 | { | |
7829 | wxPy_BEGIN_ALLOW_THREADS; | |
7830 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); | |
7831 | ||
7832 | wxPy_END_ALLOW_THREADS; | |
7833 | if (PyErr_Occurred()) return NULL; | |
7834 | }{ | |
7835 | _resultobj = _result; | |
7836 | } | |
7837 | return _resultobj; | |
7838 | } | |
7839 | ||
7840 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) | |
7841 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject * _resultobj; | |
7843 | size_t _result; | |
7844 | wxPyTreeCtrl * _arg0; | |
7845 | wxTreeItemId * _arg1; | |
7846 | bool _arg2 = (bool ) TRUE; | |
7847 | PyObject * _argo0 = 0; | |
7848 | PyObject * _argo1 = 0; | |
7849 | int tempbool2 = (int) TRUE; | |
7850 | char *_kwnames[] = { "self","item","recursively", NULL }; | |
7851 | ||
7852 | self = self; | |
7853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
7854 | return NULL; | |
7855 | if (_argo0) { | |
7856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
7859 | return NULL; | |
7860 | } | |
7861 | } | |
7862 | if (_argo1) { | |
7863 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7864 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); | |
7866 | return NULL; | |
7867 | } | |
7868 | } | |
7869 | _arg2 = (bool ) tempbool2; | |
7870 | { | |
7871 | wxPy_BEGIN_ALLOW_THREADS; | |
7872 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
7873 | ||
7874 | wxPy_END_ALLOW_THREADS; | |
7875 | if (PyErr_Occurred()) return NULL; | |
7876 | } _resultobj = Py_BuildValue("i",_result); | |
7877 | return _resultobj; | |
7878 | } | |
7879 | ||
7880 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) | |
7881 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7882 | PyObject * _resultobj; | |
7883 | wxTreeItemId * _result; | |
7884 | wxPyTreeCtrl * _arg0; | |
7885 | wxTreeItemId * _arg1; | |
7886 | long * _arg2; | |
7887 | PyObject * _argo0 = 0; | |
7888 | PyObject * _argo1 = 0; | |
7889 | long temp; | |
7890 | PyObject * _obj2 = 0; | |
7891 | char *_kwnames[] = { "self","item","INOUT", NULL }; | |
7892 | char _ptemp[128]; | |
7893 | ||
7894 | self = self; | |
7895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7896 | return NULL; | |
7897 | if (_argo0) { | |
7898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
7901 | return NULL; | |
7902 | } | |
7903 | } | |
7904 | if (_argo1) { | |
7905 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7906 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); | |
7908 | return NULL; | |
7909 | } | |
7910 | } | |
7911 | { | |
7912 | temp = (long) PyInt_AsLong(_obj2); | |
7913 | _arg2 = &temp; | |
7914 | } | |
7915 | { | |
7916 | wxPy_BEGIN_ALLOW_THREADS; | |
7917 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
7918 | ||
7919 | wxPy_END_ALLOW_THREADS; | |
7920 | if (PyErr_Occurred()) return NULL; | |
7921 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7922 | _resultobj = Py_BuildValue("s",_ptemp); | |
7923 | { | |
7924 | PyObject *o; | |
7925 | o = PyInt_FromLong((long) (*_arg2)); | |
7926 | _resultobj = t_output_helper(_resultobj, o); | |
7927 | } | |
7928 | return _resultobj; | |
7929 | } | |
7930 | ||
7931 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) | |
7932 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7933 | PyObject * _resultobj; | |
7934 | wxTreeItemId * _result; | |
7935 | wxPyTreeCtrl * _arg0; | |
7936 | wxTreeItemId * _arg1; | |
7937 | long * _arg2; | |
7938 | PyObject * _argo0 = 0; | |
7939 | PyObject * _argo1 = 0; | |
7940 | long temp; | |
7941 | PyObject * _obj2 = 0; | |
7942 | char *_kwnames[] = { "self","item","INOUT", NULL }; | |
7943 | char _ptemp[128]; | |
7944 | ||
7945 | self = self; | |
7946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7947 | return NULL; | |
7948 | if (_argo0) { | |
7949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
7952 | return NULL; | |
7953 | } | |
7954 | } | |
7955 | if (_argo1) { | |
7956 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7957 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); | |
7959 | return NULL; | |
7960 | } | |
7961 | } | |
7962 | { | |
7963 | temp = (long) PyInt_AsLong(_obj2); | |
7964 | _arg2 = &temp; | |
7965 | } | |
7966 | { | |
7967 | wxPy_BEGIN_ALLOW_THREADS; | |
7968 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
7969 | ||
7970 | wxPy_END_ALLOW_THREADS; | |
7971 | if (PyErr_Occurred()) return NULL; | |
7972 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7973 | _resultobj = Py_BuildValue("s",_ptemp); | |
7974 | { | |
7975 | PyObject *o; | |
7976 | o = PyInt_FromLong((long) (*_arg2)); | |
7977 | _resultobj = t_output_helper(_resultobj, o); | |
7978 | } | |
7979 | return _resultobj; | |
7980 | } | |
7981 | ||
7982 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) | |
7983 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7984 | PyObject * _resultobj; | |
7985 | wxTreeItemId * _result; | |
7986 | wxPyTreeCtrl * _arg0; | |
7987 | wxTreeItemId * _arg1; | |
7988 | PyObject * _argo0 = 0; | |
7989 | PyObject * _argo1 = 0; | |
7990 | char *_kwnames[] = { "self","item", NULL }; | |
7991 | char _ptemp[128]; | |
7992 | ||
7993 | self = self; | |
7994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) | |
7995 | return NULL; | |
7996 | if (_argo0) { | |
7997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8000 | return NULL; | |
8001 | } | |
8002 | } | |
8003 | if (_argo1) { | |
8004 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8005 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); | |
8007 | return NULL; | |
8008 | } | |
8009 | } | |
8010 | { | |
8011 | wxPy_BEGIN_ALLOW_THREADS; | |
8012 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
8013 | ||
8014 | wxPy_END_ALLOW_THREADS; | |
8015 | if (PyErr_Occurred()) return NULL; | |
8016 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8017 | _resultobj = Py_BuildValue("s",_ptemp); | |
8018 | return _resultobj; | |
8019 | } | |
8020 | ||
8021 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) | |
8022 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8023 | PyObject * _resultobj; | |
8024 | wxTreeItemId * _result; | |
8025 | wxPyTreeCtrl * _arg0; | |
8026 | wxTreeItemId * _arg1; | |
8027 | PyObject * _argo0 = 0; | |
8028 | PyObject * _argo1 = 0; | |
8029 | char *_kwnames[] = { "self","item", NULL }; | |
8030 | char _ptemp[128]; | |
8031 | ||
8032 | self = self; | |
8033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) | |
8034 | return NULL; | |
8035 | if (_argo0) { | |
8036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8039 | return NULL; | |
8040 | } | |
8041 | } | |
8042 | if (_argo1) { | |
8043 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8044 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); | |
8046 | return NULL; | |
8047 | } | |
8048 | } | |
8049 | { | |
8050 | wxPy_BEGIN_ALLOW_THREADS; | |
8051 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
8052 | ||
8053 | wxPy_END_ALLOW_THREADS; | |
8054 | if (PyErr_Occurred()) return NULL; | |
8055 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8056 | _resultobj = Py_BuildValue("s",_ptemp); | |
8057 | return _resultobj; | |
8058 | } | |
8059 | ||
8060 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) | |
8061 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8062 | PyObject * _resultobj; | |
8063 | wxTreeItemId * _result; | |
8064 | wxPyTreeCtrl * _arg0; | |
8065 | PyObject * _argo0 = 0; | |
8066 | char *_kwnames[] = { "self", NULL }; | |
8067 | char _ptemp[128]; | |
8068 | ||
8069 | self = self; | |
8070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) | |
8071 | return NULL; | |
8072 | if (_argo0) { | |
8073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8076 | return NULL; | |
8077 | } | |
8078 | } | |
8079 | { | |
8080 | wxPy_BEGIN_ALLOW_THREADS; | |
8081 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
8082 | ||
8083 | wxPy_END_ALLOW_THREADS; | |
8084 | if (PyErr_Occurred()) return NULL; | |
8085 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8086 | _resultobj = Py_BuildValue("s",_ptemp); | |
8087 | return _resultobj; | |
8088 | } | |
8089 | ||
8090 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) | |
8091 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8092 | PyObject * _resultobj; | |
8093 | wxTreeItemId * _result; | |
8094 | wxPyTreeCtrl * _arg0; | |
8095 | wxTreeItemId * _arg1; | |
8096 | PyObject * _argo0 = 0; | |
8097 | PyObject * _argo1 = 0; | |
8098 | char *_kwnames[] = { "self","item", NULL }; | |
8099 | char _ptemp[128]; | |
8100 | ||
8101 | self = self; | |
8102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) | |
8103 | return NULL; | |
8104 | if (_argo0) { | |
8105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8108 | return NULL; | |
8109 | } | |
8110 | } | |
8111 | if (_argo1) { | |
8112 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8113 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); | |
8115 | return NULL; | |
8116 | } | |
8117 | } | |
8118 | { | |
8119 | wxPy_BEGIN_ALLOW_THREADS; | |
8120 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
8121 | ||
8122 | wxPy_END_ALLOW_THREADS; | |
8123 | if (PyErr_Occurred()) return NULL; | |
8124 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8125 | _resultobj = Py_BuildValue("s",_ptemp); | |
8126 | return _resultobj; | |
8127 | } | |
8128 | ||
8129 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) | |
8130 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8131 | PyObject * _resultobj; | |
8132 | wxTreeItemId * _result; | |
8133 | wxPyTreeCtrl * _arg0; | |
8134 | wxTreeItemId * _arg1; | |
8135 | PyObject * _argo0 = 0; | |
8136 | PyObject * _argo1 = 0; | |
8137 | char *_kwnames[] = { "self","item", NULL }; | |
8138 | char _ptemp[128]; | |
8139 | ||
8140 | self = self; | |
8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) | |
8142 | return NULL; | |
8143 | if (_argo0) { | |
8144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8147 | return NULL; | |
8148 | } | |
8149 | } | |
8150 | if (_argo1) { | |
8151 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8152 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); | |
8154 | return NULL; | |
8155 | } | |
8156 | } | |
8157 | { | |
8158 | wxPy_BEGIN_ALLOW_THREADS; | |
8159 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
8160 | ||
8161 | wxPy_END_ALLOW_THREADS; | |
8162 | if (PyErr_Occurred()) return NULL; | |
8163 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8164 | _resultobj = Py_BuildValue("s",_ptemp); | |
8165 | return _resultobj; | |
8166 | } | |
8167 | ||
8168 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) | |
8169 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8170 | PyObject * _resultobj; | |
8171 | wxTreeItemId * _result; | |
8172 | wxPyTreeCtrl * _arg0; | |
8173 | wxTreeItemId * _arg1; | |
8174 | PyObject * _argo0 = 0; | |
8175 | PyObject * _argo1 = 0; | |
8176 | char *_kwnames[] = { "self","item", NULL }; | |
8177 | char _ptemp[128]; | |
8178 | ||
8179 | self = self; | |
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8181 | return NULL; | |
8182 | if (_argo0) { | |
8183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
8186 | return NULL; | |
8187 | } | |
8188 | } | |
8189 | if (_argo1) { | |
8190 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8191 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8193 | return NULL; | |
8194 | } | |
8195 | } | |
8196 | { | |
8197 | wxPy_BEGIN_ALLOW_THREADS; | |
8198 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
8199 | ||
8200 | wxPy_END_ALLOW_THREADS; | |
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_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8208 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8209 | PyObject * _resultobj; | |
8210 | wxTreeItemId * _result; | |
8211 | wxPyTreeCtrl * _arg0; | |
8212 | wxString * _arg1; | |
8213 | int _arg2 = (int ) -1; | |
8214 | int _arg3 = (int ) -1; | |
8215 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8216 | PyObject * _argo0 = 0; | |
8217 | PyObject * _obj1 = 0; | |
8218 | PyObject * _argo4 = 0; | |
8219 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; | |
8220 | char _ptemp[128]; | |
8221 | ||
8222 | self = self; | |
8223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) | |
8224 | return NULL; | |
8225 | if (_argo0) { | |
8226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8229 | return NULL; | |
8230 | } | |
8231 | } | |
8232 | { | |
8233 | #if PYTHON_API_VERSION >= 1009 | |
8234 | char* tmpPtr; int tmpSize; | |
8235 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8236 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8237 | return NULL; | |
8238 | } | |
8239 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8240 | return NULL; | |
8241 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8242 | #else | |
8243 | if (!PyString_Check(_obj1)) { | |
8244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8245 | return NULL; | |
8246 | } | |
8247 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8248 | #endif | |
8249 | } | |
8250 | if (_argo4) { | |
8251 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8252 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
8253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); | |
8254 | return NULL; | |
8255 | } | |
8256 | } | |
8257 | { | |
8258 | wxPy_BEGIN_ALLOW_THREADS; | |
8259 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
8260 | ||
8261 | wxPy_END_ALLOW_THREADS; | |
8262 | if (PyErr_Occurred()) return NULL; | |
8263 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8264 | _resultobj = Py_BuildValue("s",_ptemp); | |
8265 | { | |
8266 | if (_obj1) | |
8267 | delete _arg1; | |
8268 | } | |
8269 | return _resultobj; | |
8270 | } | |
8271 | ||
8272 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8273 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject * _resultobj; | |
8275 | wxTreeItemId * _result; | |
8276 | wxPyTreeCtrl * _arg0; | |
8277 | wxTreeItemId * _arg1; | |
8278 | wxString * _arg2; | |
8279 | int _arg3 = (int ) -1; | |
8280 | int _arg4 = (int ) -1; | |
8281 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8282 | PyObject * _argo0 = 0; | |
8283 | PyObject * _argo1 = 0; | |
8284 | PyObject * _obj2 = 0; | |
8285 | PyObject * _argo5 = 0; | |
8286 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; | |
8287 | char _ptemp[128]; | |
8288 | ||
8289 | self = self; | |
8290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) | |
8291 | return NULL; | |
8292 | if (_argo0) { | |
8293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8296 | return NULL; | |
8297 | } | |
8298 | } | |
8299 | if (_argo1) { | |
8300 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8301 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); | |
8303 | return NULL; | |
8304 | } | |
8305 | } | |
8306 | { | |
8307 | #if PYTHON_API_VERSION >= 1009 | |
8308 | char* tmpPtr; int tmpSize; | |
8309 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8310 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8311 | return NULL; | |
8312 | } | |
8313 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8314 | return NULL; | |
8315 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8316 | #else | |
8317 | if (!PyString_Check(_obj2)) { | |
8318 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8319 | return NULL; | |
8320 | } | |
8321 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8322 | #endif | |
8323 | } | |
8324 | if (_argo5) { | |
8325 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8326 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
8327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); | |
8328 | return NULL; | |
8329 | } | |
8330 | } | |
8331 | { | |
8332 | wxPy_BEGIN_ALLOW_THREADS; | |
8333 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8334 | ||
8335 | wxPy_END_ALLOW_THREADS; | |
8336 | if (PyErr_Occurred()) return NULL; | |
8337 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8338 | _resultobj = Py_BuildValue("s",_ptemp); | |
8339 | { | |
8340 | if (_obj2) | |
8341 | delete _arg2; | |
8342 | } | |
8343 | return _resultobj; | |
8344 | } | |
8345 | ||
8346 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8347 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8348 | PyObject * _resultobj; | |
8349 | wxTreeItemId * _result; | |
8350 | wxPyTreeCtrl * _arg0; | |
8351 | wxTreeItemId * _arg1; | |
8352 | wxTreeItemId * _arg2; | |
8353 | wxString * _arg3; | |
8354 | int _arg4 = (int ) -1; | |
8355 | int _arg5 = (int ) -1; | |
8356 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8357 | PyObject * _argo0 = 0; | |
8358 | PyObject * _argo1 = 0; | |
8359 | PyObject * _argo2 = 0; | |
8360 | PyObject * _obj3 = 0; | |
8361 | PyObject * _argo6 = 0; | |
8362 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; | |
8363 | char _ptemp[128]; | |
8364 | ||
8365 | self = self; | |
8366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8367 | return NULL; | |
8368 | if (_argo0) { | |
8369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8372 | return NULL; | |
8373 | } | |
8374 | } | |
8375 | if (_argo1) { | |
8376 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8377 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); | |
8379 | return NULL; | |
8380 | } | |
8381 | } | |
8382 | if (_argo2) { | |
8383 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); | |
8386 | return NULL; | |
8387 | } | |
8388 | } | |
8389 | { | |
8390 | #if PYTHON_API_VERSION >= 1009 | |
8391 | char* tmpPtr; int tmpSize; | |
8392 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8393 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8394 | return NULL; | |
8395 | } | |
8396 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8397 | return NULL; | |
8398 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8399 | #else | |
8400 | if (!PyString_Check(_obj3)) { | |
8401 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8402 | return NULL; | |
8403 | } | |
8404 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8405 | #endif | |
8406 | } | |
8407 | if (_argo6) { | |
8408 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8409 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
8410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); | |
8411 | return NULL; | |
8412 | } | |
8413 | } | |
8414 | { | |
8415 | wxPy_BEGIN_ALLOW_THREADS; | |
8416 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8417 | ||
8418 | wxPy_END_ALLOW_THREADS; | |
8419 | if (PyErr_Occurred()) return NULL; | |
8420 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8421 | _resultobj = Py_BuildValue("s",_ptemp); | |
8422 | { | |
8423 | if (_obj3) | |
8424 | delete _arg3; | |
8425 | } | |
8426 | return _resultobj; | |
8427 | } | |
8428 | ||
8429 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8430 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8431 | PyObject * _resultobj; | |
8432 | wxTreeItemId * _result; | |
8433 | wxPyTreeCtrl * _arg0; | |
8434 | wxTreeItemId * _arg1; | |
8435 | size_t _arg2; | |
8436 | wxString * _arg3; | |
8437 | int _arg4 = (int ) -1; | |
8438 | int _arg5 = (int ) -1; | |
8439 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
8440 | PyObject * _argo0 = 0; | |
8441 | PyObject * _argo1 = 0; | |
8442 | PyObject * _obj3 = 0; | |
8443 | PyObject * _argo6 = 0; | |
8444 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8445 | char _ptemp[128]; | |
8446 | ||
8447 | self = self; | |
8448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8449 | return NULL; | |
8450 | if (_argo0) { | |
8451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8454 | return NULL; | |
8455 | } | |
8456 | } | |
8457 | if (_argo1) { | |
8458 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8459 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8461 | return NULL; | |
8462 | } | |
8463 | } | |
8464 | { | |
8465 | #if PYTHON_API_VERSION >= 1009 | |
8466 | char* tmpPtr; int tmpSize; | |
8467 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8468 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8469 | return NULL; | |
8470 | } | |
8471 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8472 | return NULL; | |
8473 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8474 | #else | |
8475 | if (!PyString_Check(_obj3)) { | |
8476 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8477 | return NULL; | |
8478 | } | |
8479 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8480 | #endif | |
8481 | } | |
8482 | if (_argo6) { | |
8483 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8484 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
8485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
8486 | return NULL; | |
8487 | } | |
8488 | } | |
8489 | { | |
8490 | wxPy_BEGIN_ALLOW_THREADS; | |
8491 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8492 | ||
8493 | wxPy_END_ALLOW_THREADS; | |
8494 | if (PyErr_Occurred()) return NULL; | |
8495 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8496 | _resultobj = Py_BuildValue("s",_ptemp); | |
8497 | { | |
8498 | if (_obj3) | |
8499 | delete _arg3; | |
8500 | } | |
8501 | return _resultobj; | |
8502 | } | |
8503 | ||
8504 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8505 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8506 | PyObject * _resultobj; | |
8507 | wxTreeItemId * _result; | |
8508 | wxPyTreeCtrl * _arg0; | |
8509 | wxTreeItemId * _arg1; | |
8510 | wxString * _arg2; | |
8511 | int _arg3 = (int ) -1; | |
8512 | int _arg4 = (int ) -1; | |
8513 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8514 | PyObject * _argo0 = 0; | |
8515 | PyObject * _argo1 = 0; | |
8516 | PyObject * _obj2 = 0; | |
8517 | PyObject * _argo5 = 0; | |
8518 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; | |
8519 | char _ptemp[128]; | |
8520 | ||
8521 | self = self; | |
8522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) | |
8523 | return NULL; | |
8524 | if (_argo0) { | |
8525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
8528 | return NULL; | |
8529 | } | |
8530 | } | |
8531 | if (_argo1) { | |
8532 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8533 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); | |
8535 | return NULL; | |
8536 | } | |
8537 | } | |
8538 | { | |
8539 | #if PYTHON_API_VERSION >= 1009 | |
8540 | char* tmpPtr; int tmpSize; | |
8541 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8542 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8543 | return NULL; | |
8544 | } | |
8545 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8546 | return NULL; | |
8547 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8548 | #else | |
8549 | if (!PyString_Check(_obj2)) { | |
8550 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8551 | return NULL; | |
8552 | } | |
8553 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8554 | #endif | |
8555 | } | |
8556 | if (_argo5) { | |
8557 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8558 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
8559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); | |
8560 | return NULL; | |
8561 | } | |
8562 | } | |
8563 | { | |
8564 | wxPy_BEGIN_ALLOW_THREADS; | |
8565 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8566 | ||
8567 | wxPy_END_ALLOW_THREADS; | |
8568 | if (PyErr_Occurred()) return NULL; | |
8569 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8570 | _resultobj = Py_BuildValue("s",_ptemp); | |
8571 | { | |
8572 | if (_obj2) | |
8573 | delete _arg2; | |
8574 | } | |
8575 | return _resultobj; | |
8576 | } | |
8577 | ||
8578 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
8579 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8580 | PyObject * _resultobj; | |
8581 | wxPyTreeCtrl * _arg0; | |
8582 | wxTreeItemId * _arg1; | |
8583 | PyObject * _argo0 = 0; | |
8584 | PyObject * _argo1 = 0; | |
8585 | char *_kwnames[] = { "self","item", NULL }; | |
8586 | ||
8587 | self = self; | |
8588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) | |
8589 | return NULL; | |
8590 | if (_argo0) { | |
8591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8594 | return NULL; | |
8595 | } | |
8596 | } | |
8597 | if (_argo1) { | |
8598 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8599 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); | |
8601 | return NULL; | |
8602 | } | |
8603 | } | |
8604 | { | |
8605 | wxPy_BEGIN_ALLOW_THREADS; | |
8606 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
8607 | ||
8608 | wxPy_END_ALLOW_THREADS; | |
8609 | if (PyErr_Occurred()) return NULL; | |
8610 | } Py_INCREF(Py_None); | |
8611 | _resultobj = Py_None; | |
8612 | return _resultobj; | |
8613 | } | |
8614 | ||
8615 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) | |
8616 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8617 | PyObject * _resultobj; | |
8618 | wxPyTreeCtrl * _arg0; | |
8619 | wxTreeItemId * _arg1; | |
8620 | PyObject * _argo0 = 0; | |
8621 | PyObject * _argo1 = 0; | |
8622 | char *_kwnames[] = { "self","item", NULL }; | |
8623 | ||
8624 | self = self; | |
8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) | |
8626 | return NULL; | |
8627 | if (_argo0) { | |
8628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
8631 | return NULL; | |
8632 | } | |
8633 | } | |
8634 | if (_argo1) { | |
8635 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8636 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); | |
8638 | return NULL; | |
8639 | } | |
8640 | } | |
8641 | { | |
8642 | wxPy_BEGIN_ALLOW_THREADS; | |
8643 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
8644 | ||
8645 | wxPy_END_ALLOW_THREADS; | |
8646 | if (PyErr_Occurred()) return NULL; | |
8647 | } Py_INCREF(Py_None); | |
8648 | _resultobj = Py_None; | |
8649 | return _resultobj; | |
8650 | } | |
8651 | ||
8652 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
8653 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8654 | PyObject * _resultobj; | |
8655 | wxPyTreeCtrl * _arg0; | |
8656 | PyObject * _argo0 = 0; | |
8657 | char *_kwnames[] = { "self", NULL }; | |
8658 | ||
8659 | self = self; | |
8660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
8661 | return NULL; | |
8662 | if (_argo0) { | |
8663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
8666 | return NULL; | |
8667 | } | |
8668 | } | |
8669 | { | |
8670 | wxPy_BEGIN_ALLOW_THREADS; | |
8671 | wxTreeCtrl_DeleteAllItems(_arg0); | |
8672 | ||
8673 | wxPy_END_ALLOW_THREADS; | |
8674 | if (PyErr_Occurred()) return NULL; | |
8675 | } Py_INCREF(Py_None); | |
8676 | _resultobj = Py_None; | |
8677 | return _resultobj; | |
8678 | } | |
8679 | ||
8680 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
8681 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8682 | PyObject * _resultobj; | |
8683 | wxPyTreeCtrl * _arg0; | |
8684 | wxTreeItemId * _arg1; | |
8685 | PyObject * _argo0 = 0; | |
8686 | PyObject * _argo1 = 0; | |
8687 | char *_kwnames[] = { "self","item", NULL }; | |
8688 | ||
8689 | self = self; | |
8690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) | |
8691 | return NULL; | |
8692 | if (_argo0) { | |
8693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
8696 | return NULL; | |
8697 | } | |
8698 | } | |
8699 | if (_argo1) { | |
8700 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8701 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); | |
8703 | return NULL; | |
8704 | } | |
8705 | } | |
8706 | { | |
8707 | wxPy_BEGIN_ALLOW_THREADS; | |
8708 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
8709 | ||
8710 | wxPy_END_ALLOW_THREADS; | |
8711 | if (PyErr_Occurred()) return NULL; | |
8712 | } Py_INCREF(Py_None); | |
8713 | _resultobj = Py_None; | |
8714 | return _resultobj; | |
8715 | } | |
8716 | ||
8717 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
8718 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8719 | PyObject * _resultobj; | |
8720 | wxPyTreeCtrl * _arg0; | |
8721 | wxTreeItemId * _arg1; | |
8722 | PyObject * _argo0 = 0; | |
8723 | PyObject * _argo1 = 0; | |
8724 | char *_kwnames[] = { "self","item", NULL }; | |
8725 | ||
8726 | self = self; | |
8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) | |
8728 | return NULL; | |
8729 | if (_argo0) { | |
8730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
8733 | return NULL; | |
8734 | } | |
8735 | } | |
8736 | if (_argo1) { | |
8737 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8738 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); | |
8740 | return NULL; | |
8741 | } | |
8742 | } | |
8743 | { | |
8744 | wxPy_BEGIN_ALLOW_THREADS; | |
8745 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
8746 | ||
8747 | wxPy_END_ALLOW_THREADS; | |
8748 | if (PyErr_Occurred()) return NULL; | |
8749 | } Py_INCREF(Py_None); | |
8750 | _resultobj = Py_None; | |
8751 | return _resultobj; | |
8752 | } | |
8753 | ||
8754 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
8755 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(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_CollapseAndReset",_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_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
8770 | return NULL; | |
8771 | } | |
8772 | } | |
8773 | if (_argo1) { | |
8774 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8775 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); | |
8777 | return NULL; | |
8778 | } | |
8779 | } | |
8780 | { | |
8781 | wxPy_BEGIN_ALLOW_THREADS; | |
8782 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
8783 | ||
8784 | wxPy_END_ALLOW_THREADS; | |
8785 | if (PyErr_Occurred()) return NULL; | |
8786 | } Py_INCREF(Py_None); | |
8787 | _resultobj = Py_None; | |
8788 | return _resultobj; | |
8789 | } | |
8790 | ||
8791 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
8792 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8793 | PyObject * _resultobj; | |
8794 | wxPyTreeCtrl * _arg0; | |
8795 | wxTreeItemId * _arg1; | |
8796 | PyObject * _argo0 = 0; | |
8797 | PyObject * _argo1 = 0; | |
8798 | char *_kwnames[] = { "self","item", NULL }; | |
8799 | ||
8800 | self = self; | |
8801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) | |
8802 | return NULL; | |
8803 | if (_argo0) { | |
8804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
8807 | return NULL; | |
8808 | } | |
8809 | } | |
8810 | if (_argo1) { | |
8811 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8812 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); | |
8814 | return NULL; | |
8815 | } | |
8816 | } | |
8817 | { | |
8818 | wxPy_BEGIN_ALLOW_THREADS; | |
8819 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
8820 | ||
8821 | wxPy_END_ALLOW_THREADS; | |
8822 | if (PyErr_Occurred()) return NULL; | |
8823 | } Py_INCREF(Py_None); | |
8824 | _resultobj = Py_None; | |
8825 | return _resultobj; | |
8826 | } | |
8827 | ||
8828 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
8829 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject * _resultobj; | |
8831 | wxPyTreeCtrl * _arg0; | |
8832 | PyObject * _argo0 = 0; | |
8833 | char *_kwnames[] = { "self", NULL }; | |
8834 | ||
8835 | self = self; | |
8836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) | |
8837 | return NULL; | |
8838 | if (_argo0) { | |
8839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
8842 | return NULL; | |
8843 | } | |
8844 | } | |
8845 | { | |
8846 | wxPy_BEGIN_ALLOW_THREADS; | |
8847 | wxTreeCtrl_Unselect(_arg0); | |
8848 | ||
8849 | wxPy_END_ALLOW_THREADS; | |
8850 | if (PyErr_Occurred()) return NULL; | |
8851 | } Py_INCREF(Py_None); | |
8852 | _resultobj = Py_None; | |
8853 | return _resultobj; | |
8854 | } | |
8855 | ||
8856 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) | |
8857 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8858 | PyObject * _resultobj; | |
8859 | wxPyTreeCtrl * _arg0; | |
8860 | PyObject * _argo0 = 0; | |
8861 | char *_kwnames[] = { "self", NULL }; | |
8862 | ||
8863 | self = self; | |
8864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) | |
8865 | return NULL; | |
8866 | if (_argo0) { | |
8867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8870 | return NULL; | |
8871 | } | |
8872 | } | |
8873 | { | |
8874 | wxPy_BEGIN_ALLOW_THREADS; | |
8875 | wxTreeCtrl_UnselectAll(_arg0); | |
8876 | ||
8877 | wxPy_END_ALLOW_THREADS; | |
8878 | if (PyErr_Occurred()) return NULL; | |
8879 | } Py_INCREF(Py_None); | |
8880 | _resultobj = Py_None; | |
8881 | return _resultobj; | |
8882 | } | |
8883 | ||
8884 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) | |
8885 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8886 | PyObject * _resultobj; | |
8887 | wxPyTreeCtrl * _arg0; | |
8888 | wxTreeItemId * _arg1; | |
8889 | PyObject * _argo0 = 0; | |
8890 | PyObject * _argo1 = 0; | |
8891 | char *_kwnames[] = { "self","item", NULL }; | |
8892 | ||
8893 | self = self; | |
8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) | |
8895 | return NULL; | |
8896 | if (_argo0) { | |
8897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
8900 | return NULL; | |
8901 | } | |
8902 | } | |
8903 | if (_argo1) { | |
8904 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8905 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); | |
8907 | return NULL; | |
8908 | } | |
8909 | } | |
8910 | { | |
8911 | wxPy_BEGIN_ALLOW_THREADS; | |
8912 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
8913 | ||
8914 | wxPy_END_ALLOW_THREADS; | |
8915 | if (PyErr_Occurred()) return NULL; | |
8916 | } Py_INCREF(Py_None); | |
8917 | _resultobj = Py_None; | |
8918 | return _resultobj; | |
8919 | } | |
8920 | ||
8921 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
8922 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8923 | PyObject * _resultobj; | |
8924 | wxPyTreeCtrl * _arg0; | |
8925 | wxTreeItemId * _arg1; | |
8926 | PyObject * _argo0 = 0; | |
8927 | PyObject * _argo1 = 0; | |
8928 | char *_kwnames[] = { "self","item", NULL }; | |
8929 | ||
8930 | self = self; | |
8931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) | |
8932 | return NULL; | |
8933 | if (_argo0) { | |
8934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
8937 | return NULL; | |
8938 | } | |
8939 | } | |
8940 | if (_argo1) { | |
8941 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8942 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); | |
8944 | return NULL; | |
8945 | } | |
8946 | } | |
8947 | { | |
8948 | wxPy_BEGIN_ALLOW_THREADS; | |
8949 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
8950 | ||
8951 | wxPy_END_ALLOW_THREADS; | |
8952 | if (PyErr_Occurred()) return NULL; | |
8953 | } Py_INCREF(Py_None); | |
8954 | _resultobj = Py_None; | |
8955 | return _resultobj; | |
8956 | } | |
8957 | ||
8958 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
8959 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8960 | PyObject * _resultobj; | |
8961 | wxPyTreeCtrl * _arg0; | |
8962 | wxTreeItemId * _arg1; | |
8963 | PyObject * _argo0 = 0; | |
8964 | PyObject * _argo1 = 0; | |
8965 | char *_kwnames[] = { "self","item", NULL }; | |
8966 | ||
8967 | self = self; | |
8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) | |
8969 | return NULL; | |
8970 | if (_argo0) { | |
8971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
8974 | return NULL; | |
8975 | } | |
8976 | } | |
8977 | if (_argo1) { | |
8978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); | |
8981 | return NULL; | |
8982 | } | |
8983 | } | |
8984 | { | |
8985 | wxPy_BEGIN_ALLOW_THREADS; | |
8986 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
8987 | ||
8988 | wxPy_END_ALLOW_THREADS; | |
8989 | if (PyErr_Occurred()) return NULL; | |
8990 | } Py_INCREF(Py_None); | |
8991 | _resultobj = Py_None; | |
8992 | return _resultobj; | |
8993 | } | |
8994 | ||
8995 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
8996 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject * _resultobj; | |
8998 | wxPyTreeCtrl * _arg0; | |
8999 | wxTreeItemId * _arg1; | |
9000 | PyObject * _argo0 = 0; | |
9001 | PyObject * _argo1 = 0; | |
9002 | char *_kwnames[] = { "self","item", NULL }; | |
9003 | ||
9004 | self = self; | |
9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) | |
9006 | return NULL; | |
9007 | if (_argo0) { | |
9008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
9011 | return NULL; | |
9012 | } | |
9013 | } | |
9014 | if (_argo1) { | |
9015 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9016 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); | |
9018 | return NULL; | |
9019 | } | |
9020 | } | |
9021 | { | |
9022 | wxPy_BEGIN_ALLOW_THREADS; | |
9023 | wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
9024 | ||
9025 | wxPy_END_ALLOW_THREADS; | |
9026 | if (PyErr_Occurred()) return NULL; | |
9027 | } Py_INCREF(Py_None); | |
9028 | _resultobj = Py_None; | |
9029 | return _resultobj; | |
9030 | } | |
9031 | ||
9032 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) | |
9033 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9034 | PyObject * _resultobj; | |
9035 | wxPyTreeCtrl * _arg0; | |
9036 | wxTreeItemId * _arg1; | |
9037 | PyObject * _argo0 = 0; | |
9038 | PyObject * _argo1 = 0; | |
9039 | char *_kwnames[] = { "self","item", NULL }; | |
9040 | ||
9041 | self = self; | |
9042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
9043 | return NULL; | |
9044 | if (_argo0) { | |
9045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
9048 | return NULL; | |
9049 | } | |
9050 | } | |
9051 | if (_argo1) { | |
9052 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9053 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
9055 | return NULL; | |
9056 | } | |
9057 | } | |
9058 | { | |
9059 | wxPy_BEGIN_ALLOW_THREADS; | |
9060 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
9061 | ||
9062 | wxPy_END_ALLOW_THREADS; | |
9063 | if (PyErr_Occurred()) return NULL; | |
9064 | } Py_INCREF(Py_None); | |
9065 | _resultobj = Py_None; | |
9066 | return _resultobj; | |
9067 | } | |
9068 | ||
9069 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) | |
9070 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9071 | PyObject * _resultobj; | |
9072 | wxPyTreeCtrl * _arg0; | |
9073 | wxTreeItemId * _arg1; | |
9074 | int _arg2 = (int ) TRUE; | |
9075 | PyObject * _argo0 = 0; | |
9076 | PyObject * _argo1 = 0; | |
9077 | char *_kwnames[] = { "self","item","bold", NULL }; | |
9078 | ||
9079 | self = self; | |
9080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9081 | return NULL; | |
9082 | if (_argo0) { | |
9083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
9086 | return NULL; | |
9087 | } | |
9088 | } | |
9089 | if (_argo1) { | |
9090 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9091 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); | |
9093 | return NULL; | |
9094 | } | |
9095 | } | |
9096 | { | |
9097 | wxPy_BEGIN_ALLOW_THREADS; | |
9098 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
9099 | ||
9100 | wxPy_END_ALLOW_THREADS; | |
9101 | if (PyErr_Occurred()) return NULL; | |
9102 | } Py_INCREF(Py_None); | |
9103 | _resultobj = Py_None; | |
9104 | return _resultobj; | |
9105 | } | |
9106 | ||
9107 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
9108 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9109 | PyObject * _resultobj; | |
9110 | bool _result; | |
9111 | wxPyTreeCtrl * _arg0; | |
9112 | wxTreeItemId * _arg1; | |
9113 | PyObject * _argo0 = 0; | |
9114 | PyObject * _argo1 = 0; | |
9115 | char *_kwnames[] = { "self","item", NULL }; | |
9116 | ||
9117 | self = self; | |
9118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) | |
9119 | return NULL; | |
9120 | if (_argo0) { | |
9121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
9124 | return NULL; | |
9125 | } | |
9126 | } | |
9127 | if (_argo1) { | |
9128 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9129 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); | |
9131 | return NULL; | |
9132 | } | |
9133 | } | |
9134 | { | |
9135 | wxPy_BEGIN_ALLOW_THREADS; | |
9136 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
9137 | ||
9138 | wxPy_END_ALLOW_THREADS; | |
9139 | if (PyErr_Occurred()) return NULL; | |
9140 | } _resultobj = Py_BuildValue("i",_result); | |
9141 | return _resultobj; | |
9142 | } | |
9143 | ||
9144 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
9145 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9146 | PyObject * _resultobj; | |
9147 | wxTreeItemId * _result; | |
9148 | wxPyTreeCtrl * _arg0; | |
9149 | wxPoint * _arg1; | |
9150 | int * _arg2; | |
9151 | int temp; | |
9152 | PyObject * _argo0 = 0; | |
9153 | wxPoint temp0; | |
9154 | PyObject * _obj1 = 0; | |
9155 | char *_kwnames[] = { "self","point", NULL }; | |
9156 | char _ptemp[128]; | |
9157 | ||
9158 | self = self; | |
9159 | { | |
9160 | _arg2 = &temp; | |
9161 | } | |
9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
9163 | return NULL; | |
9164 | if (_argo0) { | |
9165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
9168 | return NULL; | |
9169 | } | |
9170 | } | |
9171 | { | |
9172 | _arg1 = &temp0; | |
9173 | if (! wxPoint_helper(_obj1, &_arg1)) | |
9174 | return NULL; | |
9175 | } | |
9176 | { | |
9177 | wxPy_BEGIN_ALLOW_THREADS; | |
9178 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); | |
9179 | ||
9180 | wxPy_END_ALLOW_THREADS; | |
9181 | if (PyErr_Occurred()) return NULL; | |
9182 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
9183 | _resultobj = Py_BuildValue("s",_ptemp); | |
9184 | { | |
9185 | PyObject *o; | |
9186 | o = PyInt_FromLong((long) (*_arg2)); | |
9187 | _resultobj = t_output_helper(_resultobj, o); | |
9188 | } | |
9189 | return _resultobj; | |
9190 | } | |
9191 | ||
9192 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) | |
9193 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9194 | PyObject * _resultobj; | |
9195 | wxPyTreeCtrl * _arg0; | |
9196 | wxTreeItemId * _arg1; | |
9197 | wxColour * _arg2; | |
9198 | PyObject * _argo0 = 0; | |
9199 | PyObject * _argo1 = 0; | |
9200 | wxColour temp; | |
9201 | PyObject * _obj2 = 0; | |
9202 | char *_kwnames[] = { "self","item","col", NULL }; | |
9203 | ||
9204 | self = self; | |
9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9206 | return NULL; | |
9207 | if (_argo0) { | |
9208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
9211 | return NULL; | |
9212 | } | |
9213 | } | |
9214 | if (_argo1) { | |
9215 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9216 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9218 | return NULL; | |
9219 | } | |
9220 | } | |
9221 | { | |
9222 | _arg2 = &temp; | |
9223 | if (! wxColour_helper(_obj2, &_arg2)) | |
9224 | return NULL; | |
9225 | } | |
9226 | { | |
9227 | wxPy_BEGIN_ALLOW_THREADS; | |
9228 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
9229 | ||
9230 | wxPy_END_ALLOW_THREADS; | |
9231 | if (PyErr_Occurred()) return NULL; | |
9232 | } Py_INCREF(Py_None); | |
9233 | _resultobj = Py_None; | |
9234 | return _resultobj; | |
9235 | } | |
9236 | ||
9237 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9238 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9239 | PyObject * _resultobj; | |
9240 | wxPyTreeCtrl * _arg0; | |
9241 | wxTreeItemId * _arg1; | |
9242 | wxColour * _arg2; | |
9243 | PyObject * _argo0 = 0; | |
9244 | PyObject * _argo1 = 0; | |
9245 | wxColour temp; | |
9246 | PyObject * _obj2 = 0; | |
9247 | char *_kwnames[] = { "self","item","col", NULL }; | |
9248 | ||
9249 | self = self; | |
9250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9251 | return NULL; | |
9252 | if (_argo0) { | |
9253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
9256 | return NULL; | |
9257 | } | |
9258 | } | |
9259 | if (_argo1) { | |
9260 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9261 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9263 | return NULL; | |
9264 | } | |
9265 | } | |
9266 | { | |
9267 | _arg2 = &temp; | |
9268 | if (! wxColour_helper(_obj2, &_arg2)) | |
9269 | return NULL; | |
9270 | } | |
9271 | { | |
9272 | wxPy_BEGIN_ALLOW_THREADS; | |
9273 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
9274 | ||
9275 | wxPy_END_ALLOW_THREADS; | |
9276 | if (PyErr_Occurred()) return NULL; | |
9277 | } Py_INCREF(Py_None); | |
9278 | _resultobj = Py_None; | |
9279 | return _resultobj; | |
9280 | } | |
9281 | ||
9282 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9283 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9284 | PyObject * _resultobj; | |
9285 | wxPyTreeCtrl * _arg0; | |
9286 | wxTreeItemId * _arg1; | |
9287 | wxFont * _arg2; | |
9288 | PyObject * _argo0 = 0; | |
9289 | PyObject * _argo1 = 0; | |
9290 | PyObject * _argo2 = 0; | |
9291 | char *_kwnames[] = { "self","item","font", NULL }; | |
9292 | ||
9293 | self = self; | |
9294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9295 | return NULL; | |
9296 | if (_argo0) { | |
9297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
9300 | return NULL; | |
9301 | } | |
9302 | } | |
9303 | if (_argo1) { | |
9304 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9305 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9307 | return NULL; | |
9308 | } | |
9309 | } | |
9310 | if (_argo2) { | |
9311 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9312 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9314 | return NULL; | |
9315 | } | |
9316 | } | |
9317 | { | |
9318 | wxPy_BEGIN_ALLOW_THREADS; | |
9319 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
9320 | ||
9321 | wxPy_END_ALLOW_THREADS; | |
9322 | if (PyErr_Occurred()) return NULL; | |
9323 | } Py_INCREF(Py_None); | |
9324 | _resultobj = Py_None; | |
9325 | return _resultobj; | |
9326 | } | |
9327 | ||
9328 | static PyMethodDef controls2cMethods[] = { | |
9329 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
9330 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9331 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9332 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
9333 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
9334 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
9335 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
9336 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
9337 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
9338 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
9339 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
9340 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
9341 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
9342 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9343 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
9344 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
9345 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
9346 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
9347 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
9348 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
9349 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9350 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
9351 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
9352 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
9353 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
9354 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
9355 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
9356 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
9357 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
9358 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
9359 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
9360 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
9361 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
9362 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
9363 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
9364 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
9365 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
9366 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
9367 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
9368 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
9369 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
9370 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
9371 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
9372 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
9373 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9374 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9375 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
9376 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
9377 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9378 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9379 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
9380 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9381 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9382 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
9383 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
9384 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
9385 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
9386 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
9387 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9388 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
9389 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9390 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
9391 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
9392 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
9393 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
9394 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
9395 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9396 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9397 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9398 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
9399 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
9400 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
9401 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
9402 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
9403 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
9404 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9405 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9406 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9407 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9408 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
9409 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
9410 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9411 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
9412 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
9413 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9414 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9415 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9416 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9417 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9418 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9419 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9420 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9421 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9422 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
9423 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
9424 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
9425 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
9426 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
9427 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
9428 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
9429 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
9430 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
9431 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
9432 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
9433 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
9434 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
9435 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
9436 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9437 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
9438 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
9439 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9440 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
9441 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9442 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
9443 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
9444 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
9445 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
9446 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
9447 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
9448 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
9449 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
9450 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
9451 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
9452 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9453 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
9454 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
9455 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
9456 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
9457 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
9458 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9459 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9460 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
9461 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9462 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
9463 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
9464 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9465 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9466 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9467 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
9468 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
9469 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9470 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9471 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
9472 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9473 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9474 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9475 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9476 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9477 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9478 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9479 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9480 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9481 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
9482 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
9483 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
9484 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9485 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9486 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9487 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9488 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9489 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9490 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
9491 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
9492 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9493 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9494 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
9495 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
9496 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
9497 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9498 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9499 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9500 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9501 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9502 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
9503 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
9504 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9505 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
9506 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
9507 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
9508 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
9509 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
9510 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
9511 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
9512 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
9513 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9514 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9515 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9516 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9517 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
9518 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
9519 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, | |
9520 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
9521 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
9522 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
9523 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
9524 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
9525 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
9526 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
9527 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
9528 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
9529 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
9530 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
9531 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
9532 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
9533 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
9534 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9535 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9536 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
9537 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
9538 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
9539 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
9540 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9541 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9542 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9543 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9544 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9545 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9546 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9547 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9548 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9549 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9550 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
9551 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9552 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9553 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9554 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9555 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9556 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9557 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9558 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9559 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9560 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
9561 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
9562 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
9563 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
9564 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9565 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9566 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
9567 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9568 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9569 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9570 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9571 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9572 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9573 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9574 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9575 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9576 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9577 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9578 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9579 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9580 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
9581 | { NULL, NULL } | |
9582 | }; | |
9583 | #ifdef __cplusplus | |
9584 | } | |
9585 | #endif | |
9586 | /* | |
9587 | * This table is used by the pointer type-checker | |
9588 | */ | |
9589 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
9590 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
9591 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
9592 | { "_signed_long","_long",0}, | |
9593 | { "_wxPrintQuality","_wxCoord",0}, | |
9594 | { "_wxPrintQuality","_int",0}, | |
9595 | { "_wxPrintQuality","_signed_int",0}, | |
9596 | { "_wxPrintQuality","_unsigned_int",0}, | |
9597 | { "_wxPrintQuality","_wxWindowID",0}, | |
9598 | { "_wxPrintQuality","_uint",0}, | |
9599 | { "_wxPrintQuality","_EBool",0}, | |
9600 | { "_wxPrintQuality","_size_t",0}, | |
9601 | { "_wxPrintQuality","_time_t",0}, | |
9602 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
9603 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
9604 | { "_byte","_unsigned_char",0}, | |
9605 | { "_long","_unsigned_long",0}, | |
9606 | { "_long","_signed_long",0}, | |
9607 | { "_size_t","_wxCoord",0}, | |
9608 | { "_size_t","_wxPrintQuality",0}, | |
9609 | { "_size_t","_time_t",0}, | |
9610 | { "_size_t","_unsigned_int",0}, | |
9611 | { "_size_t","_int",0}, | |
9612 | { "_size_t","_wxWindowID",0}, | |
9613 | { "_size_t","_uint",0}, | |
9614 | { "_uint","_wxCoord",0}, | |
9615 | { "_uint","_wxPrintQuality",0}, | |
9616 | { "_uint","_time_t",0}, | |
9617 | { "_uint","_size_t",0}, | |
9618 | { "_uint","_unsigned_int",0}, | |
9619 | { "_uint","_int",0}, | |
9620 | { "_uint","_wxWindowID",0}, | |
9621 | { "_wxChar","_char",0}, | |
9622 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
9623 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
9624 | { "_char","_wxChar",0}, | |
9625 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
9626 | { "_EBool","_wxCoord",0}, | |
9627 | { "_EBool","_wxPrintQuality",0}, | |
9628 | { "_EBool","_signed_int",0}, | |
9629 | { "_EBool","_int",0}, | |
9630 | { "_EBool","_wxWindowID",0}, | |
9631 | { "_unsigned_long","_long",0}, | |
9632 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
9633 | { "_signed_int","_wxCoord",0}, | |
9634 | { "_signed_int","_wxPrintQuality",0}, | |
9635 | { "_signed_int","_EBool",0}, | |
9636 | { "_signed_int","_wxWindowID",0}, | |
9637 | { "_signed_int","_int",0}, | |
9638 | { "_WXTYPE","_short",0}, | |
9639 | { "_WXTYPE","_signed_short",0}, | |
9640 | { "_WXTYPE","_unsigned_short",0}, | |
9641 | { "_unsigned_short","_WXTYPE",0}, | |
9642 | { "_unsigned_short","_short",0}, | |
9643 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
9644 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9645 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
9646 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, | |
9647 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
9648 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
9649 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
9650 | { "_signed_short","_WXTYPE",0}, | |
9651 | { "_signed_short","_short",0}, | |
9652 | { "_unsigned_char","_byte",0}, | |
9653 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
9654 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, | |
9655 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
9656 | { "_unsigned_int","_wxCoord",0}, | |
9657 | { "_unsigned_int","_wxPrintQuality",0}, | |
9658 | { "_unsigned_int","_time_t",0}, | |
9659 | { "_unsigned_int","_size_t",0}, | |
9660 | { "_unsigned_int","_uint",0}, | |
9661 | { "_unsigned_int","_wxWindowID",0}, | |
9662 | { "_unsigned_int","_int",0}, | |
9663 | { "_short","_WXTYPE",0}, | |
9664 | { "_short","_unsigned_short",0}, | |
9665 | { "_short","_signed_short",0}, | |
9666 | { "_wxWindowID","_wxCoord",0}, | |
9667 | { "_wxWindowID","_wxPrintQuality",0}, | |
9668 | { "_wxWindowID","_time_t",0}, | |
9669 | { "_wxWindowID","_size_t",0}, | |
9670 | { "_wxWindowID","_EBool",0}, | |
9671 | { "_wxWindowID","_uint",0}, | |
9672 | { "_wxWindowID","_int",0}, | |
9673 | { "_wxWindowID","_signed_int",0}, | |
9674 | { "_wxWindowID","_unsigned_int",0}, | |
9675 | { "_int","_wxCoord",0}, | |
9676 | { "_int","_wxPrintQuality",0}, | |
9677 | { "_int","_time_t",0}, | |
9678 | { "_int","_size_t",0}, | |
9679 | { "_int","_EBool",0}, | |
9680 | { "_int","_uint",0}, | |
9681 | { "_int","_wxWindowID",0}, | |
9682 | { "_int","_unsigned_int",0}, | |
9683 | { "_int","_signed_int",0}, | |
9684 | { "_time_t","_wxCoord",0}, | |
9685 | { "_time_t","_wxPrintQuality",0}, | |
9686 | { "_time_t","_unsigned_int",0}, | |
9687 | { "_time_t","_int",0}, | |
9688 | { "_time_t","_wxWindowID",0}, | |
9689 | { "_time_t","_uint",0}, | |
9690 | { "_time_t","_size_t",0}, | |
9691 | { "_wxCoord","_int",0}, | |
9692 | { "_wxCoord","_signed_int",0}, | |
9693 | { "_wxCoord","_unsigned_int",0}, | |
9694 | { "_wxCoord","_wxWindowID",0}, | |
9695 | { "_wxCoord","_uint",0}, | |
9696 | { "_wxCoord","_EBool",0}, | |
9697 | { "_wxCoord","_size_t",0}, | |
9698 | { "_wxCoord","_time_t",0}, | |
9699 | { "_wxCoord","_wxPrintQuality",0}, | |
9700 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, | |
9701 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
9702 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, | |
9703 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
9704 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
9705 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, | |
9706 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
9707 | {0,0,0}}; | |
9708 | ||
9709 | static PyObject *SWIG_globals; | |
9710 | #ifdef __cplusplus | |
9711 | extern "C" | |
9712 | #endif | |
9713 | SWIGEXPORT(void) initcontrols2c() { | |
9714 | PyObject *m, *d; | |
9715 | SWIG_globals = SWIG_newvarlink(); | |
9716 | m = Py_InitModule("controls2c", controls2cMethods); | |
9717 | d = PyModule_GetDict(m); | |
9718 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
9719 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
9720 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
9721 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
9722 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
9723 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
9724 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
9725 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
9726 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
9727 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
9728 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
9729 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
9730 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
9731 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
9732 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
9733 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
9734 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
9735 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
9736 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
9737 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
9738 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
9739 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); | |
9740 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
9741 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
9742 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
9743 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
9744 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
9745 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
9746 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
9747 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
9748 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
9749 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
9750 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
9751 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
9752 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
9753 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
9754 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
9755 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
9756 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
9757 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
9758 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); | |
9759 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); | |
9760 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); | |
9761 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
9762 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
9763 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); | |
9764 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
9765 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
9766 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
9767 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
9768 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
9769 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
9770 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
9771 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
9772 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
9773 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
9774 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
9775 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
9776 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
9777 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
9778 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
9779 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
9780 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
9781 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
9782 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
9783 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
9784 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
9785 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
9786 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
9787 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
9788 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
9789 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
9790 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); | |
9791 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
9792 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
9793 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
9794 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
9795 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
9796 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
9797 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
9798 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
9799 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); | |
9800 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
9801 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
9802 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
9803 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); | |
9804 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
9805 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
9806 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
9807 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
9808 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); | |
9809 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
9810 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
9811 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); | |
9812 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
9813 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
9814 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
9815 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
9816 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
9817 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); | |
9818 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
9819 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
9820 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
9821 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
9822 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); | |
9823 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
9824 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
9825 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
9826 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
9827 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
9828 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
9829 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
9830 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
9831 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
9832 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
9833 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
9834 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
9835 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9836 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
9837 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
9838 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
9839 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
9840 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
9841 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
9842 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
9843 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
9844 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
9845 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
9846 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
9847 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
9848 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
9849 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
9850 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
9851 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
9852 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
9853 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); | |
9854 | ||
9855 | // Map renamed classes back to their common name for OOR | |
9856 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
9857 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
9858 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
9859 | { | |
9860 | int i; | |
9861 | for (i = 0; _swig_mapping[i].n1; i++) | |
9862 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9863 | } | |
9864 | } |